Article View: comp.text.tex
Article #11577Re: itma.sty and nfss problem
From: Sven Gohlke
Date: Thu, 15 Apr 1993 14:13
Date: Thu, 15 Apr 1993 14:13
52 lines
2653 bytes
2653 bytes
In <C5IKu3.Krz@kurango.cit.gu.edu.au> rwt@kurango.cit.gu.edu.au (Rodney Topor) writes:
>I am trying to use the LaTeX style file itma.sty, listed below, to display
>all letters occurring in formulas in italic instead of math italic.
>It works correctly with the old font selection scheme (and with SliTeX),
>but with the new font selection scheme (in LaTeX), commas appear as
>semicolons in formulas, full stops as colons, and other characters
>also appear incorrectly.
>Can anyone tell me the cause of this problem and how to cure it?
>(Part of the problem is that the \ifx returns \false instead of \true
>when using the NFSS.)
>% itma.sty :
>%
>% MATHCODES
>%
>% The mathcodes for the letters A, ..., Z, a, ..., z are changed to
>% generate text italic rather than math italic by default. This makes
>% multi-letter identifiers look better. The mathcode for character c
>% is set to "7000 (variable family) + "400 (text italic) + c.
>\ifx\define@mathgroup\undefined
>\def\@setmcodes#1#2#3{{\count0=#1 \count1=#3
> \loop \global\mathcode\count0=\count1 \ifnum \count0<#2
> \advance\count0 by1 \advance\count1 by1 \repeat}}
>\@setmcodes{`A}{`Z}{"7441}
>\@setmcodes{`a}{`z}{"7461}
>\else
>\define@mathgroup{\mv@normal}{1}{cmr}{m}{it}
>\fi
You should never use the internal commands like '\define@mathgroup'. A
better way to do is described in the manual to the NFSS. With the following
lines you can define a new command '\itmath', which switch to the normal
italic like $\itmath{asc}$.
% itma.sty
% clear for NFSS
\newmathalphabet{\itmath}
\addtoversion{normal}{\itmath}{cmr}{m}{it}
\addtoversion{bold}{\itmath}{cmr}{bx}{it}
\mathversion{normal}
Sven
-----
(gohlke@marie.physik.tu-berlin.de) | Sven Gohlke
(gohlke@itp1.physik.tu-berlin.de) | Lessingstra"se 10
(gohlke@w421zrz.physik.tu-berlin.de) | 12167 Berlin
Technical Details
Message-ID:
<1qjqi4$dgm@mailgzrz.TU-Berlin.DE>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!lise!gohlkeReferences:
<C5IKu3.Krz@kurango.cit.gu.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9e16,64a2fa9ad29b7621 X-Google-Attributes: gidf9e16,public X-Google-Thread: f4a99,64a2fa9ad29b7621 X-Google-Attributes: gidf4a99,public X-Google-ArrivalTime: 1993-04-15 07:22:36 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!lise!gohlke From: gohlke@lise.physik.tu-berlin.de (Sven Gohlke) Newsgroups: comp.text.tex,aus.tex Subject: Re: itma.sty and nfss problem Date: 15 Apr 1993 14:13:24 GMT Organization: TUBerlin/ZRZ Lines: 53 Message-ID: <1qjqi4$dgm@mailgzrz.TU-Berlin.DE> References: <C5IKu3.Krz@kurango.cit.gu.edu.au> NNTP-Posting-Host: lise.physik.tu-berlin.de