Loading [MathJax]/jax/output/HTML-CSS/jax.js

Monday, December 9, 2013

Code

在 inline mdoe 時 matrix 縮細,display mode 時 matrix 為原本大小的方法:
\newcommand{\smatrix}[1]{
\left[\begin{smallmatrix}#1\end{smallmatrix}\right]
}
\renewcommand{\matrix}[1]{
\mathchoice{\begin{bmatrix}#1\end{bmatrix}}{\kern0pt\smatrix{#1}}{\kern0pt\smatrix{#1}}{\kern0pt\smatrix{#1}}
}


No comments:

Post a Comment