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
Theses, Books, Title pages ⇒ How can I get rid of the first "Chapter #" header?
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
NEW: TikZ book now 40% off at Amazon.com for a short time.
Re: How can I get rid of the first "Chapter #" header?
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
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
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: How can I get rid of the first "Chapter #" header?
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
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
Re: How can I get rid of the first "Chapter #" header?
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
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
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: How can I get rid of the first "Chapter #" header?
Thank you very much! Your \addcontentsline suggestion did it for me.
Sliwa
Sliwa
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: How can I get rid of the first "Chapter #" header?
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
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