Received: from webgate.proteosys.de (mail.proteosys-ag.com [62.225.9.49]) by lucy.proteosys (8.11.0/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id f18LQGH32148 for ; Thu, 8 Feb 2001 22:26:16 +0100 Received: by webgate.proteosys.de (8.11.0/8.11.0) with ESMTP id f18LQGd14928 . for ; Thu, 8 Feb 2001 22:26:16 +0100 Received: from mail.Uni-Mainz.DE (mailserver1.zdv.Uni-Mainz.DE [134.93.8.30]) by mailgate1.zdv.Uni-Mainz.DE (8.11.0/8.10.2) with ESMTP id f18LQAM07843 for ; Thu, 8 Feb 2001 22:26:10 +0100 (MET) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C09215.C4CB4C00" Received: from mailgate2.zdv.Uni-Mainz.DE (mailgate2.zdv.Uni-Mainz.DE [134.93.8.57]) by mail.Uni-Mainz.DE (8.9.3/8.9.3) with ESMTP id WAA04107 for ; Thu, 8 Feb 2001 22:26:10 +0100 (MET) Received: from mail.listserv.gmd.de (mail.listserv.gmd.de [192.88.97.5]) by mailgate2.zdv.Uni-Mainz.DE (8.11.0/8.10.2) with ESMTP id f18LQ9718435 for ; Thu, 8 Feb 2001 22:26:09 +0100 (MET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: from mail.listserv.gmd.de (192.88.97.5) by mail.listserv.gmd.de (LSMTP for OpenVMS v1.1a) with SMTP id <6.9605C0D6@mail.listserv.gmd.de>; Thu, 8 Feb 2001 22:26:03 +0100 Received: from RELAY.URZ.UNI-HEIDELBERG.DE by RELAY.URZ.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8b) with spool id 488867 for LATEX-L@RELAY.URZ.UNI-HEIDELBERG.DE; Thu, 8 Feb 2001 22:26:06 +0100 Received: from ix.urz.uni-heidelberg.de (mail.urz.uni-heidelberg.de [129.206.119.234]) by relay.urz.uni-heidelberg.de (8.8.8/8.8.8) with ESMTP id WAA02588 for ; Thu, 8 Feb 2001 22:26:05 +0100 (MET) Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by ix.urz.uni-heidelberg.de (8.8.8/8.8.8) with ESMTP id WAA15938 for ; Thu, 8 Feb 2001 22:26:05 +0100 Received: from angel.algonet.se (angel.algonet.se [194.213.74.112]) by relay.uni-heidelberg.de (8.10.2+Sun/8.10.2) with SMTP id f18LQ5u00998 for ; Thu, 8 Feb 2001 22:26:05 +0100 (MET) Received: (qmail 8634 invoked from network); 8 Feb 2001 22:26:03 +0100 Received: from delenn.tninet.se (HELO algonet.se) (195.100.94.104) by angel.algonet.se with SMTP; 8 Feb 2001 22:26:03 +0100 Received: from [195.100.226.163] (du163-226.ppp.su-anst.tninet.se [195.100.226.163]) by delenn.tninet.se (BLUETAIL Mail Robustifier 2.2.1) with ESMTP id 695317.667561.981delenn-s1 for ; Thu, 08 Feb 2001 22:26:01 +0100 In-Reply-To: <14979.1353.825196.318011@istrati.zdv.uni-mainz.de> References: <01JZMVN1N7XK0009XR@ALPHA.NTP.SPRINGER.DE> Return-Path: X-Sender: haberg@pop.matematik.su.se Content-class: urn:content-classes:message Subject: Re: inputenc text (and/or math) Date: Thu, 8 Feb 2001 22:24:54 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Hans Aberg" Sender: "Mailing list for the LaTeX3 project" To: "Multiple recipients of list LATEX-L" Reply-To: "Mailing list for the LaTeX3 project" Status: R X-Status: X-Keywords: X-UID: 3760 This is a multi-part message in MIME format. ------_=_NextPart_001_01C09215.C4CB4C00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable At 21:44 +0100 2001/02/08, Frank Mittelbach wrote: >Michael wrote: > > Nevertheless it seems clear that it would be better to have a = separate > > hash table for math commands and text commands. So \gamma could have = one > > definition in math and another one in text without the constant use = of > > \relax \ifmmode a\else b\fi. This of course is not possible in TeX = 3.x; > > perhaps in NTS or e-TeX or Omega. > >but that would not solve the problem either (though I agree it would = perhaps >be a good extension) since the problem with the \halign really is the = timing: >you see the \"a under the assumption that you are parsing for text mode = so you >expand whatever the internal form expands to, eg \OT1-cmd \"\OT1\", = then you >expand \OT1-cmd which i wont bother to write down here :-) and by the = time you >reach, say \accent and trigger the template's u-part your original \" = is long >gone; so if now the u-part puts a $ in front you are too late. The suggestion I came up with is to use modules: There is a "text" and a "math" module. If the module name separator is ".", the Greek natural language "gamma" command used in text is named \text.gamma, and the math "gamma" command is named \math.gamma. Then one should have some kind of abbreviation at hand, so that one does not have to write these names = out. For example \use{module}{math} would contain a series of definitions in effect like \let\gamma\math.gamma, or \use{module}{math}{gamma}. -- If = one has proper "text" and "math" environments, they should be able to sort = it out, which gamma too choose. -- I don't know how this fits together with the font table stuff, = though. Hans Aberg ------_=_NextPart_001_01C09215.C4CB4C00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: inputenc text (and/or math)

At 21:44 +0100 2001/02/08, Frank Mittelbach = wrote:
>Michael wrote:
> > Nevertheless it seems clear that it would = be better to have a separate
> > hash table for math commands and text = commands. So \gamma could have one
> > definition in math and another one in text = without the constant use of
> > \relax \ifmmode a\else b\fi. This of course = is not possible in TeX 3.x;
> > perhaps in NTS or e-TeX or Omega.
>
>but that would not solve the problem either = (though I agree it would perhaps
>be a good extension) since the problem with the = \halign really is the timing:
>you see the \"a under the assumption that = you are parsing for text mode so you
>expand whatever the internal form expands to, eg = \OT1-cmd \"\OT1\", then you
>expand \OT1-cmd which i wont bother to write down = here :-) and by the time you
>reach, say \accent and trigger the template's = u-part your original \" is long
>gone; so if now the u-part puts a $ in front you = are too late.

The suggestion I came up with is to use modules: There = is a "text" and a
"math" module. If the module name separator = is ".", the Greek natural
language "gamma" command used in text is = named \text.gamma, and the math
"gamma" command is named \math.gamma. Then = one should have some kind of
abbreviation at hand, so that one does not have to = write these names out.
For example \use{module}{math} would contain a series = of definitions in
effect like \let\gamma\math.gamma, or = \use{module}{math}{gamma}. -- If one
has proper "text" and "math" = environments, they should be able to sort it
out, which gamma too choose.

-- I don't know how this fits together with the font = table stuff, though.

  Hans Aberg

------_=_NextPart_001_01C09215.C4CB4C00--