Can't get my head around enumitem's spacing parameters
Perhaps some explanation of what's going would be helpful. showframe
was used to highlight the text block boundaries, while lipsum
provides dummy text, Lorem Ipsum style.
Consider the following MWE:
\documentclass{article}
\usepackage{showframe}% http://ctan.org/pkg/showframe
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\usepackage{lipsum} % http://ctan.org/pkg/lipsum
\begin{document}
\lipsum[1]
\begin{description}
\item Some Item: item description
continues here on indented line
when the description is long
\item Another Item: item description
continues here on indented line
when the description is long
\end{description}
\end{document}
You notice the gap between the left margin and the first heading. This is because \item
in the description
environment actually typesets a label "heading" in bold. This <heading>
is given by the optional argument to \item[<heading>]
. If you specify nothing (no optional argument), the regular gap between the "heading" and the "item body" (or the length \labelsep
) is inserted. To remove this, you could use
% similar to the above MWE
\begin{description}
\item \hskip-\labelsep Some Item: item description
continues here on indented line
when the description is long
\item Another Item: item description
continues here on indented line
when the description is long
\end{description}
% similar to the above MWE
This, however, defeats the purpose of an itemized list (which description
is), since there is no "item" or "heading". Another way to obtain the formatting you're after, is to use enumitem
and format an itemize
environment without any label:
% similar to the above MWE
\begin{itemize}[label=,itemindent=-2.5em,leftmargin=2.5em]
\item Some Item: item description
continues here on indented line
when the description is long
\item Another Item: item description
continues here on indented line
when the description is long
\end{itemize}
% similar to the above MWE
This indents the entire itemize
environment by 2.5em
(given by leftmargin
), "undents" only the itemindent
(the first line indent) by the same amount, and typeset no label (label=
).
However, if your main aim is to remove the typesetting from the item heading itself, rather format it using enumitem
and use the structure that the list was intended for:
% similar to the above MWE
\begin{description}[format=\normalfont]
\item[Some Item:] item description
continues here on indented line
when the description is long
\item[Another Item:] item description
continues here on indented line
when the description is long
\end{description}
% similar to the above MWE
I seem to get the behavior you describe without adjusting any parameters:
Notes:
- The
[showframe]
option was used with thegeometry
package to see the frame. - The
lipsum
package was used to provide dummy text.
Code:
\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{enumitem}
\usepackage{lipsum}
\begin{document}
\begin{description}
\item [Lipsum 1] \lipsum[1]
\item [Lipsum 2] \lipsum[2]
\end{description}
\end{document}