1 %% This is a part of bclogo.sty v3.0
2 %% This file is loaded by bclogo when pstrick is used
3 %% It is a modification of md-frame-3.mdf file, from the mdframed package
4 %% This file may be distributed under the terms of the LaTeX Project
5 %% Public License, as described in lppl.txt in the base LaTeX distribution.
6 %% Either version 1.0 or, at your option, any later version.
8 \def\md@putbox@single
{%boite qui tient sur la page
9 \leftline{\null\hspace*
{\mdf@leftmargin@length
}%%
10 \setlength\bc@mdfboxwidth
{\wd\@tempboxa
}%
11 \setlength\bc@mdfboxheight
{\dimexpr\ht\@tempboxa+
\dp\@tempboxa
\relax}%
12 \setlength{\bc@invboxh
}{\bc@mdfboxheight
}%
13 \setlength{\mdfboundingboxheight}{\dimexpr\bc@mdfboxheight+
\mdf@innertopmargin@length+
\mdf@innerbottommargin@length
\relax}%
14 \ifbool{mdf@topline
}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length
}}{}%
15 \ifbool{mdf@bottomline
}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length
}}{}%
16 \setlength{\mdfboundingboxwidth}{\dimexpr\bc@mdfboxwidth+
\mdf@innerleftmargin@length+
\mdf@innerrightmargin@length
\relax}%
17 \ifbool{mdf@leftline
}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length
}}{}%
18 \ifbool{mdf@rightline
}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length
}}{}%
19 \psset{linearc=
\mdf@roundcorner@length,cornersize=absolute
}%
21 \begin{pspicture
}(
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
22 \ifKV@bclogo@ombre
%cadre ombre
23 \ifKV@bclogo@blur
%blur
24 \psframe[fillstyle=solid, shadow=true, blur=true, shadowsize=
\bcval@epOmbre cm,
%
25 shadowcolor=
\bcval@couleurOmbre, fillcolor=
\bcval@couleur,linewidth=
\bcval@borderWidth,
%
26 linestyle=
\ifKV@bclogo@noborder none
\else solid
\fi,linecolor=
\bcval@couleurBord
]%
27 (
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
29 \psframe[fillstyle=solid, shadow=true, shadowsize=
\bcval@epOmbre cm,
%
30 shadowcolor=
\bcval@couleurOmbre, fillcolor=
\bcval@couleur,linewidth=
\bcval@borderWidth,
%
31 linestyle=
\ifKV@bclogo@noborder none
\else solid
\fi,linecolor=
\bcval@couleurBord
]%
32 (
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
35 \psframe[fillstyle=solid, fillcolor=
\bcval@couleur,linewidth=
\bcval@borderWidth,
36 linestyle=
\ifKV@bclogo@noborder none
\else solid
\fi,linecolor=
\bcval@couleurBord
]%
37 (
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
39 \rput[tl
](
\dimexpr0.5
\bcval@framesep+
\mdf@middlelinewidth@length,
%
40 \dimexpr\mdfboundingboxheight-
0.75\bcval@framesep-
\mdf@middlelinewidth@length)
{\box\bc@envbox
}%
41 \rput[b
](
\dimexpr\mdf@middlelinewidth@length+
0.5\bcval@framesep+
0.5\logowidth,
%
42 \dimexpr\mdf@innerbottommargin@length+
\mdf@middlelinewidth@length)
{\bc@barre
}%
43 \rput[bl
](
\dimexpr\mdf@innerleftmargin@length+
\mdf@middlelinewidth@length,
%
44 \dimexpr\mdf@innerbottommargin@length+
\mdf@middlelinewidth@length)
{\box\@tempboxa
}%
49 \def\md@putbox@first
{%tete d'une boite coupée
50 \leftline{\null\hspace*
{\mdf@leftmargin@length
}%%
51 \setlength\bc@mdfboxwidth
{\wd\tw@
}%
52 \setlength\bc@mdfboxheight
{\dimexpr\ht\tw@+
\dp\tw@
\relax}%
53 \setlength{\bc@invboxh
}{\bc@mdfboxheight
}%
54 \setlength{\mdfboundingboxheight}{\dimexpr\bc@mdfboxheight+
\mdf@innertopmargin@length+
\mdf@splitbottomskip@length
\relax}%
55 \ifbool{mdf@topline
}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length
}}{}%
56 \setlength{\mdfboundingboxwidth}{\dimexpr\mdf@innerleftmargin@length+
\bc@mdfboxwidth+
\mdf@innerrightmargin@length
\relax}%
57 \ifbool{mdf@leftline
}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length
}}{}%
58 \ifbool{mdf@rightline
}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length
}}{}%
59 \psset{linearc=
\mdf@roundcorner@length
}%
61 \ifdimgreater{\mdfboundingboxheight}{\vsize}
62 {\begin{pspicture
}(
0,
0)(
\mdfboundingboxwidth,
\vsize)
}
63 {\begin{pspicture
}(
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
}
64 \ifKV@bclogo@noborder
\psset{linecolor=
\bcval@couleur
}\else\psset{linecolor=
\bcval@couleurBord
}\fi%
65 \ifdimequal{\mdf@roundcorner@length
}{\z@
}%
67 \ifKV@bclogo@ombre
%cadre ombre
68 \ifKV@bclogo@blur
%blur
69 \psframe[fillstyle=solid, shadow=true, blur=true, shadowsize=
\bcval@epOmbre cm,
%
70 shadowcolor=
\bcval@couleurOmbre, fillcolor=
\bcval@couleur,linestyle=none
]%
71 (
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
73 \psframe[fillstyle=solid, shadow=true, shadowsize=
\bcval@epOmbre cm,
%
74 shadowcolor=
\bcval@couleurOmbre, fillcolor=
\bcval@couleur,linestyle=none
]%
75 (
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
78 \psframe[fillstyle=solid, fillcolor=
\bcval@couleur,linestyle=none
]%
79 (
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
81 \ifKV@bclogo@noborder
\else%
82 \psline[linestyle=solid,linecolor=
\bcval@couleurBord,fillstyle=none,linewidth=
\bcval@borderWidth
]%
83 (
\dimexpr0.5
\mdf@middlelinewidth@length,
0)
%
84 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\dimexpr\mdfboundingboxheight-
0.5\mdf@middlelinewidth@length)
%
85 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\dimexpr\mdfboundingboxheight-
0.5\mdf@middlelinewidth@length)
%
86 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
0)
%
90 \ifKV@bclogo@ombre
%cadre ombre
91 \ifKV@bclogo@blur
%blur
92 \psline[shadow=true,blur=true,shadowsize=
\bcval@epOmbre cm,shadowcolor=
\bcval@couleurOmbre,fillstyle=solid,
%
93 fillcolor=
\bcval@couleur,linestyle=solid,linewidth=
\bcval@borderWidth
]%
94 (
\dimexpr0.5
\mdf@middlelinewidth@length,
0)
%
95 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\dimexpr\mdfboundingboxheight-
0.5\mdf@middlelinewidth@length)
%
96 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\dimexpr\mdfboundingboxheight-
0.5\mdf@middlelinewidth@length)
%
97 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
0)
%
99 \psline[shadow=true,shadowsize=
\bcval@epOmbre cm,shadowcolor=
\bcval@couleurOmbre,fillstyle=solid,
%
100 fillcolor=
\bcval@couleur,linestyle=solid,linewidth=
\bcval@borderWidth
]%
101 (
\dimexpr0.5
\mdf@middlelinewidth@length,
0)
%
102 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\dimexpr\mdfboundingboxheight-
0.5\mdf@middlelinewidth@length)
%
103 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\dimexpr\mdfboundingboxheight-
0.5\mdf@middlelinewidth@length)
%
104 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
0)
%
107 \psline[fillstyle=solid,fillcolor=
\bcval@couleur,linestyle=solid,linewidth=
\bcval@borderWidth
]%
108 (
\dimexpr0.5
\mdf@middlelinewidth@length,
0)
%
109 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\dimexpr\mdfboundingboxheight-
0.5\mdf@middlelinewidth@length)
%
110 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\dimexpr\mdfboundingboxheight-
0.5\mdf@middlelinewidth@length)
%
111 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
0)
%
114 \rput[tl
](
\dimexpr0.5
\bcval@framesep+
\mdf@middlelinewidth@length,
%
115 \dimexpr\mdfboundingboxheight-
0.75\bcval@framesep-
\mdf@middlelinewidth@length)
{\box\bc@envbox
}%
116 \rput[b
](
\dimexpr\mdf@middlelinewidth@length+
0.5\bcval@framesep+
0.5\logowidth,
0)
{\bc@barre
}%
117 \rput[bl
](
\dimexpr\mdf@innerleftmargin@length+
\mdf@middlelinewidth@length,
0)
{\box\tw@
}%
122 \def\md@putbox@middle
{%milieu d'une boite coupée (occupe une page entière)
123 \leftline{\null\hspace*
{\mdf@leftmargin@length
}%%
124 \setlength\bc@mdfboxwidth
{\wd\tw@
}%
125 \setlength\bc@mdfboxheight
{\dimexpr\ht\tw@+
\dp\tw@
\relax}%
126 \setlength{\bc@invboxh
}{\bc@mdfboxheight
}%
127 \setlength{\mdfboundingboxheight}{\dimexpr\bc@mdfboxheight+
\mdf@splitbottomskip@length
\relax}%
128 \setlength{\mdfboundingboxwidth}{\dimexpr\mdf@innerleftmargin@length+
\bc@mdfboxwidth+
\mdf@innerrightmargin@length
\relax}%
129 \ifbool{mdf@leftline
}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length
}}{}%
130 \ifbool{mdf@rightline
}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length
}}{}%
131 \psset{linearc=
\mdf@roundcorner@length
}%
133 \ifdimgreater{\mdfboundingboxheight}{\vsize}
134 {\begin{pspicture
}(
0,
0)(
\mdfboundingboxwidth,
\vsize)
}
135 {\begin{pspicture
}(
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
}
136 \ifKV@bclogo@ombre
%cadre ombre
137 \ifKV@bclogo@blur
%blur
138 \psframe[fillstyle=solid, shadow=true, blur=true, shadowsize=
\bcval@epOmbre cm,
%
139 shadowcolor=
\bcval@couleurOmbre, fillcolor=
\bcval@couleur,linestyle=none
]%
140 (
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
142 \psframe[fillstyle=solid, shadow=true, shadowsize=
\bcval@epOmbre cm,
%
143 shadowcolor=
\bcval@couleurOmbre, fillcolor=
\bcval@couleur,linestyle=none
]%
144 (
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
147 \psframe[fillstyle=solid, fillcolor=
\bcval@couleur,linestyle=none
]%
148 (
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
150 \ifKV@bclogo@noborder
\else%
151 \psline[linestyle=solid,linecolor=
\bcval@couleurBord,fillstyle=none,linewidth=
\bcval@borderWidth
]%
152 (
\dimexpr0.5
\mdf@middlelinewidth@length,
0)(
\dimexpr0.5
\mdf@middlelinewidth@length,
\mdfboundingboxheight)
153 \psline[linestyle=solid,linecolor=
\bcval@couleurBord,fillstyle=none,linewidth=
\bcval@borderWidth
]%
154 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\mdfboundingboxheight)
%
155 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
0)
%
157 \rput[b
](
\dimexpr\mdf@middlelinewidth@length+
0.5\bcval@framesep+
0.5\logowidth,
0)
{\bc@barre
}%
158 \rput[bl
](
\dimexpr\mdf@innerleftmargin@length+
\mdf@middlelinewidth@length,
0)
{\box\tw@
}%
163 \def\md@putbox@second
{%pied d'une boite coupée
164 \leftline{\null\hspace*
{\mdf@leftmargin@length
}%%
165 \setlength\bc@mdfboxwidth
{\wd\@tempboxa
}%
166 \setlength\bc@mdfboxheight
{\dimexpr\ht\@tempboxa+
\dp\@tempboxa
\relax}%
167 \setlength{\bc@invboxh
}{\bc@mdfboxheight
}%
168 \setlength{\mdfboundingboxheight}{\dimexpr\bc@mdfboxheight+
\mdf@innerbottommargin@length
\relax}%
169 \ifbool{mdf@bottomline
}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length
}}{}%
170 \setlength{\mdfboundingboxwidth}{\dimexpr+
\mdf@innerleftmargin@length+
\bc@mdfboxwidth+
\mdf@innerrightmargin@length
\relax}%
171 \ifbool{mdf@leftline
}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length
}}{}%
172 \ifbool{mdf@rightline
}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length
}}{}%
173 \psset{linearc=
\mdf@roundcorner@length
}%
175 \begin{pspicture
}(
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
176 \ifKV@bclogo@noborder
\psset{linecolor=
\bcval@couleur
}\else\psset{linecolor=
\bcval@couleurBord
}\fi%
177 \ifdimequal{\mdf@roundcorner@length
}{\z@
}%
179 \ifKV@bclogo@ombre
%cadre ombre
180 \ifKV@bclogo@blur
%blur
181 \psframe[shadow=true,blur=true,shadowsize=
\bcval@epOmbre cm,shadowcolor=
\bcval@couleurOmbre,fillstyle=solid,
%
182 fillcolor=
\bcval@couleur,linestyle=none
](
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
184 \psframe[shadow=true,shadowsize=
\bcval@epOmbre cm,shadowcolor=
\bcval@couleurOmbre,fillstyle=solid,
%
185 fillcolor=
\bcval@couleur,linestyle=none
](
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
188 \psframe[fillstyle=solid,fillcolor=
\bcval@couleur,linestyle=none
](
0,
0)(
\mdfboundingboxwidth,
\mdfboundingboxheight)
%
190 \ifKV@bclogo@noborder
\else
191 \psline[fillstyle=solid,fillcolor=
\bcval@couleur,linestyle=solid,linewidth=
\bcval@borderWidth
]%
192 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\mdfboundingboxheight)
%
193 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\dimexpr0.5
\mdf@middlelinewidth@length)
%
194 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\dimexpr0.5
\mdf@middlelinewidth@length)
%
195 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\mdfboundingboxheight)
%
199 \ifKV@bclogo@ombre
%cadre ombre
200 \ifKV@bclogo@blur
%blur
201 \psline[shadow=true,blur=true,shadowsize=
\bcval@epOmbre cm,shadowcolor=
\bcval@couleurOmbre,fillstyle=solid,
%
202 fillcolor=
\bcval@couleur,linestyle=solid,linewidth=
\bcval@borderWidth
]%
203 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\mdfboundingboxheight)
%
204 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\dimexpr0.5
\mdf@middlelinewidth@length)
%
205 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\dimexpr0.5
\mdf@middlelinewidth@length)
%
206 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\mdfboundingboxheight)
%
208 \psline[shadow=true,shadowsize=
\bcval@epOmbre cm,shadowcolor=
\bcval@couleurOmbre,fillstyle=solid,
%
209 fillcolor=
\bcval@couleur,linestyle=solid,linewidth=
\bcval@borderWidth
]%
210 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\mdfboundingboxheight)
%
211 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\dimexpr0.5
\mdf@middlelinewidth@length)
%
212 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\dimexpr0.5
\mdf@middlelinewidth@length)
%
213 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\mdfboundingboxheight)
%
216 \psline[fillstyle=solid,fillcolor=
\bcval@couleur,linestyle=solid,linewidth=
\bcval@borderWidth
]%
217 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\mdfboundingboxheight)
%
218 (
\dimexpr0.5
\mdf@middlelinewidth@length,
\dimexpr0.5
\mdf@middlelinewidth@length)
%
219 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\dimexpr0.5
\mdf@middlelinewidth@length)
%
220 (
\dimexpr\mdfboundingboxwidth-
0.5\mdf@middlelinewidth@length,
\mdfboundingboxheight)
%
223 \rput[b
](
\dimexpr\mdf@middlelinewidth@length+
0.5\bcval@framesep+
0.5\logowidth,
%
224 \dimexpr\mdf@innerbottommargin@length+
\mdf@middlelinewidth@length)
{\bc@barre
}%
225 \rput[bl
](
\dimexpr\mdf@innerleftmargin@length+
\mdf@middlelinewidth@length,
%
226 \dimexpr\mdf@innerbottommargin@length+
\mdf@middlelinewidth@length)
{\box\@tempboxa
}%