[NTG-context] Latin setupmathematics

Hans Hagen pragma at wxs.nl
Sun May 15 19:12:01 CEST 2016


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.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list