Erro na matriz do pacote: Token pream ilegal (L): `c' usado. \end{tabularx} no modelo KDD - acmart

Erro na matriz do pacote: Token pream ilegal (L): `c' usado. \end{tabularx} no modelo KDD - acmart

Aqui estão o pacote que uso e a tabela. O mesmo funciona para outro modelo. Somente quando uso o modelo KDD - acmart. Eu recebo o erro mencionado acima.

Aqui estão os pacotes que uso e a tabela:

\documentclass[sigconf]{acmart}
\usepackage{booktabs,makecell,tabularx}
\renewcommand\theadfont{\small}
\usepackage{siunitx}
\usepackage{adjustbox}
\usepackage{array,booktabs}
\usepackage{graphicx}
\usepackage{epstopdf}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}

\begin{document}
\begin{table}
    \centering
    \setlength{\tabcolsep}{5pt}
    \small
    \begin{tabularx}{\columnwidth}{@{}c L S[table-format=7.0]*{2}{S[table-format=2.0]}@{}}
        \toprule
        \thead{ID}  &   \thead{DSA SDADD sdhjk} 
        &   {\thead{ABC \\M}}  
        &   {\thead{ABCD \\ minbucket }} 
        \\
        \midrule
        AB1 & ABCDE abcd                          & 30  & 250     \\
        AB2 & ABCD                                & 40  & 500     \\
        AB3 & ABCD ABCDE ABCDEFG  ABCDEFGH ASDGFF & 2   & 500     \\
        AB4 & ABC ABC 1000                        & 40  & 7       \\
        \bottomrule
    \end{tabularx}
    \caption{fsdjhkhsdk fhsdjkhdfsjkhkj fsdjhkhsdfk  hjsdfhk}
    \label{table:2}
\end{table}
\end{document}

Responder1

Presumo que você pretendia Lser definido como abaixo, mas eu gostarianuncause tabularxpara tal tabela, consulte a versão com tabular.

tabularxtrata-se de ajustar a quebra de linha dentro das células para caber em uma tabela, mas você não deseja que a quebra de linha nessa tabela e esticá-la até a largura total apenas dificulta a leitura.

insira a descrição da imagem aqui

\documentclass[sigconf]{acmart}
\usepackage{booktabs,makecell,tabularx}
\renewcommand\theadfont{\small}
\usepackage{siunitx}
\usepackage{adjustbox}
\usepackage{array,booktabs}
\usepackage{graphicx}
\usepackage{epstopdf}

%\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}

\begin{document}
\begin{table}
    \centering
    \setlength{\tabcolsep}{5pt}
    \small
    \begin{tabularx}{\columnwidth}{@{}c L S[table-format=7.0]*{2}{S[table-format=2.0]}@{}}
        \toprule
        \thead{ID}  &   \thead{DSA SDADD sdhjk} 
        &   {\thead{ABC \\M}}  
        &   {\thead{ABCD \\ minbucket }} 
        \\
        \midrule
        AB1 & ABCDE abcd                          & 30  & 250     \\
        AB2 & ABCD                                & 40  & 500     \\
        AB3 & ABCD ABCDE ABCDEFG  ABCDEFGH ASDGFF & 2   & 500     \\
        AB4 & ABC ABC 1000                        & 40  & 7       \\
        \bottomrule
    \end{tabularx}

\bigskip

    \begin{tabular}{@{}c l*{2}{S[table-format=2.0]}@{}}
        \toprule
        \thead{ID}  &   \thead{DSA SDADD sdhjk} 
        &   {\thead{ABC \\M}}  
        &   {\thead{ABCD \\ minbucket }} 
        \\
        \midrule
        AB1 & ABCDE abcd                          & 30  & 250     \\
        AB2 & ABCD                                & 40  & 500     \\
        AB3 & ABCD ABCDE ABCDEFG  ABCDEFGH ASDGFF & 2   & 500     \\
        AB4 & ABC ABC 1000                        & 40  & 7       \\
        \bottomrule
    \end{tabular}


    \caption{fsdjhkhsdk fhsdjkhdfsjkhkj fsdjhkhsdfk  hjsdfhk}
    \label{table:2}
\end{table}
\end{document}

informação relacionada