On 3 January 2013 02:38, ping <[email protected]> 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?
The asciidoc ifdef:: etc are there for the use of backends where uglyness doesn't matter, or for simple document variances. If your document is so complex you might be better off pre-processing it with one of the standard macro substitution systems first. Cheers Lex > > 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. > -- 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.
