TransWikia.com

Any one can explain me how to add zero chapters in table of content

TeX - LaTeX Asked by Shoaib Assar on February 25, 2021

In my thesis work, I need to add zero chapters in table of content like table of content itself with page number, Abstract, acknowledgement, notation and introduction, but by using tableofcontents I got only the chapters in content list those have chapter numbers. so need suggestions for this issue thanks

One Answer

Unnumbered chapters, sections, and so on, are not included in the toc by default. If you want to add them for a given level, use, e.g. for a chapter,

addcontentsline{toc}{chapter}{chaptertitle} right after chapter*{chaptertitle}

If you customise the layout of section titles via the titlesec package, this inclusion can be automatic with the numberless key and the explicitoption, inserting a similar code in titleformat along this line:

titleformat{name=chapter, numberless}{...}{...}{...}{addcontentsline{toc}{chapter}{#1} ...}

Answered by Bernard on February 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP