数学工具

这个 mathtools extension implements the mathtools style package from LaTeX. The package provides a number of tools for advanced mathematical typesetting. See the CTAN page 有关更多信息和文档,请参阅 mathtools

此软件包不是自动加载的,因此如果您要使用它,则必须明确请求它。要加载 mathtools 扩展,添加 '[tex]/mathtools' 发送到 load 属性的数组 loader 您的MathJax配置的挡路,然后添加 'mathtools' 发送到 packages 属性的数组 tex 挡路。

window.MathJax = {
  loader: {load: ['[tex]/mathtools']},
  tex: {packages: {'[+]': ['mathtools']}}
};

或者,使用 \require{{mathtools}} 在Tex表达式中从页上的数学函数中动态加载它,如果 require 扩展已加载。


数学工具选项

添加 mathtools 扩展到 packages 数组定义了一个 mathtools 中国银行业的子挡路 tex 使用以下值配置挡路:

MathJax = {
  tex: {
    mathtools: {
      multlinegap: '1em',
      multlined-pos: 'c',
      firstline-afterskip: '',
      lastline-preskip: '',
      smallmatrix-align: 'c',
      shortvdotsadjustabove: '.2em',
      shortvdotsadjustbelow: '.2em',
      centercolon: false,
      centercolon-offset: '.04em',
      thincolon-dx: '-.04em',
      thincolon-dw: '-.08em',
      use-unicode: false,
      prescript-sub-format: '',
      prescript-sup-format: '',
      prescript-arg-format: '',
      allow-mathtoolsset: true,
      pairedDelimiters: {},
      tagforms: {}
    }
  }
};
multlinegap: '1em'

多行环境的水平空间。

multlined-pos: 'c'

多行环境的默认对齐方式。

firstline-afterskip: ''

多行文字的第一行的空格(替代多行文字间距)。

lastline-preskip: ''

多行文字的最后一行的空格(替代多行文字间距)。

smallmatrix-align: 'c'

小型矩阵环境的默认对齐方式。

shortvdotsadjustabove: '.2em'

上方要删除的空间 \shortvdots

shortvdotsadjustbelow: '.2em'

下面要删除的空间 \shortvdots

centercolon: false

如果为True,则冒号自动居中。

centercolon-offset: '.04em'

居中冒号的垂直调整。

thincolon-dx: '-.04em'

水平调整用于细冒号(例如, \coloneqq )。

thincolon-dw: '-.08em'

细冒号的宽度调整。

use-unicode: false

如果为True,则使用Unicode字符而不是多字符版本 \coloneqq 等等,在可能的情况下。

prescript-sub-format: ''

格式为 \prescript 下标。

prescript-sup-format: ''

格式为 \prescript 上标。

prescript-arg-format: ''

格式为 \prescript 基地。

allow-mathtoolsset: true

TRUE以允许 \mathtoolsset 若要更改设置,请执行以下操作。

pairedDelimiters: {}

表单的预定义成对分隔符 name: [left, right, body, argcount, pre, post]

tagforms: {}

表单的标记表单定义 name: [left, right, format]


数学工具命令

这个 mathtools 扩展实现以下宏: \:\Aboxed\adjustlimits\ArrowBetweenLines\bigtimes\centercolon\clap\colonapprox\Colonapprox\coloneq\Coloneq\coloneqq\Coloneqq\colonsim\Colonsim\cramped\crampedclap\crampedllap\crampedrlap\crampedsubstack\dblcolon\DeclarePairedDelimiters\DeclarePairedDelimitersX\DeclarePairedDelimitersXPP\eqcolon\Eqcolon\eqqcolon\Eqqcolon\lparen\mathclap\mathllap\mathmakebox\mathmbox\mathrlap\mathtoolsset\MoveEqLeft\MTFlushSpaceAbove\MTFlushSpaceBelow\MTThinColon\ndownarrow\newtagform\nuparrow\ordinarycolon\overbracket\prescript\refeq\renewtagform\rparen\shortvdotswithin\shoveleft\shoveright\splitdfrac\splitfrac\textclap\textllap\textrlap\underbracket\usetagform\vdotswithin\xhookleftarrow\xhookrightarrow\xLeftarrow\xleftharpoondown\xleftharpoonup\xleftrightarrow\xLeftrightarrow\xleftrightharpoons\xmapsto\xmathstrut\xRightarrow\xrightharpoondown\xrightharpoonup\xrightleftharpoons

以及以下环境: bmatrix*Bmatrix*bsmallmatrix*Bsmallmatrix*bsmallmatrixBsmallmatrixcases*crampedsubarraydcases*dcasesdrcases*drcaseslgatheredmatrix*multlinedpmatrix*psmallmatrix*psmallmatrixrcases*rcasesrgatheredsmallmatrix*spreadlinesvmatrix*Vmatrix*vsmallmatrix*Vsmallmatrix*vsmallmatrixVsmallmatrix