diff options
author | Karl Berry <karl@freefriends.org> | 2012-01-12 23:19:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-01-12 23:19:23 +0000 |
commit | c5c6b35b4250a3d62b639f7ca13f6111193abf0c (patch) | |
tree | c1eeba19134298ad8bb768af62843208687c2638 /Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf | |
parent | 8bffef2b7d7683ba0cb697af5a891b9507ad8cb2 (diff) |
mdframed (10jan12)
git-svn-id: svn://tug.org/texlive/trunk@25091 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf')
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf | 373 |
1 files changed, 373 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf new file mode 100644 index 00000000000..cfe522b50a3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf @@ -0,0 +1,373 @@ +%% Style file for mdframed for package option `framemethod=default` +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. + +%%$Id: mdframed.dtx 320 2012-01-09 18:44:33Z marco $ +\def\mdframedOpackagename{md-frame-0} +\def\mdf@frameOdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } +\ProvidesFile{md-frame-0.mdf}% + [\mdf@frameOdate@svn$Id: mdframed.dtx 320 2012-01-09 18:44:33Z marco $% + \mdversion: \mdframedOpackagename] +\def\mdf@background@default{\color{\mdf@backgroundcolor}} +\def\mdf@frametitlebackground@default{\color{\mdf@frametitlebackgroundcolor}} +\def\mdf@innerlinecolor@default{\color{\mdf@innerlinecolor}} +\def\mdf@middlelinecolor@default{\color{\mdf@middlelinecolor}} +\def\mdf@outerlinecolor@default{\color{\mdf@outerlinecolor}} +\def\mdf@frametitlerulecolor@default{\color{\mdf@frametitlerulecolor}} +\let\mdf@linecolor@default\mdf@middlelinecolor@default +\def\mdf@@frametitlerule{% + \ifbool{mdf@frametitlerule}{% + \vbox to \mdf@frametitlerulewidth@length {\hsize\mdfframetitleboxwidth% + \par\unskip\vskip\mdf@frametitlebelowskip@length% + \rlap{\noindent\hspace*{-\mdf@innerleftmargin@length}% + \mdf@frametitlerulecolor@default% + \rule{\dimexpr\mdfframetitleboxwidth% + +\mdf@innerleftmargin@length + +\mdf@innerrightmargin@length\relax + }{\mdf@frametitlerulewidth@length}% + }}% + }{} + \par\unskip\vskip\mdf@innertopmargin@length% +}% + +\def\mdf@frame@background@single{% + \rlap{\mdf@background@default% + \rule[-\mdfboundingboxdepth]% + {\mdfboundingboxtotalwidth}% + {\mdfboundingboxtotalheight}% + }% +}% +\def\mdf@frame@frametitlebackground@single{% + \rlap{\mdf@frametitlebackground@default% + \rule[\dimexpr-\mdfboundingboxdepth+\mdfboundingboxtotalheight-\mdfframetitleboxtotalheight\relax]% + {\mdfboundingboxtotalwidth}% + {\mdfframetitleboxtotalheight}% + }% +}% + +\def\mdf@frame@topline@single{% + \rlap{\mdf@linecolor@default% + \ifbool{mdf@topline}{% + \rule[\dimexpr\mdfboundingboxheight-\mdfboundingboxdepth% + +\mdf@innerbottommargin@length+\mdf@innertopmargin@length\relax]% + {\mdfboundingboxtotalwidth}% + {\mdf@middlelinewidth@length}}% + {}% + }% +}% +\def\mdf@frame@bottomline@single{% + \rlap{\ifbool{mdf@leftline}{\hspace*{-\mdf@middlelinewidth@length}}{}\mdf@linecolor@default% + \ifbool{mdf@bottomline}{% + \rule[\dimexpr-\mdfboundingboxdepth-\mdf@middlelinewidth@length\relax]% + {\dimexpr\mdfboundingboxtotalwidth + \ifbool{mdf@rightline}{+\mdf@middlelinewidth@length}{}% + \ifbool{mdf@leftline}{+\mdf@middlelinewidth@length}{}\relax}% + {\mdf@middlelinewidth@length}}% + {}% + }% +}% +\def\mdf@frame@leftline@single{% + \llap{\mdf@linecolor@default% + \rule[-\mdfboundingboxdepth]% + {\mdf@middlelinewidth@length}% + {\dimexpr\mdfboundingboxtotalheight% + \ifbool{mdf@topline}{+\mdf@middlelinewidth@length}{}\relax}% + }% +}% +\def\mdf@frame@rightline@single{% + \rlap{\mdf@linecolor@default% + \hspace*{\mdfboundingboxwidth}% + \hspace*{\mdf@innerrightmargin@length}% + \rule[\dimexpr-\mdfboundingboxdepth% + \relax]% + {\mdf@middlelinewidth@length}% + {\dimexpr\mdfboundingboxtotalheight% + +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}% + }% +}% +\def\mdf@putbox@single{%%%%% Ausgabe der ungesplitteten Gesamtbox + \ifvoid\mdf@splitbox@one + \else% + \mdf@makebox@out{% + \mdf@makeboxalign@left% + \setlength{\mdfboundingboxwidth}% + {\wd\mdf@splitbox@one}% + \setlength{\mdfboundingboxtotalwidth}% + {\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length% + +\mdf@innerrightmargin@length\relax}% + \setlength{\mdfboundingboxheight}% + {\dimexpr\ht\mdf@splitbox@one+\dp\mdf@splitbox@one\relax}% + \setlength{\mdfboundingboxdepth}% + {\dimexpr\dp\mdf@splitbox@one+\mdf@innerbottommargin@length\relax}% + \setlength{\mdfboundingboxtotalheight}% + {\dimexpr\mdfboundingboxheight+\mdf@innertopmargin@length% + +\mdf@innerbottommargin@length\relax}% + \setlength{\mdftotallinewidth}{% + \dimexpr\mdf@innerlinewidth@length+\mdf@middlelinewidth@length% + +\mdf@outerlinewidth@length}% + \noindent% + \setlength{\@tempdima}{\dimexpr\mdfboundingboxtotalwidth% + +\ifbool{mdf@leftline}% + {\mdf@middlelinewidth@length}{\z@}% + +\ifbool{mdf@rightline}% + {\mdf@middlelinewidth@length}{\z@}\relax}% + \mdf@makebox@in[\@tempdima]{% + \null% + \ifbool{mdf@leftline}{% + \hspace*{\mdftotallinewidth}% + \mdf@frame@leftline@single% + }{}% + \mdf@frame@topline@single% + \mdf@frame@bottomline@single% + \mdf@frame@background@single% + \ifdefempty{\mdf@frametitle}{}{\mdf@frame@frametitlebackground@single}% + \hspace*{\mdf@innerleftmargin@length}% + \ifbool{mdf@rightline}{% + \mdf@frame@rightline@single% + }{}% + {\box\mdf@splitbox@one}% + }% + \mdf@makeboxalign@right% + }% + \fi% +} +\def\mdf@frame@background@first{% + \rlap{\mdf@background@default% + \rule[-\mdfboundingboxdepth]% + {\mdfboundingboxtotalwidth}% + {\mdfboundingboxtotalheight}% + }% +}% +\def\mdf@frame@frametitlebackground@first{% + \ifdimless{\mdfframetitleboxtotalheight}{\mdfboundingboxtotalheight}% + {% + \rlap{\mdf@frametitlebackground@default% + \rule[\dimexpr-\mdfboundingboxdepth+\mdfboundingboxtotalheight-\mdfframetitleboxtotalheight\relax]% + {\mdfboundingboxtotalwidth}% + {\mdfframetitleboxtotalheight}% + }% + \global\mdfframetitleboxtotalheight=-\p@\relax% + }{\mdf@PackageWarning{You got a page break inside the frame title\MessageBreak + Current this isn't well supported}% + \rlap{\mdf@frametitlebackground@default% + \rule[-\mdfboundingboxdepth]% + {\mdfboundingboxtotalwidth}% + {\mdfboundingboxtotalheight}% + }% + \global\mdfframetitleboxtotalheight=\dimexpr\mdfframetitleboxtotalheight + -\mdfboundingboxheight + +\mdf@frametitlebelowskip@length + +.5\baselineskip-1pt + \relax% + }% +}% +\def\mdf@frame@leftline@first{% + \llap{\mdf@linecolor@default% + \rule[-\mdfboundingboxdepth]% + {\mdf@middlelinewidth@length}% + {\dimexpr\mdfboundingboxtotalheight% + +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}% + }% +}% +\def\mdf@frame@topline@first{% + \rlap{\mdf@linecolor@default% + \rule[\dimexpr\mdfboundingboxheight-\mdfboundingboxdepth+% + \mdf@splitbottomskip@length+\mdf@innertopmargin@length\relax]% + {\mdfboundingboxtotalwidth}% + {\mdf@middlelinewidth@length}% + }% +} +\def\mdf@frame@rightline@first{% + \rlap{\mdf@linecolor@default\hspace*{\mdfboundingboxwidth}% + \hspace*{\mdf@innerrightmargin@length}% + \rule[-\mdfboundingboxdepth]% + {\mdf@middlelinewidth@length}% + {\dimexpr\mdfboundingboxtotalheight% + +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}% + }% +}% +\def\mdf@putbox@first{%%%% Ausgabe der Teilbox 1 + \ifvoid\mdf@splitbox@two + \else% + \mdf@makebox@out[\linewidth]{% + \mdf@makeboxalign@left% + \setlength{\mdfboundingboxwidth}{\wd\mdf@splitbox@two}% + \setlength{\mdfboundingboxtotalwidth}% + {\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length% + +\mdf@innerrightmargin@length\relax}% + \setlength{\mdfboundingboxheight}{\dimexpr\ht\mdf@splitbox@two+\dp\mdf@splitbox@two\relax}% + \setlength{\mdfboundingboxdepth}% + {\dimexpr\dp\mdf@splitbox@two+\mdf@splitbottomskip@length\relax}% + \setlength{\mdfboundingboxtotalheight}% + {\dimexpr\mdfboundingboxheight+\mdf@innertopmargin@length% + +\mdf@splitbottomskip@length\relax}% + \setlength{\@tempdima}% + {\dimexpr\mdfboundingboxtotalwidth% + +\ifbool{mdf@leftline}{\mdf@middlelinewidth@length}{\z@}% + +\ifbool{mdf@rightline}{\mdf@middlelinewidth@length}{\z@}% + \relax}% + \mdf@makebox@in[\@tempdima]{% + \null% + \ifbool{mdf@leftline}{% + \hspace*{\mdf@middlelinewidth@length}% + \mdf@frame@leftline@first}{}% + \ifbool{mdf@topline}{% + \mdf@frame@topline@first}{}% + \mdf@frame@background@first% + \ifdefempty{\mdf@frametitle}{}{\mdf@frame@frametitlebackground@first}% + \hspace*{\mdf@innerleftmargin@length}% + \ifbool{mdf@rightline}{% + \mdf@frame@rightline@first}{}% + {\box\mdf@splitbox@two}% + }% + \mdf@makeboxalign@right% + }% + \fi% +} +\def\mdf@frame@background@second{% + \rlap{\mdf@background@default% + \rule[-\mdfboundingboxdepth]% + {\mdfboundingboxtotalwidth}% + {\mdfboundingboxtotalheight}% + }% +}% +\def\mdf@frame@frametitlebackground@second{% + \ifdimless{\mdfframetitleboxtotalheight}{\z@}% + {}% + {\rlap{\mdf@frametitlebackground@default% + \rule[\dimexpr-\mdfboundingboxdepth+\mdfboundingboxtotalheight-\mdfframetitleboxtotalheight\relax]% + {\mdfboundingboxtotalwidth}% + {\mdfframetitleboxtotalheight}% + }% + }% +}% +\def\mdf@frame@leftline@second{% + \llap{\mdf@linecolor@default% + \rule[-\mdfboundingboxdepth]% + {\mdf@middlelinewidth@length}% + {\dimexpr\mdfboundingboxtotalheight}% + }% +}% +\def\mdf@frame@bottomline@second{% + \rlap{\ifbool{mdf@leftline}{\hspace*{-\mdf@middlelinewidth@length}}{}\mdf@linecolor@default% + \rule[\dimexpr-\mdfboundingboxdepth-\mdf@middlelinewidth@length\relax]% + {\dimexpr\mdfboundingboxtotalwidth + \ifbool{mdf@rightline}{+\mdf@middlelinewidth@length}{} + \ifbool{mdf@leftline}{+\mdf@middlelinewidth@length}{}\relax}% + {\mdf@middlelinewidth@length}% + }% +}% +\def\mdf@frame@rightline@second{% + \rlap{\mdf@linecolor@default\hspace*{\mdfboundingboxwidth}% + \hspace*{\mdf@innerrightmargin@length}% + \rule[-\mdfboundingboxdepth]% + {\mdf@middlelinewidth@length}% + {\mdfboundingboxtotalheight}% + }% +}% +\def\mdf@putbox@second{% + \ifvoid\mdf@splitbox@one% + \else + \mdf@makebox@out{% + \mdf@makeboxalign@left% + \setlength{\mdfboundingboxwidth}{\wd\mdf@splitbox@one}% + \setlength{\mdfboundingboxtotalwidth}% + {\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length% + +\mdf@innerrightmargin@length\relax}% + \setlength{\mdfboundingboxheight}{\dimexpr\ht\mdf@splitbox@one+\dp\mdf@splitbox@one\relax}% + \setlength{\mdfboundingboxdepth}% + {\dimexpr\dp\mdf@splitbox@one+\mdf@innerbottommargin@length\relax}% + \setlength{\mdfboundingboxtotalheight}% + {\dimexpr\mdfboundingboxheight+\mdf@innerbottommargin@length\relax}% + \setlength{\@tempdima}{\dimexpr\mdfboundingboxtotalwidth% + +\ifbool{mdf@leftline}{\mdf@middlelinewidth@length}{\z@}% + +\ifbool{mdf@rightline}{\mdf@middlelinewidth@length}{\z@}% + \relax}% + \mdf@makebox@in[\@tempdima]{% + \null% + \ifbool{mdf@leftline}{% + \hspace*{\mdf@middlelinewidth@length}% + \mdf@frame@leftline@second}{}% + \ifbool{mdf@bottomline}{% + \mdf@frame@bottomline@second}{}% + \mdf@frame@background@second% + \ifdefempty{\mdf@frametitle}{}{\mdf@frame@frametitlebackground@second}% + \hspace*{\mdf@innerleftmargin@length}% + \ifbool{mdf@rightline}{% + \mdf@frame@rightline@second}{}% + {\box\mdf@splitbox@one}% + }% + \mdf@makeboxalign@right% + }% + \fi% +}% +\def\mdf@frame@leftline@middle{% + \llap{\mdf@linecolor@default% + \rule[-\mdfboundingboxdepth]% + {\mdf@middlelinewidth@length}% + {\mdfboundingboxtotalheight}% + }% +}% +\def\mdf@frame@background@middle{% + \rlap{\mdf@background@default% + \rule[-\mdfboundingboxdepth]% + {\mdfboundingboxtotalwidth}% + {\mdfboundingboxtotalheight}% + }% +}% +\def\mdf@frame@frametitlebackground@middle{% + \ifdimless{\mdfframetitleboxtotalheight}{\z@}% + {}% + {\rlap{\mdf@frametitlebackground@default% + \rule[\dimexpr-\mdfboundingboxdepth+\mdfboundingboxtotalheight-\mdfframetitleboxtotalheight\relax]% + {\mdfboundingboxtotalwidth}% + {\mdfframetitleboxtotalheight}% + }% + \global\mdfframetitleboxtotalheight=-\p@\relax% + }% +}% +\def\mdf@frame@rightline@middle{% + \rlap{\mdf@linecolor@default\hspace*{\mdfboundingboxwidth}% + \hspace*{\mdf@innerrightmargin@length}% + \rule[-\mdfboundingboxdepth]% + {\mdf@middlelinewidth@length}% + {\mdfboundingboxtotalheight}% + }% +}% +\def\mdf@putbox@middle{% + \ifvoid\mdf@splitbox@two% + \else + \mdf@makebox@out{% + \mdf@makeboxalign@left% + \setlength{\mdfboundingboxwidth}{\wd\mdf@splitbox@two}% + \setlength{\mdfboundingboxtotalwidth}% + {\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length% + +\mdf@innerrightmargin@length\relax}% + \setlength{\mdfboundingboxheight}{\dimexpr\ht\mdf@splitbox@two+\dp\mdf@splitbox@two\relax}% + \setlength{\mdfboundingboxdepth}% + {\dimexpr\dp\mdf@splitbox@two+\mdf@splitbottomskip@length\relax}% + \setlength{\mdfboundingboxtotalheight}% + {\dimexpr\mdfboundingboxheight+\mdf@splitbottomskip@length\relax}% + \setlength{\@tempdima}{\dimexpr\mdfboundingboxtotalwidth% + +\ifbool{mdf@leftline}{\mdf@middlelinewidth@length}{\z@}% + +\ifbool{mdf@rightline}{\mdf@middlelinewidth@length}{\z@}% + \relax}% + \mdf@makebox@in[\@tempdima]{% + \null% + \ifbool{mdf@leftline}{% + \hspace*{\mdf@middlelinewidth@length}% + \mdf@frame@leftline@middle}{}% + \mdf@frame@background@middle% + \ifdefempty{\mdf@frametitle}{}{\mdf@frame@frametitlebackground@middle}% + \hspace*{\mdf@innerleftmargin@length}% + \ifbool{mdf@rightline}{% + \mdf@frame@rightline@middle}{}% + {\box\mdf@splitbox@two}% + }% + \mdf@makeboxalign@right% + } + \fi% +} + \endinput |