bclogo.sty option nobreak compatible avec mdframed 0.6a
authorPatrick Fradin <pfradin@pfradin-bureau.(none)>
Fri, 28 Oct 2011 15:35:19 +0000 (17:35 +0200)
committerPatrick Fradin <pfradin@pfradin-bureau.(none)>
Fri, 28 Oct 2011 15:35:19 +0000 (17:35 +0200)
dev/latex/bclogo.sty
dev/latex/bclogoMdframedPst.tex

index 6fb1da2..c0967b6 100644 (file)
 % quelques dimensions
 \newlength{\bc@invboxh}\newlength{\bc@invboxd}%
 \newlength{\bc@titleLength}%
-\newlength{\logowidth}
-\newlength{\bc@mdfboxwidth}
-\newlength{\bc@mdfboxheight}
-% \newlength{\bc@mdf@ymargin@length}
+\newlength{\logowidth}%
+\newlength{\bc@mdfboxwidth}%
+\newlength{\bc@mdfboxheight}%
+%\newlength{\bc@mdf@ymargin@length}
 %
 \setlength{\logowidth}{17pt}%
 \ProcessOptionsX%
 %
-%
 \ifbclogotikz%
         \RequirePackage{tikz}%
         \usetikzlibrary{shadows}% pour l'ombre
 \define@boolkey{bclogo}{noborder}[true]{\ifKV@bclogo@noborder\setlength{\bcval@borderWidth}{\z@}\fi}%
 \define@boolkey{bclogo}{ombre}[true]{}%
 \define@boolkey{bclogo}{avecBarre}[true]{}%
-\define@boolkey{bclogo}{nobreak}[false]{}%
+\define@boolkey{bclogo}{nobreak}[true]{}%
 \define@boolkey{bclogo}{blur}[true]{\ifKV@bclogo@blur\KV@bclogo@ombretrue\fi}%
 \define@choicekey{bclogo}{barre}{none,line,snake,motif,zigzag,imageExt,imageClip, wave}[line]{%
 \ifthenelse{\equal{#1}{none}}{\KV@bclogo@avecBarrefalse\gdef\bc@barre{}}%
@@ -318,7 +317,8 @@ clip=true]{\bcval@imageBarre}%
  fontcolor=\bcval@couleurTexte,%
  linewidth=\bcval@borderWidth,%
  roundcorner={\bcval@arrondi cm},%
- nobreak=\bcval@nobreak]%
+ \ifdef{\mdf@nobreak}{,nobreak=\bcval@nobreak}{}%%l'option nobreak de mdframed vient avec la version 0.9
+]%
 }%
 {%
 \endmdframed\par%
index 1672dfd..342682f 100644 (file)
                 \fi%
                 }%
                 \rput[tl](\dimexpr0.5\bcval@framesep+\mdf@middlelinewidth@length,%
-                          \dimexpr\mdfboundingboxheight-0.75\bcval@framesep-\mdf@middlelinewidth@length){\usebox\bc@envbox}%
+                          \dimexpr\mdfboundingboxheight-0.75\bcval@framesep-\mdf@middlelinewidth@length){\box\bc@envbox}%
                 \rput[bl](\dimexpr\mdf@middlelinewidth@length+0.5\bcval@framesep,0){\bc@barre}%
                 \rput[bl](\dimexpr\mdf@innerleftmargin@length+\mdf@middlelinewidth@length,0){\box\tw@}%
            \end{pspicture}%

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.