- Correct global counter of slides and Add env. with icons for déf, ppt and thm.

This commit is contained in:
Jeff Lance 2017-10-15 20:54:31 +02:00
parent f8edb116cb
commit 0ff072f78e

View File

@ -215,9 +215,11 @@
% \debut et \fin % \debut et \fin
% renvoie les slides d'intro et de cloture du document % renvoie les slides d'intro et de cloture du document
\newcommand{\debut}{% \newcommand{\debut}{%
\begin{frame} \begin{frame}[plain]
\titlepage \titlepage
\end{frame} \end{frame}
\addtocounter{framenumber}{-1}
} }
\newcommand{\fin}{% \newcommand{\fin}{%
@ -312,6 +314,28 @@
\end{block} \end{block}
} }
% défn(*)(TITRE)
\NewDocumentEnvironment{défn}{ s g }{%begin
\setbeamercolor*{block title}{parent=definition}
% \setbeamercolorofitem{definition}
\IfBooleanTF #1
{
\IfNoValueTF {#2} {
\begin{block} {\faPencil \hspace{.125em}\ }
}{
\begin{block} {\faPencil \hspace{.125em}\ #2}
}
}{
\IfNoValueTF {#2} {
\begin{block} {\faPencil \hspace{.125em}\ Définition}
}{
\begin{block} {\faPencil \hspace{.125em}\ Définition - #2}
}
}
}{%end
\end{block}
}
% thm(TITRE) % thm(TITRE)
\NewDocumentEnvironment{thm}{ g }{%begin \NewDocumentEnvironment{thm}{ g }{%begin
\setbeamercolor*{block title}{parent=theorem} \setbeamercolor*{block title}{parent=theorem}
@ -325,6 +349,19 @@
\end{block} \end{block}
} }
% thmn(TITRE)
\NewDocumentEnvironment{thmn}{ g }{%begin
\setbeamercolor*{block title}{parent=theorem}
% \setbeamercolorofitem{theorem}
\IfNoValueTF {#1} {
\begin{block} {\faPencil \hspace{.125em}\ Théorème}
}{
\begin{block} {\faPencil \hspace{.125em}\ Théorème - #1}
}
}{%end
\end{block}
}
% ppt(*)(TITRE) % ppt(*)(TITRE)
\NewDocumentEnvironment{ppt}{ s g }{%begin \NewDocumentEnvironment{ppt}{ s g }{%begin
\setbeamercolor*{block title}{parent=property} \setbeamercolor*{block title}{parent=property}
@ -347,6 +384,28 @@
\end{block} \end{block}
} }
% pptn(*)(TITRE)
\NewDocumentEnvironment{pptn}{ s g }{%begin
\setbeamercolor*{block title}{parent=property}
% \setbeamercolorofitem{property}
\IfBooleanTF #1
{
\IfNoValueTF {#2} {
\begin{block} {\faPencil \hspace{.125em}\ }
}{
\begin{block} {\faPencil \hspace{.125em}\ #2}
}
}{
\IfNoValueTF {#2} {
\begin{block} {\faPencil \hspace{.125em}\ Propriété}
}{
\begin{block} {\faPencil \hspace{.125em}\ Propriété - #2}
}
}
}{%end
\end{block}
}
% pre(TITRE) % pre(TITRE)
\NewDocumentEnvironment{pre}{ g }{%begin \NewDocumentEnvironment{pre}{ g }{%begin
\setbeamercolor*{block title}{parent=proof} \setbeamercolor*{block title}{parent=proof}
@ -469,8 +528,8 @@
} }
} }
} }
} }
\stepcounter{exercicecounter} \stepcounter{exercicecounter}
\begin{block}{#2 \cType{exercicecounter}\ } \begin{block}{#2 \cType{exercicecounter}\ }
}{ }{
\begin{block}{#2\ } \begin{block}{#2\ }