mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 21:08:53 +00:00
Update tex_file_writing.py
This commit is contained in:
parent
5a86ba08f4
commit
e72390bfc4
1 changed files with 6 additions and 6 deletions
|
@ -44,8 +44,8 @@ def tex_to_dvi(tex_file):
|
||||||
"latex",
|
"latex",
|
||||||
"-interaction=batchmode",
|
"-interaction=batchmode",
|
||||||
"-halt-on-error",
|
"-halt-on-error",
|
||||||
"-output-directory=\'{}\'".format(consts.TEX_DIR),
|
"-output-directory=\"{}\"".format(consts.TEX_DIR),
|
||||||
"\'{}\'".format(tex_file),
|
"\"{}\"".format(tex_file),
|
||||||
">",
|
">",
|
||||||
os.devnull
|
os.devnull
|
||||||
] if not TEX_USE_CTEX else [
|
] if not TEX_USE_CTEX else [
|
||||||
|
@ -53,8 +53,8 @@ def tex_to_dvi(tex_file):
|
||||||
"-no-pdf",
|
"-no-pdf",
|
||||||
"-interaction=batchmode",
|
"-interaction=batchmode",
|
||||||
"-halt-on-error",
|
"-halt-on-error",
|
||||||
"-output-directory=\'{}\'".format(consts.TEX_DIR),
|
"-output-directory=\"{}\"".format(consts.TEX_DIR),
|
||||||
"\'{}\'".format(tex_file),
|
"\"{}\"".format(tex_file),
|
||||||
">",
|
">",
|
||||||
os.devnull
|
os.devnull
|
||||||
]
|
]
|
||||||
|
@ -79,12 +79,12 @@ def dvi_to_svg(dvi_file, regen_if_exists=False):
|
||||||
if not os.path.exists(result):
|
if not os.path.exists(result):
|
||||||
commands = [
|
commands = [
|
||||||
"dvisvgm",
|
"dvisvgm",
|
||||||
"\'{}\'".format(dvi_file),
|
"\"{}\"".format(dvi_file),
|
||||||
"-n",
|
"-n",
|
||||||
"-v",
|
"-v",
|
||||||
"0",
|
"0",
|
||||||
"-o",
|
"-o",
|
||||||
"\'{}\'".format(result),
|
"\"{}\"".format(result),
|
||||||
">",
|
">",
|
||||||
os.devnull
|
os.devnull
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue