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 xrightarrow, xleftrightarrow, xLeftarrow, xRightarrow > and xLeftRightarrow. > > > The closest that I could come to it was (only for superscripts) > > \def\xrightarrow#1{\buildrel{#1}\over\longrightarrow} > > But this is not extendable. > > \xrightarrow{big superscipt} > > > Any suggestions?
This is how it is defined in amsmath.sty [EMAIL PROTECTED] \mathrel{\mathop{% [EMAIL PROTECTED] [EMAIL PROTECTED]@th \hbox{$\scriptstyle\mkern#3mu{#6}\mkern#4mu$}% \hbox{$\scriptstyle\mkern#3mu{#7}\mkern#4mu$}% \copy\z@ }% \hbox [EMAIL PROTECTED]@}}% \limits [EMAIL PROTECTED] #7\if0#2\else\mkern#2mu\fi}}% [EMAIL PROTECTED] #6\if0#2\else\mkern#2mu\fi}}}% } [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] I tried to contextify this, but keep on getting missing $ errors. Aditya _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context