3

I want to make my nomenclature using nomencl to look like

enter image description here

taken from here but I have no idea how to do it.

How would the nomencl.cfg file have to look like, and would I what changes would I have to make to the nomencl.ist file?

2 Answers2

3

The following code reproduces exactly the one in the figure:

\documentclass{article}

\usepackage[intoc,refpage]{nomencl} \usepackage{hyperref}

\renewcommand{\nomname}{List of Notations} \renewcommand*{\pagedeclaration}[1]{\dotfill\hyperpage{#1}} \makenomenclature

\begin{document}

\printnomenclature[1.5cm] % Change the value between square brackets % to increase space between symbols and descriptions

\clearpage

[F=ma]

\nomenclature{$F$}{Force} \nomenclature{$a$}{Acceleration}

\clearpage

[E=MC^2]

\nomenclature{$E$}{Energy} \nomenclature{$M$}{Mass} \nomenclature{$c$}{Speed of Light}

\end{document}

enter image description here

Some remarks:

The package option intoc inserts the "List of Notations" in the TOC without any need for a line like:

\addcontentsline{toc}{section}{\nomname}

You need to run the following sequence to get correct references (assuming your .tex file is named yourfile.tex:

pdflatex yourfile

makeindex -s nomencl.ist -t yourfile.nlg -o yourfile.nls yourfile.nlo

pdflatex yourfile

makeindex -s nomencl.ist -t yourfile.nlg -o yourfile.nls yourfile.nlo

pdflatex yourfile

karlkoeller
  • 124,410
2

This should work:

\documentclass{article}
\usepackage{typearea}
\usepackage{lipsum}

\usepackage[refpage]{nomencl}
\def\pagedeclaration#1{\dotfill\nobreakspace#1}
\makenomenclature

\begin{document}
\lipsum[1-5]
\nomenclature{$a$}{Acceleration}
\nomenclature{$F$}{Force}
\nomenclature{$M$}{Mass}
\clearpage
\lipsum[6]
\nomenclature{$c$}{Speed of Light}
\nomenclature{$E$}{Energy}

\renewcommand{\nomname}{List of Notations}
\addcontentsline{toc}{section}{\nomname}
\printnomenclature

\end{document}
Ruben
  • 13,448