summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mdframed/mdframed.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-07 23:26:19 +0000
committerKarl Berry <karl@freefriends.org>2011-09-07 23:26:19 +0000
commit5508320ba1a6332a67f2e5d2840c6eba080715b8 (patch)
treebd63428b77a6fa683dcf05457ee1ed1bb4e84359 /Master/texmf-dist/tex/latex/mdframed/mdframed.sty
parentfacd5da6746c2e6834b9020905bc08b4dc708a67 (diff)
mdframed 0.9b (7sep11)
git-svn-id: svn://tug.org/texlive/trunk@23855 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mdframed/mdframed.sty')
-rw-r--r--Master/texmf-dist/tex/latex/mdframed/mdframed.sty55
1 files changed, 42 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/mdframed/mdframed.sty b/Master/texmf-dist/tex/latex/mdframed/mdframed.sty
index e42bebf4277..fe5c8b60e92 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 172 2011-09-04 16:13:47Z marco $
-%%$Rev: 172 $
+%%$Id: mdframed.sty 188 2011-09-07 10:32:16Z marco $
+%%$Rev: 188 $
%%$Author: marco $
-%%$Date: 2011-09-04 18:13:47 +0200 (So, 04. Sep 2011) $
+%%$Date: 2011-09-07 12:32:16 +0200 (Mi, 07. Sep 2011) $
%% Allgemeine Angaben
-\def\mdversion{v0.9}
+\def\mdversion{v0.9b}
\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 172 2011-09-04 16:13:47Z marco $ \mdversion: \mdframedpackagename]
+\ProvidesPackage{mdframed}[\md@maindate@svn$Id: mdframed.sty 188 2011-09-07 10:32:16Z marco $ \mdversion: \mdframedpackagename]
%%==================================================%%
%%=============== Benoetigte Pakete ================%%
%%==================================================%%
@@ -323,6 +323,14 @@
\def\newmdtheoremenv@ii[#1]#2{%
\def\md@tempc{#1}%
+ \ifboolexpr{ test {\ifcsundef{c@\md@tempc}} and test {\ifcsundef{c@md@@\md@tempc}} and not (test {\ifdefempty{\md@tempc}}) }%
+ {\md@PackageWarning{No Counter \md@tempc defined\MessageBreak}%
+ \edef\md@reserved@a{}}%
+ {\ifcsundef{c@\md@tempc}%
+ {\ifdefempty{\md@tempc}{\edef\md@reserved@a{}}{\edef\md@reserved@a{md@@\md@tempc}}}%
+ {\edef\md@reserved@a{\md@tempc}}%
+ }
+ \edef\md@tempc{\md@reserved@a}
\def\md@tempd{#2}%
\kernel@ifnextchar[%]
{\newmdtheoremenv@iii}{\newmdtheoremenv@iii[]}%
@@ -330,6 +338,14 @@
\def\newmdtheoremenv@iii[#1]{%
\def\md@tempe{#1}%
+ \ifboolexpr{ test {\ifcsundef{c@\md@tempe}} and test {\ifcsundef{c@md@@\md@tempe}} and not (test {\ifdefempty{\md@tempe}}) }%
+ {\md@PackageWarning{No Counter \md@tempe defined\MessageBreak}%
+ \edef\md@reserved@a{}}%
+ {\ifcsundef{c@\md@tempe}%
+ {\ifdefempty{\md@tempe}{\edef\md@reserved@a{}}{\edef\md@reserved@a{md@@\md@tempe}}}%
+ {\edef\md@reserved@a{\md@tempe}}%
+ }
+ \edef\md@tempe{\md@reserved@a}
\ifboolexpr{ not (test {\ifdefempty{\md@tempc}})
and
not (test {\ifdefempty{\md@tempe}})
@@ -338,22 +354,33 @@
both optional arguments^^J
<numeredlike> and <within>. This isn't allowed^^J
\mdframedpackagename will use <numeredlike>\MessageBreak}%
- \newtheorem{\csname md\md@tempb \endcsname}[\md@tempc]{\md@tempd}%
- }%
- {\ifdefempty{\md@tempc}{}{\newtheorem{md@@\md@tempb}[\md@tempc]{\md@tempd}}%
- \ifdefempty{\md@tempe}{}{\newtheorem{md@@\md@tempb}{\md@tempd}[\md@tempe]}%
+ \begingroup\edef\md@reserved@a{%
+ \endgroup\noexpand\newtheorem{md@@\md@tempb}[\md@tempc]{\md@tempd}}%
}%
+ {\ifdefempty{\md@tempc}{}{%
+ \begingroup%
+ \edef\md@reserved@a{\endgroup%
+ \noexpand\newtheorem{md@@\md@tempb}[\md@tempc]{\md@tempd}}}%
+ \ifdefempty{\md@tempe}{}{%
+ \begingroup%
+ \edef\md@reserved@a{\endgroup%
+ \noexpand\newtheorem{md@@\md@tempb}{\md@tempd}[\md@tempe]}}%
+ }
\ifboolexpr{test {\ifdefempty{\md@tempc}}
and
test {\ifdefempty{\md@tempe}}
}{%
- \newtheorem{md@@\md@tempb}{\md@tempd}%
+ \begingroup%
+ \edef\md@reserved@a{\endgroup%
+ \noexpand\newtheorem{md@@\md@tempb}{\md@tempd}%
+ }
}{}%
+ \md@reserved@a%
\protected@csxdef{\md@tempb}{\noexpand\mdfsetup{\md@tempa}%
- \noexpand\begin{mdframed}\noexpand\begin{md@@\md@tempb} %
+ \noexpand\begin{mdframed}[]\noexpand\begin{md@@\md@tempb}%
}%
\protected@csxdef{end\md@tempb}{%
- \noexpand\end{md@@\md@tempb}\noexpand\end{mdframed}%
+ \noexpand\end{md@@\md@tempb}\noexpand\end{mdframed}%
}%
}
@@ -496,8 +523,10 @@
\mdf@settings%
\let\width\z@%
\let\height\z@%
- \let\partopsep\z@
\setlength{\topsep}{\mdf@skipabove@length}%
+ \begingroup%
+ \let\partopsep\z@%
+ \expandafter\endgroup%
\begin{md@trivlist}\item\relax%
\md@checkntheorem%
\md@styledefinition%