[NTG-context] definesynonyms

Taco Hoekwater taco at elvenkind.com
Fri Jul 28 16:34:03 CEST 2006



Bernd Militzer wrote:
> Am 27.07.2006 um 07:54 schrieb Aditya Mahajan:
> 
> 
>>You can also do
>>
>>\def\PID[#1]#2[#3]{\getparameters[PID#1][#3]}
>>% #2 is to gobble spaces
> 
> 
> thanks for that hint Aditya!

There is also this (more formal) solution:

   \def\PID{\dodoubleempty\doPID}
   \def\doPID[#1][#2]{\getparameters[PID#1][#2]}

The core internal macro \dodoubleempty creates empty []
groups if they are not provided in the input. There is
also \dosingleempty etc, upto \doseventupleempty

Cheers, Taco






More information about the ntg-context mailing list