I'm using the report
document class for a thesis, and I need to add things like "Acknowledgements" and an "Introduction". I noticed that there is an \abstract
command which would have been wonderful if applied similarly. How do I add these without messing up the chapters' numbering while being picked up by the ToC in proper order and page numbering?
[Tex/LaTex] Creating unnumbered parts/chapters/sections (plus adding them to the ToC and/or header)
header-footernumberingsectioningstarred-versiontable of contents
Best Answer
To get unnumbered chapters, parts, sections, subsections, etc, you just affix a
*
(asterisk) to the respective sectioning command; hence, you'd type something likeor
Exactly which sectioning command you ought to use will depend importantly on aspects of the document that you haven't told us about. E.g., should the respective parts begin on a page of their own, and how prominent do you want the caption of the sectioning command to be?
Note that unnumbered parts, chapters, sections, etc are not included automatically in the table of contents (ToC). In case you need some (or all) of them to be included, you should insert an
\addcontentsline
instruction after each such sectioning command. For example, you'd type:The second argument of the
\addcontentsline
instruction -- here,chapter
-- instructs LaTeX to typeset the entry in a given style, here, "chapter style".The following MWE
generates this ToC: