[Tutkielma-TeX] Nested lists broken

Tuomo Valkonen tujumava at jyu.fi
Fri May 16 15:28:13 EEST 2008


On Fri, May 16, 2008 at 03:18:28PM +0300, Matthieu Weber wrote:
> On Tue 29.04.2008 at 10:22:13AM +0300, Tuomo Valkonen wrote:
> > Nested lists are broken. The second item after an item with
> > a nested list, has negative indentation, as shown by the
> > attached patch to example.tex.
> 
> You can quick-fix this by commenting out the re-definition of \@doendpe
> at the end of jydiss.cls. 

Another kludge that I discovered is to add

    \setlength{\itemindent}{\leftmargin} 

just before the wrongly intended item, i.e. the second after
the nested list.

> The side-effect will be that a paragraph coming
> after a list will be indented if there is an empty line between the list
> and the paragraph; this is forbidden by the library's rules. In order
> to prevent such a paragraph to get indented, you need to make sure there
> is no empty line between the list and the paragraph.
> 
> If someone has a suggestion for a proper fix, I'll welcome it gladly.

Maybe you should check for list nesting level in @doendpe. IIRC it's
in some variable. Or maybe you could just adjust \parindent, instead
of playing around with \par. (Redefine it to zero at the end of list,
restore when a paragraph begins.)




More information about the Tutkielma-TeX mailing list