Marcador decimal duplicado (siunitx)

Marcador decimal duplicado (siunitx)

Minha tabela possui números na mesma célula da seguinte forma: 23,3 (3,5). Quando tento alinhar decimais com siunitx, recebo a seguinte mensagem:

Token de marcador decimal duplicado ',' na entrada.

Onde está o erro?

\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   \\

Responder1

siunitxirá procurar um marcador decimal que é a vírgula. Você não pode ter duas vírgulas em uma entrada, a menos que coloque uma delas em um 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}

insira a descrição da imagem aqui

informação relacionada