From 4344c241bb6300f064703c309f98ea1fa550fc21 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 6 Jul 2017 21:27:18 +0000
Subject: tcolorbox (6jul17)

git-svn-id: svn://tug.org/texlive/trunk@44759 c570f23f-e606-0410-a88d-b1316a301751
---
 .../doc/latex/tcolorbox/tcolorbox.doc.verbatim.tex | 60 ++++++++++++++++++++++
 1 file changed, 60 insertions(+)

(limited to 'Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.verbatim.tex')

diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.verbatim.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.verbatim.tex
index 19770abfe04..de7d56aeb96 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.verbatim.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.verbatim.tex
@@ -55,3 +55,63 @@ Now, we are using the file:\par
 \begin{docCommand}{tcbusetemp}{}
   Loads the current temporary file which was saved by \refEnv{tcbwritetemp}.
 \end{docCommand}
+
+\clearpage
+
+\begin{docTcbKey}[][doc new=2017-07-05]{verbatim ignore percent}{\colOpt{=true\textbar false}}{default |true|, initially |false|}
+  If this option is set to be |true|, the percent sign \% is silently
+  ignored for \refEnv{tcbverbatimwrite} and all macros and environments
+  which are built using \refEnv{tcbverbatimwrite}, e.g.\ 
+  \refEnv{tcbwritetemp}, \refEnv{tcblisting}, or \refEnv{dispExample}.\par
+  This option may be useful for creating some special effects, but mainly
+  it is intended to be applied for documentation with DocStrip.
+  The creation of this option was motivated by Yudai Nakata.
+  Note that this option is not getting reset by \refKey{/tcb/reset}.
+\begin{dispExample*}{sidebyside}
+Normal usage:
+\begin{tcbwritetemp}
+%\begin{center}\bfseries
+This is my text.
+%\end{center}
+\end{tcbwritetemp}
+
+\tcbusetemp
+
+\tcbset{verbatim ignore percent}
+\bigskip Option applied:
+\begin{tcbwritetemp}
+%\begin{center}\bfseries
+This is my text.
+%\end{center}
+\end{tcbwritetemp}
+
+\tcbusetemp
+\end{dispExample*}
+
+\begin{marker}
+Note that \emph{every} percent sign is removed, also escaped ones.
+\end{marker}
+
+\begin{dispExample*}{sidebyside}
+% \tcbuselibrary{listings}
+\def\percent{\%}
+
+\begin{tcblisting}{title=Normal}
+%\begin{center}\bfseries
+This is my 5\percent\ text
+and this is my 10\% text.
+%\end{center}
+\end{tcblisting}
+
+\begin{tcblisting}{
+  title=Option applied,
+  verbatim ignore percent}
+%\begin{center}\bfseries
+This is my 5\percent\ text
+and this is my 10\% text.
+%\end{center}
+\end{tcblisting}
+\end{dispExample*}
+
+\end{docTcbKey}
+
-- 
cgit v1.2.3

