Effacer les filtres
Effacer les filtres

Safe evaluation of command prompt statements.

2 vues (au cours des 30 derniers jours)
Vojtech Neuman
Vojtech Neuman le 12 Août 2019
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.

Réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by