On Thu, 19 May 2005, Angus Leeming wrote:

> 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

Reply via email to