General ⇒ How to end a chapter{} and start a chapter*{}
-
- Posts: 1
- Joined: Sun Oct 27, 2019 4:49 am
How to end a chapter{} and start a chapter*{}
\listoftables
\addcontentsline{toc}{chapter}{Index of Table}
When I'm in chapter*{} the heading is from the the chapter{Index of Table}. What do I do?
Any help will be useful.
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
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
How to end a chapter{} and start a chapter*{}
Sorry, but this is already wrong, because you are adding the last page of the index of tables to the table of contents instead of the first one. You have at least to use something like:arrobaRonD96 wrote:\listoftables
\addcontentsline{toc}{chapter}{Index of Table}
Code: Select all
\cleardoublepage% start next open page
\csname phantomsection\endcsname% for hyperref (doesn't matter, if hyperref is not used)
\addcontentsline{toc}{chapter}{Index of Tables}% ToC entry
\markboth{Index of Tables}{Index of Tables}% running head
\listoftables
\addcontentsline
and \markboth
to the auxiliary file of the index of tables using \addtocontents
. And if you'd use tocbasic to generate the index of tables you could simply use \setuptoc
to activate the feature to add the index of tables to the table of contents. And if you also are using a KOMA-Script class you can even use a class option to do all the work. (And in such a case you even should not use \addcontentsline
but \addchaptertocentry
.) So—as almost ever—it would have been useful to show us not only a code snippet but a 
