这是来自 在此处输入链接描述
我的 MWE:
\documentclass{article}
\usepackage{amsmath,epsfig,times}
\usepackage{makecell, multirow, tabularx}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{seqsplit, caption}
\usepackage{tabulary,siunitx}
\begin{document}
\begin{table}[htp!]
\centering
\begin{tabular}{lll}
\toprule
\multirow{2.4}{*}{\textbf{Selecting Panel}} & \multicolumn{2}{c}{\textbf{Total Item}}\\
\cmidrule{2-3}
& {\textbf{Item 1}} & {\textbf{Item 2}} \\
\midrule
Stick & Stick Stick Stick & Stick Stick Stick Stick \\
Stick & Stick Stick Stick & Stick Stick Stick Stick \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
答案1
由于您要加载makecell
,因此请\multirowthead
使用双行列头。
无关:times
已过时,因此我newtx
基于times
克隆 将其替换为TeX Gyre Termes
。该 epsfig
软件包也已过时,因为您可以使用 获得其功能graphicx
。
\documentclass[twocolumn]{article}
\usepackage{amsmath, newtxtext, newtxmath}
\usepackage{makecell, multirow, tabularx}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{seqsplit, caption}
\usepackage{tabulary,siunitx}
\usepackage{lipsum}
\renewcommand{\theadfont}{\normalsize\bfseries}
\renewcommand{\theadalign}{lc}
\begin{document}
\lipsum[11]
\begin{table}[htp!]
\centering
\begin{tabular}{lll}
\toprule
\multirowthead{2.84}{Selecting\\ Panel} & \multicolumn{2}{c}{\textbf{Total Item}}\\
\cmidrule{2-3}
& {\textbf{Item 1}} & {\textbf{Item 2}} \\
\midrule
Stick & Stick Stick Stick & Stick Stick Stick Stick \\
Stick & Stick Stick Stick & Stick Stick Stick Stick \\
\bottomrule
\end{tabular}
\end{table}
\lipsum
\end{document}