On 2010-03-15 <22:40:39>, Wolfgang Schuster wrote:
> Am 15.03.10 19:01, schrieb Philipp Gesang:
> >Of course. I could narrow it down to this. Try commenting out the
> >interaction part.
> >---8<-------------------------------------------------------------------------
> >
> >\setupinteraction[state=start]
> >
> >\def\test{\dosingleempty\dotest}
> \unexpanded\def\test{\dosingleempty\dotest}
Great, this works with the simple command. But how would I apply this
onto the \long definition you gave me? To be honest I tried almost all
the expansion related stuff from Chapter 20 of the TeXbook and the whole
unexpanded family from syst-aux.mkiv but could not get it working.
---8<-------------------------------------------------------------------------
\tracingcommands=1
\tracingonline=1
\setupinteraction[state=start]
\unexpanded\def\test{\dosingleempty\dotest}
\def\dotest[#1]#2{#2}
\def\startsomething{%
\bgroup%
\dosingleempty\dostartsomething
}
%\long\unexpanded\def\dostartsomething[#1]#2\stopsomething{%
\long\def\dostartsomething[#1]#2\stopsomething{%
\dotest[#1]{#2}
\egroup%
}
\starttext
Words before a footnote\footnote{
The Test
\test{The other Test}
\startsomething[nothing]
The next Test
\stopsomething
}
\stoptext
% vim:ft=context
---8<-------------------------------------------------------------------------
Philipp
signature.asc
Description: Digital signature
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / 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 ___________________________________________________________________________________
