我在下表的倒数第二行(右括号)收到此错误消息:缺少插入 $。}但是,文件可以编译,PDF 也可以正确显示。尽管如此,这些令人担忧的消息还是很烦人。
这是一个 MWE:
\documentclass{article}
\usepackage{amsmath,amssymb,amsthm,mathpazo,array}
\pdfoutput=1
\begin{document}
\begin{table}[htbp]
\centering
\extrarowheight = -0.5ex
\renewcommand{\arraystretch}{3.3}
\boxed{
\begin{tabular}{>{$}l<{$\hspace{15pt}}*{6}{>$c<$}}
$ \boxed{\Delta_0 = 33} $&\rightarrow&1&-4&6&-4&1\\
\boxed{\Delta_1 = -3}&\rightarrow&-1&3&-3&1& \vdots \\
\boxed{\Delta_2 = -10}&\rightarrow&1&-2&1&\vdots & \vdots \\
\boxed{\Delta_3 = 12}&\rightarrow&-1&1&\vdots &\vdots &\vdots \\
\boxed{\Delta_4 = 24}&\rightarrow&1&\vdots &\vdots &\vdots &\vdots \\
&& \downarrow &\downarrow &\downarrow &\downarrow &\downarrow\\
&&\boxed{\textbf{38}} &\boxed{\textbf{-109}} &\boxed{\textbf{197}} &\boxed{\textbf{-135}} &\boxed{\textbf{33}}\\
&& $ x^4 $ & $ x^3 $ & $ x^2 $ & $ x^1 $ & $ x^0 $
\end{tabular}
}
\end{table}
\end{document}
答案1
您已经使用了tabular
所以列是文本而不是数学所以您需要$\rightarrow$
或数学列如>{$}c<{$}
\documentclass{article}
\usepackage{amsmath,array}
\begin{document}
\begin{table}[htbp]
\centering
\extrarowheight = -0.5ex
\renewcommand{\arraystretch}{3.3}
\boxed{%
\begin{tabular}{>{$}l<{$\hspace{15pt}}*{6}{>$c<$}}
\boxed{\Delta_0 = 33}&\rightarrow&1&-4&6&-4&1\\
\boxed{\Delta_1 = -3}&\rightarrow&-1&3&-3&1& \vdots \\
\boxed{\Delta_2 = -10}&\rightarrow&1&-2&1&\vdots & \vdots \\
\boxed{\Delta_3 = 12}&\rightarrow&-1&1&\vdots &\vdots &\vdots \\
\boxed{\Delta_4 = 24}&\rightarrow&1&\vdots &\vdots &\vdots &\vdots \\
&& \downarrow &\downarrow &\downarrow &\downarrow &\downarrow\\
&&\boxed{\textbf{38}} &\boxed{\textbf{-109}} &\boxed{\textbf{197}} &\boxed{\textbf{-135}} &\boxed{\textbf{33}}\\
&& x^4 & x^3 & x^2 & x^1 & x^0
\end{tabular}%
} % In this line I get this error message: "Missing inserted .}"
\end{table}
\end{document}