答案1
好吧,我有点挣扎,我删除了所有垂直线,并引入了新列。我不得不手动将现有的列隔开,以使它们适合(我想是因为multirow
和multicolumn
一起),但我让它工作了
\documentclass[]{article}
\usepackage{booktabs,array,multirow}
\newcolumntype{C}{>{\bfseries}c}
\begin{document}
\begin{table} \centering \renewcommand{\arraystretch}{1.2}
\begin{tabular}{cc@{\qquad}cc@{\qquad}cc@{\qquad}*{3}{c}}
\toprule
\multirow{2}{*}{\textbf{Sequence\#}} & \multicolumn{3}{C}{Hall Sensor Input} & \multicolumn{2}{C}{\multirow{2}{*}{Active PWMs}}
& \multicolumn{3}{C}{Phase Current}\\ %
&\textbf{A} & \textbf{B}&\textbf{C}& & &\textbf{A} & \textbf{B}&\textbf{C}\\
\midrule
1&0&0&1&PWM1(Q1)&PWM4(Q4)&DC+&Off&DC-\\
2&0&0&0&PWM1(Q1)&PWM2(Q2)&DC+&DC-&Off\\
\bottomrule
\end{tabular}
\end{table}
\end{document}