.png)
Mi tabla tiene números en una misma celda de la siguiente manera: 23,3 (3,5). Cuando intento alinear decimales con siunitx me da el siguiente mensaje:
Token de marcador decimal duplicado ',' en la entrada.
¿Dónde está el error?
\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 \\
Respuesta1
siunitx
buscará un marcador decimal que es la coma. No puede tener dos comas en una entrada a menos que incluya una de ellas en un grupo.
\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}