Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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)
scrlfile.sty    2011/03/09 v3.09 KOMA-Script package (loading files)
tocbasic.sty    2011/05/30 v3.09a KOMA-Script package (handling toc-files)
scrsize11pt.clo    2011/06/16 v3.09a KOMA-Script font size class option (11pt)
typearea.sty    2011/06/16 v3.09a KOMA-Script package (type area)
etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
 ***********
share|improve this answer
    
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
    
@fuenfundachtzig Does my example work for you? If yes, you must be doing something different in your actual document. –  lockstep Jan 18 '12 at 22:08
    
No, it's the example that doesn't work. I've tried on two different machines but without success. –  fuenfundachtzig Jan 19 '12 at 9:51
    
I am using v3.04a of KOMA-Script (3.03 / 3.03b for scrlfile.sty, tocbasic.sty) and v1.8 e-Tex tools. (Ubuntu 11.10). –  fuenfundachtzig Jan 19 '12 at 19:30
    
@fuenfundachtzig Please upgrade your TeX distribution and try again. –  lockstep Jan 19 '12 at 19:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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