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

Herbert Schulz herbs at wideopenwest.com
Sat Jul 4 13:23:40 EDT 2020


> 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?
> 
> —-
> Murray Eisenberg			murrayeisenberg at gmail.com
> 503 King Farm Blvd #101	Home (240)-246-7240
> Rockville, MD 20850-6667	Mobile (413)-427-5334

Howdy,

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.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)



More information about the MacOSX-TeX mailing list