0

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

4
  • 1
    Please prepare a minimal working example (MWE) that shows how you currently creaate your unnumbered chapters.
    – leandriis
    Jun 27, 2020 at 12:53
  • 1
    Unnumbered chapters, sections, and so on, are not included in the toc by default. Use \addcontentsline{toc}{chapter}{Acknowledgrment} right after \chapter*{Acknowledgement}, &c.
    – Bernard
    Jun 27, 2020 at 13:23
  • @Bernard Could you give an answer based on your comment? I would have answered with that information if you hadn't commented first. An answer might help someone to not ask a similar question again. Jun 28, 2020 at 17:24
  • @PeterWilson: You're right. I've added some words about how to do that automatically with titlesec. I don't know memoir well enough to know how it can be done, but feel free to add an explanation for memoir users.
    – Bernard
    Jun 28, 2020 at 19:16

1 Answer 1

1

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} ...}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.