summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tcolorbox
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-12-10 01:07:17 +0000
committerKarl Berry <karl@freefriends.org>2011-12-10 01:07:17 +0000
commitb53037e64a69b6da11ac2ca3cc81253bbcf73275 (patch)
treec3f4f9f03d4db608ceafab35df1d3ee4f00050ba /Master/texmf-dist/doc/latex/tcolorbox
parentc0c7a95312a208b088a58ff827c8ccd5d64d83fd (diff)
new latex package tcolorbox (9dec11)
git-svn-id: svn://tug.org/texlive/trunk@24811 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tcolorbox')
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/CHANGES23
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/README44
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcblistings.code.tex89
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcbtheorems.code.tex35
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdfbin0 -> 105716 bytes
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex96
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdfbin0 -> 741068 bytes
7 files changed, 287 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES
new file mode 100644
index 00000000000..be23f7a7c4e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES
@@ -0,0 +1,23 @@
+%% The LaTeX package tcolorbox - version 1.00 (2011/12/08)
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2006-2011 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
+%%
+
+(2006-2011): pre publication usage
+
+version 1.00 (2011/12/08): initial public release
+
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/README b/Master/texmf-dist/doc/latex/tcolorbox/README
new file mode 100644
index 00000000000..68150c2ccc9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tcolorbox/README
@@ -0,0 +1,44 @@
+%% The LaTeX package tcolorbox - version 1.00 (2011/12/08)
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2006-2011 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
+%%
+
+tcolorbox provides an environment for colored and framed text boxes with a
+heading line. Optionally, such a box can be splitted in an upper and a lower
+part. The package tcolorbox can be used for the setting of LaTeX examples where
+one part of the box displays the source code and the other part shows the
+output. Another common use case is the setting of theorems. The package supports
+saving and reuse of source code and text parts.
+
+Contents of the package
+=======================
+ 'README' this file
+ 'CHANGES' log of changes (history)
+ 'tcolorbox.sty' LaTeX package file (style file)
+ 'tcblistings.code.tex' LaTeX package file (library of tcolorbox)
+ 'tcbtheormes.code.tex' LaTeX package file (library of tcolorbox)
+ 'tcolorbox.pdf' Documentation for tcolorbox
+ 'tcolorbox-example.tex' Example file for package usage
+ 'tcolorbox-example.pdf' Compiled example
+
+Installation
+============
+Put the files to their respective locations within the TeX installation:
+ 'tcolorbox.sty' -> /tex/latex/tcolorbox
+ 'tcblistings.code.tex' -> /tex/latex/tcolorbox
+ 'tcbtheormes.code.tex' -> /tex/latex/tcolorbox
+ all other files -> /doc/latex/tcolorbox
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcblistings.code.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcblistings.code.tex
new file mode 100644
index 00000000000..64abe4c4489
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcblistings.code.tex
@@ -0,0 +1,89 @@
+%% The LaTeX package tcolorbox - version 1.00 (2011/12/08)
+%% tcblistings.code.tex: Code for colorboxes with listings
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2006-2011 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}
+
+\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/doc/latex/tcolorbox/tcbtheorems.code.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcbtheorems.code.tex
new file mode 100644
index 00000000000..69496997f42
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcbtheorems.code.tex
@@ -0,0 +1,35 @@
+%% The LaTeX package tcolorbox - version 1.00 (2011/12/08)
+%% tcbtheorems.code.tex: Code for theorems in colorboxes
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2006-2011 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/doc/latex/tcolorbox/tcolorbox-example.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf
new file mode 100644
index 00000000000..8a13eca4674
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex
new file mode 100644
index 00000000000..d48647760e3
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex
@@ -0,0 +1,96 @@
+%% The LaTeX package tcolorbox - version 1.00 (2011/12/08)
+%% tcolorbox-example.tex: an example for tcolorbox
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2006-2011 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
+%%
+\documentclass{article}
+\usepackage[listings,theorems]{tcolorbox}
+
+\tcbset{before={\par\medskip\pagebreak[0]\noindent},after={\par\medskip}}%
+
+
+\begin{document}
+
+%----------------------------------------------------------
+\section{Colored boxes}
+
+\begin{tcolorbox}[colback=red!5,colframe=red!75!black]
+ My box.
+\end{tcolorbox}
+
+\begin{tcolorbox}[colback=blue!5,colframe=blue!75!black,title=My title]
+ My box with my title.
+\end{tcolorbox}
+
+\begin{tcolorbox}[colback=green!5,colframe=green!75!black]
+ Upper part of my box.
+ \tcblower
+ Lower part of my box.
+\end{tcolorbox}
+
+\begin{tcolorbox}[colback=yellow!5,colframe=yellow!75!black,title=My title]
+ I can do this also with a title.
+ \tcblower
+ Lower part of my box.
+\end{tcolorbox}
+
+\begin{tcolorbox}[colback=yellow!10,colframe=red!75!black,lowerbox=invisible,
+ savelowerto=\jobname_ex.tex]
+ Now, we play hide and seek. Where is the lower part?
+ \tcblower
+ I'm invisible until you find me.
+\end{tcolorbox}
+
+\begin{tcolorbox}[colback=yellow!10,colframe=red!75!black,title=Here I am]
+ \input{\jobname_ex.tex}
+\end{tcolorbox}
+
+
+\begin{tcolorbox}[colback=blue!50,colframe=blue!25!black,coltext=yellow,
+ fontupper=\Large\bfseries,arc=6mm,boxrule=2mm,boxsep=5mm]
+ Funny settings.
+\end{tcolorbox}
+
+
+\clearpage
+%----------------------------------------------------------
+\section{\LaTeX-Examples}
+
+\begin{tcblisting}{colback=red!5,colframe=red!75!black}
+This is a \LaTeX\ example:
+$\displaystyle\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}$.
+\end{tcblisting}
+
+
+%----------------------------------------------------------
+\section{Theorems}
+
+\newcounter{mytheorem}[section]
+\def\themytheorem{\thesection.\arabic{mytheorem}}
+
+\tcbmaketheorem{theo}{Theorem}{fonttitle=\bfseries\upshape, fontupper=\slshape,
+ arc=0mm, colback=blue!5,colframe=blue!75!black}{mytheorem}{theorem}
+
+\begin{theo}{Summation of Numbers}{summation}
+ For all natural number $n$ it holds:\\[2mm]
+ $\displaystyle\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}$.
+\end{theo}
+
+We have given Theorem \ref{theorem:summation} on page \pageref{theorem:summation}.
+
+\end{document}
+
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf
new file mode 100644
index 00000000000..a1e3153db03
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf
Binary files differ