[Tex/LaTex] Reduce space between title and top margin in scrartcl

koma-scriptscrartclspacingtitles

How can I reduce the space between the title and the top margin in my example document with KOMA-Script class scrartcl below?

\documentclass[a4paper,11pt]{scrartcl}
\usepackage{blindtext}
\title{This is a nice title!}
\subtitle{This is an even nicer subtitle!}
\author{John Doe}
\begin{document}
\maketitle
\section{Introduction}
\blindtext
\blindtext
\end{document}

I already tried this solution in which the titling package is used, however then the \subtitle is not displayed anymore.

I am looking for a quick and dirty solution, like using \vspace{-10px} or something like that.

Best Answer

Well, if you want it quick and dirty simply add \vspace{-1cm} into the title command:

\title{\vspace{-1cm}This is a nice title!}

Change 1cm for your needs. In the following MWe I added package showframe to visualize the typing area and margins.

With the following MWE

\documentclass[a4paper,11pt]{scrartcl}

\usepackage{blindtext}
\usepackage{showframe}

\title{\vspace{-1cm}This is a nice title!}
%\title{This is a nice title!}
\subtitle{This is an even nicer subtitle!}
\author{John Doe}


\begin{document}

\maketitle
\section{Introduction}
\blindtext
\blindtext
\end{document}

you get the result:

resulting pdf