summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-06-23 23:43:36 +0000
committerKarl Berry <karl@freefriends.org>2013-06-23 23:43:36 +0000
commit3f214aab9775b3253253bc72fa7a58a0278206d4 (patch)
tree95424a0f9a874d042df4d3762e2a677ea15b010b /Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex
parent0ade4baaa2b1857abfa6b1385ca4a72b9c68a08b (diff)
tcolorbox (23jun13)
git-svn-id: svn://tug.org/texlive/trunk@30869 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex26
1 files changed, 20 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex
index 16cbbb6ccf0..c2a6f9ef860 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex
@@ -176,6 +176,20 @@ and in compiled form. Additionally, we use line numbers here.
\end{dispExample}
\end{docTcbKey}
+\begin{docTcbKey}{no listing options}{}{no value, initially unset}
+ Abbreviation for |listing options={}|.
+ This removes all options for the |listings| package.
+ This includes the |tcblisting| standard style |tcblatex| and the encoding presets.
+ Use this option, if you want to set the |listings| options outside of |tcblisting|, e.\,g.\ globally in
+ the preamble.
+\begin{dispExample}
+\begin{tcblisting}{no listing options}
+All \textit{listings} options removed.
+\end{tcblisting}
+\end{dispExample}
+\end{docTcbKey}
+
+\clearpage
\begin{docTcbKey}{listing style}{=\meta{style}}{no default, initially |tcblatex|}
Abbreviation for |listing options={style=...}|. This key sets a \meta{style}
@@ -227,6 +241,7 @@ This is a \LaTeX\ example.
\end{dispExample}
\end{docTcbKey}
+
\begin{docTcbKey}{listing only}{}{no value}
Typesets the environment content as listing.
\begin{dispExample}
@@ -274,7 +289,6 @@ This is a \LaTeX\ example.
\end{docTcbKey}
-
\begin{docTcbKey}{comment and listing}{}{no value}
Typesets a given comment in the upper part and
the environment content as listing in the lower part.
@@ -356,8 +370,8 @@ numbering.
texexp/.style={colframe=red!50!yellow!50!black, colback=red!50!yellow!5!white,
coltitle=red!50!yellow!3!white,
fonttitle=\small\sffamily\bfseries, fontupper=\small, fontlower=\small},
- example/.code 2 args={\refstepcounter{texexp}\label{#2}%
- \pgfkeysalso{texexp,title={Example \thetexexp: #1}}},
+ example/.style 2 args={texexp,
+ title={Example \refstepcounter{texexp}\label{#2}\thetexexp: #1}},
}
\end{dispListing}
\tcbusetemp
@@ -609,10 +623,10 @@ exercises is created quickly:
\begin{dispListing}
\newtcolorbox{texercise}[2][]{texercisestyle,
- code={\refstepcounter{texercise}\label{exe:#2}\writesol{#2}},
listing file={\solfile\thetexercise},
- title={Exercise \arabic{texercise}\hfill\mdseries Solution on page \pageref{sol:#2}},
- #1}
+ title={Exercise \refstepcounter{texercise}\label{exe:#2}\writesol{#2}%
+ \arabic{texercise}%
+ \hfill\mdseries Solution on page \pageref{sol:#2}},#1}
\end{dispListing}
\tcbusetemp