5 Aug
2006
5 Aug
'06
11:30 a.m.
On Sat, 5 Aug 2006, Aditya Mahajan wrote:
\def\myin[#1:#2]{ \expandafter\ifx\csname in#1\endcsname\relax \writestatus{warning}{referenceformat in#1 not defined} \in[#1:#2] \else \csname in#1\endcsname[#1:#2] \fi}
And if you want to suppress unwanted spaces, you can add some "%": \def\myin[#1:#2]{% \expandafter\ifx\csname in#1\endcsname\relax \writestatus{warning}{referenceformat in#1 not defined}% \in[#1:#2]% \else \csname in#1\endcsname[#1:#2]% \fi} Cheers, Peter -- http://pmrb.free.fr/contact/