物理学
这个 physics extension implements much of the LaTeX physics package ,它通过以下方式为排版公式定义了简单而灵活的宏:
自动支撑
矢量表示法
导数
狄拉克文胸符号
矩阵宏
附加的trig函数和其他方便的运算符
平分数和其他有用的杂项数学宏
见 documentation 更多信息请参阅 Latex 包装。
此包未自动加载,因为它重新定义了许多标准宏,因此如果要使用它,必须显式请求它。装入 physics 扩展,添加 '[tex]/physics' 到 load 数组 loader 块的mathjax配置,并添加 'physics' 到 packages 数组 tex 块。
window.MathJax = {
loader: {load: ['[tex]/physics']},
tex: {packages: {'[+]': ['physics']}}
};
或者,使用 \require{{physics}} 在tex表达式中,从页面上的数学中动态加载它,如果 require 已加载包。
物理选项
添加 physics 扩展到 packages 数组定义了一个 physics 中国银行业的子挡路 tex 使用以下值配置挡路:
MathJax = {
tex: {
physics: {
italicdiff: false,
arrowdel: false
}
}
};
- italicdiff: false
这对应于 italicdiff 的选项 physics Latex 包装使用斜体表示 d 在 \differential 和 \derivative `命令。
- arrowdel: false
这对应于 arrowdel 的选项 physics LaTeX包在nabla符号上使用向量表示法。
请注意, physics 扩展不实现 notrig 选项。
物理命令
这个 physics 扩展实现以下宏: \abs , \absolutevalue , \acomm , \acos , \acosecant , \acosine , \acot , \acotangent , \acsc , \admat , \anticommutator , \antidiagonalmatrix , \arccos , \arccosecant , \arccosine , \arccot , \arccotangent , \arccsc , \arcsec , \arcsecant , \arcsin , \arcsine , \arctan , \arctangent , \asec , \asecant , \asin , \asine , \atan , \atangent , \bmqty , \bqty , \Bqty , \bra , \braket , \comm , \commutator , \cos , \cosecant , \cosh , \cosine , \cot , \cotangent , \coth , \cp , \cross , \crossproduct , \csc , \csch , \curl , \dd , \derivative , \det , \determinant , \diagonalmatrix , \diffd , \differential , \div , \divergence , \dmat , \dotproduct , \dv , \dyad , \erf , \ev , \eval , \evaluated , \exp , \expectationvalue , \exponential , \expval , \fderivative , \fdv , \flatfrac , \functionalderivative , \grad , \gradient , \gradientnabla , \hypcosecant , \hypcosine , \hypcotangent , \hypsecant , \hypsine , \hyptangent , \identitymatrix , \Im , \imaginary , \imat , \innerproduct , \ip , \ket , \ketbra , \laplacian , \ln , \log , \logarithm , \matrixdeterminant , \matrixel , \matrixelement , \matrixquantity , \mdet , \mel , \mqty , \naturallogarithm , \norm , \op , \order , \outerproduct , \partialderivative , \paulimatrix , \pb , \pderivative , \pdv , \pmat , \pmqty , \Pmqty , \poissonbracket , \pqty , \Pr , \principalvalue , \Probability , \pv , \PV , \qall , \qand , \qas , \qassume , \qc , \qcc , \qcomma , \qelse , \qeven , \qfor , \qgiven , \qif , \qin , \qinteger , \qlet , \qodd , \qor , \qotherwise , \qq , \qqtext , \qsince , \qthen , \qty , \quantity , \qunless , \qusing , \rank , \Re , \real , \Res , \Residue , \sbmqty , \sec , \secant , \sech , \sin , \sine , \sinh , \smallmatrixquantity , \smdet , \smqty , \spmqty , \sPmqty , \svmqty , \tan , \tangent , \tanh , \tr , \Tr , \trace , \Trace , \va , \var , \variation , \vb , \vdot , \vectorarrow , \vectorbold , \vectorunit , \vmqty , \vnabla , \vqty , \vu , \xmat , \xmatrix , \zeromatrix , \zmat
以及以下环境: smallmatrix