MathJax的Bordermatrix的替代品

时间:2018-12-21 16:54:40

标签: latex mathjax

我正在使用bordermatrix来写矩阵,其系数在顶部和左侧:

matrix image

我想在使用Mathjax的网站上显示类似的矩阵,但出现[数学处理错误]。您是否有bordermatrix的MathJax替代品才能得到相同的结果?

1 个答案:

答案 0 :(得分:1)

您可以使用以下结构:

\begin{align}
  f(x) &= ax^2 + bx + c \\
  &= \begin{array}{c c}
    & \begin{array} {@{} c c c @{}}
      u_1 & \cdots & u_q
    \end{array} \\
    \begin{array}{c}
      e_1 \\ \vdots \\ e_n
    \end{array}\hspace{-1em} &
    \left(
      \begin{array}{@{} c c c @{}}
        u_{11} & \cdots & u_{1q} \\
        \vdots &        & \vdots \\
        u_{n1} & \cdots & u_{nq}
      \end{array}
    \right) \\
    \mbox{} % Blank line to match column names so as to align the = vertically
  \end{array} \\[-12pt] % Correction for blank line
  &= ax^2 + bx + c
\end{align}

enter image description here

取决于您是否将其与其他内容对齐,可能不需要我插入的垂直调整。

Math.SE上进行了测试。