summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mdframed
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-06-18 00:07:18 +0000
committerKarl Berry <karl@freefriends.org>2010-06-18 00:07:18 +0000
commite7195963a9c816860f96c72a1c703d8a0b674317 (patch)
treeb4c70f61461c481568d83583ba82f82aee3324cb /Master/texmf-dist/tex/latex/mdframed
parent1cd867ef11ec5a4a1a5e94fefa0d17de9b630e65 (diff)
mdframed mdf in runtime
git-svn-id: svn://tug.org/texlive/trunk@19023 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mdframed')
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-tikz-0.mdf203
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-tikz-1.mdf143
2 files changed, 346 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-tikz-0.mdf b/Master/texmf-dist/tex/latex/mdframed/md-tikz-0.mdf
new file mode 100644
index 00000000000..7fe8a26fd0d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/mdframed/md-tikz-0.mdf
@@ -0,0 +1,203 @@
+%%==================================================%%
+%%= 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.
+
+\let\md@textwidth\textwidth
+
+
+%%=single=%%
+\def\md@frame@background@single{%
+ \rlap{\color{\mdf@backgroundcolor}%
+ \setlength{\fp@putboxa@length@md}{\ht\@tempboxa}%
+ \addtolength{\fp@putboxa@length@md}{0.8\baselineskip}%
+ %\addtolength{\fp@putboxa@length@md}{\mdf@linewidth}%
+ \rule[-0.4\baselineskip]%
+ {\md@textwidth-\mdf@leftmargin-\mdf@rightmargin-\mdf@linewidth-\mdf@linewidth}%
+ {\fp@putboxa@length@md}%
+ }%
+}%
+
+\def\md@frame@leftandbottomline@single{%
+ \setlength{\fp@putboxa@length@md}{\ht\@tempboxa}%
+ \addtolength{\fp@putboxa@length@md}{0.4\baselineskip}%
+ %\addtolength{\fp@putboxa@length@md}{\mdf@linewidth}%
+ \rlap{\color{\mdf@linecolor}\vrule width \mdf@linewidth%
+ height \fp@putboxa@length@md%
+ depth 0.4\baselineskip}%
+ \rlap{\color{\mdf@linecolor}\rule[-0.4\baselineskip-\mdf@linewidth]%
+ {\md@textwidth-\mdf@leftmargin-\mdf@rightmargin}{\mdf@linewidth}%
+ }%
+}%
+
+\def\md@frame@topandrightline@single{%
+ \llap{\color{\mdf@linecolor}\vrule width \mdf@linewidth%
+ height \fp@putboxa@length@md%
+ depth 0.4\baselineskip}%
+ \llap{\color{\mdf@linecolor}\rule[\fp@putboxa@length@md]%
+ {\md@textwidth-\mdf@leftmargin-\mdf@rightmargin}{\mdf@linewidth}}%
+}%
+
+
+\def\md@putbox@single{%%%%% Ausgabe der ungesplitteten Gesamtbox
+ \ifvoid\@tempboxa
+ \else
+ \leftline{%
+ \null\hspace*{\mdf@leftmargin}%
+ \md@frame@leftandbottomline@single%
+ \hspace*{\mdf@linewidth}%
+ \md@frame@background@single%
+ \hspace*{\mdf@margin}%
+ {\box\@tempboxa}%
+ \hspace*{\mdf@margin}%
+ \hspace*{\mdf@linewidth}%
+ \md@frame@topandrightline@single%
+ }%
+ \fi
+}
+
+
+%%=first=%%
+
+\def\md@frame@background@first{%
+ \rlap{\color{\mdf@backgroundcolor}%
+ \setlength{\fp@putboxa@length@md}{\ht\tw@}%
+ \addtolength{\fp@putboxa@length@md}{.8\baselineskip}%
+ % \addtolength{\fp@putboxa@length@md}{\mdf@linewidth}%
+ \rule[-0.4\baselineskip]{\md@textwidth-\mdf@leftmargin-\mdf@rightmargin-\mdf@linewidth-\mdf@linewidth}%
+ {\fp@putboxa@length@md}%
+ }%
+}%
+
+\def\md@frame@topandleftline@first{%
+ \setlength{\fp@putboxa@length@md}{\ht\tw@}%
+ \addtolength{\fp@putboxa@length@md}{0.4\baselineskip}%
+ \addtolength{\fp@putboxa@length@md}{\mdf@linewidth}%
+ % \addtolength{\fp@putboxa@length@md}{\mdf@linewidth}%
+ \rlap{\color{\mdf@linecolor} \vrule width \mdf@linewidth%
+ height \fp@putboxa@length@md%
+ depth 0.4\baselineskip%
+ }%
+ \rlap{\color{\mdf@linecolor}\rule[\fp@putboxa@length@md-\mdf@linewidth]{\md@textwidth-\mdf@leftmargin-\mdf@rightmargin}%
+ {\mdf@linewidth}%
+ }%
+}%
+
+\def\md@frame@rightline@first{%
+ \llap{\color{\mdf@linecolor}\vrule width \mdf@linewidth%
+ height \fp@putboxa@length@md%
+ depth 0.4\baselineskip%
+ }%
+}%
+
+
+
+\def\md@putbox@first{%%%% Ausgabe der Teilbox 1
+ \leftline{%
+ \null\hspace*{\mdf@leftmargin}%
+ \md@frame@topandleftline@first%
+ \hspace*{\mdf@linewidth}%
+ \md@frame@background@first%
+ \hspace*{\mdf@margin}%
+ {\box\tw@}%
+ \hspace*{\mdf@margin}%
+ \hspace*{\mdf@linewidth}%
+ \md@frame@rightline@first%
+ }%
+}
+
+%%=second=%%
+
+\def\md@frame@background@second{%
+ \rlap{\color{\mdf@backgroundcolor}%
+ \setlength{\fp@putboxa@length@md}{\ht\@tempboxa}%
+ \addtolength{\fp@putboxa@length@md}{\baselineskip}%
+ \rule[-0.5\baselineskip]{\md@textwidth-\mdf@leftmargin-\mdf@rightmargin-\mdf@linewidth-\mdf@linewidth}%
+ {\fp@putboxa@length@md}%
+ }%
+}%
+
+\def\md@frame@leftandbottomline@second{%
+ \setlength{\fp@putboxa@length@md}{\ht\@tempboxa}%
+ \addtolength{\fp@putboxa@length@md}{0.5\baselineskip}% %Linienueberschuss auf zweiter Seite -- derzeit 0pt
+ \rlap{\color{\mdf@linecolor}\vrule width \mdf@linewidth%
+ height \fp@putboxa@length@md%
+ depth 0.5\baselineskip%
+ }%
+ \rlap{\color{\mdf@linecolor}\rule[-0.5\baselineskip-\mdf@linewidth]%
+ {\md@textwidth-\mdf@leftmargin-\mdf@rightmargin}%
+ {\mdf@linewidth}}%
+}%
+
+\def\md@frame@rightline@second{%
+ \llap{\color{\mdf@linecolor}\vrule width \mdf@linewidth%
+ height \fp@putboxa@length@md%
+ depth 0.5\baselineskip}%
+}%
+
+\def\md@putbox@second{%%%%% Ausgabe der mittleren Teilbox
+ \ifvoid\@tempboxa%
+ \else
+ \leftline{%
+ \null\hspace*{\mdf@leftmargin}%
+ \md@frame@leftandbottomline@second%
+ \hspace*{\mdf@linewidth}%
+ \md@frame@background@second%
+ \hspace*{\mdf@margin}%
+ {\box\@tempboxa}%
+ \hspace*{\mdf@margin}%
+ \hspace*{\mdf@linewidth}%
+ \md@frame@rightline@second%
+ }%
+ \fi%
+}%
+
+
+%%=middle=%%
+
+\def\md@frame@background@middle{%
+ \rlap{\color{\mdf@backgroundcolor}%
+ \setlength{\fp@putboxa@length@md}{\ht\tw@}%
+ \addtolength{\fp@putboxa@length@md}{0.9\baselineskip}%
+ %\addtolength{\fp@putboxa@length@md}{\mdf@linewidth}%
+ \rule[-0.4\baselineskip]{\md@textwidth-\mdf@leftmargin-\mdf@rightmargin-\mdf@linewidth-\mdf@linewidth}%
+ {\fp@putboxa@length@md}%
+ }%
+}%
+
+\def\md@frame@leftline@middle{%
+ \setlength{\fp@putboxa@length@md}{\ht\tw@}%
+ \addtolength{\fp@putboxa@length@md}{0.5\baselineskip}%
+ \rlap{\color{\mdf@linecolor} \vrule width \mdf@linewidth%
+ height \fp@putboxa@length@md%
+ depth 0.4\baselineskip%
+ }%
+}%
+
+\def\md@frame@rightline@middle{%
+ \llap{\color{\mdf@linecolor}\vrule width \mdf@linewidth%
+ height \fp@putboxa@length@md%
+ depth 0.4\baselineskip%
+ }%
+}%
+
+
+
+\def\md@putbox@middle{%%%% Ausgabe der Teilbox 1
+ \leftline{%
+ \null\hspace*{\mdf@leftmargin}%
+ \md@frame@leftline@middle%
+ \hspace*{\mdf@linewidth}%
+ \md@frame@background@middle%
+ \hspace*{\mdf@margin}%
+ {\box\tw@}%
+ \hspace*{\mdf@margin}%
+ \hspace*{\mdf@linewidth}%
+ \md@frame@rightline@middle%
+ }%
+}
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-tikz-1.mdf b/Master/texmf-dist/tex/latex/mdframed/md-tikz-1.mdf
new file mode 100644
index 00000000000..e4e0b653864
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/mdframed/md-tikz-1.mdf
@@ -0,0 +1,143 @@
+%%==================================================%%
+%%= 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.
+
+
+%%Allgemeine Einstellungen fuer tikz
+\def\md@tikz@settings{%
+ \setlength{\mdf@innerlinewidth@tikz}{\mdf@innerlinewidth}%
+ \setlength{\mdf@outerlinewidth@tikz}{\mdf@outerlinewidth}%
+ \setlength{\mdf@middlelinewidth@tikz}{\mdf@middlelinewidth}%
+%wenn das Innere der Doppellinie 0pt breit ist, muss Grenze zwischen innerer und äußerer Linie einer Farbe zugeordnet werden
+ \ifdimequal{\mdf@middlelinewidth@tikz}{\z@}%
+ {\ifdimequal{\mdf@innerlinewidth@tikz}{\z@}%
+ {\ifdimequal{\mdf@outerlinewidth@tikz}{\z@}%
+ {\let\mdf@middlelinecolor\mdf@backgroundcolor}%
+ {\let\mdf@middlelinecolor\mdf@outerlinecolor}%
+ }%
+ {\let\mdf@middlelinecolor\mdf@innerlinecolor}%
+ }{}%
+ \ifdimequal{\mdf@innerlinewidth@tikz}{\z@}%
+ {\ifdimequal{\mdf@outerlinewidth@tikz}{\z@}%
+ {\ifdimequal{\mdf@middlelinewidth@tikz}{\z@}%
+ {}%
+ {\let\mdf@middlelinecolor\mdf@linecolor}%
+ }%
+ {}%
+ }{}%
+ \setlength\mdf@xmargin@tikz{\mdf@margin}% % links und rechts
+ \setlength\mdf@ymargin@tikz{0.4\baselineskip}% % oben und unten
+ \tikzset{mdftext/.style={inner sep=0pt,outer sep=0pt}}%,font=\color{\mdf@fontcolor}
+ \tikzset{mdfcorners/.style={rounded corners=\mdf@roundcorner}}%
+ \tikzset{mdfbackground/.style={fill=\mdf@backgroundcolor}}%
+ \ifdimgreater{\mdf@outerlinewidth@tikz}{\z@}%
+ {\tikzset{mdfborderA/.style={draw=\mdf@outerlinecolor,line width=2\mdf@outerlinewidth@tikz+\mdf@middlelinewidth@tikz}}}%
+ {\tikzset{mdfborderA/.style={}}}%
+ \ifdimgreater{\mdf@innerlinewidth@tikz}{\z@}%
+ {\tikzset{mdfborderI/.style={draw=\mdf@innerlinecolor,line width=2\mdf@innerlinewidth@tikz+\mdf@middlelinewidth@tikz}}}%
+ {\tikzset{mdfborderI/.style={}}}%
+ \tikzset{mdfmiddle/.style={draw=\mdf@middlelinecolor,line width=\mdf@middlelinewidth@tikz}}%
+ % bei abgerundeten Ecken Kontrolle, dass der Rahmen nicht zu dicht an der Textbox ist
+ \setlength{\mdf@rounded@tikz}{\mdf@roundcorner}%
+ \pgfmathsetlengthmacro\r{\mdf@rounded@tikz/3}%
+ \ifdimless{\mdf@ymargin@tikz}{\r}{\setlength\mdf@ymargin@tikz{\r}}{}%
+ %\ifdimless{\mdf@xmargin@tikz}{\r}{\setlength\mdf@xmargin@tikz{\r}}{}%
+}
+%
+\def\md@putbox@single{%
+ \leftline{\null\hspace*{\mdf@leftmargin}%%
+ \md@tikz@settings%
+ \setlength\mdfboxwidth{\wd\@tempboxa}%
+ \setlength\mdfboxheight{\ht\@tempboxa}%
+ \begin{tikzpicture}
+ \coordinate(O)at(0,0);
+ \pgfmathsetlengthmacro\x{\mdfboxwidth+2*\mdf@xmargin@tikz+2*\mdf@innerlinewidth@tikz+\mdf@middlelinewidth@tikz}
+ \pgfmathsetlengthmacro\y{\mdfboxheight+2*\mdf@ymargin@tikz+2*\mdf@innerlinewidth@tikz+\mdf@middlelinewidth@tikz}
+ \coordinate(P)at(\x,\y);
+ \begin{scope}
+ \clip[preaction=mdfborderA][postaction={mdfbackground,mdfborderI}][mdfcorners](O)--(O|-P)--(P)--(P|-O)--cycle;
+ \end{scope}
+ \path[mdfmiddle,mdfcorners](O)--(O|-P)--(P)--(P|-O)--cycle;
+ \node[mdftext]at(0.5*\x,0.5*\y){\box\@tempboxa};
+ \end{tikzpicture}%
+ }
+}
+
+\def\md@putbox@first{%
+ \leftline{\null\hspace*{\mdf@leftmargin}%%
+ \md@tikz@settings%
+ \setlength\mdfboxwidth{\wd\tw@}%
+ \setlength\mdfboxheight{\ht\tw@}%
+ \begin{tikzpicture}
+% \draw[use as bounding box,white] (0,0) rectangle (%
+% \mdfboxwidth+2*\mdf@xmargin@tikz+2*\mdf@innerlinewidth@tikz+\mdf@middlelinewidth@tikz+\mdf@outerlinewidth@tikz,%
+% \mdfboxheight+2\mdf@ymargin@tikz+\mdf@innerlinewidth@tikz+0.5\mdf@middlelinewidth@tikz);
+ \coordinate(O) at (0,0);
+ \pgfmathsetlengthmacro\x{\mdfboxwidth+2*\mdf@xmargin@tikz+2*\mdf@innerlinewidth@tikz+\mdf@middlelinewidth@tikz}
+ \pgfmathsetlengthmacro\y{\mdfboxheight+2\mdf@ymargin@tikz+\mdf@innerlinewidth@tikz+0.5*\mdf@middlelinewidth@tikz}
+ \coordinate(P)at(\x,\y-0.8\mdf@ymargin@tikz);
+ \clip(-\mdf@outerlinewidth@tikz-0.5*\mdf@middlelinewidth@tikz,0)%
+ rectangle(\x+\mdf@outerlinewidth@tikz+0.5*\mdf@middlelinewidth@tikz,%
+ \y+\mdf@outerlinewidth@tikz+0.5*\mdf@middlelinewidth@tikz);
+ \begin{scope}
+ \clip[preaction=mdfborderA][postaction={mdfbackground,mdfborderI}][mdfcorners](O)--(O|-P)--(P)--(P|-O);
+ \end{scope}
+ \path[mdfmiddle,mdfcorners](O)--(O|-P)--(P)--(P|-O);
+ \node[mdftext]at(0.5*\x,0.5*\y-0.5*\mdf@innerlinewidth@tikz-0.25*\mdf@middlelinewidth@tikz-0.8\mdf@ymargin@tikz){\box\tw@};
+ \end{tikzpicture}%
+ }
+}
+
+
+\def\md@putbox@middle{%
+ \leftline{\null\hspace*{\mdf@leftmargin}%%
+ \md@tikz@settings%
+ \setlength\mdfboxwidth{\wd\tw@}%
+ \setlength\mdfboxheight{\ht\tw@}%
+ \setlength{\mdf@ymargin@tikz}{0.4\baselineskip}
+ \begin{tikzpicture}
+ \coordinate(O)at(0,0);
+ \pgfmathsetlengthmacro\x{\mdfboxwidth+2*\mdf@xmargin@tikz+2*\mdf@innerlinewidth@tikz+\mdf@middlelinewidth@tikz}
+ \pgfmathsetlengthmacro\y{\mdfboxheight%
+ +2*\mdf@ymargin@tikz%
+ +4*\mdf@innerlinewidth@tikz%
+ +2*\mdf@middlelinewidth@tikz%
+ +0*\mdf@outerlinewidth@tikz}
+ \coordinate(P)at(\x,\y);
+ \clip(-\mdf@outerlinewidth@tikz-0.5*\mdf@middlelinewidth@tikz,2*\mdf@outerlinewidth@tikz+\mdf@middlelinewidth@tikz)%
+ rectangle(\x+\mdf@outerlinewidth@tikz+0.5*\mdf@middlelinewidth@tikz,\y-2*\mdf@outerlinewidth@tikz-\mdf@middlelinewidth@tikz);
+ \begin{scope}
+ \clip[preaction=mdfborderA][postaction={mdfbackground,mdfborderI}](O)--(O|-P)--(P)--(P|-O);
+ \end{scope}
+ \path[mdfmiddle](O)--(O|-P)--(P)--(P|-O);
+ \node[mdftext,]at(0.5*\x,0.5*\y){\box\tw@};
+ \end{tikzpicture}%
+ }
+}
+
+\def\md@putbox@second{%
+ \leftline{\null\hspace*{\mdf@leftmargin}%%
+ \md@tikz@settings
+ \setlength\mdfboxwidth{\wd\@tempboxa}%
+ \setlength\mdfboxheight{\ht\@tempboxa}%
+ \begin{tikzpicture}
+ \coordinate(O)at(0,0);
+ \pgfmathsetlengthmacro\x{\mdfboxwidth+2*\mdf@xmargin@tikz+2*\mdf@innerlinewidth@tikz+\mdf@middlelinewidth@tikz}
+ \pgfmathsetlengthmacro\y{\mdfboxheight+1*\mdf@ymargin@tikz+\mdf@innerlinewidth@tikz+0.5*\mdf@middlelinewidth@tikz}
+ \coordinate(P)at(\x,\y+\mdf@ymargin@tikz);
+ \clip(-\mdf@outerlinewidth@tikz-0.5*\mdf@middlelinewidth@tikz,-\mdf@outerlinewidth@tikz-0.5*\mdf@middlelinewidth@tikz)%
+ rectangle(\x+\mdf@outerlinewidth@tikz+0.5*\mdf@middlelinewidth@tikz,\y);
+ \begin{scope}
+ \clip[preaction=mdfborderA][postaction={mdfbackground,mdfborderI}][mdfcorners](P-|O)--(O)--(O-|P)--(P);
+ \end{scope}
+ \path[mdfmiddle,mdfcorners](P-|O)--(O)--(O-|P)--(P);
+ \node[mdftext] at (0.5*\x,0.5*\y+0.5*\mdf@innerlinewidth@tikz+0.25*\mdf@middlelinewidth@tikz+0.25*\mdf@ymargin@tikz){\box\@tempboxa};
+ \end{tikzpicture}%
+ }
+}