I'm having trouble with an enumerate list and some "\item"s that contain longer words. Here LaTeX fails to do a line break and "ignores" my right margin (see \items No. 2 & 5 in my example). I could manually fix this by inserting possible manual breaks (-) in the longer words (see \item No. 3) but that can't be the proper solution, can it? Setting an [rightmargin=2.00cm] in the enumerate-environment didn't change anything about this. I don't mind having a line-break in-between words, as long as the rest of the item-text is justified
Any ideas where my mistake might be? Thank you very much, yours Sascha
\documentclass[oneside, a4paper, fontsize=12bp]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[onehalfspacing]{setspace}
\usepackage[lmargin=3.00cm,rmargin=2.00cm,tmargin=2.0cm,bmargin=3.0cm]{geometry}
\usepackage[latin1]{inputenc}
\usepackage{blindtext}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\item{Wirklich langes Item: \blindtext}
\item{Welchen Einfluss hat die Kongruenz zwischen dem Interventions- und dem Prüfungsformat auf das Ergebnis einer Studie zum Butterfly-Effect?}
\item{Welchen Einfluss hat die Kongruenz zwischen dem Interventions- und dem Prüfungs"-format auf das Ergebnis einer Studie zum Butterfly-Effect?}
\item{Ein etwas längeres Item, aber ich benutze einfach mal ganz andere Wörter und gucke dann mal, was hier passiert.}
\item{Ein noch längeres Item, indem ich nun zunächstaber wirklichdeutlich längerundkompliziertere Wörter verwende}
\end{enumerate}
\end{document}
Best Answer
In addition to what @UlrikeFischer has said in her comment above, delete the
\usepackage[latin1]{inputenc}
line and make sure your packages are up-to-date. It is also recommended to use the standard settings for a KOMA Script document,twoside=false
,fontsize=12pt
, etc. Here is a working code: