diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf')
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf | 1000 |
1 files changed, 301 insertions, 699 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf index ec948c974a0..db84ca8c611 100644 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf +++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf @@ -1,3 +1,4 @@ + %% Style file for mdframed for package option `framemethod=tikz` %% %% This package may be distributed under the terms of the LaTeX Project @@ -46,7 +47,7 @@ shadow yshift=-\mdf@shadowsize@length+2pt, fill=\mdf@shadowcolor, every shadow }}}% - \mdf@tikzset@local + \mdf@tikzset@local% \tikzset{mdfmiddleline/.style={}}% \ifdimgreater{\mdf@middlelinewidth@length}{\z@} {\tikzset{mdfmiddleline/.append style={% @@ -74,50 +75,102 @@ \path[mdfinnerline,mdfcorners]#1;% \end{scope}% \path[mdfmiddleline,mdfcorners]#1;}% -%%\newrobustcmd*\mdf@testdraftmode{% -%% \ifbool{mdf@draft}% -%% {% -%% \renewrobustcmd*\mdf@tikzbox@tfl[1]{%three or four borders -%% \path(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);% -%% \begin{scope}[mdfcorners]% -%% \clip[preaction=mdfouterline]% -%% [postaction=mdfbackground]% -%% [postaction=mdfinnerline]##1;% -%% \end{scope}% -%% \path[mdfmiddleline,mdfcorners]##1; -%% }% -%% \renewrobustcmd*\mdf@tikzbox@otl[2]{%one or two borders -%% \path(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);% -%% \begin{scope} -%% \path[mdfouterline,mdfcorners]##1;% -%% \clip[postaction=mdfbackground]##2;% -%% \path[mdfinnerline,mdfcorners]##1;% -%% \end{scope}% -%% \path[mdfmiddleline,mdfcorners]##1;% -%% }% -%% }{% -%% \ifdimgreater{\overfullrule}{0pt}{% -%% \renewrobustcmd*\mdf@tikzbox@tfl[1]{%three or four borders -%% \path(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);% -%% \begin{scope}[mdfcorners]% -%% \clip[preaction=mdfouterline]% -%% [postaction=mdfbackground]% -%% [postaction=mdfinnerline]##1;% -%% \end{scope}% -%% \path[mdfmiddleline,mdfcorners]##1; -%% }% -%% \renewrobustcmd*\mdf@tikzbox@otl[2]{%one or two borders -%% \path(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);% -%% \begin{scope} -%% \path[mdfouterline,mdfcorners]##1;% -%% \clip[postaction=mdfbackground]##2;% -%% \path[mdfinnerline,mdfcorners]##1;% -%% \end{scope}% -%% \path[mdfmiddleline,mdfcorners]##1;% -%% }% -%% }{}% -%% }% -%%} +\newrobustcmd*\mdf@drawframe@whole{% + \mdf@test@ltrb{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)--cycle}}{}% + \mdf@test@ltb{\mdf@tikzbox@tfl{(P|-O)--(O)--(O|-P)--(P)}}{}% + \mdf@test@trb{\mdf@tikzbox@tfl{(O|-P)--(P)--(P|-O)--(O)}}{}% + \mdf@test@ltr{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)}}{}% + \mdf@test@lrb{\mdf@tikzbox@tfl{(P-|O)--(O)--(O-|P)--(P)}}{}% + \mdf@test@lb{\mdf@tikzbox@otl{(P|-O)--(O)--(O|-P)}% + {(P)--(P|-O)[mdfcorners]--(O)--(O|-P)}% + }{}% + \mdf@test@rb{\mdf@tikzbox@otl{(P)--(P|-O)--(O)}% + {(O|-P)--(P)[mdfcorners]--(P|-O)--(O)}% + }{}% + \mdf@test@tr{\mdf@tikzbox@otl{(O-|P)--(P)--(P-|O)}% + {(O)--(O|-P)[mdfcorners]--(P)--(P|-O)}% + }{}% + \mdf@test@lt{\mdf@tikzbox@otl{(O)--(O|-P)--(P)}% + {(P|-O)--(O)[mdfcorners]--(O|-P)--(P)}% + }{}% + \mdf@test@lr{\mdf@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}% + {(O)rectangle(P)}% + }{}% + \mdf@test@tb{\mdf@tikzbox@otl{(O)--(O-|P)(O|-P)--(P)}% + {(O)rectangle(P)}% + }{}% + \mdf@test@l{\mdf@tikzbox@otl{(O)--(O|-P)}% + {(O)rectangle(P)}% + }{}% + \mdf@test@r{\mdf@tikzbox@otl{(O-|P)--(P)}% + {(O)rectangle(P)}% + }{}% + \mdf@test@t{\mdf@tikzbox@otl{(O|-P)--(P)}% + {(O)rectangle(P)}% + }{}% + \mdf@test@b{\mdf@tikzbox@otl{(O)--(O-|P)}% + {(O)rectangle(P)}% + }{}% + \mdf@test@noline{\path[mdfbackground,mdfcorners](O)rectangle(P);}{}% +} +\newrobustcmd*\mdf@predtikzcalc{% + %%width + \setlength\mdfboundingboxwidth{\wd\mdf@splitbox@one}% + \mdf@dolist{\mdf@advancelength@add{\mdfboundingboxwidth}}% + {innerleftmargin,innerrightmargin}% + \ifbool{mdf@leftline}{% + \mdf@dolist{\mdf@advancelength@add{\mdfboundingboxwidth}}% + {innerlinewidth,middlelinewidth,outerlinewidth}}{}% + \ifbool{mdf@rightline}{% + \mdf@dolist{\mdf@advancelength@add{\mdfboundingboxwidth}}% + {innerlinewidth,middlelinewidth,outerlinewidth}}{}% + %%height + \setlength\mdfboundingboxheight% + {\dimexpr\ht\mdf@splitbox@one+\dp\mdf@splitbox@one\relax}% + \mdf@dolist{\mdf@advancelength@add{\mdfboundingboxheight}}% + {innertopmargin,innerbottommargin}% + \ifbool{mdf@topline}{% + \mdf@dolist{\mdf@advancelength@add{\mdfboundingboxheight}}% + {innerlinewidth,middlelinewidth,outerlinewidth}}{}% + \ifbool{mdf@bottomline}{% + \mdf@dolist{\mdf@advancelength@add{\mdfboundingboxheight}}% + {innerlinewidth,middlelinewidth,outerlinewidth}}{}% +} + +\newrobustcmd*\mdf@innertikzcalc{% + \pgfmathsetlengthmacro\mdf@Ax{+\mdf@innerleftmargin@length}% + \pgfmathsetlengthmacro\mdf@Ay{+\mdf@innerbottommargin@length}% + \pgfmathsetlengthmacro\mdf@Ox{+0pt}% + \pgfmathsetlengthmacro\mdf@Oy{+0pt}% + \pgfmathsetlengthmacro\mdf@Px{+\mdfboundingboxwidth}% + \pgfmathsetlengthmacro\mdf@Py{+\mdfboundingboxheight}% + \ifbool{mdf@leftline}% + {% + \pgfmathsetlengthmacro\mdf@Ax% + {\mdf@Ax+\mdf@outerlinewidth@length+% + \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% + \pgfmathsetlengthmacro\mdf@Ox% + {\mdf@Ox+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% + }{}% + \ifbool{mdf@rightline}% + {% + \pgfmathsetlengthmacro\mdf@Px% + {\mdf@Px-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% + }{}% + \ifbool{mdf@bottomline}% + {% + \pgfmathsetlengthmacro\mdf@Ay% + {\mdf@Ay+\mdf@outerlinewidth@length+\mdf@middlelinewidth@length% + +\mdf@innerlinewidth@length}% + \pgfmathsetlengthmacro\mdf@Oy% + {\mdf@Oy+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% + }{}% + \ifbool{mdf@topline}% + {% + \pgfmathsetlengthmacro\mdf@Py% + {\mdf@Py-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% + }{}% +} \tikzset{mdfframetitlerule/.style={% draw=none, fill=\mdf@frametitlerulecolor, @@ -151,285 +204,63 @@ }% }% -\tikzset{mdfsubtitleaboverule/.style={% - draw=none, - fill=\mdf@subtitleabovelinecolor, - }% -} -\tikzset{mdfsubtitlebelowrule/.style={% - draw=none, - fill=\mdf@subtitlebelowlinecolor, - }% -} -\tikzset{mdfsubtitlebackground/.style={% - draw=\mdf@subtitlebackgroundcolor, - fill=\mdf@subtitlebackgroundcolor, - }% -} -\newrobustcmd\mdfsubtitle[2][]% -{% - \begingroup - \penalty-9995%set a breakpoint before the subtitle - \parindent\z@\relax% - \mdfsetup{#1}%only for subtitle options - \setbox\z@=\vbox{\mdf@subtitlefont{#2}\relax}% - \pgfmathsetlength{\dimen@}% - {% - \linewidth% - +\mdf@innerleftmargin@length% - +\mdf@innerrightmargin@length% - }% - \ifbool{mdf@subtitleaboveline}{}% - {\mdfsetup{subtitleabovelinewidth=\z@}}% - \ifbool{mdf@subtitlebelowline}{}% - {\mdfsetup{subtitlebelowlinewidth=\z@}}% - \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi% - \vskip\mdf@subtitleaboveskip@length - \rlap% - {% - \hspace*{-\mdf@innerleftmargin@length}% - \begingroup% - \tikz\draw[mdfsubtitleaboverule] (0,0)% - rectangle (\dimen@,\mdf@subtitleabovelinewidth@length); - \endgroup% - }% - \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi% - \vskip\mdf@subtitleinneraboveskip@length - \leavevmode\hspace*{-\mdf@innerleftmargin@length}% - \tikz[overlay]% - \draw[mdfsubtitlebackground] - (0,-\mdf@subtitleinnerbelowskip@length-\dp\z@) - rectangle(\dimen@,\ht\z@+\mdf@subtitleinneraboveskip@length);% - \hspace*{+\mdf@innerleftmargin@length}% - \box\z@\relax% - \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi% - \vskip\mdf@subtitleinnerbelowskip@length - \rlap% - {% - \hspace*{-\mdf@innerleftmargin@length}% - \begingroup% - \tikz\draw[mdfsubtitlebelowrule] (0,0)% - rectangle (\dimen@,\mdf@subtitlebelowlinewidth@length); - \endgroup% - }% - \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi% - \vskip\mdf@subtitlebelowskip@length - \penalty 9995 - \endgroup -} - -\tikzset{mdfsubsubtitleaboverule/.style={% - draw=none, - fill=\mdf@subsubtitleabovelinecolor, - }% -} -\tikzset{mdfsubsubtitlebelowrule/.style={% - draw=none, - fill=\mdf@subsubtitlebelowlinecolor, - }% -} -\tikzset{mdfsubsubtitlebackground/.style={% - draw=\mdf@subsubtitlebackgroundcolor, - fill=\mdf@subsubtitlebackgroundcolor, - }% -} -\newrobustcmd\mdfsubsubtitle[2][]% -{% - \begingroup - \penalty-9995%set a breakpoint before the subsubtitle - \parindent\z@\relax% - \mdfsetup{#1}%only for subsubtitle options - \setbox\z@=\vbox{\mdf@subsubtitlefont{#2}\relax}% - \pgfmathsetlength{\dimen@}% - {% - \linewidth% - +\mdf@innerleftmargin@length% - +\mdf@innerrightmargin@length% - }% - \ifbool{mdf@subsubtitleaboveline}{}% - {\mdfsetup{subsubtitleabovelinewidth=\z@}}% - \ifbool{mdf@subsubtitlebelowline}{}% - {\mdfsetup{subsubtitlebelowlinewidth=\z@}}% - \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi% - \vskip\mdf@subsubtitleaboveskip@length - \rlap% - {% - \hspace*{-\mdf@innerleftmargin@length}% - \begingroup% - \tikz\draw[mdfsubsubtitleaboverule] (0,0)% - rectangle (\dimen@,\mdf@subsubtitleabovelinewidth@length); - \endgroup% - }% - \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi% - \vskip\mdf@subsubtitleinneraboveskip@length - \hspace*{-\mdf@innerleftmargin@length}% - \tikz[overlay]% - \draw[mdfsubtitlebackground] - (0,-\mdf@subsubtitleinnerbelowskip@length-\dp\z@) - rectangle(\dimen@,\ht\z@+\mdf@subsubtitleinneraboveskip@length);% - \hspace*{+\mdf@innerleftmargin@length}% - \box\z@\relax% - \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi% - \vskip\mdf@subsubtitleinnerbelowskip@length - \rlap% - {% - \hspace*{-\mdf@innerleftmargin@length}% - \begingroup% - \tikz\draw[mdfsubsubtitlebelowrule] (0,0)% - rectangle (\dimen@,\mdf@subsubtitlebelowlinewidth@length); - \endgroup% - }% - \par\unskip\ifvmode\nointerlineskip\hrule \@height\z@ \@width\hsize\fi% - \vskip\mdf@subsubtitlebelowskip@length - \penalty 9995 - \endgroup -} - \def\mdf@putbox@single{% \ifvoid\mdf@splitbox@one \else% \mdf@makebox@out{% \mdf@makeboxalign@left% \mdf@tikz@settings% - \setlength\mdfboundingboxwidth{\wd\mdf@splitbox@one}% - \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\mdf@splitbox@one+\dp\mdf@splitbox@one\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@predtikzcalc% \mdf@makebox@in[\mdfboundingboxwidth]{% \null% \begin{tikzpicture}[remember picture]% - \pgfmathsetlengthmacro\mdf@Ax{+\mdf@innerleftmargin@length}% - \pgfmathsetlengthmacro\mdf@Ay{+\mdf@innerbottommargin@length}% - \pgfmathsetlengthmacro\mdf@Ox{+0pt}% - \pgfmathsetlengthmacro\mdf@Oy{+0pt}% - \pgfmathsetlengthmacro\mdf@Px{+\mdfboundingboxwidth}% - \pgfmathsetlengthmacro\mdf@Py{+\mdfboundingboxheight}% - \ifbool{mdf@leftline}% - {% - \pgfmathsetlengthmacro\mdf@Ax% - {\mdf@Ax+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\mdf@Ox% - {\mdf@Ox+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@rightline}% - {% - \pgfmathsetlengthmacro\mdf@Px% - {\mdf@Px-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@bottomline}% - {% - \pgfmathsetlengthmacro\mdf@Ay% - {\mdf@Ay+\mdf@outerlinewidth@length+\mdf@middlelinewidth@length% - +\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\mdf@Oy% - {\mdf@Oy+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@topline}% - {% - \pgfmathsetlengthmacro\mdf@Py% - {\mdf@Py-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% + \mdf@innertikzcalc \coordinate(O)at(\mdf@Ox,\mdf@Oy);% \coordinate(P)at(\mdf@Px,\mdf@Py);% \ifbool{mdf@shadow} {\path[mdfshadow,mdfcorners](O) rectangle (P);}{}% - \begin{scope} - \begin{scope}[use as bounding box] - \mdf@test@ltrb{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)--cycle}}{}% - \mdf@test@ltb{\mdf@tikzbox@tfl{(P|-O)--(O)--(O|-P)--(P)}}{}% - \mdf@test@trb{\mdf@tikzbox@tfl{(O|-P)--(P)--(P|-O)--(O)}}{}% - \mdf@test@ltr{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)}}{}% - \mdf@test@lrb{\mdf@tikzbox@tfl{(P-|O)--(O)--(O-|P)--(P)}}{}% - \mdf@test@lb{\mdf@tikzbox@otl{(P|-O)--(O)--(O|-P)}% - {(P)--(P|-O)[mdfcorners]--(O)--(O|-P)}% - }{}% - \mdf@test@rb{\mdf@tikzbox@otl{(P)--(P|-O)--(O)}% - {(O|-P)--(P)[mdfcorners]--(P|-O)--(O)}% - }{}% - \mdf@test@tr{\mdf@tikzbox@otl{(O-|P)--(P)--(P-|O)}% - {(O)--(O|-P)[mdfcorners]--(P)--(P|-O)}% - }{}% - \mdf@test@lt{\mdf@tikzbox@otl{(O)--(O|-P)--(P)}% - {(P|-O)--(O)[mdfcorners]--(O|-P)--(P)}% - }{}% - \mdf@test@lr{\mdf@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@tb{\mdf@tikzbox@otl{(O)--(O-|P)(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@l{\mdf@tikzbox@otl{(O)--(O|-P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@r{\mdf@tikzbox@otl{(O-|P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@t{\mdf@tikzbox@otl{(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@b{\mdf@tikzbox@otl{(O)--(O-|P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@noline{\path[mdfbackground,mdfcorners](O)rectangle(P);}{}% - %Frametitlebackground + \begin{scope} + \begin{scope}[use as bounding box] + \mdf@drawframe@whole \drawbrackgroundframetitle@single - \end{scope} - \node[mdfbox]at(\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@one};%output - \end{scope} - %HIER KOMMT EIN WEITERES MAKRO - \mdf@singleextra - \mdfcreateextratikz + \end{scope} + \node[mdfbox] (mdfframe) at(\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@one}; + \end{scope} + %HIER KOMMT EIN WEITERES MAKRO + \mdf@extra% + \mdf@singleextra% + \mdfcreateextratikz \end{tikzpicture}% }% \mdf@makeboxalign@right% }% - \fi + \fi% }% + \def\drawbrackgroundframetitle@single{% \ifdefempty{\mdf@frametitle}{}{% \drawbrackgroundframetitle@@single% }% }% \def\drawbrackgroundframetitle@@single{% - \begin{scope}%background frame title - \ifbool{mdf@leftline}{ - \pgfmathsetlengthmacro\mdf@Ox% - {\mdf@Ox+\mdf@innerlinewidth@length+0.5\mdf@middlelinewidth@length} - }{}% - \ifbool{mdf@rightline}{% - \pgfmathsetlengthmacro\mdf@Px% - {\mdf@Px-\mdf@innerlinewidth@length-0.5\mdf@middlelinewidth@length} - }{}% - \ifbool{mdf@topline}{% - \pgfmathsetlengthmacro\mdf@Py% - {\mdf@Py-\mdf@innerlinewidth@length-0.5\mdf@middlelinewidth@length} - }{}% - \pgfmathsetlengthmacro\mdf@Fy - {\mdf@Py-\mdfframetitleboxtotalheight} - \path[mdfframetitlebackground] - (\mdf@Ox,\mdf@Fy) -- (\mdf@Ox,\mdf@Py)% - --(\mdf@Px,\mdf@Py) --(\mdf@Px,\mdf@Fy); - \end{scope} + \begin{scope}%background frame title + \ifbool{mdf@leftline}{ + \pgfmathsetlengthmacro\mdf@Ox% + {\mdf@Ox+\mdf@innerlinewidth@length+0.5\mdf@middlelinewidth@length}% + }{}% + \ifbool{mdf@rightline}{% + \pgfmathsetlengthmacro\mdf@Px% + {\mdf@Px-\mdf@innerlinewidth@length-0.5\mdf@middlelinewidth@length}% + }{}% + \ifbool{mdf@topline}{% + \pgfmathsetlengthmacro\mdf@Py% + {\mdf@Py-\mdf@innerlinewidth@length-0.5\mdf@middlelinewidth@length}% + }{}% + \pgfmathsetlengthmacro\mdf@Fy% + {\mdf@Py-\mdfframetitleboxtotalheight}% + \path[mdfframetitlebackground]% + (\mdf@Ox,\mdf@Fy)--(\mdf@Ox,\mdf@Py)--(\mdf@Px,\mdf@Py)--(\mdf@Px,\mdf@Fy); + \end{scope} } \def\drawbrackgroundframetitle@first{% {% @@ -475,7 +306,7 @@ +\mdf@frametitlebelowskip@length +\mdf@splitbottomskip@length %% +\mdf@splittopskip@length - -\dp\strutbox% +%% -\dp\strutbox% }% }% }% @@ -508,156 +339,54 @@ \else% \mdf@makebox@out{% \mdf@makeboxalign@left% + %Special for first frame -- used other savebox + \let\mdf@splitbox@one\mdf@splitbox@two% \mdf@tikz@settings% - \setlength\mdfboundingboxwidth{\wd\mdf@splitbox@two}% - \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\mdf@splitbox@two+\dp\mdf@splitbox@two\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}{}% -%%%%%%%%% - \ifbool{mdf@everyline}{% + %Special for first frame -- no innerbottommargin but splitbottomskip + \let\mdf@innerbottommargin@length\mdf@splitbottomskip@length + \mdf@predtikzcalc%calc with all lines + %Special for first frame -- no bottom line without everyline true + % if every line false -- test if bottomline is in use and remove the width + \ifbool{mdf@everyline}{}{% \ifbool{mdf@bottomline}{% - \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}}{}% ??? + \mdf@dolist{\mdf@advancelength@sub{\mdfboundingboxheight}}% + {innerlinewidth,middlelinewidth,outerlinewidth}}{}% + }% \ifdimgreater{\pagegoal-\maxdimen}{0pt}{}{\enlargethispage{\baselineskip}}% \mdf@makebox@in[\mdfboundingboxwidth]{% \null% \begin{tikzpicture}[remember picture] - \pgfmathsetlengthmacro\mdf@Ax{+\mdf@innerleftmargin@length}% - \pgfmathsetlengthmacro\mdf@Ay{+\mdf@splitbottomskip@length}% - \pgfmathsetlengthmacro\mdf@Ox{+0pt}% - \pgfmathsetlengthmacro\mdf@Oy{+0pt}% - \pgfmathsetlengthmacro\mdf@Px{+\mdfboundingboxwidth}% - \pgfmathsetlengthmacro\mdf@Py{+\mdfboundingboxheight}% - \ifbool{mdf@leftline} - {% - \pgfmathsetlengthmacro\mdf@Ax% - {\mdf@Ax+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\mdf@Ox% - {\mdf@Ox+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@rightline}{% - \pgfmathsetlengthmacro\mdf@Px% - {\mdf@Px-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@topline}{% - \pgfmathsetlengthmacro\mdf@Py% - {\mdf@Py-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% -%% - \ifbool{mdf@everyline}{% - \ifbool{mdf@bottomline}% - {% - \pgfmathsetlengthmacro\mdf@Ay% - {\mdf@Ay+\mdf@outerlinewidth@length+\mdf@middlelinewidth@length% - +\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\mdf@Oy% - {\mdf@Oy+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - }{}% -%% + \mdf@innertikzcalc + %Special for first frame -- no bottom line without everyline true + \ifbool{mdf@everyline}{}{% + \ifbool{mdf@bottomline}% + {% + \pgfmathsetlengthmacro\mdf@Ay% + {\mdf@Ay-\mdf@outerlinewidth@length-\mdf@middlelinewidth@length% + -\mdf@innerlinewidth@length}% + \pgfmathsetlengthmacro\mdf@Oy% + {\mdf@Oy-\mdf@outerlinewidth@length + -0.5\mdf@middlelinewidth@length}% + }{}% + }% \coordinate(O)at(\mdf@Ox,\mdf@Oy);% \coordinate(P)at(\mdf@Px,\mdf@Py);% \ifbool{mdf@shadow} {\path[mdfshadow] (O) -- (O|-P) to[mdfcorners] (P) -- (P|-O) -- (O);}{}% - \begin{scope} - \begin{scope}[use as bounding box] -%%%%%%%%%%%% - \ifbool{mdf@everyline}{% - \mdf@test@ltrb{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)--cycle}}{}% - \mdf@test@ltb{\mdf@tikzbox@tfl{(P|-O)--(O)--(O|-P)--(P)}}{}% - \mdf@test@trb{\mdf@tikzbox@tfl{(O|-P)--(P)--(P|-O)--(O)}}{}% - \mdf@test@ltr{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)}}{}% - \mdf@test@lrb{\mdf@tikzbox@tfl{(P-|O)--(O)--(O-|P)--(P)}}{}% - \mdf@test@lb{\mdf@tikzbox@otl{(P|-O)--(O)--(O|-P)}% - {(P)--(P|-O)[mdfcorners]--(O)--(O|-P)}% - }{}% - \mdf@test@rb{\mdf@tikzbox@otl{(P)--(P|-O)--(O)}% - {(O|-P)--(P)[mdfcorners]--(P|-O)--(O)}% - }{}% - \mdf@test@tr{\mdf@tikzbox@otl{(O-|P)--(P)--(P-|O)}% - {(O)--(O|-P)[mdfcorners]--(P)--(P|-O)}% - }{}% - \mdf@test@lt{\mdf@tikzbox@otl{(O)--(O|-P)--(P)}% - {(P|-O)--(O)[mdfcorners]--(O|-P)--(P)}% - }{}% - \mdf@test@lr{\mdf@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@tb{\mdf@tikzbox@otl{(O)--(O-|P)(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@l{\mdf@tikzbox@otl{(O)--(O|-P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@r{\mdf@tikzbox@otl{(O-|P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@t{\mdf@tikzbox@otl{(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@b{\mdf@tikzbox@otl{(O)--(O-|P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@noline{\path[mdfbackground,mdfcorners](O)rectangle(P);}{}% - }{ - \ifboolexpr{test {\mdf@test@ltrb} or test {\mdf@test@ltr}}% - {\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)}}% - {}% - \ifboolexpr{test {\mdf@test@ltb} or test {\mdf@test@lt}}% - {% - \mdf@tikzbox@otl{(O)--(O|-P)--(P)} - {(P|-O)--(O)[mdfcorners]--(O|-P)--(P)} - }% - {}% - \ifboolexpr{test {\mdf@test@trb} or test {\mdf@test@tr}}% - {% - \mdf@tikzbox@otl{(O-|P)--(P)--(P-|O)}% - {(O)--(O|-P)[mdfcorners]--(P)--(P|-O)}}% - {}% - \ifboolexpr{test {\mdf@test@lrb} or test {\mdf@test@lr}}% - {\mdf@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\mdf@test@tb} or test {\mdf@test@t}}% - {\mdf@tikzbox@otl{(O|-P)--(P)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\mdf@test@lb} or test {\mdf@test@l}}% - {\mdf@tikzbox@otl{(O)--(O|-P)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\mdf@test@rb} or test {\mdf@test@r}}% - {\mdf@tikzbox@otl{(O-|P)--(P)}{(O)rectangle(P)}}% - {}% - \mdf@test@b{\path[mdfbackground](O)rectangle(P);}{}% - \mdf@test@noline{\path[mdfbackground,mdfcorners]% - (O)--(O|-P)--(P)--(P|-O);}% - {}% - } -%%%%%%%%%%%% + \begin{scope} + \begin{scope}[use as bounding box] + %Special for first frame + \ifbool{mdf@everyline}{}{% + \mdfsetup{bottomline=false}% + } + \mdf@drawframe@whole \drawbrackgroundframetitle@first \end{scope} - \node[mdfbox]at(\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@two};% + \node[mdfbox] (mdfframe) at(\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@two};% \end{scope} %HIER KOMMT EIN WEITERES MAKRO - \mdf@firstextra + \mdf@extra% + \mdf@firstextra% \mdfcreateextratikz% \end{tikzpicture}% }% @@ -742,136 +471,62 @@ \def\mdf@putbox@middle{% \ifvoid\mdf@splitbox@two \else% - \mdf@makebox@out{% + \mdf@makebox@out{% \mdf@makeboxalign@left% \mdf@tikz@settings% - \setlength\mdfboundingboxwidth{\wd\mdf@splitbox@two}% - \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\mdf@splitbox@two+\dp\mdf@splitbox@two\relax}% - \advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax% -%%%%%%%%% - \ifbool{mdf@everyline}{% - \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}{}% - }{}% -%%%%%%%%%%%%%% + %Special for middle frame -- used other savebox + \let\mdf@splitbox@one\mdf@splitbox@two% + %Special for middle frame -- no innertopmargin -- done by splittopskip + % in box and no bottommargin instead splitbottomskip + \setlength{\mdf@innertopmargin@length}{\z@}% + \let\mdf@innerbottommargin@length\mdf@splitbottomskip@length + \mdf@predtikzcalc% + %Special for middle frame -- remove topline and bottomline if no everyline + \ifbool{mdf@everyline}{}{% + \ifbool{mdf@topline}{% + \mdf@dolist{\mdf@advancelength@sub{\mdfboundingboxheight}}% + {innerlinewidth,middlelinewidth,outerlinewidth}}{}% + \ifbool{mdf@bottomline}{% + \mdf@dolist{\mdf@advancelength@sub{\mdfboundingboxheight}}% + {innerlinewidth,middlelinewidth,outerlinewidth}}{}% + }% \mdf@makebox@in[\mdfboundingboxwidth]{% \null% \begin{tikzpicture}[remember picture] - \pgfmathsetlengthmacro\mdf@Ax{+\mdf@innerleftmargin@length}% - \pgfmathsetlengthmacro\mdf@Ay{+\mdf@splitbottomskip@length}% - \pgfmathsetlengthmacro\mdf@Ox{+0pt}% - \pgfmathsetlengthmacro\mdf@Oy{+0pt}% - \pgfmathsetlengthmacro\mdf@Px{+\mdfboundingboxwidth}% - \pgfmathsetlengthmacro\mdf@Py{+\mdfboundingboxheight}% - \ifbool{mdf@leftline}% - {% - \pgfmathsetlengthmacro\mdf@Ax% - {\mdf@Ax+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\mdf@Ox% - {\mdf@Ox+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@rightline}% - {% - \pgfmathsetlengthmacro\mdf@Px% - {\mdf@Px-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% -%% - \ifbool{mdf@everyline}{% - \ifbool{mdf@bottomline}% - {% - \pgfmathsetlengthmacro\mdf@Ay% - {\mdf@Ay+\mdf@outerlinewidth@length+\mdf@middlelinewidth@length% - +\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\mdf@Oy% - {\mdf@Oy+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% + \mdf@innertikzcalc% + %Special for middle frame + \ifbool{mdf@everyline}{}{% + \ifbool{mdf@bottomline}% + {% + \pgfmathsetlengthmacro\mdf@Ay% + {\mdf@Ay-\mdf@outerlinewidth@length-\mdf@middlelinewidth@length% + -\mdf@innerlinewidth@length}% + \pgfmathsetlengthmacro\mdf@Oy% + {\mdf@Oy-\mdf@outerlinewidth@length + -0.5\mdf@middlelinewidth@length}% + }{}% \ifbool{mdf@topline}% {% \pgfmathsetlengthmacro\mdf@Py% {\mdf@Py-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% }{}% - }{}% -%% + }{}% \coordinate(O)at(\mdf@Ox,\mdf@Oy);% \coordinate(P)at(\mdf@Px,\mdf@Py);% - \ifbool{mdf@shadow} - {\path[mdfshadow](O) rectangle (P);}{}% - \begin{scope} - \begin{scope}[use as bounding box] -%%%%%%%%%%%% - \ifbool{mdf@everyline}{% - \mdf@test@ltrb{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)--cycle}}{}% - \mdf@test@ltb{\mdf@tikzbox@tfl{(P|-O)--(O)--(O|-P)--(P)}}{}% - \mdf@test@trb{\mdf@tikzbox@tfl{(O|-P)--(P)--(P|-O)--(O)}}{}% - \mdf@test@ltr{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)}}{}% - \mdf@test@lrb{\mdf@tikzbox@tfl{(P-|O)--(O)--(O-|P)--(P)}}{}% - \mdf@test@lb{\mdf@tikzbox@otl{(P|-O)--(O)--(O|-P)}% - {(P)--(P|-O)[mdfcorners]--(O)--(O|-P)}% - }{}% - \mdf@test@rb{\mdf@tikzbox@otl{(P)--(P|-O)--(O)}% - {(O|-P)--(P)[mdfcorners]--(P|-O)--(O)}% - }{}% - \mdf@test@tr{\mdf@tikzbox@otl{(O-|P)--(P)--(P-|O)}% - {(O)--(O|-P)[mdfcorners]--(P)--(P|-O)}% - }{}% - \mdf@test@lt{\mdf@tikzbox@otl{(O)--(O|-P)--(P)}% - {(P|-O)--(O)[mdfcorners]--(O|-P)--(P)}% - }{}% - \mdf@test@lr{\mdf@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@tb{\mdf@tikzbox@otl{(O)--(O-|P)(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@l{\mdf@tikzbox@otl{(O)--(O|-P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@r{\mdf@tikzbox@otl{(O-|P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@t{\mdf@tikzbox@otl{(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@b{\mdf@tikzbox@otl{(O)--(O-|P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@noline{\path[mdfbackground,mdfcorners](O)rectangle(P);}{}% - }{ - \ifboolexpr{bool {mdf@leftline} and bool {mdf@rightline}}% - {\mdf@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}{(O)rectangle(P)}}{}% - \ifboolexpr{bool {mdf@leftline} and not (bool {mdf@rightline})}% - {\mdf@tikzbox@otl{(O)--(O|-P)}{(O)rectangle(P)}}{}% - \ifboolexpr{not (bool {mdf@leftline}) and bool {mdf@rightline}}% - {\mdf@tikzbox@otl{(P)--(P|-O)}{(O)rectangle(P)}}{}% - \ifboolexpr{not (bool {mdf@leftline}) and not (bool {mdf@rightline})}% - {\path[mdfbackground](O)rectangle(P);}{}% - } -%%%%%%%% - \drawbrackgroundframetitle@middle - \end{scope} - \node[mdfbox]at(\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@two};% - \end{scope} - \mdf@middleextra - %HIER KOMMT EIN WEITERES MAKRO - \mdfcreateextratikz + \ifbool{mdf@shadow}{\path[mdfshadow](O) rectangle (P);}{}% + \begin{scope} + \begin{scope}[use as bounding box] + %%Special for middle frame + \ifbool{mdf@everyline}{}{\mdfsetup{topline=false,bottomline=false}}% + \mdf@drawframe@whole + \drawbrackgroundframetitle@middle + \end{scope} + \node[mdfbox] (mdfframe) at(\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@two};% + \end{scope} + \mdf@extra% + \mdf@middleextra% + %HIER KOMMT EIN WEITERES MAKRO + \mdfcreateextratikz \end{tikzpicture}% }% \mdf@makeboxalign@right% @@ -919,16 +574,16 @@ }% \def\drawbrackgroundframetitle@@second{% \begin{scope}%background frame title - \ifbool{mdf@leftline}{ + \ifbool{mdf@leftline}{% \pgfmathsetlengthmacro\mdf@Ox% {\mdf@Ox+\mdf@innerlinewidth@length+0.5\mdf@middlelinewidth@length} }{}% \ifbool{mdf@rightline}{% \pgfmathsetlengthmacro\mdf@Px% - {\mdf@Px-\mdf@innerlinewidth@length-0.5\mdf@middlelinewidth@length} + {\mdf@Px-\mdf@innerlinewidth@length-0.5\mdf@middlelinewidth@length}% }{}% \pgfmathsetlengthmacro\mdf@Fy - {\mdf@Py-\mdfframetitleboxtotalheight} + {\mdf@Py-\mdfframetitleboxtotalheight}% \path[mdfframetitlebackground,rounded corners=\z@] (\mdf@Ox,\mdf@Fy) -- (\mdf@Ox,\mdf@Py)% --(\mdf@Px,\mdf@Py) --(\mdf@Px,\mdf@Fy); @@ -937,165 +592,112 @@ \def\mdf@putbox@second{% \ifvoid\mdf@splitbox@one \else% - \mdf@makebox@out{% + \mdf@makebox@out{% \mdf@makeboxalign@left% \mdf@tikz@settings% - \setlength\mdfboundingboxwidth{\wd\mdf@splitbox@one}% - \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\mdf@splitbox@one+\dp\mdf@splitbox@one\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}{}% -%%%%%%%%% - \ifbool{mdf@everyline}{% + %Special for middle frame -- no innertopmargin -- done by splittopskip + \setlength{\mdf@innertopmargin@length}{\z@}% + \mdf@predtikzcalc% + %Special for second frame -- no top line without everyline true + \ifbool{mdf@everyline}{}{% \ifbool{mdf@topline}{% - \advance\mdfboundingboxheight by \mdf@innerlinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax% - \advance\mdfboundingboxheight by \mdf@outerlinewidth@length\relax}{}% - }{}% -%%%%%%%%%%%%%% + \mdf@dolist{\mdf@advancelength@sub{\mdfboundingboxheight}}% + {innerlinewidth,middlelinewidth,outerlinewidth}}{}% + }% \mdf@makebox@in[\mdfboundingboxwidth]{% \null% \begin{tikzpicture}[remember picture] - \pgfmathsetlengthmacro\mdf@Ax{+\mdf@innerleftmargin@length}% - \pgfmathsetlengthmacro\mdf@Ay{+\mdf@innerbottommargin@length}% - \pgfmathsetlengthmacro\mdf@Ox{+0pt}% - \pgfmathsetlengthmacro\mdf@Oy{+0pt}% - \pgfmathsetlengthmacro\mdf@Px{+\mdfboundingboxwidth}% - \pgfmathsetlengthmacro\mdf@Py{+\mdfboundingboxheight}% - \ifbool{mdf@leftline}% - {% - \pgfmathsetlengthmacro\mdf@Ax% - {\mdf@Ax+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\mdf@Ox% - {\mdf@Ox+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@rightline}% - {% - \pgfmathsetlengthmacro\mdf@Px% - {\mdf@Px-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% - }{}% - \ifbool{mdf@bottomline}% - {% - \pgfmathsetlengthmacro\mdf@Ay% - {\mdf@Ay+\mdf@outerlinewidth@length+% - \mdf@middlelinewidth@length+\mdf@innerlinewidth@length}% - \pgfmathsetlengthmacro\mdf@Oy% - {\mdf@Oy+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% - }{}% -%% - \ifbool{mdf@everyline}{% - \ifbool{mdf@topline}% + \mdf@innertikzcalc + %Special for second frame + \ifbool{mdf@everyline}{}{% + \ifbool{mdf@topline}% {% \pgfmathsetlengthmacro\mdf@Py% - {\mdf@Py-\mdf@outerlinewidth@length-0.5\mdf@middlelinewidth@length}% + {\mdf@Py+\mdf@outerlinewidth@length+0.5\mdf@middlelinewidth@length}% }{}% - }{}% -%% + }% \coordinate(O)at(\mdf@Ox,\mdf@Oy);% \coordinate(P)at(\mdf@Px,\mdf@Py);% \ifbool{mdf@shadow} {% - \path[mdfshadow] (O|-P) to[mdfcorners] (O) - to[mdfcorners] (P|-O) -- (P) -- (O|-P);% + \path[mdfshadow] (O|-P) to[mdfcorners] (O) to[mdfcorners] (P|-O) + -- (P) -- (O|-P);% }{}% - \begin{scope} - \begin{scope}[use as bounding box] -%%%%%%%%%%%% - \ifbool{mdf@everyline}{% - \mdf@test@ltrb{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)--cycle}}{}% - \mdf@test@ltb{\mdf@tikzbox@tfl{(P|-O)--(O)--(O|-P)--(P)}}{}% - \mdf@test@trb{\mdf@tikzbox@tfl{(O|-P)--(P)--(P|-O)--(O)}}{}% - \mdf@test@ltr{\mdf@tikzbox@tfl{(O)--(O|-P)--(P)--(P|-O)}}{}% - \mdf@test@lrb{\mdf@tikzbox@tfl{(P-|O)--(O)--(O-|P)--(P)}}{}% - \mdf@test@lb{\mdf@tikzbox@otl{(P|-O)--(O)--(O|-P)}% - {(P)--(P|-O)[mdfcorners]--(O)--(O|-P)}% - }{}% - \mdf@test@rb{\mdf@tikzbox@otl{(P)--(P|-O)--(O)}% - {(O|-P)--(P)[mdfcorners]--(P|-O)--(O)}% - }{}% - \mdf@test@tr{\mdf@tikzbox@otl{(O-|P)--(P)--(P-|O)}% - {(O)--(O|-P)[mdfcorners]--(P)--(P|-O)}% - }{}% - \mdf@test@lt{\mdf@tikzbox@otl{(O)--(O|-P)--(P)}% - {(P|-O)--(O)[mdfcorners]--(O|-P)--(P)}% - }{}% - \mdf@test@lr{\mdf@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@tb{\mdf@tikzbox@otl{(O)--(O-|P)(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@l{\mdf@tikzbox@otl{(O)--(O|-P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@r{\mdf@tikzbox@otl{(O-|P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@t{\mdf@tikzbox@otl{(O|-P)--(P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@b{\mdf@tikzbox@otl{(O)--(O-|P)}% - {(O)rectangle(P)}% - }{}% - \mdf@test@noline{\path[mdfbackground,mdfcorners](O)rectangle(P);}{}% - }{% - \ifboolexpr{test {\mdf@test@ltrb} or test {\mdf@test@lrb}}% - {\mdf@tikzbox@tfl{(P-|O)--(O)--(O-|P)--(P)}}% - {}% - \ifboolexpr{test {\mdf@test@ltb} or test {\mdf@test@lb}}% - {% - \mdf@tikzbox@otl{(P-|O)--(O)--(O-|P)}% - {(P)--(P|-O)[mdfcorners]--(O)--(O|-P)}% - }% - {}% - \ifboolexpr{test {\mdf@test@trb} or test {\mdf@test@rb}}% - {% - \mdf@tikzbox@otl{(P)--(P|-O)--(O)}% - {(O|-P)--(P)[mdfcorners]--(P|-O)--(O)}% - }% - {}% - \ifboolexpr{test {\mdf@test@ltr} or test {\mdf@test@lr}}% - {\mdf@tikzbox@otl{(O)--(O|-P)(P)--(P|-O)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\mdf@test@tb} or test {\mdf@test@b}}% - {\mdf@tikzbox@otl{(O)--(O-|P)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\mdf@test@lt} or test {\mdf@test@l}}% - {\mdf@tikzbox@otl{(O)--(O|-P)}{(O)rectangle(P)}}% - {}% - \ifboolexpr{test {\mdf@test@tr} or test {\mdf@test@r}}% - {\mdf@tikzbox@otl{(O-|P)--(P)}{(O)rectangle(P)}}% - {}% - \mdf@test@t{\path[mdfbackground,mdfcorners](O|-P)--(O)--(O-|P)--(P);}{}% - \mdf@test@noline{\path[mdfbackground,mdfcorners]% - (O|-P)--(O)--(O-|P)--(P);}% - {}% - }% - \drawbrackgroundframetitle@second - \end{scope} - \node[mdfbox] at (\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@one};% - \end{scope} - \mdf@secondextra - %HIER KOMMT EIN WEITERES MAKRO - \mdfcreateextratikz + \begin{scope} + \begin{scope}[use as bounding box] + \ifbool{mdf@everyline}{}{\mdfsetup{topline=false}}% + \mdf@drawframe@whole + \drawbrackgroundframetitle@second + \end{scope} + \node[mdfbox] (mdfframe) at (\mdf@Ax,\mdf@Ay){\box\mdf@splitbox@one};% + \end{scope} + \mdf@extra% + \mdf@secondextra% + %HIER KOMMT EIN WEITERES MAKRO + \mdfcreateextratikz \end{tikzpicture}% }% \mdf@makeboxalign@right% }% - \fi + \fi% }% + +\tikzset{mdfsubtitleaboverule/.style={% + draw=none, + fill=\mdf@subtitleabovelinecolor, + }% +} + +\tikzset{mdfsubtitlebelowrule/.style={% + draw=none, + fill=\mdf@subtitlebelowlinecolor, + }% +} + +\tikzset{mdfsubtitlebackground/.style={% + draw=\mdf@subtitlebackgroundcolor, + fill=\mdf@subtitlebackgroundcolor, + }% +} + +\tikzset{mdfsubsubtitleaboverule/.style={% + draw=none, + fill=\mdf@subsubtitleabovelinecolor, + }% +} + +\tikzset{mdfsubsubtitlebelowrule/.style={% + draw=none, + fill=\mdf@subsubtitlebelowlinecolor, + }% +} + +\tikzset{mdfsubsubtitlebackground/.style={% + draw=none, + fill=\mdf@subsubtitlebackgroundcolor, + }% +} + +\def\mdf@drawsubtitleaboveline{% + \rlap{% + \hspace*{-\mdf@innerleftmargin@length}% + \tikz\draw[mdfsubsubtitleaboverule](0,0) rectangle + (\mdf@templength,\mdf@subtitleabovelinewidth@length);% + }% +} +\def\mdf@drawsubtitlebelowline{% + \rlap{% + \hspace*{-\mdf@innerleftmargin@length}% + \tikz\draw[mdfsubsubtitleaboverule](0,0) rectangle + (\mdf@templength,\mdf@subtitlebelowlinewidth@length);% + }% +} +\def\mdf@drawsubtitlebackground{% + \rlap{% + \hspace*{-\mdf@innerleftmargin@length}% + \tikz\draw[overlay,mdfsubtitlebackground](0,0) rectangle + (\mdf@templength,-\mdfsubtitleheight);% + }% +} + \endinput |