diff options
author | Karl Berry <karl@freefriends.org> | 2013-07-02 22:50:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-07-02 22:50:34 +0000 |
commit | 2d87cc25c8cb4cd9a8862f8eb6dde9783efa5dd4 (patch) | |
tree | f564a8555fc7142c9aa2299deb95153cee590544 /Master/texmf-dist/tex/latex/mdframed | |
parent | 88e051a93354de16d70848287cf906503c3032e9 (diff) |
mdframed (2jul13)
git-svn-id: svn://tug.org/texlive/trunk@31075 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mdframed')
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/mdframed/mdframed.sty | 29 |
2 files changed, 13 insertions, 18 deletions
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 db84ca8c611..b4197ed8f80 100644 --- a/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf +++ b/Master/texmf-dist/tex/latex/mdframed/md-frame-1.mdf @@ -19,7 +19,7 @@ }% 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=% diff --git a/Master/texmf-dist/tex/latex/mdframed/mdframed.sty b/Master/texmf-dist/tex/latex/mdframed/mdframed.sty index 112c389e61c..27765d7882b 100644 --- a/Master/texmf-dist/tex/latex/mdframed/mdframed.sty +++ b/Master/texmf-dist/tex/latex/mdframed/mdframed.sty @@ -49,10 +49,10 @@ %% ================================================== %% -\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 \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{mdframed}% [\mdfmaindate\space \mdversion: \mdframedpackagename] @@ -73,6 +73,7 @@ \RequirePackage{xparse} \RequirePackage{etoolbox}[2011/01/03] \RequirePackage{zref-abspage} +\RequirePackage{needspace} \RequirePackage{color} \SetupKeyvalOptions{family=mdf,prefix=mdf@} \def\mdf@definestyle@defaultoptions{}% @@ -208,6 +209,7 @@ {roundcorner==\z@},% {footenotedistance==\medskipamount}, {userdefinedwidth==\linewidth}, + {needspace==\z@}, {frametitleaboveskip==5pt}, {frametitlebelowskip==5pt}, {frametitlerulewidth==.2pt}, @@ -291,7 +293,6 @@ {frametitlebottomline==true},% {frametitlerightline==true},% {frametitlerule==false},% - {nobreak==false},% {footnoteinside==true},% {usetwoside==true},% {repeatframetitle==false},%Noch nicht richtig implementiert @@ -318,6 +319,10 @@ }% } \appto\mdf@definestyle@defaultoptions{hidealllines=false,}% +%%special boolflag nobreak: +\DeclareBoolOption[true]{nobreak} +\boolfalse{mdf@nobreak}% +\appto\mdf@definestyle@defaultoptions{nobreak=false,} \def\mdf@do@alignoption#1{% \mdf@alignoption@tripledo#1\@nil% } @@ -372,17 +377,6 @@ \RequirePackage{xcolor}% \fi% }% -\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% -} \DeclareDefaultOption{% \mdf@PackageError{Unknown Option '\CurrentOption' for mdframed}} \ProcessKeyvalOptions*\relax @@ -808,6 +802,7 @@ \@definecounter{mdf@env@i} \@definecounter{mdf@env@ii} \newrobustcmd*\mdf@preenvsetting{% + \needspace{\mdf@needspace@length} \mdf@twoside@checklength% \edef\mdf@par@local{% \parskip=\the\parskip\relax% @@ -1054,11 +1049,11 @@ \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 |