TeX - LaTeX Asked by AntPalmer on July 1, 2021
I’m trying to create a table of contents in lyx, so I used addcontentsline{toc}{chapter}{Topic}
right after each heading, in ERT. However, this happens:
I have two issues: The first is that I would like to replace the text "Contents" with "Table of Contents".
I would also like to add a gap between each heading and the page number, as well as a line break between successive headings. All of them are glued together in one big mess. How do I address this?
Do not do that. To make a table of contents is just Insert → List/TOC → Table of Contents and then simply write the chapters after the inserted box. You can the preview of the TOC in Navigate menu or clicking in Table of Contents
gray box.
To change the title of the TOC, see How to change the title of ToC? and modify accordingly the LaTeX preamble in Document → Setings....
Use addcontentsline
only to manually "add" to the automatic contents something that usually should not be in the TOC, like unnumbered headers with the ending start in the left dropdown menu.
But before of thinking in manual entanglements, also in Document → Setings... go to Numbering & TOC to set which numbered headers must be numbered (worth the redundancy) and in the TOC by default.
Answered by Fran on July 1, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP