LyXHow to introduce new Sections in the general Index

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Edulis
Posts: 16
Joined: Thu May 26, 2011 10:38 pm

How to introduce new Sections in the general Index

Post by Edulis »

Hi everyone,
I have a problem when generating the general Inndex of my masther-thesis.
I have inserted some scientific articles as a pdf by linking them, but the different sections (intro, experimental, discussion, conclusions ...) do not appear in the general index.

How could I manually enter these sections in the general index?
Which order I need to introduce? (in the preamble or in red-code?)
Last edited by Edulis on Sat May 28, 2011 8:20 am, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Edulis
Posts: 16
Joined: Thu May 26, 2011 10:38 pm

How to introduce new Sections in the general Index

Post by Edulis »

OK,
I just solved the problem:

How to add new sections to the General Index, sub ...

For example, when you have a section not numbered (like "Section*"), or do not appear anywhere. Introduce in the text next to section unnumbered this red-tex-code:
\addcontentsline{toc}{section}{whatever you want to appear}

In my case, as I have a pdf link, I've introduce all the codes one after another before the pdf link (in the general index all of them show the same page, but at least appear). I've written:

Code: Select all

\addcontentsline{toc}{section}{Introduction}
\addcontentsline{toc}{section}{Experimental}
\addcontentsline{toc}{subsection}{Instrumental}
(...)
...what does the {toc} code means?
Last edited by Stefan Kottwitz on Fri May 27, 2011 10:06 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

How to introduce new Sections in the general Index

Post by Stefan Kottwitz »

Hi Edulis,
Edulis wrote:...what does the {toc} code means?
toc is an abbreviation for table of contents. It means that the contents line will be written to the file with the extension .toc. Similarly, lof stands for list of figures and lot for list of tables.

Stefan
LaTeX.org admin
Post Reply