我从“article”环境切换后,在“amsart”环境中创建表格时遇到了问题。表格不显示边界,并给出错误“未定义的控制序列”。我是否缺少任何包或什么?
\documentclass{amsart}
\begin{document}
\begin{table}
\begin{tabular}{ccccccc} \toprule
{$q$} & {$5$} & {$6$} & {$7$} & {$8$} & {$9$} & {$10$}\\ \midrule
{number} & {$9$} & {$20$} & {$48$} & {$115$} & {$286$} & {$719$}\\ \midrule
{total} & $12$ & $33$ & $385$ & $300$ & $526$ & $2205$
\\ \bottomrule
\end{tabular}
\end{table}
\结束{文档}
答案1
您应该booktabs
使用以下命令加载包\usepackage{booktabs}
:
\documentclass{amsart}
\usepackage{booktabs}
\begin{document}
\begin{table}
\begin{tabular}{ccccccc} \toprule
{$q$} & {$5$} & {$6$} & {$7$} & {$8$} & {$9$} & {$10$}\\ \midrule
{number} & {$9$} & {$20$} & {$48$} & {$115$} & {$286$} & {$719$}\\ \midrule
{total} & $12$ & $33$ & $385$ & $300$ & $526$ & $2205$
\\ \bottomrule
\end{tabular}
\end{table}
\end{document}