while I am using RevTex 4.2, I keep getting "Missing $ inserted " error message after I created a table, which has two $\pm$ notes. I used $$ for \pm, but I do not understand why I keep getting the message. Can you help me?
\documentclass[%
preprint,
doublecolumn,
amsmath,amssymb,
aps,
prc,
]{revtex4-2}
\usepackage{anyfontsize}
\usepackage{float}
\usepackage{mathtools, nccmath}
\usepackage{graphicx}% Include figure files
\usepackage{tabularx}
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
%\usepackage{hyperref}% add hypertext capabilities
\usepackage[mathlines]{lineno}% Enable numbering of text and display math
\usepackage{amsmath}
\linenumbers\relax % Commence numbering lines
%\usepackage{latexsym}
%\usepackage[showframe,%Uncomment any one of the following lines to test
%%scale=0.7, marginratio={1:1, 2:3}, ignoreall,% default settings
%%text={7in,10in},centering,
%%margin=1.5in,
%%total={6.5in,8.75in}, top=1.2in, left=0.9in, includefoot,
%%height=10in,a5paper,hmargin={3cm,0.8in},
%]{geometry}
\begin{document}
\begin{table}
\caption{}
\begin{ruledtabular}
\begin{tabular}{lcdr}
\textrm{$\theta$}& \textrm{C$\pm \sigma C$ }&\textrm{ Time}\\
\colrule
$1$ & $1\pm 1$ &$1\pm$ \\
$1$ & $1\pm 1$ &$1\pm$ \\
\end{tabular}
\end{ruledtabular}
\end{table}
\end{document}
Thank you in advance
d
column, which you do not use here. Replace\begin{tabular}{lcdr}
by\begin{tabular}{lcr}
.\documentclass[% preprint, amsmath,amssymb, aps, prc]{revtex4-2} \usepackage{amsmath} \begin{document} \begin{table} \caption{Three columns.} \begin{ruledtabular} \begin{tabular}{lcr} $\theta$& \textrm{C}$\pm \sigma C$ &\textrm{Time}\\ \colrule $1$ & $1\pm 1$ &$1\pm$ \\ $1$ & $1\pm 1$ &$1\pm$ \\ \end{tabular} \end{ruledtabular} \end{table} \end{document}
.