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.


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.

  • Thanks—that worked great! Somehow I had assumed that making a package active in the TexLive Utility would take care of this, but it didn't. – Mike Aug 12 '13 at 13:48
  • 2
    @Mike Accepting answer (by clicking on the checkmark) is a preferred way of saying Thanks. For more details on How do you accept an answer? – texenthusiast Aug 12 '13 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.