[OS X TeX] Configuring TeXShop to use XeLaTeX instead of pdfLaTeX
Murray Eisenberg
murrayeisenberg at gmail.com
Tue Jul 7 17:23:18 EDT 2020
What exactly is the difference between
% !TEX program = xelatexmk
and
% !TEX TS-program = xelatexmk
(and similarly for other engines)?
In the TeXShop Help > Comment Lines and Hidden Preferences I see reference only to the first of those.
>>>>
>>>> On 4 Jul2020, at 1:23 PM, Herbert Schulz <herbs at wideopenwest.com <mailto:herbs at wideopenwest.com>> wrote:
>>>>
>>>>> On Jul 4, 2020, at 12:15 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
>>>>>
>>>>> I think I need to switch from pdfLaTeX to XeLaTeX, to avoid various patches required, e.g., between babel and some other packages (including cleveref).
>>>>>
>>>>> For the TeXShop pdflatexmk engine, in my document source directory I use the following platexmkrc:
>>>>>
>>>>> $makeindex = "makeindex -s %R.ist %O -o %D %S”;
>>>>>
>>>>> and the following latexmkrc:
>>>>>
>>>>> # latexmkrc
>>>>> # Custom dependency and function for nomencl package
>>>>> add_cus_dep('nlo', 'nls', 0, 'makenlo2nls');
>>>>> sub makenlo2nls {
>>>>> system("makeindex -s nomencl.ist -o '$_[0]'.nls '$_[0]'.nlo");
>>>>> }
>>>>>
>>>>> Do these need to be modified in any way, or do I need some kind of alternative files, so as to allow using the xelatexmk engine?
>>>>>
>>>>
>>>> Look in ~/Library/TeXShop/Engines/Inactive/Latexmk (you can open ~/Library/TeXShop using the TeXShop->Open ~/Library/TeXShop Menu Command). There you'll find a xelatexmk.engine file (along with latexmk.engine for using latex->dvips->ps2pdf and lualatexmk,engine for using lualatex). Just copy that engine (or those engines) up two levels to ~/Library/TeXShop/Engines and re-start TeXShop. Then you can use xelatexmk in the TeXShop directive
>>>>
>>>> % !TEX program = xelatexmk
>>>>
>>>> (or
>>>>
>>>> % !TEX TS-program = xelatexmk
>>>>
>>>> to get latexmk to use xelatex.
---
Murray Eisenberg murrayeisenberg at gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667 Mobile (413)-427-5334
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20200707/da8d33f8/attachment.htm>
More information about the MacOSX-TeX
mailing list