Opened 9 years ago

Last modified 9 years ago

#8545 assigned Feature Requests

Can quickbook support parts and chapters as well as sections?

Reported by: John Maddock Owned by: Daniel James
Milestone: To Be Determined Component: quickbook
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Currently the only "top level" structure supported is the section, but it would be very useful for longer documents have to have support for chapters, parts and appendixes as well. As far as I know these can't be implemented as templates as these get <para>...</para> wrapped around them even when they're block templates.

Change History (3)

comment:1 by Daniel James, 9 years ago

Owner: changed from Joel de Guzman to Daniel James
Status: newassigned

That's coming in 1.6 (should be soonish, I want to get a few things fixed up, and then I'll post something to the list), which respects included documents' docinfo blocks. I'm already using this in the quickbook documentation. You can also use the block element to avoid wrapping html elements in paragraphs.

comment:2 by John Maddock, 9 years ago

I've been experimenting with those features, and there's some bugs in the documentation for [bock]:

[template chapter[title]
    [block'''<chapter><title>'''[title]'''</title>''']]
[template chapterend
    [block'''</chapter>''']]

Should be:

[template chapter[title]
[block'''<chapter><title>'''[title]'''</title>''']]
[template chapterend[]
[block'''</chapter>''']]

Note the extra [] after chapterend. The original with the indent just formats everything as code... not sure if that's intentional? Probably should be thinking about it.

comment:3 by Daniel James, 9 years ago

You're right. I was forgetful, it should be code. Changing that might break something.

Note: See TracTickets for help on using tickets.