Command/setupmathematics

From Wiki
Jump to navigation Jump to search

\setupmathematics

Syntax (autogenerated)

\setupmathematics[...,...][...=...,...]
[...,...]name
openupyes no
symbolsetname
functionstylestyle command
compactyes no
alignl2r r2l righttoleft
bidiyes no
sygreeknormal italic none
lcgreeknormal italic none
ucgreeknormal italic none
italics1 2 3 4 none reset
autopunctuationyes no all comma yes,semicolon comma,semicolon all,semicolon
setupsname
domainname reset
textstylestyle command
textcolorcolor
functioncolorcolor
integrallimits nolimits autolimits displaylimits none
stylealternativename
defaultnormal italic
fractionams ctx
ampersandnormal
collapsing1 2 3 none reset
kernpairsyes no


Syntax

\setupmathematics[...=...]
autopunctuation
no TeX style: place a thin space after a comma
yes If a comma is followed directly by a number, suppress the thin space.
all Like yes, and periods behave the same as commas
lcgreek italic normal -- font shape of lowercase greek letters
ucgreek italic normal -- font shape of uppercase greek letters
sygreek italic normal -- font shape of symbol characters such as \nabla, \partial, etc
integral
nolimits always place limit values next to the integral sign
limits always place limit values above/below the integral sign
displaylimits place limit values above/below in displays, and next to the sign in inline maths.
autolimits the default: integral=limits.

Description

Global settings pertaining to the display of mathematics.

Example

Integrals and greek

This example illustrates integral, lcgreek, and ucgreek.

    % mode=mkiv
    \setupmathematics
       [integral=nolimits,
        lcgreek=italic,
        ucgreek=italic,]
    nolimits \m{\int_0^\infty \alpha \Sigma}
    \startformula
        \int_0^\infty \alpha \Sigma
    \stopformula

    \setupmathematics
       [integral=displaylimits,
        lcgreek=normal,
        ucgreek=normal,]

    displaylimits \m{\int_0^\infty \alpha \Sigma}
    \startformula
        \int_0^\infty \alpha \Sigma
    \stopformula

Symbolset

\startformula
    \reals {\mathbf R} \utfchar{"0211D} \utfchar{"1D411}
\stopformula

\setupmathematics
  [symbolset=blackboard-to-bold]

\startformula
    \reals {\mathbf R} \utfchar{"0211D} \utfchar{"1D411}
\stopformula

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: