🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #2326

Re: How to set \oldstyle as default ?

#2326
From: Victor Eijkhout
Date: Mon, 17 Aug 1992 15:42
34 lines
1472 bytes
In article <1992Aug16.144136.779@cnedcu51.bitnet>, iffuhrer@cnedcu51.bitnet writes:
|> Dear TeX Gurus
|> 
|> Could someone explain me how to set \oldstyle numbers as default for a whole
|> document. (a style in the \documentstyle command ?)

Off the top of my head: digits have a mathcode "7000+x where x is their
value. This makes them come (in math mode) from the roman font.
If you set

\mathcode`0=7130 % 7100+ascii(0)
...
\mathcode`9=7139 % 7100+ascii(9)

then in math they should be from the italic font, which has the
old style digits.

In text mode there is no simple way to do this, other than
to make all them digits into active characters:

\catcode`0=13 \def0{{\textfont1 0}}
...
\catcode`9=13 \def9{{\textfont1 9}}

(these definitions are obviously incorrect, but I don't encourage
this approach anyhow.)

|> Claude Fuhrer

Victor.

|> P.S. Sorry for my poor english.

It looked pretty purrfect to me.
Technical Details
Message-ID: <l8vi6nINNcvc@utkcs2.cs.utk.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!utkcs2!cupid.cs.utk.edu!eijkhout
References: <1992Aug16.144136.779@cnedcu51.bitnet>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!utkcs2!cupid.cs.utk.edu!eijkhout
From: eijkhout@cupid.cs.utk.edu (Victor Eijkhout)
Newsgroups: comp.text.tex
Subject: Re: How to set \oldstyle as default ?
Date: 17 Aug 92 15:42:15 GMT
Organization: University of Tennessee, Knoxville - Department of Computer Science
Lines: 34
Distribution: world
Message-ID: <l8vi6nINNcvc@utkcs2.cs.utk.edu>
References: <1992Aug16.144136.779@cnedcu51.bitnet>
Reply-To: eijkhout@cupid.cs.utk.edu (Victor Eijkhout)
NNTP-Posting-Host: cupid.cs.utk.edu