There are a few similar questions (see here and here) regarding overfull \hboxes
in siunitx
tables but neither solves/explains the following. Consider this MWE:
\documentclass{article}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{table}[t!]%
\centering%
\sisetup{detect-none, mode=math, table-format=+1.1, table-auto-round}%
\begin{tabular}{ls[table-alignment=left]SSSS}%
\toprule%
A & \newton & 0.32 & 3.8 & -4.5 & -0.6 \\%
B & \newton & -0.12 & 1.1 & -1.6 & -1.0 \\%
C & \milli\metre & -2.45 & -7.0 & 2.3 & -4.3 \\%
\bottomrule%
\end{tabular}%
\end{table}%
\end{document}
When compiled with pdfLaTeX, overfull \hbox
statements are present in the log file (these statements however are not picked up/flagged by TeXniCenter
as warnings).
When the table-format
option is altered to table-format=+2.1
the warnings are still present but when table-format=+3.1
the warnings suddenly disappear from the log file.
I have two questions:
- Why does
table-format=+1.1
or+2.1
produce overfull\hbox
messages in the log file but nottable-format=+3.1
? Have I misunderstood something obvious in thesiunitx
documentation? - Why are the pdfLaTeX warnings not raised as LaTeX warnings? Is this something specific to TeXnicCenter or a more general behaviour?
table-format=-1.1
and the warnings disappear.table-format=+1.1
) but if I have just one minus sign I get a single warning. Perhaps it is a bug insiunitx
?.
, so you need something like-1.2
.table-auto-round
? In reality the data in the table comes from a separate file and has many more decimal places than what I want shown in the final table. I like the convenience of being able to round the numbers off at the LaTeX-end rather than have to modify other data processing code.