texlive[56610] Master/texmf-dist: tcolorbox (9oct20)

commits+karl at tug.org commits+karl at tug.org
Fri Oct 9 22:21:47 CEST 2020


Revision: 56610
          http://tug.org/svn/texlive?view=revision&revision=56610
Author:   karl
Date:     2020-10-09 22:21:47 +0200 (Fri, 09 Oct 2020)
Log Message:
-----------
tcolorbox (9oct20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/tcolorbox/CHANGES
    trunk/Master/texmf-dist/doc/latex/tcolorbox/README
    trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example-poster.pdf
    trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example-poster.tex
    trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf
    trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex
    trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-tutorial-poster.pdf
    trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-tutorial-poster.tex
    trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.breakable.tex
    trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf
    trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbmagazine.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbposter.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbprocessing.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbvignette.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex
    trunk/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/CHANGES
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tcolorbox/CHANGES	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/doc/latex/tcolorbox/CHANGES	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %%
 %% -------------------------------------------------------------------------------------------
 %% Copyright (c) 2006-2020 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
@@ -1184,3 +1184,11 @@
 
 version 4.41 (2020/09/29)
 - bug fix (#120): color bleeding for xelatex and breakable boxes (since 4.32)
+
+version 4.42 (2020/10/09)
+- due to several problems with the color algorithm introduced with version 4.32,
+  essentially reversion to the proven pre 4.32 method.
+  * support of luacolor persists (since 4.32)
+  * color stacks (by pdfcol) are not mandatory any more,
+    but are optional now with 'use color stack'. Note that effects of whatsits
+    on the vertical space have to be expected.

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tcolorbox/README	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/doc/latex/tcolorbox/README	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %%
 %% -------------------------------------------------------------------------------------------
 %% Copyright (c) 2006-2020 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example-poster.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example-poster.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example-poster.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example-poster.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcolorbox-example-poster.tex: a poster example for tcolorbox
 %%
 %% -------------------------------------------------------------------------------------------

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcolorbox-example.tex: an example for tcolorbox
 %%
 %% -------------------------------------------------------------------------------------------

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-tutorial-poster.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-tutorial-poster.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-tutorial-poster.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-tutorial-poster.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,5 +1,5 @@
 % \LaTeX-Main\
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcolorbox-tutorial-poster.tex: a tutorial for poster creation with tcolorbox
 %%
 %% -------------------------------------------------------------------------------------------

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.breakable.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.breakable.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.breakable.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -110,13 +110,9 @@
   box\footnote{\refKey{/tcb/enforce breakable} acts like \refKey{/tcb/breakable} until |tcolorbox| 3.04.}.
   \textbf{But, a breakable box inside a breakable box will usually give a mess.}
 \item\tcbdocmarginnote{\tcbdocnew{2020-09-17}}
-  Depending on the \LaTeX\ compiler, if your text content contains some text
+  Depending on the \LaTeX\ engine, if your text content contains some text
   color changing commands, your color may not survive the break to the next box.
-  Since |tcolorbox|~4.32, |pdflatex| and |lualatex| should not have that
-  problem. For |xelatex|, with the |fontspec| package,
-  you can use
-  |\addfontfeatures{Color=mycolor}|
-  to add a font color which survives the break.
+  See the documentation for \refKey{/tcb/use color stack} for more information.
 \item\tcbdocmarginnote{\tcbdocnew{2014-10-30}}
   The |perpage| option of the |footmisc| package is deliberately deactivated
   inside a breakable box since all footnotes are placed at the end
@@ -222,7 +218,7 @@
   \item Setting a \meta{length} to a negative value means that
         the sum of this negative value and the naturally available space is used
         for breaking (boxes will shrink in height).
-        That that before version 4.10 negative values were treated like |0pt|.
+        Note that before version 4.10 negative values were treated like |0pt|.
   \end{itemize}
 \begin{dispExample}
 % \usepackage{multicol,lipsum}
@@ -313,7 +309,73 @@
 \end{docTcbKey}
 
 
+
+\begin{docTcbKey}[][doc new=2020-10-09]{use color stack}{\colOpt{=true\textbar false}}{default |true|, initially |false|}
+  Depending on the \LaTeX\ engine and loaded packages, if your text contains some
+  color changing commands, your color may not survive the break to the next box.
+  For some engines, there is support for additional color stacks which
+  allow colors to survive breaks. Such an color stack  can be activated
+  by \refKey{/tcb/use color stack} with help of the |pdfcol| package.
+  This can be done globally or per box.
+  \begin{marker}
+  Note that activating \refKey{/tcb/use color stack} inserts a color command with a \emph{whatsit}
+  at the begin of the upper part and of the lower part of a \refEnv{tcolorbox}.
+  This \emph{may} add additional vertical space, e.g. if your box text starts
+  with a list like \emph{enumerate}!
+  \end{marker}
+  \begin{itemize}
+  \item pdf\TeX: color stacks supported.
+  \item Lua\TeX: color stacks supported, but you should consider loading the
+     |luacolor| package \emph{instead} which avoids the spacing problem.
+  \item Xe\TeX: color stacks not supported (yet?). From hearsay,
+    with the |fontspec| package, you may use |\addfontfeatures{Color=mycolor}|
+    to add a font color which survives the break.
+  \end{itemize}
+  If |pdfcol| cannot initialize an additional color stack for the used engine,
+  \refKey{/tcb/use color stack} is silently ignored.
+
 \clearpage
+\begin{dispExample}
+% \usepackage{multicol,lipsum}
+\begin{multicols}{2}\footnotesize
+Breakable box without color stack.
+\begin{tcolorbox}[enhanced jigsaw,
+  size=small, colframe=gray, colback=yellow!10!white, colupper=blue,
+  enforce breakable,% use only breakable in the real world!
+  vfill before first, pad at break=1mm, break at=3.3cm ]
+    \begin{itemize}\item Some blue text.\end{itemize}
+    {\color{red}\itshape\lipsum[2]}\par
+    More blue text.
+\end{tcolorbox}
+Text after box.
+\end{multicols}
+\end{dispExample}
+
+We do again with \refKey{/tcb/use color stack}. Observe the additional spacing
+at the begin of the box:
+
+\begin{dispExample}
+% \usepackage{multicol,lipsum}
+\begin{multicols}{2}\footnotesize
+Breakable box with color stack.
+\begin{tcolorbox}[enhanced jigsaw, use color stack,
+  size=small, colframe=gray, colback=yellow!10!white, colupper=blue,
+  enforce breakable,% use only breakable in the real world!
+  vfill before first, pad at break=1mm, break at=3.3cm ]
+    \begin{itemize}\item Some blue text.\end{itemize}
+    {\color{red}\itshape\lipsum[2]}\par
+    More blue text.
+\end{tcolorbox}
+Text after box.
+\end{multicols}
+\end{dispExample}
+
+\end{docTcbKey}
+
+
+
+
+\clearpage
 \subsection{Option Keys for the Break Appearance}
 
 \begin{docTcbKey}{toprule at break}{=\meta{length}}{no default, initially \texttt{0.5mm}}

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,5 +1,5 @@
 % \LaTeX-Main\
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcolorbox.tex: Manual
 %%
 %% -------------------------------------------------------------------------------------------
@@ -43,8 +43,8 @@
 \setlength{\bibitemsep}{\smallskipamount}
 \addbibresource{tcolorbox.doc.bib}
 
-\def\version{4.41}%
-\def\datum{2020/09/29}%
+\def\version{4.42}%
+\def\datum{2020/10/09}%
 \makeindex
 
 \hypersetup{
@@ -62,7 +62,7 @@
 %\geometry{showframe}
 %\tcbset{draftmode}
 \tcbset{/tcb/external/-}% for final run
-%\includeonly{tcolorbox.doc.intro,tcolorbox.doc.quickref,tcolorbox.doc.coremacros}
+%\includeonly{tcolorbox.doc.breakable}
 
 %\hypersetup{colorlinks=false}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbbreakable.code.tex: Code for breakable colorboxes
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,11 +17,13 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \RequirePackage{pdfcol}
 \pdfcolInitStack{tcb at breakable}
 
+\newif\iftcb at usecolorstack
+
 \let\tcb at parboxrestore@true=\tcb at parboxrestore
 \let\tcb at parboxrestore@false\tcb at parbox@false at settings
 
@@ -66,6 +68,7 @@
 
 \def\tcb@@break{\par\xleaders\vbox{\rule{0pt}{2\textheight}}\vskip 2\textheight\par}
 
+
 \def\tcb at vbox#1#2{%
   \edef\reserved at a{%
     \endgroup%
@@ -76,7 +79,10 @@
   \reserved at a%
   \@endpefalse%
   \let\tcbbreak\tcb@@break%
-  \pdfcolSwitchStack{tcb at breakable}%
+  \iftcb at usecolorstack%
+    \pdfcolSwitchStack{tcb at breakable}%
+    \pdfcolSetCurrentColor%
+  \fi%
   \color at begingroup%
   \textwidth\hsize%
   \columnwidth\hsize%
@@ -274,7 +280,7 @@
       \tcb at multicolfalse%
     \fi}%
   \ifx\kvtcb at float\@empty\relax%
-    \iftcb at nobreak
+    \iftcb at nobreak%
       \let\tcb at nobreak@warning\tcb at do@nobreak at warning%
       \iftcb at ignorenobreak%
         \kvtcb at beforebox%
@@ -308,14 +314,7 @@
 \def\tcb at height@fill at unbroken@normal{\tcb at height@fill at unbroken{none}}
 \def\tcb at height@fill at unbroken@compressed{\tcb at height@fill at unbroken{all}}
 
-\pdfcolIfStackExists{tcb at breakable}{%
-  \def\tcb at use@after at lastbox{\bgroup\tcb at after@lastbox\egroup}
-}{%
-  \def\tcb at use@after at lastbox{%
-    \everypar=\expandafter{\the\everypar\everypar{}\color{.}}%
-    \bgroup\tcb at after@lastbox\egroup%
-  }%
-}
+\def\tcb at use@after at lastbox{\bgroup\tcb at after@lastbox\egroup}
 
 \def\tcb at drawcolorbox@breakable{%
   \tcbdimto\kvtcb at topsep{\kvtcb at topsep}%
@@ -330,6 +329,7 @@
     \tcb at parfillskip@check%
     \tcb at split@start%
   \endgroup%
+  \color{.}% hack for some special cases
   \ifx\kvtcb at float\@empty\relax%
     \aftergroup\tcb at use@after at lastbox%
   \fi%
@@ -916,13 +916,13 @@
   \let\tcb at savebox=\tcb at vbox%
   \let\endtcb at savebox=\endtcb at vbox%
   \let\tcb at drawcolorbox=\tcb at drawcolorbox@breakable%
-  \pdfcolIfStackExists{tcb at breakable}{%
-    \appto\tcb at upperdraw@begin at hook{\pdfcolSetCurrent{tcb at breakable}}%
-    \appto\tcb at lowerdraw@begin at hook{\pdfcolSetCurrent{tcb at breakable}}%
-  }{%
-    \appto\tcb at upperdraw@begin at hook{\color{tcbcolupper}}%
-    \appto\tcb at lowerdraw@begin at hook{\color{tcbcollower}}%
-  }%
+  \iftcb at usecolorstack%
+    \def\tcb at upperdraw@begin at hook{\pdfcolSetCurrent{tcb at breakable}}%
+    \def\tcb at lowerdraw@begin at hook{\pdfcolSetCurrent{tcb at breakable}}%
+  \else%
+    \def\tcb at upperdraw@begin at hook{\color{tcbcolupper}}%
+    \def\tcb at lowerdraw@begin at hook{\color{tcbcollower}}%
+  \fi%
 }
 
 \tcbset{%
@@ -1027,6 +1027,12 @@
   segmentation at break/true/.code={\let\tcb at split@SL\tcb at split@SL at displayed},
   segmentation at break/false/.code={\let\tcb at split@SL\tcb at split@L},
   segmentation at break/.default=true,
+  use color stack/.is choice,%
+  use color stack/true/.code={%
+    \pdfcolIfStackExists{tcb at breakable}{\tcb at usecolorstacktrue}{\tcb at usecolorstackfalse}%
+  },%
+  use color stack/false/.code={\tcb at usecolorstackfalse},%
+  use color stack/.default=true,%
 }
 
 
@@ -1033,6 +1039,7 @@
 \tcbset{%
   reset at breakable/.style={%
     unbreakable,notitle after break,
+    use color stack=false,
     shrink break goal=0pt,
     lines before break=2,
     topsep at break=0pt,

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbdocumentation.code.tex: Code for LaTeX documentations
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \tcbuselibrary{listings,skins,xparse,external,raster}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbexternal.code.tex: Code for externalization
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \tcbuselibrary{pro at cessing}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbfitting.code.tex: Code for fit boxes
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README
 %%
 %\makeatletter
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \newdimen\tcbfitdim
 \newdimen\tcb at lowerfitdim

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbhooks.code.tex: Code for adding hooks
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README
 %%
 %\makeatletter
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \tcbset{%
   before upper app/.code={\appto\kvtcb at before@upper{#1}},%

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcblistings.code.tex: Code for colorboxes with listings
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README
 %%
 %\makeatletter
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \RequirePackage{listings}[2007/02/22]
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcblistingscode.code.tex: Auxiliary code for colorboxes with listings
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README
 %%
 %\makeatletter
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \tcbuselibrary{pro at cessing}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% 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 at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \tcbuselibrary{listings}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbmagazine.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbmagazine.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbmagazine.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbmagazine.code.tex: Code for box sets and magazine styles
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \tcbuselibrary{breakable}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbminted.code.tex: Code for colorboxes with listings
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README
 %%
 %\makeatletter
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \RequirePackage{minted}[2011/09/17]
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbposter.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbposter.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbposter.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbposter.code.tex: Code for posters
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \tcbuselibrary{breakable,magazine,skins,fitting}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbprocessing.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbprocessing.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbprocessing.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbprocessing.code.tex: Code for conditional processing
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \RequirePackage{pdftexcmds}
 \RequirePackage{shellesc}

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \newcounter{tcbrastercolumn}
 \newcounter{tcbrasterrow}

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbskins.code.tex: Code for colorboxes with different skins
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \RequirePackage{tikz}[2010/10/13]
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \tcbuselibrary{skins}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbtheorems.code.tex: Code for theorems in colorboxes
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README
 %%
 %\makeatletter
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \RequirePackage{amsmath}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbvignette.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbvignette.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbvignette.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbvignette.code.tex: Code for ornamental frames
 %%
 %% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
 %%
 %% This work consists of all files listed in README
 %%
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \tcbuselibrary{skins}
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcbxparse.code.tex: Code for xparse features
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
 %% This work consists of all files listed in README
 %%
 %\makeatletter
-\tcb at set@library at version{4.41}
+\tcb at set@library at version{4.42}
 
 \RequirePackage{xparse}[2013/12/31]
 

Modified: trunk/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty	2020-10-09 20:21:09 UTC (rev 56609)
+++ trunk/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty	2020-10-09 20:21:47 UTC (rev 56610)
@@ -1,8 +1,8 @@
-%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
+%% The LaTeX package tcolorbox - version 4.42 (2020/10/09)
 %% tcolorbox.sty: Text color boxes
 %%
 %% -------------------------------------------------------------------------------------------
-%% Copyright (c) 2006-2019 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
+%% Copyright (c) 2006-2020 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
 %% -------------------------------------------------------------------------------------------
 %%
 %% This work may be distributed and/or modified under the
@@ -18,8 +18,8 @@
 %% This work consists of all files listed in README
 %%
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tcolorbox}[2020/09/29 version 4.41 text color boxes]
-\def\tcb at version{4.41}
+\ProvidesPackage{tcolorbox}[2020/10/09 version 4.42 text color boxes]
+\def\tcb at version{4.42}
 
 \RequirePackage{pgf}[2008/01/15]
 \RequirePackage{verbatim}[2003/08/22]
@@ -711,7 +711,10 @@
     \let\tcb at savebox=\tcb at lrbox%
     \let\endtcb at savebox=\endtcb at lrbox%
     \let\tcb at defToTotalHeight=\tcb at defToTotalHeightStandard%
-    \let\tcb at drawcolorbox=\tcb at drawcolorbox@standalone},
+    \let\tcb at drawcolorbox=\tcb at drawcolorbox@standalone%
+    \def\tcb at upperdraw@begin at hook{\color{tcbcolupper}}%
+    \def\tcb at lowerdraw@begin at hook{\color{tcbcollower}}%
+  },
   code/.code={#1},
   capture/.store in=\kvtcb at capture,%
   hbox/.style={capture=hbox},%
@@ -868,10 +871,10 @@
 \let\endtcb at savebox=\endtcb at lrbox
 
 \def\tcb at saveupperbox{%
-\begin{tcb at savebox}{\tcb at upperbox}{\tcb at w@upper}\color{tcbcolupper}\kvtcb at fontupper\kvtcb at halignupper\tcb at insert@before at upper}
+\begin{tcb at savebox}{\tcb at upperbox}{\tcb at w@upper}\tcb at lua@color{tcbcolupper}\kvtcb at fontupper\kvtcb at halignupper\tcb at insert@before at upper}
 
 \def\tcb at savelowerbox{%
-\begin{tcb at savebox}{\tcb at lowerbox}{\tcb at w@lower}\color{tcbcollower}\kvtcb at fontlower\kvtcb at halignlower\tcb at insert@before at lower}
+\begin{tcb at savebox}{\tcb at lowerbox}{\tcb at w@lower}\tcb at lua@color{tcbcollower}\kvtcb at fontlower\kvtcb at halignlower\tcb at insert@before at lower}
 
 
 % counter for float
@@ -887,6 +890,11 @@
   \tcbset{autoparskip/.style=noparskip}%
 \fi%
 \tcb at use@autoparskip%
+\ifx\luacolorProcessBox\@undefined%
+  \def\tcb at lua@color#1{}%
+\else%
+  \def\tcb at lua@color#1{\color{#1}}%
+\fi%
 }
 
 \long\def\tcb at colorbox{%
@@ -964,12 +972,24 @@
   \fi%
 }
 
+\def\tcb at set@color#1{%
+  \edef\current at color{\@nameuse{\string\color@#1}}%
+  \colorlet{.}{#1}%
+}
+
+\def\tcb at reset@color{%
+  \colorlet{.}{tcbcol at origin}%
+  \edef\current at color{\@nameuse{\string\color at tcbcol@origin}}%
+}
+
 \def\tcb at set@@upper at and@lower{%
+  \colorlet{tcbcol at origin}{.}%
   \let\tcb at insert@after at part=\tcb at insert@after at upper%
   % switch for lower box
   \def\tcblower{%
     \tcb at insert@after at part%
     \end{tcb at savebox}%
+    \tcb at set@color{tcbcollower}%
     \unless\iftcb at sidebyside%
       \tcbdimto\tcb at w@lower{\tcb at innerwidth-\kvtcb at boxsep*2-\kvtcb at leftlower-\kvtcb at rightlower}%
     \fi%
@@ -984,6 +1004,7 @@
     \fi%
     \tcb at startbox}%
   % start of upper box
+  \tcb at set@color{tcbcolupper}%
   \ifx\kvtcb at saveupperto\@empty%
     \let\tcb at startbox\tcb at saveupperbox%
     \let\endtcolorbox\tcb at endboxanddraw%
@@ -1167,6 +1188,7 @@
 \def\tcb at endboxanddraw{%
   \tcb at insert@after at part%
   \end{tcb at savebox}%
+  \tcb at reset@color%
   \tcb at draw@color at box%
   \tcb at finalize@environment%
 }
@@ -1602,7 +1624,7 @@
     \pgfsetfillopacity{\kvtcb at opacitytitle}%
     \pgftext[x=\the\dimexpr\kvtcb at left@rule+\kvtcb at boxsep+\kvtcb at lefttitle\relax,
              y=\the\dimexpr\tcb at height-\kvtcb at top@rule-\kvtcb at boxsep-\kvtcb at toptitle\relax,
-             left,top]{\box\tcb at titlebox}%
+             left,top]{\color at begingroup\color{tcbcoltitle}\box\tcb at titlebox\color at endgroup}%
     \end{pgfscope}%
   \fi\fi%
 }
@@ -1661,7 +1683,7 @@
     \fi%
     \iftcb at hasLower%
       \tcb at box@align{\tcb at lowerbox}%
-      \iftcb at lowervisible\leavevmode\unhbox\tcb at lowerbox%
+      \iftcb at lowervisible\leavevmode\color{tcbcollower}\unhbox\tcb at lowerbox%
       \else%
         \iftcb at lowerignored\else\rule[-\dp\tcb at lowerbox]{\z@}{\the\dimexpr\ht\tcb at lowerbox+\dp\tcb at lowerbox\relax}\fi%
       \fi%
@@ -1803,10 +1825,13 @@
 \long\def\tcbox at inner@hbox#1{%
   \tcbset{breakable at false,sidebyside=false}%
   \tcb at set@@phantom%
+  \colorlet{tcbcol at origin}{.}%
+  \tcb at set@color{tcbcolupper}%
   \sbox\tcb at upperbox{\tcb at embed@tcbox{%
     \csname tcb at parbox@use@\kvtcb at parbox\endcsname%
     \@parboxrestore%
-    \color{tcbcolupper}\kvtcb at fontupper\kvtcb at halignupper\tcb at insert@before at upper#1\tcb at insert@after at upper}}%
+    \tcb at lua@color{tcbcolupper}\kvtcb at fontupper\kvtcb at halignupper\tcb at insert@before at upper#1\tcb at insert@after at upper}}%
+  \tcb at reset@color%
   \tcbdimto\tcb at val@raisebase{\the\dimexpr\dp\tcb at upperbox+\kvtcb at bottom+\kvtcb at boxsep+\kvtcb at bottom@rule at stand+\kvtcb at bbbottom@stand\relax}%
   \tcbdimto\kvtcb at width{\wd\tcb at upperbox+\kvtcb at left@rule+\kvtcb at leftupper+\kvtcb at boxsep*2+\kvtcb at rightupper+\kvtcb at right@rule}%
   \tcb at hasLowerfalse%
@@ -1821,7 +1846,10 @@
   \tcb at set@@phantom%
   \tcb at set@@title%
   \tcb at set@@dimensions%
-  \begin{tcb at savebox}{\tcb at upperbox}{\tcb at w@upper}\color{tcbcolupper}\kvtcb at fontupper\kvtcb at halignupper\tcb at insert@before at upper#1\tcb at insert@after at upper\end{tcb at savebox}%
+  \colorlet{tcbcol at origin}{.}%
+  \tcb at set@color{tcbcolupper}%
+  \begin{tcb at savebox}{\tcb at upperbox}{\tcb at w@upper}\tcb at lua@color{tcbcolupper}\kvtcb at fontupper\kvtcb at halignupper\tcb at insert@before at upper#1\tcb at insert@after at upper\end{tcb at savebox}%
+  \tcb at reset@color%
   \tcb at hasLowerfalse%
   \tcb at draw@color at box%
 }
@@ -2199,7 +2227,8 @@
 \tcbset{%
   initialize at reset/.code={\tcbset{#1}\appto\tcb at reset{\tcbset{#1}}},%
   reset/.code={\tcb at reset},%
-  reset at core/.style={code={%
+  reset at core/.style={%
+    code={%
       \let\tcbtitletext\@empty%
       \tcb at attach@title at code@%
       \let\tcb at lateoptions@hook\@empty%
@@ -2208,6 +2237,7 @@
       \let\tcb at lowerdraw@begin at hook\@empty%
       \let\tcb at lowerdraw@end at hook\@empty%
     },
+    breakable at false,
     width=\linewidth,beforeafter skip balanced=0.5\baselineskip plus 2pt,arc is curved,
     natural height,height plus=0pt,space to lower,valign=top,valign lower=top,
     size=normal,rounded corners,parfillskip restore,



More information about the tex-live-commits mailing list.