[l2h] Broken enumerations
Ross Moore
ross at ics.mq.edu.au
Fri Aug 22 10:46:57 CEST 2003
Hi Graham,
On Wed, 20 Aug 2003, Graham Gough wrote:
> Sorry Ross, but I'm afraid you're wrong this time (a rare event
> indeed!). The command \usecounter sets the value of the counter back
> to 0 again, so your suggestion won't work. See latex.ltx
>
> \def\usecounter#1{\@nmbrlisttrue\def\@listctr{#1}\setcounter{#1}\z@}
Yes, in LaTeX certainly that is the result of the above code-line.
Besides, I just checked the coding in LaTeX2HTML and found that
\usecounter is only recognised within an explicit {list} environment.
It would never be seen inside {enumerate}.
>
> Mark Wooding has macros \suspend and \resume to tackle this problem in
> his mdwlists package, I was just using a naive approach but some
> mechanism is necessary to remember the value from one list to the
> next.
Indeed; this seems to be correct.
With LaTeX2HTML, more work needs to be done with the $preitems
part of the {enumerate} environment; that is, any coding that falls
between the \begin{enumerate} and the first \item .
Currently there is no code for setting a 'start=<num>' attribute
to the <OL> tag.
Certainly this is an addition worth implementing.
Cheers
Ross Moore
>
> Best wishes
>
> Graham
>
More information about the latex2html
mailing list