add possibility to change title of a property block.

This commit is contained in:
Jeff Lance 2017-01-24 23:48:42 +01:00
parent 965c30c210
commit a508a1cd2c

View File

@ -264,12 +264,21 @@
\end{block}
}
%
\NewDocumentEnvironment{ppt}{ g }{%begin
\NewDocumentEnvironment{ppt}{ s g }{%begin
\setbeamercolor{block title}{fg=white,bg=brickred!90!white}
\IfNoValueTF {#1} {
\IfBooleanTF #1
{
\IfNoValueTF {#2} {
\begin{block} {}
}{
\begin{block} {#2}
}
}{
\IfNoValueTF {#2} {
\begin{block} {Propriété}
}{
\begin{block} {Propriété - #1}
\begin{block} {Propriété - #2}
}
}
}{%end
\end{block}