4 Feb
2009
4 Feb
'09
12:53 a.m.
Am 04.02.2009 um 00:11 schrieb Aditya Mahajan:
I want to write a macro which behaves differently depending on whether its argumet is a single character or not.
\MACRO[a] should give $X_{a}$ \MACRO[a:b] should give $X_{[a:b]}$
Any hints on how to do this?
To test for the number argument use \counttoken(s) and to check if the string contains a ":" use \doifinstring/\doifinstringelse. Wolfgang