Latex 如何垂直居中我的乳胶表单元格
我的乳胶表是这样的Latex 如何垂直居中我的乳胶表单元格,latex,Latex,我的乳胶表是这样的 \begin{table} \centering \begin{tabular}{clll} \toprule \multirow{2}*{Name} & \multirow{2}*{Description} & \multicolumn{2}{c} {Time} \\ \cline{3-4} & & Item1 & Item2 \\ \midrule App1 & Good & 100
\begin{table}
\centering
\begin{tabular}{clll}
\toprule
\multirow{2}*{Name} & \multirow{2}*{Description} & \multicolumn{2}{c}
{Time} \\
\cline{3-4}
& & Item1 & Item2 \\
\midrule
App1 & Good & 1000ms & 1000ms \\
\bottomrule
\end{tabular}
\end{table}
"
我想知道如何使上表中的
Item1
和Item2
垂直居中。谢谢大家! 您可以使用命令\cmidrule{3-4}
:它相当于\cline{3-4}
,但它改善了表的外观
您可以使用命令
\cmidrule{3-4}
:它相当于\cline{3-4}
,但它改善了表的外观
你能做一个可编译的吗?@samcarter\u是在\u topanswers.xyz嗨!我刚刚编辑了它。希望现在更容易阅读)你能制作一个可编译的吗?@samcarter\u是在\u topanswers.xyz嗨!我刚刚编辑了它。希望现在更容易阅读)
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{table}
\begin{center}
\begin{tabular}{clll}
\toprule
\multirow{2}*{Name} & \multirow{2}*{Description} & \multicolumn{2}{c} {Time} \\
\cmidrule{3-4}
& & Item1 & Item2 \\
\midrule
App1 & Good & 1000ms & 1000ms \\
\bottomrule
\end{tabular}
\end{center}
\end{table}
\end{document}