%%%%%%%%%%%%%%%début de diapomental.sty%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[absolute,overlay]{textpos}
\RequirePackage{multido}
\RequirePackage{pstricks}

\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}
\textblockorigin{0cm}{-0cm}
\newcounter{audrey}
\newcounter{franck}
\newcounter{bob}
\newcounter{boby}

%\usepackage{diapomental}
%\pageun{type d'épreuve}{date}
%\calc{temps accordé}{calcul à réaliser}
%\pageder : the end !

\newcommand{\rebours}[1]{
\setcounter{franck}{#1}
\setcounter{audrey}{#1}
\addtocounter{audrey}{1}
\multido{\ii=1+1,\ij=\value{franck}+-1}{\value{audrey}}{%
\only<\ii>{\pscirclebox[fillstyle=solid,doubleline=true,linecolor=red]{\blue 
\ij}}\transduration{1}}}

\newcommand{\calc}[2]{

\addtocounter{bob}{1}

\begin{frame}
	\transduration{3}
	\frametitle{Activités mentales}
	\begin{center}
	{ \Huge {\bf Question \no \thebob} }
	\end{center}
\end{frame}
\begin{frame}
	\frametitle{Question \no \thebob}
	\begin{textblock}{1}(11,0.8)
	\rebours{#1}
	\end{textblock}
	{\large #2}%
\end{frame}
}

\newcommand{\corr}[1]{

\addtocounter{boby}{1}
\begin{frame}
	\frametitle{Correction de la question \no \theboby}
	{\large #1}%
\end{frame}
}


\newcommand{\pageun}[2]{

\title{#1}
\date{ #2}
\begin{frame}
\titlepage

\end{frame}
}

\newcommand{\pagecorrection}{

\begin{frame}
 
\begin{center}
 
{\Huge {\bf Correction !}}


\end{center}


\end{frame}

}

\newcommand{\pageder}{

\begin{frame}
 
\begin{center}
 
{\Huge {\bf That's all folk!}}


\end{center}


\end{frame}

}

\usetheme{Berlin}

%%%%%%%%%%%%%%%%%%%fin de diapomental.sty%%%%%%%%%%%%%%%%%%%%%%
