From: Maxime Chupin (escudo) Date: Tue, 1 Nov 2016 11:05:40 +0000 (+0100) Subject: Patch pour blur et pstricks X-Git-Url: https://melusine.eu.org/syracuse/G/git/?a=commitdiff_plain;h=f04fbaa8372f423a70b4fbec45e57c9ad68e6314;p=bclogo.git Patch pour blur et pstricks --- diff --git a/dev/latex/bclogo.sty b/dev/latex/bclogo.sty index 5187b5d..75ab5c4 100644 --- a/dev/latex/bclogo.sty +++ b/dev/latex/bclogo.sty @@ -1,7 +1,7 @@ \NeedsTeXFormat{LaTeX2e}% \def\PackageName{bclogo}% -\def\fileversion{v3.1}% -\def\filedate{2016/01/10}% +\def\fileversion{v3.11}% +\def\filedate{2016/10/31}% \ProvidesPackage{bclogo}[\filedate\space\fileversion]% % % Extensions a charger @@ -380,7 +380,6 @@ secondextra={% }% \else%pstricks \mdfdefinestyle{bc@style}{% -pstrickssetting={blur=\ifbclogoblur true\else false\fi},% singleextra={% \setlength{\bc@invboxh}{\dimexpr\mdfboundingboxheight-2\mdf@innerlinewidth@length-2\mdf@outerlinewidth@length-% 2\mdf@middlelinewidth@length-\mdf@innertopmargin@length-\mdf@innerbottommargin@length\relax}% @@ -455,24 +454,49 @@ secondextra={% \def\bcval@nobreak{\ifKV@bclogo@nobreak true\else false\fi}% gestion nobreak \def\bcval@shadow{\ifKV@bclogo@ombre true\else false\fi}% gestion ombre % +% +\ifbclogoblur% +\mdframed[% +style=bc@style,% +innerleftmargin={\dimexpr\ifKV@bclogo@avecBarre\logowidth\else\z@\fi+\bcval@framesep\relax},% +innertopmargin={\dimexpr\ht\bc@envbox+\dp\bc@envbox+\bcval@framesep\relax},%hauteur titre+framesep +innerrightmargin=\bcval@framesep,% +innerbottommargin=\bcval@framesep,% +rightmargin={\dimexpr\bcval@margeD+\ifKV@bclogo@ombre\bcval@epOmbre cm\else\z@\fi\relax},% +leftmargin=\bcval@margeG,% +backgroundcolor=\bcval@couleur,% +fontcolor=\bcval@couleurTexte,% +middlelinewidth=\bcval@borderWidth,% +linecolor=\bcval@couleurBord,% +roundcorner={\bcval@arrondi cm},% +nobreak=\bcval@nobreak,%l'option nobreak de mdframed vient avec la version 0.9 +shadow=\bcval@shadow,% +shadowsize=\bcval@epOmbre cm,% +shadowcolor=\bcval@couleurOmbre,% +pstrickssetting={% + blur=true% +},% +]% +\else% \mdframed[% - style=bc@style,% - innerleftmargin={\dimexpr\ifKV@bclogo@avecBarre\logowidth\else\z@\fi+\bcval@framesep\relax},% - innertopmargin={\dimexpr\ht\bc@envbox+\dp\bc@envbox+\bcval@framesep\relax},%hauteur titre+framesep - innerrightmargin=\bcval@framesep,% - innerbottommargin=\bcval@framesep,% - rightmargin={\dimexpr\bcval@margeD+\ifKV@bclogo@ombre\bcval@epOmbre cm\else\z@\fi\relax},% - leftmargin=\bcval@margeG,% - backgroundcolor=\bcval@couleur,% - fontcolor=\bcval@couleurTexte,% - middlelinewidth=\bcval@borderWidth,% - linecolor=\bcval@couleurBord,% - roundcorner={\bcval@arrondi cm},% - nobreak=\bcval@nobreak,%l'option nobreak de mdframed vient avec la version 0.9 - shadow=\bcval@shadow,% - shadowsize=\bcval@epOmbre cm,% - shadowcolor=\bcval@couleurOmbre% +style=bc@style,% +innerleftmargin={\dimexpr\ifKV@bclogo@avecBarre\logowidth\else\z@\fi+\bcval@framesep\relax},% +innertopmargin={\dimexpr\ht\bc@envbox+\dp\bc@envbox+\bcval@framesep\relax},%hauteur titre+framesep +innerrightmargin=\bcval@framesep,% +innerbottommargin=\bcval@framesep,% +rightmargin={\dimexpr\bcval@margeD+\ifKV@bclogo@ombre\bcval@epOmbre cm\else\z@\fi\relax},% +leftmargin=\bcval@margeG,% +backgroundcolor=\bcval@couleur,% +fontcolor=\bcval@couleurTexte,% +middlelinewidth=\bcval@borderWidth,% +linecolor=\bcval@couleurBord,% +roundcorner={\bcval@arrondi cm},% +nobreak=\bcval@nobreak,%l'option nobreak de mdframed vient avec la version 0.9 +shadow=\bcval@shadow,% +shadowsize=\bcval@epOmbre cm,% +shadowcolor=\bcval@couleurOmbre,% ]% +\fi% }% {% \endmdframed\par%