Theses, Books, Title pagesHow can I get rid of the first "Chapter #" header?

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: How can I get rid of the first "Chapter #" header?

Post by templateuser »

Hi,

is it possible to use

\usepackage{titlesec}
\titleformat{\chapter}{}{}{0em}{\bf\LARGE}

and still have numbers before the chapter names, which do not appear in the TOC?

Example:
Chapter name: 1 Introduction
TOC: 1 Introduction
Currently I get in the TOC: 1 1 Introduction

Thanks,
Toby

Recommended reading 2024:

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

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

User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Re: How can I get rid of the first "Chapter #" header?

Post by Vel »

Hi Toby,

Not sure why you're getting two chapter numbers with that code. Try this, it prints the chapter number once before the chapter title in the document and in the ToC:

\usepackage{titlesec}
\titleformat{\chapter}{}{\bf\LARGE\thechapter~}{0em}{\bf\LARGE}

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: How can I get rid of the first "Chapter #" header?

Post by templateuser »

Hello Vel,
I have a somewhat related question. I would like my introduction and conclusion to be in the ToC, but not as chapters:
Introduction
1. Chapter 1
2. Chapter 2
Conclusion

I tried /chapter*{Introduction} but that hides it from the ToC.
Thank you for this template by the way, it is great.

Sliwa
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Re: How can I get rid of the first "Chapter #" header?

Post by Vel »

Hi Sliwa,

You can add a top level heading to the table of contents like so: \addcontentsline{toc}{chapter}{Chapter One}. If you then also want to maintain subsection numbering after that, I'd recommend you have a look here: http://tex.stackexchange.com/questions/ ... ofcontents

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: How can I get rid of the first "Chapter #" header?

Post by templateuser »

Thank you very much! Your \addcontentsline suggestion did it for me.

Sliwa
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: How can I get rid of the first "Chapter #" header?

Post by templateuser »

Hi Vel,
I am writing my thesis in latex. I just want to change the font size of chapter title. I used the titlesec package. But the problem is now "Chapter #" disappear and it just appears "# Introduction". I want to display it as

Chapter #
Introduction

I used
\titleformat{\chapter}
{\normalfont\Large\bfseries}{\thechapter}{1em}{}

or is there any other way to change the font size interactively?

Thanks you very much

shastry
Post Reply