[NTG-context] Latin setupmathematics

Hans Åberg haberg-1 at telia.com
Sun May 15 18:36:53 CEST 2016


> 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




More information about the ntg-context mailing list