I am writing a beamer. I got lots of Missing $ inserted \end{frame}. Where I havent missed any $. this is the part of the code I have used where similar error is shown
\begin{frame}
\begin{normalsize}
Sectors and angle of each sectors are shown in Table 1:
\begin{table}[hb]
\caption{Sectors and Sector Angle}
\label{Sectors and Sector Angle}
\vspace{0.35cm}
\centering
\begin{tabular}{|c|c|}
\hline \textbf{SECTOR} & \textbf{DEGREE} \\
\hline Sector 1 & -30\leq\theta_s\leq30 \\
\hline Sector 2 & 30\leq\theta_s\leq 90 \\
\hline Sector 3 & 90\leq\theta_s\leq 150 \\
\hline Sector 4 & 150\leq\theta_s\leq-150 \\
\hline Sector 5 & -150\leq\theta_s\leq-90 \\
\hline Sector 6 & -90\leq\theta_s\leq-30\\
\hline
\end{tabular}
\end{table}
\end{normalsize}
\end{frame}
Best Answer
The right column in your table consists mainly of math formulas, so you need to add
$
to the column specification. Instead of inserting$..$
at each cell, you can save typing by modifying the column specification as\begin{tabular}{|c|>{$}c<{$}|}
.A better visual alignment is to make the term
theta_s
at the center of the column, this is achieved via\begin{tabular}{|c|>{$}r<{$} @{${}\leq\theta_s\leq{}$} >{$}l<{$}|}
. Now we have split the right column into twor
andl
and the expression{}\leq\theta_s\leq{}
at the center. The two{}
are there just to correct spacing around the binary operator\leq
.