I tried a type of reference that works with classic LaTeX article but that I can't get it to work in a beamer presentation.
MWE:
\documentclass{beamer}
\usepackage[ansinew]{inputenc}
\usetheme{Warsaw}
\newcounter{theo}
\newcommand{\theo}{ \refstepcounter{theo} \textbf{Théorème \arabic{theo}} }
%\resetcounteronoverlays{theo}
\newcommand{\thm}[1]{
\begin{block}{\theo}
#1
\end{block}
}
\begin{document}
\begin{frame}
Hello world
\end{frame}
\begin{frame}
\thm{\label{th1}
My first theorem
}
\end{frame}
\begin{frame}
As precised in Theorem \ref{th1}
\end{frame}
\end{document}
In the last frame I get: As precised in Theorem 2
where I'm looking for : As precised in Theorem 1
Any idea to fix that?
@samcarter
, as i want to keep the automatic numerotation with my command\thm
or i can't get how to adapt it...