![Texstudio 使用 -shell 进行编译](https://linux22.com/image/351101/Texstudio%20%E4%BD%BF%E7%94%A8%20-shell%20%E8%BF%9B%E8%A1%8C%E7%BC%96%E8%AF%91.png)
我想创造这张图在 Texstudio 中。但是,我不知道如何使用 -shell-escape 编译 gnuplot。如果有人能帮忙,我将不胜感激。
答案1
您需要转到Options
-> Configure TeXstudio...
,Commands
选项卡,然后在PdfLaTeX
选项中您将看到
pdflatex -synctex=1 -interaction=nonstopmode %.tex
然后,你需要在那里添加选项,例如
pdflatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex
然后,点击Ok
。下次执行pdflatex
时应使用该选项。
您应该在日志中看到它。