# How to change the font size of the abstract in KOMA-script?

More obviously, the following does work:

\addtokomafont{abstract}{\footnotesize}


Less obviously, the following does not work either:

\usepackage{etoolbox}
\patchcmd{\abstract}{\footnotesize}{}{}{}


So is it possible to change the abstract font size? If so how?

Edit

Here is a minimal example of my problem (based on the answer below):

\documentclass{scrartcl}
\usepackage{lipsum}

\begin{document}
\begin{abstract}
\lipsum[1]
\end{abstract}
\section{A Section}
\lipsum
\end{document}


I want the abstract to appear in a smaller font size but doing so in the preamble.

• Koma does not provide an abstract element for font purpose. Apr 20, 2016 at 21:55
• What class are you using? Apr 20, 2016 at 21:57

Unfortunaly there is no MWE in your question. So I can only guess what you are doing.

\documentclass{scrartcl}
%\documentclass{scrreprt}
%\documentclass[abstract]{scrreprt}
\usepackage{lipsum}

\usepackage{etoolbox}
\AtBeginEnvironment{abstract}{\footnotesize}

\begin{document}
\begin{abstract}
\lipsum[1]
\end{abstract}
\section{A Section}
\lipsum
\end{document}


or

\documentclass[abstract]{scrartcl}
\usepackage{lipsum}

\usepackage{etoolbox}
\patchcmd\abstract{\small}{\footnotesize}{}{}

\begin{document}
\begin{abstract}
\lipsum[1]
\end{abstract}
\section{A Section}
\lipsum
\end{document}


• Great. I guess this provides a quite general way to change the font size of (almost?) any environment in KOMA script, right? Apr 21, 2016 at 8:41
• No, it depends on the definition of the environment.
– esdd
Apr 21, 2016 at 9:07