LaTeX offers the following way to write a cube root: $\sqrt[3]{x}$. Is there a way to do this in ConTeXt other than the TeX way of $\root 3\of x$? Also, Hans, if there isn't a direct way to do this, the following code is pretty much how LaTeX implements it, with an extra line at the top to make it work in ConTeXt. Would it be reasonable to put something like this (or something that implements this syntax) in m-newmat? \let\sqrtsign=\sqrt \def\sqrt{\@ifnextchar[\@sqrt\sqrtsign} \def\@sqrt[#1]{\root #1\of} - Brooks
Brooks Moses wrote:
LaTeX offers the following way to write a cube root: $\sqrt[3]{x}$. Is there a way to do this in ConTeXt other than the TeX way of $\root 3\of x$?
Also, Hans, if there isn't a direct way to do this, the following code is pretty much how LaTeX implements it, with an extra line at the top to make it work in ConTeXt. Would it be reasonable to put something like this (or something that implements this syntax) in m-newmat?
\let\sqrtsign=\sqrt \def\sqrt{\@ifnextchar[\@sqrt\sqrtsign} \def\@sqrt[#1]{\root #1\of}
\let\normalsqrt\sqrt % \dohandlemathtoken {sqrt} \def\sqrt{\doifnextcharelse[\notsosqrt\normalsqrt} \def\notsosqrt[#1]{\root#1\of} $\sqrt[3]{10}$ Do you want this in the kernel? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Brooks Moses
-
Hans Hagen