
當我編譯表格時,出現錯誤「缺少數字,被視為零」。我看了一下,它告訴我我添加了一個零,但我在表中找不到它,所以我看不出我的程式碼有什麼問題。
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{amsmath,booktabs,counter,diagbox,siunitx,varwidth}
\usepackage{chemgreek}
\usepackage[modules={all}]{chemmacros}%le module orbital a été commenté (lignes 3816 à 3824
\usepackage{textgreek}
\chemsetup{greek=textgreek}
\begin{document}
\begin{table}[!h]
\centering
\begin{tblr}{vspan=even, hspan=minimal,
colspec={Q[c] Q[c] Q[c] Q[c] Q[c] Q[c] Q[c]}, rowspec={Q[m] Q[m] Q[m] Q[m] Q[m] Q[m] Q[m]},
cell{1}{1}={r}{c=2},
colsep=5pt,
row{1}={cmd=\textbf}}
\toprule[blue]
équation de la réaction : & & \ch{C\sld} & + & \ch{1/2 O2\gas} & = &\ch{CO\gas} \\
\midrule[blue]
état initial & $\chemxi=0$ & 3 & & 5 & & 0 \\
état intermédiaire & $\chemxi$& $3-\chemxi$ & & $5-\frac{1}{2}\chemxi$ & & $0+\chemxi$ \\
état final & $\chemxi_f$& $3-\chemxi_f$ & & $5-\frac{1}{2}\chemxi_f$ & & $\chemxi_f$ \\
\bottomrule[blue]
\end{tblr}
%\caption{Valeurs numériques liées aux exemples}
\label{tab:tableau_avancement}
\end{table}
\end{document}
謝謝