> 
> On May 21,  4:29pm, John Turner wrote:
> > Note the misnumbering of Appendix Glop in the TOC and in its own
> > heading.  The reference, however, correctly appears as A.
> 
> I had the same problem; L2h gets labels from internal counters sometimes and
> uses the ones from the *.aux file other times.
> The following redefinition seems to work by doing the same things LaTeX does:
> redefines \thesection (or \thechapter)  to use \Alph and resets the counter.
 
V98.1p6  already has a fix for this.
Look at your example on:  http://www-texdev.mpce.mq.edu.au/TURNER/report/


> There's 2 (potential) catches:
>   1) It should only affect \thesection for article styles or \thechapter for
> book styles.  But how to tell which is the case?  The best I could find was
> using $outermost_level and hope the user structured the doc `right'.
>   2) I was worried that reseting the counter would screw up L2h's bookkeeping
> (the keys it uses to record various sectional units), but apparently l2h
> increments those separately.  Ross was once trying to explain to me why the
> counters & keys could get `out of sync';  I think he was trying to tell me it
> was for my own good, but I didn't believe him at the time! :>

:-)  Yes.
There needs to be 2 counters, or counter-like mechanisms.
One keeps the value that will appear o the HTML pages,
the other maintains a code that ensures the HTML pages can be
sorted into the correct order (also that sublists of the section-titles
can be put into the correct order for TOC lists, etc.).

A single counter isn't good enough, due to  things like  \section*
\tableofcontents  \listoffigures etc.  and now also \appendix .


The reliance on the .aux fie is now removed for section-numbering.

Hope this helps

        Ross



Reply via email to