Supressing output when calling pdflatex using `system()`

조회 수: 2 (최근 30일)
Morten Nissov
Morten Nissov 2020년 7월 21일
답변: Walter Roberson 2020년 7월 21일
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?

채택된 답변

Walter Roberson
Walter Roberson 2020년 7월 21일
if ispc()
system(['pdflatex ', latexFile, '>NL0:']);
else
system(['pdflatex ', latexFile, '> /dev/null' ]);
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by