Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How come when I use this code with beamer

\begin{block}{Misadjustment}
 $$ \cal{M} = \frac{1-\lambda}{2}\sigma_v^2 M + \frac{1}{2(1-\lambda)}tr[\mathbf{RQ}] $$
\end{block}

results in this:

enter image description here

But when I remove the \cal, the equation is displayed correctly.

share|improve this question
    
\cal is a font, so you can also write your equation with $${\cal M}=\frac{1-\lambda}{2} ...$$ –  lvaneesbeeck Dec 26 '13 at 0:32
add comment

1 Answer

up vote 6 down vote accepted

You need to use \mathcal, which takes an argument, not \cal:

enter image description here

\documentclass{beamer}% http://ctan.org/pkg/beamer
\begin{document}
\begin{frame}
\begin{block}{Misadjustment}
\[
  \mathcal{M} = \frac{1-\lambda}{2}\sigma_v^2 M + \frac{1}{2(1-\lambda)}tr[\mathbf{RQ}]
\]
\end{block}
\end{frame}
\end{document}

The use is similar to your font switching macro \mathbf. Also note the use of \[...\] to denote a display math equation rather than the TeX $$...$$ notation. For more on this, see Why is \[ … \] preferable to $$?.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.