\def\fileversion{v3.0}%
\def\filedate{2011/10/01}%
\ProvidesPackage{bclogo}[\filedate\space\fileversion]%
-
+%
% Extensions a charger
\RequirePackage{xkeyval,ifthen}%
\RequirePackage{graphicx}%
\RequirePackage{mdframed}%
-
+%
%% Les options globales du package sont au nombre de 2: tikz ou pstricks
\newif\ifbclogotikz%
\newif\ifbclogoblur%
\define@key{bclogo.sty}{tikz}[]{\bclogotikztrue}%
\define@key{bclogo.sty}{pstricks}[]{\bclogotikzfalse}%
\define@key{bclogo.sty}{blur}[]{\bclogoblurtrue}%
-
+%
% quelques dimensions
\newlength{\bc@invboxh}\newlength{\bc@invboxd}%
\newlength{\bc@titleLength}%
\newlength{\bc@mdfboxwidth}
\newlength{\bc@mdfboxheight}
% \newlength{\bc@mdf@ymargin@length}
-
+%
\setlength{\logowidth}{17pt}%
\ProcessOptionsX%
%
-
+%
\ifbclogotikz%
\RequirePackage{tikz}%
\usetikzlibrary{shadows}% pour l'ombre
- \usetikzlibrary{decorations.pathmorphing} % pour la barre ondulee
+ \usetikzlibrary{decorations.pathmorphing}% pour la barre ondulee
\def\bc@mdf@style{1}%
\input{bclogoMdframedTikz}%
\else%
\define@boolkey{bclogo}{nobreak}[false]{}%
\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}%
+\ifthenelse{\equal{#1}{none}}{\KV@bclogo@avecBarrefalse\gdef\bc@barre{}}%
{\gdef\bc@barre{\ifKV@bclogo@avecBarre\@nameuse{bc@barre#1}\fi}}%
}%
%
\end{lrbox}%
% affichage
%\smallskip% ressort %% Pourquoi ?
-\def\bcval@nobreak{\ifKV@bclogo@nobreak true\else false\fi} % gestion nobreak
+\def\bcval@nobreak{\ifKV@bclogo@nobreak true\else false\fi}% gestion nobreak
\mdframed[%
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
fontcolor=\bcval@couleurTexte,%
linewidth=\bcval@borderWidth,%
roundcorner={\bcval@arrondi cm},%
- nobreak= \bcval@nobreak]%
+ nobreak=\bcval@nobreak]%
}%
{%
\endmdframed\par%
\ifKV@bclogo@ombre\vspace*{\bcval@epOmbre cm}\else\smallskip\fi%
\goodbreak%
}%
-
+\setkeys{bclogo}{barre=none}%% en cas d'utlisation de l'environnement mdframed
-%% This is a part of bclogo.sty v2.27
+%% This is a part of bclogo.sty v3.0
%% This file is loaded by bclogo when pstrick is used
%% It is a modification of md-frame-3.mdf file, from the mdframed package
%% This file may be distributed under the terms of the LaTeX Project
\end{pspicture}%
}%
}%
-
-
+%
\def\md@putbox@first{%tete d'une boite coupée
\leftline{\null\hspace*{\mdf@leftmargin@length}%%
\setlength\bc@mdfboxwidth{\wd\tw@}%
\rput[bl](\dimexpr\mdf@innerleftmargin@length+\mdf@middlelinewidth@length,0){\box\tw@}%
\end{pspicture}%
}%
-}
-
+}%
+%
\def\md@putbox@middle{%milieu d'une boite coupée (occupe une page entière)
\leftline{\null\hspace*{\mdf@leftmargin@length}%%
\setlength\bc@mdfboxwidth{\wd\tw@}%