From b460bcc45a6c5cc98a044822053db3021c99f92a Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Fri, 12 Aug 2016 13:11:05 +0200 Subject: [PATCH] writing a new version of exe environment --- cours/cours_beamer.cls | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/cours/cours_beamer.cls b/cours/cours_beamer.cls index a8b06f6..bdadc72 100644 --- a/cours/cours_beamer.cls +++ b/cours/cours_beamer.cls @@ -363,6 +363,43 @@ }{%end \end{block} } +% \NewDocumentEnvironment{exo} { s G{Exercice} }{%begin +% \setbeamercolor{block title}{fg=white,bg=blue!75!black}% +% \IfBooleanTF #1 +% { +% \begin{block}{#2\ } +% }{ +% \ifthenelse{ \equal{#1}{i} } +% { +% \def\cType{\roman} +% } +% { +% \ifthenelse{ \equal{#1}{I} } +% { +% \def\cType{\Roman} +% } +% { +% \ifthenelse{ \equal{#1}{a} } +% { +% \def\cType{\alph} +% } +% { +% \ifthenelse{ \equal{#1}{A} } +% { +% \def\cType{\Alph} +% } +% { +% \def\cType{\arabic} +% } +% } +% } +% } +% \stepcounter{exercicecounter} +% \begin{block}{#2 \cType{exercicecounter}\ } +% } +% }{%end +% \end{block} +% } % \includemovie