[texhax] Upright digits in theorems

William Adams will.adams at frycomm.com
Tue Jun 6 16:30:54 CEST 2006

On Jun 6, 2006, at 10:11 AM, Alex Scorpan wrote:

> What is the most elegant and robust way to arrange that digits and
> such always display upright inside a theorem-like environment, when
> the surrounding text is italic?  This is for a rather large-scale
> application.
> Our current approach is to make the various characters active inside
> the theorem environment and define them as \textup{...}.  However,
> that creates problems if anybody uses, say, a label with a digit or a
> \vskip or whatever.

Create a virtual italic font which contains the upright digits.

You can crib from the examples showing how to do old-style figures in  
the FontInst and Font Installation Guide documentation, also see Alan  
Hoenig's wonderful _TeX Unbound_


William Adams
senior graphic designer
Fry Communications

This email message and any files transmitted with it contain information
which is confidential and intended only for the addressee(s). If you are
not the intended recipient(s), any usage,  dissemination, disclosure, or
action taken in  reliance on it is prohibited.  The reliability of  this
method of communication cannot be guaranteed.  Email can be intercepted,
corrupted, delayed, incompletely transmitted, virus-laden,  or otherwise
affected during transmission. Reasonable steps have been taken to reduce
the risk of viruses, but we cannot accept liability for damage sustained
as a result of this message. If you have received this message in error,
please immediately delete it and all copies of it and notify the sender.

More information about the texhax mailing list