GeneralChapter headings without the word chapter!

LaTeX specific issues not fitting into one of the other forums of this category.
Mateo
Posts: 1
Joined: Tue Aug 07, 2007 4:12 am

Chapter headings without the word chapter!

Post by Mateo »

Hello, I have toyed around with trying to remove the words "Chapter 1", etc. from the chapter's first page. I know the use of * will remove them, but unfortunately this removes them from the table of contents as well. Is there a way to get rid of the words "Chapter 1" from the first page of the chapter but without affecting the table of contents?

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Chapter headings without the word chapter!

Post by gmedina »

To supress only the word chapter, add this in the preamble:

Code: Select all

\renewcommand{\chaptername}{}
If you also want to supress the numbering then add

Code: Select all

\renewcommand{\thechapter}{}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Telbar
Posts: 4
Joined: Tue Aug 14, 2007 11:30 am

Re: Chapter headings without the word chapter!

Post by Telbar »

Because it's also about chapter headings I'll just put it here:

How can I get a "Chapter 0"?

Something like:
Chapter 0: Introduction
Chapter 1: Bla
Chapter 2: Blabla
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Chapter headings without the word chapter!

Post by gmedina »

Add in the preamble

Code: Select all

\setcounter{chapter}{-1}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Telbar
Posts: 4
Joined: Tue Aug 14, 2007 11:30 am

Chapter headings without the word chapter!

Post by Telbar »

gmedina wrote: Add in the preamble

Code: Select all

\setcounter{chapter}{-1}


Thanks!

And :oops: ,because the answer is that simple :mrgreen:
kdmckale
Posts: 2
Joined: Tue Jul 22, 2008 7:32 pm

Re: Chapter headings without the word chapter!

Post by kdmckale »

OK...here's a tough one:

How do you remove the word "Chapter" from the table of contents without modifying the body of the document.

For Example:
TOC:
1 Preliminaries.................3
2 Exciting News...............7
Body:
Chapter 1 Preliminaries

Chapter 2 Exciting News
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Chapter headings without the word chapter!

Post by gmedina »

kdmckale wrote:OK...here's a tough one:

How do you remove the word "Chapter" from the table of contents without modifying the body of the document.

For Example:
TOC:
1 Preliminaries.................3
2 Exciting News...............7
Body:
Chapter 1 Preliminaries

Chapter 2 Exciting News
:shock:

Code: Select all

\documentclass{book}

\begin{document}
\tableofcontents

\chapter{Preliminaries}
\chapter{Exciting News}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
kdmckale
Posts: 2
Joined: Tue Jul 22, 2008 7:32 pm

Chapter headings without the word chapter!

Post by kdmckale »

I guess it helps to mention I'm working within the confines of a mathematical thesis and a template provided by my department???

From the previous post, I take it to mean by default it's not to automatically have the word Chapter in the table of contents but is something added in by the thesis template????

P.S. They are here:
http://www.math.ttu.edu/department/thesis.shtml
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Chapter headings without the word chapter!

Post by gmedina »

kdmckale wrote:I guess it helps to mention I'm working within the confines of a mathematical thesis and a template provided by my department???
Of course it helps.
kdmckale wrote:From the previous post, I take it to mean by default it's not to automatically have the word Chapter in the table of contents...
[/quote]
Yes, the default behaviour for the standard book and report document classes is the one obtained with the code in my previous response.
kdmckale wrote: ... but is something added in by the thesis template????

P.S. They are here:
http://www.math.ttu.edu/department/thesis.shtml
I do not understand that question.

There are two document classes in that link. I used the file ttuthes.cls and did a test with the following code (I attached the pdf I obtained):

Code: Select all

\documentclass{ttuthes}

\begin{document}
\tableofcontents

\chapter{Dummy chapter one}
\section{Dummy section}

\chapter{Dummy chapter two}
\section{Dummy section}

\end{document}
Besides some inconsistency in the way sectional units are numbered in the ToC (the counter for chapters uses Roman numerals, however sections use arabic numerals) the word "chapter" does not appear in the ToC.
Attachments
test.pdf
(9.57 KiB) Downloaded 3003 times
1,1,2,3,5,8,13,21,34,55,89,144,233,...
gigi
Posts: 2
Joined: Thu Sep 04, 2008 11:05 am

Re: Chapter headings without the word chapter!

Post by gigi »

Hi,

I managed to remove the chapter word and number from my file with the commands you gave :
\renewcommand{\chaptername}{}
\renewcommand{\thechapter}{}

But I would like to create titles manually for each of my chapter. So is it possible to remove also the name of the chapter (for example "Introduction") at the beginning of it, but with keeping the name of the chapter written in small at the top of the other pages of the chapter, as well as the number of the chapter (that has disappeared because I used the command above) ?

Thank you very much for your help !
Post Reply