Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\identitymatrixm:I{1}integerArgspec m:I — one mandatory argument. Reading argspecs
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Expands to#
\identitymatrix{n} 1 & 0 & ... \\ 0 & 1 & ... \\ ...Expands directly into matrix rows and columns
See also#
\imatphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\identitymatrix{1} | Positive · baseline | Pass | Fail | Pass |
\identitymatrix 1 | Positive · bare[0] | Pass | Fail | Pass |
\identitymatrix{a} | Negative · neg:I[0] | Fail | Fail | Fail |
\admat\antidiagonalmatrix\bmqty\diagonalmatrix\dmat\identitymatrix\imat\matrixdeterminant\matrixquantity\mdet\mqty\paulimatrix