summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/mdframed/mdframed.dtx40
1 files changed, 16 insertions, 24 deletions
diff --git a/Master/texmf-dist/source/latex/mdframed/mdframed.dtx b/Master/texmf-dist/source/latex/mdframed/mdframed.dtx
index dd30dbe2c1f..f053b814d58 100644
--- a/Master/texmf-dist/source/latex/mdframed/mdframed.dtx
+++ b/Master/texmf-dist/source/latex/mdframed/mdframed.dtx
@@ -2258,10 +2258,10 @@ Have fun!
% \begin{macro}{mdversion,mdframedpackagename,mdfmaindate}
% Set package information
% \begin{macrocode}
-\def\mdversion{1.9a}
+\def\mdversion{1.9b}
\def\mdframedpackagename{mdframed}
-\def\mdfmaindate{2013/06/21}
-\def\mdfrevision{ 208}% Done by github: git rev-list HEAD | wc -l
+\def\mdfmaindate{2013/07/01}
+\def\mdfrevision{ 212}% Done by github: git rev-list HEAD | wc -l
% \end{macrocode}
% \end{macro}
%
@@ -2297,6 +2297,7 @@ Have fun!
\RequirePackage{xparse}
\RequirePackage{etoolbox}[2011/01/03]
\RequirePackage{zref-abspage}
+\RequirePackage{needspace}
\RequirePackage{color}
% \end{macrocode}
%
@@ -2503,6 +2504,7 @@ Have fun!
{roundcorner==\z@},%
{footenotedistance==\medskipamount},
{userdefinedwidth==\linewidth},
+ {needspace==\z@},
{frametitleaboveskip==5pt},
{frametitlebelowskip==5pt},
{frametitlerulewidth==.2pt},
@@ -2603,7 +2605,6 @@ Have fun!
{frametitlebottomline==true},%
{frametitlerightline==true},%
{frametitlerule==false},%
- {nobreak==false},%
{footnoteinside==true},%
{usetwoside==true},%
{repeatframetitle==false},%Noch nicht richtig implementiert
@@ -2616,7 +2617,7 @@ Have fun!
{subsubtitlebelowline==false},
{draft==false},
{suppressfirstparskip==true},
-}
+}
%%special boolflag hidealllines:
\newbool{mdf@hidealllines}%
\define@key{mdf}{hidealllines}[false]{%
@@ -2630,6 +2631,12 @@ Have fun!
}%
}
\appto\mdf@definestyle@defaultoptions{hidealllines=false,}%
+%%special boolflag nobreak:
+% \newbool{mdf@nobreak}%
+% \boolfalse{mdf@nobreak}%
+\DeclareBoolOption[true]{nobreak}
+\boolfalse{mdf@nobreak}%
+\appto\mdf@definestyle@defaultoptions{nobreak=false,}
% \end{macrocode}
% \end{macro}
%
@@ -2712,22 +2719,6 @@ Have fun!
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{mdf@needspace}
-% Defining the option needspace
-% \begin{macrocode}
-\define@key{mdf}{needspace}[\z@]{%
- \begingroup%
- \setlength{\dimen@}{#1}%
- \vskip\z@\@plus\dimen@%
- \penalty -100\vskip\z@\@plus -\dimen@%
- \vskip\dimen@%
- \penalty 9999%
- \vskip -\dimen@%
- \vskip\z@skip % hide the previous |\vskip| from |\addvspace|
- \endgroup%
-}
-% \end{macrocode}
-% \end{macro}
%
% \begin{macrocode}
\DeclareDefaultOption{%
@@ -3304,6 +3295,7 @@ Have fun!
% Collect all definitions at the beginning of \Env{mdframed}
% \begin{macrocode}
\newrobustcmd*\mdf@preenvsetting{%
+ \needspace{\mdf@needspace@length}
\mdf@twoside@checklength%
\edef\mdf@par@local{%
\parskip=\the\parskip\relax%
@@ -3625,11 +3617,11 @@ Have fun!
\mdf@dolist{\mdf@advancelength@sub{\dimen@}}%
{innerlinewidth,middlelinewidth,outerlinewidth}%
}{}%
- \notbool{mdf@topline}%no top line
+ \ifbool{mdf@topline}{}%%no top line
{%
\mdf@dolist{\mdf@advancelength@add{\dimen@}}%
{innerlinewidth,middlelinewidth,outerlinewidth}%
- }{}%
+ }%
\advance\dimen@.8\pageshrink%
\ifdimless{\ht\mdf@splitbox@one+\dp\mdf@splitbox@one}{\dimen@}%
{\mdf@PackageWarning{You got a bad break\MessageBreak
@@ -5056,7 +5048,7 @@ Have fun!
}% anchor der Ausgabebox ist unten links
\tikzset{mdfcorners/.style={rounded corners=\mdf@roundcorner@length}}%
\tikzset{mdfbackground/.style={fill=\mdf@backgroundcolor,%
- draw=\mdf@backgroundcolor%
+ draw=none,%
}%
}%
\tikzset{mdfframetitlebackground/.style=%