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

The spacing between line inside "enumerate" and "itermize"

7,008 views
Skip to first unread message

Changming Sun

unread,
Apr 14, 1994, 2:19:31 AM4/14/94
to

Hi,

Is there a way to control the line spacing in the "enumerate"
and "itemize" environments? such as in :
\begin{enumerate}
\item Line1
\item Line2
\end{enumerate}
I would like to change the spacing between "Line1" and "Line2".
Usually the spacing these two lines is larger than the ordinary text
spacing.

Your help is much appreciated.

Changming

,-_|\ Changming Sun, CSIRO Division of Mathematics & Statistics
/CSIRO\ Locked Bag 17, North Ryde, NSW 2113, Australia
\_,-._/ Phone:+61 2 325 3207, Fax: +61 2 325 3200
v Email: cha...@syd.dms.csiro.au

Timo Breidenstein

unread,
Apr 14, 1994, 6:33:21 AM4/14/94
to


> Is there a way to control the line spacing in the "enumerate"
> and "itemize" environments? such as in :
> \begin{enumerate}
> \item Line1
> \item Line2
> \end{enumerate}
> I would like to change the spacing between "Line1" and "Line2".

Modify \itemsep :

e.g. : \setlength{\itemsep}{2pt plus 1pt minus 1pt}

Robin Fairbairns

unread,
Apr 14, 1994, 10:28:09 AM4/14/94
to
In article <940414061...@dmssyd.syd.dms.csiro.au>,

Changming Sun <cha...@syd.dms.csiro.au> wrote:
> Is there a way to control the line spacing in the "enumerate"
>and "itemize" environments? such as in :
>\begin{enumerate}
> \item Line1
> \item Line2
>\end{enumerate}
> I would like to change the spacing between "Line1" and "Line2".
>Usually the spacing these two lines is larger than the ordinary text
>spacing.

From Lamport, p167:

\itemsep The amount of extra vertical space (in addition to \parsep)
inserted between successive list items.

It's set (it says here) by the command sequence in the second argument
to \begin{list}

Both itemize and enumerate are implemented with list environments; the
documentstyle styles define the values in \itemsep and \parsep for the
variously nested lists (look at the definitions of \listi, \listii,
etc., in art10.sty, etc.).
--
Robin (Campaign for Real Radio 3) Fairbairns r...@cl.cam.ac.uk
U of Cambridge Computer Lab, Pembroke St, Cambridge CB2 3QG, UK

Changming Sun

unread,
Apr 15, 1994, 1:02:20 AM4/15/94
to

Hi,

I emailed a request for help for changing the spacing between lines
in the "enumerate" and "itermize" environment. I have received
a number of replies giving me solutions.

Thanks very much to all those who replied!!!

It seems to me that you can not set the \itemsep parameter outside
the "enumerate" or "itemize" environment, because some of the
parameters are initialized within the \begin{environment name}
command. So you will need to adjust the parameters within the
environment. (as described in p.117 Adrian Johnstone's
LaTeX Concisely). This can be very inconvinuous if you have many
\begin{environment name} to change. Will a global setting be
possible?

A short summary of the answers are:

1.from TAU...@rsovax.lps.u-psud.fr:
Change the value of \itemsep (a dimension register)
Try also \parsep and \partopsep

2. from Thomas Herter, SNI Muenchen (thomas...@mch.sni.de) tel +89 636 49973:
\begin{enumerate}
\itemsep -0.5\parsep
\item Text 1.
\item Text 2.
\item Text 3.
\item Text 4.
\end{enumerate}
This changes the spacing between items to the -0.5\parsep.
Since there are still more spacings between items, the resulting
spacing is ok. Look into some LaTeX book to all the details.

3. from Paul Ove Moksnes email: pa...@imm.unit.no
The space between these two lines are:
\itemsep + \parsep
the value of each can be changed by using the \setlength command
\setlength{\itemsep}{Xpt}
- X being your new choice
using the \setlength command inside the environment makes local changes,
making changes outside the environment yields all lists.

4. from Scott D. Anderson ande...@cs.umass.edu
\begin{enumerate}
\setlength{\itemsep}{0pt}
\item line1
\item line2
\end{enumerate}

5. from JUA...@jila.colorado.edu
Use \itemsep . You can specify in the beginning of the text or
right before your enumerate list.

6. from imsg...@tsunami.math.montana.edu (Tim Carlson)
\begin{itemize}
\itemsep=10pt
\item line 1
\item line 2
\end{itemize}

7. from PPA...@twsuvm.uc.twsu.edu
The relevant length is \itemsep. You can change it as you wish.
See Kopka and Daly for a complete list of the lengths associated
with lists.

Stephan Lehmke

unread,
Apr 19, 1994, 10:40:24 AM4/19/94
to
In article AA1...@dmssyd.syd.dms.CSIRO.AU, Changming Sun <cha...@syd.dms.csiro.au> () writes:
>
> Hi,

>
>
> It seems to me that you can not set the \itemsep parameter outside
> the "enumerate" or "itemize" environment, because some of the
> parameters are initialized within the \begin{environment name}
> command. So you will need to adjust the parameters within the
> environment. (as described in p.117 Adrian Johnstone's
> LaTeX Concisely). This can be very inconvinuous if you have many
> \begin{environment name} to change. Will a global setting be
> possible?
>

From art11.sty (similar definitions can be found in repxx.sty and bookxx.sty):


\def\@listI{\leftmargin\leftmargini \parsep 4.5\p@ plus2\p@ minus\p@
\topsep 9\p@ plus3\p@ minus5\p@
\itemsep 4.5\p@ plus2\p@ minus\p@}

\let\@listi\@listI
\@listi

\def\@listii{\leftmargin\leftmarginii
\labelwidth\leftmarginii\advance\labelwidth-\labelsep
\topsep 4.5\p@ plus2\p@ minus\p@
\parsep 2\p@ plus\p@ minus\p@
\itemsep \parsep}


There is a \@list... macro for each itemize/enumerate nesting level, so you
see the settings are specific wrt the document style, font size, nesting
level etc.

I don't see how you can change a value like \itemsep for all list environments
at once. You could copy the definitions from your preferred style file
(i. e. rep11.sty if you use \documentstyle[11pt]{report}) and then modify them,
but whenever you change style, the definitions will persist.

Alternatively, you could write

\expandafter\def\expandafter\@listi\expandafter
{%
\@listi
\itemsep 2\p@ plus\p@ minus\p@
}

which will append your settings to the current definition, whatever it is,
overwriting only definitions of the parameter you set yourself.

Remember you have to put definitions involving @ into a style file or enclose
them with

\makeatletter
...
\makeatother

>
> Changming
>

Stephan


---
Stephan Lehmke leh...@ls1.informatik.uni-dortmund.de
I'm a student at the University of Dortmund, Germany.
All opinions are mine.

0 new messages