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?

lockstep
  • 250,273
pipita
  • 13
  • 1
    \def\nomname{Glossary} most likely. Please don't post such fragments only and loading imakeidx and makeidx together is not recommended! –  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! –  Aug 30 '16 at 13:20
  • This question may help regarding the use of multiple such lists http://tex.stackexchange.com/q/86666/how-to-create-both-list-of-abbreviations-and-list-of-nomenclature-using-nomencl – Dai Bowen Aug 30 '16 at 14:13

1 Answers1

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}