diff options
author | Norbert Preining <norbert@preining.info> | 2020-09-26 03:03:17 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-09-26 03:03:17 +0000 |
commit | 66ebd4914b367eb00a52ce5d5bb51f695101931b (patch) | |
tree | e5e4a5148bbf213f7ecc242d333bbde165d41e3b /macros/latex/contrib/tcolorbox/tcbminted.code.tex | |
parent | 56c9134f4aa02292ed17e726efd8e493b90e6011 (diff) |
CTAN sync 202009260303
Diffstat (limited to 'macros/latex/contrib/tcolorbox/tcbminted.code.tex')
-rw-r--r-- | macros/latex/contrib/tcolorbox/tcbminted.code.tex | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/macros/latex/contrib/tcolorbox/tcbminted.code.tex b/macros/latex/contrib/tcolorbox/tcbminted.code.tex index 30a01ea7ad..5d8558f825 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 4.32 (2020/09/17) +%% The LaTeX package tcolorbox - version 4.40 (2020/09/25) %% tcbminted.code.tex: Code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- @@ -18,10 +18,13 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{4.32} +\tcb@set@library@version{4.40} \RequirePackage{minted}[2011/09/17] +% to be removed, if integrated into the minted package (#281) +\minted@def@optcl{envname}{-P envname}{#1} + \tcbuselibrary{listings@core} \def\tcb@minted@input@listing#1#2#3#4{% @@ -32,7 +35,11 @@ \edef\tcb@temp{\noexpand\usemintedstyle{\the\toks@}}% \tcb@temp% \fi% - \toks@=\expandafter{#1}% + \ifdefstring{\tcb@listing@capture}{hbox}{% + \toks@=\expandafter{#1,envname=BVerbatim}% + }{% + \toks@=\expandafter{#1}% + }% \edef\tcb@temp{\noexpand\inputminted[\the\toks@]}% \IfFileExists{\minted@outputdir#3}% {\tcb@temp{#2}{\minted@outputdir#3}}% |