[texhax] nested lists with out top sep

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Wed Dec 10 10:24:59 CET 2003


> My question is: I want to nest this kind of list, to produce something
> like this:
> 
> 
> 1: 1: A=B
>    2: C=D
>    3: D=E
> 2: 1: E=F
> 
> 
> But the code produces something that looks like this:
> 
> 1: 
>    1: A=B
>    2: C=D
>    3: D=E
> 2: 1: E=F
> 
> 
> Can you please suggest a fix to the code?  (Please don't worry about
> the counters, I'm just concerned about the indenting/spacing.)

\@noparitemtrue is the command you're after; place it before calling
the enclosed list environment.  (also surround definition that uses it
with \makeatletter / other)

> \newenvironment{123listcolonstyle}{
> \indent \begin{list}{\arabic{123listcolonstylectr}:}{\usecounter{123listcolonstylectr}}}
> {\end{list}\setcounter{123listcolonstylectr}{0}}

perhaps replacing that \indent?  (what's it for?)


More information about the texhax mailing list