# Is there a \lowertitleback for \extratitle?

I am using the koma package to typeset my thesis and was wondering if there is something like "\lowerextratitleback", i.e. the analog of \lowertitleback for the extra title page which can be set using \extratitle, to put text on the backside of the extra titlepage?

-

Now there is. :-) Note that \extratitleback will only be typeset if \extratitle isn't empty and twoside is enabled. This works for the titlepage as well as for the notitlepage class option. To patch \maketitle (which features an optional argument in KOMA-Script) I used the trick described by Martin Scharrer in this answer.

EDIT: Replaced \extratitleback with \upperextratitleback and \lowerextratitleback. Note that -- corresponding to KOMA-Scripts implementation of \uppertitleback and \lowertitleback -- the arguments of the new commands are typeset in minipages, so the caveats for this environment apply (e.g., a \parindent of 0pt).

\listfiles

\documentclass{scrbook}

\usepackage{etoolbox}

\makeatletter
\newcommand*{\@upperextratitleback}{}%
\newcommand{\upperextratitleback}[1]{\gdef\@upperextratitleback{%
#1%
}}
\newcommand*{\@lowerextratitleback}{}%
\newcommand{\lowerextratitleback}[1]{\gdef\@lowerextratitleback{%
#1%
}}
\newcommand*{\@makeextratitleback}{%
\if@twoside
\noindent
\begin{minipage}[t]{\textwidth}
\@upperextratitleback
\end{minipage}
\par
\vfill
\noindent
\begin{minipage}[b]{\textwidth}
\@lowerextratitleback
\end{minipage}
\next@tpage
\fi
}
\expandafter\patchcmd\csname\string\maketitle\endcsname{%
\cleardoubleemptypage
}{%
\@makeextratitleback
}{}{}
\patchcmd{\@maketitle}{%
\if@twoside\null\next@tpage\fi
}{%
\@makeextratitleback
}{}{}
\makeatother

\extratitle{Extratitle}
\upperextratitleback{Upperextratitleback}
\lowerextratitleback{Lowerextratitleback}
\title{Title}
\author{Author}
\uppertitleback{Uppertitleback}
\lowertitleback{Lowertitleback}

\begin{document}

\maketitle

\end{document}


EDIT: Here's my file list produced by adding \listfiles at the start of the example. Check if you're using the same versions.

 *File List*
scrbook.cls    2011/06/16 v3.09a KOMA-Script document class (book)
scrkbase.sty    2011/06/16 v3.09a KOMA-Script package (KOMA-Script-dependent ba
sics and keyval usage)
scrbase.sty    2011/06/16 v3.09a KOMA-Script package (KOMA-Script-independent
basics and keyval usage)
keyval.sty    1999/03/16 v1.13 key=value parser (DPC)

The version before the edit worked fine, but I can't get the updated version to print the Upperextratitleback and Lowerextratitleback text. –  fuenfundachtzig Jan 18 '12 at 19:23