diff options
author | Karl Berry <karl@freefriends.org> | 2012-09-21 22:30:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-09-21 22:30:34 +0000 |
commit | 2116b098967c4ac8c5c341b24ece64007d46d45f (patch) | |
tree | 32c33c20d5ddeda9c7a13f31a0b6500671318b81 /Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf | |
parent | 079a8c9e4012ed38f664b039daf7d3011d02a4a2 (diff) |
mdframed (21sep12)
git-svn-id: svn://tug.org/texlive/trunk@27762 c570f23f-e606-0410-a88d-b1316a301751
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.mdf | 52 |
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, |