![如何使用 Minipages 将标题置于相邻的长表的中心?](https://linux22.com/image/427200/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20Minipages%20%E5%B0%86%E6%A0%87%E9%A2%98%E7%BD%AE%E4%BA%8E%E7%9B%B8%E9%82%BB%E7%9A%84%E9%95%BF%E8%A1%A8%E7%9A%84%E4%B8%AD%E5%BF%83%EF%BC%9F.png)
我正在尝试在 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 表示最诚挚的问候