Excute Latex file via Matlab
38 ビュー (過去 30 日間)
古いコメントを表示
I need to run a .tex file via Matlab and I'm using the following commands,
I'm using MacOS Big Sur, and I'm getting the following error: status: 127 cmdout='zsh:1:command not found;
command = 'pdflatex fileID.tex';
[status,cmdout] = system(command)
9 件のコメント
Jan
2022 年 9 月 19 日
You get this as output of the which command in the terminal:
/Library/TeX/texbin/pdflatex
Then you try this:
setenv('PATH', [getenv('PATH') ':~/Library/TeX/texbin/pdflatex']);
% ^
Why do you use the home directory here?
Is this the executable: "/Library/TeX/texbin/pdflatex" ? Then why do you add the name of the executable to the path? Shouldn't it be the flder only "/Library/TeX/texbin/"?
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Live Scripts and Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!