1

Using MacTex 2015 distribution, and two different LaTeX editors (TexShop and Latexian), it is unable to show the nomenclature. I've tried in other computers and online Latex editors and I was successful, but not with MacTex 2015. I am doing 2 Typesetter Runs at the end and the code works on other computers. I have also tried reinstalling MacTex but the problem persists.

What am I missing?

Thanks in advance.

\documentclass[twoside,openright]{report}
\usepackage[intoc]{nomencl}
\makenomenclature

\begin{document}

\nomenclature{$\omega$}{Absolute Frequency}
\printnomenclature

\end{document}
  • What is an MWE (meta.tex.stackexchange.com/a/231/1169)? – LSpice Jun 23 '15 at 0:17
  • Welcome! Did you run makeindex (nomencl) or makeglossaries (glossaries) or similar (other package you are using)? – cfr Jun 23 '15 at 0:28
  • Yes, I did run makeindex but not working. Seems that I am missing something. I'm updating the question with a MWE. – Alberto Jun 23 '15 at 9:42
  • makeindex will have created a log-file. Please check it out and post it, there will be clues in there. – Johannes_B Jun 23 '15 at 9:49
  • I don't have that log-file, so I assume makeindex is not running, although I tick the makeindex option within Latexian. How can I make it run? – Alberto Jun 23 '15 at 10:09
1

It seems some text in the document itself is required for the indexing file to be written correctly on compilation.

\documentclass[twoside,openright]{report}
\usepackage[intoc]{nomencl}
\makenomenclature

\begin{document}

Some text.

\nomenclature{$\omega$}{Absolute Frequency}
\printnomenclature

\end{document}

If you compile with some dummy text and then create the nomenclature, you can remove the dummy text afterwards and recompile to just get the nomenclature on its own (if that is desired).

So the steps are:

  1. Add dummy text.
  2. Compile.
  3. Create nomenclature using makeindex <filename>.nlo -s nomencl.ist -o <filename>.nls as usual.
  4. Remove dummy text.
  5. Compile to get the nomenclature alone.

just nomenclature

  • 1
    Yes, the \write issued by \index (or variations thereof) is not \immediate, so if no page is shipped out you get no index. – egreg Jun 23 '15 at 13:46
  • @egreg Ah. Thanks for the explanation. So the \write is triggered when the page is shipped out? – cfr Jun 23 '15 at 13:54
  • 1
    Yes, otherwise \index could not know the actual page number. – egreg Jun 23 '15 at 14:02
  • @egreg OK. Yes. Now you say it, that makes sense. I wasn't thinking of page numbers (because there aren't any in this example) but I imagine they might be useful in an index! – cfr Jun 23 '15 at 14:04
  • I have done that and still not getting the Nomenclature. Is there a way to manually reinstall the makeindex engine in MacTex 2015? – Alberto Jun 23 '15 at 14:26

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.