LyXHow 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.
Post Reply
Naysuki
Posts: 2
Joined: Tue Jul 09, 2019 1:26 pm

How to include LOF and nomenclature in the table of contents

Post by Naysuki »

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 !

Thanks in advance !


\addcontentsline{toc}{chapter}{Contents}

\addcontentsline{toc}{chapter}{List Of Figures}

\addcontentsline{toc}{chapter}{Nomenclature}







\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}}
%----------------------------------------------

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

esdd
Posts: 36
Joined: Sat Jan 25, 2014 9:13 pm

How to include LOF and nomenclature in the table of contents

Post by esdd »

\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

How to include LOF and nomenclature in the table of contents

Post by Naysuki »

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 !
Post Reply