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$
.I also added horizontal lines using
\hline
.