When using \documentclass{article}, the MWE
\documentclass{article}
\begin{document}
\section{methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl (Compound 1)}
\end{document}
If, however, the corresponding KOMA-Script class is used,
\documentclass{scrartcl}
\begin{document}
\section{methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl\-methyl (Compound 1)}
\end{document}
will return:
The line break between 'Compound' and '1' is obviously not necessary. One can prevent this by adding ~, but without understanding why scrartcl behaves this way, I see it more as a workaround. I'm using pdflatex from an up-to-date TeX Live 2019. Thanks for your help.





\raggedright. – Sveinung Jan 11 '20 at 12:16