GeneralChapter Headings

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jediwhelan
Posts: 16
Joined: Fri Jul 25, 2008 5:54 pm

Chapter Headings

Post by jediwhelan »

Hello,

I'm writing up some notes and am compiling my document in report format. I would like to suppress the chapter headings,

i.e. Chapter 1, Chapter 2, Chapter 3 etc...

leaving just the chapter title,

i.e. Lecture 1, Lecture 2, Lecture 3 etc...

I can do this using

\chapter*{Lecture1}

But then I dont get a table of contents? Can any of you wonderful latexers help me?

Thanks in advance,

Paul

Recommended reading 2024:

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

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

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

Chapter Headings

Post by localghost »

You can add your lectures with one simple line to the ToC.

Code: Select all

\chapter*{Lecture 1}
\addcontentsline{toc}{chapter}{Lecture 1}
Sections are added analogous.


Best regards
Thorsten¹
jediwhelan
Posts: 16
Joined: Fri Jul 25, 2008 5:54 pm

Re: Chapter Headings

Post by jediwhelan »

Brilliant

Cheers

Paul
Post Reply