From: Giuseppe Bilotta <gip.bilotta@iol.it>
Subject: Re: nath catcode issues
Date: Mon, 5 Jul 2004 12:01:39 +0200 [thread overview]
Message-ID: <413064969.20040705120139@iol.it> (raw)
In-Reply-To: <20040704133638.GA23652@puritan.pcp.ath.cx>
Sunday, July 4, 2004 Nikolai Weibull wrote:
> It seems that the code to enable catcode handling in nath math mode
> isn't working. Currently, nath uses
[snip]
> to set it up, but as far as I can see this doesn't actually do anything
> as \@comma doesn't get invoked for commas and \dots always renders like
> \cdots. Am I missing something perhaps?
Well, the nath catcodes only apply in math mode, and indeed in
math mode , will trigger \@comma :)
About \dots: with the nath module, \dots will *in math mode*
use \cdots in all cases *except* after punctuation (e.g. after
a comma); indeed, the code
\[
a=b, \dots c=d \dots
\]
will give you \ldots in the first case and \cdots in the second
case. Do you have some example of when it doesn't work?
> Furthermore,
> \def\over{\n@err{Disabled command \string\over }
> {No more a valid command. Replace {A \over B} with \frac A B.}}
> \def\atop{\n@err{Disabled command \string\atop }
> {No more a valid command. Use array instead.}}
> \def\choose{\n@err{Disabled command \string\choose }
> {No more a valid command. Replace {A \choose B} with \binom A B.}}
> also messes up stuff in core-ref.tex for example:
AHA! Good point. Try this fix:
\def\over{\ifmmode\n@err{Disabled command \string\over }
{No more a valid command. Replace {A \over B} with \frac A
B.}\else\o@over\fi}
\def\atop{\ifmmode\n@err{Disabled command \string\atop }
{No more a valid command. Use array instead.}\else\o@atop\fi}
\def\choose{\ifmmode\n@err{Disabled command \string\choose }
{No more a valid command. Replace {A \choose B} with \binom A
B.}\else\o@choose\fi}
(hm. this is untested. I'm sure it'll bomb out because of
expansion, I'll have to design a cleaner one.)
--
Giuseppe "Oblomov" Bilotta
next prev parent reply other threads:[~2004-07-05 10:01 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 [this message]
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
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=413064969.20040705120139@iol.it \
--to=gip.bilotta@iol.it \
--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).