définition des lengths mdfbox, préfixage des length, ajout de l'option nobreak, modif...
[bclogo.git] / dev / latex / bclogoMdframedPst.tex
index d626128..8632fa8 100644 (file)
@@ -1,4 +1,4 @@
-%% This is a part of bclogo.sty v2.27 
+%% This is a part of bclogo.sty v2.27
 %% 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
@@ -7,11 +7,11 @@
 %
 \def\md@putbox@single{%boite qui tient sur la page
    \leftline{\null\hspace*{\mdf@leftmargin@length}%%
-        \setlength\mdfboxwidth{\wd\@tempboxa}%
-        \setlength\mdfboxheight{\ht\@tempboxa+\dp\@tempboxa}%
-        \setlength{\bc@invboxh}{\mdfboxheight}%
+        \setlength\bc@mdfboxwidth{\wd\@tempboxa}%
+        \setlength\bc@mdfboxheight{\ht\@tempboxa+\dp\@tempboxa}%
+        \setlength{\bc@invboxh}{\bc@mdfboxheight}%
         \setlength{\mdfboundingboxheight}{%
-                     \mdfboxheight%
+                     \bc@mdfboxheight%
                     +\mdf@innertopmargin@length%
                     +\mdf@innerbottommargin@length%
 %                    +\mdf@middlelinewidth@length%
@@ -20,7 +20,7 @@
          \ifbool{mdf@topline}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length}}{}%
          \ifbool{mdf@bottomline}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length}}{}%
          \setlength{\mdfboundingboxwidth}{%
-                     \mdfboxwidth%
+                     \bc@mdfboxwidth%
                     +\mdf@innerleftmargin@length%
                     +\mdf@innerrightmargin@length%
 %                    +\mdf@middlelinewidth@length%
                 \ifKV@bclogo@ombre%cadre ombre
                 \ifKV@bclogo@blur%blur
                 \psframe[fillstyle=solid, shadow=true, blur=true, shadowsize=\bcval@epOmbre cm,%
-                         shadowcolor=\bcval@couleurOmbre, fillcolor=\bcval@couleur,linewidth=\bcval@borderWidth,% 
+                         shadowcolor=\bcval@couleurOmbre, fillcolor=\bcval@couleur,linewidth=\bcval@borderWidth,%
                          linestyle=\ifKV@bclogo@noborder none\else solid\fi,linecolor=\bcval@couleurBord]%
                          (0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)%
                 \else%
                 \psframe[fillstyle=solid, shadow=true, shadowsize=\bcval@epOmbre cm,%
-                         shadowcolor=\bcval@couleurOmbre, fillcolor=\bcval@couleur,linewidth=\bcval@borderWidth,% 
+                         shadowcolor=\bcval@couleurOmbre, fillcolor=\bcval@couleur,linewidth=\bcval@borderWidth,%
                          linestyle=\ifKV@bclogo@noborder none\else solid\fi,linecolor=\bcval@couleurBord]%
                          (0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)%
                 \fi%
                 \else%
-                \psframe[fillstyle=solid, fillcolor=\bcval@couleur,linewidth=\bcval@borderWidth, 
+                \psframe[fillstyle=solid, fillcolor=\bcval@couleur,linewidth=\bcval@borderWidth,
                          linestyle=\ifKV@bclogo@noborder none\else solid\fi,linecolor=\bcval@couleurBord]%
                          (0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)%
                 \fi%
 }%
 
 
-\def\md@putbox@first{%tete d'une boite coupée 
+\def\md@putbox@first{%tete d'une boite coupée
    \leftline{\null\hspace*{\mdf@leftmargin@length}%%
-        \setlength\mdfboxwidth{\wd\tw@}%
-        \setlength\mdfboxheight{\ht\tw@+\dp\tw@}%
-        \setlength{\bc@invboxh}{\mdfboxheight}%
+        \setlength\bc@mdfboxwidth{\wd\tw@}%
+        \setlength\bc@mdfboxheight{\ht\tw@+\dp\tw@}%
+        \setlength{\bc@invboxh}{\bc@mdfboxheight}%
         \setlength{\mdfboundingboxheight}{%
-                    +\mdfboxheight%
+                    +\bc@mdfboxheight%
                     +\mdf@innertopmargin@length%
                     +\mdf@splitbottomskip@length%
                   }%
          \ifbool{mdf@topline}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length}}{}%
          \setlength{\mdfboundingboxwidth}{%
                     +\mdf@innerleftmargin@length%
-                    +\mdfboxwidth
+                    +\bc@mdfboxwidth
                     +\mdf@innerrightmargin@length%
                   }%
          \ifbool{mdf@leftline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}%
 
 \def\md@putbox@middle{%milieu d'une boite coupée (occupe une page entière)
    \leftline{\null\hspace*{\mdf@leftmargin@length}%%
-        \setlength\mdfboxwidth{\wd\tw@}%
-        \setlength\mdfboxheight{\ht\tw@+\dp\tw@}%
-        \setlength{\bc@invboxh}{\mdfboxheight}%
+        \setlength\bc@mdfboxwidth{\wd\tw@}%
+        \setlength\bc@mdfboxheight{\ht\tw@+\dp\tw@}%
+        \setlength{\bc@invboxh}{\bc@mdfboxheight}%
         \setlength{\mdfboundingboxheight}{%
-                    +\mdfboxheight%
+                    +\bc@mdfboxheight%
                     +\mdf@splitbottomskip@length%
                   }%
          \setlength{\mdfboundingboxwidth}{%
                     +\mdf@innerleftmargin@length%
-                    +\mdfboxwidth%
+                    +\bc@mdfboxwidth%
                     +\mdf@innerrightmargin@length%
                   }%
          \ifbool{mdf@leftline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}%
 %
 \def\md@putbox@second{%pied d'une boite coupée
    \leftline{\null\hspace*{\mdf@leftmargin@length}%%
-        \setlength\mdfboxwidth{\wd\@tempboxa}%
-        \setlength\mdfboxheight{\ht\@tempboxa+\dp\@tempboxa}%
-        \setlength{\bc@invboxh}{\mdfboxheight}%
+        \setlength\bc@mdfboxwidth{\wd\@tempboxa}%
+        \setlength\bc@mdfboxheight{\ht\@tempboxa+\dp\@tempboxa}%
+        \setlength{\bc@invboxh}{\bc@mdfboxheight}%
         \setlength{\mdfboundingboxheight}{%
-                    +\mdfboxheight%
+                    +\bc@mdfboxheight%
                     +\mdf@innerbottommargin@length%
                   }%
          \ifbool{mdf@bottomline}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length}}{}%
          \setlength{\mdfboundingboxwidth}{%
                     +\mdf@innerleftmargin@length%
-                    +\mdfboxwidth
+                    +\bc@mdfboxwidth
                     +\mdf@innerrightmargin@length%
                   }%
          \ifbool{mdf@leftline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}%

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.