summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-26 21:49:45 +0000
committerKarl Berry <karl@freefriends.org>2020-09-26 21:49:45 +0000
commit77dc9953ed21615c811db9885a44b9c357461fe3 (patch)
treea225ddede2b1b7de4a9ce30201fd662b321951f1 /Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
parent7d1d163297dfe93c40e0391d5460e929a531c1c5 (diff)
tcolorbox (26sep20)
git-svn-id: svn://tug.org/texlive/trunk@56446 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.tex13
1 files changed, 10 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
index 30a01ea7add..5d8558f8255 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 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}}%