.png)
Meine Tabelle enthält in einer Zelle folgende Zahlen: 23,3 (3,5). Wenn ich versuche, die Dezimalzahlen mit siunitx auszurichten, erhalte ich die folgende Meldung:
Doppeltes Dezimalmarkierungstoken ‚,‘ in der Eingabe.
Wo liegt der Fehler?
\documentclass[12pt,oneside,letterpaper]{article}
\usepackage{siunitx}
\sisetup{table-number-alignment = center, input-symbols=(), output-decimal-marker={,}}
\begin{document}
\begin{landscape}
\begin{longtable}[c]{l
S[table-format=3.1]
S[table-format=3.1]
S[table-format=1.3]}
\caption{my-caption). \label{long-representativity}}\\
\toprule
\multicolumn{1}{c}{{}} & \multicolumn{1}{c}{{LTF\textsuperscript{a} at 3 years (n = 129)}} & \multicolumn{1}{c}{{Still followed at 3 years (n = 246)}} & \multicolumn{1}{c}{{p-value}}\\ \midrule
\endfirsthead
\multicolumn{4}{l}{Sociodemographics} \\ \midrule
\\
Age, mean (s.d) & 23,3 (3,5) & 23,3 (3,6) & 0,849 \\
Antwort1
siunitx
sucht nach einem Dezimalzeichen, also einem Komma. Ein Eintrag kann nicht zwei Kommas enthalten, es sei denn, Sie schließen eines davon in eine Gruppe ein.
\documentclass[12pt,oneside,letterpaper]{article}
\usepackage{pdflscape}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{siunitx}
\sisetup{table-number-alignment = center, input-symbols=(), output-decimal-marker={,}}
\begin{document}
\begin{landscape}
\begin{longtable}[c]{l
S[table-format=3.1]
S[table-format=3.1]
S[table-format=1.3]}
\caption{my-caption). \label{long-representativity}}\\
\toprule
\multicolumn{1}{c}{{}} &
\multicolumn{1}{c}{{LTF\textsuperscript{a} at 3 years (n = 129)}} &
\multicolumn{1}{c}{{Still followed at 3 years (n = 246)}} &
\multicolumn{1}{c}{{p-value}} \\
\midrule
\endfirsthead
\multicolumn{4}{l}{Sociodemographics} \\
\midrule
\\
Age, mean (s.d) & 23,3 {(3,5)} & 23,3 {(3,6)} & 0,849 \\
\end{longtable}
\end{landscape}
\end{document}