mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Make dvipng use transparent background by default (#2036)
* make dvipng use transparent background by default Note that if using all-lowercase 'transparent', it will give "a simple fully transparent background with non-transparent antialiased pixels", which is unnecessary. * latex.py: format
This commit is contained in:
parent
0eaa80dd28
commit
e4f1d9952b
1 changed files with 12 additions and 1 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue