##// END OF EJS Templates
Suppress output from latex and dvipng command
Takafumi Arakaki -
Show More
@@ -81,11 +81,13 b' def latex_to_png_dvipng(s):'
81 f.write(_latex_footer)
81 f.write(_latex_footer)
82
82
83 subprocess.check_call(
83 subprocess.check_call(
84 ["latex", "-halt-on-errror", tmpfile], cwd=workdir)
84 ["latex", "-halt-on-errror", tmpfile], cwd=workdir,
85 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
85
86
86 subprocess.check_call(
87 subprocess.check_call(
87 ["dvipng", "-T", "tight", "-x", "1500", "-z", "9",
88 ["dvipng", "-T", "tight", "-x", "1500", "-z", "9",
88 "-bg", "transparent", "-o", outfile, dvifile], cwd=workdir)
89 "-bg", "transparent", "-o", outfile, dvifile], cwd=workdir,
90 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
89
91
90 with open(outfile) as f:
92 with open(outfile) as f:
91 bin_data = f.read()
93 bin_data = f.read()
General Comments 0
You need to be logged in to leave comments. Login now