22 Apr
2007
22 Apr
'07
7:21 p.m.
On 4/22/07, John R. Culleton
Knuth defines a macro for simple fractions such as 3/4 etc. and calls it \frac: \def\frac#1/#2{\leavevmode \kern.1em \raise .5ex \hbox{\the\scriptfont0 #1}% \kern-.1em $/$% \kern -.15em \lower .25ex \hbox{\the\scriptfont0 #2}}%
The call is e.g., \frac 3/4.
This works fine in Context. However if I undefine the Knuth macro and still use the same \frac call I don't get an error message but the results are quite different. I get both a stroke and a bar between the 3 and the 4.
Because what you type is then equal to "\frac{3}{/}4", similar to the standard command in LaTeX. \frac already exists and accepts two arguments. Mojca