[NTG-context] Macro in macro?

2012-11-12 Thread H. Özoguz

Hello,

I have this code:

%%%
\def\wr[#1]{»#1«}


\def\wrr[#1]{›#1‹}


\starttext


Quote: \wr[He said: \wrr[Hello!] ]


\stoptext



It should print

Quote: »He said: ›Hello!‹ «

but it returns the ending quotation mark in the wrong order. Why? And 
how to correct that?

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Macro in macro?

2012-11-12 Thread Marco Patzer
2012-11-12 H. Özoguz:

> but it returns the ending quotation mark in the wrong order. Why?

You forgot the braces:

Quote: \wr[{He said: \wrr[Hello!]}]

> And  how to correct that?

\setuplanguage
  [leftquotation=»,
   rightquotation=«,
   leftquote=›,
   rightquote=‹]

\starttext
  Quote: \quotation{He said: \quote{Hello!}}
\stoptext


Marco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___