Error de matriz de paquete: token pream ilegal (L): se utiliza `c'. \end{tabularx} en la plantilla KDD - acmart

Error de matriz de paquete: token pream ilegal (L): se utiliza `c'. \end{tabularx} en la plantilla KDD - acmart

Aquí está el paquete que uso y la tabla. Lo mismo ocurre con otras plantillas. Sólo cuando uso la plantilla KDD - acmart. Recibo el error mencionado anteriormente.

Aquí están los paquetes que uso y la tabla:

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

Respuesta1

Supongo que pretendías Ldefinirlo como se muestra a continuación, pero lo haríanuncautilice tabularxpara dicha tabla, consulte la versión con tabular.

tabularxSe trata de ajustar el salto de línea dentro de las celdas para que se ajuste a una tabla, pero no desea que el salto de línea en una tabla de este tipo y estirarlo al ancho completo solo dificulte la lectura.

ingrese la descripción de la imagen aquí

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

información relacionada