LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and AcronymsNomenclature not printed

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Posts: 1
Joined: Sat Nov 03, 2018 1:38 am

Nomenclature not printed

Postby chavavic » Sat Nov 03, 2018 2:05 am

I can't get my nomenclature printed with my TexWork script shown below. I have used the same script as I had while using ShareLatex (which did print the Nomenclature correctly), but in TexWork the same script does not print it. The error I get is:

Input index file $makeindex fronty.nlo -s -o fronty.nls not found.
Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]

I checked the different posts and tried inputting :
makeindex 〈myfilename〉.nlo -s -o〈myfilename〉.nls

in Edit->Preferences->Compilation of TexWork, but still get the same error.

Could anyone please help me out?

My script for the nomenclature part is :

  1. \documentclass[a4paper,preprint,11pt,authoryear]{elsarticle}
  2. \usepackage{graphicx}
  3. \usepackage{array,multirow,booktabs}
  4. \usepackage{amssymb,amsthm,amsmath,mathtools}
  5. \usepackage[]{breqn}
  6. \usepackage{caption}
  7. \usepackage{lineno}
  8. \usepackage[utf8]{inputenc}
  9. \usepackage[english]{babel}
  10. \usepackage{epstopdf}
  11. \usepackage[noprefix,compatible]{nomencl}
  12. \makenomenclature
  14. \begin{document}
  15. \section{Nomenclature }
  16. \subsection{List of Symbols}
  17. \nomenclature[A,01]{${c}_p$}{Food material heat capacity}
  18. \nomenclature[A,02]{$c_{pf}$}{Fully frozen food material heat capacity}
  19. \printnomenclature
  21. \end{document}

Posts: 185
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Sat Nov 03, 2018 3:48 pm

I think what's happening is that TeXworks encompasses each argument (with quotes or the like), which leads to spaces no longer visible as separators for the arguments for the program called. I'd add a new processing tool (call it nomenclature), such that makeindex can still be used for, well, an index.;)
Right of the processing tool list in typesetting preferences, there's a + button: click on it, and in the upcoming window, choose nomenclature for Name, makeindex for Program, and the argument list should look similar to this:
  1. $basename.nlo
  2. -s
  4. -o
  5. $basename.nls
  6. -t
  7. $basename.nlg

That would work without nomencl's `compatible' option. Should you really need filenames generated in a way that was deprecated over a decade ago, then you need to replace .nlo with .glo, .nls with .gls and---consistently---.nlg with .glg. I'd just get rid of the compatible option, though.


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 1 guest