## LaTeX forum ⇒ LyX ⇒ How to include LOF and nomenclature in the table of contents

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Naysuki
Posts: 2
Joined: Tue Jul 09, 2019 1:26 pm

Hello everybody !
I wanted to add the both List of figures and Nomenclature in my Contents, it works !
However, I have an issue with numbers when I do that. In fact, I can see on the pdf that the number of contents/list of figures/nomenclature are "i" so it is not the right number. They are all refers to the first page.

If someone know how can I change that, I would appreciate.
By the way, I use Lyx and the following code is in the document preamble.
I'm new on the forum, so if I did something wrong you can tell me !

[LaTeX]

\usepackage {nomencl}%
\renewcommand{\nompreamble}{The next list describes several symbols that will be later used within the body of the document}%
% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------

esdd
Posts: 36
Joined: Sat Jan 25, 2014 9:13 pm
\addcontentsline must be used next to the title of the lists (LOF etc) and not in the preamble. So do not add the entries manually.

If you use a standard class, load package tocbibind to add the TOC, LOF etc to the TOC:

\usepackage{tocbibind}

Package nomencl provides an option for the TOC entry:

\usepackage[intoc]{nomencl}

Naysuki
Posts: 2
Joined: Tue Jul 09, 2019 1:26 pm
Hi !

At first, I want to say thank you for you answer, it works now !

Yes, I use report(standard class), I tried to use [intoc] option but I don't know why it doesn't work
I can build the pdf file only if I don't use any option.

The newt time, I'll try to load tocbibind package !