4

I'm creating a document with KOMA-Script's scrartcl, the typical outcome would look something like

with-author

Now, I would like to leave the date and the author fields blank. This results in a lot of whitespace between the last line of the title and the actual text

noauthor

I could manually fiddle with negative vspace, but there must be a cleaner solution for it.

Minimal code to reproduce the last figure.

\documentclass{scrartcl}
\subject{Summer school 2013}
\author{}
\date{}

\title{Exercise sheet 1}
\subtitle{Numerical Optimization: Basics}
% =============================================================================
\begin{document}
\maketitle

random text random text random text random text random text random text random
text random text random text random text random text random text random text
random text random text random text random text random text random text random
text

\end{document}
% =============================================================================
0

1 Answer 1

5

I suggest you redefine the command \@maketitle that prints the titlepage information removing the parts for author and date, or rather just printing the fiedlds you are interested in:

Sample output

\documentclass{scrartcl}

\makeatletter
\renewcommand{\@maketitle}{\null\vskip 2em
\begin{center}
  \ifx\@subject\@empty \else
    {\subject@font \@subject \par}
    \vskip 1.5em
  \fi
  \titlefont\huge \@title\par
  \vskip .5em
  {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
\end{center}
\vskip 2em}
\makeatother

\begin{document}
\subject{Summer school 2013}
\title{Exercise sheet 1}
\subtitle{Numerical Optimization: Basics}
\maketitle

Text in document body.
\end{document}
2
  • This ignores the \titlehead. Sep 24, 2013 at 14:51
  • 1
    @Nico Indeed it ignores several other fields. I have rephrased my description of the answer. The principal is the same in any case: take the standard definition of \@maketitle from scrartcl class and remove the parts you are not interested in. Sep 24, 2013 at 15:03

You must log in to answer this question.

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