From 54fac70e2290b521511d485b9d7e7740f659ec69 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 28 Oct 2019 08:43:49 +1000 Subject: [PATCH] use --exact with dvisvgm https://anki.tenderapp.com/discussions/ankidesktop/36561-latex-svgs-getting-cut-off --- anki/latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/latex.py b/anki/latex.py index 10d77d1e4..b60b0f170 100644 --- a/anki/latex.py +++ b/anki/latex.py @@ -14,7 +14,7 @@ pngCommands = [ svgCommands = [ ["latex", "-interaction=nonstopmode", "tmp.tex"], - ["dvisvgm", "--no-fonts", "-Z", "2", "tmp.dvi", "-o", "tmp.svg"] + ["dvisvgm", "--no-fonts", "--exact", "-Z", "2", "tmp.dvi", "-o", "tmp.svg"] ] build = True # if off, use existing media but don't create new