TransWikia.com

can't get latexmk to work in TeXShop

TeX - LaTeX Asked on June 19, 2021

I’m trying to add a glossary to my book. I wanted to use latexmk to execute makeglossaries for me. I’m using TeXShop on my Mac.

So I went to the TeX Live Utility and activated the latexmk package. Then I went to my source document and put the following on the top line:

% !TEX TS-program = pdflatexmk

Then I typeset my document. As best I can tell, adding that line to the top had no effect. It’s not automatically running BibTeX, it’s not creating my glossary (I already put all the relevant glossary commands in), etc.

What have I failed to do? Thanks.

2 Answers

You need to make TeXShop see the latexmk Engine. Go to your ~/Library/TeXShop folder, and inside you will see an Engines folder. Inside there should be a bunch of Engine files, and a folder named Inactive. Move the pdflatexmk.engine file (and any of the other *mk.engine files if you wish) from the Inactive folder to the Engines folder.

You will need to restart TeXShop for the change to take effect. Now, when you use the pulldown Typeset menu, the pdflatexmk engine should show up, and also your % !TEX TS-program = pdflatexmk line should work.

Answered by Alan Munn on June 19, 2021

An update, after the passage of 8 years:

First, based on information provided by Herb Schulz[1] via email, the recommended format is,

% !TEX program = pdflatexmk

Second, to add "engines" to TeXShop's relevant menu, use the procedure described by @Alan Munn per the information in TeXShop's embedded documentation folder:

Menu bar -> TeXShop -> Open ~Library/TeXShop

Then open that folder's file Engines/Inactive/Latexmk/Latexmk For TeXShop.pdf, where Alan's procedure is described. See also Herb Schulz's Using latexmk with TEXShop.

These notes have been confirmed on Mac OS 11.1, with TeX Live 2020 and TeXShop 4.58.

[1]: herbs at-sign wideopenwest dot com

Answered by Arthur Ogawa on June 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP