diff options
author | Karl Berry <karl@freefriends.org> | 2012-02-06 00:42:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-02-06 00:42:14 +0000 |
commit | 4e9750715f219d797d201e091dd0917660b68178 (patch) | |
tree | 592465b481b89ecf4dd58d182ad0de1e50a58607 /Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf | |
parent | 2ef7b41a6c64ff012ea9eb520a8f8102d2017a0f (diff) |
mdframed (5feb12)
git-svn-id: svn://tug.org/texlive/trunk@25299 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf')
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf index 3c58e3dd762..ed1f87e6195 100644 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf +++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf @@ -1,14 +1,16 @@ +%% CheckSum{5147} %% Style file for mdframed for package option `framemethod=default` %% %% 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 320 2012-01-09 18:44:33Z marco $ +%% +%% +%%$Id: mdframed.dtx 344 2012-02-04 23:50:02Z marco $ \def\mdframedIIpackagename{md-frame-2} \def\mdf@frameIIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } \ProvidesFile{md-frame-2.mdf}% - [\mdf@frameIIdate@svn$Id: mdframed.dtx 320 2012-01-09 18:44:33Z marco $ % + [\mdf@frameIIdate@svn$Id: mdframed.dtx 344 2012-02-04 23:50:02Z marco $ % \mdversion: \mdframedIIpackagename] \def\mdf@ptlength@to@pscode#1{\pst@number{#1} \pst@number\psxunit div } \def\mdf@ptlength@to@pscode@length#1{\pst@number{\csname mdf@#1@length\endcsname} \pst@number\psxunit div } @@ -46,6 +48,7 @@ dimen=middle, }}{}% \newpsstyle{mdfmiddlelinestyle}{linestyle=none}% + \newpsstyle{mdfshadow}{shadow=true,shadowcolor=\mdf@shadowcolor,shadowsize=\mdf@shadowsize@length}% \ifdimgreater{\mdf@middlelinewidth@length}{\z@}% {\newpsstyle{mdfmiddlelinestyle}{% linewidth=\mdf@middlelinewidth@length,% @@ -207,6 +210,8 @@ \nodexn{(mdf@P)-(0,\mdf@outerlinewidth@length) -0.5(0,\mdf@middlelinewidth@length)}{mdf@P} }{}% + \ifbool{mdf@shadow} + {\psframe[style=mdfshadow](mdf@O)(mdf@P)}{} %Four lines \mdf@test@ltrb{\mdf@pstricksbox@fl{mdf@O}{mdf@P}}{} %three lines @@ -325,6 +330,13 @@ \nodexn{(mdf@P)-(0,\mdf@outerlinewidth@length) -0.5(0,\mdf@middlelinewidth@length)}{mdf@P} }{}% + \ifbool{mdf@shadow} + {\pscustom[style=mdfshadow,linestyle=none]{% + \psline[linejoin=2,linecap=1,](mdf@P|mdf@O)(mdf@P)(mdf@O|mdf@P)% + \psline[linejoin=2,linecap=1,linearc=\z@](mdf@O|mdf@P)(mdf@O)(mdf@P|mdf@O) + \closedshadow + } + }{} %Four or Three lines \ifboolexpr{test {\mdf@test@ltrb} or test {\mdf@test@ltr}}% {\mdf@pstricksbox@tl{(mdf@O)(mdf@O|mdf@P)(mdf@P)(mdf@P|mdf@O)}}% @@ -443,6 +455,9 @@ -0.5(\mdf@middlelinewidth@length,0)}{mdf@P} }{}% %% + %% + \ifbool{mdf@shadow} + {\psframe[style=mdfshadow](mdf@O)(mdf@P)}{} \ifboolexpr{bool {mdf@leftline} and bool {mdf@rightline}}% {\mdf@pstricksbox@tncl{(mdf@O|mdf@P)}{(mdf@P|mdf@O)}}{}% \ifboolexpr{bool {mdf@leftline} and not (bool {mdf@rightline})}% @@ -538,6 +553,14 @@ \nodexn{(mdf@O)+(0,\mdf@outerlinewidth@length) +0.5(0,\mdf@middlelinewidth@length)}{mdf@O} }{}% + %% + \ifbool{mdf@shadow} + {\pscustom[style=mdfshadow,linestyle=none]{% + \psline[linejoin=2,linecap=1,](mdf@O|mdf@P)(mdf@O)(mdf@P|mdf@O)(mdf@P)% + \psline[linejoin=2,linecap=1,linearc=\z@](mdf@O|mdf@P)(mdf@P) + \closedshadow + } + }{} %Four + Three \ifboolexpr{test {\mdf@test@ltrb} or test {\mdf@test@lrb}}% {\mdf@pstricksbox@tl{(mdf@O|mdf@P)(mdf@O)(mdf@P|mdf@O)(mdf@P)}}{}% |