nouvel environnement exemple

This commit is contained in:
Jeff Lance 2016-04-07 22:21:56 +02:00
parent 56b90a23e3
commit 0a3d83ba94

View File

@ -104,17 +104,23 @@
\end{block}
}
%
\newenvironment<>{exp}[1][]{%begin
\NewDocumentEnvironment{exe}{ G{Exemple} }{%begin
\setbeamercolor{block title}{fg=white,bg=green!75!black}%
\begin{block}#1
\begin{block} {#1}
}{%end
\end{block}
}
% \newenvironment<>{exp}[1][]{%begin
% \setbeamercolor{block title}{fg=white,bg=green!75!black}%
% \begin{block} #1
% }{%end
% \end{block}
% }
%
\newcounter{exercicecounter}
\newenvironment<>{exo}[1][]{%begin
\NewDocumentEnvironment{exo} { O{0} G{Exercice} }{%begin
\setbeamercolor{block title}{fg=white,bg=blue!75!black}%
\IfNoValueTF{ #1 }{
\ifthenelse{ \NOT \equal{#1}{0} }{
\ifthenelse{ \equal{#1}{i} }
{
\def\cType{\roman}
@ -141,9 +147,9 @@
}
}
\stepcounter{exercicecounter}
\begin{block}{Exercice \cType{exercicecounter}\ }
\begin{block}{#2 \cType{exercicecounter}\ }
}{
\begin{block}{Exercice\ }
\begin{block}{#2\ }
}
}{%end
\end{block}