diff options
author | Karl Berry <karl@freefriends.org> | 2011-08-11 01:43:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-08-11 01:43:52 +0000 |
commit | afd21711dd0891ff8e4fd6d150940e1c5d76ae11 (patch) | |
tree | a89f60e022dba9a302bf11797a4c5b30a2a41065 /Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf | |
parent | 551e2b604cefbc84c58f167073a6a7ded007737e (diff) |
mdframed 0.7a (10aug11)
git-svn-id: svn://tug.org/texlive/trunk@23490 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf')
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf | 1236 |
1 files changed, 351 insertions, 885 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf index ff65c795a84..4e26413d546 100644 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf +++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf @@ -8,936 +8,402 @@ %% Public License, as described in lppl.txt in the base LaTeX distribution. %% Either version 1.0 or, at your option, any later version. -%%$Id: md-frame-3.mdf 105 2010-12-22 16:50:44Z marco $ -%%$Rev: 105 $ +%%$Id: md-frame-3.mdf 161 2011-08-06 11:28:15Z marco $ +%%$Rev: 161 $ %%$Author: marco $ -%%$Date: 2010-12-22 17:50:44 +0100 (Mi, 22. Dez 2010) $ +%%$Date: 2011-08-06 13:28:15 +0200 (Sa, 06. Aug 2011) $ %%Allgemeine Einstellungen fuer pstricks %%Hier nur einfacher Rahmen mit Einstellungen -\def\mdversion{v0.6a} \def\mdframedIIIpackagename{md-frame-3} \def\md@frameIIIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } -\ProvidesFile{md-frame-3.mdf}[\md@frameIIIdate@svn$Id: md-frame-3.mdf 105 2010-12-22 16:50:44Z marco $ \mdversion: \mdframedIIIpackagename] +\ProvidesFile{md-frame-3.mdf}[\md@frameIIIdate@svn$Id: md-frame-3.mdf 161 2011-08-06 11:28:15Z marco $ \mdversion: \mdframedIIIpackagename] \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})}} +%3-set +\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})}} +%2-set +\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})}} +%Einzellinien +\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} ) }} +%%==================================================%% +%%================single-box========================%% +%%==================================================%% \def\md@putbox@single{% \leftline{\null\hspace*{\mdf@leftmargin@length}%% - \setlength\mdfboxwidth{\wd\@tempboxa}% - \setlength\mdfboxheight{\ht\@tempboxa+\dp\@tempboxa}% - \setlength{\mdfboundingboxheight}{% - \mdfboxheight% - +\mdf@innertopmargin@length% - +\mdf@innerbottommargin@length% -% +\mdf@middlelinewidth@length% -% +\mdf@middlelinewidth@length% - }% - \ifbool{mdf@topline}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length}}{}% - \ifbool{mdf@bottomline}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length}}{}% - \setlength{\mdfboundingboxwidth}{% - \mdfboxwidth% - +\mdf@innerleftmargin@length% - +\mdf@innerrightmargin@length% -% +\mdf@middlelinewidth@length% -% +\mdf@middlelinewidth@length% - }% - \ifbool{mdf@leftline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}% - \ifbool{mdf@rightline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}% - \psset{linearc=\mdf@roundcorner@length,cornersize=absolute,}% + \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% + \setlength\mdfboundingboxwidth{\wd\@tempboxa}% + \setlength\mdfboundingboxheight{\ht\@tempboxa+\dp\@tempboxa}% + \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}% - \begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight) - \ifboolexpr{ bool {mdf@topline} and bool {mdf@bottomline} - and bool {mdf@leftline} and bool {mdf@rightline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,\mdf@middlelinewidth@length)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg add %Y-Koord - ) - \psframe[linewidth=\mdf@middlelinewidth@length, - linecolor=\mdf@linecolor, - cornersize=absolute, - fillstyle=none,]% - (0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ bool {mdf@topline} and bool {mdf@bottomline} - and not (bool {mdf@leftline}) and bool {mdf@rightline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,\mdf@middlelinewidth@length)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg add %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! 0 %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! 0 %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - \rput(!\ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ bool {mdf@topline} and bool {mdf@bottomline} - and bool {mdf@leftline} and not( bool {mdf@rightline}) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,\mdf@middlelinewidth@length)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg add %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ not( bool {mdf@topline}) and bool {mdf@bottomline} - and bool {mdf@leftline} and bool {mdf@rightline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,\mdf@middlelinewidth@length)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ bool {mdf@topline} and not (bool {mdf@bottomline}) - and bool {mdf@leftline} and bool {mdf@rightline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg add %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ not( bool {mdf@topline}) and not (bool {mdf@bottomline}) - and bool {mdf@leftline} and bool {mdf@rightline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} - )% - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ bool {mdf@topline} and bool {mdf@bottomline} - and not (bool {mdf@leftline}) and not(bool {mdf@rightline}) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,\mdf@middlelinewidth@length)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg add %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! 0 %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! 0 %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - \rput(!\ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ not( bool {mdf@topline}) and not (bool {mdf@bottomline}) - and bool {mdf@leftline} and not( bool {mdf@rightline}) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ not( bool {mdf@topline}) and not (bool {mdf@bottomline}) - and not(bool {mdf@leftline}) and bool {mdf@rightline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (!0 0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - \rput(! \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ not( bool {mdf@topline}) and bool {mdf@bottomline} - and not (bool {mdf@leftline}) and not(bool {mdf@rightline}) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,\mdf@middlelinewidth@length)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! 0 %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - \rput(!\ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ bool {mdf@topline} and not (bool {mdf@bottomline}) - and not (bool {mdf@leftline}) and not(bool {mdf@rightline}) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,0)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg add %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! 0 %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - \rput(!\ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\@tempboxa} - }{}% \psgrid + \psset{unit=1truecm}% + \begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight) + \md@test@ltrb{% + \psframe[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! 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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! 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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! 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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% + (! \ptTps{\mdfboundingboxwidth} \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) + }{}% + \ifbool{mdf@topline}{% + \psline[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! 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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% + (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul \ptTps{\mdfboundingboxheight} )% + }{}% + \ifbool{mdf@rightline}{% + \psline[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linecolor=\mdf@backgroundcolor,fillstyle=solid,% + fillcolor=\mdf@backgroundcolor,linestyle=solid, + linewidth=\mdf@middlelinewidth@length,dimen=outer]% + (!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}% }% } - - - - - +%%==================================================%% +%%================first-box=========================%% +%%==================================================%% \def\md@putbox@first{% \leftline{\null\hspace*{\mdf@leftmargin@length}%% - \setlength\mdfboxwidth{\wd\tw@}% - \setlength\mdfboxheight{\ht\tw@+\dp\tw@}% - \setlength{\mdfboundingboxheight}{% - +\mdfboxheight% - +\mdf@innertopmargin@length% - +\mdf@splitbottomskip@length% - }% - \ifbool{mdf@topline}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length}}{}% - \setlength{\mdfboundingboxwidth}{% - +\mdf@innerleftmargin@length% - +\mdfboxwidth - +\mdf@innerrightmargin@length% - }% - \ifbool{mdf@leftline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}% - \ifbool{mdf@rightline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}% - \psset{linearc=\mdf@roundcorner@length}% + \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% + \setlength\mdfboundingboxwidth{\wd\tw@}% + \setlength\mdfboundingboxheight{\ht\tw@+\dp\tw@}% + \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}% \psset{unit=1truecm}% \ifdimgreater{\mdfboundingboxheight}{\vsize} {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)} {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)} - \ifboolexpr{ bool {mdf@topline} and bool {mdf@rightline} - and bool {mdf@leftline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg add %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% - \ifboolexpr{ not( bool {mdf@topline}) and bool {mdf@rightline} - and bool {mdf@leftline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% - \ifboolexpr{ not( bool {mdf@topline}) and not(bool {mdf@rightline}) - and bool {mdf@leftline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% - \ifboolexpr{ not( bool {mdf@topline}) and bool {mdf@rightline} - and not( bool {mdf@leftline} ) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - \rput(!\ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% - \ifboolexpr{ bool {mdf@topline} and not(bool {mdf@rightline}) - and not(bool {mdf@leftline} ) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,0)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} neg add %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! 0 %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %Y-Koord - )% - \rput(! \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% - \ifboolexpr{ not(bool {mdf@topline}) and not(bool {mdf@rightline}) - and not(bool {mdf@leftline} ) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,0)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \rput(! \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% + %Hintergrund + \psline[linecolor=\mdf@backgroundcolor,fillstyle=solid,linestyle=solid, + linearc={\dimexpr\mdf@roundcorner@length-\mdf@middlelinewidth@length\relax}, + fillcolor=\mdf@backgroundcolor,linewidth=\mdf@middlelinewidth@length]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! 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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! 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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% + (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul \ptTps{\mdfboundingboxheight} )% + }{}% + \ifbool{mdf@rightline}{% + \psline[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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}% }% } - +%%==================================================%% +%%================middle-box========================%% +%%==================================================%% \def\md@putbox@middle{% \leftline{\null\hspace*{\mdf@leftmargin@length}%% - \setlength\mdfboxwidth{\wd\tw@}% - \setlength\mdfboxheight{\ht\tw@+\dp\tw@}% - \setlength{\mdfboundingboxheight}{% - +\mdfboxheight% - +\mdf@splitbottomskip@length% - }% - \setlength{\mdfboundingboxwidth}{% - +\mdf@innerleftmargin@length% - +\mdfboxwidth% - +\mdf@innerrightmargin@length% - }% - \ifbool{mdf@leftline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}% - \ifbool{mdf@rightline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}% + \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% + \setlength\mdfboundingboxwidth{\wd\tw@}% + \setlength\mdfboundingboxheight{\ht\tw@+\dp\tw@}% + \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}% + \psset{linearc=\mdf@roundcorner@length,cornersize=absolute}% \psset{unit=1truecm}% \ifdimgreater{\mdfboundingboxheight}{\vsize} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)} - {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)} - \ifboolexpr{ bool {mdf@rightline} and bool {mdf@leftline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% - \ifboolexpr{ bool {mdf@rightline} and not(bool {mdf@leftline}) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \rput(! \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% - \ifboolexpr{ not( bool {mdf@rightline}) and bool {mdf@leftline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% - \ifboolexpr{( - not(bool {mdf@rightline}) and not(bool {mdf@leftline}) - and bool {mdf@topline} and not( bool {mdf@bottomline}) - ) - or - ( - not(bool {mdf@rightline}) and not(bool {mdf@leftline}) - and not (bool {mdf@topline}) and not( bool {mdf@bottomline}) - ) - or - ( - not(bool {mdf@rightline}) and not(bool {mdf@leftline}) - and not (bool {mdf@topline}) and bool {mdf@bottomline} - ) - or - ( - not(bool {mdf@rightline}) and not(bool {mdf@leftline}) - and bool {mdf@topline} and bool {mdf@bottomline} - ) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,0)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \rput(! \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@splitbottomskip@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\tw@} - }{}% + {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)} + {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)} + \ifbool{mdf@leftline}{% + \psline[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% + (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul \ptTps{\mdfboundingboxheight} )% + }{}% + \ifbool{mdf@rightline}{% + \psline[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linecolor=\mdf@backgroundcolor,fillstyle=solid,% + fillcolor=\mdf@backgroundcolor,linestyle=solid, + linewidth=\mdf@middlelinewidth@length,dimen=outer,% + 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}% }% } - +%%==================================================%% +%%=================last-box=========================%% +%%==================================================%% \def\md@putbox@second{ \leftline{\null\hspace*{\mdf@leftmargin@length}%% - \setlength\mdfboxwidth{\wd\@tempboxa}% - \setlength\mdfboxheight{\ht\@tempboxa+\dp\@tempboxa}% - \setlength{\mdfboundingboxheight}{% - +\mdfboxheight% - +\mdf@innerbottommargin@length% - }% - \ifbool{mdf@bottomline}{\addtolength{\mdfboundingboxheight}{\mdf@middlelinewidth@length}}{}% - \setlength{\mdfboundingboxwidth}{% - +\mdf@innerleftmargin@length% - +\mdfboxwidth - +\mdf@innerrightmargin@length% - }% - \ifbool{mdf@leftline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}% - \ifbool{mdf@rightline}{\addtolength{\mdfboundingboxwidth}{\mdf@middlelinewidth@length}}{}% - \expandafter\psset\expandafter{\mdf@psset@local} - \psset{linearc=\mdf@roundcorner@length}% - \psset{unit=1truecm}% - \begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight) - \ifboolexpr{ bool {mdf@bottomline} and bool {mdf@rightline} - and bool {mdf@leftline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,\mdf@middlelinewidth@length)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ not( bool {mdf@bottomline}) and bool {mdf@rightline} - and bool {mdf@leftline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ not( bool {mdf@bottomline}) and not(bool {mdf@rightline}) - and bool {mdf@leftline} - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (\mdf@middlelinewidth@length,0)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - (! \ptTps{\mdf@middlelinewidth@length} 0.5 mul %X-Koord - 0 %Y-Koord - )% - \rput(! \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add add %X-Koord - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ not( bool {mdf@bottomline}) and bool {mdf@rightline} - and not(bool {mdf@leftline}) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,0)% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - 0 %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} - \ptTps{\mdf@middlelinewidth@length} 0.5 mul neg add %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - )% - \rput(! \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ bool {mdf@bottomline} and not(bool {mdf@rightline}) - and not(bool {mdf@leftline}) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,\mdf@middlelinewidth@length)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \psline[linewidth=\mdf@middlelinewidth, - linecolor=\mdf@linecolor,fillstyle=none,]% - (! 0 %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdf@middlelinewidth@length} 0.5 mul %Y-Koord - )% - \rput(! \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@middlelinewidth@length} - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add add %Y-Koord - ){\box\@tempboxa} - }{}% - \ifboolexpr{ not(bool {mdf@bottomline}) and not(bool {mdf@rightline}) - and not(bool {mdf@leftline}) - }% - {\psframe[linecolor=\mdf@backgroundcolor,fillstyle=solid,% - fillcolor=\mdf@backgroundcolor,linestyle=solid, - linewidth=\mdf@middlelinewidth@length]% - (0,0)% - (! \ptTps{\mdfboundingboxwidth} %X-Koord - \ptTps{\mdfboundingboxheight} %Y-Koord - ) - \rput(! \ptTps{\mdf@innerleftmargin@length} - \ptTps{\mdfboxwidth} 0.5 mul add %X-Koord - \ptTps{\mdf@innerbottommargin@length} - \ptTps{\mdfboxheight} 0.5 mul add %Y-Koord - ){\box\@tempboxa} - }{}% + \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}% + \setlength\mdfboundingboxwidth{\wd\@tempboxa}% + \setlength\mdfboundingboxheight{\ht\@tempboxa+\dp\@tempboxa}% + \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}% + \begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight) + %Hintergrund + \psline[linecolor=\mdf@backgroundcolor,fillstyle=solid,linestyle=solid, + linearc={\dimexpr\mdf@roundcorner@length-\mdf@middlelinewidth@length\relax}, + fillcolor=\mdf@backgroundcolor,linewidth=\mdf@middlelinewidth@length]%% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! 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[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! 0 \ptTps{\mdf@middlelinewidth@length} 0.5 mul )% + (! \ptTps{\mdfboundingboxwidth} \ptTps{\mdf@middlelinewidth@length} 0.5 mul ) + }{}% + \ifbool{mdf@leftline}{% + \psline[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul 0)% + (! \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul \ptTps{\mdfboundingboxheight} )% + }{}% + \ifbool{mdf@rightline}{% + \psline[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]% + (! \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}% }% } \endinput %eof -%eof -%eof -%eof -%eof + |