On 03/01/13 04:38, ping wrote:
> <previously sent from wrong mailbox>
> 
> originally I use this method in my doc:
> 
> = my doc
> 
> == chapter1
> ifdef::basebackend-html[[subs="quotes"]]
> ifdef::basebackend-html[....]
> 
> some paragraphs
> some paragraphs
> some paragraphs
> 
> ifdef::basebackend-html[....]
> 
> 
> Now, those ifdef ... blocks are too much typings for me, especially when 
> they become standard in most of my docs....
> and I'm thinking is it possible to shorten them with sth like:
> 
> = my doc
> 
> :liternalmark1: `ifdef::basebackend-html[[subs="quotes"]]`
> :liternalmark2: `ifdef::basebackend-html[....]`
> 
> == chapter1
> 
> {literalmark1}
> 
> some paragraphs
> some paragraphs
> some paragraphs
> 
> {literalmark2}
> 
> but per my test this doesn't work.
> 
> is this expected behavior or am I missed sth to make it work?

System macros (http://asciidoc.org/userguide.html#_system_macros) like
ifdef::[] are hardwired into the reader and are used to preprocess input
(they generate the AsciiDoc source before the source is processed). This
means they cannot be used by any of the substitution features such as
attribute entries -- this is the expected behavior.

Cheers, Stuart


> 
> thanks and happy new year.
> 
> regards
> ping
> 

-- 
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