diff options
Diffstat (limited to 'macros/latex/contrib/tcolorbox/tcblistingscore.code.tex')
-rw-r--r-- | macros/latex/contrib/tcolorbox/tcblistingscore.code.tex | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/macros/latex/contrib/tcolorbox/tcblistingscore.code.tex b/macros/latex/contrib/tcolorbox/tcblistingscore.code.tex index 28dac54eea..5f91c91f29 100644 --- a/macros/latex/contrib/tcolorbox/tcblistingscore.code.tex +++ b/macros/latex/contrib/tcolorbox/tcblistingscore.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) %% tcblistingscode.code.tex: Auxiliary code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- -%% 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} \tcbuselibrary{pro@cessing} @@ -280,7 +280,7 @@ \ExplSyntaxOn -\NewDocumentCommand \__tcobox_new_tcblisting:w { m +o m o +o +m } +\NewDocumentCommand \__tcobox_new_tcblisting:w { m +O{} >{\TrimSpaces} m o +o +m } { \__tcobox_process_newtcolorbox:nn { #2 }{ #3 } \tl_if_novalue:nTF { #4 } @@ -299,33 +299,39 @@ } \NewDocumentCommand \newtcblisting { } { + \bool_set_true:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_tcblisting:w \newenvironment } \NewDocumentCommand \renewtcblisting { } { + \bool_set_false:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_tcblisting:w \renewenvironment } -\NewDocumentCommand \__tcobox_new_TCBListing:w { m +o m +m +m } +\NewDocumentCommand \__tcobox_new_TCBListing:w { m +O{} >{\TrimSpaces} m +m +m } { \__tcobox_process_newtcolorbox:nn { #2 }{ #3 } #1 { #3 }{ #4 }{ \tcblisting{#5,options@for=#3} }{ \endtcblisting } } \NewDocumentCommand \DeclareTCBListing { } { + \bool_set_false:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_TCBListing:w \DeclareDocumentEnvironment } \NewDocumentCommand \NewTCBListing { } { + \bool_set_true:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_TCBListing:w \NewDocumentEnvironment } \NewDocumentCommand \RenewTCBListing { } { + \bool_set_false:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_TCBListing:w \RenewDocumentEnvironment } \NewDocumentCommand \ProvideTCBListing { } { + \bool_set_true:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_TCBListing:w \ProvideDocumentEnvironment } @@ -347,17 +353,19 @@ } } } -\NewDocumentCommand \__tcobox_new_tcbinputlisting_i:w { m +o m } +\NewDocumentCommand \__tcobox_new_tcbinputlisting_i:w { m +O{} m } { \__tcobox_set_backslash_removed:Nn \l_tmpa_tl { #3 } \exp_args:NNnV \__tcobox_new_tcbinputlisting_ii:w #1 {#2} \l_tmpa_tl } \NewDocumentCommand \newtcbinputlisting { } { + \bool_set_true:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_tcbinputlisting_i:w \newcommand } \NewDocumentCommand \renewtcbinputlisting { } { + \bool_set_false:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_tcbinputlisting_i:w \renewcommand } @@ -374,18 +382,22 @@ } \NewDocumentCommand \DeclareTCBInputListing { } { + \bool_set_false:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_TCBInputListing:w \DeclareDocumentCommand } \NewDocumentCommand \NewTCBInputListing { } { + \bool_set_true:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_TCBInputListing:w \NewDocumentCommand } \NewDocumentCommand \RenewTCBInputListing { } { + \bool_set_false:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_TCBInputListing:w \RewewDocumentCommand } \NewDocumentCommand \ProvideTCBInputListing { } { + \bool_set_true:N \l__tcobox_prevent_init_overwrite_bool \__tcobox_new_TCBInputListing:w \ProvideDocumentCommand } |