summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-11-14 23:44:42 +0000
committerKarl Berry <karl@freefriends.org>2011-11-14 23:44:42 +0000
commit7e8d5077cc44657bb237d8e86fc50a9d84d7336c (patch)
tree394fc85ec73ccc215b850ec9d5baa5b629c05ee2
parent4fc49c242f83529cc0f73af5ec5265d0d8a76ed3 (diff)
mdframed 1.0 (14nov11)
git-svn-id: svn://tug.org/texlive/trunk@24594 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/README21
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.pdfbin144300 -> 122521 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.tex559
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdfbin0 -> 108133 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex250
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdfbin0 -> 48612 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex113
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdfbin0 -> 71339 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex136
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdfbin0 -> 74919 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex216
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls188
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf240
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf84
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf438
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf79
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-framepre-0.mdf436
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-framepre-1.mdf193
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/md-framepre-3.mdf943
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/mdframed.sty290
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/mdframedpre.sty918
21 files changed, 1955 insertions, 3149 deletions
diff --git a/Master/texmf-dist/doc/latex/mdframed/README b/Master/texmf-dist/doc/latex/mdframed/README
index adb1030f176..1ac98d5a304 100644
--- a/Master/texmf-dist/doc/latex/mdframed/README
+++ b/Master/texmf-dist/doc/latex/mdframed/README
@@ -1,4 +1,4 @@
-%%$Id: README 209 2011-10-09 11:53:45Z marco $
+%%$Id: README 223 2011-11-13 18:10:49Z marco $
The standard methods for framing text (\fbox or \fcolorbox)
require you to handle page breaks by hand, meaning that you
@@ -11,7 +11,20 @@ Author's name: Marco Daniel and Elke Schubert (tikz)
License type: lppl
----------------------------
-v0.9h
-- fixed documentation
-- fixed bugs
+v1.0
+- add option userdefinedwidth
+- add option align
+- add option apptotikzsetting
+- create new command mdfapptodefinestyle (Thanks to Martin Scharrer)
+- changed internal algorithm
+- removed calc instead using e-TeX \dimexpr
+- expand documentation
+- trying to fixe problems with xcolor
+- fixed bug with framemethod=pstricks
+- created ltxmdf.cls -- documentclass for alle tex-files
+- created file mdframed-example-default.pdf
+- created file mdframed-example-tikz.pdf
+- created file mdframed-example-pstricks.pdf
+- created file mdframed-example-texsx.pdf (texsx stands for tex stackexchange)
+- removed pre-version
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.pdf
index b73167e07a2..277a8938b9b 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.pdf
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.tex
index a9ea47561df..4c5b0dd74d8 100644
--- a/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.tex
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-doc-en.tex
@@ -1,177 +1,42 @@
%Documenation of the package mdframed
-%%$Id: mdframed-doc-en.tex 209 2011-10-09 11:53:45Z marco $
-%%$Rev: 209 $
-%%$Author: marco $
-%%$Dater:$
-%% [latex -> ps -> pdf]
+%%$Id: mdframed-doc-en.tex 221 2011-11-13 18:03:29Z marco $
\setcounter{errorcontextlines}{999}
-\documentclass[english,11pt,]{scrartcl}
-%\usepackage{showframe}
-\usepackage[nofancy,draft,notoday]{svninfo}
-\svnInfo $Id: mdframed-doc-en.tex 209 2011-10-09 11:53:45Z marco $
+\documentclass[parskip=false,english,11pt]{ltxmdf}
+\svnInfo $Id: mdframed-doc-en.tex 221 2011-11-13 18:03:29Z marco $
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage[T1,altbullet]{lucidabr}
\usepackage[scaled=0.82]{beramono}
-%\usepackage{libertine}
-\usepackage{microtype}
-\usepackage[french=quotes]{csquotes}
-%\let\glqq\flqq
-%\let\grqq\frqq
-\let\grqq\grqq
-
-\usepackage{scrpage2}
-\clearscrheadfoot
-\pagestyle{scrheadings}
-\automark[subsection]{section}
-\renewcommand{\sectionmark}[1]{\markboth{\sectionmarkformat #1}{}}%
-\renewcommand{\subsectionmark}[1]{\markright{\subsectionmarkformat #1}} %nur Titel ohne Nr.
-\ihead{\rightmark}
-\ohead{\leftmark}
-\ofoot{\pagemark}
-\ifoot{\svnId}
-
-
-\usepackage[left=5cm,right=3cm,top=3cm,bottom=3cm]{geometry}
-\usepackage{array,booktabs}
-
-\usepackage{xcolor}
-\usepackage{tikz}
-\usetikzlibrary{calc,backgrounds,arrows,matrix}
-
-\colorlet{titleblue}{blue!30!black}
-
-\usepackage{amsmath}
-\usepackage[amsmath]{ntheorem}
-
-\usepackage[]{graphicx}
-
-\usepackage[style=1,]{mdframed}
-
-
-\usepackage{xspace}
-\usepackage{multicol}
-\columnseprule0.4pt
-
-
-\usepackage{listings}
-\lstset{keywordstyle=\bfseries}
-\lstnewenvironment{mdexample}[1][]
- {\lstset{%
- basicstyle=\small\ttfamily,
- language={[LaTeX]TeX},
- basicstyle=\small,%
- xleftmargin=20pt,%
- xrightmargin=20pt,%
- frame=single,%
- rulecolor=\color{titleblue},%
- framesep=5pt,%
- framerule=1pt,%
- texcsstyle=*\color{red!50!black}\bfseries,
- moretexcs=intertext,
- keywordstyle=\color{blue!60!black}\bfseries,%
- columns=fixed,%
- fontadjust=true,%
- basewidth=0.65em,%
- breakatwhitespace=true,
- morekeywords=[2]{@length},
- keywordstyle=[2]\color{red!50!black}\bfseries,
- morekeywords={outerlinewidth,leftmargin,rightmargin,backgroundcolor,%
- outerlinecolor,innertopmargin,splittopskip,skipbelow,%
- skipabove,ntheorem,theorem,lemma,mdframed,linecolor,%
- frametitle,infobox,innerlinewidth,roundcorner,leftline,topline,%
- splitbottomskip,middlelinewidth,middlelinecolor,tikzsetting,%
- rightline,bottomline,innerrightmargin,style,linewidth,lem,section,%
- definedstyle,needspace,mdf@globalstyle@cnt,framemethod},%
- moretexcs={newmdtheoremenv,newmdenv,theoremstyle,mdfsetup,@length,%
- md@putbox@single,@tempboxa,mdf@,%
- mdf@linewidth,mdf@leftmargin@length,interruptlength,%
- setlength,newrobustcmd,overlaplines,appto,md@frame@leftline@singe,%
- color,md@frame@leftline@single,mdf@innerbottommargin@length,%
- mdf@middlelinewidth@length,mdfboundingboxheight,%
- md@frame@rightline@single,mdfboundingboxwidth,%
- mdf@innerrightmargin@length,mdfdefinestyle,defcounter},
- #1,
- }%
- }%
-% morekeywords={\usepackage,\end,\begin,\lipsum,\documentclass,\newtheorem,\newenvironment,\section,\label\mbox{ }}%
- {}
-\makeatletter
-\begingroup
- \text@command\relax
- \global\let\xspace@check@icr\check@icr
-\endgroup
-\xspaceaddexceptions{\xspace@check@icr}
-
-\renewcommand\tableofcontents{%
-\setcounter{tocdepth}{2}%
- \begin{multicols}{2}[\centering\textbf{\sffamily\Large\contentsname}]
- \@starttoc{toc}
- \end{multicols}
-}
-\makeatother
-\newcommand*\mdoption[1]{\textsf{\bfseries\color{titleblue}#1}}
-\newcommand*\mdname{\textsf{mdframed}\xspace}
-\newcommand*\mdpack[1]{\texttt{#1}\xspace}
-\newcommand*\mdsetting[1]{\textsf{#1}\xspace}
-\newcommand*\mdcommand[1]{\texttt{\textbackslash #1}\xspace}
-
-\newcommand*\mdDescribeMacro[2][]{\par\kern\baselineskip%
- \noindent\llap{%
- \textsf{\bfseries\color{titleblue}#2}%
- \quad}\mdDefault{#1}\ignorespaces}
-\newcommand*{\mdDefault}[1]{%
- \ifx\relax#1\relax\else\marginpar{\small\mdsetting{default=#1}}\fi}
-
-\newcommand*\mdDescribeCmd[2][]{\par\kern\baselineskip%
- \noindent\llap{%
- \textsf{\bfseries\color{titleblue}\textbackslash #2}%
- \quad}{#1}\ignorespaces}
-
-\usepackage{hyperref}
-\hypersetup{%
-breaklinks=true,
-pdftitle={Documenation of mdframed},%
-pdfauthor={Marco Daniel},%
-colorlinks=true,%
-linkcolor=titleblue,
-urlcolor=cyan,
-bookmarksdepth=4,
-}
-%\usepackage{showframe}
+\usepackage[framemethod=TikZ]{mdframed}
-\newmdtheoremenv[linecolor=red]{lemma}{Lemma}[section]
-
-\begin{document}
-\thispagestyle{empty}
-\begin{center}
- \color{titleblue}
- \Large\bfseries \sffamily The \mdname package\footnote{Extending the package \texttt{framed.sty}.}
-
- \vspace*{0.5\baselineskip}
- \normalfont\large\normalcolor auto-split frame environment
-
- \vspace*{.5\baselineskip}
- \href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}%
+\title{The \mdname package\footnote{Extending the package \texttt{framed.sty}}
+\subtitle{auto-split frame environment}
+\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}%
\footnote{With thanks to Heiko Oberdiek, Rolf Niepraschk,
- Martin Scharrer and Herbert Voss.\newline Sorry for bad English.},
- \href{mailto:marco.daniel@mada-nada.de}{Elke Schubert}%
- \qquad \mdversion\ \qquad \today
-\end{center}
-\begin{abstract}
-The standard methods for framing text (\mdcommand{fbox} or \mdcommand{fcolorbox}) require you to handle page breaks by hand, meaning that you have to split the \mdcommand{fbox} into two. The present package defines the environment \mdname which automatically deals with pagebreaks in framed text.\par
-By defining new environments the user may choose between several individual designs.
-\end{abstract}
-\vspace*{2\baselineskip}
+ Martin Scharrer and Herbert Voss.\newline Sorry for bad English.}
+ \href{mailto:marco.daniel@mada-nada.de}{Elke Schubert}}}
+\version{\mdversion}
+\date{\svnToday}
+\introduction{The standard methods for framing text (\mdcommand{fbox} or \mdcommand{fcolorbox}) require you to handle page breaks by hand, meaning that you have to split the \mdcommand{fbox} into two. The present package defines the environment \mdname which automatically deals with pagebreaks in framed text.\par
+By defining new environments the user may choose between several individual designs.%
+\par\kern.5\baselineskip\noindent
+Linked files:\quad \begin{tabular}[t]{ll}
+ \url{mdframed-example-default.pdf} &
+ \url{mdframed-example-tikz.pdf} \\
+ \url{mdframed-example-pstricks.pdf} &
+ \url{mdframed-example-texsx.pdf}
+ \end{tabular}
+}
-\pdfbookmark[1]{\contentsname}{tocbook}
-\tableofcontents
+\begin{document}
+\maketitle
+
\section{Motivation}
Many users wish to (further) emphasize lemmata, definitions, proofs, etc. The package \mdname allows you to create environments with breakable frames. I think an example is the best way to demonstrate its properties.
@@ -180,7 +45,7 @@ Many users wish to (further) emphasize lemmata, definitions, proofs, etc. The pa
\newmdtheoremenv[outerlinewidth=2,leftmargin=40,rightmargin=40,%
backgroundcolor=yellow,outerlinecolor=blue,innertopmargin=0pt,%
splittopskip=\topskip,skipbelow=\baselineskip,%
- skipabove=\baselineskip,ntheorem]{theorem}{Theorem}[section]
+ skipabove=\baselineskip,ntheorem,roundcorner=5pt]{theorem}{Theorem}[section]
\begin{theorem}[Pythagorean theorem]
In any right triangle, the area of the square whose side is the hypotenuse
@@ -205,7 +70,7 @@ The frame was defined with the following settings.
\section{Syntax}\label{sec:syntax}
-The package itself loads the packages \mdpack{kvoptions}, \mdpack{etoolbox}, \mdpack{calc} and \mdpack{color}.
+The package itself loads the packages \mdpack{kvoptions}, \mdpack{etoolbox} and \mdpack{color}.
By setting the correct options \mdpack{mdframed} will load \mdpack{xcolor}, \mdpack{tikz} or \mdpack{pstricks}.
Load the package as usual:
@@ -219,17 +84,17 @@ The package defines only one environment with the following syntax:
<CONTENT>
\end{mdframed}
\end{mdexample}
+To create own environments with \mdpack{mdframed} see section \ref{sec:cmds}.
-With version 0.8 you have two commands to create environments with \mdpack{mdframed}.
-
-\mdDescribeMacro{autodetecting floats}
-With version 0.9 I added a detection of \mdpack{float} or \mdpack{minipage} environments. If you use \mdname in such an environment \mdname will use the option \mdoption{nobreak} automaticlly.
+\minisec{Autodetecting floats}
+I added a detection of \mdpack{float} or \mdpack{minipage} environments. If you use \mdname in such an environment \mdname will use the option \mdoption{nobreak} automaticly.
-\mdDescribeMacro{twoside-mode} With version 0.9d I added the detection of the \mdpack{twoside}. When you are using \mdname inside \mdpack{twoside} mode you have to set the option \mdoption{innermargin}
+\minisec{Twoside-mode}
+When you are using \mdname inside \mdpack{twoside} mode you can set the option \mdoption{innermargin}
and \mdoption{outermargin} (see section \ref{optlength}).
%%%%%%%%%%%%%%%%%%%%%%%
-\section{Commands}
+\section{Commands}\label{sec:cmds}
The following commands should countenance your by the handling with \mdpack{mdframed}
\mdDescribeCmd[]{newmdenv} The command has the following syntax:
@@ -266,9 +131,9 @@ The last four arguments are equivalent to the command \mdcommand{newtheorem}. On
So far there is no \mdcommand{renewmdtheoremenv}!
-\mdDescribeMacro{\textbackslash mdfsetup}To set the options globally
+\mdDescribeMacro{\textbackslash mdfsetup}To set the options
you can use the optional argument of \mdcommand{usepackage} or
-you can use the command \mdcommand{mdfsetup} which is not limited to the preamble.
+you can use the command \mdcommand{mdfsetup} which is not limited to the preamble. Inside a group the command the settings work only local.
\mdDescribeMacro{\textbackslash mdfdefinestyle} \mdcommand{mdfdefinestyle} allow the user to define diffenrent styles and use as an option of \mdpack{mdframed} via \mdoption{style}. The option \mdoption{style} is explained in section \ref{genopt}.
@@ -282,13 +147,14 @@ foo
\end{mdframed}
\end{mdexample}
-
+\mdDescribeMacro{\textbackslash mdfapptodefinestyle} This commands allows to expand a defined style.\footnote{Thanks to Martin Scharrer and Enrico Gregorio:\newline \href{http://tex.stackexchange.com/questions/34684/argument-of-setkeys}{http://tex.stackexchange.com/questions/34684/argument-of-setkeys}}
%%%%%%%%%%%%%%%%%%%%%%%
\section{Options}
-The package allows the following global and local options:
+The packages provides various options to manipulate frames. In the following section all options are listed. Some internal macros which can be manipulated are not shown in this documentation.
+The listed option are divided in global and local options. The global options can not be used inside \mdcommand{mdfsetup}.
\subsection{Global Options}\label{globopt}
The following options are only global options.
@@ -296,7 +162,7 @@ The following options are only global options.
\mdDescribeMacro[none]{xcolor}
By setting this key, the package \mdpack{xcolor} will
be loaded with the given value(s). Without any value \mbox{\mdname} loads
-the package \mdpack{color} without any options.
+the package \mdpack{color} without any options. If the package \mdpack{xcolor} is already loaded the given option will be ignored. I recommend to load \mdpack{xcolor} before \mdname.
\mdDescribeMacro[default]{framemethod}
With this key you can change the way frames are drawn. You can decide whether the frame is drawn with
@@ -314,25 +180,27 @@ The option \mdoption{framemethod} requires a string. Allowed combination are lis
\toprule
\multicolumn{1}{@{}l}{\textbf{Method}} & \multicolumn{1}{l}{Allowed keys} \\\midrule
\LaTeX-commands & default, tex, latex, none, 0 \\
-\mdpack{TikZ} & tikz, 1 \\
+\mdpack{TikZ} & tikz, pgf, 1 \\
\mdpack{PSTricks} & pstricks, ps, postscript, 2 \\\bottomrule
\end{tabular}
\end{table}
\noindent{\small\textbf{FYI}\qquad It is independently whether the \texttt{method} is written with no, one or more capital letter.}
-\noindent\textbf{Note}\qquad The manipulation of the frames depends on the option \mdoption{framemethod}. For further information see below.
-
-
+\NOTE The manipulation of the frames depends on the option \mdoption{framemethod}. For further information see below.
\subsection{Global and Local Options}
-The options listed below can be set globally or locally.
+The options listed below can be set globally or locally and they are not limited to the preamble.
\subsubsection{Options with lengths}\label{optlength}
In figure \eqref{fig:laengen} you can see the adjustable lengths which will be described below.
All lengths accept two kinds of input. The first one is a length (e.g. 2pt) and
the second one is a number (e.g. 2) which will be multiplied by \mdoption{1 defaultunit}.
+The figure shows three different colored frames. Only \mdoption{framemethod=tikz} is able to draw such triple lines.
+
+I know that the predefined length are not well prepaired. Maybe I will change it later.
+
\mdDescribeMacro[pt]{defaultunit} see the sentence above.
\begin{center}
@@ -436,12 +304,14 @@ the second one is a number (e.g. 2) which will be multiplied by \mdoption{1 defa
\mdDescribeMacro[10pt]{innerleftmargin} Sets the length of the inner left margin of the environment.
\mdDescribeMacro[10pt]{innerrightmargin} Sets the length of the inner right margin of the environment.
-\mdDescribeMacro[\newline.4\textbackslash baselineskip]{innertopmargin} Sets the length of the inner top margin of the environment.
-\mdDescribeMacro[\newline.4\textbackslash baselineskip]{innerbottommargin} Sets the length of the inner bottom margin of the environment.
+\mdDescribeMacro[.4\textbackslash baselineskip]{innertopmargin} Sets the length of the inner top margin of the environment.
+\mdDescribeMacro[.4\textbackslash baselineskip]{innerbottommargin} Sets the length of the inner bottom margin of the environment.
\paragraph*{The following lengths are not shown in figure \eqref{fig:laengen}.}
\mbox{}
+\mdDescribeMacro[0pt]{userdefinedwidth} Sets the width of the whole \mdname environment. The width represent the width including the line width and the inner margins. The outer margins will be ignored.
+
\mdDescribeMacro{outermargin} Sets the length of the outer margin. This option is only avaidable in \texttt{twoside}-mode.
\mdDescribeMacro{innermargin} Sets the length of the inner margint. This option is only avaidable in \texttt{twoside}-mode.
@@ -450,25 +320,22 @@ the second one is a number (e.g. 2) which will be multiplied by \mdoption{1 defa
\mdDescribeMacro[0pt]{splitbottomskip} Sets the length of the skip below the splitt part of the environment.
\mdDescribeMacro[0.4pt]{linewidth} Sets the width of the line around the environment.
\mdDescribeMacro[0pt]{roundcorner} Sets the size of the radius of the corners of the frames.
- \textbf{This works only with \mdoption{framemethod=TikZ} and \mdoption{framemethod=PSTricks}.}
+ \limitation\limitation[PSTricks]
\mdDescribeMacro[0pt]{innerlinewidth} Sets the width of the inner line around the environment.
- \textbf{This works only with \mdoption{framemethod=TikZ}.}
+ \limitation
\mdDescribeMacro[0pt]{outerlinewidth} Sets the width of the outer line around the environment.
- \textbf{This works only with \mdoption{framemethod=TikZ}.}
-\mdDescribeMacro[\newline linewidth]{middlelinewidth} Sets the width of the middle line around the environment.
- \textbf{This works only with \mdoption{framemethod=TikZ}.}
+ \limitation
+\mdDescribeMacro[linewidth]{middlelinewidth} Sets the width of the middle line around the environment.\limitation
\subsubsection{Colored Options}
\mdDescribeMacro[black]{linecolor} Sets the color of the line around the environment.
-\mdDescribeMacro[\newline linecolor]{innerlinecolor} Sets the color of the inner line around the environment.
- \textbf{This works only with\mdoption{framemethod=TikZ}.}
-\mdDescribeMacro[\newline linecolor]{middlelinecolor} Sets the color of the middle line around the environment.
- \textbf{This works only with \mdoption{framemethod=TikZ}.}
-\mdDescribeMacro[\newline linecolor]{outerlinecolor} Sets the color of the outer line around the environment.
- \textbf{This works only with \mdoption{framemethod=TikZ}.}
\mdDescribeMacro[white]{backgroundcolor} Sets the color of the background of the environment.
\mdDescribeMacro[black]{fontcolor} Sets the color of the contents of the environment.
+\mdDescribeMacro[linecolor]{innerlinecolor} Sets the color of the inner line around the environment.
+ \limitation
+\mdDescribeMacro[\newline linecolor]{middlelinecolor} Sets the color of the middle line around the environment. \limitation
+\mdDescribeMacro[\newline linecolor]{outerlinecolor} Sets the color of the outer line around the environment.\limitation
\subsubsection{General options}\label{genopt}
@@ -489,15 +356,28 @@ the second one is a number (e.g. 2) which will be multiplied by \mdoption{1 defa
%\mdDescribeMacro[none]{printheight} This key allows the entries \texttt{none}, \texttt{info} or \texttt{warning}. In relation to the key the vertical space at the beginning of the environment \mdname on the current page will be printed in the \texttt{log} file.
+\mdDescribeMacro[left]{align} Sometimes it is usefull to align the environment it selfs. For this you have the option \mdoption{align} which can be set to the following strings: \mdoption{left}, \mdoption{right} and \mdoption{center}. The alignments \mdoption{left} or \mdoption{right} depend on the given lenght \mdoption{leftmargin} and \mdoption{rightmargin}. Later I will present an example to demonstrate my bad English explanation.
\mdDescribeMacro[none]{pstrickssetting} With this key you can pass several options to \mdcommand{psset}. For example
if you want all lines dashed you will have to set
\mdoption{pstrickssetting=\{linestyle=dashed\}}. It is very important
to put the options of \mdoption{pstrickssetting} in brackets.
- \textbf{This works only with \mdoption{framemethod=PSTricks}.}
+ \limitation[PSTricks]
\mdDescribeMacro[none]{tikzsetting} With this key you can pass several options to \mdcommand{tikzset}. Some examples are listed in the next section. It is very important
to put the options of \mdoption{tikzsetting} in brackets.
- \textbf{This works only with \mdoption{framemethod=TikZ}.}
+ \limitation
+
+\mdDescribeMacro[none]{apptotikzsetting} With this key you can add several options to \mdoption{tikzsetting}. This key based on the idea of manipulation of predefined keys of \mdname.
+The package \mdname define via \mdcommand{tikzset} the following keys to draw frames.
+\begin{itemize}
+ \item \mdcommand{tikzset\{mdfbox/.style\}}
+ \item \mdcommand{tikzset\{mdfcorners./style\}}
+ \item \mdcommand{tikzset\{mdfbackground./style\}}
+ \item \mdcommand{tikzset\{mdfinnerline./style\}}
+ \item \mdcommand{tikzset\{mdfouterline./style\}}
+ \item \mdcommand{tikzset\{mdfmiddleline./style\}}
+\end{itemize}
+\textbf{Before you change one please have a look at the file \texttt{md-frame-1.mdf} to see the settings.}\limitation
\subsection{Hidden Lines}
@@ -527,93 +407,23 @@ Every footnote text will be collect inside a box and will be displayed at the en
\vskip\baselineskip
\noindent\textbf{Note}\qquad The ouput of the footnotes with the option \mdoption{footnoteinside=false} are not in a splitted frame. I think it isn't useful because the first line of a new page shouldn't be a footnote.
-
\section{Examples}
-Now I present some examples. Of course I know that some of them are only gimmicks. To create the following examples I am using \mdoption{framemethod=TikZ}.
-\mdfsetup{skipabove=\baselineskip,skipbelow=\baselineskip}
-\begin{mdexample}
-\mdfsetup{outerlinewidth=5pt,innerlinewidth=0pt,
- outerlinecolor=red,roundcorner=5pt}
-\end{mdexample}
-\begin{mdframed}[outerlinewidth=5pt,innerlinewidth=0pt,outerlinecolor=red,roundcorner=5pt]
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-\end{mdframed}
-
-Now I will add the next options
-\begin{mdexample}
-\mdfsetup{topline=false,leftline=false,}
-\end{mdexample}
-\begin{mdframed}[topline=false,leftline=false,outerlinewidth=5pt,innerlinewidth=0pt,outerlinecolor=red,roundcorner=5pt]
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-\end{mdframed}
-
-Gimmick:
-\begin{mdexample}
-\mdfsetup{splitbottomskip=0.8cm,splittopskip=0cm,
- innerrightmargin=2cm,innertopmargin=1cm,%
- innerlinewidth=2pt,outerlinewidth=2pt,
- middlelinewidth=10pt,backgroundcolor=red,
- linecolor=blue,middlelinecolor=gray,
- tikzsetting={draw=yellow,line width=3pt,%
- dashed,%
- dash pattern= on 10pt off 3pt},
- rightline=false,bottomline=false}
-\end{mdexample}
-
-\begin{mdframed}[splitbottomskip=0.8cm,splittopskip=0cm,
- innerrightmargin=2cm,innertopmargin=1cm,%
- innerlinewidth=2pt,outerlinewidth=2pt,
- middlelinewidth=10pt,backgroundcolor=red,
- linecolor=blue,middlelinecolor=gray,
- tikzsetting={draw=yellow,line width=3pt,dashed,dash pattern= on 10pt off 3pt},
- rightline=false,
- bottomline=false]
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-Some Text Some Text Some Text Some Text Some Text Some Text
-\end{mdframed}
-\clearpage
-\twocolumn[\subsection{Working in twocolumn mode}]
-\lipsum[1]
-\begin{mdframed}[leftmargin=10pt,rightmargin=10pt,outerlinecolor=blue,outerlinewidth=5pt,backgroundcolor=yellow]
-\lipsum[1]
-\end{mdframed}
-Some Text Some Text Some Text Some Text Some Text Some Text
-%Some Text Some Text Some Text Some Text Some Text Some Text
-%Some Text Some Text Some Text Some Text Some Text Some Text
-\clearpage
-\onecolumn
-\subsection{Framed \texttt{listings}}
-The example below is inspired by the following post on StackExchange \href{http://tex.stackexchange.com/questions/27673/background-overflows-when-using-rounded-corners-for-listings-package-listings}{Background overflows when using rounded corners for listings (package: `listings`)}
-
-Here the solution which can be decorate as usual.
-
-\begin{mdexample}[moretexcs={BeforeBeginEnvironment,AfterEndEnvironment},morekeywords={lstlisting}]
-\BeforeBeginEnvironment{lstlisting}{%
- \begin{mdframed}[<modification>]%
- \vspace{-0.7em}}
-\AfterEndEnvironment{lstlisting}{%
- \vspace{-0.5em}%
- \end{mdframed}}
-\end{mdexample}
+I outsource the examples in four files to limited the documentation. The files are
+\begin{description}[style=nextline]
+\item[\texttt{mdframed-example-default}] Demonstration of examples created with \mdoption{framemethod=default}.
+\item[\texttt{mdframed-example-tikz}] Demonstration of examples created with \mdoption{framemethod=TikZ}.
+\item[\texttt{mdframed-example-pstricks}] Demonstration of examples created with \mdoption{framemethod=pstricks}.
+\item[\texttt{mdframed-example-texsx}] Demonstration of examples like interaction with \mdpack{listings}
+\end{description}
+The examples are often not equivalent but normally they can be adapted to another method.
\section{Errors, Warnings and Messages}
The package \mdpack{mdframed} provides different errors, warnings and
messages in the \texttt{log}-file. Some \LaTeX-editors like
-\TeX Maker(X) have a special tab for errors and warnings
+\TeX Maker or \TeX Studio have a special tab for errors and warnings
but not for messages. So you should look in the \texttt{log-File} itself.
The followings errors and warnings are generated by \mdpack{mdframed}.
@@ -707,6 +517,7 @@ body you will get this warning.
\item Improve page breaks.
\item Improve footnotes
\item Improve documentation and create a separate pdf with examples
+ \item Create styles for frame title
\end{enumerate}
\section{Previous versions}
@@ -839,190 +650,100 @@ To create only a line at the left with the correct \mdoption{leftmargin} you can
In this way you can do what you want. If you create your own style you
can save the file as \mdpack{md-frame-X.mdf}.
\mdpack{X} must be an integer.
-In this way you can use the option \mdoption{style} to
-load the file by setting \mdoption{style=X}.
+In this way you can use the option \mdoption{framemethod} to
+load the file by setting \mdoption{framemethod=X}.
\clearpage
-\subsection{Modify the frame}
-
-The example below is inspired by the following post on StackExchange \href{http://tex.stackexchange.com/questions/24101/theorem-decorations-that-stay-with-theorem-environment}{Theorem decorations that stay with theorem environment}
-
-First I will show the the result.
-\makeatletter
-\newlength{\interruptlength}
-\setlength{\interruptlength}{2.5ex}
-\newrobustcmd\overlaplines{%
- \input{md-frame-0.mdf}%
- \global\defcounter{mdf@globalstyle@cnt}{0}
- \appto\md@frame@leftline@single{%
- \llap{\color{white}%
- \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length%
- -\mdf@middlelinewidth@length+\interruptlength]%
- {\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight%
- +2\mdf@middlelinewidth@length
- -2\interruptlength}%
- }%
- }%
- \appto\md@frame@rightline@single{%
- \rlap{\color{white}%
- \hspace*{\mdfboundingboxwidth}%
- \hspace*{\mdf@innerrightmargin@length}%
- \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length%
- -\mdf@middlelinewidth@length+\interruptlength]%
- {\mdf@middlelinewidth@length}
- {\mdfboundingboxheight%
- +2\mdf@middlelinewidth@length%
- -2\interruptlength}%
- }%
- }%
-}
-\overlaplines
-\newmdtheoremenv[style=0,ntheorem,linecolor=blue,linewidth=2pt]{lem}{Lemma}[section]
-\makeatother
-
-
-\begin{lem}
-\lipsum[1]
-\end{lem}
-You can see how the lines on the left and the right are interrupted. Now I will show the code.
-I define a command which draws white lines on the left and the right side in the same way as in the style file. For this example I must include the file \texttt{md-frame-1.mdf} because this document used the global style 1.
-
-With the new length \mdcommand{interruptlength} you can manipulate the amount of overlap.
-
-\begin{mdexample}
-\newlength{\interruptlength}
-\setlength{\interruptlength}{1.5ex}
-\makeatletter
-\newlength{\interruptlength}
-\setlength{\interruptlength}{2.5ex}
-\newrobustcmd\overlaplines{%
- \input{md-frame-0.mdf}%
- \global\defcounter{mdf@globalstyle@cnt}{0}
- \appto\md@frame@leftline@single{%
- \llap{\color{white}%
- \rule[-\dp\@tempboxa
- -\mdf@innerbottommargin@length%
- -\mdf@middlelinewidth@length
- +\interruptlength]%
- {\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight%
- +2\mdf@middlelinewidth@length
- -2\interruptlength}%
- }%
- }%
- \appto\md@frame@rightline@single{%
- \rlap{\color{white}%
- \hspace*{\mdfboundingboxwidth}%
- \hspace*{\mdf@innerrightmargin@length}%
- \rule[-\dp\@tempboxa
- -\mdf@innerbottommargin@length%
- -\mdf@middlelinewidth@length
- +\interruptlength]%
- {\mdf@middlelinewidth@length}
- {\mdfboundingboxheight%
- +2\mdf@middlelinewidth@length%
- -2\interruptlength}%
- }%
- }%
-}
-\overlaplines
-\newmdtheoremenv[style=0,ntheorem,linecolor=blue,%
- linewidth=10pt]{lem}{Lemma}[section]
-\makeatother
-\end{mdexample}
+%\clearpage
+\subsection{Revision history}\label{rev}
+\raggedright
+\minisec{Version 1.0 submitted 13 Nov 2011}
+\begin{itemize*}
+\item add option \mdoption{userdefinedwidth}
+\item add option \mdoption{align}
+\item add option \mdoption{apptotikzsetting}
+\item create new command \mdcommand{mdfapptodefinestyle}
+\item changed internal algorithm
+\item removed calc instead using \eTeX\ \verb+\dimexpr+
+\item expand documentation
+\item trying to fixe problems with \mdpack{xcolor}
+\item fixed bug with \mdoption{framemethod=pstricks}
+\item create file \mdpack{mdframed-example-default}
+\item create file \mdpack{mdframed-example-tikz}
+\item create file \mdpack{mdframed-example-pstricks}
+\item create file \mdpack{mdframed-example-texsx} (texsx stands for tex stackexchange)
+\end{itemize*}
-\subsection{\mdname in combination with \mdpack{multicol}}
-How I wrote in \glqq Known Problems\grqq\ you can't combine \mdpack{multicol} with \mdname. In a simple way without any breaks you can use:
-\begin{mdexample}[moretexcs={lipsum},morekeywords={lipsum,multicols}]
-\begin{multicols}{2}
-\lipsum[1]
-\begin{mdframed}
-Text\par Text\par Text
-\end{mdframed}
-\lipsum[2]
-\end{multicols}
-\end{mdexample}
-\begin{multicols}{2}
-\lipsum[1]
-\begin{mdframed}
-Text\par Text\par Text
-\end{mdframed}
-\lipsum[2]
-\end{multicols}
-%\clearpage
-\twocolumn[\subsection{Revision history}\label{rev}]
-\setkomafont{subsubsection}{\normalfont\bfseries}
-\small\raggedright
+\footnotesize
\minisec{Version 0.9g submitted 08 Oct 2011}
-\begin{itemize}
+\begin{itemize*}
\item fixed documentation
\item added small footnote compatibility
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.9f submitted 04 Oct 2011}
-\begin{itemize}
+\begin{itemize*}
\item fixes bugs (thanks to Lars Madsen)
\item added option \mdoption{hidealllines}
\item fixed documentation
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.9e submitted 11 Sep 2011}
-\begin{itemize}
+\begin{itemize*}
\item working with \texttt{twoside} modus
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.9d submitted 10 Sep 2011}
-\begin{itemize}
+\begin{itemize*}
\item \textcolor{red}{changed the meaning of the option \mdoption{style}}!!! (inspired by Lars Madsen)
\item added option \mdoption{framemethod} (inspired by Lars Madsen)
\item added options \mdoption{needspace} (inspired by Lars Madsen)
\item added new command \mdcommand{mdfdefinestyle} (inspired by Lars Madsen)
\item fixes documentation
\item renamed \mdpack{md-frame-3.mdf} to \mdpack{md-frame-2.mdf}
-\end{itemize}
+\end{itemize*}
+
-\footnotesize
\minisec{Version 0.9b submitted 7 Sep 2011}
-\begin{itemize}
+\begin{itemize*}
\item fixes bugs in \mdcommand{newmdtheoremenv} (Thanks to Enrico Gregorio)
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.9a submitted 5 Sep 2011}
-\begin{itemize}
+\begin{itemize*}
\item fixes bugs (Thanks to Lars Madson)
\item expanded documentation (added revision history)
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.9 submitted 4 Sep 2011}
-\begin{itemize}
+\begin{itemize*}
\item added option \mdoption{nobreak}
\item detecting float environments to prevent split calculation
\item expand documentation (Thanks to Alan Munn)
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.8a}
-\begin{itemize}
+\begin{itemize*}
\item fixes bugs
\item fixes documentation
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.8 submitted 22 Aug 2011}
-\begin{itemize}
+\begin{itemize*}
\item added commands: \mdcommand{newmdenv}, \mdcommand{renewmdenv}, \mdcommand{newmdtheoremenv}
\item fixes bugs
\item fixes documentation
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.7a submitted 6 August 2011}
-\begin{itemize}
+\begin{itemize*}
\item added option \mdoption{frametitle}
\item added option \mdoption{frametitlefont}
\item allow twolumn-mode
@@ -1030,17 +751,19 @@ Text\par Text\par Text
\item added option \mdoption{tikzsetting}
\item added options for hidden lines for all styles
\item fixes bugs
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.6a submitted 22 Dec 2010}
-\begin{itemize}
+\begin{itemize*}
\item fixes bugs
\item added \mdcommand{mdfsetup}
\item expanded documentation
-\end{itemize}
+\end{itemize*}
+
+
\minisec{Version 0.6 submitted 18 Dec 2010}
-\begin{itemize}
+\begin{itemize*}
\item added \mdoption{style=3} with \mdpack{pstricks}
\item added option \mdoption{pstrickssetting}
\item added option \mdoption{splitbottomskip}
@@ -1048,34 +771,34 @@ Text\par Text\par Text
\item added options for hidden lines
\item changed the calculation
\item fixes bugs
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.4a submitted 14 May 2010}
-\begin{itemize}
+\begin{itemize*}
\item fixes bug in fontcolor
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.4 submitted 13 May 2010}
-\begin{itemize}
+\begin{itemize*}
\item Elke Schubert creates style file for \mdpack{tikz}
\item fixes some bugs -- calculation of the page dimen (thanks Dick Nickalls)
\item using tikz for the frame with different styles
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.3b submitted 1 May 2010}
-\begin{itemize}
+\begin{itemize*}
\item fixes some bugs -- thanks to Dietrich Grau
\item added new options: \mdoption{ntheorem}
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.3a submitted 23 Apr 2010}
-\begin{itemize}
+\begin{itemize*}
\item added new options: \mdoption{leftmargin} and \mdoption{rightmargin}
\item fixes some bugs
-\end{itemize}
+\end{itemize*}
\minisec{Version 0.3 submitted16 Apr 2010}
-\begin{itemize}
+\begin{itemize*}
\item first upload to \href{http://dante.ctan.org/upload}{CTAN}
-\end{itemize}
+\end{itemize*}
\end{document}
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdf
new file mode 100644
index 00000000000..8a92f0b311e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex
new file mode 100644
index 00000000000..82209c353ea
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-default.tex
@@ -0,0 +1,250 @@
+%Documenation of the package mdframed
+%%$Id: mdframed-example-default.tex 221 2011-11-13 18:03:29Z marco $
+\setcounter{errorcontextlines}{999}
+\documentclass[parskip=false,english,11pt]{ltxmdf}
+\svnInfo $Id: mdframed-example-default.tex 221 2011-11-13 18:03:29Z marco $
+\usepackage{babel}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[T1,altbullet]{lucidabr}
+\usepackage[scaled=0.82]{beramono}
+
+\usepackage[]{showexpl}
+\lstset{style=lstmdframed,explpreset={pos=b,rframe={}},}
+
+\newcommand\Loadedframemethod{default}
+\usepackage[framemethod=\Loadedframemethod]{mdframed}
+
+\title{The \mdname package}
+\subtitle{Examples for \mdoption{framemethod=\Loadedframemethod}}
+\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}}
+\version{\mdversion}
+\date{\svnToday}
+\introduction{In this document I collect various examples for \mdoption{framemethod=\Loadedframemethod}.
+Some presented examples are more or less exorbitant.}
+
+
+\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
+\newrobustcmd\ExampleText{%
+ An \textit{inhomogeneous linear} differential equation has the form
+ \begin{align}
+ L[v ] = f,
+ \end{align}
+ where $L$ is a linear differential operator, $v$ is
+ the dependent variable, and $f$ is a given non-zero
+ function of the independent variables alone.
+}
+
+
+\newcounter{examplecount}
+\setcounter{examplecount}{0}
+\renewcommand\thesubsection{}
+\newcommand\Examplesec[1]{%
+\stepcounter{examplecount}%
+\subsection{Example~\arabic{examplecount}~--~#1\relax}%
+}
+
+\begin{document}
+\maketitle
+\section{Loading}
+In the preamble only the package \mdname width the option \mdoption{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \mdcommand{mdfdefinestyle} or \mdcommand{mdfsetup}.
+
+{\large\color{red!50!black}
+\NOTE Every \mdcommand{global} inside the examples is necessary to work with the package \mdpack{showexpl}.}
+
+\section{Examples}
+All examples have the following settings:
+
+\begin{mdexample}
+\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
+\newrobustcmd\ExampleText{%
+An \textit{inhomogeneous linear} differential equation
+has the form
+\begin{align}
+L[v ] = f,
+\end{align}
+where $L$ is a linear differential operator, $v$ is
+the dependent variable, and $f$ is a given non-zero
+function of the independent variables alone.
+}
+\end{mdexample}
+\clearpage
+\Examplesec{very simple}
+\begin{LTXexample}
+\global\mdfdefinestyle{exampledefault}{%
+ linecolor=red,linewidth=3pt,%
+ leftmargin=1cm,rightmargin=1cm
+}
+\begin{mdframed}[style=exampledefault]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+
+
+\Examplesec{hidden line + frame title}
+\begin{LTXexample}
+\global\mdfapptodefinestyle{exampledefault}{%
+ topline=false,rightline=false,bottomline=false}
+\begin{mdframed}[style=exampledefault,frametitle={Inhomogeneous linear}]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+\clearpage
+\Examplesec{colored frame title}
+\begin{LTXexample}
+\renewcommand\mdframedtitleenv[1]{%
+ \colorbox{green}{%
+ \parbox{\linewidth}{\centering\bfseries #1}}%
+ \par\kern.5\baselineskip\noindent%
+ }
+\global\mdfapptodefinestyle{exampledefault}{%
+ rightline=true}
+\begin{mdframed}[style=exampledefault,frametitle={Inhomogeneous linear}]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+
+\Examplesec{framed picture which is centered}
+\begin{LTXexample}
+\begin{mdframed}[userdefinedwidth=6cm,align=center,
+ linecolor=blue,linewidth=4pt]
+\includegraphics[width=\linewidth]{donald-duck}
+\end{mdframed}
+\end{LTXexample}
+
+\Examplesec{theorem with separate header and the help of TikZ (complex)}
+\begin{mdexample}
+\makeatletter
+\newcounter{theo}[section]
+\newcommand*\newmdframedtitleenv[1]{%
+ \@afterindentfalse
+ {\parindent \z@
+ \setlength{\parfillskip}{\z@ plus 1fil}%
+ \mdraggedtitle\nobreak%
+ \makebox[\linewidth][l]{%
+ \hspace*{-1\mdf@innerleftmargin@length}%
+ \rlap{\color{white}%
+ \hspace*{-1\mdf@middlelinewidth@length}%
+ \rule[\mdf@middlelinewidth@length]%
+ {\dimexpr\linewidth+1\mdf@innerleftmargin@length%
+ +\mdf@innerrightmargin@length
+ +2\mdf@middlelinewidth@length\relax}%
+ {\dimexpr\ht\strutbox+.3333em\relax}%
+ }%
+ \rlap{\color{blue!20}%
+ \rule{\dimexpr\linewidth+\mdf@innerleftmargin@length%
+ +\mdf@innerrightmargin@length\relax}%
+ {\mdf@middlelinewidth@length}}%
+ \hspace*{-1\mdf@middlelinewidth@length}%
+ \tikz[remember picture,baseline]%
+ \node[,draw = none, text = black,fill = blue!20,]%
+ {\mdf@frametitlefont\strut Theorem~\thetheo#1};\relax%
+ }%
+ \par\kern.5\baselineskip}%
+ \@afterheading}
+\newenvironment{theo}[1][]{%
+ \let\mdframedtitleenv\newmdframedtitleenv%
+ \stepcounter{theo}%
+ \ifstrempty{#1}%
+ {\mdfsetup{frametitle={\strut}}}%
+ {\mdfsetup{frametitle={:~#1}}}%
+ \begin{mdframed}[innertopmargin=0pt,linecolor=blue!20,%
+ linewidth=2pt,topline=false,]%
+ }{\end{mdframed}}
+\begin{theo}[Inhomogeneous Linear]
+\ExampleText
+\end{theo}
+
+\begin{theo}
+\ExampleText
+\end{theo}
+\end{mdexample}
+\makeatletter
+\newcounter{theo}[section]
+\newcommand*\newmdframedtitleenv[1]{%
+ \@afterindentfalse
+ {\parindent \z@
+ \setlength{\parfillskip}{\z@ plus 1fil}%
+ \mdraggedtitle\nobreak%
+ \makebox[\linewidth][l]{%
+ \hspace*{-1\mdf@innerleftmargin@length}%
+ \rlap{\color{white}%
+ \hspace*{-1\mdf@middlelinewidth@length}%
+ \rule[\mdf@middlelinewidth@length]%
+ {\dimexpr\linewidth+1\mdf@innerleftmargin@length%
+ +\mdf@innerrightmargin@length
+ +2\mdf@middlelinewidth@length\relax}%
+ {\dimexpr\ht\strutbox+.3333em\relax}%
+ }%
+ \rlap{\color{blue!20}%
+ \rule{\dimexpr\linewidth+\mdf@innerleftmargin@length%
+ +\mdf@innerrightmargin@length\relax}%
+ {\mdf@middlelinewidth@length}}%
+ \hspace*{-1\mdf@middlelinewidth@length}%
+ \tikz[remember picture,baseline]%
+ \node[,draw = none, text = black,fill = blue!20,]%
+ {\mdf@frametitlefont\strut Theorem~\thetheo#1};\relax%
+ }%
+ \par\kern.5\baselineskip}%
+ \@afterheading}
+\newenvironment{theo}[1][]{%
+ \let\mdframedtitleenv\newmdframedtitleenv%
+ \stepcounter{theo}%
+ \ifstrempty{#1}%
+ {\mdfsetup{frametitle={\strut}}}%
+ {\mdfsetup{frametitle={:~#1}}}%
+ \begin{mdframed}[innertopmargin=0pt,linecolor=blue!20,%
+ linewidth=2pt,topline=false,]%
+ }{\end{mdframed}}
+\begin{theo}[Inhomogeneous Linear]
+\ExampleText
+\end{theo}
+
+\begin{theo}
+\ExampleText
+\end{theo}
+
+\clearpage
+\Examplesec{hide only a part of a line}
+The example below is inspired by the following post on StackExchange \href{http://tex.stackexchange.com/questions/24101/theorem-decorations-that-stay-with-theorem-environment}{Theorem decorations that stay with theorem environment}
+\begin{LTXexample}
+\makeatletter
+\newlength{\interruptlength}
+\setlength{\interruptlength}{2.5ex}
+\newrobustcmd\overlaplines{%
+ \appto\md@frame@leftline@single{%
+ \llap{\color{white}%
+ \rule[\dimexpr-\mdfboundingboxdepth%
+ \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}%
+ +\interruptlength\relax]%
+ {\mdf@middlelinewidth@length}%
+ {\dimexpr\mdfboundingboxtotalheight%
+ +\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}
+ +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}%
+ -2\interruptlength\relax}%
+ }%
+ }%
+ \appto\md@frame@rightline@single{%
+ \rlap{\color{white}%
+ \hspace*{\mdfboundingboxwidth}%
+ \hspace*{\mdf@innerrightmargin@length}%
+ \rule[\dimexpr-\mdfboundingboxdepth%
+ \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}
+ +\interruptlength\relax]%
+ {\mdf@middlelinewidth@length}%
+ {\dimexpr\mdfboundingboxtotalheight%
+ +\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}%
+ +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}
+ -2\interruptlength\relax}%
+ }%
+ }
+}
+\makeatother
+\overlaplines
+
+
+\begin{mdframed}[linecolor=blue,linewidth=2pt]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdf
new file mode 100644
index 00000000000..ce87a83e442
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex
new file mode 100644
index 00000000000..d7b13cd831e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-pstricks.tex
@@ -0,0 +1,113 @@
+%Documenation of the package mdframed
+%%$Id: mdframed-example-pstricks.tex 220 2011-11-13 17:39:13Z marco $
+\setcounter{errorcontextlines}{999}
+\documentclass[parskip=false,english,11pt]{ltxmdf}
+\svnInfo $Id: mdframed-example-pstricks.tex 220 2011-11-13 17:39:13Z marco $
+\usepackage{babel}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[T1,altbullet]{lucidabr}
+\usepackage[scaled=0.82]{beramono}
+
+\usepackage[]{showexpl}
+\lstset{style=lstmdframed,explpreset={pos=b,rframe={}},}
+
+\newcommand\Loadedframemethod{PSTricks}
+\usepackage[framemethod=\Loadedframemethod]{mdframed}
+
+\title{The \mdname package}
+\subtitle{Examples for \mdoption{framemethod=\Loadedframemethod}}
+\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}}
+\version{\mdversion}
+\date{\svnToday}
+\introduction{In this document I collect various examples for \mdoption{framemethod=\Loadedframemethod}.
+Some presented examples are more or less exorbitant.}
+
+
+\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
+\newrobustcmd\ExampleText{%
+ An \textit{inhomogeneous linear} differential equation has the form
+ \begin{align}
+ L[v ] = f,
+ \end{align}
+ where $L$ is a linear differential operator, $v$ is
+ the dependent variable, and $f$ is a given non-zero
+ function of the independent variables alone.
+}
+
+
+\newcounter{examplecount}
+\setcounter{examplecount}{0}
+\renewcommand\thesubsection{}
+\newcommand\Examplesec[1]{%
+\stepcounter{examplecount}%
+\subsection{Example~\arabic{examplecount}~--~#1\relax}%
+}
+
+\begin{document}
+\maketitle
+\section{Loading}
+In the preamble only the package \mdname width the option \mdoption{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \mdcommand{mdfdefinestyle} or \mdcommand{mdfsetup}.
+
+{\large\color{red!50!black}
+\NOTE Every \mdcommand{global} inside the examples is necessary to work with the package \mdpack{showexpl}.}
+
+\section{Examples}
+All examples have the following settings:
+
+\begin{mdexample}
+\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
+\newrobustcmd\ExampleText{%
+An \textit{inhomogeneous linear} differential equation
+has the form
+\begin{align}
+L[v ] = f,
+\end{align}
+where $L$ is a linear differential operator, $v$ is
+the dependent variable, and $f$ is a given non-zero
+function of the independent variables alone.
+}
+\end{mdexample}
+\clearpage
+\Examplesec{very simple}
+\begin{LTXexample}
+\global\mdfdefinestyle{exampledefault}{%
+ linecolor=red,linewidth=3pt,%
+ leftmargin=1cm,rightmargin=1cm
+}
+\begin{mdframed}[style=exampledefault,roundcorner=5]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+
+
+\Examplesec{hidden line + frame title}
+\begin{LTXexample}
+\global\mdfapptodefinestyle{exampledefault}{%
+ topline=false,rightline=false,bottomline=false}
+\begin{mdframed}[style=exampledefault,frametitle={Inhomogeneous linear}]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+
+\clearpage
+
+\Examplesec{Dash Lines}
+\begin{LTXexample}
+\global\mdfdefinestyle{exampledefault}{%
+ pstrickssetting={linestyle=dashed,},linecolor=red,linewidth=5pt}
+\begin{mdframed}[style=exampledefault,]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+
+\Examplesec{Double Lines}
+\begin{LTXexample}
+\global\mdfdefinestyle{exampledefault}{%
+ pstrickssetting={doubleline=true,doublesep=3pt},
+ linecolor=red,linewidth=5pt}
+\begin{mdframed}[style=exampledefault,]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdf
new file mode 100644
index 00000000000..583bb0aa435
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex
new file mode 100644
index 00000000000..bd78dac88d2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-texsx.tex
@@ -0,0 +1,136 @@
+%Documenation of the package mdframed
+%%$Id: mdframed-example-texsx.tex 220 2011-11-13 17:39:13Z marco $
+\setcounter{errorcontextlines}{999}
+\documentclass[parskip=false,english,11pt]{ltxmdf}
+\svnInfo $Id: mdframed-example-texsx.tex 220 2011-11-13 17:39:13Z marco $
+\usepackage{babel}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[T1,altbullet]{lucidabr}
+\usepackage[scaled=0.82]{beramono}
+
+\usepackage[]{showexpl}
+\lstset{style=lstmdframed,explpreset={pos=b,rframe={}},}
+
+\newcommand\Loadedframemethod{default}
+\usepackage[framemethod=\Loadedframemethod]{mdframed}
+
+\title{The \mdname package}
+\subtitle{Examples for \mdoption{framemethod=\Loadedframemethod}}
+\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}}
+\version{\mdversion}
+\date{\svnToday}
+\introduction{In this document I collect various examples for \mdoption{framemethod=\Loadedframemethod}.
+Some presented examples are more or less exorbitant.}
+
+
+\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
+\newrobustcmd\ExampleText{%
+ An \textit{inhomogeneous linear} differential equation has the form
+ \begin{align}
+ L[v ] = f,
+ \end{align}
+ where $L$ is a linear differential operator, $v$ is
+ the dependent variable, and $f$ is a given non-zero
+ function of the independent variables alone.
+}
+
+
+\newcounter{examplecount}
+\setcounter{examplecount}{0}
+\renewcommand\thesubsection{}
+\newcommand\Examplesec[1]{%
+\stepcounter{examplecount}%
+\subsection{Example~\arabic{examplecount}~--~#1\relax}%
+}
+
+\usepackage{lipsum}
+
+\begin{document}
+\maketitle
+\section{Loading}
+In the preamble only the package \mdname width the option \mdoption{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \mdcommand{mdfdefinestyle} or \mdcommand{mdfsetup}.
+
+{\large\color{red!50!black}
+\NOTE Every \mdcommand{global} inside the examples is necessary to work with the package \mdpack{showexpl}.}
+
+\section{Examples}
+All examples have the following settings:
+
+\begin{mdexample}
+\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
+\newrobustcmd\ExampleText{%
+An \textit{inhomogeneous linear} differential equation
+has the form
+\begin{align}
+L[v ] = f,
+\end{align}
+where $L$ is a linear differential operator, $v$ is
+the dependent variable, and $f$ is a given non-zero
+function of the independent variables alone.
+}
+\end{mdexample}
+\clearpage
+\Examplesec{Package listings}
+The example below is inspired by the following post on StackExchange \href{http://tex.stackexchange.com/questions/27673/background-overflows-when-using-rounded-corners-for-listings-package-listings}{Background overflows when using rounded corners for listings (package: `listings`)}
+
+Here the solution which can be decorate as usual.
+
+\begin{mdexample}[moretexcs={BeforeBeginEnvironment,AfterEndEnvironment},morekeywords={lstlisting}]
+\BeforeBeginEnvironment{lstlisting}{%
+ \begin{mdframed}[<modification>]%
+ \vspace{-0.7em}}
+\AfterEndEnvironment{lstlisting}{%
+ \vspace{-0.5em}%
+ \end{mdframed}}
+\end{mdexample}
+
+\Examplesec{Package multicol}
+How I wrote in \glqq Known Problems\grqq\ you can't combine \mdpack{multicol} with \mdname. In a simple way without any breaks you can use:
+\begin{LTXexample}
+\begin{multicols}{2}
+\lipsum[1]
+\begin{mdframed}
+\ExampleText
+\end{mdframed}
+\lipsum[2]
+\end{multicols}
+\end{LTXexample}
+\clearpage
+\twocolumn[\Examplesec{Working in twocolumn mode}]
+\begin{mdexample}
+\twocolumn[%
+ \Examplesec{Working in
+ twocolumn mode}]
+\lipsum[2]
+\begin{mdframed}[%
+ leftmargin=10pt,%
+ rightmargin=10pt,%
+ linecolor=red,
+ backgroundcolor=yellow]
+\ExampleText
+\end{mdframed}
+\lipsum[2]
+\end{mdexample}
+\lipsum[2]\lipsum[2]
+\begin{mdframed}[leftmargin=10pt,%
+ rightmargin=10pt,%
+ linecolor=red,
+ backgroundcolor=yellow]
+\ExampleText
+\end{mdframed}
+\lipsum[2]
+\onecolumn
+\Examplesec{Working inside enumerate}
+\begin{LTXexample}
+Text Text Text Text Text Text Text Text
+\begin{enumerate}
+\item in the following \ldots
+ \begin{mdframed}[linecolor=blue,linewidth=2]
+ \ExampleText
+ \end{mdframed}
+\item \lipsum[2]
+\end{enumerate}
+Text Text Text Text Text Text
+\end{LTXexample}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdf b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdf
new file mode 100644
index 00000000000..8e386b575cc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex
new file mode 100644
index 00000000000..74e4f397256
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mdframed/mdframed-example-tikz.tex
@@ -0,0 +1,216 @@
+%Documenation of the package mdframed
+%%$Id: mdframed-example-tikz.tex 220 2011-11-13 17:39:13Z marco $
+\setcounter{errorcontextlines}{999}
+\documentclass[parskip=false,english,11pt]{ltxmdf}
+\svnInfo $Id: mdframed-example-tikz.tex 220 2011-11-13 17:39:13Z marco $
+\usepackage{babel}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[T1,altbullet]{lucidabr}
+\usepackage[scaled=0.82]{beramono}
+
+\usepackage[]{showexpl}
+\lstset{style=lstmdframed,explpreset={pos=b,rframe={}},}
+
+\newcommand\Loadedframemethod{TikZ}
+\usepackage[framemethod=\Loadedframemethod]{mdframed}
+
+\title{The \mdname package}
+\subtitle{Examples for \mdoption{framemethod=\Loadedframemethod}}
+\author{\href{mailto:marco.daniel@mada-nada.de}{Marco Daniel}}
+\version{\mdversion}
+\date{\svnToday}
+\introduction{In this document I collect various examples for \mdoption{framemethod=\Loadedframemethod}.
+Some presented examples are more or less exorbitant.}
+
+
+\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
+\newrobustcmd\ExampleText{%
+ An \textit{inhomogeneous linear} differential equation has the form
+ \begin{align}
+ L[v ] = f,
+ \end{align}
+ where $L$ is a linear differential operator, $v$ is
+ the dependent variable, and $f$ is a given non-zero
+ function of the independent variables alone.
+}
+
+
+\newcounter{examplecount}
+\setcounter{examplecount}{0}
+\renewcommand\thesubsection{}
+\newcommand\Examplesec[1]{%
+\stepcounter{examplecount}%
+\subsection{Example~\arabic{examplecount}~--~#1\relax}%
+}
+
+\begin{document}
+\maketitle
+\section{Loading}
+In the preamble only the package \mdname width the option \mdoption{framemethod=\Loadedframemethod} is loaded. All other modifications will be done by \mdcommand{mdfdefinestyle} or \mdcommand{mdfsetup}.
+
+{\large\color{red!50!black}
+\NOTE Every \mdcommand{global} inside the examples is necessary to work with the package \mdpack{showexpl}.}
+
+\section{Examples}
+All examples have the following settings:
+
+\begin{mdexample}
+\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
+\newrobustcmd\ExampleText{%
+An \textit{inhomogeneous linear} differential equation
+has the form
+\begin{align}
+L[v ] = f,
+\end{align}
+where $L$ is a linear differential operator, $v$ is
+the dependent variable, and $f$ is a given non-zero
+function of the independent variables alone.
+}
+\end{mdexample}
+\clearpage
+\ExampleText{round corner}
+\begin{LTXexample}
+\global\mdfdefinestyle{exampledefault}{%
+ outerlinewidth=5pt,innerlinewidth=0pt,
+ outerlinecolor=red,roundcorner=5pt
+}
+\begin{mdframed}[style=exampledefault]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+
+\Examplesec{hidden line + frame title}
+\begin{LTXexample}
+\global\mdfapptodefinestyle{exampledefault}{%
+ topline=false,leftline=false,}
+\begin{mdframed}[style=exampledefault,frametitle={Inhomogeneous linear}]
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+
+\clearpage
+\Examplesec{Gimmick}
+\begin{LTXexample}
+\mdfsetup{splitbottomskip=0.8cm,splittopskip=0cm,
+ innerrightmargin=2cm,innertopmargin=1cm,%
+ innerlinewidth=2pt,outerlinewidth=2pt,
+ middlelinewidth=10pt,backgroundcolor=red,
+ linecolor=blue,middlelinecolor=gray,
+ tikzsetting={draw=yellow,line width=3pt,%
+ dashed,%
+ dash pattern= on 10pt off 3pt},
+ rightline=false,bottomline=false}
+\begin{mdframed}
+\ExampleText
+\end{mdframed}
+\end{LTXexample}
+
+
+\Examplesec{complex example with TikZ}
+
+\begin{mdexample}
+\tikzstyle{titregris} =
+ [draw=gray, thick, fill=white, shading = exersicetitle, %
+ text=gray, rectangle, rounded corners,
+ right,minimum height=.7cm]
+
+\pgfdeclarehorizontalshading{exersicebackground}{100bp}
+{color(0bp)=(green!40);
+color(100bp)=(black!5)}
+
+\pgfdeclarehorizontalshading{exersicetitle}{100bp}
+{color(0bp)=(red!40);
+color(100bp)=(black!5)}
+
+\newcounter{exercise}
+\renewcommand\theexercise{Exercise~n\arabic{exercise}}
+\makeatletter
+\def\mdf@@exercisepoints{}
+\define@key{mdf}{exercisepoints}{%
+ \def\mdf@@exercisepoints{#1}
+}
+\renewrobustcmd\mdfcreateextratikz{%
+ \node[titregris,xshift=1cm] at (P-|O) %
+ {~\mdf@frametitlefont{\theexercise}~};
+ \ifdefempty{\mdf@@exercisepoints}%
+ {}%
+ {\node[titregris,left,xshift=-1cm] at (P)%
+ {~\mdf@frametitlefont{\mdf@@exercisepoints points}~};}%
+}
+\makeatother
+
+\mdfdefinestyle{exercisestyle}{%
+ outerlinewidth=1pt,
+ innerlinewidth=0pt,
+ roundcorner=2pt,
+ linecolor=gray,
+ tikzsetting={shading = exersicebackground},
+ innertopmargin=1.2\baselineskip,
+ skipabove={\dimexpr0.5\baselineskip+\topskip\relax},
+ needspace=3\baselineskip,
+ frametitlefont=\sffamily\bfseries,
+ settings={\global\stepcounter{exercise}},
+ }
+
+\begin{mdframed}[style=exercisestyle,]
+\ExampleText
+\end{mdframed}
+
+\begin{mdframed}[style=exercisestyle,exercisepoints=10]
+\ExampleText
+\end{mdframed}
+\end{mdexample}
+
+\tikzstyle{titregris} =
+ [draw=gray, thick, fill=white, shading = exersicetitle, %
+ text=gray, rectangle, rounded corners,
+ right,minimum height=.7cm]
+
+\pgfdeclarehorizontalshading{exersicebackground}{100bp}
+{color(0bp)=(green!40);
+color(100bp)=(black!5)}
+
+\pgfdeclarehorizontalshading{exersicetitle}{100bp}
+{color(0bp)=(red!40);
+color(100bp)=(black!5)}
+
+\newcounter{exercise}
+\renewcommand\theexercise{Exercise~n\arabic{exercise}}
+\makeatletter
+\def\mdf@@exercisepoints{}
+\define@key{mdf}{exercisepoints}{%
+ \def\mdf@@exercisepoints{#1}
+}
+\renewrobustcmd\mdfcreateextratikz{%
+ \node[titregris,xshift=1cm] at (P-|O) {~\textbf{\theexercise}~};
+ \ifdefempty{\mdf@@exercisepoints}%
+ {}%
+ {\node[titregris,left,xshift=-1cm] at (P)%
+ {~\mdf@frametitlefont{\mdf@@exercisepoints points}~};}%
+}
+\makeatother
+
+\mdfdefinestyle{exercisestyle}{%
+ outerlinewidth=1pt,
+ innerlinewidth=0pt,
+ roundcorner=2pt,
+ linecolor=gray,
+ tikzsetting={shading = exersicebackground},
+ innertopmargin=1.2\baselineskip,
+ skipabove={\dimexpr0.5\baselineskip+\topskip\relax},
+ needspace=3\baselineskip,
+ frametitlefont=\sffamily\bfseries,
+ settings={\global\stepcounter{exercise}},
+ }
+
+\begin{mdframed}[style=exercisestyle,]
+\ExampleText
+\end{mdframed}
+
+\begin{mdframed}[style=exercisestyle,exercisepoints=10]
+\ExampleText
+\end{mdframed}
+
+
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls b/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls
new file mode 100644
index 00000000000..d52123efd05
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/mdframed/ltxmdf.cls
@@ -0,0 +1,188 @@
+%% documentclass only for the documentation of mdframed
+%% This documentclass isn't maintanened or efficient for writing
+%%
+%%
+%% Copyright (c) 2010 Marco Daniel
+%%
+%% 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: ltxmdf.cls 220 2011-11-13 17:39:13Z marco $
+%%$Rev: 220 $
+%%$Author: marco $
+%%$Date: 2011-11-13 18:39:13 +0100 (So, 13. Nov 2011) $
+
+%% Allgemeine Angaben
+\def\md@maindate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ltxmdf}[\md@maindate@svn$Id: ltxmdf.cls 220 2011-11-13 17:39:13Z marco $ ltxmdf]
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
+\ProcessOptions\relax
+\LoadClass{scrartcl}
+\RequirePackage{etoolbox}
+%Required Packages no font / no language
+\RequirePackage[nofancy,draft,notoday]{svninfo}
+\RequirePackage[left=2.5cm,right=2.5cm,top=3cm,bottom=3cm]{geometry}
+\RequirePackage[T1]{fontenc}
+\RequirePackage{microtype}
+\RequirePackage[french=quotes]{csquotes}
+\RequirePackage{xspace}
+\begingroup
+ \text@command\relax
+ \global\let\xspace@check@icr\check@icr
+\endgroup
+\xspaceaddexceptions{\xspace@check@icr}
+\RequirePackage{multicol}\columnseprule0.4pt
+\RequirePackage{scrpage2}
+\RequirePackage{listings}
+\RequirePackage[inline]{enumitem}
+\RequirePackage{amsmath}
+\RequirePackage[amsmath]{ntheorem}
+\RequirePackage{array,booktabs}
+\RequirePackage{xcolor,tikz}
+\RequirePackage{graphicx}
+\AtEndPreamble{%
+ \RequirePackage{hyperref}
+ \hypersetup{%
+ breaklinks=true,
+ pdftitle={Documenation of mdframed},%
+ pdfauthor={Marco Daniel},%
+ colorlinks=true,%
+ linkcolor=titleblue,
+ urlcolor=cyan,
+ bookmarksdepth=4,
+ }
+}
+
+%Kopf- und Fusszeilen
+\clearscrheadfoot
+\pagestyle{scrheadings}
+\automark[subsection]{section}
+\renewcommand{\sectionmark}[1]{\markboth{\sectionmarkformat #1}{}}%
+\renewcommand{\subsectionmark}[1]{\markright{\subsectionmarkformat #1}} %nur Titel ohne Nr.
+\ihead{\rightmark}
+\ohead{\leftmark}
+\ofoot{\pagemark}
+\ifoot{\svnId}
+
+
+%Tikz und Farbe
+\usetikzlibrary{calc,backgrounds,arrows,matrix}
+\colorlet{titleblue}{blue!30!black}
+
+\lstset{keywordstyle=\bfseries}
+\lstdefinestyle{lstmdframed}{%
+ basicstyle=\small\ttfamily,
+ language={[LaTeX]TeX},
+ basicstyle=\small,%
+ xleftmargin=20pt,%
+ xrightmargin=20pt,%
+ frame=single,%
+ rulecolor=\color{titleblue},%
+ framesep=5pt,%
+ framerule=1pt,%
+ texcsstyle=*\color{red!50!black}\bfseries,
+ moretexcs=intertext,
+ keywordstyle=\color{blue!60!black}\bfseries,%
+ columns=fixed,%
+ fontadjust=true,%
+ basewidth=0.65em,%
+ breakatwhitespace=true,
+ morekeywords=[2]{@length},
+ keywordstyle=[2]\color{red!50!black}\bfseries,
+ morekeywords={outerlinewidth,leftmargin,rightmargin,backgroundcolor,%
+ outerlinecolor,innertopmargin,splittopskip,skipbelow,%
+ skipabove,ntheorem,theorem,lemma,mdframed,linecolor,%
+ frametitle,infobox,innerlinewidth,roundcorner,leftline,topline,%
+ splitbottomskip,middlelinewidth,middlelinecolor,tikzsetting,%
+ rightline,bottomline,innerrightmargin,style,linewidth,lem,section,%
+ definedstyle,mdfapptodefinestyle,needspace,mdf@globalstyle@cnt,framemethod,%
+ ExampleText,titregris,draw,gray,thick,fill,white,shading,exersicetitle,
+ exersicebackground,color,green,black,exercise,exercisepoints,
+ text,rectangle,rounded,corners,right,minimum,height,xshift,at,
+ exercisestyle,settings,frametitlefont},%
+ moretexcs={newmdtheoremenv,newmdenv,theoremstyle,mdfsetup,@length,%
+ md@putbox@single,@tempboxa,mdf@,%
+ mdf@linewidth,mdf@leftmargin@length,interruptlength,%
+ setlength,newrobustcmd,overlaplines,appto,md@frame@leftline@singe,%
+ color,md@frame@leftline@single,mdf@innerbottommargin@length,%
+ mdf@middlelinewidth@length,mdfboundingboxheight,%
+ md@frame@rightline@single,mdfboundingboxwidth,%
+ mdf@innerrightmargin@length,mdfdefinestyle,mdfapptodefinestyle,defcounter,
+ tikzstyle,pgfdeclarehorizontalshading,theexercise,mdf@@exercisepoints,
+ define@key,renewrobustcmd,mdfcreateextratikz,node,ifdefempty,
+ mdf@frametitlefont,dimexpr,mdframedtitleenv,ifstrempty},%
+}
+
+
+\lstnewenvironment{mdexample}[1][]
+ {\lstset{style=lstmdframed,#1}}%
+ {}
+
+%table of contens anpassen:
+\renewcommand\tableofcontents{%
+\setcounter{tocdepth}{2}%
+ \begin{multicols}{2}[\centering\textbf{\sffamily\Large\contentsname}]
+ \@starttoc{toc}
+ \end{multicols}
+}
+
+
+%Anweisung zur Darstellung
+\newcommand*\mdoption[1]{\textsf{\color{titleblue}#1}}
+\newcommand*\mdname{\textsf{mdframed}\xspace}
+\newcommand*\mdpack[1]{\texttt{#1}\xspace}
+\newcommand*\mdsetting[1]{\textsf{#1}\xspace}
+\newcommand*\mdcommand[1]{\texttt{\textbackslash #1}\xspace}
+
+\newcommand*\mdDescribeMacro[2][]{\par\kern\baselineskip%
+ \noindent\makebox[0pt][l]{\kern-2em%
+ \textsf{\bfseries\color{titleblue}#2}%
+ }\hfill\mbox{\mdDefault{#1}}\par\kern.5ex\noindent\ignorespaces}
+\newcommand*{\mdDefault}[1]{%
+ \ifx\relax#1\relax\else{\small\mdsetting{default=#1}}\fi}
+
+\newcommand*\mdDescribeCmd[2][]{\par\kern\baselineskip%
+ \noindent\makebox[0pt][l]{\kern-2em%
+ \textsf{\bfseries\color{titleblue}\textbackslash #2}%
+ }{#1}\hfill\mbox{\mdDefault{#1}}\par\kern.5ex\noindent\ignorespaces}
+
+
+\newcommand\NOTE{\minisec{Note}}
+
+\newcommand\limitation[1][TikZ]{\newline{\small This works only with \mdoption{framemethod=#1}.}}
+
+%%Maketitle angepasst:
+\def\title#1{\def\@title{#1}}
+\def\subtitle#1{\def\@subtitle{#1}}
+\def\author#1{\def\@author{#1}}
+\def\version#1{\def\@version{#1}}
+\def\date#1{\def\@date{#1}}
+\long\def\introduction#1{\def\@introduction{#1}}
+
+\def\maketitle{%
+ \clearpage
+ \thispagestyle{empty}
+ \begingroup
+ \begingroup
+ \parindent\z@
+ \centering
+ \color{titleblue}\Large\bfseries\sffamily\@title
+ \par\kern.5\baselineskip
+ \normalfont\large\normalcolor\@subtitle
+ \par\kern.5\baselineskip
+ \null\quad\@author\hfill\@version\hfill\@date\quad\null
+ \endgroup
+ \par\kern.5\baselineskip
+ \begin{abstract}
+ \@introduction
+ \end{abstract}
+ \par\kern.2\baselineskip
+ \pdfbookmark[1]{\contentsname}{tocbook}
+ \tableofcontents
+ \endgroup
+}
+
+
+
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf
index fa8693bfa0e..ccad5636f2e 100644
--- a/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf
+++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-0.mdf
@@ -8,70 +8,87 @@
%% 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 201 2011-10-04 18:57:50Z marco $
-%%$Rev: 201 $
+%%$Id: md-frame-0.mdf 219 2011-11-13 14:17:56Z marco $
+%%$Rev: 219 $
%%$Author: marco $
-%%$Date: 2011-10-04 20:57:50 +0200 (Di, 04. Okt 2011) $
+%%$Date: 2011-11-13 15:17:56 +0100 (So, 13. Nov 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 201 2011-10-04 18:57:50Z marco $ \mdversion: \mdframedOpackagename]
+\ProvidesFile{md-frame-0.mdf}[\md@frameOdate@svn$Id: md-frame-0.mdf 219 2011-11-13 14:17:56Z marco $ \mdversion: \mdframedOpackagename]
+
+%Hilfparameter
+\def\mdf@background@default{\color{\mdf@backgroundcolor}}
+\def\mdf@linecolor@default{\color{\mdf@middlelinecolor}}
+
%%==================================================%%
%%================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}%
+ \rlap{\mdf@background@default%
+ \rule[-\mdfboundingboxdepth]%
+ {\mdfboundingboxtotalwidth}%
+ {\mdfboundingboxtotalheight}%
}%
}%
%
\def\md@frame@topandbottomline@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}}{}%
- }%
+ \rlap{\mdf@linecolor@default%
+ \ifbool{mdf@topline}{%
+ \rule[\dimexpr\mdfboundingboxheight-\mdfboundingboxdepth+\mdf@innerbottommargin@length+\mdf@innertopmargin@length\relax]
+ {\mdfboundingboxtotalwidth}%
+ {\mdf@middlelinewidth@length}}%
+ {}%
+ }%
+ \rlap{\mdf@linecolor@default%
+ \ifbool{mdf@bottomline}{%
+ \rule[\dimexpr-\mdfboundingboxdepth-\mdf@middlelinewidth@length\relax]%
+ {\mdfboundingboxtotalwidth}%
+ {\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%
+ \llap{\mdf@linecolor@default%
+ \rule[\dimexpr-\mdfboundingboxdepth%
+ \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}\relax]%
+ {\mdf@middlelinewidth@length}%
+ {\dimexpr\mdfboundingboxtotalheight%
+\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}
- +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}}%
+ +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}%
}%
}%
%
\def\md@frame@rightline@single{%
- \rlap{\color{\mdf@middlelinecolor}%
+ \rlap{\mdf@linecolor@default%
\hspace*{\mdfboundingboxwidth}%
\hspace*{\mdf@innerrightmargin@length}%
- \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length%
- \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}]%
- {\mdf@middlelinewidth@length}{\mdfboundingboxheight%
+ \rule[\dimexpr-\mdfboundingboxdepth%
+ \ifbool{mdf@bottomline}{-\mdf@middlelinewidth@length}{}\relax]%
+ {\mdf@middlelinewidth@length}%
+ {\dimexpr\mdfboundingboxtotalheight%
+\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}%
- +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}}%
+ +\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}%
}%
}%
%
\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}%
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
+ \setlength{\mdfboundingboxwidth}{\wd\@tempboxa}%
+ \setlength{\mdfboundingboxtotalwidth}{\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length\relax}%
+ \setlength{\mdfboundingboxheight}{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
+ \setlength{\mdfboundingboxdepth}{\dimexpr\dp\@tempboxa+\mdf@innerbottommargin@length\relax}%
+ \setlength{\mdfboundingboxtotalheight}{\dimexpr\mdfboundingboxheight+\mdf@innertopmargin@length+\mdf@innerbottommargin@length\relax}%
+ \noindent%
+ \setlength{\@tempdima}{\dimexpr\mdfboundingboxtotalwidth%
+ +\ifbool{mdf@leftline}{\mdf@middlelinewidth@length}{\z@}%
+ +\ifbool{mdf@rightline}{\mdf@middlelinewidth@length}{\z@}\relax}%
+ \mdf@makebox[\@tempdima]{%
+ \null%
\ifbool{mdf@leftline}{%
\hspace*{\mdf@middlelinewidth@length}%
\md@frame@leftline@single%
@@ -83,51 +100,63 @@
\md@frame@rightline@single%
}{}%
{\box\@tempboxa}%
- }%
- \fi
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \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}%
+ \rlap{\mdf@background@default%
+ \rule[-\mdfboundingboxdepth]%
+ {\mdfboundingboxtotalwidth}%
+ {\mdfboundingboxtotalheight}%
}%
}%
%
\def\md@frame@leftline@first{%
- \llap{\color{\mdf@middlelinecolor}%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]%
+ \llap{\mdf@linecolor@default%
+ \rule[-\mdfboundingboxdepth]%
{\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight+\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}}%
+ {\dimexpr\mdfboundingboxtotalheight+\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}%
}%
}%
%
\def\md@frame@topline@first{%
- \rlap{\color{\mdf@middlelinecolor}%
- \rule[\ht\tw@+\mdf@innertopmargin@length]
- {\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length}%
+ \rlap{\mdf@linecolor@default%
+ \rule[\dimexpr\mdfboundingboxheight-\mdfboundingboxdepth+\mdf@splitbottomskip@length+\mdf@innertopmargin@length\relax]
+ {\mdfboundingboxtotalwidth}%
{\mdf@middlelinewidth@length}%
}%
}
%
\def\md@frame@rightline@first{%
- \rlap{\color{\mdf@middlelinecolor}\hspace*{\mdfboundingboxwidth}%
+ \rlap{\mdf@linecolor@default\hspace*{\mdfboundingboxwidth}%
\hspace*{\mdf@innerrightmargin@length}%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]%
+ \rule[-\mdfboundingboxdepth]%
{\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight+\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}}%
+ {\dimexpr\mdfboundingboxtotalheight+\ifbool{mdf@topline}{\mdf@middlelinewidth@length}{0pt}\relax}%
}%
}%
%
\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}%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
+ \setlength{\mdfboundingboxwidth}{\wd\tw@}%
+ \setlength{\mdfboundingboxtotalwidth}{\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length\relax}%
+ \setlength{\mdfboundingboxheight}{\dimexpr\ht\tw@+\dp\tw@\relax}%
+ \setlength{\mdfboundingboxdepth}{\dimexpr\dp\tw@+\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[\@tempdima]{%
+ \null%
\ifbool{mdf@leftline}{%
\hspace*{\mdf@middlelinewidth@length}%
\md@frame@leftline@first}{}%
@@ -138,55 +167,64 @@
\ifbool{mdf@rightline}{%
\md@frame@rightline@first}{}%
{\box\tw@}%
- }%
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi%
}
%%==================================================%%
%%=================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}%
+ \rlap{\mdf@background@default%
+ \rule[-\mdfboundingboxdepth]%
+ {\mdfboundingboxtotalwidth}%
+ {\mdfboundingboxtotalheight}%
}%
}%
%
\def\md@frame@leftline@second{%
- \llap{\color{\mdf@middlelinecolor}%
- \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length%
- -\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}]%
+ \llap{\mdf@linecolor@default%
+ \rule[\dimexpr-\mdfboundingboxdepth%
+ -\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}\relax]%
{\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight+\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}}%
+ {\dimexpr\mdfboundingboxtotalheight+\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}\relax}%
}%
}%
%
\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}%
+ \rlap{\mdf@linecolor@default%
+ \rule[\dimexpr-\mdfboundingboxdepth-\mdf@middlelinewidth@length\relax]
+ {\mdfboundingboxtotalwidth}%
{\mdf@middlelinewidth@length}%
}%
}%
%
\def\md@frame@rightline@second{%
- \rlap{\color{\mdf@middlelinecolor}\hspace*{\mdfboundingboxwidth}%
+ \rlap{\mdf@linecolor@default\hspace*{\mdfboundingboxwidth}%
\hspace*{\mdf@innerrightmargin@length}%
- \rule[-\dp\@tempboxa-\mdf@innerbottommargin@length%
- -\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}]%
+ \rule[\dimexpr-\mdfboundingboxdepth%
+ -\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}\relax]%
{\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight+\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}}%
+ {\dimexpr\mdfboundingboxtotalheight+\ifbool{mdf@bottomline}{\mdf@middlelinewidth@length}{0pt}\relax}%
}%
}%
%
\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}%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
+ \setlength{\mdfboundingboxwidth}{\wd\@tempboxa}%
+ \setlength{\mdfboundingboxtotalwidth}{\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length\relax}%
+ \setlength{\mdfboundingboxheight}{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
+ \setlength{\mdfboundingboxdepth}{\dimexpr\dp\@tempboxa+\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[\@tempdima]{%
+ \null%
\ifbool{mdf@leftline}{%
\hspace*{\mdf@middlelinewidth@length}%
\md@frame@leftline@second}{}%
@@ -197,43 +235,54 @@
\ifbool{mdf@rightline}{%
\md@frame@rightline@second}{}%
{\box\@tempboxa}%
- }%
+ }%
+ \mdf@makeboxalign@right%
+ }%
\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}%
+ \rlap{\mdf@background@default%
+ \rule[-\mdfboundingboxdepth]%
+ {\mdfboundingboxtotalwidth}%
+ {\mdfboundingboxtotalheight}%
}%
}%
%
\def\md@frame@leftline@middle{%
- \llap{\color{\mdf@middlelinecolor}%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]%
+ \llap{\mdf@linecolor@default%
+ \rule[-\mdfboundingboxdepth]%
{\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight}%
+ {\mdfboundingboxtotalheight}%
}%
}%
%
\def\md@frame@rightline@middle{%
- \rlap{\color{\mdf@middlelinecolor}\hspace*{\mdfboundingboxwidth}%
+ \rlap{\mdf@linecolor@default\hspace*{\mdfboundingboxwidth}%
\hspace*{\mdf@innerrightmargin@length}%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]%
+ \rule[-\mdfboundingboxdepth]%
{\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight}%
+ {\mdfboundingboxtotalheight}%
}%
}%
%
\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}%
+ \ifvoid\@tempboxa%
+ \else
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
+ \setlength{\mdfboundingboxwidth}{\wd\tw@}%
+ \setlength{\mdfboundingboxtotalwidth}{\dimexpr\mdfboundingboxwidth+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length\relax}%
+ \setlength{\mdfboundingboxheight}{\dimexpr\ht\tw@+\dp\tw@\relax}%
+ \setlength{\mdfboundingboxdepth}{\dimexpr\dp\tw@+\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[\@tempdima]{%
+ \null%
\ifbool{mdf@leftline}{%
\hspace*{\mdf@middlelinewidth@length}%
\md@frame@leftline@middle}{}%
@@ -242,5 +291,8 @@
\ifbool{mdf@rightline}{%
\md@frame@rightline@middle}{}
{\box\tw@}%
- }%
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi%
}
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf
index 9edb1aab92a..ea3832e27fb 100644
--- a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf
+++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf
@@ -8,14 +8,14 @@
%% 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-1.mdf 201 2011-10-04 18:57:50Z marco $
-%%$Rev: 201 $
+%%$Id: md-frame-1.mdf 223 2011-11-13 18:10:49Z marco $
+%%$Rev: 223 $
%%$Author: marco $
-%%$Date: 2011-10-04 20:57:50 +0200 (Di, 04. Okt 2011) $
+%%$Date: 2011-11-13 19:10:49 +0100 (So, 13. Nov 2011) $
\def\mdframedIpackagename{md-frame-1}
\def\md@frameIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
-\ProvidesFile{md-frame-1.mdf}[\md@frameIdate@svn$Id: md-frame-1.mdf 201 2011-10-04 18:57:50Z marco $ \mdversion: \mdframedIpackagename]
+\ProvidesFile{md-frame-1.mdf}[\md@frameIdate@svn$Id: md-frame-1.mdf 223 2011-11-13 18:10:49Z marco $ \mdversion: \mdframedIpackagename]
%%%% _____t_____
%%%% | |
%%%% | |
@@ -66,7 +66,7 @@
%Allgemeine Einstellungen fuer tikz
\def\md@tikz@settings{%
%
- \tikzset{mdfbox/.style={anchor=south west,inner sep=0pt,outer sep=0pt}}% anchor der Ausgabebox ist unten links
+ \tikzset{mdfbox/.style={anchor=south west,inner sep=0pt,outer sep=0pt,\mdf@fontcolor,}}% anchor der Ausgabebox ist unten links
\tikzset{mdfcorners/.style={rounded corners=\mdf@roundcorner@length}}%
\tikzset{mdfbackground/.style={fill=\mdf@backgroundcolor,draw=\mdf@backgroundcolor}}%
%
@@ -92,6 +92,8 @@
}{}%
}%
%
+
+
% Befehle fuer Ausgabe von Rahmen und Hintergrund
\newrobustcmd*\md@tikzbox@tfl[1]{%three or four borders
\clip(0,0)rectangle(\mdfboundingboxwidth,\mdfboundingboxheight);%
@@ -114,7 +116,10 @@
% A ist der Punkt fuer den anchor (d.h. die untere linke Ecke) der Ausgabebox
%
\def\md@putbox@single{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
\md@tikz@settings%
%
\setlength\mdfboundingboxwidth{\wd\@tempboxa}%
@@ -129,7 +134,7 @@
\advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax%
\advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}%
%
- \setlength\mdfboundingboxheight{\ht\@tempboxa+\dp\@tempboxa}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
\advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax%
\advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax%
\ifbool{mdf@topline}{%
@@ -140,8 +145,10 @@
\advance\mdfboundingboxheight by \mdf@innerlinewidth@length\relax%
\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax%
\advance\mdfboundingboxheight by \mdf@outerlinewidth@length\relax}{}%
-%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
\begin{tikzpicture}%
+ \begin{scope}
\pgfmathsetlengthmacro\md@Ax{+\mdf@innerleftmargin@length}%
\pgfmathsetlengthmacro\md@Ay{+\mdf@innerbottommargin@length}%
\pgfmathsetlengthmacro\md@Ox{+0pt}%
@@ -184,12 +191,21 @@
\md@test@noline{\path[mdfbackground,mdfcorners](O)rectangle(P);}{}%
%
\node[mdfbox]at(\md@Ax,\md@Ay){\box\@tempboxa};% Ausgabebox einfuegen
+ \end{scope}
+ %HIER KOMMT EIN WEITERES MAKRO
+ \mdfcreateextratikz;
\end{tikzpicture}%
+ }%
+ \mdf@makeboxalign@right%
}%
+ \fi
}%
\def\md@putbox@first{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
\md@tikz@settings%
\setlength\mdfboundingboxwidth{\wd\tw@}%
\advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax%
@@ -203,7 +219,7 @@
\advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax%
\advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}%
%
- \setlength\mdfboundingboxheight{\ht\tw@+\dp\tw@}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}%
\advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax%
\advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax%
\ifbool{mdf@topline}{%
@@ -213,8 +229,10 @@
%
%\ifdimequal{\pagegoal}{\maxdimen}{\enlargethispage{\baselineskip}}{}% ???
\ifdimgreater{\pagegoal-\maxdimen}{0pt}{}{\enlargethispage{\baselineskip}}%
-%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
\begin{tikzpicture}
+ \begin{scope}
%
\pgfmathsetlengthmacro\md@Ax{+\mdf@innerleftmargin@length}%
\pgfmathsetlengthmacro\md@Ay{+\mdf@splitbottomskip@length}%
@@ -248,13 +266,23 @@
\md@test@noline{\path[mdfbackground,mdfcorners](O)--(O|-P)--(P)--(P|-O);}{}%
%
\node[mdfbox]at(\md@Ax,\md@Ay){\box\tw@};% Ausgabebox einfuegen
+ \end{scope}
+ %HIER KOMMT EIN WEITERES MAKRO
+ \mdfcreateextratikz;
\end{tikzpicture}%
+ }%
+ \mdf@makeboxalign@right%
}%
+ \fi
}%
+
\def\md@putbox@middle{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
\md@tikz@settings%
%
\setlength\mdfboundingboxwidth{\wd\tw@}%
@@ -269,10 +297,13 @@
\advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax%
\advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}%
%
- \setlength\mdfboundingboxheight{\ht\tw@+\dp\tw@}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}%
\advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax%
%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
\begin{tikzpicture}
+ \begin{scope}
\pgfmathsetlengthmacro\md@Ax{+\mdf@innerleftmargin@length}%
\pgfmathsetlengthmacro\md@Ay{+\mdf@splitbottomskip@length}%
\pgfmathsetlengthmacro\md@Ox{+0pt}%
@@ -298,12 +329,21 @@
{\path[mdfbackground](O)rectangle(P);}{}%
%
\node[mdfbox]at(\md@Ax,\md@Ay){\box\tw@};% Ausgabebox einfuegen
+ \end{scope}
+ %HIER KOMMT EIN WEITERES MAKRO
\end{tikzpicture}%
+ }%
+ \mdf@makeboxalign@right%
}%
+ \fi
}%
+
\def\md@putbox@second{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
\md@tikz@settings%
%
\setlength\mdfboundingboxwidth{\wd\@tempboxa}%
@@ -318,14 +358,17 @@
\advance\mdfboundingboxwidth by \mdf@middlelinewidth@length\relax%
\advance\mdfboundingboxwidth by \mdf@outerlinewidth@length\relax}{}%
%
- \setlength\mdfboundingboxheight{\ht\@tempboxa+\dp\@tempboxa}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
\advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax%
\ifbool{mdf@bottomline}{%
\advance\mdfboundingboxheight by \mdf@innerlinewidth@length\relax%
\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax%
\advance\mdfboundingboxheight by \mdf@outerlinewidth@length\relax}{}%
%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
\begin{tikzpicture}
+ \begin{scope}
\pgfmathsetlengthmacro\md@Ax{+\mdf@innerleftmargin@length}%
\pgfmathsetlengthmacro\md@Ay{+\mdf@innerbottommargin@length}%
\pgfmathsetlengthmacro\md@Ox{+0pt}%
@@ -359,7 +402,12 @@
\md@test@noline{\path[mdfbackground,mdfcorners](O|-P)--(O)--(O-|P)--(P);}{}%
%
\node[mdfbox] at (\md@Ax,\md@Ay){\box\@tempboxa};% Ausgabebox einfuegen
- \end{tikzpicture}%
- }
-}
+ \end{scope}
+ %HIER KOMMT EIN WEITERES MAKRO
+ \end{tikzpicture}%
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi
+}%
\endinput
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf b/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf
new file mode 100644
index 00000000000..bd000726079
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-2.mdf
@@ -0,0 +1,438 @@
+%%==================================================%%
+%%= Ausgabe der Box nach Vorgabe der Ausgaberoutine=%%
+%%==================================================%%
+%% Styledatei fuer das Paket mdframed erstellt durch
+%% Marco Daniel
+
+%% 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-2.mdf 214 2011-11-12 21:49:58Z marco $
+%%$Rev: 214 $
+%%$Author: marco $
+%%$Date: 2011-11-12 22:49:58 +0100 (Sa, 12. Nov 2011) $
+
+%%Allgemeine Einstellungen fuer pstricks
+%%Hier nur einfacher Rahmen mit Einstellungen
+\def\mdframedIIpackagename{md-frame-2}
+\def\md@frameIIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
+\ProvidesFile{md-frame-2.mdf}[\md@frameIIdate@svn$Id: md-frame-2.mdf 214 2011-11-12 21:49:58Z marco $ \mdversion: \mdframedIIpackagename]
+%
+\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{%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
+ \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}%
+ \setlength\mdfboundingboxwidth{\wd\@tempboxa}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
+ \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}%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
+ \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}%
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi
+}%
+%%==================================================%%
+%%================first-box=========================%%
+%%==================================================%%
+
+\def\md@putbox@first{%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
+ \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}%
+ \setlength\mdfboundingboxwidth{\wd\tw@}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}%
+ \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}%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
+ \psset{unit=1truecm}%
+ \ifdimgreater{\mdfboundingboxheight}{\vsize}
+ {\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)}
+ {\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 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}%
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi
+}%
+
+%%==================================================%%
+%%================middle-box========================%%
+%%==================================================%%
+
+\def\md@putbox@middle{%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
+ \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}%
+ \setlength\mdfboundingboxwidth{\wd\tw@}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}%
+ \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,cornersize=absolute}%
+ \psset{unit=1truecm}%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
+ \ifdimgreater{\mdfboundingboxheight}{\vsize}
+ {\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}%
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi
+}%
+%%==================================================%%
+%%=================last-box=========================%%
+%%==================================================%%
+\def\md@putbox@second{
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
+ \ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}%
+ \setlength\mdfboundingboxwidth{\wd\@tempboxa}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
+ \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}%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
+ \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}%
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi
+}%
+
+\endinput
+%eof
+
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 9f8ee185161..f9552c7589e 100644
--- a/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf
+++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-3.mdf
@@ -7,16 +7,17 @@
%% 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-3.mdf 201 2011-10-04 18:57:50Z marco $
-%%$Rev: 201 $
+
+%%$Id: md-frame-3.mdf 222 2011-11-13 18:03:53Z marco $
+%%$Rev: 222 $
%%$Author: marco $
-%%$Date: 2011-10-04 20:57:50 +0200 (Di, 04. Okt 2011) $
+%%$Date: 2011-11-13 19:03:53 +0100 (So, 13. Nov 2011) $
%%Allgemeine Einstellungen fuer pstricks
%%Hier nur einfacher Rahmen mit Einstellungen
-\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 201 2011-10-04 18:57:50Z marco $ \mdversion: \mdframedIIIpackagename]
+\def\mdframedIIpackagename{md-frame-2}
+\def\md@frameIIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
+\ProvidesFile{md-frame-2.mdf}[\md@frameIIdate@svn$Id: md-frame-3.mdf 222 2011-11-13 18:03:53Z marco $ \mdversion: \mdframedIIpackagename]
%
\def\md@ptlength@to@pscode#1{\pst@number{#1} \pst@number\psxunit div}
\let\ptTps\md@ptlength@to@pscode\relax
@@ -60,10 +61,13 @@
%%================single-box========================%%
%%==================================================%%
\def\md@putbox@single{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
\ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}%
\setlength\mdfboundingboxwidth{\wd\@tempboxa}%
- \setlength\mdfboundingboxheight{\ht\@tempboxa+\dp\@tempboxa}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
\advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax%
\advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax%
\ifbool{mdf@topline}{\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}%
@@ -73,6 +77,8 @@
\psset{linearc=\mdf@roundcorner@length,cornersize=absolut,}%
\expandafter\psset\expandafter{\mdf@psset@local}%
\psset{unit=1truecm}%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)
\md@test@ltrb{%
\psframe[linewidth=\mdf@middlelinewidth@length,linecolor=\mdf@linecolor,fillstyle=none,dimen=middle]%
@@ -149,7 +155,7 @@
(! \ptTps{\mdfboundingboxwidth} %X
\ptTps{\mdfboundingboxheight} \ptTps{\mdf@middlelinewidth@length} neg 0.5 mul add)%
}{}
- \md@test@single{}{%
+ \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 )%
@@ -186,17 +192,23 @@
\ifbool{mdf@bottomline}{\ptTps{\mdf@middlelinewidth@length} add}{}
){\box\@tempboxa}
\end{pspicture}%
- }%
-}
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi
+}%
%%==================================================%%
%%================first-box=========================%%
%%==================================================%%
\def\md@putbox@first{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
\ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}%
\setlength\mdfboundingboxwidth{\wd\tw@}%
- \setlength\mdfboundingboxheight{\ht\tw@+\dp\tw@}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}%
\advance\mdfboundingboxheight by \mdf@innertopmargin@length\relax
\advance\mdfboundingboxheight by \mdf@splitbottomskip@length\relax%
\ifbool{mdf@topline}{\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}%
@@ -204,6 +216,8 @@
\advance\mdfboundingboxwidth by \mdf@innerrightmargin@length\relax%
\psset{linearc=\mdf@roundcorner@length,cornersize=absolute}%
\expandafter\psset\expandafter{\mdf@psset@local}%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
\psset{unit=1truecm}%
\ifdimgreater{\mdfboundingboxheight}{\vsize}
{\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)}
@@ -273,24 +287,32 @@
\rput[b](!\ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate
\ptTps{\mdf@splitbottomskip@length}){\box\tw@}
\end{pspicture}%
- }%
-}
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi
+}%
%%==================================================%%
%%================middle-box========================%%
%%==================================================%%
\def\md@putbox@middle{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
\ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}%
\setlength\mdfboundingboxwidth{\wd\tw@}%
- \setlength\mdfboundingboxheight{\ht\tw@+\dp\tw@}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\tw@+\dp\tw@\relax}%
\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,cornersize=absolute}%
\psset{unit=1truecm}%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
\ifdimgreater{\mdfboundingboxheight}{\vsize}
{\begin{pspicture}(0,0)(\mdfboundingboxwidth,\vsize)}
{\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)}
@@ -316,16 +338,22 @@
\rput[b](!\ptTps{\mdfboundingboxwidth} 0.5 mul % X-Koordinate
\ptTps{\mdf@splitbottomskip@length} ){\box\tw@}
\end{pspicture}%
- }%
-}
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi
+}%
%%==================================================%%
%%=================last-box=========================%%
%%==================================================%%
\def\md@putbox@second{
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
+ \ifvoid\@tempboxa
+ \else%
+ \mdf@makebox[\linewidth]{%
+ \mdf@makeboxalign@left%
\ifbool{mdf@leftline}{\hspace*{\mdf@middlelinewidth@length}}{}%
\setlength\mdfboundingboxwidth{\wd\@tempboxa}%
- \setlength\mdfboundingboxheight{\ht\@tempboxa+\dp\@tempboxa}%
+ \setlength\mdfboundingboxheight{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
\advance\mdfboundingboxheight by \mdf@innerbottommargin@length\relax%
\ifbool{mdf@bottomline}{\advance\mdfboundingboxheight by \mdf@middlelinewidth@length\relax}{}%
\advance\mdfboundingboxwidth by \mdf@innerleftmargin@length\relax%
@@ -333,6 +361,8 @@
\expandafter\psset\expandafter{\mdf@psset@local}
\psset{linearc=\mdf@roundcorner@length,cornersize=absolute}%
\psset{unit=1truecm}%
+ \mdf@makebox[\mdfboundingboxwidth]{%
+ \null%
\begin{pspicture}(0,0)(\mdfboundingboxwidth,\mdfboundingboxheight)
%Hintergrund
\psline[linecolor=\mdf@backgroundcolor,fillstyle=solid,linestyle=solid,
@@ -397,8 +427,11 @@
\ifbool{mdf@bottomline}{\ptTps{\mdf@middlelinewidth@length} add}{}
){\box\@tempboxa}
\end{pspicture}%
- }%
-}
+ }%
+ \mdf@makeboxalign@right%
+ }%
+ \fi
+}%
\endinput
%eof
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-framepre-0.mdf b/Master/texmf-dist/tex/latex/mdframed/md-framepre-0.mdf
deleted file mode 100644
index 62fd11d01bf..00000000000
--- a/Master/texmf-dist/tex/latex/mdframed/md-framepre-0.mdf
+++ /dev/null
@@ -1,436 +0,0 @@
-%%==================================================%%
-%%= 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 105 2010-12-22 16:50:44Z marco $
-%%$Rev: 105 $
-%%$Author: marco $
-%%$Date: 2010-12-22 17:50:44 +0100 (Mi, 22. Dez 2010) $
-
-\def\mdversion{v0.6a}
-\def\mdframedOpackagename{md-frame-0}
-\def\md@frameOdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
-
-\ProvidesFile{md-frame-3.mdf}[\md@frameOdate@svn$Id: md-frame-0.mdf 105 2010-12-22 16:50:44Z marco $ \mdversion: \mdframedOpackagename]
-
-
-\let\md@textwidth\textwidth
-
-
-
-
-%%=single=%%
-\def\md@frame@background@single{%
- \rlap{\color{\mdf@backgroundcolor}%
- \setlength{\mdfboundingboxheight}{\ht\@tempboxa+\dp\@tempboxa}%
- \addtolength{\mdfboundingboxheight}{%
- \mdf@innertopmargin@length%
- +\mdf@innerbottommargin@length%
- }%
- \rule[-\mdf@innerbottommargin@length]%
- {\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- }{\mdfboundingboxheight}%
- }%
-}%
-%
-\def\md@frame@leftandbottomandtopline@single{%
- \setlength{\mdfboundingboxheight}{\ht\@tempboxa+\dp\@tempboxa}%
- \addtolength{\mdfboundingboxheight}{%
- \mdf@innertopmargin@length%
- +\mdf@innerbottommargin@length%
- +\mdf@middlelinewidth@length%
- +\mdf@middlelinewidth@length%
- }%
- \rlap{\color{\mdf@middlelinecolor}%
- \ifbool{mdf@leftline}%
- {\rule[-\mdf@innerbottommargin@length]%
- {\mdf@middlelinewidth}{\mdfboundingboxheight-2\mdf@middlelinewidth@length}%
- }{}%
- }%
- \rlap{\color{\mdf@middlelinecolor}%
- \ifmdf@bottomline%
- \ifboolexpr{ bool {mdf@leftline} and bool {mdf@rightline} }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[-\mdf@innerbottommargin@length-\mdf@middlelinewidth@length]%
- {\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +\mdf@middlelinewidth@length%
- +\mdf@middlelinewidth@length%
- }{\mdf@linewidth}%
- }{}%
- \ifboolexpr{ bool {mdf@leftline} and not( bool {mdf@rightline}) }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[-\mdf@innerbottommargin@length-\mdf@middlelinewidth@length]%
- {\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +\mdf@middlelinewidth@length%
- % +\mdf@middlelinewidth@length%
- }{\mdf@linewidth}%
- }{}%
- \ifboolexpr{ not(bool {mdf@leftline}) and bool {mdf@rightline} }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[-\mdf@innerbottommargin@length-\mdf@middlelinewidth@length]%
- {\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +\mdf@middlelinewidth@length%
- % +\mdf@middlelinewidth@length%
- }{\mdf@linewidth}%
- }{}%
- \ifboolexpr{ not(bool {mdf@leftline}) and not( bool {mdf@rightline}) }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[-\mdf@innerbottommargin@length-\mdf@middlelinewidth@length]%
- {\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- % +\mdf@middlelinewidth@length%
- % +\mdf@middlelinewidth@length%
- }{\mdf@linewidth}%
- }{}%
- \fi%
- }%
- \rlap{\color{\mdf@middlelinecolor}%
- \ifmdf@topline%
- \ifboolexpr{ bool {mdf@leftline} and bool {mdf@rightline} }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[%
- \mdf@innertopmargin@length
- +\ht\@tempboxa+\dp\@tempboxa]%
- {\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +\mdf@middlelinewidth@length%
- +\mdf@middlelinewidth@length%
- }{\mdf@linewidth}%
- }{}%
- \ifboolexpr{ bool {mdf@leftline} and not( bool {mdf@rightline}) }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[%
- \mdf@innertopmargin@length
- +\ht\@tempboxa+\dp\@tempboxa]%
- {\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
-% +\mdf@middlelinewidth@length%
- +\mdf@middlelinewidth@length%
- }{\mdf@linewidth}%
- }{}%
- \ifboolexpr{ not(bool {mdf@leftline}) and bool {mdf@rightline} }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[%
- \mdf@innertopmargin@length
- +\ht\@tempboxa+\dp\@tempboxa]%
- {\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
-% +\mdf@middlelinewidth@length%
- +\mdf@middlelinewidth@length%
- }{\mdf@linewidth}%
- }{}%
- \ifboolexpr{ not(bool {mdf@leftline}) and not( bool {mdf@rightline}) }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[%
- \mdf@innertopmargin@length
- +\ht\@tempboxa+\dp\@tempboxa]%
- {\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
-% +\mdf@middlelinewidth@length%
-% +\mdf@middlelinewidth@length%
- }{\mdf@linewidth}%
- }{}%
- \fi%
- }%
-}%
-
-\def\md@frame@rightline@single{%
- \llap{\color{\mdf@middlelinecolor}
- \ifmdf@rightline%
- \rule[-\mdf@innerbottommargin@length]%
- {\mdf@linewidth}%
- {\mdfboundingboxheight-2\mdf@middlelinewidth@length}%
- \fi%
- }%
-}%
-
-
-\def\md@putbox@single{%%%%% Ausgabe der ungesplitteten Gesamtbox
- \ifvoid\@tempboxa
- \else
- \leftline{%
- \null\hspace*{\mdf@leftmargin@length}%
- \md@frame@leftandbottomandtopline@single%
- \ifbool{mdf@leftline}%
- {\hspace*{\mdf@middlelinewidth@length}}{}%
- \md@frame@background@single%
- \hspace*{\mdf@innerleftmargin@length}%
- {\box\@tempboxa}%
- \hspace*{\mdf@innerrightmargin@length}%
- \hspace*{\mdf@middlelinewidth@length}%
- \md@frame@rightline@single%
- }%
- \fi
-}
-
-
-%%=first=%%
-
-\def\md@frame@background@first{%
- \setlength{\mdfboundingboxheight}{\ht\tw@+\dp\tw@}%
- \addtolength{\mdfboundingboxheight}{%
- \mdf@innertopmargin@length%
- +\mdf@splitbottomskip@length%
- }%
- \rlap{\color{\mdf@backgroundcolor}%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]%
- {\wd\tw@+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length}%
- {\mdfboundingboxheight}%
- }%
-}%
-
-\def\md@frame@topandleftline@first{%
- \setlength{\mdfboundingboxheight}{\ht\tw@+\dp\tw@}%
- \addtolength{\mdfboundingboxheight}{%
- 1\mdf@innertopmargin@length%
- +1\mdf@middlelinewidth@length%
- +\mdf@splitbottomskip@length%
- }%
- \rlap{\color{\mdf@middlelinecolor}
- \ifbool{mdf@leftline}%
- {%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]%
- {\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight-\mdf@middlelinewidth@length}%
- }{}%
- }%
- \rlap{\color{\mdf@middlelinecolor}%
- \ifmdf@topline
- \ifboolexpr{ bool {mdf@leftline} and bool {mdf@rightline}}%
- {\rule[\mdfboundingboxheight-\mdf@middlelinewidth@length-\dp\tw@-\mdf@splitbottomskip@length]%
- {\wd\tw@%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +\mdf@middlelinewidth@length%
- +\mdf@middlelinewidth@length%
- }{\mdf@linewidth@length}%
- }{}%
- \ifboolexpr{ bool {mdf@leftline} and not(bool {mdf@rightline}) }%
- {\rule[\mdfboundingboxheight-\mdf@middlelinewidth@length-\dp\tw@-\mdf@splitbottomskip@length]%
- {\wd\tw@%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +\mdf@middlelinewidth@length%
-% +\mdf@middlelinewidth@length%
- }{\mdf@linewidth@length}%
- }{}%
- \ifboolexpr{ not (bool {mdf@leftline}) and bool {mdf@rightline} }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[\mdfboundingboxheight-\mdf@middlelinewidth@length-\dp\tw@-\mdf@splitbottomskip@length]%
- {\wd\tw@%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +\mdf@middlelinewidth@length%
-% +\mdf@middlelinewidth@length%
- }{\mdf@linewidth@length}%
- }{}%
- \ifboolexpr{ not (bool {mdf@leftline}) and not( bool {mdf@rightline}) }%
- {%\hspace*{\mdf@middlelinewidth@length}%
- \rule[\mdfboundingboxheight-\mdf@middlelinewidth@length-\dp\tw@-\mdf@splitbottomskip@length]%
- {\wd\tw@%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
-% +\mdf@middlelinewidth@length%
-% +\mdf@middlelinewidth@length%
- }{\mdf@linewidth@length}%
- }{}%
- \fi%
- \ifmdf@rightline
- \ifmdf@topline\else%
- \deflength\@tempskipb{\wd\tw@%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +2\mdf@middlelinewidth@length%
- }%
- \hspace*{\@tempskipb}%
- \fi%
- \llap{\color{\mdf@middlelinecolor}%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]{\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight-\mdf@middlelinewidth@length}%
- }%
- \fi%
- }%
-}%
-
-
-
-
-\def\md@putbox@first{%%%% Ausgabe der Teilbox 1
- \leftline{%
- \null\hspace*{\mdf@leftmargin@length}%
- \md@frame@topandleftline@first%
- \ifbool{mdf@leftline}%
- {\hspace*{\mdf@middlelinewidth@length}}{}%
- \md@frame@background@first%
- \hspace*{\mdf@innerleftmargin@length}%
- {\box\tw@}%
- }%
-}
-
-%%=second=%%
-
-\def\md@frame@background@second{%
- \setlength{\mdfboundingboxheight}{\ht\@tempboxa+\dp\@tempboxa}%
- \addtolength{\mdfboundingboxheight}{%
- +\mdf@innerbottommargin@length%
- }%
- \rlap{\color{\mdf@backgroundcolor}%
- \rule[\dp\@tempboxa-\mdf@innerbottommargin@length]%
- {\wd\@tempboxa+\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length}%
- {\mdfboundingboxheight}%
- }%
-}%
-
-\def\md@frame@lines@second{%
- \setlength{\mdfboundingboxheight}{\ht\@tempboxa+\dp\@tempboxa}%
- \addtolength{\mdfboundingboxheight}{%
- +\mdf@innerbottommargin@length%
- +\mdf@middlelinewidth@length%
- }%
- \rlap{\color{\mdf@middlelinecolor}%
- \ifbool{mdf@leftline}%
- {\rule[\dp\@tempboxa-\mdf@innerbottommargin@length]%
- {\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight-\mdf@middlelinewidth@length}%
- }{}%
- }%
- \rlap{\color{\mdf@middlelinecolor}%
- \ifbool{mdf@bottomline}%
- {%
- \ifboolexpr{ bool {mdf@leftline} and bool {mdf@rightline} }%
- {\rule[\dp\@tempboxa-\mdf@innerbottommargin@length-\mdf@middlelinewidth@length]%
- {\wd\@tempboxa+\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length+2\mdf@middlelinewidth@length}%
- {\mdf@middlelinewidth@length}%
- }{}%
- \ifboolexpr{ not (bool {mdf@leftline}) and not(bool {mdf@rightline}) }%
- {%
- \rule[\dp\@tempboxa-\mdf@innerbottommargin@length-\mdf@middlelinewidth@length]%
- {\wd\@tempboxa+\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length}%
- {\mdf@middlelinewidth@length}%
- }{}%
- \ifboolexpr{ bool {mdf@leftline} and not( bool {mdf@rightline}) }%
- {%
- \rule[\dp\@tempboxa-\mdf@innerbottommargin@length-\mdf@middlelinewidth@length]%
- {\wd\@tempboxa+\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length+\mdf@middlelinewidth@length}%
- {\mdf@middlelinewidth@length}%
- }{}%
- \ifboolexpr{ not(bool {mdf@leftline}) and bool {mdf@rightline} }%
- {%
- \rule[\dp\@tempboxa-\mdf@innerbottommargin@length-\mdf@middlelinewidth@length]%
- {\wd\@tempboxa+\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length+\mdf@middlelinewidth@length}%
- {\mdf@middlelinewidth@length}%
- }{}%
- }{}%
- \llap{\color{\mdf@middlelinecolor}%
- \ifbool{mdf@rightline}%
- {\rule[\dp\@tempboxa-\mdf@innerbottommargin@length]%
- {\mdf@middlelinewidth@length}%
- {\mdfboundingboxheight-\mdf@middlelinewidth@length}%
- \ifbool{mdf@bottomline}{}%
- {\deflength\@tempskipb{\wd\@tempboxa%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +2\mdf@middlelinewidth@length%
- }%
- \hspace*{-\@tempskipb}%
- }%
- }{}%
- }%
- }%
-}%
-
-
-\def\md@putbox@second{%%%%% Ausgabe der mittleren Teilbox
- \ifvoid\@tempboxa%
- \else
- \leftline{%
- \null\hspace*{\mdf@leftmargin@length}%
- \md@frame@lines@second%
- \ifbool{mdf@leftline}%
- {\hspace*{\mdf@middlelinewidth@length}}{}%
- \md@frame@background@second%
- \hspace*{\mdf@innerleftmargin@length}%
- {\box\@tempboxa}%
- }%
- \fi%
-}%
-
-
-%%=middle=%%
-
-\def\md@frame@background@middle{%
- \setlength{\mdfboundingboxheight}{\ht\tw@+\dp\tw@}%
- \addtolength{\mdfboundingboxheight}{%
- \mdf@splitbottomskip@length%
- }%
- \rlap{\color{\mdf@backgroundcolor}%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]%
- {\wd\tw@+\mdf@innerleftmargin@length+\mdf@innerrightmargin@length}%
- {\mdfboundingboxheight}%
- }%
-}%
-
-\def\md@frame@lines@middle{%
- \setlength{\mdfboundingboxheight}{\ht\tw@+\dp\tw@}%
- \addtolength{\mdfboundingboxheight}{%
- \mdf@splitbottomskip@length%
- }%
- \rlap{\color{\mdf@middlelinecolor}%
- \ifbool{mdf@leftline}%
- {%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]{\mdf@middlelinewidth@length}{\mdfboundingboxheight}%
- }{}%
- \ifbool{mdf@rightline}%
- {%
- \deflength{\mdfpositionx}{\wd\tw@%
- +\mdf@innerleftmargin@length%
- +\mdf@innerrightmargin@length%
- +\mdf@middlelinewidth@length%
- }%
- \hspace*{\mdfpositionx}%
- \llap{\color{\mdf@middlelinecolor}%
- \rule[-\dp\tw@-\mdf@splitbottomskip@length]{\mdf@middlelinewidth@length}{\mdfboundingboxheight}%
- \ifbool{mdf@leftline}{}{}%
- }%
- }{}%
- }%
-}%
-
-
-
-
-\def\md@putbox@middle{%%%% Ausgabe der Teilbox 1
- \leftline{%
- \null\hspace*{\mdf@leftmargin@length}%
- \md@frame@lines@middle%
- \ifbool{mdf@leftline}%
- {\hspace*{\mdf@middlelinewidth@length}}{}%
- \md@frame@background@middle%
- \hspace*{\mdf@innerleftmargin@length}%
- {\box\tw@}%
- }%
-}
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-framepre-1.mdf b/Master/texmf-dist/tex/latex/mdframed/md-framepre-1.mdf
deleted file mode 100644
index 8d5f16d9c74..00000000000
--- a/Master/texmf-dist/tex/latex/mdframed/md-framepre-1.mdf
+++ /dev/null
@@ -1,193 +0,0 @@
-%%==================================================%%
-%%= 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-1.mdf 105 2010-12-22 16:50:44Z marco $
-%%$Rev: 105 $
-%%$Author: marco $
-%%$Date: 2010-12-22 17:50:44 +0100 (Mi, 22. Dez 2010) $
-
-\def\mdversion{v0.6a}
-\def\mdframedIpackagename{md-frame-1}
-\def\md@frameIdate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
-
-\ProvidesFile{md-frame-1.mdf}[\md@frameIdate@svn$Id: md-frame-1.mdf 105 2010-12-22 16:50:44Z marco $ \mdversion: \mdframedIpackagename]
-
-%%Allgemeine Einstellungen fuer tikz
-
-\def\md@tikz@settings{%
- %wenn das Innere der Doppellinie 0pt breit ist,
- %muss Grenze zwischen innerer und aeusserer Linie
- %einer Farbe zugeordnet werden
- \ifdimequal{\mdf@middlelinewidth@length}{\z@}%
- {\ifdimequal{\mdf@innerlinewidth@length}{\z@}%
- {\ifdimequal{\mdf@outerlinewidth@length}{\z@}%
- {\let\mdf@middlelinecolor\mdf@backgroundcolor}%
- {\let\mdf@middlelinecolor\mdf@outerlinecolor}%
- }%
- {\let\mdf@middlelinecolor\mdf@innerlinecolor}%
- }{}%
- \ifdimequal{\mdf@innerlinewidth@length}{\z@}%
- {\ifdimequal{\mdf@outerlinewidth@length}{\z@}%
- {\ifdimequal{\mdf@middlelinewidth@length}{\z@}%
- {}%
- {\let\mdf@middlelinecolor\mdf@linecolor}%
- }%
- {}%
- }{}%
- \tikzset{mdftext/.style={inner sep=0pt,outer sep=0pt}}%
- \tikzset{mdfcorners/.style={rounded corners=\mdf@roundcorner@length}}%
- \tikzset{mdfbackground/.style={fill=\mdf@backgroundcolor}}%
- \ifdimgreater{\mdf@outerlinewidth@length}{\z@}%
- {\tikzset{mdfborderA/.style={%
- draw=\mdf@outerlinecolor,%
- line width=2\mdf@outerlinewidth@length+\mdf@middlelinewidth@length%
- }%
- }%
- }%
- {\tikzset{mdfborderA/.style={}}}%
- \ifdimgreater{\mdf@innerlinewidth@length}{\z@}%
- {\tikzset{mdfborderI/.style={%
- draw=\mdf@innerlinecolor,%
- line width=2\mdf@innerlinewidth@length+\mdf@middlelinewidth@length%
- }%
- }%
- }%
- {\tikzset{mdfborderI/.style={}}}%
- \tikzset{mdfmiddle/.style={draw=\mdf@middlelinecolor,line width=\mdf@middlelinewidth@length}}%
-}%
-
-
-
-\def\md@putbox@single{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
- \md@tikz@settings%
- \setlength\mdfboxwidth{\wd\@tempboxa}%
- \setlength\mdfboxheight{\ht\@tempboxa+\dp\@tempboxa}%
- \begin{tikzpicture}
- \coordinate(O)at(0,0);
- \pgfmathsetlengthmacro\x{\mdfboxwidth+\mdf@innerrightmargin@length%
- +\mdf@innerleftmargin@length+%
- 2\mdf@innerlinewidth@length+\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\xp{\mdf@innerleftmargin@length+%
- 1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\y{\mdfboxheight+\mdf@innertopmargin@length%
- +\mdf@innerbottommargin@length%
- +2*\mdf@innerlinewidth@length+\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\yp{\mdf@innerbottommargin@length%
- +1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}
- \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,anchor=south west]at(\xp,\yp){\box\@tempboxa};
- \end{tikzpicture}%
- }%
-}%
-
-\def\md@putbox@first{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
- \md@tikz@settings%
- \setlength\mdfboxwidth{\wd\tw@}%
- \setlength\mdfboxheight{\ht\tw@+\dp\tw@}%
- \ifdimequal{\pagegoal}{\maxdimen}{\enlargethispage{\baselineskip}}{}%
- \begin{tikzpicture}
- \coordinate(O) at (0,0);
- \pgfmathsetlengthmacro\x{\mdfboxwidth+\mdf@innerrightmargin@length%
- +\mdf@innerleftmargin@length+%
- 2*\mdf@innerlinewidth@length+1*\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\xp{\mdf@innerleftmargin@length+%
- 1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\y{-\mdfboxheight-\mdf@innertopmargin@length%
- -1*\mdf@innerlinewidth@length-0.5*\mdf@middlelinewidth@length+0.0cm}
- \pgfmathsetlengthmacro\yp{-\mdf@innertopmargin@length%
- -1*\mdf@innerlinewidth@length-0.5*\mdf@middlelinewidth@length%
- -0.5\mdfboxheight}
- \coordinate(P)at(\x,\y);
- \clip(-\mdf@outerlinewidth@length-0.5*\mdf@middlelinewidth@length,%
- \mdf@outerlinewidth@length+0.5*\mdf@middlelinewidth@length)%
- rectangle(\x+\mdf@outerlinewidth@length+0.5*\mdf@middlelinewidth@length,\y);
- \begin{scope}
- \clip[preaction=mdfborderA]%
- [postaction={mdfbackground,mdfborderI}]%
- [mdfcorners](O|-P)--(O)--(P|-O)--(P);
- \end{scope}
- \path[mdfmiddle,mdfcorners,](O|-P)--(O)--(P|-O)--(P);
- \node[mdftext,anchor=west,inner sep=0pt,outer sep=0pt]at(\xp,\yp){\box\tw@};
-% \draw[fill] (0,0) circle (.1cm);
-% \draw[fill,yellow] (\x,\y) circle (.1cm);
-% \draw[fill,orange] (\xp,\yp) circle (.05cm);
- \end{tikzpicture}%
- }%
-}%
-
-
-\def\md@putbox@middle{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
- \md@tikz@settings%
- \setlength\mdfboxwidth{\wd\tw@}%
- \setlength\mdfboxheight{\ht\tw@}%
- \setlength{\mdf@ymargin@length}{0.4\baselineskip}%
- \begin{tikzpicture}
- \coordinate(O)at(0,0);
- \pgfmathsetlengthmacro\x{\mdfboxwidth+\mdf@innerrightmargin@length%
- +\mdf@innerleftmargin@length+%
- 2*\mdf@innerlinewidth@length+1*\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\xp{\mdf@innerleftmargin@length+%
- 1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\y{\mdfboxheight}
- \pgfmathsetlengthmacro\yp{0cm}
- \coordinate(P)at(\x,\y);
- \clip(-\mdf@outerlinewidth@length-0.5*\mdf@middlelinewidth@length,0)%
- rectangle(\x+\mdf@outerlinewidth@length+0.5*\mdf@middlelinewidth@length,\y);
- \begin{scope}
- \path[mdfborderA](O)--(O|-P)(P)--(P|-O);
- \clip[postaction=mdfbackground](O)--(O|-P)--(P)--(P|-O);
- \path[mdfborderI](O)--(O|-P)(P)--(P|-O);
- \end{scope}
- \path[mdfmiddle](O)--(O|-P)(P)--(P|-O);
- \node[mdftext,anchor=south west]at(\xp,\yp){\box\tw@};
- \end{tikzpicture}%
- }
-}
-
-\def\md@putbox@second{%
- \leftline{\null\hspace*{\mdf@leftmargin@length}%%
- \md@tikz@settings%
- \setlength\mdfboxwidth{\wd\@tempboxa}%
- \setlength\mdfboxheight{\ht\@tempboxa}%
- \begin{tikzpicture}
- \coordinate(O)at(0,0);
- \pgfmathsetlengthmacro\x{\mdfboxwidth+\mdf@innerrightmargin@length%
- +\mdf@innerleftmargin@length+%
- 2*\mdf@innerlinewidth@length+1*\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\xp{\mdf@innerleftmargin@length+%
- 1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\y{\mdfboxheight%
- +\mdf@innerbottommargin@length%
- +1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}
- \pgfmathsetlengthmacro\yp{\mdf@innerbottommargin@length%
- +1*\mdf@innerlinewidth@length+0.5*\mdf@middlelinewidth@length}
- \coordinate(P)at(\x,\y);
- \clip(-\mdf@outerlinewidth@length-0.5*\mdf@middlelinewidth@length,%
- -\mdf@outerlinewidth@length-0.5*\mdf@middlelinewidth@length)%
- rectangle(\x+\mdf@outerlinewidth@length+0.5*\mdf@middlelinewidth@length,\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,anchor=south west] at (\xp,\yp){\box\@tempboxa};
- \end{tikzpicture}%
- }
-}
diff --git a/Master/texmf-dist/tex/latex/mdframed/md-framepre-3.mdf b/Master/texmf-dist/tex/latex/mdframed/md-framepre-3.mdf
deleted file mode 100644
index ff65c795a84..00000000000
--- a/Master/texmf-dist/tex/latex/mdframed/md-framepre-3.mdf
+++ /dev/null
@@ -1,943 +0,0 @@
-%%==================================================%%
-%%= Ausgabe der Box nach Vorgabe der Ausgaberoutine=%%
-%%==================================================%%
-%% Styledatei fuer das Paket mdframed erstellt durch
-%% Marco Daniel
-
-%% 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-3.mdf 105 2010-12-22 16:50:44Z marco $
-%%$Rev: 105 $
-%%$Author: marco $
-%%$Date: 2010-12-22 17:50:44 +0100 (Mi, 22. Dez 2010) $
-
-
-%%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]
-
-\def\md@ptlength@to@pscode#1{\pst@number{#1} \pst@number\psxunit div}
-\let\ptTps\md@ptlength@to@pscode\relax
-
-
-\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,}%
- \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
- \end{pspicture}%
- }%
-}
-
-
-
-
-
-
-\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}%
- \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@}
- }{}%
- \end{pspicture}%
- }%
-}
-
-
-
-\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}}{}%
- \expandafter\psset\expandafter{\mdf@psset@local}%
- \psset{linearc=\mdf@roundcorner@length}%
- \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@}
- }{}%
- \end{pspicture}%
- }%
-}
-
-\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}
- }{}%
- \end{pspicture}%
- }%
-}
-
-\endinput
-%eof
-%eof
-%eof
-%eof
-%eof
diff --git a/Master/texmf-dist/tex/latex/mdframed/mdframed.sty b/Master/texmf-dist/tex/latex/mdframed/mdframed.sty
index 98da4a03325..9303173956d 100644
--- a/Master/texmf-dist/tex/latex/mdframed/mdframed.sty
+++ b/Master/texmf-dist/tex/latex/mdframed/mdframed.sty
@@ -32,17 +32,17 @@
%% %%
%%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>%%
-%%$Id: mdframed.sty 209 2011-10-09 11:53:45Z marco $
-%%$Rev: 209 $
+%%$Id: mdframed.sty 220 2011-11-13 17:39:13Z marco $
+%%$Rev: 220 $
%%$Author: marco $
-%%$Date: 2011-10-09 13:53:45 +0200 (So, 09. Okt 2011) $
+%%$Date: 2011-11-13 18:39:13 +0100 (So, 13. Nov 2011) $
%% Allgemeine Angaben
-\def\mdversion{v0.9h}
+\def\mdversion{v1.0}
\def\mdframedpackagename{mdframed}
\def\md@maindate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{mdframed}[\md@maindate@svn$Id: mdframed.sty 209 2011-10-09 11:53:45Z marco $ \mdversion: \mdframedpackagename]
+\ProvidesPackage{mdframed}[\md@maindate@svn$Id: mdframed.sty 220 2011-11-13 17:39:13Z marco $ \mdversion: \mdframedpackagename]
%%==================================================%%
%%=============== Benoetigte Pakete ================%%
%%==================================================%%
@@ -52,18 +52,24 @@
\IfFileExists{#1.sty}{%
\RequirePackage{#1}%
}{%
- \md@PackageWarning{The package #1 does not exist^^J
+ \md@PackageWarning{The file #1 does not exist^^J
but needed by \mdframedpackagename^^J
see documentation fo further information
}%
}
}
-\md@LoadFile@IfExist{kvoptions}
-\md@LoadFile@IfExist{etex}
-\md@LoadFile@IfExist{calc}
+
+\RequirePackage{kvoptions}
+\RequirePackage{etex}
+\RequirePackage{etoolbox}[2011/01/03]
+\RequirePackage{zref-abspage}
+
+%separate Handhabung color
\md@LoadFile@IfExist{color}
-\md@LoadFile@IfExist{etoolbox}
-\md@LoadFile@IfExist{zref-abspage}
+
+
+
+
\SetupKeyvalOptions{family=mdf,prefix=mdf@}
%%==================================================%%
@@ -103,9 +109,10 @@
\expandafter\setlength\csname mdf@#1@length\endcsname{\csname mdfl@#1\endcsname}%
}%
}
-%%Schleifenmakro zur Optioneneingabe Option==Laenge
-
+%%Schleifenmakro zur Optioneneingabe
\DeclareListParser*{\mdf@dolist}{,}
+
+%Laengenoptionen
\def\mdf@do@lengthoption#1{%
\mdf@lengthoption@doubledo#1\@nil%
}
@@ -113,6 +120,42 @@
\mdf@option@length{#1}{#2}%
\mdf@define@key@length{#1}%
}
+%Stringoptionen
+\def\mdf@do@stringoption#1{%
+ \mdf@stringoption@doubledo#1\@nil%
+}
+\def\mdf@stringoption@doubledo#1==#2\@nil{%
+ \expandafter\gdef\csname mdf@#1\endcsname{#2}%
+ \define@key{mdf}{#1}{%
+ \csdef{mdf@#1}{##1}%
+ }%
+}
+
+
+%Booloptionen
+\def\mdf@do@booloption#1{%
+ \mdf@booloption@doubledo#1\@nil%
+}
+\def\mdf@booloption@doubledo#1==#2\@nil{%
+ \newbool{mdf@#1}\setbool{mdf@#1}{#2}%
+ \define@key{mdf}{#1}[#2]{%
+ \setbool{mdf@#1}{##1}%
+ }%
+}
+
+%Alignoptionen
+\def\mdf@do@alignoption#1{%
+ \mdf@alignoption@tripledo#1\@nil%
+}
+\def\mdf@alignoption@tripledo#1==#2==#3\@nil{%
+ \csdef{mdf@align@#1@left}{\null\hspace*{#2}}%
+ \csdef{mdf@align@#1@right}{\hspace*{#3}\null}%
+}
+
+%%==================================================%%
+%%=====================Optionen=====================%%
+%%==================================================%%
+
%Festlegung welcher Stildatei
%% 0 := tex-Kommandos -- rule
@@ -131,8 +174,8 @@
\ifcase\value{mdf@globalstyle@cnt}\relax
%0 <- kein Grafikpaket
\or\md@LoadFile@IfExist{tikz}%1 <- tikz wird benoetigt
- \or\md@LoadFile@IfExist{tikz}%2 <- tikz wird benoetigt
- \or\md@LoadFile@IfExist{pstricks-add}%3 <- pstricks wird benoetigt
+ \or\md@LoadFile@IfExist{pstricks-add}%2 <- tikz wird benoetigt
+ \or\defcounter{mdf@globalstyle@cnt}{2}\md@LoadFile@IfExist{pstricks-add}%3 <- pstricks wird benoetigt
\or\md@LoadFile@IfExist{pstricks-add}%4 <- pstricks wird benoetigt
\else\md@PackageWarning{Unknown global style \value{mdf@globalstyle@cnt}}%
\fi%
@@ -145,7 +188,7 @@
\define@key{mdf}{framemethod}[default]{%
\lowercase{\def\md@tempa{#1}}
\forcsvlist{\listadd\md@framemethod@i}{default,tex,latex,none,0}
- \forcsvlist{\listadd\md@framemethod@ii}{tikz,1}
+ \forcsvlist{\listadd\md@framemethod@ii}{pgf,tikz,1}
\forcsvlist{\listadd\md@framemethod@iii}{pstricks,ps,2,postscript}
\xifinlist{\md@tempa}{\md@framemethod@i}%
{\def\mdf@@framemethod{default}\defcounter{mdf@globalstyle@cnt}{0}}%
@@ -154,7 +197,8 @@
{\xifinlist{\md@tempa}{\md@framemethod@iii}%
{\def\mdf@@framemethod{pstricks}\defcounter{mdf@globalstyle@cnt}{2}}%
{%
- \md@PackageWarning{Unknown framemethod \md@tempa\MessageBreak}}%
+ \md@LoadFile@IfExist{#1}%
+ }%
}%
}%
\ifcase\value{mdf@globalstyle@cnt}\relax%
@@ -165,10 +209,7 @@
\fi%
}
-
-
%%%%Optionen mit Laengen
-
\mdf@dolist{\mdf@do@lengthoption}{%
{skipabove==\z@},%
{skipbelow==\z@},%
@@ -188,13 +229,67 @@
{middlelinewidth==\expandafter\mdf@linewidth@length},%
{outerlinewidth==\z@},%
{roundcorner==\z@},%
- {footenotedistance==\medskipamount}
+ {footenotedistance==\medskipamount},
+ {userdefinedwidth==\linewidth}
}
+%%%%Optionen mit String
+\mdf@dolist{\mdf@do@stringoption}{%
+ {defaultunit==pt},%
+ {settings=={}},%
+ {linecolor==black},%
+ {backgroundcolor==white},%
+ {fontcolor==black},%
+ {innerlinecolor==\mdf@linecolor},%
+ {outerlinecolor==\mdf@linecolor},%
+ {middlelinecolor==\mdf@linecolor},%
+ {psroundlinecolor==\mdf@backgroundcolor},%
+ {frametitle=={}},%
+ {frametitlefont==\bfseries\large},%
+ {printheight==none},%
+}
+%%%%Optionen mit Boolflag
+\mdf@dolist{\mdf@do@booloption}{%
+ {ntheorem==false},%
+ {topline==true},%
+ {leftline==true},%
+ {bottomline==true},%
+ {rightline==true},%
+ {hidealllines==false},%
+ {nobreak==false},%
+ {footnoteinside==true},%
+}
+
+
+%Alignoptionen:
+\mdf@dolist{\mdf@do@alignoption}{%
+ {left==\mdf@leftmargin@length==\z@},%
+ {center==\fill==\fill},%
+ {right==\fill==\mdf@rightmargin@length},%
+ {outer==\fill==\mdf@rightmargin@length},%not supported yet
+ {outer==\mdf@leftmargin@length==\fill},%not supported yet
+}
+
+\newcommand*\mdf@align{}%
+\newcommand*\mdf@makeboxalign@left{\null\hspace*{\mdf@leftmargin@length}}%
+\newcommand*\mdf@makeboxalign@right{}%
+\define@key{mdf}{align}[left]{%
+ \ifcsundef{mdf@align@#1@left}{%
+ \md@PackageWarning{Unknown alignment #1\MessageBreak}%
+ \letcs\mdf@makeboxalign@left{mdf@align@left@left}%
+ \letcs\mdf@makeboxalign@right{mdf@align@left@right}%
+ }{%
+ \def\mdf@makeboxalign@left{\csuse{mdf@align@#1@left}}%
+ \def\mdf@makeboxalign@right{\csuse{mdf@align@#1@right}}%
+ }%
+}
%Unterstuetzung der Optionen fuer tikz
\def\mdf@tikzset@local{\tikzset{tikzsetting/.style={}}}
\define@key{mdf}{tikzsetting}{%
- \def\mdf@tikzset@local{\tikzset{tikzsetting/.style={#1}}}
+ \def\mdf@tikzset@local{\tikzset{tikzsetting/.style={#1}}}%
+}
+\define@key{mdf}{apptotikzsetting}{%
+ \appto\mdf@tikzset@local{#1}%
}
%Unterstuetzung der Optionen fuer pstricks
@@ -203,36 +298,23 @@
\def\mdf@psset@local{#1}
}
-%Unterstuetzung von eigenen Definitionen
-\def\mdf@settings{}
-\define@key{mdf}{settings}{%
- \def\mdf@settings{#1}
-}
-
-
-\DeclareStringOption[pt]{defaultunit}
+%Unterstuetzung der xcolor fuer pstricks
+\def\mdf@xcolor{}
+\define@key{mdf}{xcolor}[none]{%
+ \@ifpackageloaded{xcolor}{%
+ \let\mdf@xcolor\@empty %ignoriere die Eingabe der Optionen
+ }{%
+ \def\@tempa{none}%
+ \ifx\mdf@xcolor\@tempa
+ \else
+ \PassOptionsToPackage{\mdf@xcolor}{xcolor}%
+ \RequirePackage{xcolor}%
+ \fi%
+ }%
+ }
-%%mdframed umfasst ntheorem-Umgebung ja/nein
-\DeclareBoolOption{ntheorem}
-%Linienausgabe
-\DeclareBoolOption[true]{topline}
-\DeclareBoolOption[true]{leftline}
-\DeclareBoolOption[true]{bottomline}
-\DeclareBoolOption[true]{rightline}
-\DeclareBoolOption[false]{hidealllines}
-%%FARBEN
-\DeclareStringOption[none]{xcolor}
-\DeclareStringOption[black]{linecolor}
-\DeclareStringOption[white]{backgroundcolor}
-\DeclareStringOption[black]{fontcolor}
-\DeclareStringOption[\mdf@linecolor]{innerlinecolor}
-\DeclareStringOption[\mdf@linecolor]{outerlinecolor}
-\DeclareStringOption[\mdf@linecolor]{middlelinecolor}
-\DeclareStringOption[\mdf@backgroundcolor]{psroundlinecolor}
%Nutzung des Paketes needspace
-\DeclareStringOption[\z@]{needspace}
-\newcommand\mdf@sneedspace{}
\define@key{mdf}{needspace}[\z@]{%
\begingroup%
\setlength{\dimen@}{#1}%
@@ -248,21 +330,6 @@
\DeclareDefaultOption{%
\md@PackageWarning{Unknown Option '\CurrentOption' for mdframed}}
-%%Uberschriften
-\DeclareStringOption{frametitle}
-\DeclareStringOption[\bfseries\large]{frametitlefont}
-
-%mdframed soll nicht splitte
-\DeclareBoolOption[false]{nobreak}
-
-%Ausgabe des Platzes auf Seite -- nicht float
-%Werte none,info,warning
-\DeclareStringOption[none]{printheight}
-
-%Fussnotenposition:
-\DeclareBoolOption[true]{footnoteinside}
-
-
\ProcessKeyvalOptions*\relax
\newcommand*{\mdfsetup}{\setkeys{mdf}}
@@ -275,28 +342,9 @@
You have to define a style via \string\mdfdefinedstyle\MessageBreak
}%
}%
- {\csuse{mdf@definestyle@#1}}%
-}
-
-
-%%==================================================%%
-%%========Sicherstellen der key-value-Syntax========%%
-%%==================================================%%
-\AtBeginDocument{
- \@ifpackageloaded{xcolor}{%
- \let\mdf@xcolor\@empty %ignoriere die Eingabe der Optionen
- }{%
- \def\@tempa{none}
- \ifx\mdf@xcolor\@tempa
- \else
- \PassOptionsToPackage{\mdf@xcolor}{xcolor}
- \RequirePackage{xcolor}
- \fi
- }
-}
-
-
-
+ {\expandafter\expandafter\expandafter\mdfsetup%
+ \expandafter\expandafter\expandafter{\csname mdf@definestyle@#1\endcsname}}%
+}%
%%==================================================%%
%%==========Ausgabe des Platzes auf Seite===========%%
@@ -326,7 +374,6 @@
%%==================================================%%
%Anpassung lrbox
\let\md@lrbox\lrbox
-\let\endmd@lrbox\endlrbox
\patchcmd\md@lrbox\hbox\vbox{}{}
\patchcmd\md@lrbox\color@setgroup{%
\color@setgroup\color{\mdf@fontcolor}%
@@ -336,6 +383,7 @@
\linewidth=\hsize%
\bgroup\md@@frametitle\egroup\noindent%
}{}{}
+\def\endmd@lrbox{\unskip\color@endgroup}
%Anpassung trivlist
\let\md@trivlist\trivlist
@@ -344,15 +392,28 @@
\def\md@endparenv{%
\addpenalty\@endparpenalty\addvspace\mdf@skipbelow@length\@endpetrue}
+
+%%==================================================%%
+%%==============leftline anpassen===================%%
+%%==================================================%%
+\newrobustcmd*\mdf@makebox[2][\mdf@userdefinedwidth@length]{%
+ \noindent\makebox[#1][l]{#2}%
+}
+
+
%%==================================================%%
%%==================framestyle======================%%
%%==================================================%%
%inspired by Lars Madsen
\newrobustcmd*\mdfdefinestyle[2]{%
- \csdef{mdf@definestyle@#1}{\mdfsetup{#2}}%
+ \csdef{mdf@definestyle@#1}{#2}%
}
-
+\newrobustcmd*\mdfapptodefinestyle[2]{%
+ \ifcsundef{mdf@definestyle@#1}%
+ {\md@PackageWarning{Unknown style #1}}%
+ {\csappto{mdf@definestyle@#1}{,#2}}%
+}
%%==================================================%%
%%=============Umgebungdefinition===================%%
@@ -627,8 +688,15 @@
%%==================================================%%
%%==Deklaration diverser Eingabe und Hilfsparameter=%%
%%==================================================%%
-\newlength\mdfboundingboxheight
+%X-Laengen
\newlength\mdfboundingboxwidth
+\newlength\mdfboundingboxtotalwidth
+%Y-Laengen
+\newlength\mdfboundingboxheight
+\newlength\mdfboundingboxdepth
+\newlength\mdfboundingboxtotalheight
+
+
\newlength\md@freevspace@length
\newlength\md@horizontalwidthofbox@length
@@ -636,6 +704,10 @@
\providecommand*\ptTps{}
+%Kommando in tikz mit relax belegt:
+\newrobustcmd\mdfcreateextratikz{}
+
+
%%==================================================%%
%%==================Umgebung========================%%
%%==================================================%%
@@ -644,7 +716,7 @@
\def\mdframed@i[#1]{% default-Umgebung
\begingroup
%check is needed?
- \mdfsetup{#1}%%
+ \mdfsetup{userdefinedwidth=\linewidth,#1}%%
\md@hidealllines@check%
\mdf@settings%
\md@twoside@checklength%
@@ -667,10 +739,12 @@
\def\md@reserveda{%
\md@footnoteoutput%
\end{md@lrbox}%
+ \let\hsize\linewidth
\detected@md@put@frame}%
\else%
\def\md@reserveda{%
\end{md@lrbox}
+ \let\hsize\linewidth
\detected@md@put@frame%
\md@footnoteoutput%
}%
@@ -698,10 +772,14 @@
}%
{\settoggle{md:checktwoside}{true}}%
\iftoggle{md:checktwoside}{%
- \let\mdf@rightmargin@length\mdf@outermargin@length\relax%
- \let\mdf@leftmargin@length\mdf@innermargin@length\relax%
+ \ifdimequal{\mdf@outermargin@length}{-999pt}%
+ {\setlength\mdf@rightmargin@length{\z@}}%
+ {\setlength\mdf@rightmargin@length{\mdf@outermargin@length}}%
+ \ifdimequal{\mdf@innermargin@length}{-999pt}%
+ {\setlength\mdf@leftmargin@length{\z@}}%
+ {\setlength\mdf@leftmargin@length{\mdf@innermargin@length}}%
}{}%
- \fi
+ \fi%
}
\newcounter{md@zref@counter}%keine doppelten laebes
@@ -724,12 +802,20 @@
}
\newrobustcmd*\md@pageisodd{%
-\let\mdf@rightmargin@length\mdf@outermargin@length\relax%
-\let\mdf@leftmargin@length\mdf@innermargin@length\relax%
+ \ifdimequal{\mdf@outermargin@length}{-999pt}%
+ {\setlength\mdf@rightmargin@length{\z@}}%
+ {\setlength\mdf@rightmargin@length{\mdf@outermargin@length}}%
+ \ifdimequal{\mdf@innermargin@length}{-999pt}%
+ {\setlength\mdf@leftmargin@length{\z@}}%
+ {\setlength\mdf@leftmargin@length{\mdf@innermargin@length}}%
}
\newrobustcmd*\md@pageiseven{%
-\let\mdf@rightmargin@length\mdf@innermargin@length\relax%
-\let\mdf@leftmargin@length\mdf@outermargin@length\relax%
+ \ifdimequal{\mdf@outermargin@length}{-999pt}%
+ {\setlength\mdf@leftmargin@length{\z@}}%
+ {\setlength\mdf@leftmargin@length{\mdf@outermargin@length}}%
+ \ifdimequal{\mdf@innermargin@length}{-999pt}%
+ {\setlength\mdf@rightmargin@length{\z@}}%
+ {\setlength\mdf@rightmargin@length{\mdf@innermargin@length}}%
}
\newrobustcmd*\md@@setzref{\md@zref@label\if@md@pageodd}
@@ -757,7 +843,7 @@
\newlength\md@horizontalspaceofbox
\newrobustcmd*\md@horizontalmargin@equation{%
- \setlength{\md@horizontalspaceofbox}{\hsize}%
+ \setlength{\md@horizontalspaceofbox}{\mdf@userdefinedwidth@length}%
\mdf@dolist{\md@advancelength@orizontalmargin@add}{%
leftmargin,outerlinewidth,middlelinewidth,%
innerlinewidth,innerleftmargin,innerrightmargin,%
@@ -822,7 +908,7 @@
\let\md@reserved@a\relax%
\else
%Hier berechnung Box-Inhalt+Rahmen oben und unten
- \setlength{\md@verticalmarginwhole@length}{\ht\@tempboxa+\dp\@tempboxa}%
+ \setlength{\md@verticalmarginwhole@length}{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
\mdf@dolist{\md@advancelength@verticalmarginwhole}{%
outerlinewidth,middlelinewidth,innerlinewidth,innertopmargin,
innerbottommargin,innerlinewidth,middlelinewidth,outerlinewidth}%
@@ -848,7 +934,7 @@
\def\md@reserved@a{\md@put@frame}%
}{%
%Hier berechnung Box-Inhalt+Rahmen oben und unten
- \setlength{\md@verticalmarginwhole@length}{\ht\@tempboxa+\dp\@tempboxa}%
+ \setlength{\md@verticalmarginwhole@length}{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
\mdf@dolist{\md@advancelength@verticalmarginwhole}{%
outerlinewidth,middlelinewidth,innerlinewidth,innertopmargin,
innerbottommargin,innerlinewidth,middlelinewidth,outerlinewidth}%
@@ -943,7 +1029,7 @@
\def\md@put@frame@ii{%Ausgabe der mittleren Box(en) wenn vorhanden
\setlength{\md@freevspace@length}{\vsize}%
- \setlength{\dimen@}{\ht\@tempboxa+\dp\@tempboxa}%
+ \setlength{\dimen@}{\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax}%
\mdf@dolist{\md@advancelength@freevspace@add}{%
outerlinewidth,middlelinewidth,innerlinewidth,%
innerbottommargin}%%%Addition der Linien unten
diff --git a/Master/texmf-dist/tex/latex/mdframed/mdframedpre.sty b/Master/texmf-dist/tex/latex/mdframed/mdframedpre.sty
deleted file mode 100644
index 1dff9fa4ac8..00000000000
--- a/Master/texmf-dist/tex/latex/mdframed/mdframedpre.sty
+++ /dev/null
@@ -1,918 +0,0 @@
-%%==================================================%%
-%%========Is based on the idea of framed.sty========%%
-%%==================================================%%
-%%===== Currently the package has a beta-Status ====%%
-%%==================================================%%
-%% WITH THANKS TO (alphabetically):
-%% ROLF NIEPRASCHK
-%% HEIKO OBERDIEK
-%% HERBERT VOSS
-
-%% Copyright (c) 2010 Marco Daniel
-%
-%% 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.
-%%
-%%
-%%==================================================%%
-%% Erstellung eines Rahmens, der am Seitenende keine
-%% horizontale Linie einfuegt
-%%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>%%
-%% _______________ %%
-%% | page 1 | %%
-%% | Text | %%
-%% | __Text__ | %%
-%% | | Text | | %%
-%% P A G E B R E A K %%
-%% | | Text | | %%
-%% | |_Text_| | %%
-%% | Text | %%
-%% |____page 2___| %%
-%% %%
-%%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>%%
-
-
-%%$Id: mdframed.sty 103 2010-12-22 16:46:10Z marco $
-%%$Rev: 103 $
-%%$Author: marco $
-%%$Date: 2010-12-22 17:46:10 +0100 (Mi, 22. Dez 2010) $
-
-%% Allgemeine Angaben
-\def\mdversion{v0.6a}
-\def\mdframedpackagename{mdframedpre}
-\def\md@maindate@svn$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{mdframedpre}[\md@maindate@svn$Id: mdframed.sty 103 2010-12-22 16:46:10Z marco $ \mdversion: \mdframedpackagename]
-
-%%==================================================%%
-%%=============== Benoetigte Pakete ================%%
-%%==================================================%%
-
-\newcommand*\md@PackageWarning[1]{\PackageWarning{\mdframedpackagename}{#1}}
-\newcommand*\md@PackageInfo[1]{\PackageInfo{\mdframedpackagename}{#1}}
-\newcommand*\md@LoadFile@IfExist[1]{%
- \IfFileExists{#1.sty}{%
- \RequirePackage{#1}%
- }{%
- \md@PackageWarning{The package #1 does not exist\MessageBreak
- but it is required by \mdframedpackagename}%
- }
-}
-\md@LoadFile@IfExist{kvoptions}
-
-\md@LoadFile@IfExist{etex}
-
-\md@LoadFile@IfExist{calc}
-
-\md@LoadFile@IfExist{color}
-
-
-%Eingearbeitet in Optionen
-%\md@LoadFile@IfExist{pstricks}
-%\md@LoadFile@IfExist{pstricks}
-
-\md@LoadFile@IfExist{etoolbox}
-
-\SetupKeyvalOptions{family=mdf,prefix=mdf@}
-
-%%==================================================%%
-%%========Hilfsmakro zur Bestimmung ob Laenge=======%%
-%%============= IDEE: Martin Scharrer ==============%%
-%%==================================================%%
-
-%%%\md@iflength{<EINGABE>}{<IST LAENGE>}{<IST KEINE LAENGE>}
-\newlength{\md@templength}
-\def\md@iflength#1{%
- \afterassignment\md@iflength@check%
- \md@templength=#1\mdf@defaultunit\relax\relax
- \expandafter\endgroup\next
-}
-\def\md@iflength@check#1{%
- \begingroup
- \ifx\relax#1\@empty
- \def\next{\@secondoftwo}
- \else
- \def\next{\@firstoftwo}
- \expandafter\md@iflength@cleanup
- \fi
-}
-\def\md@iflength@cleanup#1\relax{}
-
-%%\def\md@@iflength#1{
-%% \begingroup
-%% \def\@tempa{#1}
-%% \md@iflength{\@tempa}{%
-%% \expandafter\global\expandafter%
-%% \edef\csname #1\endcsname{\the\md@templength}%
-%% }{%
-%% \expandafter\global\expandafter%
-%% \edef\csname #1\endcsname{\the\md@templength}%
-%% }%
-%% \endgroup%
-%%}
-
-%%==================================================%%
-%%==================== Optionen ====================%%
-%%==================================================%%
-
-
-%Festlegung welcher Stildatei
-%% 0 := tex-Kommandos -- rule
-%% 1 := tikz
-%% 2 := tikz-erweitert
-%% 3 := pstricks-einfach
-%% 4 := pstricks-erweitert
-
-\DeclareStringOption[0]{style}
-
-\define@key{mdf}{globalstyle}[\mdf@style]{%
- \renewcommand*{\do}[1]{%
- \def\@tempa{##1}
- \ifcase\number\@tempa\relax
- %0 <- kein Grafikpaket
- \or
- \md@LoadFile@IfExist{tikz}
- %1 <- tikz wird benoetigt
- \or
- \md@LoadFile@IfExist{tikz}
- %2 <- tikz wird benoetigt
- \or
- \md@LoadFile@IfExist{pstricks-add}
- %3 <- pstricks wird benoetigt
- \or
- \md@LoadFile@IfExist{pstricks-add}
- %4 <- pstricks wird benoetigt
- \else
- \md@PackageWarning{Unknown global style \@tempa}
- \fi
- }%
- \docsvlist{\mdf@style,#1}%
- }
-
-%%%%Optionen mit Laengen
-
-\newcommand*\mdf@skipabove{\z@}
-\newcommand*\mdfl@skipabove{}
-\newlength\mdf@skipabove@length
-\deflength\mdf@skipabove@length{\z@}
-\define@key{mdf}{skipabove}[\z@]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@skipabove{\the\md@templength}}%
- {\global\edef\mdfl@skipabove{\the\md@templength}}
-\let\mdf@skipabove\mdfl@skipabove
-\setlength\mdf@skipabove@length{\mdf@skipabove}
-}
-
-\newcommand*\mdf@skipbelow{\z@}
-\newcommand*\mdfl@skipbelow{}
-\newlength\mdf@skipbelow@length
-\deflength\mdf@skipbelow@length{\z@}
-\define@key{mdf}{skipbelow}[\z@]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@skipbelow{\the\md@templength}}%
- {\global\edef\mdfl@skipbelow{\the\md@templength}}
-\let\mdf@skipbelow\mdfl@skipbelow
-\setlength\mdf@skipbelow@length{\mdf@skipbelow}
-}
-
-\newcommand*\mdf@leftmargin{\z@}
-\newcommand*\mdfl@leftmargin{}
-\newlength\mdf@leftmargin@length
-\deflength\mdf@leftmargin@length{\z@}
-\define@key{mdf}{leftmargin}[\z@]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@leftmargin{\the\md@templength}}%
- {\global\edef\mdfl@leftmargin{\the\md@templength}}
-\let\mdf@leftmargin\mdfl@leftmargin
-\setlength\mdf@leftmargin@length{\mdf@leftmargin}
-}
-
-\newcommand*\mdf@rightmargin{\z@}
-\newcommand*\mdfl@rightmargin{}
-\newlength\mdf@rightmargin@length
-\deflength\mdf@rightmargin@length{\z@}
-\define@key{mdf}{rightmargin}[\z@]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@rightmargin{\the\md@templength}}%
- {\global\edef\mdfl@rightmargin{\the\md@templength}}
-\let\mdf@rightmargin\mdfl@rightmargin
-\setlength\mdf@rightmargin@length{\mdf@rightmargin}
-}
-
-\newcommand*\mdf@margin{20pt}
-\newcommand*\mdfl@margin{}
-\newlength\mdf@margin@length
-\deflength\mdf@margin@length{20pt}
-\define@key{mdf}{margin}[20pt]{%
- \md@PackageWarning{The option margin is obsolote and no longer used\MessageBreak
- use instead innerleftmargin and innerrightmargin\MessageBreak
- For more details look at the documentation \mdframedpackagename}%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@margin{\the\md@templength}}%
- {\global\edef\mdfl@margin{\the\md@templength}}
-\let\mdf@margin\mdfl@margin
-\setlength\mdf@margin@length{\mdf@margin}
-}
-
-\newcommand*\mdf@innerleftmargin{10pt}
-\newcommand*\mdfl@innerleftmargin{}
-\newlength\mdf@innerleftmargin@length
-\deflength\mdf@innerleftmargin@length{10pt}
-\define@key{mdf}{innerleftmargin}[10pt]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@innerleftmargin{\the\md@templength}}%
- {\global\edef\mdfl@innerleftmargin{\the\md@templength}}
-\let\mdf@innerleftmargin\mdfl@innerleftmargin
-\setlength\mdf@innerleftmargin@length{\mdf@innerleftmargin}
-}
-
-\newcommand*\mdf@innerrightmargin{10pt}
-\newcommand*\mdfl@innerrightmargin{}
-\newlength\mdf@innerrightmargin@length
-\deflength\mdf@innerrightmargin@length{10pt}
-\define@key{mdf}{innerrightmargin}[10pt]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@innerrightmargin{\the\md@templength}}%
- {\global\edef\mdfl@innerrightmargin{\the\md@templength}}
-\let\mdf@innerrightmargin\mdfl@innerrightmargin
-\setlength\mdf@innerrightmargin@length{\mdf@innerrightmargin}
-}
-
-
-
-\newcommand*\mdf@innertopmargin{0.4\baselineskip}
-\newcommand*\mdfl@innertopmargin{}
-\newlength\mdf@innertopmargin@length
-\deflength\mdf@innertopmargin@length{0.4\baselineskip}
-\define@key{mdf}{innertopmargin}[0.4\baselineskip]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@innertopmargin{\the\md@templength}}%
- {\global\edef\mdfl@innertopmargin{\the\md@templength}}
-\let\mdf@innertopmargin\mdfl@innertopmargin
-\setlength\mdf@innertopmargin@length{\mdf@innertopmargin}
-}
-
-\newcommand*\mdf@innerbottommargin{0.4\baselineskip}
-\newcommand*\mdfl@innerbottommargin{}
-\newlength\mdf@innerbottommargin@length
-\deflength\mdf@innerbottommargin@length{0.4\baselineskip}
-\define@key{mdf}{innerbottommargin}[0.4\baselineskip]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@innerbottommargin{\the\md@templength}}%
- {\global\edef\mdfl@innerbottommargin{\the\md@templength}}
-\let\mdf@innerbottommargin\mdfl@innerbottommargin
-\setlength\mdf@innerbottommargin@length{\mdf@innerbottommargin}
-}
-
-
-\newcommand*\mdf@splittopskip{\z@}
-\newcommand*\mdfl@splittopskip{}
-\newlength\mdf@splittopskip@length
-\deflength\mdf@splittopskip@length{\z@}
-\define@key{mdf}{splittopskip}[\z@]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@splittopskip{\the\md@templength}}%
- {\global\edef\mdfl@splittopskip{\the\md@templength}}
-\let\mdf@splittopskip\mdfl@splittopskip
-\setlength\mdf@splittopskip@length{\mdf@splittopskip}
-}
-
-
-
-\newcommand*\mdf@splitbottomskip{\z@}
-\newcommand*\mdfl@splitbottomskip{}
-\newlength\mdf@splitbottomskip@length
-\deflength\mdf@splitbottomskip@length{\z@}
-\define@key{mdf}{splitbottomskip}[\z@]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@splitbottomskip{\the\md@templength}}%
- {\global\edef\mdfl@splitbottomskip{\the\md@templength}}
-\let\mdf@splitbottomskip\mdfl@splitbottomskip
-\setlength\mdf@splitbottomskip@length{\mdf@splitbottomskip}
-}
-
-
-%% Linienstaerken
-\newcommand*\mdf@linewidth{0.4pt}
-\newcommand*\mdfl@linewidth{}
-\newlength\mdf@linewidth@length
-\deflength\mdf@linewidth@length{0.4pt}
-\define@key{mdf}{linewidth}[0.4pt]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@linewidth{\the\md@templength}}%
- {\global\edef\mdfl@linewidth{\the\md@templength}}
-\let\mdf@linewidth\mdfl@linewidth
-\setlength\mdf@linewidth@length{\mdf@linewidth}%
-\ifnumequal{\mdf@style}{1}{%
-\deflength\mdf@middlelinewidth@length{\mdf@linewidth@length}%
-}{}%
-}
-
-\newcommand*\mdf@innerlinewidth{\z@}
-\newcommand*\mdfl@innerlinewidth{}
-\newlength\mdf@innerlinewidth@length
-\deflength\mdf@innerlinewidth@length{\z@}
-\define@key{mdf}{innerlinewidth}[\z@]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@innerlinewidth{\the\md@templength}}%
- {\global\edef\mdfl@innerlinewidth{\the\md@templength}}
-\let\mdf@innerlinewidth\mdfl@innerlinewidth
-\setlength\mdf@innerlinewidth@length{\mdf@innerlinewidth}
-}
-
-\newcommand*\mdf@middlelinewidth{\mdf@linewidth}
-\newcommand*\mdfl@middlelinewidth{}
-\newlength\mdf@middlelinewidth@length
-\deflength\mdf@middlelinewidth@length{\mdf@linewidth@length}
-\define@key{mdf}{middlelinewidth}[\mdf@linewidth]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@middlelinewidth{\the\md@templength}}%
- {\global\edef\mdfl@middlelinewidth{\the\md@templength}}
-\let\mdf@middlelinewidth\mdfl@middlelinewidth
-\setlength\mdf@middlelinewidth@length{\mdf@middlelinewidth}
-}
-
-\newcommand*\mdf@outerlinewidth{\z@}
-\newcommand*\mdfl@outerlinewidth{}
-\newlength\mdf@outerlinewidth@length
-\deflength\mdf@outerlinewidth@length{\z@}
-\define@key{mdf}{outerlinewidth}[\z@]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@outerlinewidth{\the\md@templength}}%
- {\global\edef\mdfl@outerlinewidth{\the\md@templength}}
-\let\mdf@outerlinewidth\mdfl@outerlinewidth
-\setlength\mdf@outerlinewidth@length{\mdf@outerlinewidth}
-}
-
-\newcommand*\mdf@roundcorner{\z@}
-\newcommand*\mdfl@roundcorner{}
-\newlength\mdf@roundcorner@length
-\deflength\mdf@roundcorner@length{\z@}
-\define@key{mdf}{roundcorner}[\z@]{%
- \def\@tempa{#1}
- \md@iflength{\@tempa}%
- {\global\edef\mdfl@roundcorner{\the\md@templength}}%
- {\global\edef\mdfl@roundcorner{\the\md@templength}}
-\let\mdf@roundcorner\mdfl@roundcorner
-\setlength\mdf@roundcorner@length{\mdf@roundcorner}
-}
-
-%Unterstuetzung der Optionen fuer pstricks
-\def\mdf@psset@local{}
-\define@key{mdf}{pstrickssetting}{%
- \def\mdf@psset@local{#1}
-}
-
-
-%%Defaulunit
-\DeclareStringOption[pt]{defaultunit}
-
-%%mdframed umfasst ntheorem-Umgebung ja/nein
-\DeclareBoolOption{ntheorem}
-
-\DeclareBoolOption[true]{topline}
-\DeclareBoolOption[true]{leftline}
-\DeclareBoolOption[true]{bottomline}
-\DeclareBoolOption[true]{rightline}
-
-
-%%FARBEN
-\DeclareStringOption[none]{xcolor}
-\DeclareStringOption[black]{linecolor}
-\DeclareStringOption[white]{backgroundcolor}
-\DeclareStringOption[black]{fontcolor}
-\DeclareStringOption[\mdf@linecolor]{innerlinecolor}
-\DeclareStringOption[\mdf@linecolor]{outerlinecolor}
-\DeclareStringOption[\mdf@backgroundcolor]{middlelinecolor}
-
-
-\DeclareDefaultOption{%
- \md@PackageWarning{Unknown Option '\CurrentOption' for mdframed}}
-
-
-%%==================================================%%
-%%========== ENDE DER OPTIONENDEKLARATION ==========%%
-%%==================================================%%
-
-\ProcessKeyvalOptions*
-\newcommand*{\mdfsetup}{\setkeys{mdf}}
-\mdfsetup{globalstyle=0}
-
-%%==================================================%%
-%%========Sicherstellen der key-value-Syntax========%%
-%%==================================================%%
-\AtBeginDocument{
- \@ifpackageloaded{xcolor}{%
- \let\mdf@xcolor\@empty %ignoriere die Eingabe der Optionen
- }{%
- \def\@tempa{none}
- \ifx\mdf@xcolor\@tempa
- \else
- \PassOptionsToPackage{\mdf@xcolor}{xcolor}
- \RequirePackage{xcolor}
- \fi
- }
-}
-
-
-
-%%Farbabkuerzungen:
-\newcommand*\mdf@@linecolor{\color{\mdf@linecolor}}
-\newcommand*\mdf@@backgroundcolor{
- \ifx\mdf@backgroundcolor\@empty
- \else
- \color{\mdf@backgroundcolor}
- \fi}
-\newcommand*\mdf@@fontcolor{\color{\mdf@fontcolor}}
-\newcommand*\mdf@@innerlinecolor{\color{\mdf@innerlinecolor}}
-\newcommand*\mdf@@outerlinecolor{\color{\mdf@outerlinecolor}}
-\newcommand*\mdf@@middlelinecolor{\color{\mdf@middlelinecolor}}
-
-%%==================================================%%
-%%======= Laden der gewuenschten Style-Datei =======%%
-%%==================================================%%
-\ifcase\mdf@style\relax%
- \input{md-framepre-0.mdf}%
- \or%
- \input{md-framepre-1.mdf}%
- \or%
- \md@PackageWarning{The style number\mdf@style does not exist\MessageBreak
- mdframed ues instead style=0 \mdframedpackagename}%
- \input{md-framepre-1.mdf}%
- \or%
- \input{md-framepre-3.mdf}%
- \else%
- \IfFileExists{md-frame-\mdf@style.mdf}{%
- \input{md-frame-\mdf@style.mdf}%
- }{%
- \input{md-framepre-1.mdf}%
- \md@PackageWarning{The style number \mdf@style does not exist\MessageBreak
- mdframed ues instead style=0 \mdframedpackagename}%
- }%
-\fi%
-
-
-%%==================================================%%
-%%===Globale Umgebung -- noch keine Modifikation ===%%
-%%==================================================%%
-\def\md@margin@startenv{% latex.ltx -> \@startsection
- \if@noskipsec \leavevmode \fi
- \par%\kern-\lastskip%
- \@tempskipa -\mdf@skipabove@length\relax
- \@afterindenttrue
- \ifdim \@tempskipa < \z@
- \@tempskipa -\@tempskipa \@afterindentfalse%
- \fi
- \if@nobreak
- \everypar{}%
- \else
- \addpenalty\@secpenalty\addvspace\@tempskipa%
- \par\kern-\ht\strutbox
- \fi%
-}%
-
-
-\def\mdframed{%
- \@ifnextchar[%]
- \mdframed@i\mdframed@ii}%
-
-\def\mdframed@ii{\mdframed@i[]}%
-\def\mdframed@i[#1]{% default-Umgebung
- \mdfsetup{#1}%%
- \md@margin@startenv%
- \ifmdf@ntheorem% %%% Pruefen ob ntheorem gesetzt ist
- \ifundef{\theorempreskipamount}%
- {\md@PackageWarning{You have not loaded ntheorem yet}}%
- {\setlength{\theorempreskipamount}{0pt}%
- \setlength{\theorempostskipamount}{0pt}}%
- \fi%
- \ifnumequal{\mdf@style}{0}%
- {\deflength{\mdf@innerlinewidth@length}{\z@}%
- \deflength{\mdf@middlelinewidth@length}{\mdf@linewidth@length}%
- \deflength{\mdf@outerlinewidth@length}{\z@}%
- \let\mdf@innerlinecolor\mdf@linecolor%
- \let\mdf@middlelinecolor\mdf@linecolor%
- \let\mdf@outerlinecolor\mdf@linecolor%
- }{}%
- \ifnumequal{\mdf@style}{3}%
- {\deflength{\mdf@innerlinewidth@length}{\z@}%
- \deflength{\mdf@middlelinewidth@length}{\mdf@linewidth}%
- \deflength{\mdf@outerlinewidth@length}{\z@}%
- \let\mdf@innerlinecolor\mdf@linecolor%
- }{}%
- \mdframed@global@env%
- }%
-
-\def\endmdframed{\endmdframed@global@env\endtrivlist%
-\vspace{\mdf@skipbelow@length}}%
-
-%%==================================================%%
-%%==Deklaration diverser Eingabe und Hilfsparameter=%%
-%%==================================================%%
-
-\newskip\md@temp@skip@a \md@temp@skip@a\z@ %% Hilfslaenge
-
-\newlength\md@verticalmarginwhole@length
-
-\newlength\mdf@xmargin@length%
-\newlength\mdf@ymargin@length%
-\newlength\mdfboxheight% %% Berechnungsvariable tikz
-\newlength\mdfboxwidth% %% Berechnungsvariable tikz
-
-
-\newlength\mdfboundingboxheight
-\newlength\mdfboundingboxwidth
-\newlength\mdfpositionx
-\newlength\mdfpositiony
-
-
-
-\providecommand*\ptTps{}
-
-
-%%==================================================%%
-%%=================== Kommentare ===================%%
-%%==================================================%%
-
-\chardef\md@arrayparboxrestore=\catcode`\| % for debug
-\catcode`\|=\catcode`\% % (debug: insert space after backslash)
-%% Kommentare werden im Code mit | gekennzeichnet
-
-
-%%==================================================%%
-%%================= Platz auf Seite ================%%
-%%==================================================%%
-\newlength\md@freevspace@length
-\def\md@freepagevspace{%
- \ifdimequal{\pagegoal}{\maxdimen}%
- {%
- \setlength{\md@freevspace@length}{\vsize}%
- }{
- \setlength{\md@freevspace@length}{\pagegoal}%
- \addtolength{\md@freevspace@length}{-\pagetotal}%
- }%
-}
-
-%%==================================================%%
-%================= Breite der BOX =================%%
-%%==================================================%%
-
-% edge-leftmargin-outerlinewith-middlelinewidth-innerlinewidth-innerleftmargin-TEXTBREITE-
-% innerrightmargin-innerlinewidth-middlelinewidth-outelinewith-edge
-\newlength\md@horizontalspaceofbox
-\def\md@horizontalmargin@equation{%
- \setlength{\md@horizontalspaceofbox}{\hsize}
- \addtolength{\md@horizontalspaceofbox}{%
- -\mdf@leftmargin@length%
- -\mdf@outerlinewidth@length%
- -\mdf@middlelinewidth@length%
- -\mdf@innerlinewidth@length%
- -\mdf@innerleftmargin@length%
- -\mdf@innerrightmargin@length%
- -\mdf@innerlinewidth@length%
- -\mdf@middlelinewidth@length%
- -\mdf@outerlinewidth@length%
- -\mdf@rightmargin@length%
- }%
- \ifboolexpr{ test {\ifnumequal{\mdf@style}{0}} or test {\ifnumequal{\mdf@style}{3}}}%
- {
- \notbool{mdf@leftline}{\addtolength{\md@horizontalspaceofbox}{%
- \mdf@innerlinewidth@length%
- +\mdf@middlelinewidth@length%
- +\mdf@outerlinewidth@length%
- }}{}%
- \notbool{mdf@rightline}{\addtolength{\md@horizontalspaceofbox}{%
- \mdf@innerlinewidth@length%
- +\mdf@middlelinewidth@length%
- +\mdf@outerlinewidth@length%
- }}{}%
- }{}%
- \advance\md@horizontalspaceofbox by - \width\md@arrayparboxrestore%
- %%% Beruecksichtigung, dass Auszaehlung bzw. list-Umgebung enthalten
- \ifdimless{\md@horizontalspaceofbox}{3cm}{\md@PackageWarning{You have only a width of 3cm}}{}
- \hsize=\md@horizontalspaceofbox%
-}
-
-
-
-
-%%==================================================%%
-%%========= Seitenparameter und Strafpunkte ========%%
-%%==================================================%%
-\def\md@penalty@startenv{%
- \begingroup%
- \skip@\lastskip% %%% lastskip nur ungleich null nach section, list, figure, usw.
- \if@nobreak%
- \else
- \penalty9999 % updates \page parameters <-pruefen
- \ifdim\pagefilstretch=\z@ %%% pagefilstretch ist ein internes Register fuer den
- %%% Seitenumbruch. Es entaehlt den akkumulierten (gespeicherten) fil-Anteil
- %%% auf der aktuellen Seite
- \ifdim\pagefillstretch=\z@ %%% pagefillstretch ist ein internes Register fuer den
- %%% Seitenumbruch. Es entaehlt den akkumulierten (gespeicherten) fill-Anteil
- %%% auf der aktuellen Seite
- %%% nicht unendlich dehnbar, so hier foerdern eines Seitenumbruches
- \edef\@tempa{\the\skip@}%
- \edef\@tempb{\the\z@skip}%
- \ifx\@tempa\@tempb %%% ???????
- \penalty-30%
- \else
- \vskip-\skip@%
- \penalty-30%
- \vskip\skip@%
- \fi
- \fi
- \fi
- \penalty\z@%
- % Give a stretchy breakpoint that will always be taken in preference
- % to the \penalty 9999 used to update page parameters. The cube root
- % of 10000/100 indicates a multiplier of 0.21545, but the maximum
- % calculated badness is really 8192, not 10000, so the multiplier
- % is 0.2301.
- \advance\skip@ \z@ plus-.5\baselineskip%
- \advance\skip@ \z@ plus-.231\height%
- \advance\skip@ \z@ plus-.231\skip@%
- \advance\skip@ \z@ plus-.231\topsep%
- \vskip-\skip@ \penalty 1800 \vskip\skip@%
- \fi
- \addvspace{\topsep}%
- \endgroup%
- % clear out pending page break
- \nobreak \vskip 2\baselineskip \vskip\height% %%%\@M=10000
- \penalty9999 \vskip -2\baselineskip \vskip-\height%
- \penalty9999 % updates \pagetotal
-}%
-
-
-%%==================================================%%
-%%============Start der globalen Umgebung===========%%
-%%==================================================%%
-\newskip\md@temp@frame@hsize \md@temp@frame@hsize=0pt%
-\newskip\md@temp@frame@vsize \md@temp@frame@vsize=0pt%
-
-\def\mdframed@global@env{\relax%
- \let\width\z@%
- \let\height\z@%
- \md@penalty@startenv%
- \def\@doendpe{\@endpetrue% %%% SIEHE LATEX.ltx -- ersten Absatz ignorieren
- \def\par{\@restorepar\par\@endpefalse}%
- \everypar{{\setbox\z@\lastbox}\everypar{}\@endpefalse}%
- }%
- \md@horizontalmargin@equation%
- \setbox\@tempboxa%
- \vbox\bgroup\@doendpe%
- \begingroup% %%% zweites begingroup noetig, dass fontcolor gesetzt werden kann
- \mdf@@fontcolor% %%% Setzen der Schriftfarbe
- \textwidth\md@horizontalspaceofbox \columnwidth\md@horizontalspaceofbox%
-}%
-
-\def\endmdframed@global@env{\par%
- \kern\z@%
- \hrule\@width\md@horizontalspaceofbox\@height\z@%
- \penalty-100 % put depth into height
- \endgroup%
- \egroup%
- \begingroup%
- \mdf@@fontcolor%
- \setbox\@tempboxa\vbox{\unvbox\@tempboxa}
- \md@put@frame%
- \endgroup%
-}
-
-%%==================================================%%
-%%===========Ausgaberoutine -> Berechnung===========%%
-%%==================================================%%
-
-%% \md@put@frame nimmt den Inhalt der \@tempboxa und packt alles oder nur einen Teil
-%% auf die Seite mit dem Rahmen.
-%% Es ist rekursiv, solange alles von der \@tempboxa aufgebraucht ist (\@tempboxa muss die Tiefe 0 haben.)
-%% Erste Iteration: Versuche alles in einen Rahmen zu bekommen. Falls es nicht passt,
-%% splitte es fuer die erste Rahmenumgebung
-%% Spaetere Iteration: Versuche alles in den letzten Rahmen zu bekommen. Falls es nicht passt,
-%% splitte es erneut. (Versuchsstadium -- Da bisher nur Anfang und Ende enthalten)
-
-
-
-\def\md@put@frame{\relax%
- \md@freepagevspace
- \ifdimless{\md@freevspace@length}{1.999\baselineskip}
- {\md@PackageInfo{Not enough space on this page}%die Seite hat nur noch minimal Platz
- \clearpage%
- \md@put@frame
- }{%
- %Hier berechnung Box-Inhalt+Rahmen oben und unten
- \setlength{\md@verticalmarginwhole@length}{\ht\@tempboxa+\dp\@tempboxa}%
- \addtolength{\md@verticalmarginwhole@length}{%
- \mdf@outerlinewidth@length%
- +\mdf@middlelinewidth@length%
- +\mdf@innerlinewidth@length%
- +\mdf@innertopmargin@length%
- +\mdf@innerbottommargin@length%
- +\mdf@innerlinewidth@length%
- +\mdf@middlelinewidth@length%
- +\mdf@outerlinewidth@length%
- }%
- \ifnumequal{\mdf@style}{0}%
- {\ifbool{mdf@topline}{}%
- {\addtolength{\md@verticalmarginwhole@length}{-\mdf@middlelinewidth@length}%
- }%
- \ifbool{mdf@bottomline}{}%
- {\addtolength{\md@verticalmarginwhole@length}{-\mdf@middlelinewidth@length}%
- }%
- }{}
- \ifnumequal{\mdf@style}{3}%
- {\ifbool{mdf@topline}{}%
- {\addtolength{\md@verticalmarginwhole@length}{-\mdf@middlelinewidth@length}%
- }%
- \ifbool{mdf@bottomline}{}%
- {\addtolength{\md@verticalmarginwhole@length}{-\mdf@middlelinewidth@length}%
- }%
- }{}
- \ifdimless{\md@verticalmarginwhole@length}{\md@freevspace@length}%
- {\md@putbox@single}%passt auf Seite
- {\md@put@frame@i}%passt nicht auf Seite
- }
-}
-
-\def\md@put@frame@i{%Box muss gesplittet werden -- Ausgabe der ersten Teilbox
- %Berechnung der Splittgroesse -- Linien und Abstand oben
- \md@freepagevspace
- \setlength{\dimen@}{\md@freevspace@length}%
- \addtolength{\dimen@}{%
- -\mdf@outerlinewidth@length%
- -\mdf@middlelinewidth@length%
- -\mdf@innerlinewidth@length%
- -\mdf@innertopmargin@length%
- -\mdf@splitbottomskip@length%
- }%
- \ifnumequal{\mdf@style}{0}%
- {\ifbool{mdf@topline}{}%
- {\addtolength{\dimen@}{+\mdf@middlelinewidth@length}%
- }%
- }{}
- \ifnumequal{\mdf@style}{3}%
- {\ifbool{mdf@topline}{}%
- {\addtolength{\dimen@}{\mdf@middlelinewidth@length}%
- }%
- }{}
- \ifdimless{\ht\@tempboxa+\dp\@tempboxa}{\dimen@}%
- {\md@PackageWarning{You got a bad break\MessageBreak
- you have to change it manually\MessageBreak
- by changing the text, the space\MessageBreak
- or something else}%
- \addtolength{\dimen@}{-1.8\baselineskip}
- }{}%
- \addtolength{\dimen@}{-\pageshrink}%Box darf nicht zu Groß werden.
- \boxmaxdepth\z@ \splittopskip\mdf@splittopskip@length%
- \setbox\tw@\vsplit\@tempboxa to \dimen@
- \setbox\tw@\vbox{\unvbox\tw@}%
- \ifdimgreater{\ht\tw@+\dp\tw@}{\dimen@}{%Falsch gesplittet
- \setlength\dimen@i{\dimen@}
- \addtolength{\dimen@}{-\ht\tw@-\dp\tw@}
- \addtolength\dimen@i{0.5\dimen@}
- \boxmaxdepth\z@ \splittopskip\z@%
- \setbox\@tempboxa\vbox{\unvbox\tw@\unvbox\@tempboxa}
- \boxmaxdepth\z@ \splittopskip\mdf@splittopskip@length%
- \setbox\tw@\vsplit\@tempboxa to \dimen@i
- \setbox\tw@\vbox{\unvbox\tw@}%
- }{}%
- \setbox\@tempboxa\vbox{\unvbox\@tempboxa}%PRUEFEN!!!!
- \ifvoid\@tempboxa
- \md@PackageWarning{You got a bad break\MessageBreak
- because the splittet box is empty\MessageBreak
- You have to change the page settings\MessageBreak
- like enlargethispage or something else}%
- \fi
- \ifdimequal{\wd\tw@}{0pt}%%pruefe, ob erste Box leer ist
- {\clearpage%
- \md@put@frame}%
- {\md@putbox@first%%Groesse des Splittens passt
- \eject%\clearpage%
- \md@put@frame@ii}%
-}
-
-
-\def\md@put@frame@ii{%Ausgabe der mittleren Box(en) wenn vorhanden
- \setlength{\md@freevspace@length}{\vsize}%
- \setlength{\dimen@}{\ht\@tempboxa+\dp\@tempboxa}%
- \addtolength{\dimen@}{%%Addition der Linien unten
- \mdf@outerlinewidth@length%
- +\mdf@middlelinewidth@length%
- +\mdf@innerlinewidth@length%
- +\mdf@innerbottommargin@length%
- }%
- \ifboolexpr{( bool {mdf@bottomline} )
- and
- ( test {\ifnumequal{\mdf@style}{0}}
- or
- test {\ifnumequal{\mdf@style}{3}}
- )
- }%
- {}{\addtolength{\dimen@}{-\mdf@middlelinewidth@length}}%
- \ifdimgreater{\dimen@}{\md@freevspace@length}%
- {%
- \addtolength{\md@freevspace@length}{%%Abzug der Linien unten
- -\mdf@splitbottomskip@length%
- }%
- \boxmaxdepth\z@ \splittopskip\mdf@splittopskip@length%
- \setbox\tw@\vsplit\@tempboxa to \md@freevspace@length%
- \setbox\tw@\vbox{\unvbox\tw@}%PRUEFEN!!!
- \setbox\@tempboxa\vbox{\unvbox\@tempboxa}%PRUEFEN!!!!
- \ifvoid\@tempboxa\relax%
- \md@PackageWarning{You got a bad break\MessageBreak
- because the splittet box is empty\MessageBreak
- You have to change the settings}%
- \fi%
- \md@putbox@middle%
- \clearpage\md@put@frame@ii%
- }%Hier die Ausgabe der mittleren Box
- {\ifdimequal{\wd\@tempboxa}{\z@}{\md@PackageWarning{You got a bad break\MessageBreak
- because the splittet box is empty\MessageBreak
- You have to change the settings}%
- }{}%
- \md@putbox@second}%Hier kommt die Ausgabe der letzten Box
-}
-
-
-
-
-\catcode`\|=\md@arrayparboxrestore %%%????
-
-
-
-
-% \md@arrayparboxrestore has parts of \@parboxrestore, performing a similar but
-% less complete restoration of a default layout. See how it is used in the
-% "settings" argument of \MakeFrame. Though not a parameter, \hsize
-% should be set to the desired total line width available inside the
-% frame before invoking \md@arrayparboxrestore.
-\def\md@arrayparboxrestore{%
- %%%AUS ltboxes.dtx -> \@arrayparboxrestore
- \let\if@nobreak\iffalse
- \let\if@noskipsec\iffalse
- \let\-\@dischyph %%%Default \let\@dischyph=\-
- \let\'\@acci\let\`\@accii\let\=\@acciii %%%Default: \let\@acci\' \let\@accii\` \let\@acciii\= <- Sicher gehen
- %%%dass Defaultwerte erhalten sind
- %%%Scheinen Mathesymbole zu sein ???
- % Test ob Listenumgebung enthalten ist
- \ifnum \ifdim\@totalleftmargin>\z@ 1\fi %%%In latex.ltx->totalleftmargin=\z@, ausser in list-Umgebung:
- %%%\advance\@totalleftmargin \leftmargin
- \ifdim\rightmargin >\z@ 1\fi %%%Default \rightmargin=\z@, Ausnahme: quote usw.
- \ifnum\@listdepth >0 1\fi %%%Zaehler fuer Listentiefe -> Keine Liste \@listdepth=0 sonst, je Ebene +1
- 0>\z@ %%%Ist ein Parameter erfuellt, dann ist es eine Listenumgebung
- \@setminipage %%%Passform rund um das Element
- % Nun wird versucht, Aenderungen der Breite von \hsize entsprechend der Listenparameter zu uebergeben.
- % Dies ist defizitaer, denn eine erweiterte Moeglichkeit, Aenderungen der Textdimension anzugegeben
- % ist (noch) nicht vorgesehen, insbesondere keine getrennte linke / rechte Einstellung.
- \advance\linewidth-\columnwidth \advance\linewidth\md@horizontalspaceofbox
- \parshape\@ne \@totalleftmargin \linewidth %%% parshape definiert das Aussehen eines Absatzes Zeile fuer Zeile.
- %%% Seine Parameterversorgung geschieht mittels der folgenden Syntax:
- %%% \parshape = n i1 l1 i2 l2 ... in ln.
- %%% Dabei gibt der Parameter n an, fuer wieviele Zeilen Definitionspaare folgen.
- %%% Jedes Definitionspaar besteht aus der Angabe i_j fuer den Einzug und
- %%% der Laengenangabe l_j fuer die entsprechende Zeile. Sind mehr als n Zeilen
- %%% vorhanden, so wird die letzte Angabe stets weiter verwendet
- \else % Not in list
- \linewidth=\md@horizontalspaceofbox
- \fi
- \sloppy
-}
-
-%%==================================================%%
-%%= Sicherstellen, dass Optionen nur global setzbar=%%
-%%==================================================%%
-
-\DisableKeyvalOption[%
- action=warning,
- package=mdframed,
-]{mdf}{globalstyle}%
-
-
-\DisableKeyvalOption[%
- action=warning,
- package=mdframed,
-]{mdf}{xcolor}%
-
-
-\endinput
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-EOF
-EOF
-EOF
-