On 26 January 2013 13:45, Dan Allen <[email protected]> wrote:
> On Fri, Jan 25, 2013 at 5:50 PM, Lex Trotman <[email protected]> wrote:
>>
>> On 26 January 2013 11:11, Dan Allen <[email protected]> wrote:
>> > You'd probably need to hack the asciidoc.js, because it only works off
>> > the
>> > toclevels passed to it when the asciidoc.install function is called on
>> > document load.
>> >
>> > I was thinking that you could add [float] to the appendix to take it out
>> > of
>> > the structure, but it seems you can't set both float and a special
>> > section
>> > type (like appendix).
>> >
>> > -Dan
>> >
>> >
>> > On Fri, Jan 25, 2013 at 4:52 PM, Barry Arthur <[email protected]>
>> > wrote:
>> >>
>> >> Hi, guys,
>> >>
>> >> Is it possible to suppress headings from appearing in the TOC on either
>> >> an
>> >> individual basis or change :toclevels: from an arbitrary point in the
>> >> document?
>> >> I thought I read something about this the other day, but my manual
>> >> scanning and googling skills are failing me now. :-(
>> >>
>> >> I am using :toclevels: 3 for the bulk of the document, but I don't
>> >> want that in the appendices.
>> >>
>> >> Cheers,
>> >> Bazz
>>
>> Hi Bazz,
>>
>> No backends support changing toclevels part way through the document,
>> the only way is to change the levels o fthe appendix entities, but
>> have a custom css that styled them as a higher level.
>>
>> @Dan, float is a style, and you can't have two styles on an entity,
>> thats why you can't apply float to appendixes or anything else
>> non-standard. Also float has special semantics, the heading is no
>> longer a section, its just an entity within the current section. So
>> for xhtml it doesn't have the divs wrapping any section body and for
>> docbook its a <bridgehead> not a <section>.
>
>
> In general that is true, but that's not why this doesn't work. Technically,
> float is a style and appendix is a template. You can have both a style and a
> template for a section. The problem, in this case, is that there is a
> hardcoded check in asciidoc.py that prevents a float section from also
> having a template.
>
> See this code:
>
> sectname = AttributeList.attrs.get('1')
> if sectname and sectname != 'float':
> Title.sectname = sectname
> elif 'template' in AttributeList.attrs:
> Title.sectname = AttributeList.attrs['template']
> else:
>
Not to mention the other bit of code that hard codes a float style to
a FloatingTitle class.
elif Title.isnext():
if AttributeList.style() == 'float':
result = FloatingTitle
else:
result = Title
> Regardless, it's still an overloading of semantics, so it might be for the
> best that it doesn't work.
Agreed.
Cheers
Lex
>
> -Dan
>
> --
> Dan Allen
> Principal Software Engineer, Red Hat | Author of Seam in Action
> Registered Linux User #231597
>
> http://google.com/profiles/dan.j.allen
> http://mojavelinux.com
> http://mojavelinux.com/seaminaction
>
> --
> 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].
> Visit this group at http://groups.google.com/group/asciidoc?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.