Today I installed the latest version of MiKTeX in a new windows computer and attempted to run the following siunitx code in the preamble, which, among other things, helps me format my tables such that the alignment ignores stars, negative signs, and parentheses:
\documentclass{article}
\usepackage{booktabs,caption}
\captionsetup[table]{font=large}
\newcommand\mc[1]{\multicolumn{1}{c}{#1}} % handy shortcut macro
\usepackage{adjustbox}
\usepackage{rotating}
\usepackage[flushleft]{threeparttable}
\usepackage{siunitx}
\sisetup{group-separator = {,}, group-minimum-digits = 4,
detect-mode,
tight-spacing = true,
input-signs = ,
input-symbols = ,
input-open-uncertainty = ,
input-close-uncertainty = ,
table-align-text-pre = false,
table-space-text-pre = (,
} % centering in tables
\begin{document}
\begin{tabular}{l *{1}{S[table-format=1.3, table-space-text-post =***]}} \toprule \toprule
& \mc{(1)} \\
& \mc{OLS} \\
\midrule \\
ABC & -0.003*** \\
& ( 0.001) \\ \addlinespace
Constant & 0.006*** \\
& ( 0.001) \\
Observations & \mc{60,571} \\
RMSE & \mc{ 0.071} \\
\bottomrule \bottomrule
\end{tabular}
\end{document}
I got no error messages after running this code, but the alignment is off and the opening parentheses and negative signs overlap with numbers. See below for an example:
By calling a previous version of siunitx, I got it to work as desired. See the code and output below:
\usepackage{siunitx}[=2021-04-09]
Could anyone please help me understand what might be happening with my code after the update and how to fix it such that I do not need to call the previous siunitx version?
Thank you!
table-format=-1.3
.input-symbols = ()
instead ofinput-open-uncertainty = , input-close-uncertainty = , table-align-text-pre = false, table-space-text-pre = (
but that did not help either.