[Tex/LaTex] MiKTeX where do I specify command line options

luatexmiktex

I'm using MiKTeX 2.9 and I want to specify the command line option –shell-escape. The reason for this is that I'm trying to use an eps file and I get the error

xxx-eps-converted-to.pdf' not found.

I read that this command line option can fix the problem, but where exactly do I specify it? I'm typesetting with LuaLaTeX using TeXworks as the editor.

EDIT: added editor.

Best Answer

With TeXworks, go to the main menu: Edit / Preferences, choose the Typesetting tab, choose your engine, click the Edit button, add --enable-write18 such as here:

Screenshot from TeXworks

This screenshot was originally posted by Thorsten in the LaTeX-Community forum. In the picture it's for pdfLaTeX, just edit the engine of your choice, i.e. LuaLaTeX.

Use the very same place if you would like to add --shell-escape instead. However, --shell-escape is used in TeX Live, --enable-write18 in MiKTeX.