Dear consortium, Switching to oldstyle is easy: \usetypescript [modern][\defaultencoding] \usetypescript [map] [latin-modern-os] [\defaultencoding] \setupbodyfont [modern] But how do I locally switch back to upright? Declaring \usetypescript [map] [latin-modern] [\defaultencoding] does nothing. Basically I want to have something like \def\UP{\switchtobodyfont[lmrup]} for local effects. I tried \definetypeface [lmrup] [rm] [serif] [latin-modern] [default] [encoding=texnansi] to no avail as well. Test file attached Thnx in advance! Idris =========================test-os============================ % output=pdf interface=en \usetypescript [modern][\defaultencoding] \usetypescript [map] [latin-modern-os] [\defaultencoding] \usetypescript [map] [latin-modern] [\defaultencoding] \setupbodyfont [modern] %\definetypeface [lmros] [rm] [serif] [latin-modern-os] [default] [encoding=texnansi] %\switchtotypeface [lmros] [12pt,rm] %\definetypeface [lmrup] [rm] [serif] [computer-modern] [default] [encoding=\defaultencoding] \starttext 1234 \usetypescript [modern][\defaultencoding] \usetypescript [map] [latin-modern] [\defaultencoding] 1234 \stoptext ============================================================ ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
Idris Samawi Hamid wrote:
Dear consortium,
Switching to oldstyle is easy:
\usetypescript [modern][\defaultencoding] \usetypescript [map] [latin-modern-os] [\defaultencoding] \setupbodyfont [modern]
But how do I locally switch back to upright? Declaring
I don't think you can, actually. There are no metric files for oldstyle in the latin modern distribution, only an encoding vector (and .map). Pdftex either uses entries from the 'lining' map file, or from the 'oldstyle' mapfile, but it has no way of distinguising between the two (the fonts have the same metrics). The reverse of the old oldstyle trick should work though: \def\liningfigures#1{\mathematics{#1}} Cheers, Taco
participants (2)
-
Idris Samawi Hamid
-
Taco Hoekwater