diff options
author | Karl Berry <karl@freefriends.org> | 2014-12-02 00:56:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-12-02 00:56:05 +0000 |
commit | 319dc68037a4323d7fb02f72d3ed74a9a698fac7 (patch) | |
tree | 9e0b1bf7a547ad5e45279bfb4bb507ca54dd5b6c /Master | |
parent | ab4c97bb1913e7167819b3e3c2688a0e5200f011 (diff) |
tcolorbox (1dec14)
git-svn-id: svn://tug.org/texlive/trunk@35713 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
23 files changed, 67 insertions, 54 deletions
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES index f1e300a7db2..dd351303a03 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES +++ b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% %% ------------------------------------------------------------------------------------------- %% Copyright (c) 2006-2014 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> @@ -682,3 +682,6 @@ version 3.31 (2014/11/28) - new library 'raster': * tcbraster safeguarded against restricted horizontal mode * new option: 'raster every box' + +version 3.32 (2014/12/01) +- bug fix for 'crefname' and 'Crefname' options (cleveref support) diff --git a/Master/texmf-dist/doc/latex/tcolorbox/README b/Master/texmf-dist/doc/latex/tcolorbox/README index 8518a74fcab..7cb6295d8fa 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/README +++ b/Master/texmf-dist/doc/latex/tcolorbox/README @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% %% ------------------------------------------------------------------------------------------- %% Copyright (c) 2006-2014 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf Binary files differindex 4fc0a744cb3..a15f730c1a0 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex index 23909f20912..1ba3b4240f8 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% tcolorbox-example.tex: an example for tcolorbox %% %% ------------------------------------------------------------------------------------------- diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex index ab92c631692..57500d9ffbf 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex @@ -157,27 +157,29 @@ The following options \refKey{/tcb/new/crefname} and \refKey{/tcb/new/Crefname} need to be set inside the preamble. \end{marker} -\begin{newTcbKey}{crefname}{=\marg{singular}\marg{plural}}{no default, initially unset} +\begin{newTcbKey}[][doc updated=2014-12-01]{crefname}{=\marg{singular}\marg{plural}}{no default, initially unset} This option key can be used only in conjunction with the |cleveref| package \cite{cubitt:2013a} which has to be loaded separately. It creates a cross-reference type for the new |tcolorbox|'es, where the lowercase \meta{singular} and \meta{plural} forms of the cross-reference are given. + This type is the environment or macro name and \refKey{/tcb/label type} is set automatically. See \refKey{/tcb/label type} and \cite{cubitt:2013a} for more information. \end{newTcbKey} -\begin{newTcbKey}{Crefname}{=\marg{singular}\marg{plural}}{no default, initially unset} +\begin{newTcbKey}[][doc updated=2014-12-01]{Crefname}{=\marg{singular}\marg{plural}}{no default, initially unset} This option key can be used only in conjunction with the |cleveref| package \cite{cubitt:2013a} which has to be loaded separately. It creates a cross-reference type for the new |tcolorbox|'es, where the uppercase \meta{singular} and \meta{plural} forms of the cross-reference are given. + This type is the environment or macro name and \refKey{/tcb/label type} is set automatically. See \refKey{/tcb/label type} and \cite{cubitt:2013a} for more information. \end{newTcbKey} \inputpreamblelisting{I} \begin{dispExample} -% \usepackage{cleveref} % \usepackage{varioref} +% \usepackage{cleveref} \begin{mybluebox}[label={myreference}]{My title} This is an example. \end{mybluebox} diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex index e088dd6e3ed..4e70982b8e0 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex @@ -3991,7 +3991,7 @@ Nevertheless, this skin can be applied independently. \end{dispExample} \clearpage -\begin{dispListing*}{breakable,label=freeboxexample,before upper={This example demonstrates +\begin{dispListing*}{breakable,phantomlabel=freeboxexample,before upper={This example demonstrates a breakable customized box. Here, we define an environment |freebox|. The first application of |freebox| produces an unbroken |tcolorbox|. The box is drawn by the code given by \refKey{/tcb/frame code} diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex index 70e50d01d15..fea19ffacb3 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex @@ -768,6 +768,8 @@ identically colored. All following environments are numbered with a common counter, but this can be changed easily. Here, the counter output is supplemented by the subsection number. +Further, the |cleveref| package \cite{cubitt:2013a} is used for clever +references. \inputpreamblelisting{G} @@ -777,7 +779,7 @@ created now. |defstyle| and |theostyle| are used for the appearance. Now, everything is prepared for the following examples. \begin{dispExample} -The following theorem is numbered as Theorem \ref{theo:diffbarstetig} and +The following theorem is numbered as \Cref{theo:diffbarstetig} and referenced with the marker \texttt{theo:diffbarstetig}.\bigskip \begin{Theorem}{Differenzierbarkeit bedingt Stetigkeit, wobei diese Benennung @@ -789,7 +791,7 @@ referenced with the marker \texttt{theo:diffbarstetig}.\bigskip \begin{dispExample} -The following definition is numbered as Definition \ref{def:diffbarkeit} and +The following definition is numbered as \Cref{def:diffbarkeit} and referenced with the marker \texttt{def:diffbarkeit}.\bigskip \begin{Definition}{Differenzierbarkeit}{diffbarkeit} @@ -811,7 +813,7 @@ referenced with the marker \texttt{def:diffbarkeit}.\bigskip \begin{dispExample} -The following corollary is numbered as Corollary \ref{cor:nullstellen} and +The following corollary is numbered as \Cref{cor:nullstellen} and referenced with the marker \texttt{cor:nullstellen}.\bigskip \begin{Corollary}{Nullstellenexistenz}{nullstellen} diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf Binary files differindex d7f8629d926..719927ac027 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex index 402233df465..f8e5ae390ec 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex @@ -1,5 +1,5 @@ % \LaTeX-Main\ -%% The LaTeX package tcolorbox - version 3.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% tcolorbox.tex: Manual %% %% ------------------------------------------------------------------------------------------- @@ -106,8 +106,8 @@ \renewcommand*{\tcbdocnew}[1]{\textcolor{green!50!black}{\sffamily\bfseries N} #1} \renewcommand*{\tcbdocupdated}[1]{\textcolor{blue!75!black}{\sffamily\bfseries U} #1} -\def\version{3.31}% -\def\datum{2014/11/28}% +\def\version{3.32}% +\def\datum{2014/12/01}% \makeindex \hypersetup{ @@ -271,15 +271,19 @@ \begin{tcbverbatimwrite}{\jobname_preamble_G.tex} +% \usepackage{cleveref} \tcbset{ defstyle/.style={fonttitle=\bfseries\upshape, fontupper=\slshape, arc=0mm, colback=blue!5!white,colframe=blue!75!black}, theostyle/.style={fonttitle=\bfseries\upshape, fontupper=\slshape, colback=red!10!white,colframe=red!75!black}, } -\newtcbtheorem[number within=subsection]{Definition}{Definition}{defstyle}{def} -\newtcbtheorem[use counter from=Definition]{Theorem}{Theorem}{theostyle}{theo} -\newtcbtheorem[use counter from=Definition]{Corollary}{Corollary}{theostyle}{cor} +\newtcbtheorem[number within=subsection,crefname={definition}{definitions}]% + {Definition}{Definition}{defstyle}{def} +\newtcbtheorem[use counter from=Definition,crefname={theorem}{theorems}]% + {Theorem}{Theorem}{theostyle}{theo} +\newtcbtheorem[use counter from=Definition,crefname={corollary}{corollaries}]% + {Corollary}{Corollary}{theostyle}{cor} \end{tcbverbatimwrite} \input{\jobname_preamble_G.tex} @@ -297,7 +301,7 @@ \begin{tcbverbatimwrite}{\jobname_preamble_I.tex} % \usepackage{cleveref} \newtcolorbox[auto counter,number within=section, - Crefname={Bluebox}{Blueboxes},crefname={bluebox}{blueboxes}]% + crefname={bluebox}{blueboxes}]% {mybluebox}[2][]{colback=blue!5!white,colframe=blue!75!black,fonttitle=\bfseries, title=Bluebox \thetcbcounter: #2,#1} \end{tcbverbatimwrite} @@ -372,7 +376,7 @@ %\tcbset{draftmode} -%\includeonly{tcolorbox.doc.listings} +%\includeonly{tcolorbox.doc.theorems} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex index c8669f2dea9..359a3ac1a1c 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \let\tcb@parboxrestore@true=\tcb@parboxrestore \def\tcb@parboxrestore@false{\vskip-\parskip\linewidth\hsize\noindent} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex index d650b5e9561..f94b8ce6ed6 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \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 2d0832d3979..af1ccd4ac32 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \newdimen\tcbfitdim \newdimen\tcb@lowerfitdim diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex index 8c7bc5ab4b6..d0912dcebc7 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \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 3dde90ea421..d47f2c31d9c 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \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 d693e1e4280..8c62c19380a 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \RequirePackage{pdftexcmds} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex index a201563c981..8333794d33a 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \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 677cb554e4e..50065a45b17 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \RequirePackage{minted}[2011/09/17] diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex index a2855744436..737069a0357 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \newcounter{tcbrastercolumn} \newcounter{tcbrasterrow} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex index 91fc0316a47..8b20a558ef8 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \RequirePackage{tikz}[2010/10/13] diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex index 0478a70be6e..8846eb7b7a6 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \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 f30a8570389..bf3ffc7c1cc 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \RequirePackage{amsmath} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex index 2b6ccd375f4..d281fce999b 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% 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.31} +\tcb@set@library@version{3.32} \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 8f18cd54613..df6aae73224 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.31 (2014/11/28) +%% The LaTeX package tcolorbox - version 3.32 (2014/12/01) %% tcolorbox.sty: Text color boxes %% %% ------------------------------------------------------------------------------------------- @@ -18,8 +18,8 @@ %% This work consists of all files listed in README %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tcolorbox}[2014/11/28 version 3.31 text color boxes] -\def\tcb@version{3.31} +\ProvidesPackage{tcolorbox}[2014/12/01 version 3.32 text color boxes] +\def\tcb@version{3.32} \RequirePackage{pgf}[2008/01/15] \RequirePackage{verbatim}[2003/08/22] @@ -443,7 +443,7 @@ step/.style={phantom={\refstepcounter{#1}}},% label/.style={phantom={\tcb@set@label{#1}}},% phantomlabel/.style={phantom={\ifdefined\phantomsection\phantomsection\fi\tcb@set@label{#1}}},% - label type/.store in=\kvtcvb@label@type,% + label type/.store in=\kvtcb@label@type,% no label type/.style={label type=},% add to list/.style 2 args={phantom={\tcb@addcontentsline{#1}{#2}}}, nophantom/.code={\def\kvtcb@phantom{}},% @@ -498,10 +498,10 @@ }% \def\tcb@set@label#1{% - \ifx\kvtcvb@label@type\@empty% + \ifx\kvtcb@label@type\@empty% \label{#1}% \else% - \label[\kvtcvb@label@type]{#1}% + \label[\kvtcb@label@type]{#1}% \fi% } @@ -1269,6 +1269,8 @@ } +\def\tcb@new@label@type{\begingroup\edef\x{\endgroup\noexpand\appto\noexpand\tcb@new@colopt{,label type=\tcb@new@boxname}}\x} + \tcbset{% new/.cd,% use counter/.code={\edef\kvtcb@new@counter{#1}\let\tcb@proc@counter=\tcb@proc@counter@use}, @@ -1285,8 +1287,8 @@ list type/.store in=\kvtcb@new@listtype, % init@hook@clear/.code={\def\kvtcb@init@hook{}}, - crefname/.code 2 args={\appto\kvtcb@init@hook{\crefname{\tcbcounter}{#1}{#2}}}, - Crefname/.code 2 args={\appto\kvtcb@init@hook{\Crefname{\tcbcounter}{#1}{#2}}}, + crefname/.code 2 args={\begingroup\edef\x{\endgroup\noexpand\crefname{\tcb@new@boxname}}\x{#1}{#2}\tcb@new@label@type}, + Crefname/.code 2 args={\begingroup\edef\x{\endgroup\noexpand\Crefname{\tcb@new@boxname}}\x{#1}{#2}\tcb@new@label@type}, % blend into/.is choice,% blend into/figures/.style={use counter*=figure,list inside=lof,/tcb/code={\appto\tcb@new@colopt{,before title={\fnum@figure:\ }}}},% @@ -1346,6 +1348,7 @@ }% \long\def\tcb@process@newtcolorbox#1#2{% + \edef\tcb@new@boxname{#1}% \def\tcb@new@colopt{}% \long\def\temp@a{#2}% \ifx\temp@a\@empty\relax% @@ -1404,8 +1407,7 @@ \newcommand{\tcb@remove@bs@aux@iii}[1]{\z@} \newcommand\tcb@process@newcommand[2][]{% - \edef\tcb@temp{\noexpand\tcb@process@newtcolorbox{\tcb@remove@bs{#2}}}% - \tcb@temp{#1}% + \begingroup\edef\x{\endgroup\noexpand\tcb@process@newtcolorbox{\tcb@remove@bs{#2}}}\x{#1}% } \long\def\tcb@newtcbox#1#2{\expandafter\tcb@newcommand\csname#1\endcsname{\tcbox[#2,options@for=#1]}} |