From: "Idris Samawi Hamid" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: old style nums
Date: Tue, 01 Jan 2008 19:56:10 -0700 [thread overview]
Message-ID: <op.t397rwknnx1yh1@your-b27fb1c401> (raw)
In-Reply-To: <20080102000916.598d07e0.schuster.wolfgang@googlemail.com>
[-- Attachment #1: Type: text/plain, Size: 1981 bytes --]
Hi Wolfgang,
On Tue, 01 Jan 2008 16:09:16 -0700, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>> What is the official way to get old style numerals in 11pt in mkiv? I'm
>> just using lm.
>
> It depends what do you want to achieve, local changes can be done with
> \os, but this will use numbers from the math font.
That's exactly why \os is almost useless (it messes up itemizations and
other stuff); better to \switchtotypeface, even for local changes.
> option two is to write
> \setfontfeature{oldstyle} in the preamble of your document and ConTeXt
> use oldstyle numbers by default if present in the current font.
You also have to define "oldstyle" :-)
==========================================
% engine=luatex
\definefontfeature
[oldstyle]
[mode=node,language=dflt,script=latn,onum=yes,tnum=yes]
\setfontfeature{oldstyle}
\starttext
1234567890
\stoptext
==========================================
> There is currently no better way to enable oldstyle number for the
> whole document except you define your own typescripts and use them.
I spent hours today writing and debugging a huge typescript for lm (all
those optical sizes, since i could not for the life of me get it to
piggy-back the def's in type-siz). I just got it working flawlessly a few
minutes ago -- sublime, a work of art even -- then I get your message
which would have saved me hours of work! I just needed that one command!!!
You're an angel, just wish I got this this morning ;-)
Best wishes
Idris
PS Note that tnum (tabular version) looks better than onum alone, but is a
function of onum in the font so cannot be invoked unless onum is invoked
first.
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
[-- Attachment #2: type-lmos.tex --]
[-- Type: application/x-tex, Size: 9015 bytes --]
[-- Attachment #3: test-lmos.tex --]
[-- Type: application/x-tex, Size: 2816 bytes --]
[-- Attachment #4: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-01-02 2:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-31 8:50 Idris Samawi Hamid
2008-01-01 23:09 ` Wolfgang Schuster
2008-01-02 2:56 ` Idris Samawi Hamid [this message]
2008-01-02 8:37 ` Wolfgang Schuster
2008-01-02 14:40 ` Idris Samawi Hamid
2008-01-02 15:05 ` Wolfgang Schuster
2008-01-02 15:06 ` Taco Hoekwater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.t397rwknnx1yh1@your-b27fb1c401 \
--to=ishamid@colostate.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).