[OS X TeX] making an index (nomenclature)
Nicolae Garleanu
nbgarleanu at gmail.com
Mon Feb 5 20:09:38 CET 2024
Hi Herb,
Yes, I think it is pdflatex, although I do not remember (I think I used to know, at least) why in the Typeset menu Pdftex is checked (as is LaTeX).
More important, I put % !TEX program = pdflatexmk as the first line of the document (I tried both before and after \document class — I used the syntax %TEX root = …, after \documentclass, with success in other files). As before, no new file other than the .nlo, but no error on executing.
I haven’t tried the terminal, but I wonder whether that is the most efficient way to uncover the problem. I had a quick look over the .log file for anything that would catch my eye, and did see "No file Try-nomencl.nls,” which didn’t surprise me, but I don’t know why this file failed to be produced. Maybe I should also say that I never did anything actively to set up pdflatexmk. Were it not for Overleaf, I would keep thinking that I have a syntax error vis-a-vis the nomenclature package.
Nicolae
> On Feb 5, 2024, at 12:29, Herbert Schulz via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>
>
>
>> On Feb 5, 2024, at 11:53 AM, Nicolae Garleanu <nbgarleanu at gmail.com> wrote:
>>
>> Hi,
>>
>> I was trying to create a nomenclature in the article class. I followed the same procedure as described in the texshop manual on pages 37-38, with “index" replaced appropriately. I ended up with the following MWE based on an Overleaf sample file (it works in Overleaf):
>>
>> ------
>> \documentclass{article}
>> \usepackage[refpage]{nomencl}
>> \makenomenclature
>>
>> \begin{document}
>> Here is an example:
>> \nomenclature{$V_{t,s}$}{Value function}
>>
>> \printnomenclature
>> \end{document}
>> ------
>>
>> I typeset (using pdftex), then run makeindex, then typeset again, but I don’t get the nomenclature. Looking in the folder, I see that there is an .nlo file, but no other “new” type of file (I gathered that I should expect a .gls file). My guess is that I am not running makeindex with the correct settings, but I don’t know how to figure that out.
>>
>> Nicolae
>>
>> PS Once I get it running, I’ll try to get the reference page printed in a third column, also aligned, but that is a different type of "project."
>
> Howdy,
>
> First, I assume you used pdflatex not pdftex since that is a latex file.
>
> Please try using the pdflatexmk engine. Just place the line
>
> % !TEX program = pdflatexmk
>
> as the first line of the file and typeset using Typeset->Typeset (Cmd-T). This engine uses the latexmk script to completely typeset the document using pdflatex and is set up to take care of the proper use makeindex for the nomenclature package.
>
> Good Luck,
>
> Herb Schulz
> herbs2 at mac.com
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: https://www.tug.org/mactex/faq/index.html
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
> https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20240205/89d53e8d/attachment.htm>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: https://www.tug.org/mactex/faq/index.html
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives
mailing list.