[Tex/LaTex] Center a single chapter heading

chaptershorizontal alignmentsectioning

I want to have a single chapter heading centered. The other chapter headings should not be centered.

I tried the following:

\documentclass[12pt]{scrbook}
\usepackage{lipsum} % for filler text

\begin{document}


\chapter*{\centering{single centered heading}}
\begin{center}

\lipsum

\end{center}

\chapter*{regular not centered heading}
\lipsum

\end{document}

Best Answer

\chapter*{\centerline{single centered heading}}

works only for a single line. For two or more lines use \parbox{\linewidth}{\centering ...}

Related Question