Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

setting \leftmargin in enumerate environment

5,287 views
Skip to first unread message

hgre...@math.cudenver.edu

unread,
Oct 2, 2005, 5:02:14 PM10/2/05
to
I cannot get the compiler to recognize \setlength{\leftmargin}{0pt}
just after \begin{enumerate}. According to my understanding from the
LaTeX Companion, I should see the list align with my paragraphs. I
tried other lengths less than the default to see if the left margin
would move at all (like 10pt), but it's ignored. Is this a bug that I
need to work around, or am I missing something?

Peter Flynn

unread,
Oct 2, 2005, 5:37:13 PM10/2/05
to
hgre...@math.cudenver.edu wrote:

> I cannot get the compiler to recognize \setlength{\leftmargin}{0pt}
> just after \begin{enumerate}.

By then it's too late: the left margin has already been established.

> According to my understanding from the
> LaTeX Companion, I should see the list align with my paragraphs. I
> tried other lengths less than the default to see if the left margin
> would move at all (like 10pt), but it's ignored. Is this a bug that I
> need to work around, or am I missing something?

{\setlength{\leftmargini}{0pt}
\begin{enumerate}
...
\end{enumerate}}

This will hang the item numbers out into the margin: this is presumably
what you were looking for.

///Peter

hgre...@math.cudenver.edu

unread,
Oct 2, 2005, 5:51:54 PM10/2/05
to
that doesn't work (I had tried it). FYI, \setlength{\itemsep}{0pt}
does work aftet the \begin{enumerate}.

Peter Flynn

unread,
Oct 2, 2005, 6:10:39 PM10/2/05
to
hgre...@math.cudenver.edu wrote:

> that doesn't work (I had tried it).

It does, you know. Do this:

\documentclass[11pt]{report}
\begin{document}
\noindent This is the first paragraph


\setlength{\leftmargini}{0pt}
\begin{enumerate}

\item First item
\item Second item
\end{enumerate}
Here is some more text
\end{document}

But it's \leftmargini, not \leftmargin.

> FYI, \setlength{\itemsep}{0pt}
> does work aftet the \begin{enumerate}.

That reduces the *vertical* space between items. You were asking about
the horizontal (margin) spacing.

///Peter

hgre...@math.cudenver.edu

unread,
Oct 2, 2005, 8:15:46 PM10/2/05
to
Aha! The i has it!

0 new messages