diff --git a/pylib/anki/latex.py b/pylib/anki/latex.py index c2033523b..e492422c8 100644 --- a/pylib/anki/latex.py +++ b/pylib/anki/latex.py @@ -17,7 +17,18 @@ from anki.utils import call, is_mac, namedtmp, tmpdir pngCommands = [ ["latex", "-interaction=nonstopmode", "tmp.tex"], - ["dvipng", "-D", "200", "-T", "tight", "tmp.dvi", "-o", "tmp.png"], + [ + "dvipng", + "-bg", + "Transparent", + "-D", + "200", + "-T", + "tight", + "tmp.dvi", + "-o", + "tmp.png", + ], ] svgCommands = [