%%==================================================%% %%= Ausgabe der Box nach Vorgabe der Ausgaberoutine=%% %%==================================================%% %% Styledatei fuer das Paket mdframed erstellt durch %% Marco Daniel und Elke Schubert %% %% This package may be distributed under the terms of the LaTeX Project %% Public License, as described in lppl.txt in the base LaTeX distribution. %% Either version 1.0 or, at your option, any later version. %%$Id: md-frame-0.mdf 163 2011-08-22 19:08:00Z marco $ %%$Rev: 163 $ %%$Author: marco $ %%$Date: 2011-08-22 21:08:00 +0200 (Mo, 22. Aug 2011) $ \def\mdframedOpackagename{md-frame-0} \def\md@frameOdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } \ProvidesFile{md-frame-0.mdf}[\md@frameOdate@svn$Id: md-frame-0.mdf 163 2011-08-22 19:08:00Z marco $ \mdversion: \mdframedOpackagename] %%==================================================%% %%================single-box========================%% %%==================================================%% \def\md@frame@background@single{% \rlap{\color{\mdf@backgroundcolor}% \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length]{\mdfboundingboxwidth% +\mdf@innerleftmargin@length+\mdf@innerrightmargin@length% }{\mdfboundingboxheight}% }% }% % \def\md@frame@leftandbottomline@single{% \rlap{\color{\mdf@middlelinecolor}% \ifbool{mdf@topline}{\rule[\ht\@tempboxa+\mdf@innertopmargin@length] {\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length}% {\mdf@middlelinewidth@length}}{}% }% \rlap{\color{\mdf@middlelinecolor}% \ifbool{mdf@bottomline}{\rule[-\dp\@tempboxa-\mdf@innerbottommargin@length% -\mdf@middlelinewidth@length]{\mdfboundingboxwidth+% \mdf@innerleftmargin@length+\mdf@innerrightmargin@length}% {\mdf@middlelinewidth@length}}{}% }% } % \def\md@frame@leftline@single{% \llap{\color{\mdf@middlelinecolor}% \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length% \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}]% {\mdf@middlelinewidth@length}{\mdfboundingboxheight% +\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt} +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}}% }% }% % \def\md@frame@rightline@single{% \rlap{\color{\mdf@middlelinecolor}% \hspace*{\mdfboundingboxwidth}% \hspace*{\mdf@innerrightmargin@length}% \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length% \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}]% {\mdf@middlelinewidth@length}{\mdfboundingboxheight% +\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}% +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}}% }% }% % \def\md@putbox@single{%%%%% Ausgabe der ungesplitteten Gesamtbox \ifvoid\@tempboxa \else \leftline{% \setlength{\mdfboundingboxwidth}{\wd\@tempboxa}% \setlength{\mdfboundingboxheight}{\ht\@tempboxa+\dp\@tempboxa}% \advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax% \advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax% \null\hspace*{\mdf@leftmargin@length}% \ifbool{mdf@leftline}{% \hspace*{\mdf@middlelinewidth@length}% \md@frame@leftline@single% }{}% \md@frame@leftandbottomline@single \md@frame@background@single% \hspace*{\mdf@innerleftmargin@length}% \ifbool{mdf@rightline}{% \md@frame@rightline@single% }{}% {\box\@tempboxa}% }% \fi } %%==================================================%% %%================first-box=========================%% %%==================================================%% % \def\md@frame@background@first{% \rlap{\color{\mdf@backgroundcolor}% \rule[-\dp\tw@-\mdf@splitbottomskip@length]% {\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length}% {\mdfboundingboxheight}% }% }% % \def\md@frame@leftline@first{% \llap{\color{\mdf@middlelinecolor}% \rule[-\dp\tw@-\mdf@splitbottomskip@length]% {\mdf@middlelinewidth@length}% {\mdfboundingboxheight+\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}}% }% }% % \def\md@frame@topline@first{% \rlap{\color{\mdf@middlelinecolor}% \rule[\ht\tw@+\mdf@innertopmargin@length] {\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length}% {\mdf@middlelinewidth@length}% }% } % \def\md@frame@rightline@first{% \rlap{\color{\mdf@middlelinecolor}\hspace*{\mdfboundingboxwidth}% \hspace*{\mdf@innerrightmargin@length}% \rule[-\dp\tw@-\mdf@splitbottomskip@length]% {\mdf@middlelinewidth@length}% {\mdfboundingboxheight+\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}}% }% }% % \def\md@putbox@first{%%%% Ausgabe der Teilbox 1 \leftline{% \setlength{\mdfboundingboxwidth}{\wd\tw@}% \setlength{\mdfboundingboxheight}{\ht\tw@+\dp\tw@+\mdf@innertopmargin@length+\mdf@splitbottomskip@length}% \null\hspace*{\mdf@leftmargin@length}% \ifbool{mdf@leftline}{% \hspace*{\mdf@middlelinewidth@length}% \md@frame@leftline@first}{}% \ifbool{mdf@topline}{% \md@frame@topline@first}{}% \md@frame@background@first% \hspace*{\mdf@innerleftmargin@length}% \ifbool{mdf@rightline}{% \md@frame@rightline@first}{}% {\box\tw@}% }% } %%==================================================%% %%=================last-box=========================%% %%==================================================%% \def\md@frame@background@second{% \rlap{\color{\mdf@backgroundcolor}% \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length]% {\mdfboundingboxwidth+\mdf@innerleftmargin@length% +\mdf@innerrightmargin@length}% {\mdfboundingboxheight}% }% }% % \def\md@frame@leftline@second{% \llap{\color{\mdf@middlelinecolor}% \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length% -\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}]% {\mdf@middlelinewidth@length}% {\mdfboundingboxheight+\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}}% }% }% % \def\md@frame@bottomline@second{% \rlap{\color{\mdf@middlelinecolor}% \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length-\mdf@middlelinewidth@length] {\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length}% {\mdf@middlelinewidth@length}% }% }% % \def\md@frame@rightline@second{% \rlap{\color{\mdf@middlelinecolor}\hspace*{\mdfboundingboxwidth}% \hspace*{\mdf@innerrightmargin@length}% \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length% -\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}]% {\mdf@middlelinewidth@length}% {\mdfboundingboxheight+\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}}% }% }% % \def\md@putbox@second{% \ifvoid\@tempboxa% \else \leftline{% \setlength{\mdfboundingboxwidth}{\wd\@tempboxa}% \setlength{\mdfboundingboxheight}{\ht\@tempboxa+\dp\@tempboxa}% \advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax% \null\hspace*{\mdf@leftmargin@length}% \ifbool{mdf@leftline}{% \hspace*{\mdf@middlelinewidth@length}% \md@frame@leftline@second}{}% \ifbool{mdf@bottomline}{% \md@frame@bottomline@second}{}% \md@frame@background@second% \hspace*{\mdf@innerleftmargin@length}% \ifbool{mdf@rightline}{% \md@frame@rightline@second}{}% {\box\@tempboxa}% }% \fi% }% %%==================================================%% %%================middle-box========================%% %%==================================================%% \def\md@frame@background@middle{% \rlap{\color{\mdf@backgroundcolor}% \rule[-\dp\tw@-\mdf@splitbottomskip@length]% {\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length}% {\mdfboundingboxheight}% }% }% % \def\md@frame@leftline@middle{% \llap{\color{\mdf@middlelinecolor}% \rule[-\dp\tw@-\mdf@splitbottomskip@length]% {\mdf@middlelinewidth@length}% {\mdfboundingboxheight}% }% }% % \def\md@frame@rightline@middle{% \rlap{\color{\mdf@middlelinecolor}\hspace*{\mdfboundingboxwidth}% \hspace*{\mdf@innerrightmargin@length}% \rule[-\dp\tw@-\mdf@splitbottomskip@length]% {\mdf@middlelinewidth@length}% {\mdfboundingboxheight}% }% }% % \def\md@putbox@middle{% \leftline{% \setlength{\mdfboundingboxwidth}{\wd\tw@}% \setlength{\mdfboundingboxheight}{\ht\tw@+\dp\tw@}% \advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax% \null\hspace*{\mdf@leftmargin@length}% \ifbool{mdf@leftline}{% \hspace*{\mdf@middlelinewidth@length}% \md@frame@leftline@middle}{}% \md@frame@background@middle% \hspace*{\mdf@innerleftmargin@length}% \ifbool{mdf@rightline}{% \md@frame@rightline@middle}{} {\box\tw@}% }% }