[NTG-context] Latin setupmathematics

Hans Åberg haberg-1 at telia.com
Sun May 15 19:28:20 CEST 2016

> On 15 May 2016, at 19:12, Hans Hagen <pragma at wxs.nl> wrote:
> On 5/15/2016 6:36 PM, Hans Åberg wrote:
>>> On 15 May 2016, at 16:44, Wolfgang Schuster <schuster.wolfgang at gmail.com> wrote:
>>> \appendtoks \rm \to \everymathematics
>> Here is another variation: using the sans-serif math styles, combining with the suggestion in the “Nolimits” thread. It would save the effort having to change all variables into italics by hand, but otherwise, just a hack. (It seems that \diff is defined, though I haven’t found a reference for it.)
>> \setupbodyfont[xits,10pt]
>> \appendtoks
>>  \catcode`𝖽=\activecatcode
>>  \letcharcode `𝖽 \diff
>> \to \everymathematics
>> \startformula
>>  \startalign
>>    I &= ∫_S d(x)\, 𝖽 x \NR
>>    I &= ∫_S d(x)\, \diff x \NR
>>    I &= ∫_S d(x)\, {\mathupright d} x \NR
>>  \stopalign
>> \stopformula
> What do you mean with change by hand ... isn't that what context can do for you? Operate on all those axes ... (\tf is the upright one). There are extensive mapping mechanisms so best user them.

The idea is to follow Unicode math styles in the input, so the serif upright styles must be in the ASCII range—there are no special math styles for those. Right now, in TeX code, one normally uses the in the ASCII range for math italic. So all variables, now in the ASCII range must be changed to Unicode math italic in order to not conflict with the upright ones put into the ASCII range, unless one does something else: Say using the math sans-serif upright for the upright. But that isn’t right either, as someone, now that both serif and sans-serif math styles are available, may want to use them to indicate semantically different math objects.

More information about the ntg-context mailing list