I want a good-looking table with siunitx. I thought I can use the S-table from it to sort the numbers (all decimal points under each other etc.).
Unfortunately, It didn't work properly. I get an this error message:
siunitx error: "invalid-number" Invalid numerical input 'e'
I can't find the solution, can anybody help me here?
\documentclass{article}
\usepackage[
locale=DE,
per-mode=fraction,
output-decimal-marker={{,}},
separate-uncertainty=true,
range-phrase={{ bis }},
]{siunitx}
\begin{document}
\begin{table}[H]
\centering
\caption{Test}
\label{tab:test}
\begin{tabular}{|l|*{6}{S[table-format=-3.0]|}}
\hline
& \multicolumn{5}{c|}{Offset [\si{\milli\volt}]} & {Mean Offset $\pm$ max. Variance [\si{\milli\volt}]} \\ \hline \hline
P1 & -241 & -274 & -272 & -258 & -283 & -266 \pm 20 \\ \hline
P2 & -94 & -99 & -100 & -114 & -105 & -102 \pm 18 \\ \hline
P3 & 600 & 593 & 595 & 580 & 590 & 511 \pm 100 \\ \hline
P4 & 300 & 300 & 300 & 290 & 297 & 301 \pm 50 \\ \hline
\end{tabular}
\end{table}
\end{document}
Edit:
The Answer for this question is nearly this post: https://tex.stackexchange.com/a/354925/125143
Unfortunately, the uncertainty for example \pm 20is not shown in output pdf. Why?



siunitxwill add the scientific notation for4 you; it shouldn't be in the source. Your example doesn't really reflect your question -- it doesn't use the sinutix column types – Chris H Feb 21 '17 at 12:04Scolumn type. – Mico Feb 21 '17 at 12:14ccolumn types; the accepted answer is very close to what the OP needs – Chris H Feb 21 '17 at 13:15siunitx error: "invalid-number" Invalid numerical input 'e'is not related to "uncertainty" -- at least not in the sense used by thesiunitxpackage. Instead, it's related to the fact that the OP failed to encase the header in a pair of curly braces. If anything, the posting should be closed not for being a duplicate but for falling in the "unclear what you're asking" categatory. – Mico Feb 21 '17 at 13:27Unknown float option H. \begin{table}[H]– samcarter_is_at_topanswers.xyz Feb 21 '17 at 17:25