ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setupinteraction kills dodoubleargument
@ 2011-11-21 13:25 Hans van der Meer
  2011-11-21 13:55 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Hans van der Meer @ 2011-11-21 13:25 UTC (permalink / raw)
  To: ConTeXt NTG

[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]

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



[-- Attachment #2: withindex.pdf --]
[-- Type: application/pdf, Size: 17870 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-21 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-21 13:25 setupinteraction kills dodoubleargument Hans van der Meer
2011-11-21 13:55 ` Wolfgang Schuster
2011-11-21 14:50   ` Meer, H. van der
2011-11-21 15:45     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).