Discussion:
Setting the spacing between \itemize entries?
Angus Leeming
2005-05-19 21:51:47 UTC
Permalink
I can do it with ERT in the body of the document as

<ERT>\begin{itemize}
\setlength{\itemsep}{0pt}</ERT>
<ERT>\item </ERT>foo
<ERT>\item </ERT>bar
<ERT>\end{itemize}

But can I do it for all itemize lists by shoving something in the
preamble instead and using LyX's itemize environment?

Angus
Paul A. Rubin
2005-05-20 01:36:29 UTC
Permalink
Post by Angus Leeming
I can do it with ERT in the body of the document as
<ERT>\begin{itemize}
\setlength{\itemsep}{0pt}</ERT>
<ERT>\item </ERT>foo
<ERT>\item </ERT>bar
<ERT>\end{itemize}
But can I do it for all itemize lists by shoving something in the
preamble instead and using LyX's itemize environment?
Angus
I *think* you can do this by resetting \parskip in the preamble, but it
will apply to all list environments (for instance, enumerate as well as
itemize).

-- Paul
Johan Ingvast
2005-05-20 06:49:34 UTC
Permalink
Post by Angus Leeming
I can do it with ERT in the body of the document as
<ERT>\begin{itemize}
\setlength{\itemsep}{0pt}</ERT>
<ERT>\item </ERT>foo
<ERT>\item </ERT>bar
<ERT>\end{itemize}
But can I do it for all itemize lists by shoving something in the
preamble instead and using LyX's itemize environment?
This is what I have in the preamble to fix the separation:

\let\olditemize=\itemize
\def\itemize{%
\olditemize%
\setlength{\itemsep}{0.0ex}%
\setstretch{0.95}%
}

\let\oldenumerate=\enumerate
\def\enumerate{%
\oldenumerate%
\setlength{\itemsep}{0.0ex}%
\setstretch{0.9}%
}

I've got it from Christian (thanks!).
/johan
--
Johan Ingvast, PhD student http://www.md.kth.se/~ingvast
Department of Machine Design, Royal Institute of Technology, Sweden
http://www.md.kth.se, http://www.md.kth.se/~cas <--- Walking robot proj
tel +46 (0)8 790 95 36 mob. +46 (0)70 34 34 498
Angus Leeming
2005-05-20 08:08:51 UTC
Permalink
Post by Johan Ingvast
\let\olditemize=\itemize
\def\itemize{%
\olditemize%
\setlength{\itemsep}{0.0ex}%
\setstretch{0.95}%
}
Loverly!
Post by Johan Ingvast
I've got it from Christian (thanks!).
Thanks, Christian. Thanks, Johan.
Angus
Eric S Fraga
2005-06-07 12:17:18 UTC
Permalink
Post by Johan Ingvast
\let\olditemize=\itemize
\def\itemize{%
\olditemize%
\setlength{\itemsep}{0.0ex}%
\setstretch{0.95}%
}
[...]
Can anybody suggest an equivalent solution for bititems? I need to reduce
the space between bibitems as above for items but changing itemize to
bibitem doesn't work (a very large number of errors).

Any pointers gratefully accepted! Even suggestions on changes to BST files
if need be (an arcane art if ever there was one... :-).

cheers,
eric
--
Eric S Fraga, Dept Chemical Engineering, UCL, e.fraga-hclig2XLE9Zaa/***@public.gmane.org
.ooo.ooo.ooo..o...o...o....oo..ooo.oo...o.....o.o....ooo.ooo.o...
Loading...