Page LayoutChapters appearing w/o a chapter number

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Chapters appearing w/o a chapter number

Post by thedoctor818 »

I am compiling a book, and would like to know if there is a way for the chapters to appear in the toc, yet in the text proper can they appear without: "Chapter 1: <title>" like say just <title>??? I do not know if this is possible, but it would be great if so. Or, I probably might not mind if the titles were preceeded by just the numbers 1,2, etc as in the article document class; but then I could not use appendices. Help please.
-Michael D

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Chapters appearing w/o a chapter number

Post by localghost »

For standard classes there is a simple solution to add unnumbered chapters to the ToC.

Code: Select all

\chapter*{Chapter Title}
\addcontentsline{toc}{chapter}{Chapter Title}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Note that this also affects the behaviour of column titles (headers) in your document. Depending on your setup, these chapters won't appear.

Other document classes like those of the KOMA Script bundle or the memoir class have built-in features to get the desired result.


Best regards
Thorsten
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Re: Chapters appearing w/o a chapter number

Post by thedoctor818 »

Thanks Thorsten, that did the trick.

-Michael
-Michael D
Post Reply