我想将下表“Ref1.i、Ref1.ii 和 Ref1.iii”底部行中的 3 个因素居中。就像上行显示的那样。我是入门级,感谢您的任何帮助!
代码:
\documentclass{article}
\usepackage{booktabs,multirow}% http://ctan.org/pkg/{booktabs,multirow}
\begin{document}
\centering
Table 1. Table testing\\
\begin{tabular}{*{4}{c}}
\toprule
\textbf{Title1} & \textbf{Title2} & \textbf{Title3} & \textbf{Title4} \\
\midrule
\textbf{Ref1} & Val2a & Val3a $\left\{\begin{tabular}{@{\ }l@{}}
Ref1.i \\ Ref1.ii \\ Ref1.iii
\end{tabular}\right.$ & Val4a \\
\bottomrule
\end{tabular}
\bigskip
\begin{tabular}{*{4}{c}}
\toprule
\textbf{Title1} & \textbf{Title2} & \textbf{Title3} & \textbf{Title4} \\
\midrule
\multirow{3}{*}{\textbf{Ref1}} & \multirow{3}{*}{Val2a} & Ref1.i & \multirow{3}{*}{Val4a} \\
& & Ref1.ii & \\
& & Ref1.iii & \\
\multirow{3}{*}{\textbf{Ref1}} & \ Ref1.i & \multirow{3}{*}{Val3a} &\multirow{3}{*}{ } \\
& Ref1.ii & \\
& Ref1.iii & \\
\bottomrule
\end{tabular}
\end{document}