summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-05-18 21:50:35 +0000
committerKarl Berry <karl@freefriends.org>2014-05-18 21:50:35 +0000
commitac10a340d089015d4cd7cdb72910245f40a214ae (patch)
tree7f9990215f859ec09c6417ec427b408bd4b07bf2 /Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
parent8fd402b27e75f8bf30f914730e0862dad082bc3c (diff)
tcolorbox (18may14)
git-svn-id: svn://tug.org/texlive/trunk@34108 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex')
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex25
1 files changed, 18 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
index 3bde9abe614..8b540e35bbe 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.03 (2014/05/16)
+%% The LaTeX package tcolorbox - version 3.04 (2014/05/18)
%% 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.03}
+\tcb@set@library@version{3.04}
\RequirePackage{tikz}[2010/10/13]
@@ -26,7 +26,7 @@
\tcb@tikzpicture@begin\tcb@tikz@begin@hook}{\tcb@tikz@end@hook\endtikzpicture}
\def\tcb@creategeonodes@true{%
- \begin{scope}[every node/.style={line width=0mm,inner sep=0mm,draw=none,fill=none,rectangle}]
+ \begin{scope}[every node/.style={line width=0mm,inner sep=0mm,outer sep=0mm,draw=none,fill=none,rectangle}]
\node[name=frame,at={(0,0)},above right,minimum width=\tcb@width,minimum height=\tcb@height]{};
\node[name=interior,at={({\kvtcb@left@rule},{\kvtcb@bottom@rule})},above right,minimum width=\tcb@innerwidth,minimum height=\tcb@innerheight]{};
\ifnum\tcb@segment@state=1%
@@ -40,6 +40,7 @@
\node[name=title,at={({\kvtcb@left@rule},{\the\dimexpr\kvtcb@bottom@rule+\tcb@innerheight+\kvtcb@title@rule\relax})},above right,
minimum width=\tcb@innerwidth,minimum height=\the\dimexpr\tcb@h@title+\kvtcb@toptitle+\kvtcb@bottomtitle+\kvtcb@boxsep*2\relax]{};
\fi%
+ \tcb@specialgeonodes@hook%
\end{scope}%
}
@@ -881,6 +882,7 @@
underlay first/.code={\appto\tcb@underlay@first{#1}},%
underlay middle/.code={\appto\tcb@underlay@middle{#1}},%
underlay last/.code={\appto\tcb@underlay@last{#1}},%
+ underlay boxed title/.code={\appto\tcb@underlay@boxedtitle{#1}},%
underlay/.style={underlay unbroken={#1},underlay first={#1},underlay middle={#1},underlay last={#1}},%
underlay broken/.style={underlay first={#1},underlay middle={#1},underlay last={#1}},%
underlay unbroken and first/.style={underlay unbroken={#1},underlay first={#1}},%
@@ -890,7 +892,8 @@
no underlay first/.code={\let\tcb@underlay@first\@empty},%
no underlay middle/.code={\let\tcb@underlay@middle\@empty},%
no underlay last/.code={\let\tcb@underlay@last\@empty},%
- no underlay/.style={no underlay unbroken,no underlay first,no underlay middle,no underlay last},%
+ no underlay boxed title/.code={\let\tcb@underlay@boxedtitle\@empty},%
+ no underlay/.style={no underlay unbroken,no underlay first,no underlay middle,no underlay last,no underlay boxed title},%
finish unbroken/.code={\appto\tcb@finish@unbroken{#1}},%
finish first/.code={\appto\tcb@finish@first{#1}},%
finish middle/.code={\appto\tcb@finish@middle{#1}},%
@@ -965,8 +968,16 @@
\tcbdimto\tcboxedtitleheight{\ht\tcb@titlebox+\dp\tcb@titlebox}%
\tcbdimto\tcboxedtitlewidth{\wd\tcb@titlebox}%
\tcbset{boxtitle/.cd,xshift=0pt,yshift=0pt,yshifttext=0pt,yshift*@#2,#1,adapt@#2}%
- \preto\tcb@underlay@unbroken{\node[inner sep=0pt,outer sep=0pt,#4,name=title] at ([xshift=\kvtcb@xshift@boxedtitle,yshift=\kvtcb@yshift@boxedtitle]frame.#5) {\box\tcb@titlebox};}%
- \cspreto{tcb@underlay@#3}{\node[inner sep=0pt,outer sep=0pt,#4,name=title] at ([xshift=\kvtcb@xshift@boxedtitle,yshift=\kvtcb@yshift@boxedtitle]frame.#5) {\box\tcb@titlebox};}%
+ \let\tcb@specialgeonodes@first\relax%
+ \let\tcb@specialgeonodes@middle\relax%
+ \let\tcb@specialgeonodes@last\relax%
+ \def\tcb@specialgeonodes@unbroken{%
+ \node[#4,name=title,at={([xshift=\kvtcb@xshift@boxedtitle,yshift=\kvtcb@yshift@boxedtitle]frame.#5)},
+ minimum width=\tcboxedtitlewidth,minimum height=\tcboxedtitleheight]{};}%
+ \cslet{tcb@specialgeonodes@#3}{\tcb@specialgeonodes@unbroken}%
+ \def\tcb@specialgeonodes@hook{\csname tcb@specialgeonodes@\tcb@split@state\endcsname}%
+ \preto\tcb@underlay@unbroken{\tcb@underlay@boxedtitle\pgftext[at={\pgfpointanchor{title}{center}}]{\box\tcb@titlebox}}%
+ \cspreto{tcb@underlay@#3}{\tcb@underlay@boxedtitle\pgftext[at={\pgfpointanchor{title}{center}}]{\box\tcb@titlebox}}%
\fi}}%
},
attach@title@boxed@top/.style n args={3}{attach@title@boxed={#1}{top}{first}{#2}{#3}},%
@@ -1452,7 +1463,7 @@
watermark zoom=0.75,clip watermark,%
clip title=false,clip upper=false,clip lower=false,%
no borderline,no shadow,no underlay,no finish,tikz reset,at begin tikz reset,at end tikz reset,%
- boxed title style=,hbox boxed title,%
+ boxed title style=,hbox boxed title,code={\let\tcb@specialgeonodes@hook\relax}%
},
initialize@reset=reset@skins,
}