From cc4b9938c7242f14ed3186f0fba13e155b0ac302 Mon Sep 17 00:00:00 2001 From: dae Date: Tue, 3 Jun 2014 16:33:43 +0900 Subject: [PATCH] add note about latexCmds --- anki/latex.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anki/latex.py b/anki/latex.py index d5d4711fb..6032476b5 100644 --- a/anki/latex.py +++ b/anki/latex.py @@ -7,6 +7,8 @@ from anki.utils import checksum, call, namedtmp, tmpdir, isMac, stripHTML from anki.hooks import addHook from anki.lang import _ +# if you modify these in an add-on, you must make sure to take tmp.tex as the +# input, and output tmp.png as the output file latexCmds = [ ["latex", "-interaction=nonstopmode", "tmp.tex"], ["dvipng", "-D", "200", "-T", "tight", "tmp.dvi", "-o", "tmp.png"]