[Tex/LaTex] Put chapter title in the middle of a page (vertically)

chaptersfncychapvertical alignment

I'm using fncychap package to customize my chapters' titles. I want to put the chapter title in the center of a separate page (vertically).

\documentclass{report}
\usepackage[Bjornstrup]{fncychap}
\begin{document}
\chapter{Bjornstrup}%how to put it in the center of the page
\newpage
somecontent....
\end{document}

Best Answer

Use the macro \chaptervc to start your chapters. As you can see, it takes only one argument, just like the regular \chapter command.

It works by putting the original \chapter command output at vertical center, by using two \vfills, one before, one after. Then it uses a \clearpage to get a new page, since you wanted to have your chapter title in an independent page. (Though a \newpage should also be good here, since it is very unlikely to remain any unprocessed floats at this point.)

\documentclass{report}
\usepackage[Bjornstrup]{fncychap}
\usepackage{lipsum}

\long\def\chaptervc#1{\vfill\chapter{#1}\vfill\clearpage}

\begin{document}
\chaptervc{Bjornstrup}%how to put it in the center of the page

\lipsum[1]

\chaptervc{Another Chapter}

\lipsum[2]
\lipsum[3]
\lipsum[4]

\chaptervc{And Another}

\lipsum[5]

\end{document}