summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tcolorbox/tcbtheorems.code.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-02-11 03:01:17 +0000
committerNorbert Preining <norbert@preining.info>2023-02-11 03:01:17 +0000
commit73abb311c03e955ad9f7b7464390a5722b20b915 (patch)
treea8e116777430169c28f315127303eb19626a4d30 /macros/latex/contrib/tcolorbox/tcbtheorems.code.tex
parente10a52ebe817fe7ff0235c066d83f51f39d3e023 (diff)
CTAN sync 202302110301
Diffstat (limited to 'macros/latex/contrib/tcolorbox/tcbtheorems.code.tex')
-rw-r--r--macros/latex/contrib/tcolorbox/tcbtheorems.code.tex49
1 files changed, 35 insertions, 14 deletions
diff --git a/macros/latex/contrib/tcolorbox/tcbtheorems.code.tex b/macros/latex/contrib/tcolorbox/tcbtheorems.code.tex
index dc6b5651e7..7135eaba32 100644
--- a/macros/latex/contrib/tcolorbox/tcbtheorems.code.tex
+++ b/macros/latex/contrib/tcolorbox/tcbtheorems.code.tex
@@ -1,8 +1,8 @@
-%% The LaTeX package tcolorbox - version 5.1.1 (2022/06/24)
+%% The LaTeX package tcolorbox - version 6.0.0 (2023/02/10)
%% tcbtheorems.code.tex: Code for theorems in colorboxes
%%
%% -------------------------------------------------------------------------------------------
-%% Copyright (c) 2006-2022 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
+%% Copyright (c) 2006-2023 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,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{5.1.1}
+\tcb@set@library@version{6.0.0}
\RequirePackage{amsmath}
@@ -147,18 +147,25 @@
}
-\NewDocumentCommand \__tcobox_new_tcbtheorem:w { m O{} m m +m m }
+\NewDocumentCommand \__tcobox_new_tcbtheorem_x:w { m O{} m m +m m }
{
- #1 [auto~counter,#2]{#3}[3][]
+ #1 [auto~counter,#2] {#3} { +O{} +o +m m }
{
#5,
- title = {\__tcobox_theo_title:nnn{#4}{\thetcbcounter}{##2}},
- list~entry = {\protect\numberline{\thetcbcounter}##2},
- nameref = {##2},
- theo@label = {#6}{##3},
+ title = {\__tcobox_theo_title:nnn{#4}{\thetcbcounter}{##3}},
+ IfValueTF = {##2}
+ {
+ list~entry = {\protect\numberline{\thetcbcounter}##2},
+ nameref = {##2},
+ }
+ {
+ list~entry = {\protect\numberline{\thetcbcounter}##3},
+ nameref = {##3},
+ },
+ theo@label = {#6}{##4},
##1
}
- #1 [#2,no~counter,list~inside=]{#3*}[2][]
+ #1 [#2,no~counter,list~inside=] {#3*} { +O{} +m }
{
#5,
title = {\__tcobox_theo_title:nnn{#4}{}{##2}},
@@ -167,15 +174,29 @@
}
-\NewDocumentCommand \newtcbtheorem {}
+\NewDocumentCommand \NewTcbTheorem {}
+ {
+ \__tcobox_new_tcbtheorem_x:w \NewTColorBox
+ }
+\NewCommandCopy\newtcbtheorem\NewTcbTheorem
+
+
+\NewDocumentCommand \RenewTcbTheorem {}
+ {
+ \__tcobox_new_tcbtheorem_x:w \RenewTColorBox
+ }
+\NewCommandCopy\renewtcbtheorem\RenewTcbTheorem
+
+
+\NewDocumentCommand \DeclareTcbTheorem {}
{
- \__tcobox_new_tcbtheorem:w \newtcolorbox
+ \__tcobox_new_tcbtheorem_x:w \DeclareTColorBox
}
-\NewDocumentCommand \renewtcbtheorem {}
+\NewDocumentCommand \ProvideTcbTheorem {}
{
- \__tcobox_new_tcbtheorem:w \renewtcolorbox
+ \__tcobox_new_tcbtheorem_x:w \ProvideTColorBox
}