[Tex/LaTex] Reducing size of dedication

fontsizekoma-script

I'm writing my thesis in the LyX template that's based on Koma-Script book ("scrbook.cls"). I'm using \dedication to add a quote as the motto.

Is there a way to make the font size of this text smaller?

Best Answer

Update:

In the next release of KOMA script new font elements are implemented titlehead, author, date, publishers, dedication

Source (German): http://www.komascript.de/releasesvn

(The current version is v3.11b)


First answer:

The font size of \dedication inside KOMA is hard coded. The relevant part of the code is:

  \ifx\@dedication\@empty \else
    \next@tpage\null\vfill
    {\centering \Large \@dedication \par}%
    \vskip \z@ \@plus3fill
    \if@twoside \next@tpage\cleardoubleemptypage \fi
  \fi

You can redefine the default definition of \dedication to add some font information. This can be achieved by:

\makeatletter
 \renewcommand{\dedication}[1]{%
    \gdef\@dedication{\normalsize #1}}
\ma‌​ke‌​atother

As a first KOMA-Implementation you can use the following definition which allows the font size of dedication to manipulate by setkomafont:

\setcounter{errorcontextlines}{999}
\documentclass{scrreprt}
\usepackage{xpatch}
\makeatletter
\newkomafont{dedication}{\Large}
\xpatchcmd{\maketitle}{\Large \@dedication}{\scr@fnt@dedication \@dedication}{}{}
\makeatother

\setkomafont{dedication}{\small}
\begin{document}
\author{foo}
\title{foobar}
\dedication{foobarfoo}
\maketitle
\end{document}