Difference between revisions of "Command/setupmathematics"

From Wiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>setupmathematics</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 102: Line 105:
 
{{Forum|setupmathematics}}
 
{{Forum|setupmathematics}}
  
[[Category:Commands|setupmathematics]]
+
[[Category:Command/Mathematics|setupmathematics]]

Latest revision as of 00:26, 15 November 2019

\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: