[OS X TeX] Using TeXShop's parameter directive

Herbert Schulz herbs at wideopenwest.com
Mon Sep 25 21:32:35 CEST 2017


Howdy,

Enclosed is a test engine (it will eventually be an update to the pdflatexmk.engine but is called xpdflatexmk.engine for testing purposes) that uses the `% !TEX parameter = ...' directive for engines in recent (>=3.77) versions of TeXShop. E.g., that way you need only place the lines

% !TEX program = xpdflatexmk
% !TEX parameter = --shell-escape

near the top of your file instead of using the separate `sepdflatexmk` engine. One advantage is that you can also use multiple options if needed such as

% !TEX parameter = --shell-escape --nonstopmode

or even no options by using

% !TEX parameter = 

or leaving the line out completely.

The xpdflatexmk.engine needs to be placed in the Engines folder in ~/Library/TeXShop (you can use the TeXShop->Open ~/Library/TeXShop menu command of you wish). Note: the xpdflatexmk engine passes these options to 

The testfile that is included uses the minted package which requires the --shell-escape option but also an addition to your Perl distribution so you may wish to use another example file.

Once you are satisfied that the engine works properly you can remove/rename the original pdflatexmk.engine file and remove the leading `x' from the xpdflatexmk.engine.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: using TeXShop  parameter 2 declaration.zip
Type: application/zip
Size: 5359 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20170925/0a82aed8/attachment.zip>
-------------- next part --------------


Please send me feedback if you test this engine.

PS: Other latexmk based replacement engines will follow.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list