1

Below is an MWE for an scrartcl document. I'd like to customise the output of \maketitle, in particular to place the title elements left-aligned instead of centred, and to change the fonts and sizes. If possible, I'd also like to put the abstract in a similar form - left-justified, and with "Abstract. " as the initial run-in header, with the option to change font and size for that run-in text.

\PassOptionsToPackage{svgnames,table,dvipsnames,rgb}{xcolor}
\documentclass[a4paper,10pt,oneside,DIV=9]{scrartcl}

% Packages
\usepackage{scrlayer-scrpage}

% demo only
\usepackage{lipsum}
\usepackage{mwe}


\begin{document}
\title{Test document}
\author{Lyndon Drake}
%\institution{University of Oxford}
\date{24 December 2018}
\maketitle

\begin{abstract}
  \lipsum[5]
\end{abstract}

\section{Lipsum}
\lipsum[1]\footnote{\lipsum[2][1-3]}\footnote{\lipsum[3][1-7]

\lipsum[4][1-7]}

\end{document}
2

Left align maketitle with this changed definition:

 \PassOptionsToPackage{svgnames,table,dvipsnames,rgb}{xcolor}
\documentclass[a4paper,10pt,oneside,DIV=9,abstract=true]{scrartcl}

% Packages
\usepackage{scrlayer-scrpage}

% demo only
\usepackage{lipsum}
\usepackage{mwe}


\makeatletter
\renewcommand*{\@maketitle}{%
  \global\@topnum=\z@
  \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
  \ifx\@titlehead\@empty \else
    \begin{minipage}[t]{\textwidth}
      \usekomafont{titlehead}{\@titlehead\par}%
    \end{minipage}\par
  \fi
  \null
  \vskip 2em%
%  \begin{center}%
    \ifx\@subject\@empty \else
      {\usekomafont{subject}{\@subject \par}}%
      \vskip 1.5em
    \fi
    {\usekomafont{title}{\huge \@title \par}}%
    \vskip .5em
    {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
    \vskip 1em
    {%
      \usekomafont{author}{%
        \lineskip .5em%
        \begin{tabular}[t]{@{}l}
          \@author
        \end{tabular}\par
      }%
    }%
    \vskip 1em%
    {\usekomafont{date}{\@date \par}}%
    \vskip \z@ \@plus 1em
    {\usekomafont{publishers}{\@publishers \par}}%
    \ifx\@dedication\@empty \else
      \vskip 2em
      {\usekomafont{dedication}{\@dedication \par}}%
    \fi
%  \end{center}%
  \par
  \vskip 2em
}%

\renewenvironment{abstract}{%
  \if@titlepage
    \titlepage
    \null\vfil
    \@beginparpenalty\@lowpenalty
    \if@abstrt
      \begin{center}
        \normalfont\sectfont\nobreak\abstractname
        \@endparpenalty\@M
      \end{center}
    \fi
  \else
    \if@twocolumn\if@abstrt
        \addsec*{\abstractname}
      \fi
    \else
      \if@abstrt
        \small
        \begin{flushleft}
          {\normalfont\sectfont\nobreak\abstractname
            \vspace{-.5em}\vspace{\z@}}%
        \end{flushleft}
      \fi
%      \quotation
    \fi
  \fi
}{%
  \if@titlepage
    \par\vfil\null\endtitlepage
  \else
    \if@twocolumn\else
%       \endquotation
            \par
    \fi
  \fi
}
\makeatother

\begin{document}
\title{Test document}
\author{Lyndon Drake}
%\institution{University of Oxford}
\date{24 December 2018}
\maketitle

\begin{abstract}
  \lipsum[5]
\end{abstract}

\section{Lipsum}
\lipsum[1]\footnote{\lipsum[2][1-3]}\footnote{\lipsum[3][1-7]

\lipsum[4][1-7]}

\end{document}
3
  • This works - thank you. Can I ask how to make the abstractname appear? I'm using the scrartcl class. – Lyndon Drake Jun 5 '19 at 14:17
  • @LyndonDrake It appears with abstract=true – Cuniye Datacu Jun 5 '19 at 14:56
  • wonderful - thank you! – Lyndon Drake Jun 5 '19 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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