我尝试将表格中的数字与小数点对齐。到目前为止,这种方法也有效。但是,对于负数,对齐不再有效。数字向左移动得太远了。不幸的是,我找不到错误所在。
有人能帮我吗?
提前谢谢了!
\begin{table}[ht]
\sisetup{table-format=2.1, table-space-text-post={***}}
\setcellgapes{2pt}
\makegapedcells
\setlength\tabcolsep{3pt}
\begin{tabularx}{\linewidth}{>{$}r<{$}@{\,}>{$}l<{$} | S | *{4}{S} @{}}
\Xhline{1.2pt}
\mcc{2}[c|]{\makecell[t]{CAAR\\Window}}
& \mcc{1}[c|]{\makecell[t]{All\\transaction\\forms}}
& \mcc{1}{\makecell[t]{Acquisition Of\\ Partial Interest}}
& \mcc{1}{\makecell[t]{Acquisition Of\\ Majority Assets}}
& \mcc{1}{\makecell[t]{Acquisition Of \\ Remaining Interest}}
& \mcc{1}{\makecell[t]{Merger}}\\
\Xhline{0.8pt}
(-15, & -2) & 1.7*** & 1.3** & 1.8** & 2.2*** & 2.0*** \\
(-10, & -1) & 1.9*** & 0.9** & 2.2*** & 2.4*** & 2.5*** \\
(-5, & -1) & 1.3*** & 0.9*** & 1.2*** & 1.4*** & 1.7*** \\
(-5, & +5) & 13.3*** & 5.7*** & 12.2*** & 14.7*** & 20.9*** \\
(-2, & +2) & 12.6*** & 5.5*** & 11.1*** & 13.8*** & 19.9*** \\
(-1, & +1) & 11.8*** & 5.0*** & 9.8*** & 11.9*** & 19.4*** \\
(0, & 0) & 8.7*** & 3.0*** & 6.3*** & 7.0*** & 16.0*** \\
(0, & +10) & 12.1*** & 4.9*** & 10.7*** & 13.5*** & 19.4*** \\
(1, & +10) & 3.4*** & 1.8*** & 4.4*** & 6.5*** & 3.5*** \\
(2, & +15) & 1.2*** & -0.4 & 1.6** & 2.1*** & -1.4*** \\
\Xhline{1.2pt}
\end{tabularx}
\end{table}