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 | |
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')
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls | 18 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf | 61 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf | 31 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf | 29 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf | 29 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/mdframed.sty | 42 |
6 files changed, 163 insertions, 47 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls b/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls index 08bef6252b0..e72cb7c1b17 100644 --- a/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls +++ b/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls @@ -8,15 +8,17 @@ %% Public License, as described in lppl.txt in the base LaTeX distribution. %% Either version 1.0 or, at your option, any later version. -%%$Id: ltxmdf.cls 311 2012-01-08 12:17:24Z marco $ -%%$Rev: 311 $ + +%%$Id: ltxmdf.cls 337 2012-02-04 11:21:26Z marco $ +%%$Rev: 337 $ %%$Author: marco $ -%%$Date: 2012-01-08 13:17:24 +0100 (So, 08. Jan 2012) $ +%%$Date: 2012-02-04 12:21:26 +0100 (Sa, 04. Feb 2012) $ + %% Allgemeine Angaben \def\ltxmdf@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ltxmdf}[\ltxmdf@svn$Id: ltxmdf.cls 311 2012-01-08 12:17:24Z marco $ ltxmdf] +\ProvidesPackage{ltxmdf}[\ltxmdf@svn$Id: ltxmdf.cls 337 2012-02-04 11:21:26Z marco $ ltxmdf] \DeclareOption{tocdepthsec}{\def\ltxmdf@tocdepth{1}} \DeclareOption{tocdepthsub}{\def\ltxmdf@tocdepth{2}} \newif\ifltxmdf@lipsum @@ -92,7 +94,9 @@ \def\ltxmdfsetifoot$#1: #2 #3 #4-#5-#6 #7 #8${% \ifoot{#2 #3 #4-#5-#6 #7 #8} } -\ltxmdfsetifoot$Id: ltxmdf.cls 311 2012-01-08 12:17:24Z marco $ + +\ltxmdfsetifoot$Id: ltxmdf.cls 337 2012-02-04 11:21:26Z marco $ + %Tikz und Farbe @@ -168,7 +172,9 @@ \def\version#1{\def\@version{#1}} \def\date#1{\def\@date{#1}} \def\@@date$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6} -\date{\@@date$Id: ltxmdf.cls 311 2012-01-08 12:17:24Z marco $} +\date{\@@date$Id: ltxmdf.cls 337 2012-02-04 11:21:26Z marco $} +\let\mdfdateID\@@date + \long\def\introduction#1{\def\@introduction{#1}} diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf index cfe522b50a3..f9f453a0741 100644 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf +++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf @@ -1,17 +1,20 @@ +%% 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\mdframedOpackagename{md-frame-0} \def\mdf@frameOdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } \ProvidesFile{md-frame-0.mdf}% - [\mdf@frameOdate@svn$Id: mdframed.dtx 320 2012-01-09 18:44:33Z marco $% + [\mdf@frameOdate@svn$Id: mdframed.dtx 344 2012-02-04 23:50:02Z marco $% \mdversion: \mdframedOpackagename] \def\mdf@background@default{\color{\mdf@backgroundcolor}} \def\mdf@frametitlebackground@default{\color{\mdf@frametitlebackgroundcolor}} +\def\mdf@shadow@default{\color{\mdf@shadowcolor}} \def\mdf@innerlinecolor@default{\color{\mdf@innerlinecolor}} \def\mdf@middlelinecolor@default{\color{\mdf@middlelinecolor}} \def\mdf@outerlinecolor@default{\color{\mdf@outerlinecolor}} @@ -33,11 +36,24 @@ }% \def\mdf@frame@background@single{% + \ifbool{mdf@shadow}{% + \rlap{\smash{\mdf@shadow@default% + \rule[\dimexpr-\mdfboundingboxdepth + -\mdf@shadowsize@length + \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}\relax]% + {\dimexpr\mdfboundingboxtotalwidth + +\mdf@shadowsize@length + \ifbool{mdf@rightline}{+\mdf@middlelinewidth@length}{}\relax}% + {\dimexpr\mdfboundingboxtotalheight + +\mdf@shadowsize@length + \ifbool{mdf@bottomline}{+\mdf@middlelinewidth@length}{}\relax}% + }% + }}{}% \rlap{\mdf@background@default% \rule[-\mdfboundingboxdepth]% {\mdfboundingboxtotalwidth}% {\mdfboundingboxtotalheight}% - }% + }% }% \def\mdf@frame@frametitlebackground@single{% \rlap{\mdf@frametitlebackground@default% @@ -120,8 +136,8 @@ \mdf@frame@leftline@single% }{}% \mdf@frame@topline@single% - \mdf@frame@bottomline@single% \mdf@frame@background@single% + \mdf@frame@bottomline@single% \ifdefempty{\mdf@frametitle}{}{\mdf@frame@frametitlebackground@single}% \hspace*{\mdf@innerleftmargin@length}% \ifbool{mdf@rightline}{% @@ -134,6 +150,17 @@ \fi% } \def\mdf@frame@background@first{% + \ifbool{mdf@shadow}{% + \rlap{\smash{\mdf@shadow@default% + \rule[\dimexpr-\mdfboundingboxdepth + -\mdf@shadowsize@length\relax]% + {\dimexpr\mdfboundingboxtotalwidth + +\mdf@shadowsize@length + \ifbool{mdf@rightline}{+\mdf@middlelinewidth@length}{}\relax}% + {\dimexpr\mdfboundingboxtotalheight + +\mdf@shadowsize@length\relax}% + }% + }}{}% \rlap{\mdf@background@default% \rule[-\mdfboundingboxdepth]% {\mdfboundingboxtotalwidth}% @@ -227,6 +254,18 @@ \fi% } \def\mdf@frame@background@second{% + \ifbool{mdf@shadow}{% + \rlap{\smash{\mdf@shadow@default% + \rule[\dimexpr-\mdfboundingboxdepth + -\mdf@shadowsize@length + \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}\relax]% + {\dimexpr\mdfboundingboxtotalwidth + +\mdf@shadowsize@length + \ifbool{mdf@rightline}{+\mdf@middlelinewidth@length}{}\relax}% + {\dimexpr\mdfboundingboxtotalheight + +\mdf@shadowsize@length\relax}% + }% + }}{}% \rlap{\mdf@background@default% \rule[-\mdfboundingboxdepth]% {\mdfboundingboxtotalwidth}% @@ -290,9 +329,9 @@ \ifbool{mdf@leftline}{% \hspace*{\mdf@middlelinewidth@length}% \mdf@frame@leftline@second}{}% + \mdf@frame@background@second% \ifbool{mdf@bottomline}{% \mdf@frame@bottomline@second}{}% - \mdf@frame@background@second% \ifdefempty{\mdf@frametitle}{}{\mdf@frame@frametitlebackground@second}% \hspace*{\mdf@innerleftmargin@length}% \ifbool{mdf@rightline}{% @@ -311,6 +350,16 @@ }% }% \def\mdf@frame@background@middle{% + \ifbool{mdf@shadow}{% + \rlap{\smash{\mdf@shadow@default% + \rule[\dimexpr-\mdfboundingboxdepth + -\mdf@shadowsize@length\relax]% + {\dimexpr\mdfboundingboxtotalwidth + +\mdf@shadowsize@length + \ifbool{mdf@rightline}{+\mdf@middlelinewidth@length}{}\relax}% + {\dimexpr\mdfboundingboxtotalheight\relax}% + }% + }}{}% \rlap{\mdf@background@default% \rule[-\mdfboundingboxdepth]% {\mdfboundingboxtotalwidth}% 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 186a60394f8..223ce0d73ab 100644 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf +++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-1.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\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 320 2012-01-09 18:44:33Z marco $ % + [\mdf@frameIdate@svn$Id: mdframed.dtx 344 2012-02-04 23:50:02Z marco $ % \mdversion: \mdframedIpackagename] \def\mdf@tikz@settings{% \tikzset{mdfbox/.style={anchor=south west,% @@ -33,6 +35,11 @@ {\tikzset{mdfinnerline/.append style={% draw=\mdf@innerlinecolor,% line width=2\mdf@innerlinewidth@length+\mdf@middlelinewidth@length}}}{}% + \tikzset{mdfshadow/.style={drop shadow={% + shadow xshift=\mdf@shadowsize@length-2pt, + shadow yshift=-\mdf@shadowsize@length+2pt, + fill=\mdf@shadowcolor, + every shadow }}}% \mdf@tikzset@local \tikzset{mdfmiddleline/.style={}}% \ifdimgreater{\mdf@middlelinewidth@length}{\z@} @@ -112,7 +119,6 @@ \mdf@makebox@in[\mdfboundingboxwidth]{% \null% \begin{tikzpicture}[remember picture]% - \begin{scope} \pgfmathsetlengthmacro\mdf@Ax{+\mdf@innerleftmargin@length}% \pgfmathsetlengthmacro\mdf@Ay{+\mdf@innerbottommargin@length}% \pgfmathsetlengthmacro\mdf@Ox{+0pt}% @@ -147,6 +153,9 @@ }{}% \coordinate(O)at(\mdf@Ox,\mdf@Oy);% \coordinate(P)at(\mdf@Px,\mdf@Py);% + \ifbool{mdf@shadow} + {\path[mdfshadow,mdfcorners](O) rectangle (P);}{}% + \begin{scope}[use as bounding box] \mdf@test@ltrb{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)--cycle}}{}% \mdf@test@ltb{\mdf@tikzbox@tfl{(P|-O)--(O)--(O|-P)--(P)}}{}% \mdf@test@trb{\mdf@tikzbox@tfl{(O|-P)--(P)--(P|-O)--(O)}}{}% @@ -289,7 +298,6 @@ \mdf@makebox@in[\mdfboundingboxwidth]{% \null% \begin{tikzpicture}[remember picture] - \begin{scope} \pgfmathsetlengthmacro\mdf@Ax{+\mdf@innerleftmargin@length}% \pgfmathsetlengthmacro\mdf@Ay{+\mdf@splitbottomskip@length}% \pgfmathsetlengthmacro\mdf@Ox{+0pt}% @@ -314,6 +322,9 @@ }{}% \coordinate(O)at(\mdf@Ox,\mdf@Oy);% \coordinate(P)at(\mdf@Px,\mdf@Py);% + \ifbool{mdf@shadow} + {\path[mdfshadow] (O) -- (O|-P) to[mdfcorners] (P) -- (P|-O) -- (O);}{}% + \begin{scope}[use as bounding box] \ifboolexpr{test {\mdf@test@ltrb} or test {\mdf@test@ltr}}% {\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)}}% {}% @@ -396,7 +407,6 @@ \mdf@makebox@in[\mdfboundingboxwidth]{% \null% \begin{tikzpicture}[remember picture] - \begin{scope} \pgfmathsetlengthmacro\mdf@Ax{+\mdf@innerleftmargin@length}% \pgfmathsetlengthmacro\mdf@Ay{+\mdf@splitbottomskip@length}% \pgfmathsetlengthmacro\mdf@Ox{+0pt}% @@ -418,6 +428,9 @@ }{}% \coordinate(O)at(\mdf@Ox,\mdf@Oy);% \coordinate(P)at(\mdf@Px,\mdf@Py);% + \ifbool{mdf@shadow} + {\path[mdfshadow](O) rectangle (P);}{}% + \begin{scope}[use as bounding box] \ifboolexpr{bool {mdf@leftline} and bool {mdf@rightline}}% {\mdf@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}{(O)rectangle(P)}}{}% \ifboolexpr{bool {mdf@leftline} and not (bool {mdf@rightline})}% @@ -430,6 +443,7 @@ \node[mdfbox]at(\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@two};% Ausgabebox einfuegen \end{scope} %HIER KOMMT EIN WEITERES MAKRO + \mdfcreateextratikz \end{tikzpicture}% }% \mdf@makeboxalign@right% @@ -487,7 +501,6 @@ \mdf@makebox@in[\mdfboundingboxwidth]{% \null% \begin{tikzpicture}[remember picture] - \begin{scope} \pgfmathsetlengthmacro\mdf@Ax{+\mdf@innerleftmargin@length}% \pgfmathsetlengthmacro\mdf@Ay{+\mdf@innerbottommargin@length}% \pgfmathsetlengthmacro\mdf@Ox{+0pt}% @@ -517,6 +530,9 @@ }{}% \coordinate(O)at(\mdf@Ox,\mdf@Oy);% \coordinate(P)at(\mdf@Px,\mdf@Py);% + \ifbool{mdf@shadow} + {\path[mdfshadow] (O|-P) to[mdfcorners] (O) to[mdfcorners] (P|-O) -- (P) -- (O|-P);}{}% + \begin{scope}[use as bounding box] \ifboolexpr{test {\mdf@test@ltrb} or test {\mdf@test@lrb}}% {\mdf@tikzbox@tfl{(P-|O)--(O)--(O-|P)--(P)}}% {}% @@ -544,6 +560,7 @@ \node[mdfbox] at (\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@one};% Ausgabebox einfuegen \end{scope} %HIER KOMMT EIN WEITERES MAKRO + \mdfcreateextratikz \end{tikzpicture}% }% \mdf@makeboxalign@right% 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)}}{}% diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf index 3c58e3dd762..ed1f87e6195 100644 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf +++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-3.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)}}{}% diff --git a/Master/texmf-dist/tex/latex/mdframed/mdframed.sty b/Master/texmf-dist/tex/latex/mdframed/mdframed.sty index 0b54ecc3ea3..a0e56bcaf65 100644 --- a/Master/texmf-dist/tex/latex/mdframed/mdframed.sty +++ b/Master/texmf-dist/tex/latex/mdframed/mdframed.sty @@ -48,12 +48,13 @@ %% >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> %% ================================================== %% -\def\mdversion{v1.2a} +%% CheckSum{5147} +\def\mdversion{v1.3a} \def\mdframedpackagename{mdframed} \def\mdf@maindate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{mdframed}% - [\mdf@maindate@svn$Id: mdframed.dtx 320 2012-01-09 18:44:33Z marco $% + [\mdf@maindate@svn$Id: mdframed.dtx 344 2012-02-04 23:50:02Z marco $% \mdversion: \mdframedpackagename] \newcommand*\mdf@PackageWarning[1]{\PackageWarning{\mdframedpackagename}{#1}} \newcommand*\mdf@PackageInfo[1]{\PackageInfo{\mdframedpackagename}{#1}} @@ -206,6 +207,7 @@ {frametitlerulewidth==.2pt}, {frametitleleftmargin==10pt},% {frametitlerightmargin==10pt},% + {shadowsize==8pt},% } \mdf@dolist{\mdf@do@stringoption}{% {frametitle=={}},% @@ -220,6 +222,7 @@ {psroundlinecolor==\mdf@backgroundcolor},% {frametitlerulecolor==\mdf@linecolor}, {frametitlebackgroundcolor==\mdf@backgroundcolor},% + {shadowcolor==black!50},% {settings=={}},% {frametitlesettings=={}},% {font=={}},% @@ -248,6 +251,7 @@ {footnoteinside==true},% {usetwoside==true},% {repeatframetitle==false},%Noch nicht richtig implementiert + {shadow==false},% } \mdf@dolist{\mdf@do@alignoption}{% {left==\mdf@leftmargin@length==\z@},% @@ -377,6 +381,7 @@ \newrobustcmd\mdfcreateextratikz{} + \def\mdf@lrbox#1{% %%patch to work with amsthm \mdf@patchamsthm @@ -384,27 +389,20 @@ \edef\mdf@restoreparams{% \parindent=\the\parindent \parskip=\the\parskip} \setbox#1\vbox\bgroup - \begingroup + \color@begingroup% \mdf@horizontalmargin@equation% - \color@setgroup% - \hsize=\mdf@horizontalspaceofbox% \columnwidth=\hsize% \textwidth=\hsize% - \let\if@nobreak\iffalse - \let\if@noskipsec\iffalse - \let\par\@@par - \let\-\@dischyph - \let\'\@acci\let\`\@accii\let\=\@acciii - \parindent\z@ \parskip\z@skip - \linewidth\hsize - \@totalleftmargin\z@ - \leftskip\z@skip \rightskip\z@skip - \parfillskip\@flushglue \lineskip\normallineskip% - \baselineskip\normalbaselineskip% - \everypar{\mdf@restoreparams}\ignorespaces% + \@parboxrestore% + \mdf@restoreparams% + %SETZE + \@afterindentfalse% + \@afterheading% + %STREICHE + %\@doendpe } -\def\endmdf@lrbox{\endgroup\unskip\color@endgroup\egroup} +\def\endmdf@lrbox{\color@endgroup\egroup} \newrobustcmd*\mdf@ignorevbadness{% \edef\mdf@currentvbadness{\the\vbadness}% @@ -428,9 +426,9 @@ \itemindent\z@% \let\@itemlabel\@empty% \def\makelabel##1{##1}% - \item\leavevmode\hrule \@height\z@ \@width\linewidth\relax% +%% \item\leavevmode\hrule \@height\z@ \@width\linewidth\relax% %% \item\mbox{}\relax% second version -%% \item\relax% first Version + \item\relax% first Version } \let\endmdf@trivlist\endtrivlist \patchcmd\endmdf@trivlist\@endparenv\mdf@endparenv{}{} @@ -779,8 +777,8 @@ \iftoggle{md:checktwoside}{\mdf@zref@label\if@mdf@pageodd}{}% } \newrobustcmd*\mdf@freepagevspace{% - \penalty\@M \vskip 2\baselineskip \vskip\height - \penalty9999 \vskip -2\baselineskip \vskip-\height + \penalty\@M \vskip 2\baselineskip + \penalty9999 \vskip -2\baselineskip \penalty9999 \ifdimequal{\pagegoal}{\maxdimen}% {\mdf@freevspace@length\vsize}% |