enumerate

592 views
Skip to first unread message

Thomas John VanDrunen

unread,
Apr 30, 2008, 11:59:24 AM4/30/08
to latexus...@googlegroups.com


How can I pull over an enumerate environment so that the numbers appear
flush with the left side of the preceding text?

It seems to me the right way to do this is to set leftmargin and
labelwidth to 0, but I tried that and it hasn't changed anything.

I've fooled around a little with a negative value to hspace or hspace*,
but that hasn't worked either. I can't put the enumerate into a minipage
and use a negative hspace on the minipage because the enumerate spans a
page.

Thanks

Tom VanDrunen

Thomas VanDrunen
Department of Mathematics and Computer Science
Wheaton College
---
Dia ton oiktirmon tou Theou, ten logiken latreian humon.
(In light of the mercies of God, your rational service.) Rom 12:1

jon

unread,
Apr 30, 2008, 2:12:31 PM4/30/08
to LaTeX Users Group
On Apr 30, 11:59 am, Thomas John VanDrunen
<Thomas.VanDru...@wheaton.edu> wrote:
> How can I pull over an enumerate environment so that the numbers appear
> flush with the left side of the preceding text?
>
> It seems to me the right way to do this is to set leftmargin and
> labelwidth to 0, but I tried that and it hasn't changed anything.
>
> I've fooled around a little with a negative value to hspace or hspace*,
> but that hasn't worked either. I can't put the enumerate into a minipage
> and use a negative hspace on the minipage because the enumerate spans a
> page.

the memoir class defaults an enumerated list in the manner you
describe (if i understand what you mean); the article class, however,
is indented. memoir might be the easiest way to go. then use:

%%%%
\documentclass{memoir}
\usepackage{lipsum}

\begin{document}

\lipsum
\begin{enumerate}[1.] % nb: you determine the default enumeration
style in the square brackets
\item item1
\item item2
\item item3, etc.
\end{enumerate}
\lipsum

\end{document}

there are other useful features for lists in the memoir class; e.g.,
try using a \firmlist or \tightlist declaration inside the enumerate
environment to tweak the interline spacing between items.

cheers,
jon.

Werner Grundlingh

unread,
Apr 30, 2008, 2:28:06 PM4/30/08
to LaTeX Users Group
On Apr 30, 8:59 am, Thomas John VanDrunen
Have you considered using the enumitem package, available online via
CTAN from
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=enumitem
It allows for a variety of enumerate/itemize/description manipulating
& formatting.

Hope this helps,
Werner

Krishnan

unread,
May 2, 2008, 8:22:43 PM5/2/08
to LaTeX Users Group


On Apr 30, 8:59 pm, Thomas John VanDrunen
<Thomas.VanDru...@wheaton.edu> wrote:
> How can I pull over an enumerate environment so that the numbers appear
> flush with the left side of the preceding text?

You can create a custom list to suit your requirement as follows:

\newcounter{myenum}
\newenvironment{flushenumerate}{%
\begin{list}{\arabic{myenum}.}%
{\setlength{\leftmargin}{0pt}}%
\setlength{\labelwidth}{0pt}
\setlength{\itemindent}{0.5em}
\setlength{\labelsep}{0.5em}
\usecounter{myenum}}%
{\end{list}}

Then

\begin{flushenumerate}
\item...
\item...
...
\end{flushenumerate}

produces the desired list.






Reply all
Reply to author
Forward
0 new messages