我正在尝试在 TeXstudio 编辑器中将两个表格并排放置。幸运的是,以下帖子已经帮助我做到了这一点: stackchange
但我的标题有问题。它们与我的表格不一致。我结合使用 minigpage 和 longtables,结果如下所示:
\centering 命令无济于事。在某些位置我甚至会收到错误消息。这是我目前的工作代码(内容已减少):
\begin{minipage}[t]{.5\linewidth}
\centering
\arrayrulecolor[rgb]{0.753,0.753,0.753}
\arrayrulecolor[rgb]{0.753,0.753,0.753}
\begin{longtable}{>{\hspace{0pt}}m{0.18\linewidth}!{\color{black}\vrule}>{\RaggedLeft\hspace{0pt}}m{0.25\linewidth}|>{\RaggedLeft\hspace{0pt}}m{0.25\linewidth}}
WBP & \multicolumn{1}{>{\hspace{0pt}}m{0.25\linewidth}|}{Min CWT (incl.)} & \multicolumn{1}{>{\hspace{0pt}}m{0.25\linewidth}}{Max CWT (excl.)} \endfirsthead
\arrayrulecolor{black}\hline
MIN & 0 & 6 \\
\arrayrulecolor[rgb]{0.753,0.753,0.753}\hline
N & 6 & 45 \\
[...] \\
\hline
\caption{A}
\end{longtable}
\arrayrulecolor{black}
\end{minipage}%
\begin{minipage}[t]{.5\linewidth}
\centering
\arrayrulecolor[rgb]{0.753,0.753,0.753}
\begin{longtable}{>{\hspace{0pt}}m{0.18\linewidth}!{\color{black}\vrule}>{\RaggedLeft\hspace{0pt}}m{0.25\linewidth}|>{\RaggedLeft\hspace{0pt}}m{0.25\linewidth}}
WBP & \multicolumn{1}{>{\hspace{0pt}}m{0.25\linewidth}|}{Min CWT (incl.)} & \multicolumn{1}{>{\hspace{0pt}}m{0.25\linewidth}}{Max CWT (excl.)} \endfirsthead
\arrayrulecolor{black}\hline
MIN & 0 & 6 \\
\arrayrulecolor[rgb]{0.753,0.753,0.753}\hline
N & 6 & 45 \\
[...] \\
\hline
\caption{B}
\end{longtable}
\arrayrulecolor{black}
\end{minipage}
非常希望得到提示或确切的解决方案,让我的标题在表格下方居中。此外,我认为如果需要,我可以使用 \vspace*{-Xmm} 垂直移动标题。
提前致以最诚挚的感谢,并向 DomHaw 表示最诚挚的问候