Supressing output when calling pdflatex using `system()`
4 次查看(过去 30 天)
显示 更早的评论
For this application it is convenient for me to build a latex file in matlab and compile it by
system(['pdflatex ', latexFile]);
Doing this, however, results in the latex compiler output being printed to my matlab console for example
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./stat00_dyn11.tex
LaTeX2e <2020-02-02> patch level 1
but there's a lot more. Is there any way to supress this?
0 个评论
采纳的回答
Walter Roberson
2020-7-21
if ispc()
system(['pdflatex ', latexFile, '>NL0:']);
else
system(['pdflatex ', latexFile, '> /dev/null' ]);
end
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 LaTeX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!