> > Now I'm lost. Maybe I'll put my question different: 1. I know that
> > macros are intended for output markup. 2. I assume standard markup
> > templates (strong, em, etc.) for different backends must be already
> > defined somewhere. 3. How do use these existing templates in a user
> > macro without rewriting them from scratch again like I did in the
> > example.
>
> Taking each of your points in turn.
>
> 1. Yes, correct
>
> 2. The tags that define markup for quotes are indeed defined in each
> backend.  But as tags for quotes, not as inline macros. (see the
> description of the [quotes] and [tags] sections)
>
> 3. Because tags are not macros they can't be used as such in macro
> expansions.  I'm afraid you will have to define your own inline macros
> from scratch for these markups if you want to avoid putting specific
> markup in the template.

As far as I understand replacements and inline macros are the only
possibility for doing what I want. The aim is to expand a series of
reoccurring keywords+argument. Think of it as a pre-processor macro:

#define KEYWORD(addition) mixture of __text__, **markup** and addition

It is meant to be a shortcut for complicated repeating expressions
within a text, to ease typing and to avoid mistakes.

> This is not usually a problem since the
> system markup templates are in backend specific configuration files,
> so they have the markup in the template.  You could do the same.

Good, if this will continue to work in the future I can live with
copying the definitions from the tags. But it is kind of frustrating
because the information is already there...

> And a correction to the previous reply, I was too restrictive, you
> indeed can use inline macros in inline macros so what you are doing is
> ok, but not for block macros.

cheers
recryn

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