Because of my thesis report
style, I want to have the chapter title in a single page. I'm working with titlesec
package.
I used \clearpage
and \newpage
to solve this, but doesn't work.
I also used \titlespacing
, but without good results for different size of titles.
\documentclass[11pt]{report}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\usepackage{calc}
\usepackage{lmodern}
\usepackage{lipsum}
\titleformat{\chapter}[display]
{\filcenter}
{{%
\filcenter\fontsize{48pt}{48pt}\usefont{T1}{phv}{m}{n}\MakeUppercase{\chaptername}
\fontsize{48pt}{48pt}\selectfont\thechapter%
}%
}
{5pt}
{\Huge\usefont{T1}{phv}{b}{n}%
\parbox{\textwidth-\widthof{\LARGE\sffamily\MakeUppercase{\chaptername}}}%
}
\begin{document}
\setcounter{chapter}{21}
\chapter{Chapter Title}
\section{Section one}
\lipsum[1]
\section{Section two}
\chapter{Another chapter}
\section{Section one}
\lipsum[2]
\end{document}
Best Answer
To have the chapter heading to appear on a page of its own, add a
\clearpage
in the last optional argument for\titleformat
. To have the heading vertically centered, add\vfill
before andafter
the title is typeset:To prevent these settings from affecting the ToC, LoF and LoT, you might also need a definition using the
numberless
key to apply to those unnumbered chapters: