summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tcolorbox
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-11-02 21:53:14 +0000
committerKarl Berry <karl@freefriends.org>2014-11-02 21:53:14 +0000
commitcd753845429d84c7f01270618abcbdeae44a2b0e (patch)
tree4ac0b5c516d9e33ae26f966744dbee4cea5176ab /Master/texmf-dist/tex/latex/tcolorbox
parent31b58f2ce8cf672d2c8298a57906dae0e327604a (diff)
tcolorbox (31oct14)
git-svn-id: svn://tug.org/texlive/trunk@35489 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tcolorbox')
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex7
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex37
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex41
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex24
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty17
13 files changed, 122 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex
index ac7e06059d9..a5d87614def 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcbbreakable.code.tex: Code for breakable colorboxes
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\let\tcb@parboxrestore@true=\tcb@parboxrestore
\def\tcb@parboxrestore@false{\vskip-\parskip\linewidth\hsize\noindent}
@@ -80,7 +80,8 @@
\c@mpfootnote\z@%
\let\@footnotetext\@mpfootnotetext%
\@setminipage\tcb@hyph@fix%
- \let\tcb@drawcolorbox=\tcb@drawcolorbox@standalone%
+ \let\tcb@drawcolorbox\tcb@drawcolorbox@standalone%
+ \let\FN@pp@footnote\@empty% disable perpage mode of 'footmisc' package
\ignorespaces%
}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex
index 23d432c99e3..7b9da97ff49 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcbdocumentation.code.tex: Code for LaTeX documentations
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\tcbuselibrary{listings,skins,xparse}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
index fb6b9f5215f..31cbfd9a835 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcbfitting.code.tex: Code for fit boxes
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\newdimen\tcbfitdim
\newdimen\tcb@lowerfitdim
@@ -60,8 +60,11 @@
\def\tcb@fit@warn@end{\hbadness=\tcb@cur@hbadness\relax\tcb@fit@@box}},
fit algorithm/.is choice,
fit algorithm/fontsize/.code={\let\tcbox@fitalgorithm=\tcbox@fitalgorithm@fontsize},
+ fit algorithm/fontsize*/.code={\let\tcbox@fitalgorithm=\tcbox@fitalgorithm@fontsize@star},
fit algorithm/areasize/.code={\let\tcbox@fitalgorithm=\tcbox@fitalgorithm@areasize},
+ fit algorithm/areasize*/.code={\let\tcbox@fitalgorithm=\tcbox@fitalgorithm@areasize@star},
fit algorithm/hybrid/.code={\let\tcbox@fitalgorithm=\tcbox@fitalgorithm@hybrid},
+ fit algorithm/hybrid*/.code={\let\tcbox@fitalgorithm=\tcbox@fitalgorithm@hybrid@star},
fit algorithm/squeeze/.code={\let\tcbox@fitalgorithm=\tcbox@fitalgorithm@squeeze},
spartan@fit/.style={fit algorithm=squeeze},
}
@@ -142,7 +145,13 @@
\fi%
}
-\def\tcbox@fitalgorithm@areasize{%
+\def\tcbox@fitalgorithm@fontsize@star{%
+ \tcbox@fitalgorithm@fontsize%
+ \setbox\tcb@upperbox\hbox{\resizebox*{\tcb@w@upper}{\tcb@fit@@target}{\box\tcb@upperbox}}%
+ \tcbdimto\tcb@fit@@h{\ht\tcb@upperbox+\dp\tcb@upperbox}%
+}
+
+\def\tcbox@fitalgorithm@areasize@core{%
\pgfmathdivide{\tcb@fit@@h}{\tcb@fit@@target}%
\pgfmathsqrt{\pgfmathresult}%
\let\tcb@temp=\pgfmathresult%
@@ -162,6 +171,10 @@
\fi\fi%
%
\tcbdimto\tcb@fit@@h{\ht\tcb@upperbox+\dp\tcb@upperbox}%
+}
+
+\def\tcbox@fitalgorithm@areasize{%
+ \tcbox@fitalgorithm@areasize@core%
\pgfmathdivide{\tcb@w@upper}{\tcb@w@upper@temp}%
\tcbdimto\tcb@fit@@h{\pgfmathresult\dimexpr\tcb@fit@@h}%
\ifdim\dimexpr\tcb@fit@@h>\tcb@fit@@target\relax%
@@ -172,12 +185,18 @@
\tcbdimto\tcb@fit@@h{\ht\tcb@upperbox+\dp\tcb@upperbox}%
}
+\def\tcbox@fitalgorithm@areasize@star{%
+ \tcbox@fitalgorithm@areasize@core%
+ \setbox\tcb@upperbox\hbox{\resizebox*{\tcb@w@upper}{\tcb@fit@@target}{\box\tcb@upperbox}}%
+ \tcbdimto\tcb@fit@@h{\ht\tcb@upperbox+\dp\tcb@upperbox}%
+}
+
\def\tcbox@fitalgorithm@squeeze{%
\setbox\tcb@upperbox\hbox{\resizebox*{\tcb@w@upper}{\tcb@fit@@target}{\box\tcb@upperbox}}%
\tcbdimto\tcb@fit@@h{\ht\tcb@upperbox+\dp\tcb@upperbox}%
}
-\def\tcbox@fitalgorithm@hybrid{%
+\def\tcbox@fitalgorithm@hybrid@core{%
\pgfmathdivide{\tcb@fit@@target}{\tcb@fit@@h}%
\pgfmathsqrt{\pgfmathresult}%
\tcbfitdim=\pgfmathresult\tcbfitdim%
@@ -192,10 +211,18 @@
\tcbfitdim=\pgfmathresult\tcbfitdim%
\tcb@fit@@box%
\fi\fi%
- %
+}
+
+\def\tcbox@fitalgorithm@hybrid{%
+ \tcbox@fitalgorithm@hybrid@core%
\tcbox@fitalgorithm@areasize%
}
+\def\tcbox@fitalgorithm@hybrid@star{%
+ \tcbox@fitalgorithm@hybrid@core%
+ \tcbox@fitalgorithm@areasize@star%
+}
+
\def\tcb@fit@@box{%
\tcbdimto\tcb@fit@@line{\kvtcb@fit@skip\tcbfitdim}%
\tcbdimto\tcb@w@upper{\tcb@width-\kvtcb@left@rule-\kvtcb@right@rule-\kvtcb@boxsep*2-\kvtcb@leftupper-\kvtcb@rightupper}%
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex
index 64b6db45cf5..98115a07e74 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcbhooks.code.tex: Code for adding hooks
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\tcbset{%
before upper app/.code={\appto\kvtcb@before@upper{#1}},%
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
index 9bd78cb3139..64695f2aede 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcblistings.code.tex: Code for colorboxes with listings
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\RequirePackage{listings}[2007/02/22]
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
index 622e0eafad4..ba4ba48df05 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcblistingscode.code.tex: Auxiliary code for colorboxes with listings
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\def\tcbuselistingtext{\input{\kvtcb@listingfile}}%
\def\tcbuselistingcomment{\kvtcb@listingcomment}%
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex
index b209c5a84f1..4c84604223b 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcblistingsutf8.code.tex: Code for colorboxes with listings in UTF-8
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\RequirePackage{listingsutf8}[2011/11/10]
\tcbuselibrary{listings}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
index e6741554ece..f9c57560fc6 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcbminted.code.tex: Code for colorboxes with listings
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\RequirePackage{minted}[2011/09/17]
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
index fff5f4ce095..4bf2713601f 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcbskins.code.tex: Code for colorboxes with different skins
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\RequirePackage{tikz}[2010/10/13]
@@ -1342,7 +1342,6 @@
}%
}
-
\def\tcb@draw@border@unbroken{%
\let\tcb@border=\tcb@border@unbroken%
\kvtcb@borderline%
@@ -1363,10 +1362,46 @@
\kvtcb@borderline%
}
+\def\tcb@bordernorth@draw#1#2#3{%
+ \tcbdimto\tcb@border@ts{#2+(#1)/2}%
+ \draw[line width=#1,#3] ([yshift=-\tcb@border@ts]frame.north west) -- ([yshift=-\tcb@border@ts]frame.north east);%
+}
+
+\def\tcb@bordernorth{%
+ \ifdefstring{\tcb@split@state}{unbroken}{\tcb@bordernorth@draw}{%
+ \ifdefstring{\tcb@split@state}{first}{\tcb@bordernorth@draw}{}}%
+}
+
+\def\tcb@bordersouth@draw#1#2#3{%
+ \tcbdimto\tcb@border@ts{#2+(#1)/2}%
+ \draw[line width=#1,#3] ([yshift=\tcb@border@ts]frame.south west) -- ([yshift=\tcb@border@ts]frame.south east);%
+}
+
+\def\tcb@bordersouth{%
+ \ifdefstring{\tcb@split@state}{unbroken}{\tcb@bordersouth@draw}{%
+ \ifdefstring{\tcb@split@state}{last}{\tcb@bordersouth@draw}{}}%
+}
+
+\def\tcb@borderwest#1#2#3{%
+ \tcbdimto\tcb@border@ts{#2+(#1)/2}%
+ \draw[line width=#1,#3] ([xshift=\tcb@border@ts]frame.north west) -- ([xshift=\tcb@border@ts]frame.south west);%
+}
+
+\def\tcb@bordereast#1#2#3{%
+ \tcbdimto\tcb@border@ts{#2+(#1)/2}%
+ \draw[line width=#1,#3] ([xshift=-\tcb@border@ts]frame.north east) -- ([xshift=-\tcb@border@ts]frame.south east);%
+}
+
\tcbset{%
border@line app/.code={\appto\kvtcb@borderline{#1}},%
borderline/.style args={#1#2#3}{border@line app={\tcb@border{#1}{#2}{#3}}},%
no borderline/.code={\def\kvtcb@borderline{}},%
+ borderline north/.style args={#1#2#3}{border@line app={\tcb@bordernorth{#1}{#2}{#3}}},%
+ borderline south/.style args={#1#2#3}{border@line app={\tcb@bordersouth{#1}{#2}{#3}}},%
+ borderline west/.style args={#1#2#3}{border@line app={\tcb@borderwest{#1}{#2}{#3}}},%
+ borderline east/.style args={#1#2#3}{border@line app={\tcb@bordereast{#1}{#2}{#3}}},%
+ borderline horizontal/.style args={#1#2#3}{borderline north={#1}{#2}{#3},borderline south={#1}{#2}{#3}},%
+ borderline vertical/.style args={#1#2#3}{borderline west={#1}{#2}{#3},borderline east={#1}{#2}{#3}},%
}
\def\tcb@shadow@prepare#1#2{%
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex
index 5bd8f8178a6..72dbb7d3025 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\tcbuselibrary{skins}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
index 48809563ce0..67f702a00c6 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcbtheorems.code.tex: Code for theorems in colorboxes
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\RequirePackage{amsmath}
@@ -55,6 +55,22 @@
\fi%
}
+\if@fleqn%
+\tcbset{%
+ ams equation upper/.style={before upper=\tcb@hack@amsmath\equation,after upper=\endequation},%
+ ams equation lower/.style={before lower=\tcb@hack@amsmath\equation,after lower=\endequation},%
+ ams equation* upper/.style={before upper=\tcb@hack@amsmath\csname equation*\endcsname,after upper=\endequation},%
+ ams equation* lower/.style={before lower=\tcb@hack@amsmath\csname equation*\endcsname,after lower=\endequation}%
+}%
+\else%
+\tcbset{%
+ ams equation upper/.style={before upper=\tcb@hack@currenvir\equation,after upper=\endequation},%
+ ams equation lower/.style={before lower=\tcb@hack@currenvir\equation,after lower=\endequation},%
+ ams equation* upper/.style={before upper=\tcb@hack@currenvir\csname equation*\endcsname,after upper=\endequation},%
+ ams equation* lower/.style={before lower=\tcb@hack@currenvir\csname equation*\endcsname,after lower=\endequation},%
+}%
+\fi
+
\tcbset{
theorem/.style args={#1#2#3#4}{%
step and label={#2}{#4},%
@@ -62,11 +78,7 @@
math upper/.style={before upper=$\displaystyle,after upper=$},%
math lower/.style={before lower=$\displaystyle,after lower=$},%
math/.style={math upper,math lower},%
- ams equation upper/.style={before upper=\tcb@hack@currenvir\equation,after upper=\endequation},%
- ams equation lower/.style={before lower=\tcb@hack@currenvir\equation,after lower=\endequation},%
ams equation/.style={ams equation upper,ams equation lower},%
- ams equation* upper/.style={before upper=\tcb@hack@currenvir\csname equation*\endcsname,after upper=\endequation},%
- ams equation* lower/.style={before lower=\tcb@hack@currenvir\csname equation*\endcsname,after lower=\endequation},%
ams equation*/.style={ams equation* upper,ams equation* lower},%
ams align upper/.style={before upper=\tcb@hack@amsmath\align,after upper=\endalign},%
ams align lower/.style={before lower=\tcb@hack@amsmath\align,after lower=\endalign},%
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex
index 76b7acec17f..1b3a69f76a3 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcbhooks.code.tex: Code for adding hooks
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.21}
+\tcb@set@library@version{3.22}
\RequirePackage{xparse}[2013/12/31]
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty b/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
index d3f9a404674..93dd89e095a 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.21 (2014/10/10)
+%% The LaTeX package tcolorbox - version 3.22 (2014/10/31)
%% tcolorbox.sty: Text color boxes
%%
%% -------------------------------------------------------------------------------------------
@@ -18,8 +18,8 @@
%% This work consists of all files listed in README
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tcolorbox}[2014/10/10 version 3.21 text color boxes]
-\def\tcb@version{3.21}
+\ProvidesPackage{tcolorbox}[2014/10/31 version 3.22 text color boxes]
+\def\tcb@version{3.22}
\RequirePackage{pgf}[2008/01/15]
\RequirePackage{verbatim}[2003/08/22]
@@ -147,6 +147,7 @@
attach title to upper/.default=,
subtitle style/.store in=\kvtcb@subtitle@style,%
width/.dimstore in=\kvtcb@width,
+ text width/.style={width={#1+\kvtcb@left@rule+\kvtcb@right@rule+\kvtcb@boxsep*2+\kvtcb@leftupper+\kvtcb@rightupper}},%
boxsep/.store in=\kvtcb@boxsep,
toprule/.code={%
\def\kvtcb@top@rule@stand{#1}%
@@ -225,6 +226,7 @@
lowerbox/ignored/.code={\tcb@lowerignoredtrue\tcb@lowervisiblefalse},
natural height/.code={\let\tcb@ch=\tcb@ch@natural},
height/.code={\tcb@dim@to\kvtcb@height@fixed{#1}\let\tcb@ch=\tcb@ch@fixed},
+ text height/.code={\tcb@dim@to\kvtcb@height@fixed{#1}\let\tcb@ch=\tcb@ch@innerfixed},
height plus/.dimstore in=\kvtcb@height@fixed@plus,%
height from/.style args={#1 to #2}{height={#1},height plus={#2-#1}},%
height fill/.is choice,%
@@ -732,6 +734,11 @@
\iftcb@lowerspace\tcb@ch@fixed@both\else\tcb@ch@fixed@upper\fi%
}
+\def\tcb@ch@innerfixed{%
+ \tcbdimto\kvtcb@height@fixed{\kvtcb@height@fixed+\kvtcb@top@rule+\kvtcb@bottom@rule+\tcb@h@padtitle+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom}%
+ \tcb@ch@fixed%
+}
+
\def\tcb@saveehg#1{%
\immediate\write\@auxout{\string\gdef\string\tcb@ehg@#1@height{\csname tcb@ehg@#1@current\endcsname}}%
}
@@ -1345,6 +1352,10 @@
\let\tcb@process@newtcolorbox@continue\tcb@new@tcolorbox%
\tcb@process@newenvironment}
+\newcommand{\tcolorboxenvironment}[2]{%
+ \BeforeBeginEnvironment{#1}{\begin{tcolorbox}[savedelimiter={#1},#2]}%
+ \AfterEndEnvironment{#1}{\end{tcolorbox}}%
+}
% auxiliary code to remove a leading backspace
\newcommand{\tcb@remove@bs}[1]{%