0

I am using the scrbook document class, and I just want to set the background color for the standard title page created through \maketitle.

I already tried using the pagecolor package [1], but it shows no effect for the scrbook class. (Works with memoir, though.)

[1] https://tex.stackexchange.com/a/240862/222387

Any help is appreciated!

1

1 Answer 1

2

I don't see any problem without needing a special package for it:

\documentclass{scrbook}
\usepackage{xcolor}
\AddToHook{env/titlepage/begin}{\pagecolor{green}}
\AddToHook{env/titlepage/after}{\nopagecolor}
\begin{document}
\title{Title}
\author{Author}
\maketitle
\chapter{Test}
\end{document}

Or for those, who use an old LaTeX without generic hooks:

\documentclass{scrbook}
\usepackage{xcolor}
\begin{document}
\pagecolor{green}
\title{Title}
\author{Author}
\maketitle
\nopagecolor
\chapter{Test}
\end{document}

Both examples have the same result:

making all titlepage environments green

1
  • Thank you. You provided the correct syntax. The "solution" in the link [1] is posted is erroneous. May 28 at 11:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .