Boost logo

Boost :

Subject: Re: [boost] [quickbook] Lists with paragraphs
From: Edward Diener (eldiener_at_[hidden])
Date: 2010-10-21 13:12:10


On 10/19/2010 4:23 AM, John Maddock wrote:
>> Is there any way to specify a list with paragraphs embedded in each
>> list item, such as a final result of:
>>
>> 1. Some data here.
>>
>> Some more data here.
>>
>> Maybe some code here.
>>
>> 2. Other data here
>>
>> More code here.
>>
>> In other words I can normally do this with lists by not separating
>> lines which form individual paragraphs, but I want the spacing and
>> paragraphs for each list item.
>
> You can either use [br], which works but results in copious warnings
> from quickbook, or you can define template that wraps each paragraph in
> <para>...</para> docbook markup:
>
> [template para[text] '''<para>'''[text]'''</para>''']
>
> Then wrap each paragraph in the list in [para ...] blocks.

Unfortunately the macro does not work when there are code blocks in a
list item. Just putting '''<para>''' and '''</para>''' around the code
block does work.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk