[NTG-context] Re: Re: Re: nath catcode issues
Nikolai Weibull
context-list at pcppopper.org
Sun Aug 8 21:28:45 CEST 2004
* Giuseppe Bilotta <gip.bilotta at iol.it> [Aug 08, 2004 16:30]:
> ConTeXt ver: 2004.6.30 fmt: 2004.7.27 int: english mes: english
Me too.
> [Example]
Argh, that doesn't happen here...
> This is pdfeTeX, Version 3.141592-1.20a-rc4-2.1 (MiKTeX 2.4)
pdfeTeX (Web2C 7.4.5) 3.14159-1.10b-2.1
I run latest tetex.
> > > It works like that? Excellent.
> > It seems I spoke too soon. It does in fact not work.
> In the meantime, I'm thinking along the lines of something like
> \def\over{%
> \ifmmode\n at err{Disabled command \string\over }
> {No more a valid command. Replace {A \over B} with \frac A B.}%
> \let\next\relax
> \else\let\next\o at over\fi\next}
> \def\atop{%
> \ifmmode\n at err{Disabled command \string\atop }
> {No more a valid command. Use array instead.}%
> \let\next\relax
> \else\let\next\o at atop\fi\next}
> \def\choose{%
> \ifmmode\n at err{Disabled command \string\choose }
> {No more a valid command. Replace {A \choose B} with \binom A B.}%
> \lext\next\relax
> \else\let\next\o at choose\fi\next}
> which should be robust enough. Can you try it in the context
> where my previous solution busted?
I don't remember what busted, but it looks good. It works for my
thesis, which is weird because you misspelled a \let (\lext) and it
still worked fine.
Furthermore, nested parentheses and stuff that produces implicit
parentheses don't scale correctly. In fact, \left and \right don't seem
to work either:
\usemodule[nath]
\starttext
\[ (\frac{a}{b})^2 \]
versus
\[ \left(\frac{a}{b}\right)^2 \]
\stoptext
...,
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
More information about the ntg-context
mailing list