diff options
author | Karl Berry <karl@freefriends.org> | 2012-01-08 23:48:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-01-08 23:48:38 +0000 |
commit | 94249602eec639469e2a964a821eaf4e04ccf322 (patch) | |
tree | dc88b7c2150463d5c947d38fb2832d86f301b92f /Master/texmf-dist/tex | |
parent | 8ddb27d0f1bb31de2e06ebf7871975b19118d1fe (diff) |
mdframed (8jan12)
git-svn-id: svn://tug.org/texlive/trunk@25052 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls | 21 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf | 295 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf | 463 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf | 509 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf | 509 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/mdframed.sty | 877 |
6 files changed, 12 insertions, 2662 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls b/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls index 63f4474a06f..08bef6252b0 100644 --- a/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls +++ b/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls @@ -8,15 +8,15 @@ %% 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 269 2011-12-09 12:14:02Z marco $ -%%$Rev: 269 $ +%%$Id: ltxmdf.cls 311 2012-01-08 12:17:24Z marco $ +%%$Rev: 311 $ %%$Author: marco $ -%%$Date: 2011-12-09 13:14:02 +0100 (Fr, 09. Dez 2011) $ +%%$Date: 2012-01-08 13:17:24 +0100 (So, 08. Jan 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 269 2011-12-09 12:14:02Z marco $ ltxmdf] +\ProvidesPackage{ltxmdf}[\ltxmdf@svn$Id: ltxmdf.cls 311 2012-01-08 12:17:24Z marco $ ltxmdf] \DeclareOption{tocdepthsec}{\def\ltxmdf@tocdepth{1}} \DeclareOption{tocdepthsub}{\def\ltxmdf@tocdepth{2}} \newif\ifltxmdf@lipsum @@ -92,7 +92,7 @@ \def\ltxmdfsetifoot$#1: #2 #3 #4-#5-#6 #7 #8${% \ifoot{#2 #3 #4-#5-#6 #7 #8} } -\ltxmdfsetifoot$Id: ltxmdf.cls 269 2011-12-09 12:14:02Z marco $ +\ltxmdfsetifoot$Id: ltxmdf.cls 311 2012-01-08 12:17:24Z marco $ %Tikz und Farbe @@ -129,7 +129,9 @@ ExampleText,titregris,draw,gray,thick,fill,white,shading,exersicetitle, exersicebackground,color,green,black,exercise,exercisepoints, text,rectangle,rounded,corners,right,minimum,height,xshift,at, - exercisestyle,settings,frametitlefont},% + exercisestyle,settings,frametitlefont, + frametitlerule,frametitlebelowskip,frametitleaboveskip, + frametitlebackgroundcolor,frametitlerulecolor},% moretexcs={newmdtheoremenv,newmdenv,theoremstyle,mdfsetup,@length,% md@putbox@single,@tempboxa,mdf@,% mdf@linewidth,mdf@leftmargin@length,interruptlength,% @@ -140,7 +142,8 @@ mdf@innerrightmargin@length,mdfdefinestyle,mdfapptodefinestyle,defcounter, tikzstyle,pgfdeclarehorizontalshading,theexercise,mdf@@exercisepoints, define@key,renewrobustcmd,mdfcreateextratikz,node,ifdefempty, - mdf@frametitlefont,dimexpr,mdframedtitleenv,ifstrempty},% + mdf@frametitlefont,dimexpr,mdframedtitleenv,ifstrempty, + mdtheorem,surroundwithmdframed},% } @@ -165,7 +168,7 @@ \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 269 2011-12-09 12:14:02Z marco $} +\date{\@@date$Id: ltxmdf.cls 311 2012-01-08 12:17:24Z marco $} \long\def\introduction#1{\def\@introduction{#1}} @@ -332,7 +335,7 @@ %Anweisung zur Darstellung \newcommand*\Opt[1]{{\MacroFont #1}\xspace} \newcommand*\Env[1]{{\MacroFont #1}\xspace} -\newcommand*\Cmd[1]{{\MacroFont \string #1}\xspace} +\newcommand*\Cmd[1]{{\MacroFont\textbackslash #1}\xspace} \newcommand*\Pack[1]{\texttt{#1}\xspace} \newcommand*\ExplCmd[2][]{% diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf deleted file mode 100644 index efbe6ed295f..00000000000 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf +++ /dev/null @@ -1,295 +0,0 @@ -%% 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 273 2011-12-10 09:21:09Z marco $ -\def\mdframedOpackagename{md-frame-0} -\def\md@frameOdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } -\ProvidesFile{md-frame-0.mdf}% - [\md@frameOdate@svn$Id: mdframed.dtx 273 2011-12-10 09:21:09Z marco $% - \mdversion: \mdframedOpackagename] - -\def\mdf@background@default{\color{\mdf@backgroundcolor}} -\def\mdf@linecolor@default{\color{\mdf@middlelinecolor}} -\def\md@frame@background@single{% - \rlap{\mdf@background@default% - \rule[-\mdfboundingboxdepth]% - {\mdfboundingboxtotalwidth}% - {\mdfboundingboxtotalheight}% - }% -}% -\def\md@frame@topandbottomline@single{% - \rlap{\mdf@linecolor@default% - \ifbool{mdf@topline}{% - \rule[\dimexpr\mdfboundingboxheight-\mdfboundingboxdepth% - +\mdf@innerbottommargin@length+\mdf@innertopmargin@length\relax]% - {\mdfboundingboxtotalwidth}% - {\mdf@middlelinewidth@length}}% - {}% - }% - \rlap{\mdf@linecolor@default% - \ifbool{mdf@bottomline}{% - \rule[\dimexpr-\mdfboundingboxdepth-\mdf@middlelinewidth@length\relax]% - {\mdfboundingboxtotalwidth}% - {\mdf@middlelinewidth@length}}% - {}% - }% -} -\def\md@frame@leftline@single{% - \llap{\mdf@linecolor@default% - \rule[\dimexpr-\mdfboundingboxdepth% - \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}\relax]% - {\mdf@middlelinewidth@length}% - {\dimexpr\mdfboundingboxtotalheight% - +\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}% - +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}% - }% -}% -\def\md@frame@rightline@single{% - \rlap{\mdf@linecolor@default% - \hspace*{\mdfboundingboxwidth}% - \hspace*{\mdf@innerrightmargin@length}% - \rule[\dimexpr-\mdfboundingboxdepth% - \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}\relax]% - {\mdf@middlelinewidth@length}% - {\dimexpr\mdfboundingboxtotalheight% - +\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}% - +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}% - }% -}% -\def\md@putbox@single{%%%%% Ausgabe der ungesplitteten Gesamtbox - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \setlength{\mdfboundingboxwidth}% - {\wd\@tempboxa}% - \setlength{\mdfboundingboxtotalwidth}% - {\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length% - +\mdf@innerrightmargin@length\relax}% - \setlength{\mdfboundingboxheight}% - {\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \setlength{\mdfboundingboxdepth}% - {\dimexpr\dp\@tempboxa+\mdf@innerbottommargin@length\relax}% - \setlength{\mdfboundingboxtotalheight}% - {\dimexpr\mdfboundingboxheight+\mdf@innertopmargin@length% - +\mdf@innerbottommargin@length\relax}% - \noindent% - \setlength{\@tempdima}{\dimexpr\mdfboundingboxtotalwidth% - +\ifbool{mdf@leftline}% - {\mdf@middlelinewidth@length}{\z@}% - +\ifbool{mdf@rightline}% - {\mdf@middlelinewidth@length}{\z@}\relax}% - \mdf@makebox@in[\@tempdima]{% - \null% - \ifbool{mdf@leftline}{% - \hspace*{\mdf@middlelinewidth@length}% - \md@frame@leftline@single% - }{}% - \md@frame@topandbottomline@single% - \md@frame@background@single% - \hspace*{\mdf@innerleftmargin@length}% - \ifbool{mdf@rightline}{% - \md@frame@rightline@single% - }{}% - {\box\@tempboxa}% - }% - \mdf@makeboxalign@right% - }% - \fi% -} -\def\md@frame@background@first{% - \rlap{\mdf@background@default% - \rule[-\mdfboundingboxdepth]% - {\mdfboundingboxtotalwidth}% - {\mdfboundingboxtotalheight}% - }% -}% -\def\md@frame@leftline@first{% - \llap{\mdf@linecolor@default% - \rule[-\mdfboundingboxdepth]% - {\mdf@middlelinewidth@length}% - {\dimexpr\mdfboundingboxtotalheight% - +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}% - }% -}% -\def\md@frame@topline@first{% - \rlap{\mdf@linecolor@default% - \rule[\dimexpr\mdfboundingboxheight-\mdfboundingboxdepth+% - \mdf@splitbottomskip@length+\mdf@innertopmargin@length\relax]% - {\mdfboundingboxtotalwidth}% - {\mdf@middlelinewidth@length}% - }% -} -\def\md@frame@rightline@first{% - \rlap{\mdf@linecolor@default\hspace*{\mdfboundingboxwidth}% - \hspace*{\mdf@innerrightmargin@length}% - \rule[-\mdfboundingboxdepth]% - {\mdf@middlelinewidth@length}% - {\dimexpr\mdfboundingboxtotalheight% - +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}% - }% -}% -\def\md@putbox@first{%%%% Ausgabe der Teilbox 1 - \ifvoid\@tempboxa - \else% - \mdf@makebox@out[\linewidth]{% - \mdf@makeboxalign@left% - \setlength{\mdfboundingboxwidth}{\wd\tw@}% - \setlength{\mdfboundingboxtotalwidth}% - {\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length% - +\mdf@innerrightmargin@length\relax}% - \setlength{\mdfboundingboxheight}{\dimexpr\ht\tw@+\dp\tw@\relax}% - \setlength{\mdfboundingboxdepth}% - {\dimexpr\dp\tw@+\mdf@splitbottomskip@length\relax}% - \setlength{\mdfboundingboxtotalheight}% - {\dimexpr\mdfboundingboxheight+\mdf@innertopmargin@length% - +\mdf@splitbottomskip@length\relax}% - \setlength{\@tempdima}% - {\dimexpr\mdfboundingboxtotalwidth% - +\ifbool{mdf@leftline}{\mdf@middlelinewidth@length}{\z@}% - +\ifbool{mdf@rightline}{\mdf@middlelinewidth@length}{\z@}% - \relax}% - \mdf@makebox@in[\@tempdima]{% - \null% - \ifbool{mdf@leftline}{% - \hspace*{\mdf@middlelinewidth@length}% - \md@frame@leftline@first}{}% - \ifbool{mdf@topline}{% - \md@frame@topline@first}{}% - \md@frame@background@first% - \hspace*{\mdf@innerleftmargin@length}% - \ifbool{mdf@rightline}{% - \md@frame@rightline@first}{}% - {\box\tw@}% - }% - \mdf@makeboxalign@right% - }% - \fi% -} -\def\md@frame@background@second{% - \rlap{\mdf@background@default% - \rule[-\mdfboundingboxdepth]% - {\mdfboundingboxtotalwidth}% - {\mdfboundingboxtotalheight}% - }% -}% -\def\md@frame@leftline@second{% - \llap{\mdf@linecolor@default% - \rule[\dimexpr-\mdfboundingboxdepth% - -\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}\relax]% - {\mdf@middlelinewidth@length}% - {\dimexpr\mdfboundingboxtotalheight% - +\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}\relax}% - }% -}% -\def\md@frame@bottomline@second{% - \rlap{\mdf@linecolor@default% - \rule[\dimexpr-\mdfboundingboxdepth-\mdf@middlelinewidth@length\relax]% - {\mdfboundingboxtotalwidth}% - {\mdf@middlelinewidth@length}% - }% -}% -\def\md@frame@rightline@second{% - \rlap{\mdf@linecolor@default\hspace*{\mdfboundingboxwidth}% - \hspace*{\mdf@innerrightmargin@length}% - \rule[\dimexpr-\mdfboundingboxdepth% - -\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}\relax]% - {\mdf@middlelinewidth@length}% - {\dimexpr\mdfboundingboxtotalheight% - +\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}\relax}% - }% -}% -\def\md@putbox@second{% - \ifvoid\@tempboxa% - \else - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \setlength{\mdfboundingboxwidth}{\wd\@tempboxa}% - \setlength{\mdfboundingboxtotalwidth}% - {\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length% - +\mdf@innerrightmargin@length\relax}% - \setlength{\mdfboundingboxheight}{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \setlength{\mdfboundingboxdepth}% - {\dimexpr\dp\@tempboxa+\mdf@innerbottommargin@length\relax}% - \setlength{\mdfboundingboxtotalheight}% - {\dimexpr\mdfboundingboxheight+\mdf@innerbottommargin@length\relax}% - \setlength{\@tempdima}{\dimexpr\mdfboundingboxtotalwidth% - +\ifbool{mdf@leftline}{\mdf@middlelinewidth@length}{\z@}% - +\ifbool{mdf@rightline}{\mdf@middlelinewidth@length}{\z@}% - \relax}% - \mdf@makebox@in[\@tempdima]{% - \null% - \ifbool{mdf@leftline}{% - \hspace*{\mdf@middlelinewidth@length}% - \md@frame@leftline@second}{}% - \ifbool{mdf@bottomline}{% - \md@frame@bottomline@second}{}% - \md@frame@background@second% - \hspace*{\mdf@innerleftmargin@length}% - \ifbool{mdf@rightline}{% - \md@frame@rightline@second}{}% - {\box\@tempboxa}% - }% - \mdf@makeboxalign@right% - }% - \fi% -}% -\def\md@frame@background@middle{% - \rlap{\mdf@background@default% - \rule[-\mdfboundingboxdepth]% - {\mdfboundingboxtotalwidth}% - {\mdfboundingboxtotalheight}% - }% -}% -\def\md@frame@leftline@middle{% - \llap{\mdf@linecolor@default% - \rule[-\mdfboundingboxdepth]% - {\mdf@middlelinewidth@length}% - {\mdfboundingboxtotalheight}% - }% -}% -\def\md@frame@rightline@middle{% - \rlap{\mdf@linecolor@default\hspace*{\mdfboundingboxwidth}% - \hspace*{\mdf@innerrightmargin@length}% - \rule[-\mdfboundingboxdepth]% - {\mdf@middlelinewidth@length}% - {\mdfboundingboxtotalheight}% - }% -}% -\def\md@putbox@middle{% - \ifvoid\@tempboxa% - \else - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \setlength{\mdfboundingboxwidth}{\wd\tw@}% - \setlength{\mdfboundingboxtotalwidth}% - {\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length% - +\mdf@innerrightmargin@length\relax}% - \setlength{\mdfboundingboxheight}{\dimexpr\ht\tw@+\dp\tw@\relax}% - \setlength{\mdfboundingboxdepth}% - {\dimexpr\dp\tw@+\mdf@splitbottomskip@length\relax}% - \setlength{\mdfboundingboxtotalheight}% - {\dimexpr\mdfboundingboxheight+\mdf@splitbottomskip@length\relax}% - \setlength{\@tempdima}{\dimexpr\mdfboundingboxtotalwidth% - +\ifbool{mdf@leftline}{\mdf@middlelinewidth@length}{\z@}% - +\ifbool{mdf@rightline}{\mdf@middlelinewidth@length}{\z@}% - \relax}% - \mdf@makebox@in[\@tempdima]{% - \null% - \ifbool{mdf@leftline}{% - \hspace*{\mdf@middlelinewidth@length}% - \md@frame@leftline@middle}{}% - \md@frame@background@middle% - \hspace*{\mdf@innerleftmargin@length}% - \ifbool{mdf@rightline}{% - \md@frame@rightline@middle}{}% - {\box\tw@}% - }% - \mdf@makeboxalign@right% - } - \fi% -} - \endinput diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf deleted file mode 100644 index 746cd25015b..00000000000 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf +++ /dev/null @@ -1,463 +0,0 @@ -%% 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 273 2011-12-10 09:21:09Z marco $ -\def\mdframedIpackagename{md-frame-1} -\def\md@frameIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } -\ProvidesFile{md-frame-1.mdf}% - [\md@frameIdate@svn$Id: mdframed.dtx 273 2011-12-10 09:21:09Z marco $ % - \mdversion: \mdframedIpackagename] -%%%% _____t_____ -%%%% | | -%%%% | | -%%%% | | -%%%% l| |r -%%%% | | -%%%% | | -%%%% |___________| -%%%% b -%%Zusammenhaenge abfragen: -\newrobustcmd*\md@test@ltrb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@ltr{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@ltb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@trb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lrb{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lb{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@rb{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@tr{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lt{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lr{% - \ifboolexpr{not (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@tb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@l{% - \ifboolexpr{ not (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@r{% - \ifboolexpr{ not (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@t{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@b{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@noline{% - \ifboolexpr{ not (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\def\md@tikz@settings{% - \tikzset{mdfbox/.style={anchor=south west,% - inner sep=0pt,% - outer sep=0pt,% - \mdf@fontcolor,}}% anchor der Ausgabebox ist unten links - \tikzset{mdfcorners/.style={rounded corners=\mdf@roundcorner@length}}% - \tikzset{mdfbackground/.style={fill=\mdf@backgroundcolor,% - draw=\mdf@backgroundcolor}}% - \tikzset{mdfouterline/.style={}}% - \ifdimgreater{\mdf@outerlinewidth@length}{\z@} - {\tikzset{mdfouterline/.append style={% - draw=\mdf@outerlinecolor,% - line width=2\mdf@outerlinewidth@length+\mdf@middlelinewidth@length}}}{}% - \tikzset{mdfinnerline/.style={}}% - \ifdimgreater{\mdf@innerlinewidth@length}{\z@} - {\tikzset{mdfinnerline/.append style={% - draw=\mdf@innerlinecolor,% - line width=2\mdf@innerlinewidth@length+\mdf@middlelinewidth@length}}}{}% - \mdf@tikzset@local - \tikzset{mdfmiddleline/.style={}}% - \ifdimgreater{\mdf@middlelinewidth@length}{\z@} - {\tikzset{mdfmiddleline/.append style={% - preaction={draw=\mdf@middlelinecolor,% - line width=\mdf@middlelinewidth@length},% - line width=\mdf@middlelinewidth@length,% - tikzsetting}}% - }{}% -}% -\newrobustcmd*\md@tikzbox@tfl[1]{%three or four borders - \clip(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);% - \begin{scope}[mdfcorners]% - \clip[preaction=mdfouterline]% - [postaction=mdfbackground]% - [postaction=mdfinnerline]#1;% - \end{scope}% - \path[mdfmiddleline,mdfcorners]#1;}% -\newrobustcmd*\md@tikzbox@otl[2]{%one or two borders - \clip(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;}% -\def\md@putbox@single{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \md@tikz@settings% - \setlength\mdfboundingboxwidth{\wd\@tempboxa}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \ifbool{mdf@leftline}{% - \advance\mdfboundingboxwidth by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}% - \ifbool{mdf@rightline}{% - \advance\mdfboundingboxwidth by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}% - \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax% - \advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax% - \ifbool{mdf@topline}{% - \advance\mdfboundingboxheight by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@outerlinewidth@length\relax}{}% - \ifbool{mdf@bottomline}{% - \advance\mdfboundingboxheight by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@outerlinewidth@length\relax}{}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \begin{tikzpicture}[remember picture]% - \begin{scope} - \pgfmathsetlengthmacro\md@Ax{+\mdf@innerleftmargin@length}% - \pgfmathsetlengthmacro\md@Ay{+\mdf@innerbottommargin@length}% - \pgfmathsetlengthmacro\md@Ox{+0pt}% - \pgfmathsetlengthmacro\md@Oy{+0pt}% - \pgfmathsetlengthmacro\md@Px{+\mdfboundingboxwidth}% - \pgfmathsetlengthmacro\md@Py{+\mdfboundingboxheight}% - \ifbool{mdf@leftline}% - {% - \pgfmathsetlengthmacro\md@Ax% - {\md@Ax+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\md@Ox% - {\md@Ox+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@rightline}% - {% - \pgfmathsetlengthmacro\md@Px% - {\md@Px-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@bottomline}% - {% - \pgfmathsetlengthmacro\md@Ay% - {\md@Ay+\mdf@outerlinewidth@length+\mdf@middlelinewidth@length% - +\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\md@Oy% - {\md@Oy+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@topline}% - {% - \pgfmathsetlengthmacro\md@Py% - {\md@Py-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% - \coordinate(O)at(\md@Ox,\md@Oy);% - \coordinate(P)at(\md@Px,\md@Py);% - \md@test@ltrb{\md@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)--cycle}}{}% - \md@test@ltb{\md@tikzbox@tfl{(P|-O)--(O)--(O|-P)--(P)}}{}% - \md@test@trb{\md@tikzbox@tfl{(O|-P)--(P)--(P|-O)--(O)}}{}% - \md@test@ltr{\md@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)}}{}% - \md@test@lrb{\md@tikzbox@tfl{(P-|O)--(O)--(O-|P)--(P)}}{}% - \md@test@lb{\md@tikzbox@otl{(P|-O)--(O)--(O|-P)}% - {(P)--(P|-O)[mdfcorners]--(O)--(O|-P)}% - }{}% - \md@test@rb{\md@tikzbox@otl{(P)--(P|-O)--(O)}% - {(O|-P)--(P)[mdfcorners]--(P|-O)--(O)}% - }{}% - \md@test@tr{\md@tikzbox@otl{(O-|P)--(P)--(P-|O)}% - {(O)--(O|-P)[mdfcorners]--(P)--(P|-O)}% - }{}% - \md@test@lt{\md@tikzbox@otl{(O)--(O|-P)--(P)}% - {(P|-O)--(O)[mdfcorners]--(O|-P)--(P)}% - }{}% - \md@test@lr{\md@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}% - {(O)rectangle(P)}% - }{}% - \md@test@tb{\md@tikzbox@otl{(O)--(O-|P)(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \md@test@l{\md@tikzbox@otl{(O)--(O|-P)}% - {(O)rectangle(P)}% - }{}% - \md@test@r{\md@tikzbox@otl{(O-|P)--(P)}% - {(O)rectangle(P)}% - }{}% - \md@test@t{\md@tikzbox@otl{(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \md@test@b{\md@tikzbox@otl{(O)--(O-|P)}% - {(O)rectangle(P)}% - }{}% - \md@test@noline{\path[mdfbackground,mdfcorners](O)rectangle(P);}{}% - \node[mdfbox]at(\md@Ax,\md@Ay){\box\@tempboxa};% Ausgabebox einfuegen - \end{scope} - %HIER KOMMT EIN WEITERES MAKRO - \mdfcreateextratikz - \end{tikzpicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% -\def\md@putbox@first{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \md@tikz@settings% - \setlength\mdfboundingboxwidth{\wd\tw@}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \ifbool{mdf@leftline}{% - \advance\mdfboundingboxwidth by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}% - \ifbool{mdf@rightline}{% - \advance\mdfboundingboxwidth by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}% - \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}% - \advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax% - \advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax% - \ifbool{mdf@topline}{% - \advance\mdfboundingboxheight by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@outerlinewidth@length\relax}{}% - %\ifdimequal{\pagegoal}{\maxdimen}{\enlargethispage{\baselineskip}}{}% ??? - \ifdimgreater{\pagegoal-\maxdimen}{0pt}{}{\enlargethispage{\baselineskip}}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \begin{tikzpicture}[remember picture] - \begin{scope} - \pgfmathsetlengthmacro\md@Ax{+\mdf@innerleftmargin@length}% - \pgfmathsetlengthmacro\md@Ay{+\mdf@splitbottomskip@length}% - \pgfmathsetlengthmacro\md@Ox{+0pt}% - \pgfmathsetlengthmacro\md@Oy{+0pt}% - \pgfmathsetlengthmacro\md@Px{+\mdfboundingboxwidth}% - \pgfmathsetlengthmacro\md@Py{+\mdfboundingboxheight}% - \ifbool{mdf@leftline} - {% - \pgfmathsetlengthmacro\md@Ax% - {\md@Ax+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\md@Ox% - {\md@Ox+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@rightline}{% - \pgfmathsetlengthmacro\md@Px% - {\md@Px-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@topline}{% - \pgfmathsetlengthmacro\md@Py% - {\md@Py-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% - \coordinate(O)at(\md@Ox,\md@Oy);% - \coordinate(P)at(\md@Px,\md@Py);% - \ifboolexpr{test {\md@test@ltrb} or test {\md@test@ltr}}% - {\md@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)}}% - {}% - \ifboolexpr{test {\md@test@ltb} or test {\md@test@lt}}% - {\md@tikzbox@otl{(O)--(O|-P)--(P)}{(P|-O)--(O)[mdfcorners]--(O|-P)--(P)}}% - {}% - \ifboolexpr{test {\md@test@trb} or test {\md@test@tr}}% - {\md@tikzbox@otl{(O-|P)--(P)--(P-|O)}{(O)--(O|-P)[mdfcorners]--(P)--(P|-O)}}% - {}% - \ifboolexpr{test {\md@test@lrb} or test {\md@test@lr}}% - {\md@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\md@test@tb} or test {\md@test@t}}% - {\md@tikzbox@otl{(O|-P)--(P)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\md@test@lb} or test {\md@test@l}}% - {\md@tikzbox@otl{(O)--(O|-P)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\md@test@rb} or test {\md@test@r}}% - {\md@tikzbox@otl{(O-|P)--(P)}{(O)rectangle(P)}}% - {}% - \md@test@b{\path[mdfbackground](O)rectangle(P)}{}% - \md@test@noline{\path[mdfbackground,mdfcorners](O)--(O|-P)--(P)--(P|-O);}{}% - \node[mdfbox]at(\md@Ax,\md@Ay){\box\tw@};% Ausgabebox einfuegen - \end{scope} - %HIER KOMMT EIN WEITERES MAKRO - \mdfcreateextratikz% - \end{tikzpicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% -\def\md@putbox@middle{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \md@tikz@settings% - \setlength\mdfboundingboxwidth{\wd\tw@}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \ifbool{mdf@leftline}{% - \advance\mdfboundingboxwidth by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}% - \ifbool{mdf@rightline}{% - \advance\mdfboundingboxwidth by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}% - \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}% - \advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \begin{tikzpicture}[remember picture] - \begin{scope} - \pgfmathsetlengthmacro\md@Ax{+\mdf@innerleftmargin@length}% - \pgfmathsetlengthmacro\md@Ay{+\mdf@splitbottomskip@length}% - \pgfmathsetlengthmacro\md@Ox{+0pt}% - \pgfmathsetlengthmacro\md@Oy{+0pt}% - \pgfmathsetlengthmacro\md@Px{+\mdfboundingboxwidth}% - \pgfmathsetlengthmacro\md@Py{+\mdfboundingboxheight}% - \ifbool{mdf@leftline}% - {% - \pgfmathsetlengthmacro\md@Ax% - {\md@Ax+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\md@Ox% - {\md@Ox+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@rightline}% - {% - \pgfmathsetlengthmacro\md@Px% - {\md@Px-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% - \coordinate(O)at(\md@Ox,\md@Oy);% - \coordinate(P)at(\md@Px,\md@Py);% - \ifboolexpr{bool {mdf@leftline} and bool {mdf@rightline}}% - {\md@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}{(O)rectangle(P)}}{}% - \ifboolexpr{bool {mdf@leftline} and not (bool {mdf@rightline})}% - {\md@tikzbox@otl{(O)--(O|-P)}{(O)rectangle(P)}}{}% - \ifboolexpr{not (bool {mdf@leftline}) and bool {mdf@rightline}}% - {\md@tikzbox@otl{(P)--(P|-O)}{(O)rectangle(P)}}{}% - \ifboolexpr{not (bool {mdf@leftline}) and not (bool {mdf@rightline})}% - {\path[mdfbackground](O)rectangle(P)}{}% - \node[mdfbox]at(\md@Ax,\md@Ay){\box\tw@};% Ausgabebox einfuegen - \end{scope} - %HIER KOMMT EIN WEITERES MAKRO - \end{tikzpicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% -\def\md@putbox@second{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \md@tikz@settings% - \setlength\mdfboundingboxwidth{\wd\@tempboxa}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \ifbool{mdf@leftline}{% - \advance\mdfboundingboxwidth by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}% - \ifbool{mdf@rightline}{% - \advance\mdfboundingboxwidth by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}% - \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax% - \ifbool{mdf@bottomline}{% - \advance\mdfboundingboxheight by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@outerlinewidth@length\relax}{}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \begin{tikzpicture}[remember picture] - \begin{scope} - \pgfmathsetlengthmacro\md@Ax{+\mdf@innerleftmargin@length}% - \pgfmathsetlengthmacro\md@Ay{+\mdf@innerbottommargin@length}% - \pgfmathsetlengthmacro\md@Ox{+0pt}% - \pgfmathsetlengthmacro\md@Oy{+0pt}% - \pgfmathsetlengthmacro\md@Px{+\mdfboundingboxwidth}% - \pgfmathsetlengthmacro\md@Py{+\mdfboundingboxheight}% - \ifbool{mdf@leftline}% - {% - \pgfmathsetlengthmacro\md@Ax% - {\md@Ax+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\md@Ox% - {\md@Ox+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@rightline}% - {% - \pgfmathsetlengthmacro\md@Px% - {\md@Px-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@bottomline}% - {% - \pgfmathsetlengthmacro\md@Ay% - {\md@Ay+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\md@Oy% - {\md@Oy+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \coordinate(O)at(\md@Ox,\md@Oy);% - \coordinate(P)at(\md@Px,\md@Py);% - \ifboolexpr{test {\md@test@ltrb} or test {\md@test@lrb}}% - {\md@tikzbox@tfl{(P-|O)--(O)--(O-|P)--(P)}}% - {}% - \ifboolexpr{test {\md@test@ltb} or test {\md@test@lb}}% - {\md@tikzbox@otl{(P-|O)--(O)--(O-|P)}{(P)--(P|-O)[mdfcorners]--(O)--(O|-P)}}% - {}% - \ifboolexpr{test {\md@test@trb} or test {\md@test@rb}}% - {\md@tikzbox@otl{(P)--(P|-O)--(O)}{(O|-P)--(P)[mdfcorners]--(P|-O)--(O)}}% - {}% - \ifboolexpr{test {\md@test@ltr} or test {\md@test@lr}}% - {\md@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\md@test@tb} or test {\md@test@b}}% - {\md@tikzbox@otl{(O)--(O-|P)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\md@test@lt} or test {\md@test@l}}% - {\md@tikzbox@otl{(O)--(O|-P)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\md@test@tr} or test {\md@test@r}}% - {\md@tikzbox@otl{(O-|P)--(P)}{(O)rectangle(P)}}% - {}% - \md@test@t{\path[mdfbackground](O)rectangle(P)}{}% - \md@test@noline{\path[mdfbackground,mdfcorners](O|-P)--(O)--(O-|P)--(P)}{}% - \node[mdfbox] at (\md@Ax,\md@Ay){\box\@tempboxa};% Ausgabebox einfuegen - \end{scope} - %HIER KOMMT EIN WEITERES MAKRO - \end{tikzpicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% - \endinput diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf deleted file mode 100644 index 288bafd84a4..00000000000 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf +++ /dev/null @@ -1,509 +0,0 @@ -%% 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 273 2011-12-10 09:21:09Z marco $ -\def\mdframedIIpackagename{md-frame-2} -\def\md@frameIIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } -\ProvidesFile{md-frame-2.mdf}% - [\md@frameIIdate@svn$Id: mdframed.dtx 273 2011-12-10 09:21:09Z marco $ % - \mdversion: \mdframedIIpackagename] -\def\md@ptlength@to@pscode#1{\pst@number{#1} \pst@number\psxunit div } -\let\ptTps\md@ptlength@to@pscode\relax -%%%% _____t_____ -%%%% | | -%%%% | | -%%%% | | -%%%% l| |r -%%%% | | -%%%% | | -%%%% |___________| -%%%% b -%%Zusammenhaenge abfragen: -\newrobustcmd*\md@test@ltrb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@ltr{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@ltb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@trb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lrb{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lb{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@rb{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@tr{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lt{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@single{% - \ifboolexpr{ not (test {\md@test@ltrb} or test {\md@test@ltr} or - test {\md@test@ltb} or test {\md@test@trb} or - test {\md@test@lrb} or test {\md@test@lb} or - test {\md@test@rb} or test {\md@test@tr} or - test {\md@test@lt} ) }} - -\newpsstyle{mdfbackgroundstyle}{linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid,% - linewidth=\mdf@middlelinewidth@length,dimen=outer,% -}% -\newpsstyle{mdflinestyle}{linewidth=\mdf@middlelinewidth@length,% - linecolor=\mdf@linecolor,% - fillstyle=none,dimen=middle,}% -\def\md@putbox@single{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% - \setlength\mdfboundingboxwidth{\wd\@tempboxa}% - \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax% - \advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax% - \ifbool{mdf@topline}% - {\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}% - \ifbool{mdf@bottomline}% - {\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \psset{linearc=\mdf@roundcorner@length,cornersize=absolut,}% - \expandafter\psset\expandafter{\mdf@psset@local}% - \psset{unit=1truecm}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight) - \md@test@ltrb{% - \psframe[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul % - \ptTps{\mdf@middlelinewidth@length} 0.5 mul)% - (! \ptTps{\mdfboundingboxwidth} % - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}% - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add) - }{} - \md@test@ltr{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - 0) - }{} - \md@test@ltb{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdf@middlelinewidth@length} 0.5 mul)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - }{} - \md@test@trb{% - \psline[style=mdflinestyle]% - (! 0 - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul) - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul) - }{} - \md@test@lrb{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdfboundingboxheight})% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}) - }{} - \md@test@lb{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdfboundingboxheight})% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - }{} - \md@test@rb{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}) - }{} - \md@test@tr{% - \psline[style=mdflinestyle]% - (! 0 - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - 0) - }{} - \md@test@lt{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - }{} - \md@test@single{% - \ifbool{mdf@bottomline}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - }{}% - \ifbool{mdf@topline}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add) - }{}% - \ifbool{mdf@leftline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} )% - }{}% - \ifbool{mdf@rightline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add 0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add - \ptTps{\mdfboundingboxheight} )% - }{}% - }{}% - %Hintergrund - \psframe[style=mdfbackgroundstyle]% - (!0 \ifbool{mdf@bottomline}{\ptTps{\mdf@middlelinewidth@length}}{0}) - (! \ptTps{\mdfboundingboxwidth} % - \ptTps{\mdfboundingboxheight} - \ifbool{mdf@topline}{\ptTps{\mdf@middlelinewidth@length} sub}{}) - %Ausgabe - \rput[b]% - (!\ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate - \ptTps{\mdf@innerbottommargin@length} - \ifbool{mdf@bottomline}{\ptTps{\mdf@middlelinewidth@length} add}{} - ){\box\@tempboxa} - \end{pspicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% -\def\md@putbox@first{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% - \setlength\mdfboundingboxwidth{\wd\tw@}% - \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}% - \advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax - \advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax% - \ifbool{mdf@topline}% - {\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \psset{linearc=\mdf@roundcorner@length,cornersize=absolute}% - \expandafter\psset\expandafter{\mdf@psset@local}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \psset{unit=1truecm}% - \ifdimgreater{\mdfboundingboxheight}{\vsize} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)} - %Hintergrund - \psline[style=mdfbackgroundstyle,% - linearc={\dimexpr\mdf@roundcorner@length% - -\mdf@middlelinewidth@length\relax},] - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul - \ptTps{\mdfboundingboxheight} - \ifbool{mdf@topline}% - {\ptTps{\mdf@middlelinewidth@length} neg 1.5 mul add}% - {\ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add} )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X - \ptTps{\mdfboundingboxheight} - \ifbool{mdf@topline}% - {\ptTps{\mdf@middlelinewidth@length} neg 1.5 mul add}% - {\ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add} )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X - 0) - \ifboolexpr{ test {\md@test@ltrb} or test {\md@test@ltr}}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - 0) - }{} - \ifboolexpr{ test {\md@test@tr} or test {\md@test@trb}}{% - \psline[style=mdflinestyle]% - (! 0 - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - 0) - }{} - \ifboolexpr{ test {\md@test@ltb} or test {\md@test@lt}}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@roundcorner@length} neg add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - }{} - \ifboolexpr{ test {\md@test@single} or test {\md@test@rb} or - test {\md@test@lrb} or test {\md@test@lb}}{% - \ifbool{mdf@topline}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add) - }{}% - \ifbool{mdf@leftline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} )% - }{}% - \ifbool{mdf@rightline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add 0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add - \ptTps{\mdfboundingboxheight} )% - }{}% - }{}% - %Ausgabe - \rput[b](! - \ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate - \ptTps{\mdf@splitbottomskip@length}){\box\tw@} - \end{pspicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% -\def\md@putbox@middle{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% - \setlength\mdfboundingboxwidth{\wd\tw@}% - \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}% - \advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \expandafter\psset\expandafter{\mdf@psset@local}% - \psset{linearc=\mdf@roundcorner@length,cornersize=absolute}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \psset{unit=1truecm}% - \ifdimgreater{\mdfboundingboxheight}{\vsize} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)} - \ifbool{mdf@leftline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} )% - }{}% - \ifbool{mdf@rightline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add 0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add - \ptTps{\mdfboundingboxheight} )% - }{}% - %Hintergrund - \psframe[style=mdfbackgroundstyle,% - linearc=\z@]% - (!0 0) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdfboundingboxheight}) - %Ausgabe - \rput[b](! - \ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate - \ptTps{\mdf@splitbottomskip@length} ){\box\tw@} - \end{pspicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% -\def\md@putbox@second{ - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% - \setlength\mdfboundingboxwidth{\wd\@tempboxa}% - \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax% - \ifbool{mdf@bottomline}% - {\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \expandafter\psset\expandafter{\mdf@psset@local} - \psset{linearc=\mdf@roundcorner@length,cornersize=absolute}% - \psset{unit=1truecm}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight) - %Hintergrund - \psline[style=mdfbackgroundstyle,% - linearc={\dimexpr\mdf@roundcorner@length% - -\mdf@middlelinewidth@length\relax},]%% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul - \ptTps{\mdfboundingboxheight} )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul - \ifbool{mdf@bottomline}% - {\ptTps{\mdf@middlelinewidth@length} neg 1.5 mul neg}% - {\ptTps{\mdf@middlelinewidth@length} neg 0.5 mul neg} )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add - \ifbool{mdf@bottomline}% - {\ptTps{\mdf@middlelinewidth@length} neg 1.5 mul neg}% - {\ptTps{\mdf@middlelinewidth@length} neg 0.5 mul neg} )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add - \ptTps{\mdfboundingboxheight} ) - %%%%%%%%%%%% - \ifboolexpr{ test {\md@test@ltrb} or test {\md@test@lrb}}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdfboundingboxheight})% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}) - }{} - \ifboolexpr{ test {\md@test@ltb} or test {\md@test@lb}}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdfboundingboxheight})% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - }{} - \ifboolexpr{ test {\md@test@trb} or test {\md@test@rb}}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}) - }{} - \ifboolexpr{ test {\md@test@single} or test {\md@test@ltr} or - test {\md@test@tr} or test {\md@test@lt}}{% - \ifbool{mdf@bottomline}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - }{}% - \ifbool{mdf@leftline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} )% - }{}% - \ifbool{mdf@rightline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add 0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add - \ptTps{\mdfboundingboxheight} )% - }{}% - }{}% - %Ausgabe - \rput[b](! - \ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate - \ptTps{\mdf@innerbottommargin@length} - \ifbool{mdf@bottomline}{\ptTps{\mdf@middlelinewidth@length} add}{} - ){\box\@tempboxa} - \end{pspicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% - \endinput diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf deleted file mode 100644 index 288bafd84a4..00000000000 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf +++ /dev/null @@ -1,509 +0,0 @@ -%% 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 273 2011-12-10 09:21:09Z marco $ -\def\mdframedIIpackagename{md-frame-2} -\def\md@frameIIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } -\ProvidesFile{md-frame-2.mdf}% - [\md@frameIIdate@svn$Id: mdframed.dtx 273 2011-12-10 09:21:09Z marco $ % - \mdversion: \mdframedIIpackagename] -\def\md@ptlength@to@pscode#1{\pst@number{#1} \pst@number\psxunit div } -\let\ptTps\md@ptlength@to@pscode\relax -%%%% _____t_____ -%%%% | | -%%%% | | -%%%% | | -%%%% l| |r -%%%% | | -%%%% | | -%%%% |___________| -%%%% b -%%Zusammenhaenge abfragen: -\newrobustcmd*\md@test@ltrb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@ltr{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@ltb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@trb{% - \ifboolexpr{ (bool {mdf@topline}) and (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lrb{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lb{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@rb{% - \ifboolexpr{ not (bool {mdf@topline}) and (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@tr{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and (bool {mdf@rightline})}} -\newrobustcmd*\md@test@lt{% - \ifboolexpr{ (bool {mdf@topline}) and not (bool {mdf@bottomline}) - and (bool {mdf@leftline}) and not (bool {mdf@rightline})}} -\newrobustcmd*\md@test@single{% - \ifboolexpr{ not (test {\md@test@ltrb} or test {\md@test@ltr} or - test {\md@test@ltb} or test {\md@test@trb} or - test {\md@test@lrb} or test {\md@test@lb} or - test {\md@test@rb} or test {\md@test@tr} or - test {\md@test@lt} ) }} - -\newpsstyle{mdfbackgroundstyle}{linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid,% - linewidth=\mdf@middlelinewidth@length,dimen=outer,% -}% -\newpsstyle{mdflinestyle}{linewidth=\mdf@middlelinewidth@length,% - linecolor=\mdf@linecolor,% - fillstyle=none,dimen=middle,}% -\def\md@putbox@single{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% - \setlength\mdfboundingboxwidth{\wd\@tempboxa}% - \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax% - \advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax% - \ifbool{mdf@topline}% - {\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}% - \ifbool{mdf@bottomline}% - {\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \psset{linearc=\mdf@roundcorner@length,cornersize=absolut,}% - \expandafter\psset\expandafter{\mdf@psset@local}% - \psset{unit=1truecm}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight) - \md@test@ltrb{% - \psframe[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul % - \ptTps{\mdf@middlelinewidth@length} 0.5 mul)% - (! \ptTps{\mdfboundingboxwidth} % - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}% - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add) - }{} - \md@test@ltr{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - 0) - }{} - \md@test@ltb{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdf@middlelinewidth@length} 0.5 mul)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - }{} - \md@test@trb{% - \psline[style=mdflinestyle]% - (! 0 - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul) - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul) - }{} - \md@test@lrb{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdfboundingboxheight})% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}) - }{} - \md@test@lb{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdfboundingboxheight})% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - }{} - \md@test@rb{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}) - }{} - \md@test@tr{% - \psline[style=mdflinestyle]% - (! 0 - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - 0) - }{} - \md@test@lt{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - }{} - \md@test@single{% - \ifbool{mdf@bottomline}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - }{}% - \ifbool{mdf@topline}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add) - }{}% - \ifbool{mdf@leftline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} )% - }{}% - \ifbool{mdf@rightline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add 0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add - \ptTps{\mdfboundingboxheight} )% - }{}% - }{}% - %Hintergrund - \psframe[style=mdfbackgroundstyle]% - (!0 \ifbool{mdf@bottomline}{\ptTps{\mdf@middlelinewidth@length}}{0}) - (! \ptTps{\mdfboundingboxwidth} % - \ptTps{\mdfboundingboxheight} - \ifbool{mdf@topline}{\ptTps{\mdf@middlelinewidth@length} sub}{}) - %Ausgabe - \rput[b]% - (!\ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate - \ptTps{\mdf@innerbottommargin@length} - \ifbool{mdf@bottomline}{\ptTps{\mdf@middlelinewidth@length} add}{} - ){\box\@tempboxa} - \end{pspicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% -\def\md@putbox@first{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% - \setlength\mdfboundingboxwidth{\wd\tw@}% - \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}% - \advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax - \advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax% - \ifbool{mdf@topline}% - {\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \psset{linearc=\mdf@roundcorner@length,cornersize=absolute}% - \expandafter\psset\expandafter{\mdf@psset@local}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \psset{unit=1truecm}% - \ifdimgreater{\mdfboundingboxheight}{\vsize} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)} - %Hintergrund - \psline[style=mdfbackgroundstyle,% - linearc={\dimexpr\mdf@roundcorner@length% - -\mdf@middlelinewidth@length\relax},] - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul - \ptTps{\mdfboundingboxheight} - \ifbool{mdf@topline}% - {\ptTps{\mdf@middlelinewidth@length} neg 1.5 mul add}% - {\ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add} )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X - \ptTps{\mdfboundingboxheight} - \ifbool{mdf@topline}% - {\ptTps{\mdf@middlelinewidth@length} neg 1.5 mul add}% - {\ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add} )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X - 0) - \ifboolexpr{ test {\md@test@ltrb} or test {\md@test@ltr}}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - 0) - }{} - \ifboolexpr{ test {\md@test@tr} or test {\md@test@trb}}{% - \psline[style=mdflinestyle]% - (! 0 - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - 0) - }{} - \ifboolexpr{ test {\md@test@ltb} or test {\md@test@lt}}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@roundcorner@length} neg add %X - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)% - }{} - \ifboolexpr{ test {\md@test@single} or test {\md@test@rb} or - test {\md@test@lrb} or test {\md@test@lb}}{% - \ifbool{mdf@topline}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add) - }{}% - \ifbool{mdf@leftline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} )% - }{}% - \ifbool{mdf@rightline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add 0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add - \ptTps{\mdfboundingboxheight} )% - }{}% - }{}% - %Ausgabe - \rput[b](! - \ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate - \ptTps{\mdf@splitbottomskip@length}){\box\tw@} - \end{pspicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% -\def\md@putbox@middle{% - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% - \setlength\mdfboundingboxwidth{\wd\tw@}% - \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}% - \advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \expandafter\psset\expandafter{\mdf@psset@local}% - \psset{linearc=\mdf@roundcorner@length,cornersize=absolute}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \psset{unit=1truecm}% - \ifdimgreater{\mdfboundingboxheight}{\vsize} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)} - \ifbool{mdf@leftline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} )% - }{}% - \ifbool{mdf@rightline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add 0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add - \ptTps{\mdfboundingboxheight} )% - }{}% - %Hintergrund - \psframe[style=mdfbackgroundstyle,% - linearc=\z@]% - (!0 0) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdfboundingboxheight}) - %Ausgabe - \rput[b](! - \ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate - \ptTps{\mdf@splitbottomskip@length} ){\box\tw@} - \end{pspicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% -\def\md@putbox@second{ - \ifvoid\@tempboxa - \else% - \mdf@makebox@out{% - \mdf@makeboxalign@left% - \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% - \setlength\mdfboundingboxwidth{\wd\@tempboxa}% - \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax% - \ifbool{mdf@bottomline}% - {\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}% - \advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax% - \advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax% - \expandafter\psset\expandafter{\mdf@psset@local} - \psset{linearc=\mdf@roundcorner@length,cornersize=absolute}% - \psset{unit=1truecm}% - \mdf@makebox@in[\mdfboundingboxwidth]{% - \null% - \begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight) - %Hintergrund - \psline[style=mdfbackgroundstyle,% - linearc={\dimexpr\mdf@roundcorner@length% - -\mdf@middlelinewidth@length\relax},]%% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul - \ptTps{\mdfboundingboxheight} )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul - \ifbool{mdf@bottomline}% - {\ptTps{\mdf@middlelinewidth@length} neg 1.5 mul neg}% - {\ptTps{\mdf@middlelinewidth@length} neg 0.5 mul neg} )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add - \ifbool{mdf@bottomline}% - {\ptTps{\mdf@middlelinewidth@length} neg 1.5 mul neg}% - {\ptTps{\mdf@middlelinewidth@length} neg 0.5 mul neg} )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add - \ptTps{\mdfboundingboxheight} ) - %%%%%%%%%%%% - \ifboolexpr{ test {\md@test@ltrb} or test {\md@test@lrb}}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdfboundingboxheight})% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}) - }{} - \ifboolexpr{ test {\md@test@ltb} or test {\md@test@lb}}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdfboundingboxheight})% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg - \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - }{} - \ifboolexpr{ test {\md@test@trb} or test {\md@test@rb}}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add %X - \ptTps{\mdfboundingboxheight}) - }{} - \ifboolexpr{ test {\md@test@single} or test {\md@test@ltr} or - test {\md@test@tr} or test {\md@test@lt}}{% - \ifbool{mdf@bottomline}{% - \psline[style=mdflinestyle]% - (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) - }{}% - \ifbool{mdf@leftline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% - (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul - \ptTps{\mdfboundingboxheight} )% - }{}% - \ifbool{mdf@rightline}{% - \psline[style=mdflinestyle]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add 0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul add - \ptTps{\mdfboundingboxheight} )% - }{}% - }{}% - %Ausgabe - \rput[b](! - \ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate - \ptTps{\mdf@innerbottommargin@length} - \ifbool{mdf@bottomline}{\ptTps{\mdf@middlelinewidth@length} add}{} - ){\box\@tempboxa} - \end{pspicture}% - }% - \mdf@makeboxalign@right% - }% - \fi -}% - \endinput diff --git a/Master/texmf-dist/tex/latex/mdframed/mdframed.sty b/Master/texmf-dist/tex/latex/mdframed/mdframed.sty deleted file mode 100644 index 1f4f07e6bb1..00000000000 --- a/Master/texmf-dist/tex/latex/mdframed/mdframed.sty +++ /dev/null @@ -1,877 +0,0 @@ -%% -%% This is file `mdframed.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% mdframed.dtx (with options: `package') -%% ---------------------------------------------------------------- -%% Working with the command fbox or fcolorbox, one has to -%% handle page breaks by hand. The present package defines the -%% environment mdframed which automatically deals with page breaks. -%% -%% Author's name: Marco Daniel and Elke Schubert (!new) -%% License type: lppl -%% -%% ================================================== -%% ========Is based on the idea of framed.sty======== -%% ================================================== -%% ===== Currently the package has a beta-Status ==== -%% ================================================== -%% WITH THANKS TO (alphabetically): -%% ROLF NIEPRASCHK -%% HEIKO OBERDIEK -%% HERBERT VOSS -%% -%% Copyright (c) 2010 Marco Daniel -%% -%% 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. -%% -%% -%% ================================================= -%% Erstellung eines Rahmens, der am Seitenende keine -%% horizontale Linie einfuegt -%% >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -%% _______________ -%% | page 1 | -%% | Text | -%% | __Text__ | -%% | | Text | | -%% P A G E B R E A K -%% | | Text | | -%% | |_Text_| | -%% | Text | -%% |____page 2___| -%% -%% >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -%% ================================================== -%% -\def\mdversion{v1.0c} -\def\mdframedpackagename{mdframed} -\def\md@maindate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{mdframed}% - [\md@maindate@svn$Id: mdframed.dtx 273 2011-12-10 09:21:09Z marco $% - \mdversion: \mdframedpackagename] -\newcommand*\md@PackageWarning[1]{\PackageWarning{\mdframedpackagename}{#1}} -\newcommand*\md@PackageInfo[1]{\PackageInfo{\mdframedpackagename}{#1}} -\newcommand*\md@LoadFile@IfExist[1]{% - \IfFileExists{#1.sty}{% - \RequirePackage{#1}% - }{% - \md@PackageWarning{The file #1 does not exist^^J - but needed by \mdframedpackagename^^J - see documentation fo further information - }% - } -} -\RequirePackage{kvoptions} -\RequirePackage{etex} -\RequirePackage{etoolbox}[2011/01/03] -\RequirePackage{zref-abspage} -\RequirePackage{color} -\SetupKeyvalOptions{family=mdf,prefix=mdf@} - -\newlength{\md@templength} -\def\md@iflength#1{% - \afterassignment\md@iflength@check% - \md@templength=#1\mdf@defaultunit\relax\relax - \expandafter\endgroup\next -} -\def\md@iflength@check#1{% - \begingroup - \ifx\relax#1\@empty - \def\next{\@secondoftwo} - \else - \def\next{\@firstoftwo} - \expandafter\md@iflength@cleanup - \fi -} -\def\md@iflength@cleanup#1\relax{} -\newrobustcmd*{\mdf@option@length}[2]{% - \expandafter\newlength\csname mdf@#1@length\endcsname% - \expandafter\setlength\csname mdf@#1@length\endcsname{#2}% - } -\newrobustcmd*{\mdf@define@key@length}[1]{% - \define@key{mdf}{#1}{% - \def\@tempa{##1} - \md@iflength{\@tempa}% - {\csxdef{mdfl@#1}{\the\md@templength}}% - {\csxdef{mdfl@#1}{\the\md@templength}}% - \expandafter\setlength\csname mdf@#1@length\endcsname{\csname mdfl@#1\endcsname}% - }% -} -\DeclareListParser*{\mdf@dolist}{,} -\def\mdf@do@lengthoption#1{% - \mdf@lengthoption@doubledo#1\@nil% -} -\def\mdf@lengthoption@doubledo#1==#2\@nil{% - \mdf@option@length{#1}{#2}% - \mdf@define@key@length{#1}% -} -\def\mdf@do@stringoption#1{% - \mdf@stringoption@doubledo#1\@nil% -} -\def\mdf@stringoption@doubledo#1==#2\@nil{% - \expandafter\gdef\csname mdf@#1\endcsname{#2}% - \define@key{mdf}{#1}{% - \csdef{mdf@#1}{##1}% - }% -} -\def\mdf@do@booloption#1{% - \mdf@booloption@doubledo#1\@nil% -} -\def\mdf@booloption@doubledo#1==#2\@nil{% - \newbool{mdf@#1}\setbool{mdf@#1}{#2}% - \define@key{mdf}{#1}[#2]{% - \setbool{mdf@#1}{##1}% - }% -} -\def\mdf@do@alignoption#1{% - \mdf@alignoption@tripledo#1\@nil% -} -\def\mdf@alignoption@tripledo#1==#2==#3\@nil{% - \csdef{mdf@align@#1@left}{\null\hspace*{#2}}% - \csdef{mdf@align@#1@right}{\hspace*{#3}\null}% -} -\newcounter{mdf@globalstyle@cnt} -\defcounter{mdf@globalstyle@cnt}{0} -\newcommand*\mdfglobal@style{0} -\define@key{mdf}{style}{% - \md@PackageWarning{package option style is depreciated^^J - use framemethod instead\MessageBreak}% - \renewcommand*\mdfglobal@style{#1}% - \defcounter{mdf@globalstyle@cnt}{#1}% - \ifcase\value{mdf@globalstyle@cnt}\relax - %0 <- kein Grafikpaket - \or\md@LoadFile@IfExist{tikz}% - \or\md@LoadFile@IfExist{pstricks-add}% - \or\defcounter{mdf@globalstyle@cnt}{2}% - \md@LoadFile@IfExist{pstricks-add}% - \or\md@LoadFile@IfExist{pstricks-add}% - \else\md@PackageWarning{Unknown global style \value{mdf@globalstyle@cnt}}% - \fi% -} -\providecommand*\mdf@framemethod{} -\def\md@framemethod@i{}% -\def\md@framemethod@ii{}% -\def\md@framemethod@iii{}% -\define@key{mdf}{framemethod}[default]{% - \lowercase{\def\md@tempa{#1}} - \forcsvlist{\listadd\md@framemethod@i}{default,tex,latex,none,0} - \forcsvlist{\listadd\md@framemethod@ii}{pgf,tikz,1} - \forcsvlist{\listadd\md@framemethod@iii}{pstricks,ps,2,postscript} - \xifinlist{\md@tempa}{\md@framemethod@i}% - {\def\mdf@@framemethod{default}\defcounter{mdf@globalstyle@cnt}{0}}% - {\xifinlist{\md@tempa}{\md@framemethod@ii}% - {\def\mdf@@framemethod{tikz}\defcounter{mdf@globalstyle@cnt}{1}}% - {\xifinlist{\md@tempa}{\md@framemethod@iii}% - {\def\mdf@@framemethod{pstricks}\defcounter{mdf@globalstyle@cnt}{2}}% - {% - \md@LoadFile@IfExist{#1}% - }% - }% - }% - \ifcase\value{mdf@globalstyle@cnt}\relax% - %0 <- kein Grafikpaket - \or\md@LoadFile@IfExist{tikz}% - \or\md@LoadFile@IfExist{pstricks-add}% - \or\md@LoadFile@IfExist{pstricks-add}% - \fi% -} -\mdf@dolist{\mdf@do@lengthoption}{% - {skipabove==\z@},% - {skipbelow==\z@},% - {leftmargin==\z@},% - {rightmargin==\z@},% - {margin==20pt},% - {innerleftmargin==10pt},% - {innerrightmargin==10pt},% - {innertopmargin==0.4\baselineskip},% - {innerbottommargin==0.4\baselineskip},% - {splittopskip==\z@},% - {splitbottomskip==\z@},% - {outermargin==-999pt},% - {innermargin==-999pt},% - {linewidth==0.4pt},% - {innerlinewidth==\z@},% - {middlelinewidth==\expandafter\mdf@linewidth@length},% - {outerlinewidth==\z@},% - {roundcorner==\z@},% - {footenotedistance==\medskipamount}, - {userdefinedwidth==\linewidth} -} -\mdf@dolist{\mdf@do@stringoption}{% - {defaultunit==pt},% - {settings=={}},% - {linecolor==black},% - {backgroundcolor==white},% - {fontcolor==black},% - {innerlinecolor==\mdf@linecolor},% - {outerlinecolor==\mdf@linecolor},% - {middlelinecolor==\mdf@linecolor},% - {psroundlinecolor==\mdf@backgroundcolor},% - {frametitle=={}},% - {frametitlefont==\bfseries\large},% - {printheight==none},% -} -\mdf@dolist{\mdf@do@booloption}{% - {ntheorem==false},% - {topline==true},% - {leftline==true},% - {bottomline==true},% - {rightline==true},% - {hidealllines==false},% - {nobreak==false},% - {footnoteinside==true},% -} -\mdf@dolist{\mdf@do@alignoption}{% - {left==\mdf@leftmargin@length==\z@},% - {center==\fill==\fill},% - {right==\fill==\mdf@rightmargin@length},% - {outer==\fill==\mdf@rightmargin@length},%not supported yet - {outer==\mdf@leftmargin@length==\fill},%not supported yet -} -\newcommand*\mdf@align{}% -\newcommand*\mdf@makeboxalign@left{\null\hspace*{\mdf@leftmargin@length}}% -\newcommand*\mdf@makeboxalign@right{}% -\define@key{mdf}{align}[left]{% - \ifcsundef{mdf@align@#1@left}{% - \md@PackageWarning{Unknown alignment #1\MessageBreak}% - \letcs\mdf@makeboxalign@left{mdf@align@left@left}% - \letcs\mdf@makeboxalign@right{mdf@align@left@right}% - }{% - \def\mdf@makeboxalign@left{\csuse{mdf@align@#1@left}}% - \def\mdf@makeboxalign@right{\csuse{mdf@align@#1@right}}% - }% -} -\def\mdf@tikzset@local{\tikzset{tikzsetting/.style={}}} -\define@key{mdf}{tikzsetting}{% - \def\mdf@tikzset@local{\tikzset{tikzsetting/.style={#1}}}% -} -\define@key{mdf}{apptotikzsetting}{% - \appto\mdf@tikzset@local{#1}% -} -\def\mdf@psset@local{} -\define@key{mdf}{pstrickssetting}{% - \def\mdf@psset@local{#1} -} -\def\mdf@xcolor{} -\define@key{mdf}{xcolor}[none]{% - \@ifpackageloaded{xcolor}{% - \let\mdf@xcolor\@empty %ignoriere die Eingabe der Optionen - }{% - \def\@tempa{none}% - \ifx\mdf@xcolor\@tempa - \else - \PassOptionsToPackage{\mdf@xcolor}{xcolor}% - \RequirePackage{xcolor}% - \fi% - }% - } -\define@key{mdf}{needspace}[\z@]{% - \begingroup% - \setlength{\dimen@}{#1}% - \vskip\z@\@plus\dimen@% - \penalty -100\vskip\z@\@plus -\dimen@% - \vskip\dimen@% - \penalty 9999% - \vskip -\dimen@% - \vskip\z@skip % hide the previous |\vskip| from |\addvspace| - \endgroup% -} -\DeclareDefaultOption{% - \md@PackageWarning{Unknown Option '\CurrentOption' for mdframed}} -\ProcessKeyvalOptions*\relax -\newcommand*{\mdfsetup}{\setkeys{mdf}} -\define@key{mdf}{style}{% - \ifcsundef{mdf@definestyle@#1}{% - \md@PackageWarning{Unknown definedstyle #1^^J - You have to define a style ^^J - via \string\mdfdefinedstyle\MessageBreak - }% - }% - {\expandafter\expandafter\expandafter\mdfsetup% - \expandafter\expandafter\expandafter{\csname mdf@definestyle@#1\endcsname}}% -}% -\let\md@PackageNoInfo\@gobble -\newrobustcmd*\md@ifstrequal@expand{% -\expandafter\ifstrequal\expandafter{\mdf@printheight}% -} -\newrobustcmd*\md@print@space{% - %case "none" - \md@ifstrequal@expand{none}{\def\md@tempa{NoInfo}}{% - %case "info" - \md@ifstrequal@expand{info}{\def\md@tempa{Info}}{% - %case "warning" - \md@ifstrequal@expand{warning}{\def\md@tempa{Warning}}{% - %case "unknown" - \md@PackageWarning{Unknown key for printheight=\mdf@printheight^^J - use none, info or warning}% - \def\md@tempa{none}% - }% - }% - }% -\def\md@PackageInfoSpace{\csname md@Package\md@tempa\endcsname}% -} -\def\md@lrbox#1{% - \edef\reserved@a{% - \endgroup - \setbox#1\vbox{% - \begingroup\aftergroup}% - \def\noexpand\@currenvir{\@currenvir}% - \def\noexpand\@currenvline{\on@line}}% - \reserved@a - \@endpefalse - \@parboxrestore - \begingroup% - \color@setgroup - \color{\mdf@fontcolor}% - \hsize=\md@horizontalspaceofbox% - \columnwidth=\hsize% - \textwidth=\hsize% - \linewidth=\hsize% - \@parboxrestore - \bgroup\md@@frametitle\egroup\noindent% - \ignorespaces} - -\def\endmd@lrbox{\endgroup\unskip\color@endgroup} -\let\md@trivlist\trivlist -\let\endmd@trivlist\endtrivlist -\patchcmd\endmd@trivlist\@endparenv\md@endparenv{}{} -\def\md@endparenv{% - \addpenalty\@endparpenalty\addvspace\mdf@skipbelow@length\@endpetrue} -\newrobustcmd*\mdf@makebox@out[2][\linewidth]{% - \noindent\hb@xt@\z@{% - \noindent\makebox[\dimexpr #1\relax][l]{#2}% - \hss}% -}% -\newrobustcmd*\mdf@makebox@in[2][\mdf@userdefinedwidth@length]{% - \noindent\makebox[\dimexpr #1\relax][l]{#2}% -} -\newrobustcmd*\mdfdefinestyle[2]{% - \csdef{mdf@definestyle@#1}{#2}% -} -\newrobustcmd*\mdfapptodefinestyle[2]{% - \ifcsundef{mdf@definestyle@#1}% - {\md@PackageWarning{Unknown style #1}}% - {\csappto{mdf@definestyle@#1}{,#2}}% -} -\newrobustcmd*\newmdenv[2][]{% - \newenvironment{#2}{% - \mdfsetup{#1}% - \begin{mdframed}% - }{% - \end{mdframed}% - }% -} -\newrobustcmd*\renewmdenv[2][]{% - \expandafter\let\csname #2\endcsname\relax% - \expandafter\let\csname end#2\endcsname\relax% - \newmdenv[#1]{#2}% - }% -\newrobustcmd*\newmdtheoremenv{% - \kernel@ifnextchar[%] - {\newmdtheoremenv@i}{\newmdtheoremenv@i[]}% -} -\def\newmdtheoremenv@i[#1]#2{% - \kernel@ifnextchar[%] - {\newmdtheoremenv@ii[#1]#2}{\newmdtheoremenv@ii[#1]#2[]}% -} -\def\newmdtheoremenv@ii[#1]#2[#3]#4{% - \kernel@ifnextchar[%] - {\newmdtheoremenv@iii[#1]#2[#3]#4}{\newmdtheoremenv@iii[#1]#2[#3]#4[]}% -} -\def\newmdtheoremenv@iii[#1]#2[#3]#4[#5]{% - \ifboolexpr{ test {\ifblank {#3}} and test {\ifblank {#5}} }% - {% - \newtheorem{#2}{#4}% - }{% - \ifboolexpr{ not (test {\ifblank {#3}}) and not (test {\ifblank {#5}}) }% - {\md@PackageWarning{You can't such a comibination for newmdtheoremenv^^J - Instead mdframed uses newtheorem{#2}{#4}}% - \newtheorem{#2}{#4}% - }% - {% - \notblank{#3}{\newtheorem{#2}[#3]{#4}}{}% - \notblank{#5}{\newtheorem{#2}{#4}[#5]}{}% - }% - }% - \BeforeBeginEnvironment{#2}{\begin{mdframed}[#1]}% - \AfterEndEnvironment{#2}{\end{mdframed}}% -} -\let\mdraggedtitle\raggedright -\providecommand*\mdframedtitleenv[1]{% - \@afterindentfalse - {\parindent \z@ - \setlength{\parfillskip}{\z@ plus 1fil}% - \mdraggedtitle\nobreak\mdf@frametitlefont#1\relax% - \par}% - \@afterheading} - -\newrobustcmd*\md@@frametitle{% - \ifx\mdf@frametitle\@empty\relax% - \else - \color@begingroup\@nobreaktrue% - \mdframedtitleenv{\mdf@frametitle}% - \color@endgroup - \fi% -} -\newrobustcmd*\md@checkntheorem{% - \ifbool{mdf@ntheorem}% %%% Pruefen ob ntheorem gesetzt ist - {\ifundef{\theorempreskipamount}% - {\md@PackageWarning{You have not loaded ntheorem yet}}% - {\setlength{\theorempreskipamount}{\z@}% - \setlength{\theorempostskipamount}{\z@}% - }% - }{}% -} -\newrobustcmd*\md@footnoterule{% - \kern0\p@% - \hrule \@width 1in \kern 2.6\p@} -\newrobustcmd*\md@footnoteoutput{% - \ifvoid\@mpfootins\else - \nobreak% - \vskip\mdf@footenotedistance@length% - \normalcolor% - \md@footnoterule - \unvbox\@mpfootins - \fi% -} -\newrobustcmd*\md@footnoteinput{% - \def\@mpfn{mpfootnote}% - \def\thempfn{\thempfootnote}% - \c@mpfootnote\z@% - \let\@footnotetext\@mpfootnotetext% -} -\newrobustcmd*\mdf@load@style{% -\ifcase\value{mdf@globalstyle@cnt}\relax% - \input{md-frame-0.mdf}% - \or\input{md-frame-1.mdf}% - \or\input{md-frame-2.mdf}% - \or\input{md-frame-3.mdf}% - \else% - \IfFileExists{md-frame-\value{mdf@globalstyle@cnt}.mdf}% - {\input{md-frame-\value{mdf@globalstyle@cnt}.mdf}}% - {% - \input{md-frame-0.mdf}% - \md@PackageWarning{The style number \value{mdf@globalstyle@cnt} does not exist^^J - mdframed ues instead style=0 \mdframedpackagename}% - }% -\fi% -}% -\mdf@load@style - -\newrobustcmd*\md@styledefinition{% - \ifnumequal{\value{mdf@globalstyle@cnt}}{0}% - {\deflength{\mdf@innerlinewidth@length}{\z@}% - \deflength{\mdf@middlelinewidth@length}{\mdf@linewidth@length}% - \deflength{\mdf@outerlinewidth@length}{\z@}% - \let\mdf@innerlinecolor\mdf@linecolor% - \let\mdf@middlelinecolor\mdf@linecolor% - \let\mdf@outerlinecolor\mdf@linecolor% - }{}% - \ifnumequal{\value{mdf@globalstyle@cnt}}{2}% - {\deflength{\mdf@innerlinewidth@length}{\z@}% - \deflength{\mdf@middlelinewidth@length}{\mdf@linewidth@length}% - \deflength{\mdf@outerlinewidth@length}{\z@}% - \let\mdf@innerlinecolor\mdf@linecolor% - }{}% - \ifnumequal{\value{mdf@globalstyle@cnt}}{3}% - {\deflength{\mdf@innerlinewidth@length}{\z@}% - \deflength{\mdf@middlelinewidth@length}{\mdf@linewidth@length}% - \deflength{\mdf@outerlinewidth@length}{\z@}% - \let\mdf@innerlinecolor\mdf@linecolor% - }{}% -} -\let\md@reserved@a\@empty -\newrobustcmd*\detected@md@put@frame{% - \ifmdf@nobreak%Option nobreak=true? - \def\md@reserved@a{\md@put@frame@standalone}% - \else - \def\md@reserved@a{\md@put@frame}% - \ifnum\@floatpenalty<0\relax%Detecting float - \if@twocolumn% - \ifx\@captype\@undefined - \def\md@reserved@a{\md@put@frame}% - \else - \md@PackageInfo{mdframed inside float ^^J - mdframed uses option nobreak \mdframedpackagename}% - \def\md@reserved@a{\md@put@frame@standalone}% - \fi - \else - \md@PackageInfo{mdframed inside float ^^J - mdframed uses option nobreak \mdframedpackagename}% - \def\md@reserved@a{\md@put@frame@standalone}% - \fi% - \fi% - \if@minipage% - \md@PackageInfo{mdframed inside minipage ^^J - mdframed uses option nobreak \mdframedpackagename}% - \def\md@reserved@a{\md@put@frame@standalone}% - \fi% - \ifinner% - \md@PackageInfo{mdframed inside a box ^^J - mdframed uses option nobreak \mdframedpackagename}% - \def\md@reserved@a{\md@put@frame@standalone}% - \fi% - \fi% -\md@reserved@a% -} -\newrobustcmd*\md@hidealllines@check{% - \ifbool{mdf@hidealllines}{% - \setbool{mdf@leftline}{false}% - \setbool{mdf@rightline}{false}% - \setbool{mdf@topline}{false}% - \setbool{mdf@bottomline}{false}% - }{}% -} -\newlength\mdfboundingboxwidth -\newlength\mdfboundingboxtotalwidth -\newlength\mdfboundingboxheight -\newlength\mdfboundingboxdepth -\newlength\mdfboundingboxtotalheight -\newlength\md@freevspace@length -\newlength\md@horizontalwidthofbox@length -\newlength\md@verticalmarginwhole@length -\providecommand*\ptTps{} -\newrobustcmd\mdfcreateextratikz{} -\def\mdframed{\@ifnextchar[\mdframed@i\mdframed@ii}% -\def\mdframed@ii{\mdframed@i[]}% -\def\mdframed@i[#1]{% default-Umgebung -\begingroup -%%Ueberlegung- wie es besser geht!!!! WICHTIG - \mdfsetup{userdefinedwidth=\linewidth,#1} - \md@hidealllines@check% - \mdf@settings% - \md@twoside@checklength% - \let\width\z@% - \let\height\z@% - \setlength{\topsep}{\mdf@skipabove@length}% - \begingroup% - \let\partopsep\z@% - \expandafter\endgroup% - \begin{md@trivlist}\item\relax% - \md@checkntheorem% - \md@styledefinition% - \md@footnoteinput% - \md@horizontalmargin@equation% - \begin{md@lrbox}{\@tempboxa}% - }% -\def\endmdframed{% - \ifmdf@footnoteinside% - \def\md@reserveda{% - \md@footnoteoutput% - \end{md@lrbox}% - \detected@md@put@frame}% - \else% - \def\md@reserveda{% - \end{md@lrbox}% - \detected@md@put@frame% - \md@footnoteoutput% - }% - \fi% - \md@reserveda% - \end{md@trivlist}% - \hrule \@height\z@ \@width\hsize -\endgroup\@endparenv% -} -\newtoggle{md:checktwoside} -\settoggle{md:checktwoside}{false} -\newrobustcmd*\md@twoside@checklength{% - \if@twoside - \ifboolexpr{ test {\ifdimequal{\mdf@outermargin@length}{-999pt}} - and - test {\ifdimequal{\mdf@innermargin@length}{-999pt}} - }% - {% - \md@PackageInfo{You haven't set the outermargin/innermargin^^ - mdframed will use leftmargin/rightmargin}% - \settoggle{md:checktwoside}{false}% - }% - {\settoggle{md:checktwoside}{true}}% - \iftoggle{md:checktwoside}{% - \ifdimequal{\mdf@outermargin@length}{-999pt}% - {\setlength\mdf@rightmargin@length{\z@}}% - {\setlength\mdf@rightmargin@length{\mdf@outermargin@length}}% - \ifdimequal{\mdf@innermargin@length}{-999pt}% - {\setlength\mdf@leftmargin@length{\z@}}% - {\setlength\mdf@leftmargin@length{\mdf@innermargin@length}}% - }{}% - \fi% -} -\newcounter{md@zref@counter}%keine doppelten laebes -\zref@newprop*{md@pagevalue}[0]{\number\value{page}} -\zref@addprop{\ZREF@mainlist}{md@pagevalue} -\newrobustcmd*\md@zref@label{% - \stepcounter{md@zref@counter} - \zref@label{md@pagelabel-\number\value{md@zref@counter}}% -} -\newrobustcmd*\if@md@pageodd{% - \zref@refused{md@pagelabel-\the\value{md@zref@counter}}% - \ifodd\zref@extract{md@pagelabel-\the\value{md@zref@counter}}{md@pagevalue}% - \edef\md@reserveda{\md@pageisodd}% - \else - \edef\md@reserveda{\md@pageiseven}% - \fi - \md@reserveda% -} -\newrobustcmd*\md@pageisodd{% - \ifdimequal{\mdf@outermargin@length}{-999pt}% - {\setlength\mdf@rightmargin@length{\z@}}% - {\setlength\mdf@rightmargin@length{\mdf@outermargin@length}}% - \ifdimequal{\mdf@innermargin@length}{-999pt}% - {\setlength\mdf@leftmargin@length{\z@}}% - {\setlength\mdf@leftmargin@length{\mdf@innermargin@length}}% -} -\newrobustcmd*\md@pageiseven{% - \ifdimequal{\mdf@outermargin@length}{-999pt}% - {\setlength\mdf@leftmargin@length{\z@}}% - {\setlength\mdf@leftmargin@length{\mdf@outermargin@length}}% - \ifdimequal{\mdf@innermargin@length}{-999pt}% - {\setlength\mdf@rightmargin@length{\z@}}% - {\setlength\mdf@rightmargin@length{\mdf@innermargin@length}}% -} -\newrobustcmd*\md@@setzref{\md@zref@label\if@md@pageodd} -\newrobustcmd*\md@freepagevspace{% - \penalty\@M \vskip 2\baselineskip \vskip\height - \penalty9999 \vskip -2\baselineskip \vskip-\height - \penalty9999 - \ifdimequal{\pagegoal}{\maxdimen}% - {\md@freevspace@length\vsize}% - {\md@freevspace@length=\pagegoal\relax% - \advance\md@freevspace@length by -\pagetotal\relax% - }% -} -\newrobustcmd*\md@advancelength@orizontalmargin@add[1]{% - \advance\md@horizontalspaceofbox by -\csname mdf@#1@length\endcsname\relax% -} -\newlength\md@horizontalspaceofbox -\newrobustcmd*\md@horizontalmargin@equation{% - \setlength{\md@horizontalspaceofbox}{\mdf@userdefinedwidth@length}% - \mdf@dolist{\md@advancelength@orizontalmargin@add}{% - leftmargin,outerlinewidth,middlelinewidth,% - innerlinewidth,innerleftmargin,innerrightmargin,% - innerlinewidth,middlelinewidth,outerlinewidth,% - rightmargin}% - \notbool{mdf@leftline}{% - \advance\md@horizontalspaceofbox by \mdf@innerlinewidth@length\relax% - \advance\md@horizontalspaceofbox by \mdf@middlelinewidth@length\relax% - \advance\md@horizontalspaceofbox by \mdf@outerlinewidth@length\relax% - }{}% - \notbool{mdf@rightline}{% - \advance\md@horizontalspaceofbox by \mdf@innerlinewidth@length\relax% - \advance\md@horizontalspaceofbox by \mdf@middlelinewidth@length\relax% - \advance\md@horizontalspaceofbox by \mdf@outerlinewidth@length\relax% - }{}% - %%% Beruecksichtigung, dass Auszaehlung bzw. list-Umgebung enthalten - \ifdimless{\md@horizontalspaceofbox}{3cm}% - {\md@PackageWarning{You have only a width of 3cm}}{} - \hsize=\md@horizontalspaceofbox% -} -\newrobustcmd*\md@keeplines@single{% - \notbool{mdf@topline}{% - \advance\md@verticalmarginwhole@length by -\mdf@middlelinewidth@length% - }{}% - \notbool{mdf@bottomline}{% - \advance\md@verticalmarginwhole@length by -\mdf@middlelinewidth@length% - }{}% -} -\newrobustcmd*\md@advancelength@verticalmarginwhole[1]{% - \advance\md@verticalmarginwhole@length by \csname mdf@#1@length\endcsname\relax% -} -\newrobustcmd*\md@advancelength@freevspace@sub[1]{% - \advance\dimen@ by -\csname mdf@#1@length\endcsname\relax% -} -\newrobustcmd*\md@advancelength@freevspace@add[1]{% - \advance\dimen@ by \csname mdf@#1@length\endcsname\relax% -} -\protected@edef\md@reset{\boxmaxdepth\the\boxmaxdepth - \splittopskip\the\splittopskip}% -\newrobustcmd*\md@put@frame@standalone{\relax% - \ifvoid\@tempboxa\relax - \md@PackageWarning{The environment is empty\MessageBreak}% - \let\md@reserved@a\relax% - \else - %Hier berechnung Box-Inhalt+Rahmen oben und unten - \setlength{\md@verticalmarginwhole@length}% - {\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \mdf@dolist{\md@advancelength@verticalmarginwhole}{% - outerlinewidth,middlelinewidth,innerlinewidth,innertopmargin, - innerbottommargin,innerlinewidth,middlelinewidth,outerlinewidth}% - \md@keeplines@single% - \def\md@reserved@a{\md@putbox@single}% - \fi - \md@reserved@a% -} -\def\md@put@frame{\relax% -\ifvoid\@tempboxa\relax -\md@PackageWarning{The environment is empty\MessageBreak}% -\let\md@reserved@a\relax% -\else - \md@print@space% - \md@freepagevspace% - \md@PackageInfoSpace{\the\md@freevspace@length before the beginning of ^^J - the environment ending on input line \MessageBreak}% - \ifdimless{\md@freevspace@length}{2\baselineskip} - {\md@PackageInfo{Not enough space on this page} - \vfill\eject% - \def\md@reserved@a{\md@put@frame}% - }{% - %Hier berechnung Box-Inhalt+Rahmen oben und unten - \setlength{\md@verticalmarginwhole@length}% - {\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \mdf@dolist{\md@advancelength@verticalmarginwhole}{% - outerlinewidth,middlelinewidth,innerlinewidth,innertopmargin, - innerbottommargin,innerlinewidth,middlelinewidth,outerlinewidth}% - \md@keeplines@single% - \ifdimless{\md@verticalmarginwhole@length}{\md@freevspace@length}% - {%passt auf Seite% - \begingroup - \iftoggle{md:checktwoside}{\md@@setzref}{}% - \md@putbox@single - \endgroup - \let\md@reserved@a\relax}% - {\def\md@reserved@a{\md@put@frame@i}}%passt nicht auf Seite - }% -\fi -\md@reserved@a% -} -\def\md@put@frame@i{%Box muss gesplittet werden -- Ausgabe der ersten Teilbox - %Berechnung der Splittgroesse -- Linien und Abstand oben - \md@freepagevspace% - \dimen@=\the\md@freevspace@length% - \dimen@i=\mdf@innertopmargin@length% - \advance\dimen@i by \mdf@linewidth@length% - \advance\dimen@i by 2\baselineskip% - \ifdim\dimen@<\dimen@i\relax - \hrule \@height\z@ \@width\hsize% - \vfill\eject% - \def\md@reserved@a{\md@put@frame}% - \else% - \mdf@dolist{\md@advancelength@freevspace@sub}{% - outerlinewidth,middlelinewidth,innerlinewidth,% - innertopmargin,splitbottomskip}% - \ifbool{mdf@topline}{}{\advance\dimen@ by \mdf@middlelinewidth@length}% - \ifdimless{\ht\@tempboxa+\dp\@tempboxa}{\dimen@}% - {\md@PackageWarning{You got a bad break\MessageBreak - you have to change it manually\MessageBreak - by changing the text, the space\MessageBreak - or something else}% - \advance\dimen@ by -1.8\baselineskip\relax% - }{}% - \advance\dimen@ by -1pt\relax%Box darf nicht zu Groß werden. - \splitmaxdepth\z@ \splittopskip\mdf@splittopskip@length% - \setbox\tw@\vsplit\@tempboxa to \dimen@ - \ifdimgreater{\ht\tw@+\dp\tw@}{\dimen@}{%Falsch gesplittet - \md@PackageInfo{Box was splittet wrong\MessageBreak}% - \dimen@i=\dimen@ - \advance\dimen@ by -\ht\tw@ - \advance\dimen@ by -\dp\tw@ - \advance\dimen@i by 0.5\dimen@ - \splittopskip\z@% - \setbox\@tempboxa\vbox{\unvbox\tw@% - %benoetigt um Tiefe zu haben - \hrule \@height\dp\strutbox \@width\z@ - \unvbox\@tempboxa} - \splittopskip\mdf@splittopskip@length% - \setbox\tw@\vsplit\@tempboxa to \dimen@i - }{}% - \setbox\@tempboxa\vbox{\unvbox\@tempboxa}%PRUEFEN!!!! - \ifvoid\@tempboxa - \md@PackageWarning{You got a bad break\MessageBreak - because the splittet box is empty\MessageBreak - You have to change the page settings\MessageBreak - like enlargethispage or something else}% - \setbox\@tempboxa\vbox{\box\tw@\box\@tempboxa}% - \def\md@reserved@a{\md@put@frame}% - \fi - \ifvoid\tw@%%pruefe, ob erste Box leer ist - \hrule \@height\z@ \@width\hsize - \vfill\eject% - \def\md@reserved@a{\md@put@frame}% - \else - \ifdimequal{\ht\tw@}{0pt}% - {\hrule \@height\z@ \@width\hsize% - \vfill\eject% - \setbox\@tempboxa\vbox{\unvbox\tw@\unvbox\@tempboxa} - \def\md@reserved@a{\md@put@frame}% - }% - {% - \begingroup - \iftoggle{md:checktwoside}{\md@@setzref}{}% - \md@putbox@first%%%Groesse des Splittens passt - \endgroup - \hrule \@height\z@ \@width\hsize - \vfill\eject% - \def\md@reserved@a{\md@put@frame@ii}% - }% - \fi% - \fi% -\md@reserved@a% -} -\def\md@put@frame@ii{%Ausgabe der mittleren Box(en) wenn vorhanden - \setlength{\md@freevspace@length}{\vsize}% - \setlength{\dimen@}{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}% - \mdf@dolist{\md@advancelength@freevspace@add}{% - outerlinewidth,middlelinewidth,innerlinewidth,% - innerbottommargin}%%%Addition der Linien unten - \ifbool{mdf@bottomline}{}{\advance\dimen@ by -\mdf@middlelinewidth@length\relax}% - \ifdimgreater{\dimen@}{\md@freevspace@length}% - {% - \advance\md@freevspace@length by -\mdf@splitbottomskip@length - \splitmaxdepth\z@ \splittopskip\mdf@splittopskip@length% - \setbox\tw@\vsplit\@tempboxa to \md@freevspace@length% - % \setbox\tw@\vbox{\unvbox\tw@}%PRUEFEN!!! - \setbox\@tempboxa\vbox{\unvbox\@tempboxa}%PRUEFEN!!!! - \ifvoid\@tempboxa\relax% - \md@PackageWarning{You got a bad break\MessageBreak - because the split box is empty\MessageBreak - You have to change the settings}% - \fi% - \begingroup - \iftoggle{md:checktwoside}{\md@@setzref}{}% - \md@putbox@middle% - \endgroup - \hrule \@height\z@ \@width\hsize - \vfill\eject - \def\md@reserved@a{\md@put@frame@ii}% - }%Hier die Ausgabe der mittleren Box - {\ifvoid\@tempboxa - \md@PackageWarning{You got a bad break\MessageBreak - because the last split box is empty\MessageBreak - You have to change the settings}% - \fi% - \begingroup - \iftoggle{md:checktwoside}{\md@@setzref}{}% - \md@putbox@second% - \endgroup - \let\md@reserved@a\relax% - }%Hier kommt die Ausgabe der letzten Box - \md@reserved@a% -} -\DisableKeyvalOption[action=warning,package=mdframed]{mdf}{framemethod}% -\DisableKeyvalOption[action=warning,package=mdframed]{mdf}{xcolor}% - - \endinput -%% -%% ================================================================ -%% Copyright (C) 2011 by Marco Daniel -%% -%% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License (LPPL), either -%% version 1.3c of this license or (at your option) any later -%% version. The latest version of this license is in the file: -%% -%% http://www.latex-project.org/lppl.txt -%% -%% This work is "maintained" (as per LPPL maintenance status) by -%% Marco Daniel. -%% -%% Have fun! -%% -%% ================================================================ -%% -%% End of file `mdframed.sty'. |