On 27 May 2011 00:39, Gary Funck <[email protected]> wrote:
> On 05/26/11 17:21:06, Lex Trotman wrote:
>> see attached asciidoc source, local docbook45.conf and the resulting
>> pdf and xhtml
>
> Looks like it might be useful. Assuming that the required
> reference is <section-number>.<paragraph number>, where
> the paragraph numbers restart at 1 in each section,
> is it possible to also generate references to
> those <section>.<paragraph> tags?
>
Hi Gary,
I don't see how you can do this if the section numbers are generated
by the backend, no backend I know can put section numbers on
paragraphs.
It should be possible if you switch to all asciidoc numbering and turn
off numbering in the backend.
To do that you would have to add custom [sect1-4] sections to the
custom docbook45.conf file since docbook assumes the backend does the
numbering and doesn't output the numbers. Just copy the sections from
the system docbook45.conf and add {numbered?{sectnum} } after <title>
The section numbers are in attribute {sectnum} see
http://www.methods.co.nz/asciidoc/userguide.html#_sections for how to
use.
Any text inside the xreflabel attribute will appear in the reference,
so just add {numbered?{sectnum}.} in front of {paracounter}.
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.