[OS X TeX] Configuring TeXShop to use XeLaTeX instead of pdfLaTeX

Murray Eisenberg murrayeisenberg at gmail.com
Sat Jul 4 13:32:01 EDT 2020


> On 4 Jul2020, at 1:23 PM, Herbert Schulz <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.
> 


Yes, I understand about the engine, but that wasn’t my concern. It was whether the same platexmkrc and latexmkrc will work as is, or whether they need to be modified or whether similar files with different names are needed.

---
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334




More information about the MacOSX-TeX mailing list