<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">That sounds like a good solution — though, not knowing what is wrong with my .tex file that prevents pdflatexmk from working, while makeindex works, I’ll have to try it first.<div><br></div><div>Given that I have never used a make file, and thus haven’t yet gotten used to the benefits, I would be equally happy, if not happier, to be able to call makeindex directly in texshop (to circumvent terminal). If I can do that, though, then I am guessing that I can also customize texshop to run the appropriate latexmk that you outlined.</div><div> <br id="lineBreakAtBeginningOfMessage"><div>
<div>Nicolae</div><div><br></div><br class="Apple-interchange-newline">
</div>
<div><br><blockquote type="cite"><div>On Feb 5, 2024, at 18:39, John Collins <jcc8@psu.edu> wrote:</div><br class="Apple-interchange-newline"><div><div>From the command line, there's only a latexmk command, but no pdflatexmk. You invoke latexmk as 'latexmk -pdf ...' to get it to use pdflatex for compiling the document. (By default, latexmk uses latex.)<br><br>To get what you want from the command line:<br><br>1. Create a file named latexmkrc in the document directory containing the following:<br><br> # Custom dependency and function for nomencl package<br> add_cus_dep('nlo', 'nls', 0, 'makenlo2nls');<br> sub makenlo2nls {<br> system("makeindex -s nomencl.ist -o '$_[0]'.nls '$_[0]'.nlo");<br> }<br> # Arrange for cleanup operations to remove .nlo and .nls files<br> push @generated_exts, 'nlo', 'nls';<br><br> # Use pdflatex to compile .tex documents (unless overridden on CL):<br> $pdf_mode = 1;<br><br>That configures latexmk to deal with nomenclature and to use pdflatex.<br><br>2. Then you can just run<br><br> latexmk sample.tex<br><br>(Change the filename to whatever you are using, of course.)<br><br>John<br><br><br>On 2/5/24 6:24 PM, Nicolae Garleanu wrote:<br><blockquote type="cite">I don’t mean to try to have anyone else waste time on this, but just in case<br>it rings a bell with anyone: On my “real” file, 1. If I run makeindex from<br>command line all OK. 2. The % !TEX program = pdflatexmk snippet at the top<br>of the file does not do anything. It does work on the MWE. The two files are<br>in the same directory. All the nomenclature related commands in the MWE are<br>also in the real file.Is there a way to run pdflatexmk from the command line<br>as a check? Just writing it followed by file name gives me a “command not<br>found" error (as it perhaps should).<br></blockquote>----------- Please Consult the Following Before Posting -----------<br>TeX FAQ: https://www.tug.org/mactex/faq/index.html<br>List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/<br>List Archives: http://dir.gmane.org/gmane.comp.tex.macosx<br> https://email.esm.psu.edu/pipermail/macosx-tex/<br>TeX on Mac OS X Website: https://www.tug.org/mactex/index.html<br>List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex<br></div></div></blockquote></div><br></div></body></html>