-% 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 tikz is used
%% It is a modification of md-frame-1.mdf file, from mdframed package
%% This file may be distributed under the terms of the LaTeX Project
}%
{}%
}{}%
- \tikzset{mdftext/.style={inner sep=0pt,outer sep=0pt}}%
+ \tikzset{mdftext/.style={inner sep=0pt,outer sep=0pt,\mdf@fontcolor}}%
\tikzset{mdfcorners/.style={rounded corners=\mdf@roundcorner@length}}%
\tikzset{mdfbackground/.style={fill=\mdf@backgroundcolor}}%
\ifdimgreater{\mdf@outerlinewidth@length}{\z@}%
\def\md@putbox@single{%boite qui tient sur la page
\leftline{\null\hspace*{\mdf@leftmargin@length}%%
\md@tikz@settings%
- \setlength\mdfboxwidth{\wd\@tempboxa}%
- \setlength\mdfboxheight{\ht\@tempboxa+\dp\@tempboxa}%
- \setlength{\bc@invboxh}{\mdfboxheight}%
+ \setlength\bc@mdfboxwidth{\wd\@tempboxa}%
+ \setlength\bc@mdfboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
+ \setlength{\bc@invboxh}{\bc@mdfboxheight}%
\begin{tikzpicture}%
\coordinate(O)at(0,0);%
- \pgfmathsetlengthmacro\x{\mdfboxwidth+\mdf@innerrightmargin@length%
+ \pgfmathsetlengthmacro\x{\bc@mdfboxwidth+\mdf@innerrightmargin@length%
+\mdf@innerleftmargin@length+%
2\mdf@innerlinewidth@length+\mdf@middlelinewidth@length}%
\pgfmathsetlengthmacro\xp{\mdf@innerleftmargin@length+%
1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}%
- \pgfmathsetlengthmacro\y{\mdfboxheight+\mdf@innertopmargin@length%
+ \pgfmathsetlengthmacro\y{\bc@mdfboxheight+\mdf@innertopmargin@length%
+\mdf@innerbottommargin@length%
+2*\mdf@innerlinewidth@length+\mdf@middlelinewidth@length}%
\pgfmathsetlengthmacro\yp{\mdf@innerbottommargin@length%
\pgfmathsetlengthmacro\dep{\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}%
\coordinate(P)at(\x,\y);%
\begin{scope}%
- \ifKV@bclogo@ombre%
- \ifKV@bclogo@blur%
+ \ifKV@bclogo@ombre%
+ \ifKV@bclogo@blur%
\path[mdfcorners]\bc@tikzBlur(-\dep,-\dep)--(\x+\dep,-\dep)--(\x+\dep,\y+\dep)--(-\dep,\y+\dep)--cycle;%
- \else%
- \path[mdfcorners]\bc@tikzOmbre(-\dep,-\dep)--(\x+\dep,-\dep)--(\x+\dep,\y+\dep)--(-\dep,\y+\dep)--cycle;%
- \fi\fi%
- \clip[preaction=mdfborderA]%
- [postaction={mdfbackground,mdfborderI}]%
- [mdfcorners](O)--(O|-P)--(P)--(P|-O)--cycle;%
- \end{scope}%
+ \else%
+ \path[mdfcorners]\bc@tikzOmbre(-\dep,-\dep)--(\x+\dep,-\dep)--(\x+\dep,\y+\dep)--(-\dep,\y+\dep)--cycle;%
+ \fi%
+ \fi%
+ \clip[preaction=mdfborderA]%
+ [postaction={mdfbackground,mdfborderI}]%
+ [mdfcorners](O)--(O|-P)--(P)--(P|-O)--cycle;%
\path[mdfmiddle,mdfcorners,draw=\ifKV@bclogo@noborder none\else\bcval@couleurBord\fi](O)--(O|-P)--(P)--(P|-O)--cycle;
\node[mdftext,anchor=north west]at%
(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep,%
- \y-0.75*\bcval@framesep-\mdf@innerlinewidth@length-0.5*\mdf@middlelinewidth@length){\box\bc@envbox};
- \node[mdftext,anchor=south west]at(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep,\yp){\bc@barre};
- \node[mdftext,anchor=south west]at(\xp,\yp){\box\@tempboxa};
+ \y-0.75*\bcval@framesep-\mdf@innerlinewidth@length-0.5*\mdf@middlelinewidth@length){\box\bc@envbox};%
+ \node[mdftext,anchor=south]at(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep+0.5*\logowidth,\yp){\bc@barre};%
+ \node[mdftext,anchor=south west]at(\xp,\yp){\box\@tempboxa};%
+ \end{scope}%
%\draw[fill] (0,0) circle (.1cm);
%\draw[fill,yellow] (\x,\y) circle (.1cm);
%\draw[fill,orange] (\xp,\yp) circle (.05cm);
}%
}%
%
-\def\md@putbox@first{%tête d'une boite coupée
+\def\md@putbox@first{%tête d'une boite coupée
\leftline{\null\hspace*{\mdf@leftmargin@length}%%
\md@tikz@settings%
- \setlength\mdfboxwidth{\wd\tw@}%
- \setlength\mdfboxheight{\ht\tw@+\dp\tw@}%
- \setlength{\bc@invboxh}{\mdfboxheight}%
+ \setlength\bc@mdfboxwidth{\wd\tw@}%
+ \setlength\bc@mdfboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}%
+ \setlength{\bc@invboxh}{\bc@mdfboxheight}%
\ifdimequal{\pagegoal}{\maxdimen}{\enlargethispage{\baselineskip}}{}%
\begin{tikzpicture}%
\coordinate(O) at (0,0);%
- \pgfmathsetlengthmacro\x{\mdfboxwidth+\mdf@innerrightmargin@length%
+ \pgfmathsetlengthmacro\x{\bc@mdfboxwidth+\mdf@innerrightmargin@length%
+\mdf@innerleftmargin@length+%
2*\mdf@innerlinewidth@length+1*\mdf@middlelinewidth@length}
\pgfmathsetlengthmacro\xp{\mdf@innerleftmargin@length+%
1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\y{-\mdfboxheight-\mdf@innertopmargin@length%
+ \pgfmathsetlengthmacro\y{-\bc@mdfboxheight-\mdf@innertopmargin@length%
-1*\mdf@innerlinewidth@length-0.5*\mdf@middlelinewidth@length+0.0cm}
\pgfmathsetlengthmacro\yp{-\mdf@innertopmargin@length%
-1*\mdf@innerlinewidth@length-0.5*\mdf@middlelinewidth@length%
- -0.5\mdfboxheight}
+ -0.5\bc@mdfboxheight}
\pgfmathsetlengthmacro\dep{\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}%
\coordinate(P)at(\x,\y);%
\clip(-\mdf@outerlinewidth@length-0.5*\mdf@middlelinewidth@length,%
\clip[preaction=mdfborderA]%
[postaction={mdfbackground,mdfborderI}]%
[mdfcorners](O|-P)--(O)--(P|-O)--(P);%
- \end{scope}%
\path[mdfmiddle,mdfcorners,mdfbackground,draw=\ifKV@bclogo@noborder none\else \bcval@couleurBord\fi](O|-P)--(O)--(P|-O)--(P);
\node[mdftext,anchor=north west]at(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep,%
-0.75*\bcval@framesep-\mdf@innerlinewidth@length-0.5*\mdf@middlelinewidth@length){\box\bc@envbox};%
- \node[mdftext,anchor=south west]at(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep,\y){\bc@barre};%
+ \node[mdftext,anchor=south]at(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep+0.5*\logowidth,\y){\bc@barre};%
\node[mdftext,anchor=west,inner sep=0pt,outer sep=0pt]at(\xp,\yp){\box\tw@};%
+ \end{scope}%
%\draw[fill] (0,0) circle (.1cm);
%\draw[fill,yellow] (\x,\y) circle (.1cm);
%\draw[fill,orange] (\xp,\yp) circle (.05cm);
\def\md@putbox@middle{%milieu d'une boite coupée (occupe une page entière)
\leftline{\null\hspace*{\mdf@leftmargin@length}%%
\md@tikz@settings%
- \setlength\mdfboxwidth{\wd\tw@}%
- \setlength\mdfboxheight{\ht\tw@+\dp\tw@}%
- \setlength{\bc@invboxh}{\mdfboxheight}%
- \setlength{\mdf@ymargin@length}{0.4\baselineskip}%
+ \setlength\bc@mdfboxwidth{\wd\tw@}%
+ \setlength\bc@mdfboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}%
+ \setlength{\bc@invboxh}{\bc@mdfboxheight}%
+ %\setlength{\bc@mdf@ymargin@length}{0.4\baselineskip}%
\begin{tikzpicture}%
\coordinate(O)at(0,0);%
- \pgfmathsetlengthmacro\x{\mdfboxwidth+\mdf@innerrightmargin@length%
+ \pgfmathsetlengthmacro\x{\bc@mdfboxwidth+\mdf@innerrightmargin@length%
+\mdf@innerleftmargin@length+%
2*\mdf@innerlinewidth@length+1*\mdf@middlelinewidth@length}%
\pgfmathsetlengthmacro\xp{\mdf@innerleftmargin@length+%
1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}%
- \pgfmathsetlengthmacro\y{\mdfboxheight}%
+ \pgfmathsetlengthmacro\y{\bc@mdfboxheight}%
\pgfmathsetlengthmacro\yp{0cm}%
\pgfmathsetlengthmacro\dep{\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}%
\coordinate(P)at(\x,\y);%
\clip%
[postaction=mdfbackground](O)--(O|-P)--(P)--(P|-O);%
\path[mdfborderI](O)--(O|-P)(P)--(P|-O);%
- \end{scope}%
\path[mdfmiddle,draw=\ifKV@bclogo@noborder none\else \bcval@couleurBord\fi](O)--(O|-P)(P)--(P|-O);%
- \node[mdftext,anchor=south west]at(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep,0){\bc@barre};%
+ \node[mdftext,anchor=south]at(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep+0.5*\logowidth,0){\bc@barre};%
\node[mdftext,anchor=south west]at(\xp,\yp){\box\tw@};%
+ \end{scope}%
\end{tikzpicture}%
}%
}%
\def\md@putbox@second{%dernière partie d'une boite coupée
\leftline{\null\hspace*{\mdf@leftmargin@length}%%
\md@tikz@settings%
- \setlength\mdfboxwidth{\wd\@tempboxa}%
- \setlength\mdfboxheight{\ht\@tempboxa+\dp\@tempboxa}%
- \setlength{\bc@invboxh}{\mdfboxheight}%
+ \setlength\bc@mdfboxwidth{\wd\@tempboxa}%
+ \setlength\bc@mdfboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
+ \setlength{\bc@invboxh}{\bc@mdfboxheight}%
\begin{tikzpicture}%
\coordinate(O)at(0,0);%
- \pgfmathsetlengthmacro\x{\mdfboxwidth+\mdf@innerrightmargin@length%
+ \pgfmathsetlengthmacro\x{\bc@mdfboxwidth+\mdf@innerrightmargin@length%
+\mdf@innerleftmargin@length+%
2*\mdf@innerlinewidth@length+1*\mdf@middlelinewidth@length}%
\pgfmathsetlengthmacro\xp{\mdf@innerleftmargin@length+%
1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}%
- \pgfmathsetlengthmacro\y{\mdfboxheight%
+ \pgfmathsetlengthmacro\y{\bc@mdfboxheight%
+\mdf@innerbottommargin@length%
+1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}
\pgfmathsetlengthmacro\yp{\mdf@innerbottommargin@length%
\clip[preaction=mdfborderA]%
[postaction={mdfbackground,mdfborderI}]%
[mdfcorners](P-|O)--(O)--(O-|P)--(P);%
- \end{scope}%
\path[mdfmiddle,mdfcorners,draw=\ifKV@bclogo@noborder none\else \bcval@couleurBord\fi](P-|O)--(O)--(O-|P)--(P);%
- \node[mdftext,anchor=south west]at(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep,\yp){\bc@barre};%
+ \node[mdftext,anchor=south]at(\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length+0.5*\bcval@framesep+0.5*\logowidth,\yp){\bc@barre};%
\node[mdftext,anchor=south west] at (\xp,\yp){\box\@tempboxa};%
+ \end{scope}%
\end{tikzpicture}%
}%
}%
+\endinput