![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 8/25/2013 9:09 PM, Marco Patzer wrote:
On 2013–08–25 Wolfgang Schuster wrote:
The \starttexdefintion command looks for the “unexpanded” keyword only when you apply also a argument but not when the arguments are missing, i.e.
Thanks for the explanation. Is that a bug or expected behaviour? I think it's odd that
\unexpanded\def\foo{}
and
\starttexdefintion unexpanded foo \stoptexdefinition
don't behave the same.
not a bug ... just not implemented (as it's pretty complex to do that case efficiently at the tex end) anyhow, as it seems to be needed, i redid the code and now we have: \starttext \starttexdefinition unexpanded test #1 [here #1] \stoptexdefinition \test{oeps} \starttexdefinition global unexpanded test [here test] \stoptexdefinition \test \scratchcounter=123 \starttexdefinition global unexpanded expanded test #oeps [here #oeps: \the\scratchcounter] \stoptexdefinition \test{oeps} \stoptext so, three optional qualifiers (also in that order), so you'd better wikify it Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------