矩阵中换行
LaTex中矩阵换行,两个"\"就可以,MathJax需要4个"\":
\begin{equation} Y = \begin{bmatrix} m_1 + m_2 + m_3 \\\\ m_2 - m_3 - m_4 \end{bmatrix} \end{equation}
得到公式:
\begin{equation}
Y = \begin{bmatrix}
m_1 + m_2 + m_3 \\
m_2 - m_3 - m_4
\end{bmatrix}
\end{equation}
公式中有超过1个花括号"_{}"作为下标,需要对"_"前加"\"
来自stackoverflow:
https://stackoverflow.com/questions/56517901/how-to-render-multiple-subscripts-in-a-mathjax-equation
inline $D\_{01} + D\_{01}$
得到公式
inline $D_{01} + D_{01}$