[OS X TeX] platexmkrc: makeindex for nomenclature

Murray Eisenberg murrayeisenberg at gmail.com
Sun Apr 6 21:00:42 EDT 2025


> On Apr 6, 2025, at 8:05 PM, Herbert Schulz <herbs2 at mac.com> wrote:
> 
> 
>> On Apr 6, 2025, at 5:57 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
>> 
>> That did it - thanks!
>> 
>> But was there some change in a TeXShop or texlive engine, or in pdflatex, or in nomencl.sty, causing that addition to be required?
>> 
>> I ask because I _think_ that, at least until recently, it sufficed to have the single line
>> 
>> $makeindex = "makeindex -s %R.ist %O -o %D %S";
>> 
>> in platexmkrc.
>> 
>>> On Apr 6, 2025, at 6:18 PM, Herbert Schulz via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>>> 
>>> 
>>> 
>>>> On Apr 6, 2025, at 3:40 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
>>>> 
>>>> nomencl
>>> 
>>> Howdy,
>>> 
>>> You don't want to to change the makeindex command since that will work for your standard indexes. Add the lines
>>> 
>>> add_cus_dep('nlo', 'nls', 0, 'makenlo2nls');
>>> sub makenlo2nls {
>>> system("makeindex -s nomencl.ist -o '$_[0]'.nls '$_[0]'.nlo");
>>> }
>>> 
>>> (line breaks may be bad here - I've attached a file with the proper line breaks) which deals with nlo->nls extensions separately.
>>> 
>>> <add to platexmkrc.tex>
>>> 
> 
> Looking at ~/Library/TeXShop/bin/latexmkrcedit I see that dependancy is actually there. Did you remove that file or edit it and remove that dependancy?
> 

File latexmkrcedit is indeed in ~/Library/TeXShop/bin/latexmkrcedit (although dated 2022, it's identical to the 2025 file ~/Library/TeXShop/bin/tslatexmk/latexmkDONTrcedi, and it already contains what you said to add to my platexmkrc, namely:

add_cus_dep('nlo', 'nls', 0, 'makenlo2nls');
		sub makenlo2nls {
				system("makeindex -s nomencl.ist -o '$_[0]'.nls '$_[0]'.nlo");
		}

So now I'm really puzzled, since as soon as I added that to my platexmkrc, the nomenclature compiled. Before I added it, I saw the error that all the entries for the nomenclature had been "rejected"!

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20250406/45cff60a/attachment.htm>


More information about the MacOSX-TeX mailing list