summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mdframed
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-05-15 00:31:03 +0000
committerKarl Berry <karl@freefriends.org>2010-05-15 00:31:03 +0000
commitba6f6aafcb4858fa31ba8d9b61295f3be050d2bb (patch)
tree7f6bc84f64246ebf6e4fed34eb4967509563d8c9 /Master/texmf-dist/doc/latex/mdframed
parentdf96c8184d3c5802e048d2d8538717a98230c929 (diff)
mdframed 0.4 (14may10)
git-svn-id: svn://tug.org/texlive/trunk@18268 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/mdframed')
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/README12
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/md-tikz-0.mdf203
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/md-tikz-1.mdf143
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-doc.pdfbin619095 -> 621489 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-doc.tex139
5 files changed, 447 insertions, 50 deletions
diff --git a/Master/texmf-dist/doc/latex/mdframed/README b/Master/texmf-dist/doc/latex/mdframed/README
index 0132110165a..ddf0979dab2 100644
--- a/Master/texmf-dist/doc/latex/mdframed/README
+++ b/Master/texmf-dist/doc/latex/mdframed/README
@@ -2,14 +2,22 @@ Working with the command \fbox or \fcolorbox, one has to
handle page breaks by hand. The present package defines the
environment mdframed which automatically deals with page breaks.
-Author's name: Marco Daniel
+Author's name: Marco Daniel and Elke Schubert (!new)
License type: lppl
+changes in version 0.4:
+- second author Elke Schubert
+- fixes some bugs
+ - calculation of the page dimen
+- using tikz for the frame with different styles
+
+
+------------------------------------------------
changes in version 0.3b:
- fixes some bugs -- thanks to Dr. Dietrich Grau
- added new options: ntheorem
-
+------------------------------------------------
changes in version 0.3a:
- added new options: leftmargin and rightmargin
- fixes some bugs
diff --git a/Master/texmf-dist/doc/latex/mdframed/md-tikz-0.mdf b/Master/texmf-dist/doc/latex/mdframed/md-tikz-0.mdf
new file mode 100644
index 00000000000..7fe8a26fd0d
--- /dev/null
+++ b/Master/texmf-dist/doc/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/doc/latex/mdframed/md-tikz-1.mdf b/Master/texmf-dist/doc/latex/mdframed/md-tikz-1.mdf
new file mode 100644
index 00000000000..4247334edaa
--- /dev/null
+++ b/Master/texmf-dist/doc/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}}%
+ \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}%
+ }
+}
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc.pdf
index dfdf6ec2816..e4f31961fdc 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc.pdf
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc.tex
index 2540d6fac31..e369d549728 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc.tex
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc.tex
@@ -1,5 +1,5 @@
%% Documentation of the package mdframed.sty
-\def\mdversion{version 0.3b}
+\def\mdversion{version 0.4}
\documentclass[american,11pt]{article}
\usepackage{geometry}
\geometry{left=3cm,right=3cm,top=2cm,bottom=2cm}
@@ -25,14 +25,17 @@
\usepackage{xcolor}
\usepackage[babel]{microtype}
\usepackage{array,tabularx}
+\usepackage{multirow}
%%Load the the package itselfs
-\usepackage[leftmargin=20pt,rightmargin=40pt]{mdframed}
+\usepackage[style=1,leftmargin=20pt,rightmargin=20pt]{mdframed}
+\usepackage{lipsum}
+
\usepackage{amsmath}
\usepackage[amsmath,amsthm,hyperref]{ntheorem}
\newtheorem{mdtheorem}{Theorem}[section]
\newenvironment{theorem}{%
- \begin{mdframed}[leftmargin=20pt,rightmargin=40pt,linewidth=2,margin=40,backgroundcolor=yellow,linecolor=blue]%
+ \begin{mdframed}[leftmargin=20pt,rightmargin=20pt,linewidth=2,margin=40,backgroundcolor=yellow,linecolor=blue]%
\begin{mdtheorem}%
}{%
\end{mdtheorem}%
@@ -108,7 +111,7 @@ plainpages=false
\normalfont\large\normalcolor auto-split frame environment
\vspace*{.5\baselineskip}
- \href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}\footnote{With thanks to Heiko Oberdiek, Rolf Niepraschk, Martin Scharrer and Herbert Voss.} \qquad \mdversion\ \qquad \today
+ \href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}\footnote{With thanks to Heiko Oberdiek, Rolf Niepraschk, Martin Scharrer and Herbert Voss.}, \href{}{Elke Schubert}\qquad \mdversion\ \qquad \today
\end{center}
\begin{abstract}
Working with the command \mdcommand{fbox} or \mdcommand{fcolorbox}, one has to handle page breaks by hand,
@@ -128,8 +131,7 @@ The following example gives an idea of how to use mdframed. (For the theorem env
\begin{mdexample}
\usepackage{mdframed,amsthm}
\newtheorem{mdtheorem}{Theorem}[section]
-\newenvironment{theorem}{%
- \begin{mdframed}%
+\newenvironment{theorem}{\begin{mdframed}%
[linewidth=2,margin=40,backgroundcolor=yellow,linecolor=blue]%
\begin{mdtheorem}}{\end{mdtheorem}\end{mdframed}}
...
@@ -180,6 +182,12 @@ The following options are only global options.
be loaded with the given value(s). Without any value \mbox{\mdname} loads
the package \mdpack{color} without any options.
& default=\mdsetting{none} \\
+ \mdoption{style}=<VALUE> & With this key you can change the way frames are drawn. By using
+ \mdoption{style=0} the frames are drawn by the commands \mdcommand{vrule}
+ and \mdcommand{rule}. By setting the key to \mdoption{style=1} the package
+ \mdpack{tikz} will draw the frames. So you can manipulate the frames more
+ comfortably with options like \mdoption{roundcorner} (see below).
+ & default=\mdsetting{0} \\
\end{tabularx}
\end{center}
@@ -223,6 +231,8 @@ The options listed below can be set globally or locally.
\end{tabularx}
\end{center}
+
+
\subsubsection{The Option \mdoption{ntheorem}}
\begin{theorem}
@@ -232,47 +242,80 @@ The options listed below can be set globally or locally.
\begin{ntheorem}
This environment is created with \mdoption{ntheorem=true}.
\end{ntheorem}
-\clearpage
-\section{Example}
+\subsection{Added options by the style 1}
+
+The following options only work with \mdoption{style=1}. First you have to know that by default the frame
+is drawn with a double line. So you can manipulate every line. It ist possible to get a single line
+-- the section \glqq Examples\grqq shows how this can be done.
+
+
+\begin{center}
+\renewcommand{\arraystretch}{1.5}
+\begin{tabularx}{\linewidth}{@{}lXl@{}}
+ \mdoption{roundcorner}=<LENGTH>& Sets the size of the radius of the corners of the frames.
+ The basic unit of the length is pt. So it is possible to set
+ length to 6 which is equal to 6pt.
+ & default=\mdsetting{0pt} \\
+ \mdoption{innerlinewidth}=<LENGTH>& Sets the width of the inner line around the environment.
+ The basic unit of the length is pt. So it is possible to set
+ length to 6 which is equal to 6pt.
+ & default=\mdsetting{0pt} \\
+ \mdoption{outerlinewidth}=<LENGTH>& Sets the width of the outer line around the environment.
+ The basic unit of the length is pt. So it is possible to set
+ length to 6 which is equal to 6pt.
+ & default=\mdsetting{0pt} \\
+ \mdoption{middlelinewidth}=<LENGTH>& Sets the width of the middle line around the environment.
+ The basic unit of the length is pt. So it is possible to set
+ length to 6 which is equal to 6pt.
+ & default=\mdoption{linewidth} \\
+ \mdoption{innerlinecolor}=<COLOR>& Sets the color of the inner line around the environment.
+ & default=\mdoption{linecolor} \\
+ \mdoption{outerlinecolor}=<COLOR>& Sets the color of the outer line around the environment.
+ & default=\mdoption{linecolor} \\
+ \mdoption{middlelinecolor}=<COLOR>& Sets the color of the middle line around the environment.
+ & default=\mdoption{backgroundcolor} \\
+\end{tabularx}
+\end{center}
+
+
+\section{Examples}
+
+The header for the following examples is
\begin{mdexample}
\documentclass[10pt]{article}
- \usepackage[linewidth=10,%
- margin=40,%
- backgroundcolor=yellow,
- linecolor=blue,
- skipbelow=0,
- skipabove=0]{mdframed}
- \usepackage{amsmath,amsthm}
- \newtheorem{mdlemma}{Lemma}[section]
- \newenvironment{lemma}{%
- \begin{mdframed}[linewidth=2,margin=40,%
- backgroundcolor=red,linecolor=black]%
- \begin{mdlemma}%
- }{%
- \end{mdlemma}%
- \end{mdframed}%
- }
- \usepackage{lipsum}
- \usepackage{hyperref}
- \begin{document}
- \section{foo}
- \lipsum[1]
- \begin{mdframed}
- \lipsum[5]
- \end{mdframed}
-
- \lipsum[1]
-
- \begin{lemma}\label{lem:testA}\mbox{ }
- \begin{itemize}
- \item Some Text
- \item $x^2+y^2=1$
- \item \lipsum[1]
- \end{itemize}
- \end{lemma}
- \end{document}\end{mdexample}
-\clearpage
+ \usepackage[style=1,leftmargin=20pt,rightmargin=20pt]{mdframed}
+ \usepackage{lipsum}
+\end{mdexample}
+
+\paragraph{Example 1}~\par
+
+\begin{mdexample}
+ \begin{mdframed}
+ \lipsum[1]
+ \end{mdframed}
+\end{mdexample}
+
+\begin{mdframed}
+ \lipsum[1]
+\end{mdframed}
+
+\paragraph{Example 2}~\par
+
+\begin{mdexample}
+ \begin{mdframed}[outerlinewidth=4pt,middlelinewith=2pt,innerlinewidth=1pt,%
+ outerlinecolor=blue,middlelinecolor=yellow,innerlinecolor=red,%
+ backgroundcolor=orange]
+ \lipsum[1]
+ \end{mdframed}
+\end{mdexample}
+
+ \begin{mdframed}[outerlinewidth=4pt,middlelinewidth=2pt,innerlinewidth=1pt,%
+ outerlinecolor=blue,middlelinecolor=yellow,innerlinecolor=red,%
+ backgroundcolor=orange,roundcorner=10pt]
+ \lipsum[1]
+ \end{mdframed}
+
\section{Known Problems}
In this section I will collect known problems. In case you encouter any further problems, please
drop me an email, \href{mailto:marco.daniel@mada-nada.de}{marco.daniel@mada-nada.de}.
@@ -280,19 +323,19 @@ The options listed below can be set globally or locally.
Do you have any ideas / wishes on further extensions to this package? Please let me know!
\begin{enumerate}
- \item So far it is not possible to extend a frame to more than two pages
- \item So far there is no implementation for choosing different styles of the frame but I am working on that.
+ \item So far the environment isn't compatible with the package \mdpack{gmverb}.
+ \item So far it isn't possible to use the multicolumn environment.
\end{enumerate}
\section{Acknowledgement}
Thanks for the bug reports and suggestions
-\textsf{Dick Nickalls;\quad Dr. Dietrich Grau;\quad Piazza Luca;\quad}
+\textsf{Dick Nickalls;\quad Dr. Dietrich Grau;\quad Piazza Luca}.
\medskip
\noindent Thanks for proofreading
-\textsf{Nahid Shajari}
+\textsf{Nahid Shajari}.
\end{document}