Text Formatting ⇒ Title size and format specification
Title size and format specification
I need to format the chapter headings of my thesis to be in the centre of the page, bold 14-point font and to appear in this format:
Chapter 1. Title of Chapter
At the moment, using the defaults, the font is much larger and the chapter and title appear left justified on two lines as:
Chapter 1
Title of Chapter
How do I do this?
Your help is greatly appreciated
Chapter 1. Title of Chapter
At the moment, using the defaults, the font is much larger and the chapter and title appear left justified on two lines as:
Chapter 1
Title of Chapter
How do I do this?
Your help is greatly appreciated
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Title size and format specification
Assuming a standard class: package titlesec
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: Title size and format specification
I started looking at titlesec while I was looking for a response.
What <shape> should I be using if I want the whole heading on one line?
What <shape> should I be using if I want the whole heading on one line?
Re: Title size and format specification
Actually, none of the settings I try work. This is an example I found but editing it to what I think is appropriate just breaks it:
\titleformat{\chapter}[display]
{\normalfont\sffamily\huge\bfseries}
{\chaptertitlename\ \thechapter}{14pt}{\Huge}
I need the "Chapter 1" and the title to appear on the same line.
I Need a "." after the Chapter 1
I don't understand what the \huge and {\Huge} are for. I need everything to be 14pt.
Can you perhaps help?
\titleformat{\chapter}[display]
{\normalfont\sffamily\huge\bfseries}
{\chaptertitlename\ \thechapter}{14pt}{\Huge}
I need the "Chapter 1" and the title to appear on the same line.
I Need a "." after the Chapter 1
I don't understand what the \huge and {\Huge} are for. I need everything to be 14pt.
Can you perhaps help?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Title size and format specification
Code: Select all
\documentclass{report}
\usepackage{blindtext}
\usepackage{showframe}
\usepackage{titlesec}
\titleformat{\chapter}[block]{\centering\fontsize{14pt}{16pt}\selectfont}{\chaptertitlename~\thechapter.}{12pt}{}
\begin{document}
\chapter{Wombat}
\blindtext
\chapter*{Wombat}
\blindtext
\chapter{Wombat flying high in the sky to visit the magical
unicorn riding on the clouds}
\blindtext
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: Title size and format specification
Hi Johannes
Thank you so much. Can you please explain what the bits do:
\titleformat{\chapter}[block]{\centering\fontsize{14pt}{16pt}\selectfont}{\chaptertitlename~\thechapter.}{12pt}{}
What is the tilde for?
Why 12pt right at the end?
Thank you so much. Can you please explain what the bits do:
\titleformat{\chapter}[block]{\centering\fontsize{14pt}{16pt}\selectfont}{\chaptertitlename~\thechapter.}{12pt}{}
What is the tilde for?
Why 12pt right at the end?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Title size and format specification
Can't you be a bit adventurous and try out what the pieces do? 
Or look into the manual, like i did?
block: the manual hinted that.
centering: You wanted centered
fontsize: You wanted that.
chaptertitlename: Prints chapter
\thechapter: prints the chapternumber
tilde between: unbreakble space between
12pt: randomly used space between chapternumber and actual chapter title

Or look into the manual, like i did?

block: the manual hinted that.
centering: You wanted centered
fontsize: You wanted that.
chaptertitlename: Prints chapter
\thechapter: prints the chapternumber
tilde between: unbreakble space between
12pt: randomly used space between chapternumber and actual chapter title
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: Title size and format specification
Hi Johannes
I'm not that adventurous when I'm a single mom with two kids, an elderly mother, a full-time job and a thesis manuscript to get printed. Then I just want to get it done. At least I managed to get the sections and subsections done on my own by trying and reading the manual before I had to take the mother to the shop and sort the minecraft server out for the son. Now I just have to take him to the orthodontist, have the double glazed window with water in it fixed and then I can send the script off to get a quote for binding.
So your help is even more appreciated than usual.
Jannetta
I'm not that adventurous when I'm a single mom with two kids, an elderly mother, a full-time job and a thesis manuscript to get printed. Then I just want to get it done. At least I managed to get the sections and subsections done on my own by trying and reading the manual before I had to take the mother to the shop and sort the minecraft server out for the son. Now I just have to take him to the orthodontist, have the double glazed window with water in it fixed and then I can send the script off to get a quote for binding.
So your help is even more appreciated than usual.
Jannetta
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Title size and format specification
Sounds like a regular day of a mother + thesis stuff. Wow
Make sure to take a break once in a while
Good luck with your thesis and enjoy life with your family
Johannes
Make sure to take a break once in a while

Good luck with your thesis and enjoy life with your family
Johannes
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.