[Tex/LaTex] way to make symbols in a table

mactexsymbolstables

I am trying to make a table and I keep getting errors once I add symbols like \Theta.

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\section{Problem 1}

%\begin{tabular}{l c r}
%f(n)    &     Bound       & g(n) \\
%n-100 & \Theta & n-200\\
%\end{tabular}

\begin{tabular}{ | l | c | r | }

n - 100 & \theta & n - 200\\

\end{tabular}

\end{document}

Best Answer

This is happening because you are not in a math environment. Try inserting \Theta within $ $i.e. $\Theta$.

\documentclass[12pt]{article}
\usepackage{amsmath}

\begin{document}
\section{Problem 1}    
\begin{tabular}{ | l | c | r | }
   \hline
   $f(n)$    &     Bound       & $g(n)$\\
   \hline
   $n - 100$ & $\theta$ & $n - 200$\\
   \hline    
\end{tabular}    
\end{document}

enter image description here

I also added horizontal lines using \hline.