Boost logo

Boost :

Subject: Re: [boost] quickbook equivalent of <simplesect>?
From: Peter Dimov (lists_at_[hidden])
Date: 2014-06-10 11:00:53


Daniel James wrote:
> [template simplesect[title]
> [block '''<simplesect><title>'''[title]'''</title>''']]
>
> [template endsimplesect[]
> [block '''</simplesect>''']]
>
> [simplesect Authors]
>
> Content....
>
> [endsimplesect]

Doesn't seem to work, unfortunately. This:

[simplesect Authors]

* Brad King
* Douglas Gregor
* Peter Dimov

[endsimplesect]

produces the following XML:

<para>
  [block <simplesect><title>Authors</title>]
</para>
<itemizedlist>
  <listitem>
    <simpara>
      Brad King
    </simpara>
  </listitem>
  <listitem>
    <simpara>
      Douglas Gregor
    </simpara>
  </listitem>
  <listitem>
    <simpara>
      Peter Dimov
    </simpara>
  </listitem>
</itemizedlist>
<para>
  [block </simplesect>]
</para>

I've tried fiddling around with the template definitions, but all my
attempts have made matters worse. :-)


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