Re: [NTG-context] setupinteraction kills dodoubleargument

2011-11-21 Thread Wolfgang Schuster

Am 21.11.2011 um 14:25 schrieb Hans van der Meer:

 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?

Change your definition for \testa and \testb to

  \unexpanded\def\testa{\dosingleempty\dotesta}

and

  \unexpanded\def\testb{\dodoubleempty\dotestb}

Wolfgang
___
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
___


Re: [NTG-context] setupinteraction kills dodoubleargument

2011-11-21 Thread Meer, H. van der

On 21 nov. 2011, at 14:55, Wolfgang Schuster wrote:

 
 Am 21.11.2011 um 14:25 schrieb Hans van der Meer:
 
 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?
 
 Change your definition for \testa and \testb to
 
  \unexpanded\def\testa{\dosingleempty\dotesta}

Not needed, because \dosingleargument, \dosingleempty are not harmed.
 
 and
 
  \unexpanded\def\testb{\dodoubleempty\dotestb}

This is a solution, so I can go on with my document.

But isn't it better in general when the problem is solved in \footnote? Because 
outside it I encountered no problem with the \dodouble's. It would be a pity if 
everyone who tries to something of the sort, will have to tackle this problem 
(unless looking into the archives of this group, of course). I was lucky, 
because the addition of \setupinteraction[state=start] was one of the last 
things I changed and thus suggested itself readily as the source of the 
troubles. 
Maybe it can be put on some todo/later-todo list?
 
 Wolfgang
 ___

Hans van der Meer



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


Re: [NTG-context] setupinteraction kills dodoubleargument

2011-11-21 Thread Hans Hagen

On 21-11-2011 15:50, Meer, H. van der wrote:


On 21 nov. 2011, at 14:55, Wolfgang Schuster wrote:



Am 21.11.2011 um 14:25 schrieb Hans van der Meer:


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?


Change your definition for \testa and \testb to

  \unexpanded\def\testa{\dosingleempty\dotesta}


Not needed, because \dosingleargument, \dosingleempty are not harmed.


and

  \unexpanded\def\testb{\dodoubleempty\dotestb}


This is a solution, so I can go on with my document.

But isn't it better in general when the problem is solved in \footnote? Because 
outside it I encountered no problem with the \dodouble's. It would be a pity if 
everyone who tries to something of the sort, will have to tackle this problem 
(unless looking into the archives of this group, of course). I was lucky, 
because the addition of \setupinteraction[state=start] was one of the last 
things I changed and thus suggested itself readily as the source of the 
troubles.
Maybe it can be put on some todo/later-todo list?


not really as do*empty is not the problem .. if \testa is expandable and 
\dosingleargument isn't, you still have an expandable dotesta left


I'll make the \do*arguments unexpandable (just like their cousins) but 
it won't help you much


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