On 26 May 2011 12:25, Gary Funck <[email protected]> wrote:
> On 03/22/11 19:35:22, Lex Trotman wrote:
>> Well, for HTML and xhtml generated by ASCIIDOC I don't believe that
>> there is any way to refer to the section (paragraphs are not numbered)
>> numbers.
>>
>> For pdf and HTML generated by dblatex or fop all numbering and the
>> format of cross references is determined by these toolchains so there
>> is some possibility, but isn't controlled by asciidoc.
>>
>> dblatex probably requires changing the latex stylesheet, whilst fop
>> could require that you change the XSL that converts docbook to fo.
>>
>> Or to put it simply, I don't know a way without a lot of effort.
>
> We also have an application that requires paragraph numbering.
>
> Would some sort of pre-processor make sense that inserts the
> paragraph numbers explicitly (using some sort of tag), as
> well as creating hyperlinks from the reference to the
> paragraph?  Is that idea feasible/practical?
>

Hi again Gary,

A second thought is that for xhtml it might be easier to write a
version of the toc javascript that numbers the paragraphs and
remembers the number for those paragraphs that have an id.  Then on
another pass it can paste the number into references to those ids.

That way you don't do any parsing, its all in memory for you and any
html created by filters etc will be included in the numbering.  And
you could even allow a no-number role to indicate that a paragraph
should not be numbered (well maybe version 2).


Cheers
Lex


> --
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/asciidoc?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to