Am 12.11.2008 um 18:03 schrieb Bart C. Wise:
Okay, it works until I place an an argument in the stretched command.
def\MyChapterCommand#1#2{ \framed[align=center,frame=off,width=\textwidth]{ \vbox{ fails--> \stretched{#2} works--> \stretched{This is a Test} } } \setuphead[chapter][ command=\MyChapterCommand }
I get the following error when I run texexec:
! Missing \endcsname inserted. <to be read again> \let \nextprocessedtoken ...oup \ifincolor \ifcsname #1 #3\endcsname \let \dostopa...
\dodoprocesstokens ...token \let \before \between \fi \let \nextprocessedtok... <argument> This is a test: \dostartattributes {\??ko \v!title }\c!style \c!c...
\processtokens ...fore \before \doprocesstokens #5 \lastcharacter \endgroup \stretched ... \relax \hss \relax {\hss \hss }{#1} \egroup ...
How can I use the #1 & #2 arguments in the stretched command?
You could use it only with \deeptextcommand, here is a old mail with a example from Hans (you could ignore the other code). http://archive.contextgarden.net/message/20060113.102321.bf24d7ca.en.html Wolfgang