summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex')
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex67
1 files changed, 18 insertions, 49 deletions
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
index a5f68b1ce2c..3e7b8326273 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 2.72 (2014/03/18)
+%% The LaTeX package tcolorbox - version 2.80 (2014/03/31)
%% tcblistingscode.code.tex: Auxiliary code for colorboxes with listings
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{2.72}
+\tcb@set@library@version{2.80}
\def\tcbuselistingtext{\input{\kvtcb@listingfile}}%
\def\tcbuselistingcomment{\kvtcb@listingcomment}%
@@ -81,8 +81,8 @@
\ifx\kvtcb@float\@empty%
\newenvironment{tcb@sbsfloat}{\kvtcb@beforebox}{\kvtcb@afterbox}%
\else%
- \edef\float@start{\noexpand\@float{tcbfloat}[\kvtcb@float]}%
- \newenvironment{tcb@sbsfloat}{\float@start}{\end@float}%
+ \edef\tcb@float@env@start{\noexpand\tcb@float@env@begin{tcbfloat}[\kvtcb@float]}%
+ \newenvironment{tcb@sbsfloat}{\tcb@float@env@start}{\tcb@float@env@end}%
\fi%
}
@@ -172,7 +172,6 @@
\begingroup\tcbverbatimwrite{\kvtcb@listingfile}%
}{\endtcbverbatimwrite\endgroup}
-
\long\def\tcb@newtcblisting#1#2{\tcb@newenvironment{#1}{\tcblisting{#2,options@for=#1}}{\endtcblisting}}
\long\def\tcb@newtcblisting@#1[#2]#3{\tcb@newenvironment{#1}[#2]{\tcblisting{#3,options@for=#1}}{\endtcblisting}}
@@ -182,27 +181,18 @@
\long\def\tcb@new@tcblisting@#1[#2]{%
\@ifnextchar[{\tcb@newtcblisting@@{#1}[#2]}{\tcb@newtcblisting@{#1}[#2]}}
-\long\def\tcb@new@tcblisting#1{%
- \preto\tcb@new@colopt{savedelimiter=#1}%
- \cslet{tcb@opt@#1}{\tcb@new@colopt}%
+\def\tcb@new@tcblisting#1{%
\@ifnextchar[{\tcb@new@tcblisting@{#1}}{\tcb@newtcblisting{#1}}}
-\long\def\tcb@new@tcblisting@opt[#1]#2{%
- \tcb@proc@options@init{#1}{#2}%
- \tcb@new@tcblisting{#2}%
-}
-
-\long\def\new@tcblisting{%
- \def\tcb@new@colopt{}%
- \@ifnextchar[{\tcb@new@tcblisting@opt}{\tcb@new@tcblisting}}
-
-\long\def\newtcblisting{%
+\def\newtcblisting{%
\let\tcb@newenvironment\newenvironment%
- \new@tcblisting}
+ \let\tcb@process@newtcolorbox@continue\tcb@new@tcblisting%
+ \tcb@process@newenvironment}
-\long\def\renewtcblisting{%
+\def\renewtcblisting{%
\let\tcb@newenvironment\renewenvironment%
- \new@tcblisting}
+ \let\tcb@process@newtcolorbox@continue\tcb@new@tcblisting%
+ \tcb@process@newenvironment}
\long\def\tcb@newtcbinputlisting#1#2{\expandafter\tcb@newcommand\csname#1\endcsname{\tcbinputlisting{#2,options@for=#1}}}
@@ -213,39 +203,18 @@
\long\def\tcb@new@tcbinputlisting@#1[#2]{%
\@ifnextchar[{\tcb@newtcbinputlisting@@{#1}[#2]}{\tcb@newtcbinputlisting@{#1}[#2]}}
-\long\def\tcb@new@tcbinputlisting#1{%
- \preto\tcb@new@colopt{savedelimiter=#1}%
- \cslet{tcb@opt@#1}{\tcb@new@colopt}%
+\def\tcb@new@tcbinputlisting#1{%
\@ifnextchar[{\tcb@new@tcbinputlisting@{#1}}{\tcb@newtcbinputlisting{#1}}}
-
-\long\def\tcb@new@tcbinputlisting@bs#1{%
- \edef\tcb@temp{\noexpand\tcb@new@tcbinputlisting{\tcb@remove@bs{#1}}}%
- \tcb@temp%
-}
-
-\long\def\tcb@new@tcbinputlisting@opt#1#2{%
- \tcb@proc@options@init{#2}{#1}%
- \tcb@new@tcbinputlisting{#1}%
-}
-
-\long\def\tcb@new@tcbinputlisting@opt@bs[#1]#2{%
- \edef\tcb@temp{\noexpand\tcb@new@tcbinputlisting@opt{\tcb@remove@bs{#2}}}%
- \tcb@temp{#1}%
-}
-
-\long\def\new@tcbinputlisting{%
- \def\tcb@new@colopt{}%
- \@ifnextchar[{\tcb@new@tcbinputlisting@opt@bs}{\tcb@new@tcbinputlisting@bs}}
-
-\long\def\newtcbinputlisting{%
+\def\newtcbinputlisting{%
\let\tcb@newcommand\newcommand%
- \new@tcbinputlisting}
+ \let\tcb@process@newtcolorbox@continue\tcb@new@tcbinputlisting%
+ \tcb@process@newcommand}
-\long\def\renewtcbinputlisting{%
+\def\renewtcbinputlisting{%
\let\tcb@newcommand\renewcommand%
- \new@tcbinputlisting}
-
+ \let\tcb@process@newtcolorbox@continue\tcb@new@tcbinputlisting%
+ \tcb@process@newcommand}
\tcbset{%
reset@listingscore/.style={%