On 10 September 2013 03:07, Kurt Callaway <[email protected]> wrote:
> Hello!
>
> My question: how does one add "section 5" titles?
>
> My project has asked me to convert many large "user manual" documents into
> Asciidoc. I've set up each doc as a book, which then uses "include::" to
> gather in the chapters, which are seperate files. No problem there.
> Because the manuals are large and complex, I need to support section
> numbering down to the "1.2.3.4.5" level.
>
> I know I have to modify the "asciidoc.conf" and "xhtml11.conf" files (to
> generate an html product) and I thought I'd done that properly; however, my
> "======" (six equal signs) title tags are being ignored and treated as
> common text. I've reviewed the forum here, and there doesn't seem to any
> similar older question -- which makes me wonder if there's something subtle
> I happen to be missing.
>
> The version I'm using: Asciidoc 8.6.8 on a Windows 7Pro/SP1 machine, with
> Python 2.7.3.
>
> My incantation is:
> asciidoc.py --backend=html -a theme=flask -a toc -a toclevels=5 -a icons
> -a numbered .\management_guide\master.txt
>
> In "asciidoc.conf", I've modified the single-line title pattern section to
> include a "sect5" line, like this --
>
> # Single-line title patterns.
> sect0=^= +(?P<title>[\S].*?)( +=)?$
> sect1=^== +(?P<title>[\S].*?)( +==)?$
> sect2=^=== +(?P<title>[\S].*?)( +===)?$
> sect3=^==== +(?P<title>[\S].*?)( +====)?$
> sect4=^===== +(?P<title>[\S].*?)( +=====)?$
> sect5=^====== +(?P<title>[\S].*?)( +======)?$
> blocktitle=^\.(?P<title>([^.\s].*)|(\.[^.\s].*))$
>
> And in "xhtml11.conf", I added the following at about line 510 --
>
> [sect5]
> <div class="sect5{style? {style}}{role? {role}}">
> <h6{id? id="{id}"}>{numbered?{sectnum} }{title}</h6>
> |
> </div>
>
> But even with these mods in place, the output html doesn't have section
> numbers of the type "1.2.3.4.5". Running with -v or with trace turned on
> yields no clues (that I can see). Any insights about what I must be
> missing would be greatly appreciated.
>
Unfortunately the number of section levels is hard coded, a decision
probably made because Docbook levels are fixed.
Cheers
Lex
>
> Regards,
> kc
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/groups/opt_out.