summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf')
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf52
1 files changed, 47 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf
index 8a1c2910a40..77ad630c594 100644
--- a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf
+++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf
@@ -1,17 +1,15 @@
-%% Style file for mdframed for package option `framemethod=default`
+%% Style file for mdframed for package option `framemethod=tikz`
%%
%% This package may be distributed under the terms of the LaTeX Project
%% Public License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.0 or, at your option, any later version.
%%
-%%
-%%$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $
\def\mdframedIpackagename{md-frame-1}
-\def\mdf@frameIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
\ProvidesFile{md-frame-1.mdf}%
- [\mdf@frameIdate@svn$Id: mdframed.dtx 426 2012-06-02 12:18:56Z marco $ %
+ [\mdfmaindate\ %
\mdversion: \mdframedIpackagename]
\def\mdf@tikz@settings{%
+ \mdf@testdraftmode%
\tikzset{mdfbox/.style={anchor=south west,%
inner sep=0pt,%
outer sep=0pt,%
@@ -76,6 +74,50 @@
\path[mdfinnerline,mdfcorners]#1;%
\end{scope}%
\path[mdfmiddleline,mdfcorners]#1;}%
+\newrobustcmd*\mdf@testdraftmode{%
+ \ifbool{mdf@draft}%
+ {%
+ \renewrobustcmd*\mdf@tikzbox@tfl[1]{%three or four borders
+ \path(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);%
+ \begin{scope}[mdfcorners]%
+ \clip[preaction=mdfouterline]%
+ [postaction=mdfbackground]%
+ [postaction=mdfinnerline]##1;%
+ \end{scope}%
+ \path[mdfmiddleline,mdfcorners]##1;
+ }%
+ \renewrobustcmd*\mdf@tikzbox@otl[2]{%one or two borders
+ \path(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);%
+ \begin{scope}
+ \path[mdfouterline,mdfcorners]##1;%
+ \clip[postaction=mdfbackground]##2;%
+ \path[mdfinnerline,mdfcorners]##1;%
+ \end{scope}%
+ \path[mdfmiddleline,mdfcorners]##1;%
+ }%
+ }{%
+ \ifdimgreater{\overfullrule}{0pt}{%
+ \renewrobustcmd*\mdf@tikzbox@tfl[1]{%three or four borders
+ \path(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);%
+ \begin{scope}[mdfcorners]%
+ \clip[preaction=mdfouterline]%
+ [postaction=mdfbackground]%
+ [postaction=mdfinnerline]##1;%
+ \end{scope}%
+ \path[mdfmiddleline,mdfcorners]##1;
+ }%
+ \renewrobustcmd*\mdf@tikzbox@otl[2]{%one or two borders
+ \path(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);%
+ \begin{scope}
+ \path[mdfouterline,mdfcorners]##1;%
+ \clip[postaction=mdfbackground]##2;%
+ \path[mdfinnerline,mdfcorners]##1;%
+ \end{scope}%
+ \path[mdfmiddleline,mdfcorners]##1;%
+ }%
+ }{}%
+ }%
+}
\tikzset{mdfframetitlerule/.style={%
draw=none,
fill=\mdf@frametitlerulecolor,