表格错误:使用了非法前缀标记 ([):'c'

表格错误:使用了非法前缀标记 ([):'c'

我遇到了这样的问题:

 Illegal pream-token ([):'c' used.

我怀疑是这样的:

   lSl[table-format=2.2,table-space-text-post=\%]}

在此处输入图片描述

在此处输入图片描述

\documentclass[12pt,oneside]{book}

\usepackage[]{geometry}
\usepackage{amsmath}
\usepackage{ragged2e}
\usepackage{booktabs, makecell, multirow, tabularx,
            threeparttable, tabulary}
\renewcommand\theadfont{\small\bfseries} % for bold in table using \small
\renewcommand\theadgape{}
\usepackage[svgnames, table]{xcolor}
\usepackage{siunitx} %for table spacing to second row
\usepackage{graphicx}
\usepackage{tikz}
\usepackage[font=small,
            labelfont={bf,sf}, textfont={sf}, 
            justification=centering]{caption}

\begin{document}

\begin{table}[h!]
\centering
\begin{tabular}{
  lSl[table-format=2.2,table-space-text-post=\%]}
\toprule
{\textbf{Sample Number}}
& 
& {\textbf{Testing 123 Testing}} \\
\midrule
ABC &  $\rightarrow$  &  {sample testing [ , ]} \\
ABCS &  $\rightarrow$  &  {sample testing testing testing [ , ]} \\

\bottomrule
\end{tabular}
\end{table}

\end{document}

相关内容