LyX ⇒ How to introduce new Sections in the general Index
How to introduce new Sections in the general Index
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?)
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
How to introduce new Sections in the general Index
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}
(...)
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
How to introduce new Sections in the general Index
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.Edulis wrote:...what does the {toc} code means?
Stefan