Closed TheoWinterhalter closed 4 years ago
Have you tried % !TEX options
? See https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#magic-comments.
If it does not work, fill out all the information required in the issue template. Please paste the whole log messages here, not parts of ones. It is very important to identify problems.
You can also use .vscode/settings.json
to configure per workspace. See https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations.
I see, thanks! I couldn't manage to find this, I'm surprised to learn this is not the recommended way but I guess it comes down to the fact that the LaTeX environment isn't unified across IDEs.
Thanks again!
Is your feature request related to a problem? Please describe. As far as I can tell there is currently no way of setting the
--shell-escape
flag for just one LaTeX file or project the way you can selectXeLaTeX
through magic comments for instance.Worse is that the solutions given in the wiki and many issues (#455, #913, #1043, #1147, #1810) that were posted here do not work for me (I have several errors complaining that the flag isn't set, and of course compiling from the terminal just works).
Describe the solution you'd like I would like a magic comment or something similar to enable it.
Describe alternatives you've considered I tried setting it globally (which I think is bad,
--shell-escape
is deactivated by default for safety reasons):But it doesn't even work for me (with xelatex or pdflatex both).
Thanks for considering this.