Le 24/08/2009 16:25, rgheck a écrit :
I've thought about this before, and it's actually an important matter as
concerns HTML output, where we'd like to be able to put the right
numbers into the HTML file.

Isn't HTML/css able to autonumber things?

The problem, however, is that it is not at
all any easy matter to know what number the cross-ref will generate,
because it is not an easy matter to know which counter is being
referenced. If we knew that, then it'd be easy. But it could be the
number of a section, a footnote, an equation, or even some user defined
counter, depending upon exactly where the label is, and indeed upon
things that could, in principle, be in ERT. So, as far as the HTML
output is concerned, I think we have to parse the aux file to do this
right. That's not really an option in the GUI.

It is not that difficult by using a new LaTeX-like form refstep(cnt) that would mean "increment counter cnt and make it the next reference". This would allow to get the label itself right. Of course, then a second run is needed to get the xrefs right. This means slower editing, of course...

JMarc

Reply via email to