Am 02.08.2014 um 22:36 schrieb Procházka Lukáš <LPr@pontex.cz>:

Hello,

On Sat, 02 Aug 2014 19:07:43 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

Don’t use the \os command this way because the command is only meant to be used on the form {\os 1234} where you put braces around the numbers you want to change. When you use the \os command as shown above you get problems because ligatures, kerning etc. are disabled by the command.

OK, thanks for explanation.

This means that one has to switch to \os only when a number is to be printed.

So when I want all numbers in the document to be old-style (and also ligatures etc. be kept), I have to:

1) switch to {\os } when writing a number manually,

2) define "old-style-making-commands" wherever numbers are generated automatically, i.e. e.g.:
- head commands (sections, chapters...),
- enumerator commands (which use numbers),
- page numbering commands,
- href commands (which generate texts like "see section 1.2.3 on page 123").

It seems to me be a little "labor of Sisyphus" at the moment.

(But it's clear one would have to enclose manually entered numbers to {\os } or similar structure anyway.)

No, this is wrong and I’m not sure what you try to achieve because first you talk about disabling old style figures and now your talking about enabling them.


When you *want* your document to use old style figures for the body font you have to enable the onum feature in the default feature set which can be done with

    \definefontfeature[default][default][onum=yes]

before you set the font with the \setupbodyfont command. To change the numbers for certain parts of your document you can use the \feature command, e.g.

    \setupcaption[figure][style={\feature[+][f:lnum]}]

enables lining figures for the caption of your figures.


The \os command itself should only be used when you have a few numbers which should appear in a different layout from the global setup.

Wolfgang