MakeIndex, Nomenclature, Glossaries and AcronymsNomenclature not printed

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

Nomenclature not printed

Post by chavavic »

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 nomencl.ist -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 nomencl.ist -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 :

Code: Select all

\documentclass[a4paper,preprint,11pt,authoryear]{elsarticle}
\usepackage{graphicx}
\usepackage{array,multirow,booktabs}
\usepackage{amssymb,amsthm,amsmath,mathtools}
\usepackage[]{breqn}
\usepackage{caption}
\usepackage{lineno}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{epstopdf}
\usepackage[noprefix,compatible]{nomencl}
\makenomenclature

\begin{document}
\section{Nomenclature }
\subsection{List of Symbols}
\nomenclature[A,01]{${c}_p$}{Food material heat capacity}
\nomenclature[A,02]{$c_{pf}$}{Fully frozen food material heat capacity}
\printnomenclature

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Nomenclature not printed

Post by rais »

Hi,
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:

Code: Select all

$basename.nlo
-s
nomencl.ist
-o
$basename.nls
-t
$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.

KR
Rainer
Post Reply