From: Patrick Fradin Date: Fri, 28 Oct 2011 15:35:19 +0000 (+0200) Subject: bclogo.sty option nobreak compatible avec mdframed 0.6a X-Git-Url: https://melusine.eu.org/syracuse/G/git/?a=commitdiff_plain;h=9ae7bdf916a9036f0be2cf85f628762c563bde3a;p=bclogo.git bclogo.sty option nobreak compatible avec mdframed 0.6a --- diff --git a/dev/latex/bclogo.sty b/dev/latex/bclogo.sty index 6fb1da2..c0967b6 100644 --- a/dev/latex/bclogo.sty +++ b/dev/latex/bclogo.sty @@ -19,15 +19,14 @@ % 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 @@ -184,7 +183,7 @@ \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% diff --git a/dev/latex/bclogoMdframedPst.tex b/dev/latex/bclogoMdframedPst.tex index 1672dfd..342682f 100644 --- a/dev/latex/bclogoMdframedPst.tex +++ b/dev/latex/bclogoMdframedPst.tex @@ -132,7 +132,7 @@ \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}%