你好,我正在为出版物准备一张表格PLOS 计算生物学模板指南在此官方链接为了复现这个问题我准备了一个小例子:
这是不正确的行为,请注意表格中的多余单元格与正确行为。我尝试正确删除不需要的单元格数量,但这会导致表格布局不正确。
\begin{table}[!ht]
\begin{adjustwidth}{-2.25in}{0in}
\centering
\caption{
{\bf Types of retrieved documents.}}
\begin{tabular}{|l+l|l|l|l|l|l|l|}
\hline
\multicolumn{1}{|l|}{\bf Type of document} & \multicolumn{1}{|l|}{\bf Frequency} & \multicolumn{1}{|l|}{\bf proportion (\%)}\\ \thickhline
$cell1 row1$ & cell2 row 1 & cell6 row 1 & cell7 row 1 & cell8 row 1\\ \hline
$cell1 row2$ & cell2 row 2 & cell3 row 2 & cell4 row 2 & cell5 row 2 & cell6 row 2 & cell7 row 2 & cell8 row 2\\ \hline
$cell1 row3$ & cell2 row 3 & cell3 row 3 & cell4 row 3 & cell5 row 3 & cell6 row 3 & cell7 row 3 & cell8 row 3\\ \hline
\end{tabular}
\begin{flushleft} Table notes Phasellus venenatis, tortor nec vestibulum mattis, massa tortor interdum felis, nec pellentesque metus tortor nec nisl. Ut ornare mauris tellus, vel dapibus arcu suscipit sed.
\end{flushleft}
\label{table1}
\end{adjustwidth}
\end{table}
以下是期望结果:
\begin{table}[ht]
\caption{Types of retrieved documents}
\label{tab:values}
\centering
\makegapedcells
\begin{tabular}{l
S[table-format=3.0]
S[table-format=2.0,
table-space-text-post={\,\%}]
}
\toprule Type of document & {Frequency} & {Proportion (\%)} \\
\midrule
Journal & 1087 & 23\,\% \\
Conference Proceeding & 180 & 23\,\% \\
Book series & 115 & 23\,\% \\
Book & 6 & 23\,\% \\
\bottomrule
\end{tabular}
\end{table}
我不确定我是否理解了发生了什么。如果能提供任何帮助来理解问题并在下次解决问题,我将不胜感激。