2

For the following text snippet in my document:

\documentclass[11pt]{report}
\usepackage{quotes}
\usepackage{amsmath}


\say{For vertical axes deployment, $\theta_t$ = $\theta_r$ = 0 and for horizontal axes deployment, $\theta_t$ = \frac{$\pi$}{2} and $\theta_r$ = \frac{$-\pi$}{2} are used, \dots Hence, we conclude\dots, that the pathloss is dramatically higher for vertical axes deployment \dots}\\

\end{document}

I get

! Missing $ inserted.
<inserted text>
                $
l.396 ...higher for vertical axes deployment\dots}
                                                  \\

I am unable to figure out what is wrong. Can anyone point out the problem?

TIA

Vinod
  • 875

1 Answers1

4

You are using $ in a wrong way. It should be somthing like this:

\documentclass{book}
\begin{document}
  For vertical axes deployment, $\theta_t = \theta_r = 0 $ and for horizontal axes
   deployment, $\theta_t = \frac{\pi}{2}$ and $\theta_r = \frac{-\pi}{2}$ are used,
   $\dots$ Hence, we conclude$\dots$, that the path loss is dramatically 
   higher for vertical axes deployment $\dots$
\end{document}

enter image description here

Also for inline fractions, it is better to use \pi/2 (instead of \frac{\pi}{2}) to get

enter image description here