I am unable to understand why this is not compiling,
\documentclass{beamer}
\begin{document}
\begin{frame}{}
\begin{block}
$$\phi (S) \geq \lambda (1 - \sqrt {C \delta})$$
\end{block}
\end{frame}
\end{document}
- Can someone help?
The block environment expects a title. You can have it be empty, but it needs to be there:
\documentclass{beamer}
\begin{document}
\begin{frame}{}
\begin{block}{}
\[\phi (S) \geq \lambda (1 - \sqrt {C \delta})\]
\end{block}
\end{frame}
\end{document}
It has only to do with an empty {} after the \begin{block} even without a title. As another hack, you can only insert an empty line after \begin{block}. So this works:
\documentclass{beamer}
\begin{document}
\begin{frame}{}
\begin{block}{}
\[\phi (S) \geq \lambda (1 - \sqrt {C \delta})\]
\end{block}
\end{frame}
\end{document}
Also this:
\documentclass{beamer}
\begin{document}
\begin{frame}{}
\begin{block}
\[\phi (S) \geq \lambda (1 - \sqrt {C \delta})\]
\end{block}
\end{frame}
\end{document}
\documentclass{beamer} \begin{document}...\end{document}which works with me. Do you have any problem compiling that? – AboAmmar Mar 31 '15 at 02:43{}after\begin{block}. And never use$$in LaTeX. – cfr Mar 31 '15 at 03:03\[\]instead. @AboAmmar Does it really compile for you without error? It doesn't work on TeX Live. – cfr Mar 31 '15 at 03:06