# Numbering all lines in a presentation

I would like everyline of a presentation to be numbered. Like the lineno package will do.

I tried the following but it does not print line numbers. I don't see why, I know there are some \par caveats. But I don't really understand them.

\documentclass{beamer}
\usepackage[mathlines]{lineno}

\linenumbers

\begin{document}

\begin{frame}

A floating line

\begin{theorem}
Some line in a theorem
\end{theorem}

\begin{linenomath}
\begin{eqnarray*}
x + y
\end{eqnarray*}
\end{linenomath}

\end{frame}

\end{document}


-