
我用了
\begin{matrix}
\ldots & 1 & 0 & 0 & 2 & 1 & | & 2 & 0 & 0 & 1 & \ldots \\
\ldots & & & & & 0 & | & 1 & & & &
\end{matrix}
但乳膠說:
Extra alignment tab has been changed to \cr.
<recently read> \endtemplate
我的錯誤在哪裡?
答案1
看如何在 \bmatrix 中使用超過 10 個製表位?,但可能你想要別的東西:
\[
\begin{array}{@{} *{6}{c} | *{5}{c} @{}}
\dots & 1 & 0 & 0 & 2 & 1 & 2 & 0 & 0 & 1 & \dots \\
\dots & & & & & 0 & 1 & & & &
\end{array}
\]
與輸出比較
\documentclass{article}
\usepackage{amsmath}
\setcounter{MaxMatrixCols}{12}
\begin{document}
\[
\begin{matrix}
\dots & 1 & 0 & 0 & 2 & 1 & | & 2 & 0 & 0 & 1 & \dots \\
\dots & & & & & 0 & | & 1 & & & &
\end{matrix}
\]
\end{document}