Skip to content

Commit 594daba

Browse files
committed
diagram-generator: hide pdflatex output
Output of pdflatex (which is called during conversion of TikZ images) is mostlly noise and will only be shown if PDF creation fails.
1 parent 7c57330 commit 594daba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diagram-generator/diagram-generator.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ local function tikz2image(src, filetype, additionalPackages)
115115
f:close()
116116

117117
-- Execute the LaTeX compiler:
118-
os.execute(pdflatexPath .. " -output-directory " .. tmpDir .. " " .. tmp)
118+
pandoc.pipe(pdflatexPath, {'-output-directory', tmpDir, tmp}, '')
119119

120120
-- Build the basic Inkscape command for the conversion:
121121
local baseCommand = " --without-gui --file=" .. tmp .. ".pdf"

0 commit comments

Comments
 (0)