summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tcolorbox/tcbbreakable.code.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-09-30 03:03:53 +0000
committerNorbert Preining <norbert@preining.info>2020-09-30 03:03:53 +0000
commit36f406d8d1fc994af516d837e6a87c68839cdb2d (patch)
tree64ab03e1fa0a9576ceacca93a7750ddbbd422fc7 /macros/latex/contrib/tcolorbox/tcbbreakable.code.tex
parentd043a18e288914d3c46a1b10af1f30ce2df00588 (diff)
CTAN sync 202009300303
Diffstat (limited to 'macros/latex/contrib/tcolorbox/tcbbreakable.code.tex')
-rw-r--r--macros/latex/contrib/tcolorbox/tcbbreakable.code.tex13
1 files changed, 10 insertions, 3 deletions
diff --git a/macros/latex/contrib/tcolorbox/tcbbreakable.code.tex b/macros/latex/contrib/tcolorbox/tcbbreakable.code.tex
index 2779d615ef..44669727e6 100644
--- a/macros/latex/contrib/tcolorbox/tcbbreakable.code.tex
+++ b/macros/latex/contrib/tcolorbox/tcbbreakable.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.40 (2020/09/25)
+%% The LaTeX package tcolorbox - version 4.41 (2020/09/29)
%% tcbbreakable.code.tex: Code for breakable colorboxes
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{4.40}
+\tcb@set@library@version{4.41}
\RequirePackage{pdfcol}
\pdfcolInitStack{tcb@breakable}
@@ -308,7 +308,14 @@
\def\tcb@height@fill@unbroken@normal{\tcb@height@fill@unbroken{none}}
\def\tcb@height@fill@unbroken@compressed{\tcb@height@fill@unbroken{all}}
-\def\tcb@use@after@lastbox{\bgroup\tcb@after@lastbox\egroup}
+\pdfcolIfStackExists{tcb@breakable}{%
+ \def\tcb@use@after@lastbox{\bgroup\tcb@after@lastbox\egroup}
+}{%
+ \def\tcb@use@after@lastbox{%
+ \everypar=\expandafter{\the\everypar\everypar{}\color{.}}%
+ \bgroup\tcb@after@lastbox\egroup%
+ }%
+}
\def\tcb@drawcolorbox@breakable{%
\tcbdimto\kvtcb@topsep{\kvtcb@topsep}%