diff options
Diffstat (limited to 'macros/latex/contrib/tcolorbox/tcbhooks.code.tex')
-rw-r--r-- | macros/latex/contrib/tcolorbox/tcbhooks.code.tex | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/macros/latex/contrib/tcolorbox/tcbhooks.code.tex b/macros/latex/contrib/tcolorbox/tcbhooks.code.tex index bdf0a6c9f1..b3edf95636 100644 --- a/macros/latex/contrib/tcolorbox/tcbhooks.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbhooks.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbhooks.code.tex: Code for adding hooks %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> +%% Copyright (c) 2006-2024 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{6.1.0} +\tcb@set@library@version{6.2.0} \tcbset{% before upper app/.code={\appto\kvtcb@before@upper{#1}},% @@ -136,3 +136,36 @@ listing options pre/.code={\preto\kvtcb@listingoptions{#1,}}, } +\ExplSyntaxOn +\tcbset { + __environment-app / .style~n~args = { 3 } + { + before~#1~app = { \begin{#2} #3 }, + after~#1~pre = { \end{#2} } + }, + environment~upper~app / .value~required, + environment~lower~app / .value~required, + environment~title~app / .value~required, + environment~upper~app / .style = { __environment-app = {upper}{#1}{ } }, + environment~lower~app / .style = { __environment-app = {lower}{#1}{ } }, + environment~title~app / .style = { __environment-app = {title}{#1}{ } }, + environment~upper~args~app / .style~n~args = { 2 }{ __environment-app = {upper}{#1}{#2} }, + environment~lower~args~app / .style~n~args = { 2 }{ __environment-app = {lower}{#1}{#2} }, + environment~title~args~app / .style~n~args = { 2 }{ __environment-app = {title}{#1}{#2} }, + __environment-pre / .style~n~args = { 3 } + { + before~#1~pre = { \begin{#2} #3 }, + after~#1~app = { \end{#2} } + }, + environment~upper~pre / .value~required, + environment~lower~pre / .value~required, + environment~title~pre / .value~required, + environment~upper~pre / .style = { __environment-pre = {upper}{#1}{ } }, + environment~lower~pre / .style = { __environment-pre = {lower}{#1}{ } }, + environment~title~pre / .style = { __environment-pre = {title}{#1}{ } }, + environment~upper~args~pre / .style~n~args = { 2 }{ __environment-pre = {upper}{#1}{#2} }, + environment~lower~args~pre / .style~n~args = { 2 }{ __environment-pre = {lower}{#1}{#2} }, + environment~title~args~pre / .style~n~args = { 2 }{ __environment-pre = {title}{#1}{#2} }, +} +\ExplSyntaxOff + |