如何解决此错误(缺少$)

如何解决此错误(缺少$)

我在制作表格时不断弹出错误。这是代码:

\begin{table}

\caption{Pearson’s coefficient of mechanical properties with different compositional parameters.}

\label{tab:4}

\begin{tabular}{lllllll}

\hline\noalign{\smallskip}

& \rho\textsubscript{w} & \rho\textsubscript{d} & \%Min & \%Ash & \%Org\textsubscript{w} & \%H\textsubscript{2}O\\ %this isthe faulty line!!

\noalign{\smallskip}\hline\noalign{\smallskip}

\textit{E} & 0.55\textsuperscript{a} & 0.92\textsuperscript{a} & 0.93\textsuperscript{a} & 0.81\textsuperscript{a} & -0.14 & 0.14\\

$\textit{k} & 0.31 & 0.87\textsuperscript{a} & 0.70\textsuperscript{a} & 0.72\textsuperscript{a} & -0.30 & -0.23$\\

\noalign{\smallskip}\hline

\end{tabular}

\end{table}

我收到以下错误:

l.179 & \rho
            \textsubscript{w} & \rho\textsubscript{d} & \%Min & \%Ash & \%O...?

答案1

\begin{table}

\caption{Pearson’s coefficient of mechanical properties with different compositional parameters.}

\label{tab:4}

\begin{tabular}{lllllll}

\hline\noalign{\smallskip}

& $\rho_{\rm w}$ & $\rho_{\rm d}$ & $\%Min$ & $\%Ash$ & $\%Org_{\rm w}$ & $\%H_{\rm 2}$O %this isthe faulty line!!
\\
\noalign{\smallskip}\hline\noalign{\smallskip}
\\
\textit{E} & 0.55\textsuperscript{a} & 0.92\textsuperscript{a} & 0.93\textsuperscript{a} & 0.81\textsuperscript{a} & -0.14 & 0.14
\\
$\textit{k}$ & $0.31$ & $0.87\textsuperscript{a}$ & $0.70\textsuperscript{a}$ & $0.72\textsuperscript{a}$ & $-0.30$ & $-0.23$
\\[![enter image description here][1]][1]
\noalign{\smallskip}\hline

\end{tabular}
\end{table}

$缺少符号

相关内容