Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s4K5O6Gi024758 for ; Tue, 20 May 2014 07:24:07 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx113) with ESMTPS (Nemesis) id 0M7kg0-1Wzd6O317o-00vPzy for ; Tue, 20 May 2014 07:24:01 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4K5LJhK018283 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 May 2014 07:21:19 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4JM1L6K006797; Tue, 20 May 2014 07:21:18 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11006268 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 20 May 2014 07:21:18 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4K5LIwc032543 for ; Tue, 20 May 2014 07:21:18 +0200 Received: from mail-oa0-f42.google.com (mail-oa0-f42.google.com [209.85.219.42]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4K5L7w2018196 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Tue, 20 May 2014 07:21:11 +0200 Received: by mail-oa0-f42.google.com with SMTP id j17so7370153oag.15 for ; Mon, 19 May 2014 22:21:07 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.115.199 with SMTP id jq7mr8590763obb.70.1400563267512; Mon, 19 May 2014 22:21:07 -0700 (PDT) Received: by 10.76.154.133 with HTTP; Mon, 19 May 2014 22:21:07 -0700 (PDT) References: Content-Type: multipart/alternative; boundary=047d7b6781200bacfb04f9ce0c9a Message-ID: Date: Tue, 20 May 2014 14:51:07 +0930 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: Unicode math To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:dXscDBFVI9Y=:CHbH71q7G/fzj2IeWTz0BXPspU 0T20x7Ke3b3/wvJ3J7Lhgn3KAkc/+cMnx1eBXtn+xPB2VZxHmmGFNo0Dn/pfzxLNZKhcA8qkA gfyslrlsON2UOD0Ew8nZxxdcPb5TPvZNObOauP6q+JpUWiSOU4CzSGpPWfEuq5nEA/fHKXvok giF2YaTEge1snhbJmTtfI/tllmA98gYv+mr4NEijey8bqLnMFH1ldwLbgNZ6Ph0QfawLMz+4F 0Hk5zHcW8THGREL2vb4CziQ9sNpW7fCCHHK9URIy/oZyOqsVuiM4eWmVWqB/8p/DXN356g53c gRTUXJEySvAjqR8QwhNQJ4EeFf+Hvp/24RCcr8LfKoIns80FOvPwFNMJxut8fr5tzpejR+IN9 9jcoIVgQNUqDaVPufNlT5VkI+QQCFRjVPQFIXSHDzMmsoEsy3VDCAKYXua6nCsPBWefr7/ZNh kP/uVwWuGVBnPrVwvMnECYcRgbPgLuSNSTLvN/kf1F3OMg0tZap5HaYhvMAJW07Ejqzq2c7vM vSkn07Dvq5t4gSfjCvwWCWixOdeba0p28HsUly/2PMZcBaK62r6XzMoJzqh4nxnnTd2JHXNbB j9Wy/Ywdy1AJrYE+K6zXE2bshueD2SgRZERQX+FhSXaZPeIAqrbe7ocdXdpLMccOjg6OXdc9q JN2lt8K/rxSDG2y8PX66esd1AD7eOPiS+BigjaOuYXWEK7K38bPY0/nWcIrBUXcBohVASacYl 7Updx/B9OBWkFIyy/cWeuFtuC2wzuzTK67iewaWeJac5tjseFyvr//5KfT1QNRmwh+Ci8KqpM g5VvNquex9dUtAYjJ+g0mvxLMb4B8Qtn0l11P/+heZ26DM6Y0rNtT80hm21ZQMHqc1t0nbXFM PrK4rWj8IKtDTGz5TQ7P/n7FMjvV4z6OU6tKP9KcppLMEpj5Xnoot+DQtFHQQ79R8q20VWyjI LQ2xKp0rER/0ecEGNqza1QBcUoJgZ2IbsHQzd3sXctsJPBaPyG2degfXGP3rjpu4eMSbSeGq/ 1IQwoj+wquZh5kvyUITTV9wz/CElCgGGNmkjKFJOuqy+DdKn6VrOM+4Zb4Q46C5waq8iGamWV jYIU74ZqLhIxHB0+fkJTug/JWJxWHyeOoFcTTotrtajEyKdgOvzKXWjrGHSn5JbzICOYFPYOQ COlg+Yqo6T3R3cepTCOc4lnu8mqzFJ1P6hljE3cLH0NfQWdUNRbHf2bgce3H2PqMscJYHAOKT M/fCO6Diw8ZRrddfJqWuL26exEcoxi5m2Lhwh36wkoliTprRbl1Yi3ZKmLQnBTk7zcFNEPYZG owkRxoFl6Fvo07RkSM/QMdKVw+b0wH67gIzBuriqF1jxeFjbMArmkvI1NYnkIYpCsRFpz23Z2 g8k+t02ZahBlXSmrP/4Ru6yvLIwyW0jbReXzQNZVSAgtqJHRggC7auzu9OHVd74xVxeZFF74j ZZygmM8G4v63CplsQpJ733zqhWL1jDdff4Z0ytC4AvDVPLLsuxMC9CcRNb3rKpNO2K+i5Qb41 1zy4XkHWynqk8Aq0D1iYcBGkTwmhOzFIoLxH920gv X-UI-Loop:V01:VfThnplJQuY=:P9ZYDpOa+84RBQ4OT4ZLdzrCWp7cVeky0hw/komlwK8= Status: R X-Status: X-Keywords: X-UID: 7411 --047d7b6781200bacfb04f9ce0c9a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, May 20, 2014 at 11:39 AM, Will Robertson wrote: 1. \mathbf and friends go back to simply selecting a text font. Note that > they still need to remap \mathcode{}s in this case because normal unicode > math glyphs exist all the way up in Plane 1 where text fonts daren't to > tread. > I see it's been a while since I looked at this (and shouldn't write these emails in a rush) -- if the class of each math char is set to 7 then the remapping mentioned above to enable old-style \mathbf etc is not necessary. This is better. Updated plain example below. Cheers, Will \font\rm =3D "Linux Libertine O:color=3DAA00AA" at 10pt\relax \font\bf =3D "Linux Libertine O Bold:color=3D0000FF" at 10pt\relax \font\it =3D "Linux Libertine O Italic:color=3D00AA00" at 10pt\relax \font\mm =3D "[latinmodern-math.otf]:color=3DFF0000" at 10pt\relax \newfam\rmmathfam \newfam\bfmathfam \newfam\itmathfam \textfont\rmmathfam\rm \textfont\bfmathfam\bf \textfont\itmathfam\it \textfont1\mm \def\alpha{=CE=B1} \def\beta{=CE=B2} \def\gamma{=CE=B3} \def\codemathhigh{% \Umathcode`\a =3D 7 1 "1D44E\relax \Umathcode`\b =3D 7 1 "1D44F\relax \Umathcode`\c =3D 7 1 "1D450\relax \Umathcode"03B1 =3D 7 1 "1D6FC\relax \Umathcode"03B2 =3D 7 1 "1D6FD\relax \Umathcode"03B3 =3D 7 1 "1D6FE\relax } \def\codemathsymup{% \Umathcode`\a =3D 7 1 `\a\relax \Umathcode`\b =3D 7 1 `\b\relax \Umathcode`\c =3D 7 1 `\c\relax \Umathcode"03B1 =3D 7 1 "03B1\relax \Umathcode"03B2 =3D 7 1 "03B2\relax \Umathcode"03B3 =3D 7 1 "03B3\relax } \def\codemathsymbf{% \Umathcode`\a =3D 7 1 "1D41A\relax \Umathcode`\b =3D 7 1 "1D41B\relax \Umathcode`\c =3D 7 1 "1D41C\relax \Umathcode"03B1 =3D 7 1 "1D6C2\relax \Umathcode"03B2 =3D 7 1 "1D6C3\relax \Umathcode"03B3 =3D 7 1 "1D6C4\relax } \def\mathrm#1{{\fam\rmmathfam #1}} \def\mathit#1{{\fam\itmathfam #1}} \def\mathbf#1{{\fam\bfmathfam #1}} \def\symbf#1{{\codemathsymbf #1}} \def\symup#1{{\codemathsymup #1}} \parindent=3D0pt\relax \hsize=3D6cm\relax \hrule \bigskip \rm \codemathhigh Regular symbols: $$ a + b + c \quad \alpha + \beta + \gamma $$ Roman, italic, and bold math families: $$ \mathrm{abc\alpha\beta\gamma} \quad \mathit{abc\alpha\beta\gamma} \quad \mathbf{abc\alpha\beta\gamma} $$ Bold math symbols: $$ \symbf{a+b+c} \quad \symbf{\alpha + \beta + \gamma} $$ Upright math symbols: $$ \symup{a+b+c} \quad \symup{\alpha + \beta + \gamma} $$ \bye --047d7b6781200bacfb04f9ce0c9a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Tue, May 20, 2014 at 11:39 AM, Will Robertson <wspr81@g= mail.com> wrote:

1. \mathbf and friends go back to si= mply selecting a text font. Note that they still need to remap \mathcode{}s= in this case because normal unicode math glyphs exist all the way up in Pl= ane 1 where text fonts daren't to tread.
=C2=A0
I see it's been a while since= I looked at this (and shouldn't write these emails in a rush) -- if th= e class of each math char is set to 7 then the remapping mentioned above to= enable old-style \mathbf etc is not necessary. This is better.

Updat= ed plain example below.

Cheers,
Will


<= div class=3D"gmail_extra">
\font\rm =3D= "Linux Libertine O:color=3DAA00AA" at 10pt\relax
\font\bf =3D "Linux Libertine O Bold:color=3D0000FF" at 10pt\rela= x
\font\it =3D "Linux Libertine O Ital= ic:color=3D00AA00" at 10pt\relax
\font= \mm =3D "[latinmodern-math.otf]:color=3DFF0000" at 10pt\relax

\newfam\rmm= athfam
\newfam\bfmathfam
\newfam\itmathfam

<= div class=3D"gmail_extra"> \textfont\rmmathfam\rm
\textfont\bfmathfam\= bf
\textfont\itmathfam\it
\textfont1\mm

\def\alpha{=CE=B1}
\def\beta{=CE=B2}
<= div class=3D"gmail_extra">\def\gamma{=CE=B3}

\def\codemathhigh{%
=C2=A0\Umathcode`\a =3D 7 1 "1D44E\relax
=C2=A0\Umathcode`\b =3D 7 1 "1D44F\relax
=C2=A0\Umathcode`\c =3D 7 1 "1D450\relax=
=C2=A0\Umathcode"03B1 =3D 7 1 "1= D6FC\relax
=C2=A0\Umathcode"03B2 =3D 7 1 "1D6FD\relax
=C2=A0\Umathcode"03B3 =3D 7 1 "1D6FE\relax
}
\def\codemathsymup{%<= /div>
=C2=A0\Umathcode`\a =3D 7 1 `\a\relax
=C2= =A0\Umathcode`\b =3D 7 1 `\b\relax
=C2=A0\U= mathcode`\c =3D 7 1 `\c\relax
=C2=A0\Umathc= ode"03B1 =3D 7 1 "03B1\relax
=C2=A0\Umathcode"03B2 =3D 7 1 "03B2\re= lax
=C2=A0\Umathcode"03B3 =3D 7 1 &quo= t;03B3\relax
}
\def\codemathsymbf{%
=C2=A0\Umathcode`\a =3D 7 1 "1D41A\relax
=C2=A0\Umathcode`\b =3D 7 1 "1D41B\relax=
=C2=A0\Umathcode`\c =3D 7 1 "1D41C\re= lax
=C2=A0\Umathcode"03B1 =3D 7 1 "1D6C2\relax
=C2=A0\Umathcode"03B2 =3D 7 1 "1D6C3\relax
=C2=A0\Umathcode"03B3 =3D 7 1 "1D6C4\relax
}

\def= \mathrm#1{{\fam\rmmathfam #1}}
\def\mathit#= 1{{\fam\itmathfam #1}}
\def\mathbf#1{{\fam\= bfmathfam #1}}
\def\symbf#1{{\codemathsymbf #1}}
\def\symup#1{{\codemathsymup #1}}

\parindent=3D0pt\relax
<= div class=3D"gmail_extra"> \hsize=3D6cm\relax
\hrule
\bigskip

\rm
\codemathhigh
=

Regular symbols:
$$
=C2=A0a + b + c \quad \alpha = + \beta + \gamma
$$
Roman, italic, and bold math families:
$$
=C2=A0\mathrm= {abc\alpha\beta\gamma} \quad \mathit{abc\alpha\beta\gamma} \quad \mathbf{ab= c\alpha\beta\gamma}
$$
Bold math symbols:
$$
\symbf{a+b+c} \quad \symbf{\alpha + \beta + \gamma}
$$
Upright math symbols= :
$$
\symup{a+b+c}= \quad \symup{\alpha + \beta + \gamma}
$$

\bye

--047d7b6781200bacfb04f9ce0c9a--