Viktor Varheit said this at Wed, 27 Apr 2005 15:33:12 +0200:

>ConTeXt  ver: 2005.01.31  fmt: 2005.4.27  int: english  mes: english
>
>Maybe I have to set up anything else?

I'm not entirely certain the magic mapfile is in the main release. (Can't
check--on the road currently.)

>\usetypescript[adobekb][\defaultencoding]

This is an unnecessary line.

>\usetypescript [modern][\defaultencoding]
>\usetypescript [map] [latin-modern-os] [\defaultencoding]
>\setupbodyfont[modern]

Okay, this should (once you get it to work with the LM fonts) work, but
only partially to your requirements--the mapfile magic re-encodes all
fonts so all numerals are text figures. In order to get lining figures on
command in every context, it'll take a bunch more typescripts (and a few
fontvariants defined).

For something a little more tractable, we can have a (not very robust)
hack that switches to math mode (and therefore CM, not LM) when you want
the occasional lining figure. I'll leave auto detection of bold vs normal
weight as an exercise for the reader:

\usetypescript [modern][\defaultencoding]
\usetypescript [map] [latin-modern-os] [\defaultencoding]

\definetypeface[boldmath][mm][boldmath][computer-modern]
                     [computer-modern][encoding=default]
\setupbodyfont[modern]

\def\Lining{\formula}
\def\BoldLining{\formula[boldmath]}
\starttext 

test 1234 test

\ss test 1234 test

\rm test \Lining{1234} test

\bf test \BoldLining{1234} test
\stoptext
 

And this is all pretty much specific to Latin Modern at the moment.
You're looking at fontvariants, most likely, if you want it with your own
fonts. (Recommendation (and PracTeX Journal plug:) this is done fairly
easily with rich OpenType fonts.)
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     [EMAIL PROTECTED]
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to