In my documents I use a macro in footnotes, which is defined though \dodoubleargument. However, enabling interactions (which must be done too) plays havoc with \dodoubleargument, though \dosingleargument seems to escape unharmed.
Why is this? Can it be repaired?
Hans van der Meer
% Indexing in footnotes
\setuppapersize[A5][A5]
\setupinteraction[state=start] % [state=stop] => OK
\starttext
\type{ConTeXt ver: 2011.11.17 23:31 MKIV}\blank
\def\testa{\dosingleargument\dotesta}
\def\dotesta[#1]#2{<#1><#2>}
OK: \type{\testa{abc}} \testa{abc}\par
OK: \type{\testa[def]{abc}} \testa[def]{abc}\par
OK: Now in footnote\footnote{testa{abc}}\par
OK: Now in footnote\footnote{\testa[def]{abc}}\par
\blank
\def\testb{\dodoubleargument\dotestb}
\def\dotestb[#1][#2]#3{<#1><#2><#3>}
OK: \type{\testb{abc}} \testb{abc}\par
OK: \type{\testb[def]{abc}} \testb[def]{abc}\par
OK: \type{\testb[ghi][def]{abc}} \testb[ghi][def]{abc}\par
OK: Now in footnote\footnote{testb{abc}}\par
ERROR: Now in footnote\footnote{\testb[def]{abc}}\par
errmessage: ! Argument of \string\dotestb\ has an extra \}.\par
OK: Now in footnote\footnote{\testb[ghi][def]{abc}}\par
\stoptext
withindex.pdf
Description: Adobe PDF document
___________________________________________________________________________________ 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 ___________________________________________________________________________________
