On 30/09/10 00:10, Tomek Kaczanowski wrote:
Stuart,

thank you for your response, I will try it soon.

If you are running from the trunk you don't have to do anything, I committed a partintro style to the OpenBlock yesterday:

http://code.google.com/p/asciidoc/source/detail?r=bb4e03d3157a819d25d3cee5c1127b6d299d2bbf



I think it would be good to have a section in userguide that would
describe the general way of dealing with Docbook elements that are not
directly available from Asciidoc. This would be very useful for people
coming from Docbook.

A cookbook approach based on real use cases (such as this post) plus an overview of DelimitedBlock and Macro markup generation is probably the best approach -- trying to adequately explain more than a general overview of conf files in words is the sort of thing that makes the reader and the writer lose the will to live. In the mean time I recommend cloning and customizing a similar element from the distribution conf files.


Cheers, Stuart



--
Cheers,
Tomek Kaczanowski
http://kaczanowscy.pl/tomek

On Sep 28, 8:18 pm, Stuart Rackham<[email protected]>  wrote:
On 29/09/10 02:07, Tomek Kaczanowski wrote:

Hello,

I can't figure out how to add a quotation (http://www.methods.co.nz/
asciidoc/userguide.html#_quote_blocks) for part of a book. In docbook
that would go into partintro element (http://www.docbook.org/tdg/en/
html/partintro.html)

How to achieve this effect with Asciidoc?

Put this in a conf file to create a partintro Openblock style:

[blockdef-open]
posattrs=style
partintro-style=template="partintroblock"

[partintroblock]
<partintro>
|
</partintro>

Then you can use this in your book:

The First Part of the Book
==========================

[partintro]
--
[quote, Bertrand Russell, The World of Mathematics (1956)]
____________________________________________________________________
A good notation has subtlety and suggestiveness which at times makes
it almost seem like a live teacher.
____________________________________________________________________

Plus any other intro stuff...
--

The First Chapter
-----------------
Lorum ipsum...

I'll add the partintro Openblock style to the AsciiDoc distribution.

Cheers, Stuart



--
Cheers,
Tomek Kaczanowski
http://kaczanowscy.pl/tomek




--
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].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to