Text FormattingChapters and Table of Contents

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
rachelgreg
Posts: 1
Joined: Fri Jan 25, 2013 1:46 pm

Chapters and Table of Contents

Post by rachelgreg »

I am using the thesis document class. When making chapters, I don't want it to say "Chapter 1: Chapter Title" I just want the chapter title. I have found a way to do this, and put this into the table of contents, but would like it to still say "1. Chapter Title of Chapter 1" in the table of contents. The code I'm using is below:

Code: Select all

\chapter*{Chapter Title}\label{Title}
\addcontentsline{toc}{chapter}{Chapter Title}
\stepcounter{chapter}
Is there a simple number generator that increases by an incremental number each time, or is there a better way for me to write this?

Thanks

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Chapters and Table of Contents

Post by Stefan Kottwitz »

Hi,

welcome to the board!

I guess it should look similar to \section, but with bigger font, as usual for chapters? I assume you would like to have it numbered also in the text, such as 3. Chapter Title of Chapter. Having no number in the text header looks strange if the number was in the table of contents. Probably you just want to replace the extra line "Chapter 3" by the number at the beginning. This is the default style in some classes such as scrbook and scrreprt which would be my choice.

With other classes, it can be achieved using the titlesec package. Have a look at the examples in the appendix, there you can copy and modify the \section settings to be similarly used for \chapter.

Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Chapters and Table of Contents

Post by cgnieder »

Hi rachelgreg,

welcome to the LaTeX community!
rachelgreg wrote:I am using the thesis document class.
Which one is that? There are lots of different thesis classes, some of them part of a standard TeX distribution (like MiKTeX or TeX Live) and many not. It would be helpful if you posted a complete Infominimal working example and in case the class is not part of a standard TeX distribution attach the cls file to the forum post.

Regards
site moderator & package author
Post Reply