# Exemple block and equations (Beamer) [closed]

I got an error with the exempleblock environment:

\documentclass{beamer}
\usetheme{PaloAlto}

\begin{document}
\begin{frame}\frametitle{Title}
\begin{exampleblock}
$t = \frac{1}{\lambda}\mbox{ln}\left(\frac{N(t)-D(t)}{N(t)}\right)$
\end{exampleblock}
\end{frame}
\end{document}


Latex says "exempleblock environment undefined." Where is the problem?

-

## closed as too localized by bloodworks, Stefan Kottwitz♦Jan 19 '13 at 10:02

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Check your spelling: it's exampleblock and it's missing a second argument: it wants to be invoked as \begin{exampleblock}{title}. See beamer guide. –  bloodworks Jan 19 '13 at 9:36

All blocks environments need a title, so the syntax

\begin{exempleblock}
stuff
\end{exempleblock}


is wrong. To fix the problem use:

\begin{exempleblock}{Title}
stuff
\end{exempleblock}


or at least:

\begin{exempleblock}{}
stuff
\end{exempleblock}


\documentclass{beamer}
\usepackage{lmodern} % to remove warnings of size substitution
\usetheme{PaloAlto}

\begin{document}
\begin{frame}\frametitle{My equation}
\begin{exampleblock}{title}
$t = \frac{1}{\lambda}\mbox{ln}\left(\frac{N(t)-D(t)}{N(t)}\right)$
\end{exampleblock}
\end{frame}
\end{document}


which produces:

### Disclaimer

I'm sure we already had a similar question, but I cannot find it now.

-