1

I am trying to add a glossary to my .tex file. A part of my code is:

\usepackage{nomencl}
\usepackage{makeidx}
\usepackage{imakeidx}
\makenomenclature
\begin{document}
%Glossary
\addcontentsline{toc}{chapter}{Glossary}
\include{Glossary}
\printnomenclature
\end{document}

In file Glossary.tex I have things like:

\nomenclature{thing1}{definition of thing1}

My problem is: when I get the .pdf file "Nomenclature" appears in the top of the page. I want it to be renamed "Glossary". What should I do?

  • 1
    \def\nomname{Glossary} most likely. Please don't post such fragments only and loading imakeidx and makeidx together is not recommended! – user31729 Aug 30 '16 at 13:14
  • @ChristianHupfer, what if I want to put a Nomenclature (with symbols definitions) and a Glossary (with terms definitions)? – pipita Aug 30 '16 at 13:18
  • 1
    Use the glossaries package -- that's easier! – user31729 Aug 30 '16 at 13:20
  • This question may help regarding the use of multiple such lists tex.stackexchange.com/q/86666/… – Dai Bowen Aug 30 '16 at 14:13
1

Answer to the original question (but not the follow up question in the comments)

The name of the nomenclature is defined in \nomname. Redefinition to Glossary is quite straightforward!

\documentclass{book}
\usepackage{nomencl}

\usepackage{blindtext}
\renewcommand{\nomname}{Glossary}
\makenomenclature

\nomenclature{$x$}{a variable}

\begin{document}
\tableofcontents
\clearpage
\blindtext
\clearpage
\printnomenclature
\addcontentsline{toc}{chapter}{\nomname}
\end{document}

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.