ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nikolai Weibull <context-list@pcppopper.org>
Subject: Re: Re: Re: nath catcode issues
Date: Sun, 8 Aug 2004 21:28:45 +0200	[thread overview]
Message-ID: <20040808192845.GB5305@puritan.pcp.ath.cx> (raw)
In-Reply-To: <1946029967.20040807165824@iol.it>

* Giuseppe Bilotta <gip.bilotta@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@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@over\fi\next}
> \def\atop{%
>  \ifmmode\n@err{Disabled command \string\atop }
>   {No more a valid command. Use array instead.}%
>   \let\next\relax
>  \else\let\next\o@atop\fi\next}
> \def\choose{%
>  \ifmmode\n@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@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);}

  reply	other threads:[~2004-08-08 19:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-04 13:36 Nikolai Weibull
2004-07-05 10:01 ` Giuseppe Bilotta
2004-07-05 10:44   ` Nikolai Weibull
2004-07-05 11:03     ` Giuseppe Bilotta
2004-07-05 12:42       ` Nikolai Weibull
2004-08-07 14:58         ` Giuseppe Bilotta
2004-08-08 19:28           ` Nikolai Weibull [this message]
2004-08-25 18:29             ` Giuseppe Bilotta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040808192845.GB5305@puritan.pcp.ath.cx \
    --to=context-list@pcppopper.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).