我在 IEEE Access 类中插入了一个宽表,但其中某些元素位于列的边界之外:
\documentclass{ieeeaccess}
\usepackage{multirow}
\begin{document}
\begin{table}
\centering
\caption{Operation on weighted feature detectors}
\label{tab:tabel_maxop}
\setlength{\tabcolsep}{3pt}
\begin{tabular}{|p{100pt}|p{25pt}|p{25pt}||p{25pt}|p{25pt}||p{25pt}|p{25pt}||p{25pt}|}
\hline
Method1 (Original) & 32.5 & 16.9& 32.5 & 16.9& 32.5 & 16.9& 32.5 \\
\hline
Method1 (Original) & 32.5 & 16.9& 32.5 & 16.9& 32.5 & 16.9& 32.5 \\
\hline
Method1 (Original) & 32.5 & 16.9& 32.5 & 16.9& 32.5 & 16.9& 32.5 \\
\hline
Method1 (Original) & 32.5 & 16.9& 32.5 & 16.9& 32.5 & 16.9& 32.5 \\
\hline
Method1 (Original) & 32.5 & 16.9& 32.5 & 16.9& 32.5 & 16.9& 32.5 \\
\hline
Method1 (Original) & 32.5 & 16.9& 32.5 & 16.9& 32.5 & 16.9& 32.5 \\
\hline
Method1 (Original) & 32.5 & 16.9& 32.5 & 16.9& 32.5 & 16.9& 32.5 \\
\hline
\end{tabular}
\end{table}
\end{document}
虽然我没有看到任何错误,但是表格很宽,无法位于一列中:
我怎样才能将其置于中心?
答案1
您可以使用tabularray
。
\documentclass{ieeeaccess}
\usepackage{graphicx}
\usepackage{tabularray}
\usepackage{lipsum}
\begin{document}
\lipsum[1-6]
\begin{table}
\centering
\caption{Operation on weighted feature detectors}
\label{tab:tabel_maxop}
\begin{tblr}
{
hlines,vlines,
columns={colsep=4pt},
columns={valign=m,co=-1},
rows={halign=c},
}
Method1 (Original) & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 \\
Method1 (Original) & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 \\
Method1 (Original) & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 \\
Method1 (Original) & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 \\
Method1 (Original) & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 \\
Method1 (Original) & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 \\
Method1 (Original) & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 & 16.9 & 32.5 \\
\end{tblr}
\end{table}
\EOD
\end{document}