<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">What exactly is the difference between<div class=""><br class=""></div><div class="">% !TEX program = xelatexmk</div><div class=""><br class=""></div><div class="">and</div><div class=""><br class=""></div><div class="">% !TEX TS-program = xelatexmk</div><div class=""><br class=""></div><div class="">(and similarly for other engines)?</div><div class=""><br class=""></div><div class="">In the TeXShop Help > Comment Lines and Hidden Preferences I see reference only to the first of those.<br class=""><div><br class=""><blockquote type="cite" class=""><div class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">On 4 Jul2020, at 1:23 PM, Herbert Schulz <<a href="mailto:herbs@wideopenwest.com" class="">herbs@wideopenwest.com</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">On Jul 4, 2020, at 12:15 PM, Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> wrote:<br class=""><br class="">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).<br class=""><br class="">For the TeXShop pdflatexmk engine, in my document source directory I use the following platexmkrc:<br class=""><br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>$makeindex = "makeindex -s %R.ist %O -o %D %S”;<br class=""><br class="">and the following latexmkrc:<br class=""><br class=""><span class="Apple-tab-span" style="white-space: pre;">    </span># latexmkrc<br class=""><span class="Apple-tab-span" style="white-space: pre;">  </span># Custom dependency and function for nomencl package<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>add_cus_dep('nlo', 'nls', 0, 'makenlo2nls');<span class="Apple-converted-space"> </span><br class=""><span class="Apple-tab-span" style="white-space: pre;">  </span><span class="Apple-tab-span" style="white-space: pre;">  </span><span class="Apple-converted-space"> </span>sub makenlo2nls {<span class="Apple-converted-space"> </span><br class=""><span class="Apple-tab-span" style="white-space: pre;">      </span><span class="Apple-tab-span" style="white-space: pre;">  </span><span class="Apple-tab-span" style="white-space: pre;">  </span><span class="Apple-converted-space"> </span>system("makeindex -s nomencl.ist -o '$_[0]'.nls '$_[0]'.nlo");<span class="Apple-converted-space"> </span><br class=""><span class="Apple-tab-span" style="white-space: pre;">       </span><span class="Apple-tab-span" style="white-space: pre;">  </span><span class="Apple-converted-space"> </span>}<br class=""><br class="">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?<br class=""><br class=""></blockquote><br class="">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<br class=""><br class="">% !TEX program = xelatexmk<br class=""><br class="">(or<br class=""><br class="">% !TEX TS-program = xelatexmk<br class=""><br class="">to get latexmk to use xelatex.<br class=""></blockquote></blockquote></blockquote></div></blockquote></div><br class=""><div class="">
---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;">                       </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">     </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">  </span>Mobile (413)-427-5334<br class=""><br class="">

</div>
<br class=""></div></body></html>