4

I want to have for just one chapter a special chapter heading format. So I use the command

\setkomafont{chapter}{\centering\large\rmfamily}

and then I want to revert back to the default chapter style that scrbook uses. The problem is that I don't know this default style (e.g. someone may change the preamble and have \Huge size instead of \LARGE that I have now). Can I somehow save the current chapter style and restore it later?

3

You could place the \setkomafont and \chapter within a group ({ .. }), that way the change is local.

\documentclass{scrreprt}
\begin{document}
\chapter{This}

{\setkomafont{chapter}{\centering\large\rmfamily}
\chapter{That}}

\chapter{This again}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.