diff --git a/README.md b/README.md index 8700b6c..27f6edf 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# The LaTeX package tcolorbox - version 6.1.0 (2023/09/26) +# The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) -> Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +> Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm > This work may be distributed and/or modified under the > conditions of the LaTeX Project Public License, either version 1.3 diff --git a/doc/latex/tcolorbox/CHANGES.md b/doc/latex/tcolorbox/CHANGES.md index cd0d10c..5aaa4f6 100644 --- a/doc/latex/tcolorbox/CHANGES.md +++ b/doc/latex/tcolorbox/CHANGES.md @@ -58,6 +58,7 @@ and this project adheres to - Updated documentation and warnings for the interaction between `saveto` and `savelowerto` (issue #249) - Improved some `\sarg` examples in the documentation (issue #256) +- Small typos in the documentation (issue #261) - Recording macros rewritten in expl3 code (part of issue #255) - Usage of expl3 scratch variables like `\l_tmpa_tl` replaced by package variables like `\l__tcobox_tmpa_tl` - Library `documentation`: @@ -67,8 +68,7 @@ and this project adheres to Expl3 functions are used as drop-in replacements (part of issue #255) - Libraries `listings`, `listingsutf8`, and `minted`: package loading of `pdftexcmds` and `shellesc` removed (part of issue #255) - -### Deprecated +- Needed LaTeX version updated to 2021-11-15 ### Removed - Loading of the `xparse` library dropped inside the `documentation` library since all @@ -76,8 +76,7 @@ and this project adheres to ### Fixed - Several documentation typos and minor improvements (PR/issue #251 and PR/issue #252) - -### Security +- Extra top space if `parbox=false` and tcolorbox starts with a list (issue #262) diff --git a/doc/latex/tcolorbox/README.md b/doc/latex/tcolorbox/README.md index 8700b6c..27f6edf 100644 --- a/doc/latex/tcolorbox/README.md +++ b/doc/latex/tcolorbox/README.md @@ -1,7 +1,7 @@ -# The LaTeX package tcolorbox - version 6.1.0 (2023/09/26) +# The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) -> Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +> Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm > This work may be distributed and/or modified under the > conditions of the LaTeX Project Public License, either version 1.3 diff --git a/doc/latex/tcolorbox/tcolorbox-example-poster.pdf b/doc/latex/tcolorbox/tcolorbox-example-poster.pdf index cd31a6e..e39ddaa 100644 Binary files a/doc/latex/tcolorbox/tcolorbox-example-poster.pdf and b/doc/latex/tcolorbox/tcolorbox-example-poster.pdf differ diff --git a/doc/latex/tcolorbox/tcolorbox-example-poster.tex b/doc/latex/tcolorbox/tcolorbox-example-poster.tex index 9c80fc8..ffa2911 100644 --- a/doc/latex/tcolorbox/tcolorbox-example-poster.tex +++ b/doc/latex/tcolorbox/tcolorbox-example-poster.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) %% tcolorbox-example-poster.tex: a poster example for tcolorbox %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the diff --git a/doc/latex/tcolorbox/tcolorbox-example.pdf b/doc/latex/tcolorbox/tcolorbox-example.pdf index a2ebd3e..809b35a 100644 Binary files a/doc/latex/tcolorbox/tcolorbox-example.pdf and b/doc/latex/tcolorbox/tcolorbox-example.pdf differ diff --git a/doc/latex/tcolorbox/tcolorbox-example.tex b/doc/latex/tcolorbox/tcolorbox-example.tex index c814c1e..1adaa24 100644 --- a/doc/latex/tcolorbox/tcolorbox-example.tex +++ b/doc/latex/tcolorbox/tcolorbox-example.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre1 (2023/10/25) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcolorbox-example.tex: an example for tcolorbox %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the diff --git a/doc/latex/tcolorbox/tcolorbox-tutorial-poster.pdf b/doc/latex/tcolorbox/tcolorbox-tutorial-poster.pdf index b9398ca..eb23961 100644 Binary files a/doc/latex/tcolorbox/tcolorbox-tutorial-poster.pdf and b/doc/latex/tcolorbox/tcolorbox-tutorial-poster.pdf differ diff --git a/doc/latex/tcolorbox/tcolorbox-tutorial-poster.tex b/doc/latex/tcolorbox/tcolorbox-tutorial-poster.tex index cb97de9..ae550c5 100644 --- a/doc/latex/tcolorbox/tcolorbox-tutorial-poster.tex +++ b/doc/latex/tcolorbox/tcolorbox-tutorial-poster.tex @@ -1,9 +1,9 @@ % \LaTeX-Main\ -%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcolorbox-tutorial-poster.tex: a tutorial for poster creation with tcolorbox %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the diff --git a/doc/latex/tcolorbox/tcolorbox.doc.bib b/doc/latex/tcolorbox/tcolorbox.doc.bib index d67c8a3..be1c60b 100644 --- a/doc/latex/tcolorbox/tcolorbox.doc.bib +++ b/doc/latex/tcolorbox/tcolorbox.doc.bib @@ -2,8 +2,8 @@ @manual{hoffmann:listings author = {Carsten Heinz and Brooks Moses and Jobst Hoffmann}, title = {The Listings Package}, url = {https://mirror.ctan.org/macros/latex/contrib/listings/listings.pdf}, - version = {1.8d}, - date = {2020-03-24}, + version = {1.9}, + date = {2023-02-27}, language = {english} } @@ -11,7 +11,7 @@ @manual{schoepf:verbatim author = {Rainer Sch{\"o}pf and Bernd Raichle and Chris Rowley}, title = {A New Implementation of {\LaTeX}'s verbatim and verbatim* Environments}, url = {https://mirror.ctan.org/macros/latex/required/tools/verbatim.pdf}, - date = {2001-03-12}, + date = {2023-11-06}, } @techreport{sturm:mathe1, @@ -72,9 +72,9 @@ @manual{tantau:tikz_and_pgf @manual{tantau:beamer, author = {Till Tantau and Joseph Wright and Vedran Mileti\'{c}}, title = {The Beamer Class}, - subtitle = {User Guide for version 3.68}, + subtitle = {User Guide for version 3.71}, url = {https://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}, - date = {2022-09-17}, + date = {2024-01-06}, } @@ -82,7 +82,7 @@ @manual{carlisle:ltxdoc author = {David Carlisle}, title = {The file ltxdoc.dtx for use with \LaTeXe}, url = {https://mirror.ctan.org/macros/latex/base/ltxdoc.pdf}, - date = {2019-09-16} + date = {2023-03-28} } @@ -90,15 +90,15 @@ @manual{carlisle:tabularx author = {David Carlisle}, title = {The tabularx package}, url = {https://mirror.ctan.org/macros/latex/required/tools/tabularx.pdf}, - date = {2020-01-15} + date = {2023-07-08} } -@manual{mittelbach:2011a, +@manual{mittelbach:doc, author = {Frank Mittelbach}, title = {The doc and shortvrb Packages}, url = {https://mirror.ctan.org/macros/latex/base/doc.dtx}, - date = {2011-06-30} + date = {2022-11-13} } @@ -106,18 +106,10 @@ @manual{mittelbach:multicol author = {Frank Mittelbach}, title = {An environment for multicolumn output}, url = {https://mirror.ctan.org/macros/latex/required/tools/multicol.pdf}, - date = {2022-10-31}, + date = {2023-11-21}, } -@manual{breitenlohner:1998a, - author = {Peter Breitenlohner}, - title = {The $\varepsilon$-\TeX\ manual}, - version = {2}, - url = {https://mirrors.ctan.org/systems/doc/etex/etex_man.pdf}, - date = {1998-02}, -} - @manual{oberdiek:listingsutf8, author = {Heiko Oberdiek}, title = {The listingsutf8 package}, @@ -155,13 +147,13 @@ @manual{poore:minted title = {The minted package}, subtitle = {Highlighted source code in \LaTeX}, url = {https://mirror.ctan.org/macros/latex/contrib/minted/minted.pdf}, - date = {2022-12-12}, + date = {2023-12-18}, } @online{pygments:web, title = {Pygments}, subtitle = {Python syntax highlighter}, - date = {2023}, + date = {2024}, url = {https://pygments.org/}, } @@ -169,7 +161,7 @@ @manual{latexproject:xparse author = {The \LaTeX3 Project}, title = {The xparse Package}, url = {https://mirror.ctan.org/macros/latex/contrib/l3packages/xparse.pdf}, - date = {2023-02-02}, + date = {2023-10-10}, } @@ -185,7 +177,7 @@ @manual{rahtz:hyperref author = {Sebastian Rahtz and Heiko Oberdiek}, title = {Hypertext marks in \LaTeX: a manual for hyperref}, url = {https://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf}, - date = {2023-02-07}, + date = {2023-11-26}, language = {english} } @@ -194,7 +186,7 @@ @manual{oberdiek:bookmark author = {Heiko Oberdiek}, title = {The bookmark package}, url = {https://mirrors.ctan.org/macros/latex/contrib/bookmark/bookmark.pdf}, - date = {2020-11-06}, + date = {2023-12-10}, language = {english} } @@ -203,7 +195,7 @@ @manual{oberdiek:zref author = {Heiko Oberdiek}, title = {The zref package}, url = {https://mirrors.ctan.org/macros/latex/contrib/zref/zref.pdf}, - date = {2022-04-07}, + date = {2023-09-14}, language = {english} } @@ -211,9 +203,9 @@ @manual{oberdiek:zref @manual{barros:zref-clever, author = {Gustavo Barros}, title = {The zref-clever package}, - url = {https://mirrors.ctan.org/macros/latex/contrib/zref-clever/zref-clever.pdf}, - date = {2023-01-03}, - language = {english} + url = {https://mirrors.ctan.org/macros/latex/contrib/zref-clever/zref-clever-doc.pdf}, + date = {2023-11-14}, + language = {english} } diff --git a/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex b/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex index a287d0f..e20936d 100644 --- a/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex +++ b/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex @@ -4129,7 +4129,7 @@ \subsection{Capture Mode}\label{subsec:capture} \clearpage \subsection{Text Characteristics} -\begin{docTcbKey}[][doc updated=2015-10-14]{parbox}{\colOpt{=true\textbar false}}{default |true|, initially |true|} +\begin{docTcbKey}[][doc updated=2024-01-10]{parbox}{\colOpt{=true\textbar false}}{default |true|, initially |true|} The text inside a |tcolorbox| is formatted using a \LaTeX\ |minipage| if the box is unbreakable. If breakable, the box tries a mimicry of a |minipage|. In a |minipage| or |parbox|, paragraphs are formatted slightly different diff --git a/doc/latex/tcolorbox/tcolorbox.doc.documentation.tex b/doc/latex/tcolorbox/tcolorbox.doc.documentation.tex index 42e863c..9934cd5 100644 --- a/doc/latex/tcolorbox/tcolorbox.doc.documentation.tex +++ b/doc/latex/tcolorbox/tcolorbox.doc.documentation.tex @@ -448,7 +448,7 @@ \subsection{Macros of the Library} \end{docCommand} \begin{docCommand}{meta}{\marg{text}} - Macro from |doc| \cite{mittelbach:2011a} to typeset a meta \meta{text}. + Macro from |doc| \cite{mittelbach:doc} to typeset a meta \meta{text}. The library overwrites the original macro. \begin{dispExample} This is a \meta{text}. diff --git a/doc/latex/tcolorbox/tcolorbox.doc.external.tex b/doc/latex/tcolorbox/tcolorbox.doc.external.tex index 7b0830e..b7a10c2 100644 --- a/doc/latex/tcolorbox/tcolorbox.doc.external.tex +++ b/doc/latex/tcolorbox/tcolorbox.doc.external.tex @@ -368,7 +368,7 @@ \subsection{Customization}\label{subsec:external_custom} initially |true|} If set to |true|, the |\begin| and |\end| code of \refKey{/tcb/external/environment} is appended with a percent sign. For verbatim environments, this option -typically has to be se to |false|. +typically has to be set to |false|. \end{extTcbKey} diff --git a/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex b/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex index 1f5e137..14f9e7b 100644 --- a/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex +++ b/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex @@ -392,7 +392,7 @@ \subsection{Option Keys of the Library}\label{subsec:fit} \begin{tcolorbox}[fit basedim=7pt, fontupper=\normalsize, fit fontsize macros] -The relative relative font size macros +The relative font size macros are also usable without the \textit{fit} algorithm.\par {\Huge Adapted Huge} --- @@ -659,7 +659,7 @@ \subsection{Option Keys of the Library}\label{subsec:fit} switched off (including the ones for the finally used box). \item\docValue{on}: All warnings for all auxiliary boxes are displayed. \item\docValue{final}: Only warnings for the finally used box are displayed. - Note that an additional box has to be constructed for theses messages. + Note that an additional box has to be constructed for these messages. \end{itemize} \end{docTcbKey} diff --git a/doc/latex/tcolorbox/tcolorbox.doc.raster.tex b/doc/latex/tcolorbox/tcolorbox.doc.raster.tex index 9f6266f..59d89a7 100644 --- a/doc/latex/tcolorbox/tcolorbox.doc.raster.tex +++ b/doc/latex/tcolorbox/tcolorbox.doc.raster.tex @@ -7,12 +7,6 @@ \section{Library \mylib{raster}}\label{sec:raster}% \begin{dispListing} \tcbuselibrary{raster} \end{dispListing} -%This also loads the package |xparse| \cite{latexproject:xparse}. - -%The purpose of this library is to give comfortable access to the -%powerful document command production with |xparse| for |tcolorbox|. -%See the |xparse| package documentation \cite{latexproject:xparse} -%for details about the argument \meta{specification} used in this section. \subsection{Concept of Rasters}\label{subsec:raster_overview} diff --git a/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty b/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty index 5aaf1b5..3eabd88 100644 --- a/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty +++ b/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty @@ -12,7 +12,7 @@ \RequirePackage[english]{babel} \RequirePackage{lmodern,parskip,array,ifthen,calc} \RequirePackage{amsmath,amssymb} -\RequirePackage[svgnames,table,hyperref]{xcolor} +\RequirePackage[svgnames,table]{xcolor} \RequirePackage{tikz} \usetikzlibrary{shadings,shadows} @@ -205,6 +205,7 @@ meta,marg, oarg, refCom,refEnv,refKey, + sarg, tcbmakedocSubKey,tcbdocmarginnote,tcbdocnew,tcbdocupdated, % skins tcbincludegraphics,tcbincludepdf,pdfpages,imagepage,imagepath,imagename, diff --git a/doc/latex/tcolorbox/tcolorbox.doc.technical.tex b/doc/latex/tcolorbox/tcolorbox.doc.technical.tex index 65a1d58..1e6960f 100644 --- a/doc/latex/tcolorbox/tcolorbox.doc.technical.tex +++ b/doc/latex/tcolorbox/tcolorbox.doc.technical.tex @@ -767,4 +767,4 @@ \subsection{Useful Properties}\label{subsec:tech_properties} \begin{tcolorbox}Upper part\tcblower Lower part\end{tcolorbox} \end{tcbraster} \end{dispExample} -\end{docCommand} \ No newline at end of file +\end{docCommand} diff --git a/doc/latex/tcolorbox/tcolorbox.pdf b/doc/latex/tcolorbox/tcolorbox.pdf index f9e2366..a749939 100644 Binary files a/doc/latex/tcolorbox/tcolorbox.pdf and b/doc/latex/tcolorbox/tcolorbox.pdf differ diff --git a/doc/latex/tcolorbox/tcolorbox.tex b/doc/latex/tcolorbox/tcolorbox.tex index be4bd0a..b7c1742 100644 --- a/doc/latex/tcolorbox/tcolorbox.tex +++ b/doc/latex/tcolorbox/tcolorbox.tex @@ -1,9 +1,9 @@ % \LaTeX-Main\ -%% The LaTeX package tcolorbox - version 6.1.0 (2023/09/26) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcolorbox.tex: Manual %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -51,8 +51,8 @@ \setlength{\bibitemsep}{\smallskipamount} \addbibresource{tcolorbox.doc.bib} -\def\version{6.1.0}% -\def\datum{2023/09/26}% +\def\version{6.2.0}% +\def\datum{2024/01/10}% \makeindex \hypersetup{ @@ -65,12 +65,10 @@ \usepackage{pgfplots} \pgfplotsset{compat=1.17} -\nocite{breitenlohner:1998a} - %\geometry{showframe} %\tcbset{draftmode} \tcbset{/tcb/external/-}% for final run -%\includeonly{tcolorbox.doc.coreoptions} +%\includeonly{tcolorbox.doc.initoptions,tcolorbox.doc.index} %\hypersetup{colorlinks=false} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/tex/latex/tcolorbox/tcbbreakable.code.tex b/tex/latex/tcolorbox/tcbbreakable.code.tex index 58283dd..90ece8e 100644 --- a/tex/latex/tcolorbox/tcbbreakable.code.tex +++ b/tex/latex/tcolorbox/tcbbreakable.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbbreakable.code.tex: Code for breakable colorboxes %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \RequirePackage{pdfcol} \pdfcolInitStack{tcb@breakable} diff --git a/tex/latex/tcolorbox/tcbdocumentation.code.tex b/tex/latex/tcolorbox/tcbdocumentation.code.tex index 5cc55de..3eff974 100644 --- a/tex/latex/tcolorbox/tcbdocumentation.code.tex +++ b/tex/latex/tcolorbox/tcbdocumentation.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbdocumentation.code.tex: Code for LaTeX documentations %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \tcbuselibrary{listings,skins,external,raster} @@ -465,11 +465,11 @@ { \__tcobox_print_command: \__tcobox_index_command: - \seq_if_in:NVF \g__tcobox_label_seq \kvtcb@doc@label + \seq_if_in:NoF \g__tcobox_label_seq { \kvtcb@doc@label } { \protected@edef\@currentlabel{\noexpand\tcb@cs{\kvtcb@doc@name}} \label{com:\kvtcb@doc@label} - \seq_gput_left:NV \g__tcobox_label_seq \kvtcb@doc@label + \seq_gput_right:No \g__tcobox_label_seq { \kvtcb@doc@label } } {\ttfamily\kvtcb@doc@parameter} \tcb@doc@do@description @@ -527,11 +527,11 @@ { \strut\cs{begin}\brackets{\__tcobox_print_environment:} \__tcobox_index_environment: - \seq_if_in:NVF \g__tcobox_label_seq \kvtcb@doc@label + \seq_if_in:NoF \g__tcobox_label_seq { \kvtcb@doc@label } { \protected@edef\@currentlabel{\kvtcb@doc@name} \label{env:\kvtcb@doc@label} - \seq_gput_left:NV \g__tcobox_label_seq \kvtcb@doc@label + \seq_gput_right:No \g__tcobox_label_seq { \kvtcb@doc@label } } {\ttfamily\kvtcb@doc@parameter}\par \strut{\ttfamily\nobreakspace\nobreakspace}\meta{\kvtcb@text@envcontent}\par @@ -605,20 +605,20 @@ \__tcobox_index_key: \tl_if_empty:NTF \kvtcb@doc@keypath { - \seq_if_in:NVF \g__tcobox_label_seq \kvtcb@doc@label + \seq_if_in:NoF \g__tcobox_label_seq { \kvtcb@doc@label } { \protected@edef\@currentlabel{\kvtcb@doc@name} \label{key:\kvtcb@doc@label} - \seq_gput_left:NV \g__tcobox_label_seq \kvtcb@doc@label + \seq_gput_right:No \g__tcobox_label_seq { \kvtcb@doc@label } } } { - \tl_set:Nx \l__tcobox_tmpa_tl {\kvtcb@doc@keyprefix\kvtcb@doc@keypath/\kvtcb@doc@label} - \seq_if_in:NVF \g__tcobox_label_seq \l__tcobox_tmpa_tl + \tl_set:Ne \l__tcobox_tmpa_tl {\kvtcb@doc@keyprefix\kvtcb@doc@keypath/\kvtcb@doc@label} + \seq_if_in:NoF \g__tcobox_label_seq { \l__tcobox_tmpa_tl } { \protected@edef\@currentlabel{\kvtcb@doc@keyprefix\kvtcb@doc@keypath/\kvtcb@doc@name} \label{key:\kvtcb@doc@keyprefix\kvtcb@doc@keypath/\kvtcb@doc@label} - \seq_gput_left:NV \g__tcobox_label_seq \l__tcobox_tmpa_tl + \seq_gput_right:No \g__tcobox_label_seq { \l__tcobox_tmpa_tl } } } {\ttfamily\kvtcb@doc@parameter} @@ -732,11 +732,11 @@ { \colFade{\tcb@cs{path~...}}~\__tcobox_print_path: \__tcobox_index_path: - \seq_if_in:NVF \g__tcobox_label_seq \kvtcb@doc@label + \seq_if_in:NoF \g__tcobox_label_seq { \kvtcb@doc@label } { \protected@edef\@currentlabel{\kvtcb@doc@name} \label{path:\kvtcb@doc@label} - \seq_gput_left:NV \g__tcobox_label_seq \kvtcb@doc@label + \seq_gput_right:No \g__tcobox_label_seq { \kvtcb@doc@label } } {\ttfamily\kvtcb@doc@parameter{}~\colFade{...;}} \tcb@doc@do@description diff --git a/tex/latex/tcolorbox/tcbexternal.code.tex b/tex/latex/tcolorbox/tcbexternal.code.tex index a595cf6..0bfa994 100644 --- a/tex/latex/tcolorbox/tcbexternal.code.tex +++ b/tex/latex/tcolorbox/tcbexternal.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbexternal.code.tex: Code for externalization %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \tcbuselibrary{pro@cessing} diff --git a/tex/latex/tcolorbox/tcbfitting.code.tex b/tex/latex/tcolorbox/tcbfitting.code.tex index a4a69ee..0e34e15 100644 --- a/tex/latex/tcolorbox/tcbfitting.code.tex +++ b/tex/latex/tcolorbox/tcbfitting.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbfitting.code.tex: Code for fit boxes %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% 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.2.0pre5} +\tcb@set@library@version{6.2.0} \newdimen\tcbfitdim \newdimen\tcb@lowerfitdim diff --git a/tex/latex/tcolorbox/tcbhooks.code.tex b/tex/latex/tcolorbox/tcbhooks.code.tex index 412d8a5..b3edf95 100644 --- a/tex/latex/tcolorbox/tcbhooks.code.tex +++ b/tex/latex/tcolorbox/tcbhooks.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% 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 +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% 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.2.0pre5} +\tcb@set@library@version{6.2.0} \tcbset{% before upper app/.code={\appto\kvtcb@before@upper{#1}},% diff --git a/tex/latex/tcolorbox/tcblistings.code.tex b/tex/latex/tcolorbox/tcblistings.code.tex index 8cfd1e4..195076e 100644 --- a/tex/latex/tcolorbox/tcblistings.code.tex +++ b/tex/latex/tcolorbox/tcblistings.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcblistings.code.tex: Code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% 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.2.0pre5} +\tcb@set@library@version{6.2.0} \RequirePackage{listings}[2007/02/22] diff --git a/tex/latex/tcolorbox/tcblistingscore.code.tex b/tex/latex/tcolorbox/tcblistingscore.code.tex index 3378c94..48241a9 100644 --- a/tex/latex/tcolorbox/tcblistingscore.code.tex +++ b/tex/latex/tcolorbox/tcblistingscore.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcblistingscode.code.tex: Auxiliary code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% 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.2.0pre5} +\tcb@set@library@version{6.2.0} \tcbuselibrary{pro@cessing} diff --git a/tex/latex/tcolorbox/tcblistingsutf8.code.tex b/tex/latex/tcolorbox/tcblistingsutf8.code.tex index 61e19df..0c9b2b7 100644 --- a/tex/latex/tcolorbox/tcblistingsutf8.code.tex +++ b/tex/latex/tcolorbox/tcblistingsutf8.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcblistingsutf8.code.tex: Code for colorboxes with listings in UTF-8 %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \tcbuselibrary{listings} diff --git a/tex/latex/tcolorbox/tcbmagazine.code.tex b/tex/latex/tcolorbox/tcbmagazine.code.tex index a6d512d..81180a8 100644 --- a/tex/latex/tcolorbox/tcbmagazine.code.tex +++ b/tex/latex/tcolorbox/tcbmagazine.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbmagazine.code.tex: Code for box sets and magazine styles %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \tcbuselibrary{breakable} diff --git a/tex/latex/tcolorbox/tcbminted.code.tex b/tex/latex/tcolorbox/tcbminted.code.tex index f227afe..cae9e8d 100644 --- a/tex/latex/tcolorbox/tcbminted.code.tex +++ b/tex/latex/tcolorbox/tcbminted.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbminted.code.tex: Code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% 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.2.0pre5} +\tcb@set@library@version{6.2.0} \RequirePackage{minted}[2021/12/24] diff --git a/tex/latex/tcolorbox/tcbposter.code.tex b/tex/latex/tcolorbox/tcbposter.code.tex index d74bc8d..49abfc6 100644 --- a/tex/latex/tcolorbox/tcbposter.code.tex +++ b/tex/latex/tcolorbox/tcbposter.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbposter.code.tex: Code for posters %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \tcbuselibrary{breakable,magazine,skins,fitting} diff --git a/tex/latex/tcolorbox/tcbprocessing.code.tex b/tex/latex/tcolorbox/tcbprocessing.code.tex index dcf78a4..ce0ae43 100644 --- a/tex/latex/tcolorbox/tcbprocessing.code.tex +++ b/tex/latex/tcolorbox/tcbprocessing.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbprocessing.code.tex: Code for conditional processing %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \ExplSyntaxOn diff --git a/tex/latex/tcolorbox/tcbraster.code.tex b/tex/latex/tcolorbox/tcbraster.code.tex index 6095684..3551030 100644 --- a/tex/latex/tcolorbox/tcbraster.code.tex +++ b/tex/latex/tcolorbox/tcbraster.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \newcounter{tcbrastercolumn} \newcounter{tcbrasterrow} diff --git a/tex/latex/tcolorbox/tcbskins.code.tex b/tex/latex/tcolorbox/tcbskins.code.tex index 7a82074..3fbad78 100644 --- a/tex/latex/tcolorbox/tcbskins.code.tex +++ b/tex/latex/tcolorbox/tcbskins.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbskins.code.tex: Code for colorboxes with different skins %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \RequirePackage{tikz}[2010/10/13] \RequirePackage{tikzfill.image} diff --git a/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex b/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex index 05f0c81..551971a 100644 --- a/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex +++ b/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \tcbuselibrary{skins} diff --git a/tex/latex/tcolorbox/tcbtheorems.code.tex b/tex/latex/tcolorbox/tcbtheorems.code.tex index d8724bc..f53eda7 100644 --- a/tex/latex/tcolorbox/tcbtheorems.code.tex +++ b/tex/latex/tcolorbox/tcbtheorems.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbtheorems.code.tex: Code for theorems in colorboxes %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% 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.2.0pre5} +\tcb@set@library@version{6.2.0} \RequirePackage{amsmath} diff --git a/tex/latex/tcolorbox/tcbvignette.code.tex b/tex/latex/tcolorbox/tcbvignette.code.tex index d488b5b..e177bb3 100644 --- a/tex/latex/tcolorbox/tcbvignette.code.tex +++ b/tex/latex/tcolorbox/tcbvignette.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbvignette.code.tex: Code for ornamental frames %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \tcbuselibrary{skins} diff --git a/tex/latex/tcolorbox/tcbxparse.code.tex b/tex/latex/tcolorbox/tcbxparse.code.tex index 2e7ea97..cf60ef0 100644 --- a/tex/latex/tcolorbox/tcbxparse.code.tex +++ b/tex/latex/tcolorbox/tcbxparse.code.tex @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcbxparse.code.tex: Code for xparse features %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -18,6 +18,6 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{6.2.0pre5} +\tcb@set@library@version{6.2.0} \RequirePackage{xparse}[2013/12/31] diff --git a/tex/latex/tcolorbox/tcolorbox.sty b/tex/latex/tcolorbox/tcolorbox.sty index dce2504..be2dc7e 100644 --- a/tex/latex/tcolorbox/tcolorbox.sty +++ b/tex/latex/tcolorbox/tcolorbox.sty @@ -1,8 +1,8 @@ -%% The LaTeX package tcolorbox - version 6.2.0pre5 (2023/12/08) +%% The LaTeX package tcolorbox - version 6.2.0 (2024/01/10) %% tcolorbox.sty: Text color boxes %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2006-2023 by Prof. Dr. Dr. Thomas F. Sturm +%% Copyright (c) 2006-2024 by Prof. Dr. Dr. Thomas F. Sturm %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -17,9 +17,9 @@ %% %% This work consists of all files listed in README %% -\NeedsTeXFormat{LaTeX2e}[2020/10/01] -\ProvidesPackage{tcolorbox}[2023/12/08 version 6.2.0pre5 text color boxes] -\def\tcb@version{6.2.0pre5} +\NeedsTeXFormat{LaTeX2e}[2021-11-15] +\ProvidesPackage{tcolorbox}[2024/01/10 version 6.2.0 text color boxes] +\def\tcb@version{6.2.0} \RequirePackage{pgf}[2008/01/15] \RequirePackage{verbatim}[2003/08/22] @@ -901,6 +901,11 @@ wrap@environment/.is if=tcb@wrap@environment, } + +\def\kvtcb@beforebox{} +\def\kvtcb@afterbox{} + + \ExplSyntaxOn \tcbset @@ -997,26 +1002,39 @@ IfBooleanT/.code~n~args={2}{\IfBooleanT{#1}{\pgfkeysalso{#2}}}, IfBooleanF/.code~n~args={2}{\IfBooleanF{#1}{\pgfkeysalso{#2}}}, } -\ExplSyntaxOff - -\def\kvtcb@beforebox{} -\def\kvtcb@afterbox{} \IfFormatAtLeastTF{2023-06-01} { - \def\tcb@set@parbox@indent@{% - \noindent% - \let\tcb@set@parbox@indent\@empty% + \def\tcb@set@parbox@indent@{ + \exp_args:Nne \hook_gput_next_code:nn {para/begin} + { \__tcobox_set_parbox_indent:n { \thetcolorboxnumber } } + \let\tcb@set@parbox@indent\@empty } } { % Note: To be removed in future - \def\tcb@set@parbox@indent@{% - \vspace{-\parskip}\noindent% - \let\tcb@set@parbox@indent\@empty% + \def\tcb@set@parbox@indent@{ + \vspace{-\parskip} + \noindent + \let\tcb@set@parbox@indent\@empty } } +\cs_new_protected:Npn \__tcobox_set_parbox_indent:n #1 + { + \bool_lazy_and:nnT + % if not inside a nested tcolorbox + { \int_compare_p:nNn { #1 } = { \thetcolorboxnumber } } + % and if inside a "tcb@savebox" env (upper or lower part is non-empty), + % hence not at the time of using saved \tcb@upperbox or \tcb@lowerbox + { \cs_if_exist_p:N \tcbbreak } + { + \OmitIndent + } + } + +\ExplSyntaxOff + \def\tcb@parbox@true@indent{}% \def\tcb@parbox@false@indent{% \preto\kvtcb@before@title{\tcb@set@parbox@indent}% @@ -1508,7 +1526,7 @@ \fp_set:Nn \l__tcobox_tmpa_fp { \tcb@space+\tcbheightspace } \fp_compare:nTF { \l__tcobox_tmpa_fp < 0 } { - \fp_zero_new:N \l__tcobox_tmpa_fp + \fp_zero:N \l__tcobox_tmpa_fp } { \fp_compare:nT { \l__tcobox_tmpa_fp > \tcb@height } @@ -1517,7 +1535,7 @@ } } \tcbdimto\tcb@space { \fp_to_dim:n { trunc(\l__tcobox_tmpa_fp,2) } } - \use:x { \exp_not:N\tcb@savespace{\thetcolorboxnumber}{\tcb@space} } + \use:e { \exp_not:N\tcb@savespace{\thetcolorboxnumber}{\tcb@space} } \tcbdimto\tcb@height@upper{\ht\tcb@upperbox+\dp\tcb@upperbox+\tcbheightspace} \let\tcbheightspace\tcb@zpt \iftcb@lowerspace @@ -2298,7 +2316,7 @@ { \tl_set:Nn #1 { #2 } \tl_trim_spaces:N #1 - \tl_set:Nx #1 { \exp_last_unbraced:NV \cs_to_str:N #1 } + \tl_set:Ne #1 { \exp_last_unbraced:NV \cs_to_str:N #1 } } @@ -2535,9 +2553,8 @@ \ifnum\c@tocdepth<1\relax \tcb@warning{'tocdepth'~value~lower~than~1~for~'tcblistof'} \fi - \tl_set:Nx \l__tcobox_tmpa_tl {\tl_trim_spaces:n{#1}} - \tl_set:Nx \l__tcobox_tmpb_tl {\str_range:Nnn \l__tcobox_tmpa_tl {2}{8}} - \str_if_eq:VnT \l__tcobox_tmpb_tl { chapter } + \tl_set:Ne \l__tcobox_tmpa_tl {\tl_trim_spaces:n{#1}} + \str_if_eq:eeT { \str_range:Nnn \l__tcobox_tmpa_tl {2}{8} } { chapter } { \if@twocolumn \@restonecoltrue\onecolumn @@ -2545,8 +2562,7 @@ \@restonecolfalse \fi } - \tl_set:Nx \l__tcobox_tmpa_tl {\str_item:Nn \l__tcobox_tmpa_tl {-1}} - \str_if_eq:VnTF \l__tcobox_tmpa_tl { * } + \str_if_eq:eeTF { \str_item:Nn \l__tcobox_tmpa_tl {-1} } { * } { #1{#4} \IfNoValueTF{#3} @@ -2609,7 +2625,7 @@ \cs_new_nopar:Npn \__tcobox_verbatim_finish: { - \tl_set_rescan:Nnx \l__tcobox_tmpa_tl + \tl_set_rescan:Nne \l__tcobox_tmpa_tl { \char_set_catcode_space:n { 9 } \char_set_catcode_space:n { 32 }