- Correct global counter of slides and Add env. with icons for déf, ppt and thm.
This commit is contained in:
parent
f8edb116cb
commit
0ff072f78e
@ -215,9 +215,11 @@
|
||||
% \debut et \fin
|
||||
% renvoie les slides d'intro et de cloture du document
|
||||
\newcommand{\debut}{%
|
||||
\begin{frame}
|
||||
\begin{frame}[plain]
|
||||
\titlepage
|
||||
\end{frame}
|
||||
\addtocounter{framenumber}{-1}
|
||||
|
||||
}
|
||||
|
||||
\newcommand{\fin}{%
|
||||
@ -312,6 +314,28 @@
|
||||
\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)
|
||||
\NewDocumentEnvironment{thm}{ g }{%begin
|
||||
\setbeamercolor*{block title}{parent=theorem}
|
||||
@ -325,6 +349,19 @@
|
||||
\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)
|
||||
\NewDocumentEnvironment{ppt}{ s g }{%begin
|
||||
\setbeamercolor*{block title}{parent=property}
|
||||
@ -347,6 +384,28 @@
|
||||
\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)
|
||||
\NewDocumentEnvironment{pre}{ g }{%begin
|
||||
\setbeamercolor*{block title}{parent=proof}
|
||||
|
Loading…
Reference in New Issue
Block a user