From a508a1cd2c39e7c7eb1c5f6d16dae8d64802402c Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 24 Jan 2017 23:48:42 +0100 Subject: [PATCH] add possibility to change title of a property block. --- cours/cours_beamer.cls | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/cours/cours_beamer.cls b/cours/cours_beamer.cls index 8e37359..c7b2178 100644 --- a/cours/cours_beamer.cls +++ b/cours/cours_beamer.cls @@ -264,15 +264,24 @@ \end{block} } % -\NewDocumentEnvironment{ppt}{ g }{%begin +\NewDocumentEnvironment{ppt}{ s g }{%begin \setbeamercolor{block title}{fg=white,bg=brickred!90!white} - \IfNoValueTF {#1} { - \begin{block} {Propriété} + \IfBooleanTF #1 + { + \IfNoValueTF {#2} { + \begin{block} {} + }{ + \begin{block} {#2} + } }{ - \begin{block} {Propriété - #1} + \IfNoValueTF {#2} { + \begin{block} {Propriété} + }{ + \begin{block} {Propriété - #2} + } } }{%end - \end{block} + \end{block} } % \NewDocumentEnvironment{pre}{ g }{%begin