我得到了以下代码的正确输出,但 latex 抛出了一个错误
**Illegal character in array arg. \begin{array}{11}** along with it.
有人知道如何修复这个错误吗?
\begin{equation}
C_1 = \{\beta_{1,1}, \beta_{2,1}\} = \left\{
\begin{array}{ll}
\left[
\begin{array}{11}
0\\
0\\
0
\end{array}
\right],
\left[
\begin{array}{11}
0\\
0\\
0
\end{array}
\right],
\left[
\begin{array}{11}
0\\
0\\
0
\end{array}
\right],
\left[
\begin{array}{11}
0\\
0\\
0
\end{array}
\right]
\end{array}
\right\}
\end{equation}
答案1
您的问题已解决Phelype Oleinik 的评论,但是使用该包,amsmath
您的方程可以写如下:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
C_1 = \{\beta_{1,1}, \beta_{2,1}\}
= \left\{
\begin{bmatrix}
0\\
0\\
0
\end{bmatrix}
\begin{bmatrix}
0\\
0\\
0
\end{bmatrix}
\begin{bmatrix}
0\\
0\\
0
\end{bmatrix}
\begin{bmatrix}
0\\
0\\
0
\end{bmatrix}
\right\}
\end{equation}
\end{document}