无法正确对齐比较表

无法正确对齐比较表

我对乳胶还很陌生,并尝试根据这个创建一个比较表: 如何创建像这样的紧凑的比较表? 我设法根据自己的需要配置了所有内容,但我遇到了无法正确对齐所有内容的问题。现在,列无法与彼此相邻的相同空间对齐。

\begin{table}
\footnotesize
\newcommand*\rot[1]{\hbox to2em{\hss\rotatebox[origin=br]{-40}{#1}}}
\newcommand*\feature[1]{\ifcase#1 -\or\LEFTcircle\or\CIRCLE\fi}
\newcommand*\f[3]{\feature#1&\feature#2&\feature#3}
\makeatletter
\newcommand*\ex[5]{#1&#2&%
    \f#3&\f#4&\f#5
}
\makeatother
\newcolumntype{G}{c@{}c@{}c}
\begin{threeparttable}
\caption{Table caption here}
\label{tab:features}
\begin{tabular}{lc G !{\kern4em} G !{\kern4em} G}
\toprule
Tool & Type & \multicolumn{3}{c}{DevOps} & \multicolumn{3}{c}{Project} & \multicolumn{3}{c}{Security and Compliance}\\
\midrule
% rotated items
&& \rot{State Management}
 & \rot{DevOps processes support}
 & \rot{Modularity support}
 %
 & \rot{Azure and GitLab support}
 & \rot{VM configuration}
 & \rot{Idempotency}
 %
 & \rot{Error handling}
 & \rot{Free and open source}
 & \rot{Naming and safety rules}\\
\midrule
\ex{Terraform}{(Declarative)}     {222}   {222}   {222}\\
\midrule
\ex{Azure Biceps}{(Declarative)}  {222}   {222}   {222}\\
\midrule
\ex{Ansible}{(Imperative)}        {222}   {222}   {222}\\
\bottomrule
\end{tabular}

\begin{tablenotes}
\item \hfil$\feature2=\text{provides property}$; $\feature1=\text{partially provides property}$;
$\text{\feature0}=\text{does not provide property}$;
\item \hfil\textsuperscript{\dag}has academic publication;
\textsuperscript{*}end-user tool available
\end{tablenotes}    
\end{threeparttable}
\end{table}

比较表

相关内容