diff options
author | Karl Berry <karl@freefriends.org> | 2022-01-07 22:30:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-01-07 22:30:09 +0000 |
commit | d194e230372a1eb633c6f500941f3f1d494076b8 (patch) | |
tree | d9f911bf95ca9d91c446e9be99aaa071835b7177 /Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex | |
parent | db5f35c7db6319d4ca6369052b1a492c8729bfc7 (diff) |
tcolorbox (7jan22)
git-svn-id: svn://tug.org/texlive/trunk@61524 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex | 43 |
1 files changed, 8 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex index 51979901095..802f48e9029 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 5.0.1 (2021/12/20) +%% The LaTeX package tcolorbox - version 5.0.2 (2022/01/07) %% tcbminted.code.tex: Code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- @@ -18,43 +18,13 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{5.0.1} +\tcb@set@library@version{5.0.2} -\RequirePackage{minted}[2011/09/17] +\RequirePackage{minted}[2021/12/24] % to be removed, if integrated into the minted package (#281) \minted@def@optcl{envname}{-P envname}{#1} -% to be removed, if minted becomes newer than v2.5 (2017/07/19) -% and resolves the package clash with fancyvrb -\ProvideDocumentCommand\tcbTemporaryPatchMintedFancyvrb{}{% - \@ifpackagelater{minted}{2021/12/01}{}{\@ifpackagelater{fancyvrb}{2021/11/19}{% - % patch from muzimuzhi - \RequirePackage{regexpatch}% - \def\minted@use@FancyVerbStartNum{\the\numexpr\FancyVerbStartNum}% - \def\minted@use@FancyVerbStopNum{\the\numexpr\FancyVerbStopNum}% - % patch for fivesum computation - \xpatchcmd*\minted@pygmentize% - {\ifx\FancyVerbStartNum\z@ 0\else\FancyVerbStartNum\fi}% - {\minted@use@FancyVerbStartNum\relax}% - {}{}% - \xpatchcmd*\minted@pygmentize% - {\ifx\FancyVerbStopNum\z@ 0\else\FancyVerbStopNum\fi}% - {\minted@use@FancyVerbStopNum\relax}% - {}{}% - % patch for option "autogobble" - \xpatchcmd\minted@autogobble% - {\ifx\FancyVerbStartNum\z@ 0\else\FancyVerbStartNum\fi}% - {\minted@use@FancyVerbStartNum}% - {}{}% - \xpatchcmd\minted@autogobble% - {\ifx\FancyVerbStopNum\z@ 0\else\FancyVerbStopNum\fi}% - {\minted@use@FancyVerbStopNum}% - {}{}% -}{}}} - -\tcbTemporaryPatchMintedFancyvrb - \tcbuselibrary{listings@core} \ExplSyntaxOn @@ -66,9 +36,12 @@ \usemintedstyle { #4 } } \tl_set:Nn \l_tmpa_tl { \inputminted[#1 } - \str_if_eq:VnT \tcb@listing@capture { hbox } + \cs_if_exist:NT \tcb@listing@capture { - \tl_put_right:Nn \l_tmpa_tl { ,envname=BVerbatim } + \str_if_eq:VnT \tcb@listing@capture { hbox } + { + \tl_put_right:Nn \l_tmpa_tl { ,envname=BVerbatim } + } } \tl_put_right:Nn \l_tmpa_tl { ] } \file_if_exist:nTF { \minted@outputdir #3 } |