Skip to content

Setting compiler options #3058

Closed Answered by muzimuzhi
TheComamba asked this question in Q&A
Discussion options

You must be logged in to vote

I used to execute -shell-escape variants by adding a user command (Configure TeXstudio - "Build" tab - User commands) then add a new button linked to the automatically created menu "Tools - User - ". The disadvantage is that the button is hard-coded to an engine, for example pdflatex. Thus if I want to switch to another engine it seems I have to add another button.

Now I use magic comment (menu "LaTeX - Add magic comments..."; also called "advanced header" in the new manual) to specify the engine and options.

% !TeX program = lualatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex | txs:///view

On macOS you may need #143 (comment). The disadvantage is that I have to repeat the d…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by TheComamba
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants