On 21 December 2012 22:52, j. van den hoff <[email protected]> wrote: > I posted a similar question recently but either it was to stupid or unclear:
Or everybodys gone on holidays :) Quotes are substituted before attributes but are not substituted in attribute values at the definition so quotes inside attribute definitions are not substituted. See http://www.methods.co.nz/asciidoc/userguide.html#_document_processing. > > 8<----------------------------------------------------------------- > is there a way to make an attribute definition like > > :km: K~m~ > > be expanded correctly (i.e. with a `m' subcript) if referenced somewhere > in the text via {km}? > 8<----------------------------------------------------------------- > > the problem is, the above attribute is expanded verbatim in the running > text, i.e. I end up > (in the html or pdf formatted document) > with a verbatim `K~m~' replacing the reference `{km}'. what I _actually_ > want is an expansion > of the definition, i.e. `K' with a subscript. that's what a corresponding > `\newcommand' in latex > would do, of course. > Try making the attribute value an inline pass macro with a specified quotes substitution as suggested in http://www.methods.co.nz/asciidoc/userguide.html#X18 which refers to http://www.methods.co.nz/asciidoc/userguide.html#X77. Cheers Lex > > thanks > joerg > > > -- > Using Opera's revolutionary email client: http://www.opera.com/mail/ > > -- > 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.
