summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tcolorbox/tcbminted.code.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-08 03:01:04 +0000
committerNorbert Preining <norbert@preining.info>2022-01-08 03:01:04 +0000
commitcd2e7ab7ef89a5c3c1935281009729bff0f357e2 (patch)
treeb2cb311dd3561c52157b2482d6558f9ef76f7136 /macros/latex/contrib/tcolorbox/tcbminted.code.tex
parentf69513397ac0e1f02c6b4a5f50588d411413271a (diff)
CTAN sync 202201080301
Diffstat (limited to 'macros/latex/contrib/tcolorbox/tcbminted.code.tex')
-rw-r--r--macros/latex/contrib/tcolorbox/tcbminted.code.tex43
1 files changed, 8 insertions, 35 deletions
diff --git a/macros/latex/contrib/tcolorbox/tcbminted.code.tex b/macros/latex/contrib/tcolorbox/tcbminted.code.tex
index 5197990109..802f48e902 100644
--- a/macros/latex/contrib/tcolorbox/tcbminted.code.tex
+++ b/macros/latex/contrib/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 }