LaTeX forum ⇒ GeneralAdding nomenclature to the TOC Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 2
Joined: Sat Jan 03, 2015 1:02 am

Adding nomenclature to the TOC

Postby meladey » Sat Jan 03, 2015 1:11 am

I am creating a list of abbreviation using nomencl package. Everything went fine except when I add the nomenclature to the table of contents where it assign the page number of the last page in the section instead of the first page. Here is my commands:
  1. \usepackage{nomencl}
  2. \makenomenclature
  3. \renewcommand{\nomname}{\large\textbf{LIST OF ABBREVIATIONS}}
  4. .
  5. .
  6. .
  7. .
  8. \printnomenclature[5em]
  9. \addcontentsline{toc}{part}{LIST OF ABBREVIATIONS}
  10. \addtocontents{toc}{\protect\vspace{-0.8em}}

So, instead of assigning "xv" which is the first page in my list of abbreviation, it assigns "xvi" which is the last page. Any help please!


User avatar
Site Moderator
Posts: 3515
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jan 05, 2015 11:42 am

You have to print the list after writing the name to the toc file (i.e. it gets the page number where the list starts). If the list is printed first, the page number for the toc will be the page number on which the list was finished.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8367
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany

Postby Stefan Kottwitz » Mon Jan 05, 2015 2:34 pm

Hi Meladey,

welcome to the forum!

Generally, I would do as Johannes suggested, just with a \clearpage or \cleardoublepage (two-sided) before. So it would become

  1. \cleardoublepage
  2. \addcontentsline{toc}{part}{LIST OF ABBREVIATIONS}
  3. \addtocontents{toc}{\protect\vspace{-0.8em}}
  4. \printnomenclature[5em]

By the way, the nomencl package provides an option for that purpose, which you could use instead:


Adding that \vspace would still be possible by redefining \nompreamble, such as


You could also write that \addcontentsline into that nomenclature preamble.

Site admin

Posts: 2
Joined: Sat Jan 03, 2015 1:02 am

Postby meladey » Mon Jan 05, 2015 5:33 pm

Thank you Johannes and Stefan for your help. It works now.

Return to “General”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests