如何制作乳胶桌[关闭]

问题描述 投票:-1回答:1

有两行。第一个有三个文本(A,B和C)位于垂直线下方。第二个有四个单元格和集中文本。

         A        B        C
|  text  |  text  |  text  |  text  |
latex
1个回答
3
投票

你可以在标题行中使用一些\phantoms并在\makebox[2\tabcolsep]中设置垂直行标题:

enter image description here

\documentclass{article}

\begin{document}

\begin{tabular}{ | *{4}{c|} }
  \multicolumn{4}{ c }{%
    \phantom{textA}%
      \makebox[2\tabcolsep]{A}%
    \phantom{textAB}%
      \makebox[2\tabcolsep]{B}%
    \phantom{textABC}%
      \makebox[2\tabcolsep]{C}%
    \phantom{textABCD}
  } \\
  textA &
    textAB &
    textABC &
    textABCD
\end{tabular}

\end{document}
© www.soinside.com 2019 - 2024. All rights reserved.