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/
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to