On Fri, 16 Dec 2011, Stuart Rackham wrote:

You might even be able to generalize the sect1 ... sect4 templates and use something like:

8<---------------------------
[cols=2]
== Report on group activity

=== Welcome participants
Very early in the day ...

=== Embarking on the trip
The bus arrived on time even though ...

=== First stop at ...
Our breakfast plans included ...

8<---------------------------

The advantage of this approach is that it uses the standard section template names and so it would not break when using other backends.

Yes, I like this better. I now have it defined as:

----
[sect0]
<text:h{style? text:class-names="{style}"} text:style-name="sect0" text:outline-level="0">{id?<text:bookmark-start 
text:name="{id}"/>}{title}{id?<text:bookmark-end text:name="{id}"/>}</text:h>
{cols#}<text:section text:style-name="columns-{cols}" text:name="columns 
#{counter:columns}">
|
{cols#}</text:section>

[sect1]
<text:h{style? text:class-names="{style}"} text:style-name="sect1" text:outline-level="1">{id?<text:bookmark-start 
text:name="{id}"/>}{title}{id?<text:bookmark-end text:name="{id}"/>}</text:h>
{cols#}<text:section text:style-name="columns-{cols}" text:name="columns 
#{counter:columns}">
|
{cols#}</text:section>

...
----

But I am surprised it works like this, because I tried to do the same with paragraphs (i.e. I wanted to provide an attribute to override the style used) and it seemed that the first attribute is always considered the style, rather than an attribute.

So I was forced to use something like:

[styled,stylename="timeframe"]

rather than

[stylename="timeframe"]

Do you know why this is ? Or if I am doing something wrong ?

Kind regards,
--
-- dag wieers, d...@wieers.com, http://dag.wieers.com/
-- dagit linux solutions, i...@dagit.net, http://dagit.net/

[Any errors in spelling, tact or fact are transmission errors]

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to asciidoc@googlegroups.com.
To unsubscribe from this group, send email to 
asciidoc+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to