필터 지우기
필터 지우기

Safe evaluation of command prompt statements.

조회 수: 2 (최근 30일)
Vojtech Neuman
Vojtech Neuman 2019년 8월 12일
Hi, I would like to ask about following problem.
I am working on function which converts plotted results to TikZ and pgf macros. I want to add option that executes autocompilation of resulting output .tex file, however I cannot figure out how to avoid unhandled errors danger.
So far I have used this particular code.
if settings.CompileAutomatically && settings.Standalone
eval(['!pdflatex -shell-escape --enable-write18 ' ...
'--extra-mem-bot=1000000000 --synctex=1 -interaction=nonstopmode ' ...
[settings.FileName '.tex']]);
end
I tried try and catch blocks, though this attitude did not help.

답변 (0개)

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by