[OS X TeX] Using TeXShop's parameter directive

Herbert Schulz herbs at wideopenwest.com
Mon Sep 25 15:32:35 EDT 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: <https://email.esm.psu.edu/pipermail/macosx-tex/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)



More information about the MacOSX-TeX mailing list