summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tcolorbox
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-01-27 00:12:25 +0000
committerKarl Berry <karl@freefriends.org>2012-01-27 00:12:25 +0000
commit212e37aa7c71f236f93ffdb4a502972ecb6373a1 (patch)
tree1843f830ece23dd10008918853fcfa9410b55961 /Master/texmf-dist/tex/latex/tcolorbox
parentbe826ba2b4031f0ad0e5dc34ec103d707bf13cec (diff)
tcolorbox (26jan12)
git-svn-id: svn://tug.org/texlive/trunk@25211 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tcolorbox')
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex89
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex35
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty10
3 files changed, 130 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
new file mode 100644
index 00000000000..ab77faf9bd5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
@@ -0,0 +1,89 @@
+%% The LaTeX package tcolorbox - version 1.01 (2012/01/26)
+%% tcblistings.code.tex: Code for colorboxes with listings
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2006-2012 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
+%% -------------------------------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `author-maintained'.
+%%
+%% This work consists of all files listed in README
+%%
+\makeatletter
+\def\tcblibrary@listings@loaded{}
+
+\RequirePackage{listings}[2007/02/22]
+
+\lstdefinestyle{tcblatex}{language={[LaTeX]TeX},
+ aboveskip={0\p@ \@plus 6\p@}, belowskip={0\p@ \@plus 6\p@},
+ columns=fullflexible, keepspaces=true,
+ breaklines=true, breakatwhitespace=true,
+ basicstyle=\ttfamily\small, extendedchars=true
+ }
+
+\def\tcbuselistingtext{\input{\kvtcb@listingfile}}%
+
+\def\tcbuselistinglisting{%
+ \toks@=\expandafter{\kvtcb@listingoptions}%
+ \edef\tcb@temp{\noexpand\lstinputlisting[\the\toks@]}%
+ \tcb@temp{\kvtcb@listingfile}%
+}%
+
+\def\tcb@listing@listingAndText{%
+ \tcbuselistinglisting%
+ \tcblower%
+ \tcbuselistingtext%
+}
+
+\def\tcb@listing@textAndListing{%
+ \tcbuselistingtext%
+ \tcblower%
+ \tcbuselistinglisting%
+}
+
+\tcbset{
+ listing file/.store in=\kvtcb@listingfile,
+ listing options/.store in=\kvtcb@listingoptions,
+ listing style/.style={listing options={style=#1}},
+ listing and text/.code={\let\tcp@listing@process\tcb@listing@listingAndText},
+ text and listing/.code={\let\tcp@listing@process\tcb@listing@textAndListing},
+ listing only/.code={\let\tcp@listing@process\tcbuselistinglisting},
+ text only/.code={\let\tcp@listing@process\tcbuselistingtext},
+}
+
+\tcbset{
+ listing file=\jobname.listing,
+ listing style=tcblatex,
+ listing and text,
+}
+
+\newenvironment{tcblisting}[1]{%
+ \def\tcblisting@box{\begin{tcolorbox}[#1]\tcp@listing@process\end{tcolorbox}}%
+ \begingroup\tcbverbatimwrite{\kvtcb@listingfile}%
+}{\endtcbverbatimwrite\endgroup%
+ \tcblisting@box%
+}
+
+\def\tcbinputlisting#1{%
+ \begin{tcolorbox}[#1]\tcp@listing@process\end{tcolorbox}%
+}
+
+\newenvironment{tcboutputlisting}{%
+ \begingroup\tcbverbatimwrite{\kvtcb@listingfile}%
+}{\endtcbverbatimwrite\endgroup}
+
+\def\tcbusetemplisting{%
+ \toks@=\expandafter{\kvtcb@listingoptions}%
+ \edef\tcb@temp{\noexpand\lstinputlisting[\the\toks@]}%
+ \tcb@temp{\kvtcb@tempfile}%
+}%
+
+
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
new file mode 100644
index 00000000000..f0fae34590e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
@@ -0,0 +1,35 @@
+%% The LaTeX package tcolorbox - version 1.01 (2012/01/26)
+%% tcbtheorems.code.tex: Code for theorems in colorboxes
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2006-2012 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
+%% -------------------------------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `author-maintained'.
+%%
+%% This work consists of all files listed in README
+%%
+\makeatletter
+\def\tcblibrary@theorems@loaded{}
+
+\tcbset{
+ theorem/.code args={#1#2#3#4}{%
+ \refstepcounter{#2}\label{#4}%
+ \pgfkeysalso{title={\setlength{\hangindent}{\widthof{#1~\csname the#2\endcsname:\ }}\hangafter=1 #1~\csname the#2\endcsname:\ #3}}}%
+}
+
+\newcommand{\tcbmaketheorem}[5]{%
+ \newenvironment{#1}[3][]{%
+ \tcolorbox[#3,savedelimiter=#1,
+ theorem={#2}{#4}{##2}{#5:##3},
+ ##1]}%
+ {\endtcolorbox}%
+}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty b/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
index 4e08c294d06..1b855b3d0d4 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
@@ -1,8 +1,8 @@
-%% The LaTeX package tcolorbox - version 1.00 (2011/12/08)
+%% The LaTeX package tcolorbox - version 1.01 (2012/01/26)
%% tcolorbox.sty: Text color boxes
%%
%% -------------------------------------------------------------------------------------------
-%% Copyright (c) 2006-2011 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
+%% Copyright (c) 2006-2012 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
%% -------------------------------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
@@ -18,9 +18,11 @@
%% This work consists of all files listed in README
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tcolorbox}[2011/12/08 version 1.00 text color boxes]
+\ProvidesPackage{tcolorbox}[2012/01/26 version 1.01 text color boxes]
-\RequirePackage{pgf,calc,verbatim}
+\RequirePackage{pgf}[2008/01/15]
+\RequirePackage{calc}[2007/08/22]
+\RequirePackage{verbatim}[2003/08/22]
% register
\newif\iftcb@lowerignored