Re: [NTG-context] extentable arrows

2006-06-29 Thread Taco Hoekwater
Aditya Mahajan wrote: On Wed, 28 Jun 2006, Taco Hoekwater wrote: Aditya Mahajan wrote: \xrightarrow{big superscipt} Any suggestions? Not completely identical, but similar. The syntax can be made identical (even better) than that of amsmath. Perhaps it syntax should be identical to

Re: [NTG-context] extentable arrows

2006-06-29 Thread Hans Hagen
Aditya Mahajan wrote: The syntax can be made identical (even better) than that of amsmath. \def\xrightarrow{\dosingleempty\doxrightarrow} \def\xleftarrow {\dosingleempty\doxleftarrow} \def\doxrightarrow[#1]{\dodoublegroupempty\dodoxrightarrow{#1}}

Re: [NTG-context] extentable arrows

2006-06-29 Thread Hans Hagen
Aditya Mahajan wrote: I am simply trying to copy from amsmath definition. better think context -) \unprotect \def\mtharrfactor{1} \def\mtharrextra {0} \def\domthxarr#1#2#3#4#5#6#7#8% {\begingroup \def\mtharrfactor{1}% \def\mtharrextra {0}% \processaction[#1] % will be sped up

[NTG-context] extentable arrows

2006-06-28 Thread Aditya Mahajan
Hi, Does ConTeXt have anything equivalent to xleftarrow, xrightarrow of amsmath. Basically, I need a command that can do A \xleftarrow[subscript]{superscript} B should give superscript A --- B subscript and similar for xrightarrow, xleftrightarrow, xLeftarrow, xRightarrow

Re: [NTG-context] extentable arrows

2006-06-28 Thread Aditya Mahajan
On Wed, 28 Jun 2006, Aditya Mahajan wrote: Hi, Does ConTeXt have anything equivalent to xleftarrow, xrightarrow of amsmath. Basically, I need a command that can do A \xleftarrow[subscript]{superscript} B should give superscript A --- B subscript and similar for

Re: [NTG-context] extentable arrows

2006-06-28 Thread Taco Hoekwater
Aditya Mahajan wrote: \xrightarrow{big superscipt} Any suggestions? Not completely identical, but similar. Cheers, Taco \def\domthxarr#1#2#3#4#5#6#7% {\begingroup \mathsurround\zeropoint \setbox0\hbox{$\scriptstyle \if0#1\else\mkern#1mu\fi

Re: [NTG-context] extentable arrows

2006-06-28 Thread Aditya Mahajan
On Wed, 28 Jun 2006, Taco Hoekwater wrote: Aditya Mahajan wrote: \xrightarrow{big superscipt} Any suggestions? Not completely identical, but similar. Cheers, Taco \def\domthxarr#1#2#3#4#5#6#7% {\begingroup \mathsurround\zeropoint \setbox0\hbox{$\scriptstyle

Re: [NTG-context] extentable arrows

2006-06-28 Thread Aditya Mahajan
On Wed, 28 Jun 2006, Taco Hoekwater wrote: Aditya Mahajan wrote: \xrightarrow{big superscipt} Any suggestions? Not completely identical, but similar. The syntax can be made identical (even better) than that of amsmath. \def\xrightarrow{\dosingleempty\doxrightarrow} \def\xleftarrow