summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-07 21:40:30 +0000
committerKarl Berry <karl@freefriends.org>2015-05-07 21:40:30 +0000
commit4d7ee2f15a2db03392ca6fbb1189db29c6523e42 (patch)
treeb0745940eb785f5e799fe72d09f583081078f436 /Master
parent64c52f821362a3f1db230327b2cbfdf2d385558b (diff)
tcolorbox (7may15)
git-svn-id: svn://tug.org/texlive/trunk@37258 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/CHANGES20
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/README2
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdfbin361332 -> 361293 bytes
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex2
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.abstract.tex4
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.breakable.tex5
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex6
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex715
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.documentation.tex9
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.external.tex106
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.filling.tex49
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex9
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.graphics.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.hooks.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.intro.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.picturecredits.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.quickref.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.raster.tex5
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.recording.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty14
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex405
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.technical.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.verbatim.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.xparse.tex3
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdfbin5576333 -> 5628833 bytes
-rw-r--r--Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex12
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex35
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex30
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex8
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex6
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex71
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex4
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty217
-rw-r--r--Master/tlpkg/tlpsrc/cjk-gs-integrate.tlpsrc2
45 files changed, 1263 insertions, 541 deletions
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES
index e6b7c245856..418ebecc0ff 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES
+++ b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%%
%% -------------------------------------------------------------------------------------------
%% Copyright (c) 2006-2014 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
@@ -751,3 +751,21 @@ version 3.50 (2015/03/16)
'prefix', 'environment', 'minipage', 'plain', 'compiler', 'runs',
'input source on error', 'safety', 'preamble'
- documentation structure revised
+
+version 3.60 (2015/05/07)
+- bug fix: dimension settings with 'em' or 'ex' units for 'enlarge .. by' converted to 0pt
+- bug fix: 'bicolor' skin sometimes ignored color for lower part when broken
+- new macros: '\tcbpatcharcangular', '\tcbpatcharcround'
+- implementation of text alignment changed with new options:
+ 'halign', 'halign upper', 'halign lower', 'halign title', 'valign upper'
+- new options:
+ 'saveto', 'circular arc', 'bean arc', 'arc is angular', 'arc is curved',
+ 'square', 'tcbox width'
+- library 'skins':
+ * new option: 'smart shadow arc'
+- library 'documentation':
+ package 'doc' removed from list of required packages
+- new library 'external':
+ * new options:
+ 'environment with percent', 'preamble tcbset', 'preclass', 'clear preclass',
+ 'PassOptionsToPackage', 'PassOptionsToClass'
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/README b/Master/texmf-dist/doc/latex/tcolorbox/README
index 2604cad3cab..95be77a5160 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/README
+++ b/Master/texmf-dist/doc/latex/tcolorbox/README
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%%
%% -------------------------------------------------------------------------------------------
%% Copyright (c) 2006-2014 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf
index b3e3fb5d614..97635460443 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf
+++ 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
index 66582b8d98c..828e6abc215 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcolorbox-example.tex: an example for tcolorbox
%%
%% -------------------------------------------------------------------------------------------
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.abstract.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.abstract.tex
index b63a1ca9ba1..a2923f4c532 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.abstract.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.abstract.tex
@@ -22,7 +22,7 @@
\node at (C) {%
\begin{tcbitemize}[title=tcolorbox \version,fonttitle=\small\bfseries,
enhanced jigsaw,opacityback=0.5,opacitybacktitle=0.75,
- center upper,valign=center,arc=5mm,
+ halign=center,valign=center,arc=5mm,
raster width=16cm,raster column skip=8mm,raster halign=center,
raster force size=false,
raster row 1/.style={height=6cm},
@@ -70,7 +70,7 @@
\begin{tcolorbox}[enhanced,hbox,tikznode,left=8mm,right=8mm,boxrule=0.4pt,
colback=white,colframe=black!50!yellow,
%drop fuzzy midday shadow=black!50!yellow,
- drop lifted shadow=black!50!yellow,
+ drop lifted shadow=black!50!yellow,arc is angular,
before=\par\vspace*{5mm},after=\par\bigskip]
{\bfseries\LARGE The \texttt{tcolorbox} package}\\[3mm]
{\large Manual for version \version\ (\datum)}
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.breakable.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.breakable.tex
index 3dc4bd223d3..a24a90b29a4 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.breakable.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.breakable.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Library \mylib{breakable}}\label{sec:breakable}
+\section{Library \mylib{breakable}}\label{sec:breakable}%
+\tcbset{external/prefix=external/breakable_}%
The library is loaded by a package option or inside the preamble by:
\begin{dispListing}
\tcbuselibrary{breakable}
@@ -61,7 +62,7 @@ the end of a box. The optional lower box part is also checked to
have at least \refKey{/tcb/lines before break}.
\clearpage
-In principal, all boxes of the \emph{break sequence} share the same geometric
+In principle, all boxes of the \emph{break sequence} share the same geometric
parameters. The differences are:
\begin{itemize}
\item The given \refKey{/tcb/before} and \refKey{/tcb/after} values are
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex
index 7898513a167..795c0bae49a 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex
@@ -1,8 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Macros for Box Creation}
-
+\section{Macros for Box Creation}%
+\tcbset{external/prefix=external/coremacros_}%
\begin{docEnvironment}{tcolorbox}{\oarg{options}}
This is the main environment to create an accentuated colored text box with
rounded corners and, optionally, two parts. The appearance of this box
@@ -103,7 +103,7 @@ Here, you see the lower part of the box.
\clearpage
\begin{docCommand}{tcbox}{\oarg{options}\marg{box content}}
Creates a colored box which is fitted to the width of the given
- \meta{box content}. In principal, most \meta{options} for a \refEnv{tcolorbox}
+ \meta{box content}. In principle, most \meta{options} for a \refEnv{tcolorbox}
can be used for |\tcbox| with some restrictions. A |\tcbox| cannot have
a lower part and cannot be broken.
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex
index 64affa53651..7780d5bf743 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Option Keys}\label{sec:optkeys}
+\section{Option Keys}\label{sec:optkeys}%
+\tcbset{external/prefix=external/coreoptions_}%
For the \meta{options} in \refEnv{tcolorbox} respectively \refCom{tcbset}
the following |pgf| keys can be applied. The key tree path |/tcb/| is not to
be used inside these macros. It is easy to add your own style keys using
@@ -30,7 +31,7 @@ This is a \textbf{tcolorbox}.
This option makes sense
for single line headings if boxes are set side by side with equal height.
Note that it is very easy to trick this adjustment.
-\begin{exdispExample}[runs=2]{options_adjusted_title}
+\begin{exdispExample}[runs=2]{adjusted_title}
\tcbset{colback=White,arc=0mm,width=(\linewidth-4pt)/4,
equal height group=AT,before=,after=\hfill,fonttitle=\bfseries}
@@ -181,7 +182,7 @@ just like any other \refEnv{tcolorbox}.
\begin{docTcbKey}[][doc new=2014-10-10]{subtitle style}{=\meta{options}}{no default, initially empty}
Adds |tcolorbox| \meta{options} to the settings for \refCom{tcbsubtitle}.
-\begin{exdispExample*}{options_subtitle_style}{sbs,lefthand ratio=0.6}
+\begin{exdispExample*}{subtitle_style}{sbs,lefthand ratio=0.6}
\begin{tcolorbox}[title=My title,
colback=red!5!white,
colframe=red!75!black,
@@ -214,7 +215,7 @@ and an optional \emph{lower part}. These parts are separated by
\item\docValue{visible}: usual type setting of the upper part,
\item\docValue{invisible}: empty space instead of the uooer part contents.
\end{itemize}
-\begin{dispExample}
+\begin{exdispExample}{upperbox}
\begin{tcolorbox}[upperbox=invisible,colback=white]
This is a \textbf{tcolorbox} (but invisible).
\end{tcolorbox}
@@ -226,7 +227,7 @@ This is a \textbf{tcolorbox} (but invisible).
\tcblower
This is the lower part.
\end{tcolorbox}
-\end{dispExample}
+\end{exdispExample}
\end{docTcbKey}
@@ -238,14 +239,52 @@ This is the lower part.
\begin{docTcbKey}[][doc new=2015-01-06]{invisible}{}{style, no value}
Shortcut for setting \refKey{/tcb/upperbox} and \refKey{/tcb/lowerbox}
to be \docValue{invisible}.
-\begin{dispExample}
+\begin{exdispExample}{invisible}
\begin{tcolorbox}[invisible]
This is a \textbf{tcolorbox} (but invisible).
\end{tcolorbox}
-\end{dispExample}
+\end{exdispExample}
+\end{docTcbKey}
+
+
+\clearpage
+\begin{docTcbKey}[][doc new=2015-05-04]{saveto}{=\meta{file name}}{no default, initially empty}
+ Saves the content of the box into a file for an optional later usage.
+ This is the counterpart of \refKey{/tcb/savelowerto}, but is saves not
+ only the upper part but the whole content. If a lower part is present,
+ it is also saved including \refCom{tcblower}.
+ \begin{marker}
+ This option cannot be combined with \refKey{/tcb/savelowerto}.
+ \end{marker}
+
+\begin{exdispExample}{saveto_1}
+\begin{tcolorbox}[invisible,saveto=\jobname_mysave1.tex,colback=white]
+This is a \textbf{tcolorbox} which seems to be empty.
+The content is saved for later usage.
+\end{tcolorbox}
+
+Now, we load the saved text:\\
+\input{\jobname_mysave1.tex}
+\end{exdispExample}
+
+\begin{exdispExample}{saveto_2}
+\begin{tcolorbox}[saveto=\jobname_mysave2.tex]
+This is a \textbf{tcolorbox}.
+\tcblower
+This is the lower part.
+\end{tcolorbox}
+
+Now, we load the saved text:
+\begin{tcolorbox}[colframe=red,colback=red!10,
+ coltitle=black,colbacktitle=red!20,sidebyside,
+ title=Here we see the saved content including the lower part]
+\input{\jobname_mysave2.tex}
+\end{tcolorbox}
+\end{exdispExample}
\end{docTcbKey}
+
\clearpage
\subsection{Lower Part}
\begin{docTcbKey}{lowerbox}{=\meta{mode}}{no default, initially \texttt{visible}}
@@ -257,7 +296,7 @@ This is a \textbf{tcolorbox} (but invisible).
\item\docValue{ignored}: the lower part is not used (here).
\end{itemize}
The last two values are usually applied in connection with |savelowerto|.
-\begin{dispExample}
+\begin{exdispExample}{lowerbox}
\begin{tcolorbox}[lowerbox=invisible,colback=white]
This is a \textbf{tcolorbox}.
\tcblower
@@ -269,13 +308,13 @@ This is a \textbf{tcolorbox}.
\tcblower
This is the lower part (but ignored).
\end{tcolorbox}
-\end{dispExample}
+\end{exdispExample}
\end{docTcbKey}
\begin{docTcbKey}[][doc updated=2014-11-28]{savelowerto}{=\meta{file name}}{no default, initially empty}
- Saves the content of the lower part in a file for an optional later usage.
-\begin{dispExample}
+ Saves the content of the lower part into a file for an optional later usage.
+\begin{exdispExample}{savelowerto}
\begin{tcolorbox}[lowerbox=invisible,savelowerto=\jobname_bspsave.tex,colback=white]
This is a \textbf{tcolorbox}.
\tcblower
@@ -285,7 +324,7 @@ $\displaystyle f(x)=\frac{1+x^2}{1-x^2}$.
Now, we load the saved text:\\
\input{\jobname_bspsave.tex}
-\end{dispExample}
+\end{exdispExample}
\end{docTcbKey}
\clearpage
@@ -293,7 +332,7 @@ Now, we load the saved text:\\
If set to |true|, the lower part is visually separated from the upper part.
It depends on the chosen skin how the visualization of the separation is done.
\enlargethispage*{1cm}
-\begin{exdispExample}{options_lower_separated}
+\begin{exdispExample}{lower_separated}
% \tcbuselibrary{skins,raster}
\begin{tcbraster}[colback=red!5!white,colframe=red!75!black,
fonttitle=\bfseries,fontlower=\itshape]
@@ -530,8 +569,211 @@ This is a \textbf{tcolorbox}.
Section \ref{sec:skins} from page \pageref{sec:skins}.
\end{marker}
+
+\clearpage
+\subsection{Text Alignment}
+
+\begin{docTcbKey}[][doc new=2015-05-07]{halign}{=\meta{alignment}}{no default, initially \texttt{justify}}
+ If there is no lower part, |halign| determines the horizontal \meta{alignment}
+ of the text content.
+ Otherwise, |halign| determines the horizontal \meta{alignment}
+ of the upper part of the box only.
+ The feasible values for \meta{alignment} are more or less identical to
+ the corresponding |/tikz/align| settings, even if the implementation differs.
+ \begin{itemize}
+ \item\docValue{justify}: usual left and right justified type setting.
+ \item\docValue{left}: left border justification in analogy to plain \TeX.
+ \item\docValue{flush left}: left border justification with |\raggedright| of \LaTeX.
+ \item\docValue{right}: right border justification in analogy to plain \TeX.
+ \item\docValue{flush right}: right border justification with |\raggedleft| of \LaTeX.
+ \item\docValue{center}: centering in analogy to plain \TeX.
+ \item\docValue{flush center}: centering with |\centering| of \LaTeX.
+ \end{itemize}
+ The differences between the flush and non-flush version are explained in
+ detail in the \tikzname\ manual \cite{tantau:2013a}. The short story is that
+ the non-flush versions will often look more balanced but with more
+ hyphenations.
+
+\begin{exdispExample}{halign}
+\tcbset{colback=red!5!white,colframe=red!75!black,size=small,
+ fonttitle=\bfseries,width=3.5cm,box align=top,
+ nobeforeafter}
+
+\begin{tcolorbox}[adjusted title=flush center,halign=flush center]
+This is a demonstration text for showing how line breaking works.
+\end{tcolorbox}
+\begin{tcolorbox}[adjusted title=flush left,halign=flush left]
+This is a demonstration text for showing how line breaking works.
+\end{tcolorbox}
+\begin{tcolorbox}[adjusted title=flush right,halign=flush right]
+This is a demonstration text for showing how line breaking works.
+\end{tcolorbox}
+
+\begin{tcolorbox}[adjusted title=center,halign=center]
+This is a demonstration text for showing how line breaking works.
+\end{tcolorbox}
+\begin{tcolorbox}[adjusted title=left,halign=left]
+This is a demonstration text for showing how line breaking works.
+\end{tcolorbox}
+\begin{tcolorbox}[adjusted title=right,halign upper=right]
+This is a demonstration text for showing how line breaking works.
+\end{tcolorbox}
+\end{exdispExample}
+
+\end{docTcbKey}
+
+
+\begin{docTcbKey}[][doc new=2015-05-07]{halign upper}{=\meta{alignment}}{no default, initially \texttt{justify}}
+ Alias for \refKey{/tcb/halign}.
+\end{docTcbKey}
+
+\newpage
+\begin{docTcbKey}[][doc new=2015-05-07]{halign lower}{=\meta{alignment}}{no default, initially \texttt{justify}}
+ |halign lower| determines the horizontal \meta{alignment} of the lower part of the box.
+ The feasible values for \meta{alignment} are the same as for \refKey{/tcb/halign}.
+
+\begin{exdispExample}{halign_lower}
+\begin{tcbraster}[raster columns=3,fonttitle=\bfseries,
+ colback=red!5!white,colframe=red!75!black]
+
+ \begin{tcolorbox}[adjusted title=flush center,halign lower=flush center]
+ Upper part. \tcblower Lower part.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=flush left,halign lower=flush left]
+ Upper part. \tcblower Lower part.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=flush right,halign lower=flush right]
+ Upper part. \tcblower Lower part.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=center,halign lower=center]
+ Upper part. \tcblower Lower part.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=left,halign lower=left]
+ Upper part. \tcblower Lower part.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=right,halign lower=right]
+ Upper part. \tcblower Lower part.
+ \end{tcolorbox}
+
+\end{tcbraster}
+\end{exdispExample}
+\end{docTcbKey}
+
+
+\clearpage
+\begin{docTcbKey}[][doc new=2015-05-07]{halign title}{=\meta{alignment}}{no default, initially \texttt{justify}}
+ |halign lower| determines the horizontal \meta{alignment} of the title of the box.
+ The feasible values for \meta{alignment} are the same as for \refKey{/tcb/halign}.
+
+\begin{exdispExample}{halign_title}
+\begin{tcbraster}[raster columns=3,fonttitle=\bfseries,
+ colback=red!5!white,colframe=red!75!black]
+
+ \begin{tcolorbox}[adjusted title=flush center,halign title=flush center]
+ This is a \textbf{tcolorbox}.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=flush left,halign title=flush left]
+ This is a \textbf{tcolorbox}.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=flush right,halign title=flush right]
+ This is a \textbf{tcolorbox}.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=center,halign title=center]
+ This is a \textbf{tcolorbox}.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=left,halign title=left]
+ This is a \textbf{tcolorbox}.
+ \end{tcolorbox}
+ \begin{tcolorbox}[adjusted title=right,halign title=right]
+ This is a \textbf{tcolorbox}.
+ \end{tcolorbox}
+
+\end{tcbraster}
+\end{exdispExample}
+\end{docTcbKey}
+
+\enlargethispage*{1cm}
+
+\begin{docTcbKey}[][doc updated=2015-05-07]{flushleft upper}{}{style, no value}
+ Shortcut for setting \refKey{/tcb/halign} to \docValue{flush left}.
+\end{docTcbKey}
+
+\begin{docTcbKey}[][doc updated=2015-05-07]{center upper}{}{style, no value}
+ Shortcut for setting \refKey{/tcb/halign} to \docValue{flush center}.
+\end{docTcbKey}
+
+\begin{docTcbKey}[][doc updated=2015-05-07]{flushright upper}{}{style, no value}
+ Shortcut for setting \refKey{/tcb/halign} to \docValue{flush right}.
+\end{docTcbKey}
+
+\begin{docTcbKey}[][doc updated=2015-05-07]{flushleft lower}{}{style, no value}
+ Shortcut for setting \refKey{/tcb/halign lower} to \docValue{flush left}.
+\end{docTcbKey}
+
+\begin{docTcbKey}[][doc updated=2015-05-07]{center lower}{}{style, no value}
+ Shortcut for setting \refKey{/tcb/halign lower} to \docValue{flush center}.
+\end{docTcbKey}
+
+\begin{docTcbKey}[][doc updated=2015-05-07]{flushright lower}{}{style, no value}
+ Shortcut for setting \refKey{/tcb/halign lower} to \docValue{flush right}.
+\end{docTcbKey}
+
+
+\begin{docTcbKey}[][doc updated=2015-05-07]{flushleft title}{}{style, no value}
+ Shortcut for setting \refKey{/tcb/halign title} to \docValue{flush left}.
+\end{docTcbKey}
+
+\begin{docTcbKey}[][doc updated=2015-05-07]{center title}{}{style, no value}
+ Shortcut for setting \refKey{/tcb/halign title} to \docValue{flush center}.
+\end{docTcbKey}
+
+\begin{docTcbKey}[][doc updated=2015-05-07]{flushright title}{}{style, no value}
+ Shortcut for setting \refKey{/tcb/halign title} to \docValue{flush right}.
+\end{docTcbKey}
+
+\clearpage
+
+\begin{marker}
+The vertical alignment settings are only relevant for boxes which are larger
+than their natural height, see \Fullref{sec:heightcontrol}.
+\end{marker}
+
+\begin{docTcbKey}{valign}{=\meta{alignment}}{no default, initially |top|}
+ If the height of a |tcolorbox| is not the natural height, |valign|
+ determines the vertical \meta{alignment} of the upper part.
+ Feasible values are \docValue{top}, \docValue{center}, and \docValue{bottom}.
+ For a box with natural height, these values are meaningless.
+\begin{exdispExample}{valign}
+\tcbset{width=(\linewidth-2mm)/3,before=,after=\hfill,
+colframe=blue!75!black,colback=white,height=2cm}
+
+\foreach \myalign in {top,center,bottom}
+{\begin{tcolorbox}[valign=\myalign]
+ This is a \textbf{tcolorbox}.
+\end{tcolorbox}}
+\end{exdispExample}
+\end{docTcbKey}
+
+
+\begin{docTcbKey}[][doc new=2015-05-07]{valign upper}{=\meta{alignment}}{no default, initially \texttt{top}}
+ Alias for \refKey{/tcb/valign}.
+\end{docTcbKey}
+
+
+\begin{docTcbKey}{valign lower}{=\meta{alignment}}{no default, initially |top|}
+ This key has the same meaning for the lower part as |valign|
+ for the upper part, i.\,e., it determines
+ the vertical \meta{alignment} of the lower part with feasible values
+ |top|, |center|, and |bottom|.
+\end{docTcbKey}
+
+
+Also see \refKey{/tcb/sidebyside align} for alignment settings when
+upper part and lower part are set side-by-side.
+
\clearpage
\subsection{Geometry}
+\subsubsection{Width}
\begin{docTcbKey}{width}{=\meta{length}}{no default, initially \cs{linewidth}}
Sets the total width of the colored box to \meta{length}.
@@ -575,7 +817,11 @@ This is a \textbf{tcolorbox}.
\end{docTcbKey}
+See \Fullref{sec:heightcontrol} for setting fixed height values.
+
+
\clearpage
+\subsubsection{Rules}
\begin{docTcbKey}{toprule}{=\meta{length}}{no default, initially \texttt{0.5mm}}
Sets the line width of the top rule to \meta{length}.
\begin{dispExample}
@@ -656,19 +902,113 @@ This is a \textbf{tcolorbox}.
\end{marker}
-\clearpage
+\subsubsection{Arcs}
\begin{docTcbKey}{arc}{=\meta{length}}{no default, initially \texttt{1mm}}
Sets the inner radius of the four frame arcs to \meta{length}.
-\begin{dispExample}
+\begin{exdispExample}{arc}
\tcbset{colback=red!5!white,colframe=red!75!black}
\begin{tcolorbox}[arc=0mm]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
-\begin{tcolorbox}[arc=4mm]
+\begin{tcolorbox}[arc=3mm]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
-\end{dispExample}
+\end{exdispExample}
+\end{docTcbKey}
+
+
+\clearpage
+\begin{docTcbKey}[][doc new=2015-05-05]{circular arc}{}{style, no value}
+ Sets \refKey{/tcb/arc} to match the half of the inner width of the colored box.
+ If width and height of the box are identical, this gives a circle.
+ \begin{marker}
+ If the height of the box is smaller than the width, the result will look
+ quite ugly.
+ \end{marker}
+\begin{exdispExample*}{circular_arc}{sbs,lefthand ratio=0.6}
+\begin{tcolorbox}[width=3cm,
+ colback=red!5!white,
+ colframe=red!75!black,
+ halign=center,valign=center,
+ square,circular arc]
+This is a \textbf{tcolorbox}.
+\end{tcolorbox}
+\end{exdispExample*}
+\end{docTcbKey}
+
+
+\begin{docTcbKey}[][doc new=2015-05-05]{bean arc}{}{style, no value}
+ Sets \refKey{/tcb/arc} to match the smaller value of the
+ half of the inner width and of the inner height of the colored box.
+ \begin{marker}
+ This only works for a fixed \refKey{/tcb/height}. Also, \refKey{/tcb/bean arc}
+ must be used \emph{after} width and height are set by option keys.
+ \end{marker}
+\begin{exdispExample*}{bean_arc}{sbs,lefthand ratio=0.6}
+\tcbset{size=fbox,boxrule=0.5mm,
+ colback=red!5!white,
+ colframe=red!75!black,
+ halign=center,valign=center}
+
+\begin{tcolorbox}[width=3cm,height=2cm,
+ bean arc]
+Box A
+\end{tcolorbox}
+
+\begin{tcolorbox}[width=2cm,height=3cm,
+ bean arc]
+Box B
+\end{tcolorbox}
+\end{exdispExample*}
+\end{docTcbKey}
+
+\begin{docTcbKey}[][doc new=2015-05-05]{octogon arc}{}{style, no value}
+ Sets \refKey{/tcb/arc} to match $\frac{1}{2+\sqrt{2}}$ of the inner width
+ of the colored box. If width and height of the box are identical,
+ the interior is a regular octogon.
+\begin{exdispExample*}{octogon_arc}{sbs,lefthand ratio=0.8}
+\begin{tcolorbox}[enhanced,
+ size=minimal,auto outer arc,
+ width=2.1cm,octogon arc,
+ colback=red,colframe=white,colupper=white,
+ fontupper=\fontsize{7mm}{7mm}\selectfont\bfseries\sffamily,
+ halign=center,valign=center,
+ square,arc is angular,
+ borderline={0.2mm}{-1mm}{red} ]
+STOP
+\end{tcolorbox}
+\end{exdispExample*}
+\end{docTcbKey}
+
+\clearpage
+\begin{docTcbKey}[][doc new=2015-05-05]{arc is angular}{}{no value, initially unset}
+ Using this options applies a patch which straightens the corners arcs of
+ the boxes. The little arcs are replaced by little straight lines.
+ \begin{marker}
+ This patch is considered as an experimental feature.
+ It changes some of the original \tikzname\ code. This change may break
+ with future updates of \tikzname.
+ \end{marker}
+
+\begin{exdispExample*}{arc_is_angular}{sbs,lefthand ratio=0.6}
+\tcbset{colback=red!5!white,colframe=red!75!black,
+ arc=3mm}
+
+\begin{tcolorbox}[arc is angular]
+This is a \textbf{tcolorbox}.
+\end{tcolorbox}
+\begin{tcolorbox}[arc is curved]
+This is a \textbf{tcolorbox}.
+\end{tcolorbox}
+\end{exdispExample*}
+
+\end{docTcbKey}
+
+
+\begin{docTcbKey}[][doc new=2015-05-05]{arc is curved}{}{no value, initially set}
+ This option resets the patch from \refKey{/tcb/arc is angular}. The
+ original \tikzname\ code is activated.
\end{docTcbKey}
@@ -690,6 +1030,7 @@ This is a \textbf{tcolorbox}.
\end{docTcbKey}
+\subsubsection{Spacing}\enlargethispage*{2cm}
\begin{docTcbKey}{boxsep}{=\meta{length}}{no default, initially \texttt{1mm}}
Sets a common padding of \meta{length} between the text content and the
frame of the box. This value is added to the key values of
@@ -707,8 +1048,9 @@ This is a \textbf{tcolorbox}.
\end{dispExample}
\end{docTcbKey}
-
\clearpage
+
+
\begin{docTcbKey}{left}{=\meta{length}}{style, no default, initially \texttt{4mm}}
Sets the left space between all text parts and frame (additional to |boxsep|).
This is an abbreviation for setting
@@ -733,6 +1075,7 @@ This is a \textbf{tcolorbox}.
\end{dispExample}
\end{docTcbKey}
+
\begin{docTcbKey}{leftupper}{=\meta{length}}{no default, initially \texttt{4mm}}
Sets the left space between upper text and frame (additional to |boxsep|).
\begin{dispExample}
@@ -880,6 +1223,7 @@ This is the lower part.
\end{docTcbKey}
\clearpage
+\subsubsection{Size Shortcuts}
\begin{docTcbKey}{size}{=\meta{name}}{no default, initially \texttt{normal}}
Sets all geometry keys with exception of \refKey{/tcb/width} to
predefined length values.
@@ -1092,7 +1436,7 @@ and \refKey{/tcb/shadow} settings are slightly different.
The following examples use \refKey{/tcb/drop fuzzy shadow}.
\foreach \n in {rounded corners,sharpish corners,sharp corners}{
-\begin{tcolorbox}[enhanced jigsaw,frame empty,interior empty,fuzzy halo,center upper]
+\begin{tcolorbox}[enhanced jigsaw,frame empty,interior empty,fuzzy halo,halign=center]
\begin{tcolorbox}[enhanced,drop fuzzy shadow,width=\linewidth-1cm,
colback=red!5!white, colframe=red!75!black, fonttitle=\bfseries,
title=My title,\n,
@@ -1116,108 +1460,110 @@ skin variants, see \Vref{subsec:skinjigsaw}.
\begin{docTcbKey}{opacityframe}{=\meta{fraction}}{no default, initially \texttt{1.0}}
Sets the frame opacity of the box to the given \meta{fraction}.
-\begin{dispExample*}{sbs,lefthand ratio=0.6,segmentation style={pattern=crosshatch dots light steel blue}}
-\begin{tcolorbox}[opacityframe=0.25]
+\begin{exdispExample*}{opacityframe}{sbs,lefthand ratio=0.6,segmentation style={pattern=checkerboard light gray}}
+\begin{tcolorbox}[opacityframe=0.25,
+ colframe=red]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
-\end{dispExample*}
+\end{exdispExample*}
\end{docTcbKey}
\begin{docTcbKey}{opacityback}{=\meta{fraction}}{no default, initially \texttt{1.0}}
Sets the background opacity of the box to the given \meta{fraction}.
-\begin{dispExample*}{sbs,lefthand ratio=0.6,segmentation style={pattern=crosshatch dots light steel blue}}
-\begin{tcolorbox}[standard jigsaw,
+\begin{exdispExample*}{opacityback}{sbs,lefthand ratio=0.6,segmentation style={pattern=checkerboard light gray}}
+\begin{tcolorbox}[standard jigsaw,colframe=red,
opacityframe=0.5, opacityback=0.5]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
-\end{dispExample*}
+\end{exdispExample*}
\end{docTcbKey}
\begin{docTcbKey}{opacitybacktitle}{=\meta{fraction}}{no default, initially \texttt{1.0}}
Sets the title background opacity of the box to the given \meta{fraction}.
-\begin{dispExample*}{sbs,lefthand ratio=0.6,segmentation style={pattern=crosshatch dots light steel blue}}
-\begin{tcolorbox}[standard jigsaw,
+\begin{exdispExample*}{opacitybacktitle}{sbs,lefthand ratio=0.6,segmentation style={pattern=checkerboard light gray}}
+\begin{tcolorbox}[standard jigsaw,colframe=red,
opacityframe=0.5, opacitybacktitle=0.5,
title filled, title=This is a title]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
-\end{dispExample*}
+\end{exdispExample*}
\end{docTcbKey}
\begin{docTcbKey}{opacityfill}{=\meta{fraction}}{style, no default, initially \texttt{1.0}}
Sets the fill opacity for frame, interior and optionally the title background
to the given \meta{fraction}.
-\begin{dispExample*}{sbs,lefthand ratio=0.6,segmentation style={pattern=crosshatch dots light steel blue}}
-\begin{tcolorbox}[standard jigsaw,
+\begin{exdispExample*}{opacityfill}{sbs,lefthand ratio=0.6,segmentation style={pattern=checkerboard light gray}}
+\begin{tcolorbox}[standard jigsaw,colframe=red,
opacityfill=0.7, title=This is a title]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
-\end{dispExample*}
+\end{exdispExample*}
\end{docTcbKey}
\clearpage
\begin{docTcbKey}{opacityupper}{=\meta{fraction}}{no default, initially \texttt{1.0}}
Sets the text opacity of the upper box part to the given \meta{fraction}.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
+\begin{exdispExample*}{opacityupper}{sbs,lefthand ratio=0.6}
\begin{tcolorbox}[enhanced,opacityupper=0.5,
- interior style={pattern=crosshatch dots light steel blue}]
+ interior style={pattern=checkerboard light gray}]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
-\end{dispExample*}
+\end{exdispExample*}
\end{docTcbKey}
\begin{docTcbKey}{opacitylower}{=\meta{fraction}}{no default, initially \texttt{1.0}}
Sets the text opacity of the lower box part to the given \meta{fraction}.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
+\begin{exdispExample*}{opacitylower}{sbs,lefthand ratio=0.6}
\begin{tcolorbox}[enhanced,opacitylower=0.5,
- interior style={pattern=crosshatch dots light steel blue}]
+ interior style={pattern=checkerboard light gray}]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}
-\end{dispExample*}
+\end{exdispExample*}
\end{docTcbKey}
\begin{docTcbKey}{opacitytext}{=\meta{fraction}}{no default, initially \texttt{1.0}}
Sets the text opacity of the upper and the lower box part to the given \meta{fraction}.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
+\begin{exdispExample*}{opacitytext}{sbs,lefthand ratio=0.6}
\begin{tcolorbox}[enhanced,opacitytext=0.5,
- interior style={pattern=crosshatch dots light steel blue}]
+ interior style={pattern=checkerboard light gray}]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}
-\end{dispExample*}
+\end{exdispExample*}
\end{docTcbKey}
\begin{docTcbKey}{opacitytitle}{=\meta{fraction}}{no default, initially \texttt{1.0}}
Sets the text opacity of the box title to the given \meta{fraction}.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
+\begin{exdispExample*}{opacitytitle}{sbs,lefthand ratio=0.6}
\begin{tcolorbox}[enhanced,opacitytitle=0.7,
+ coltitle=black,
fonttitle=\bfseries,title=This is a title,
- title style={pattern=crosshatch dots light steel blue}]
+ title style={pattern=checkerboard light gray}]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
-\end{dispExample*}
+\end{exdispExample*}
\end{docTcbKey}
-\begin{dispExample*}{segmentation style={pattern=crosshatch dots light steel blue}}
+\begin{exdispExample*}{opacity_general}{segmentation style={pattern=checkerboard light gray}}
\begin{tcolorbox}[enhanced jigsaw,fonttitle=\bfseries,title=This is a title,
opacityframe=0.5,opacityback=0.25,opacitybacktitle=0.25,opacitytext=0.8,
colback=red!5!white,colframe=red!75!black,colbacktitle=yellow!20!red]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
-\end{dispExample*}
+\end{exdispExample*}
\clearpage
-\subsection{Height Control}
+\subsection{Height Control}\label{sec:heightcontrol}
In a typical usage scenario, the height of a |tcolorbox| is computed automatically
to fit the content. Nevertheless, the height can be set to a fixed value
or to fit commonly for several boxes, e.\,g. if boxes are set side by side.
@@ -1358,7 +1704,23 @@ The counterpart for breakable boxes is \refKey{/tcb/height fixed for}.
\end{docTcbKey}
{\tcbusetemp}
-%\clearpage
+\clearpage
+
+\begin{docTcbKey}[][doc new=2015-05-05]{square}{}{style, no value}
+ Sets \refKey{/tcb/height} to match the width of the colored box.
+\begin{exdispExample*}{square}{sbs,lefthand ratio=0.6}
+\begin{tcolorbox}[width=3cm,
+ colback=red!5!white,
+ colframe=red!75!black,
+ halign=center,valign=center,
+ square]
+This is a \textbf{tcolorbox}.
+\end{tcolorbox}
+\end{exdispExample*}
+\end{docTcbKey}
+
+
+
\begin{docTcbKey}{space}{=\meta{fraction}}{no default, initially 0}
If the height of a |tcolorbox| is not the natural height, the space
difference between the forced and the natural size is distributed
@@ -1368,7 +1730,7 @@ The counterpart for breakable boxes is \refKey{/tcb/height fixed for}.
which is added to the upper part, the rest is added to the lower part.
If there is no lower part, then all of the space is added to
the upper part always.
-\begin{dispExample}
+\begin{exdispExample}{fraction}
\tcbset{width=(\linewidth-2mm)/3,before=,after=\hfill,
colframe=blue!75!black,colback=white,height=3cm}
@@ -1378,7 +1740,7 @@ colframe=blue!75!black,colback=white,height=3cm}
\tcblower
This is the lower part.
\end{tcolorbox}}
-\end{dispExample}
+\end{exdispExample}
\end{docTcbKey}
\begin{docTcbKey}{space to upper}{}{style}
@@ -1391,10 +1753,11 @@ colframe=blue!75!black,colback=white,height=3cm}
to the lower part (if there is any).
\end{docTcbKey}
+\clearpage
\begin{docTcbKey}{space to both}{}{style}
This is an abbreviation for |space=0.5|, i.\,e. the extra space
equally distributed between the upper and the lower part.
-\begin{dispExample}
+\begin{exdispExample}{space_to_both}
\tcbset{width=(\linewidth-2mm)/3,before=,after=\hfill,
colframe=blue!75!black,colback=white,height=3cm}
@@ -1404,11 +1767,11 @@ colframe=blue!75!black,colback=white,height=3cm}
\tcblower
This is the lower part.
\end{tcolorbox}}
-\end{dispExample}
+\end{exdispExample}
\end{docTcbKey}
-\clearpage
+
\begin{docTcbKey}{split}{=\meta{fraction}}{no default}
If the height of a |tcolorbox| is not the natural height, the
\meta{fraction} with a value between 0 and 1 determines the positioning
@@ -1429,29 +1792,6 @@ This is the lower part with a lot of text in several lines.
\end{docTcbKey}
-\begin{docTcbKey}{valign}{=\meta{alignment}}{no default, initially |top|}
- If the height of a |tcolorbox| is not the natural height, |valign|
- determines the vertical \meta{alignment} of the upper part.
- Feasible values are \docValue{top}, \docValue{center}, and \docValue{bottom}. For a box with natural
- height, these values are meaningless.
-\begin{dispExample}
-\tcbset{width=(\linewidth-2mm)/3,before=,after=\hfill,
-colframe=blue!75!black,colback=white,height=2cm}
-
-\foreach \myalign in {top,center,bottom}
-{\begin{tcolorbox}[valign=\myalign]
- This is a \textbf{tcolorbox}.
-\end{tcolorbox}}
-\end{dispExample}
-\end{docTcbKey}
-
-
-\begin{docTcbKey}{valign lower}{=\meta{alignment}}{no default, initially |top|}
- This key has the same meaning for the lower part as |valign|
- for the upper part, i.\,e. it determines
- the vertical \meta{alignment} of the lower part with feasible values
- |top|, |center|, and |bottom|.
-\end{docTcbKey}
\clearpage
@@ -1630,136 +1970,6 @@ This is the lower part.
\clearpage
-\begin{docTcbKey}{center title}{}{style, no value, initially unset}
- This style sets \refKey{/tcb/before title} to |\centering|.
-\begin{dispExample}
-\tcbset{center title,colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My title]
-This is a \textbf{tcolorbox}.
-\end{tcolorbox}
-\end{dispExample}
-\end{docTcbKey}
-
-
-\begin{docTcbKey}{center upper}{}{style, no value, initially unset}
- This style sets \refKey{/tcb/before upper} to |\centering|.
-\begin{dispExample}
-\tcbset{center upper,colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My title]
-This is a \textbf{tcolorbox}.
-\end{tcolorbox}
-\end{dispExample}
-\end{docTcbKey}
-
-
-\begin{docTcbKey}{center lower}{}{style, no value, initially unset}
- This style sets \refKey{/tcb/before lower} to |\centering|.
-\begin{dispExample}
-\tcbset{center lower,colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My title]
-This is a \textbf{tcolorbox}.
-\tcblower
-This is the lower part.
-\end{tcolorbox}
-\end{dispExample}
-\end{docTcbKey}
-
-
-\clearpage
-\begin{docTcbKey}{flushleft title}{}{style, no value, initially unset}
- This style sets \refKey{/tcb/before title} to |\raggedright|.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
-\tcbset{flushleft title,colback=red!5!white,
- colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My title which is
- quite long but always flushed left]
-This is a \textbf{tcolorbox}.
-\end{tcolorbox}
-\end{dispExample*}
-\end{docTcbKey}
-
-
-\begin{docTcbKey}{flushleft upper}{}{style, no value, initially unset}
- This style sets \refKey{/tcb/before upper} to |\raggedright|.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
-\tcbset{flushleft upper,colback=red!5!white,
- colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My title]
-This is a \textbf{tcolorbox}. Here, the
-content is flushed left.
-You see the effect on the right hand side.
-\end{tcolorbox}
-\end{dispExample*}
-\end{docTcbKey}
-
-
-\begin{docTcbKey}{flushleft lower}{}{style, no value, initially unset}
- This style sets \refKey{/tcb/before lower} to |\raggedright|.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
-\tcbset{flushleft lower,colback=red!5!white,
- colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My title]
-This is a \textbf{tcolorbox}. The upper part
-is not flushed left or right. This could be
-unpleasant for small boxes.
-\tcblower
-This is the lower part. Here, the
-content is flushed left.
-You see the effect on the right hand side.
-\end{tcolorbox}
-\end{dispExample*}
-\end{docTcbKey}
-
-
-\clearpage
-\begin{docTcbKey}{flushright title}{}{style, no value, initially unset}
- This style sets \refKey{/tcb/before title} to |\raggedleft|.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
-\tcbset{flushright title,colback=red!5!white,
- colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My title]
-This is a \textbf{tcolorbox}.
-\end{tcolorbox}
-\end{dispExample*}
-\end{docTcbKey}
-
-
-\begin{docTcbKey}{flushright upper}{}{style, no value, initially unset}
- This style sets \refKey{/tcb/before upper} to |\raggedleft|.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
-\tcbset{flushright upper,colback=red!5!white,
- colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My title]
-This is a \textbf{tcolorbox}.
-\end{tcolorbox}
-\end{dispExample*}
-\end{docTcbKey}
-
-
-\begin{docTcbKey}{flushright lower}{}{style, no value, initially unset}
- This style sets \refKey{/tcb/before lower} to |\raggedleft|.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
-\tcbset{flushright lower,colback=red!5!white,
- colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My title]
-This is a \textbf{tcolorbox}.
-\tcblower
-This is the lower part.
-\end{tcolorbox}
-\end{dispExample*}
-\end{docTcbKey}
-
-
-\clearpage
\begin{marker}
If \refKey{/tcb/tabularx} or \refKey{/tcb/tabularx*} are used, one cannot
have a lower part.
@@ -1902,23 +2112,6 @@ Lower part.
\end{docTcbKey}
-
-\clearpage
-\begin{docTcbKey}{code}{=\meta{code}}{no default, initially unset}
- The given \meta{code} is executed immediately. This option is useful
- to place some arbitrary code into an option list.
-\begin{dispExample}
-\tcbset{colback=red!5!white,colframe=red!75!black,
- code={Useless at this spot but functional.},
- fonttitle=\bfseries}
-
-\begin{tcolorbox}[code={\newcommand{\mycommand}{\textit{working}}},
- title=My \mycommand\ title]
-This is a \textbf{tcolorbox}.
-\end{tcolorbox}
-\end{dispExample}
-\end{docTcbKey}
-
\clearpage
\subsection{Overlays}\label{subsec:overlays}
With an overlay, arbitrary \meta{graphical code} can be added to a
@@ -2219,11 +2412,11 @@ This is the lower (\textit{right-handed}) part.
\end{docTcbKey}
-\begin{docTcbKey}[][doc updated=2015-02-06]{sidebyside align}{=\meta{alignment value}}{no default, initially |center|}
- Sets the vertical alignment for the left-handed and right-handed part.
+\begin{docTcbKey}[][doc updated=2015-02-06]{sidebyside align}{=\meta{alignment}}{no default, initially |center|}
+ Sets the vertical \meta{alignment} for the left-handed and right-handed part.
Feasible values are \docValue{center}, \docValue{top}, \docValue{bottom},
\docValue{center seam}, \docValue{top seam}, and \docValue{bottom seam}.
-\begin{dispExample}
+\begin{exdispExample}{sidebyside_align}
\tcbset{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries,nobeforeafter,
left=2mm,right=2mm,sidebyside,sidebyside gap=6mm,width=(\linewidth-2mm)/3}
@@ -2242,7 +2435,7 @@ This is a text which is too long for one line.
\tcblower
This is a short text.
\end{tcolorbox}
-\end{dispExample}
+\end{exdispExample}
\clearpage
\docValue{center}, \docValue{top}, and \docValue{bottom} are identical
@@ -3260,6 +3453,60 @@ Test\dotfill
The resulting box behaves analogue to |\fbox|.
\end{docTcbKey}
+\clearpage
+\begin{docTcbKey}[][doc new=2015-03-23]{tcbox width}{=\meta{mode}}{no default, initially \texttt{auto}}
+Controls how \refCom{tcbox} respects a \refKey{/tcb/width} setting.
+Feasible values for \meta{mode} are:
+\begin{itemize}
+\item\docValue{auto} (initial setting):
+ ignore \refKey{/tcb/width} and set box width according to its content.
+\item\docValue{auto limited}:
+ Set box width according to its content, if it is smaller than \refKey{/tcb/width}.
+ Otherwise, the content is set like in a \refEnv{tcolorbox} with line breaks.
+\item\docValue{forced center}:
+ Set box width according to \refKey{/tcb/width}.
+ The content is centered and may overlap the box borders.
+\item\docValue{forced left}:
+ Set box width according to \refKey{/tcb/width}.
+ The content is left aligned and may overlap the box borders.
+\item\docValue{forced right}:
+ Set box width according to \refKey{/tcb/width}.
+ The content is right aligned and may overlap the box borders.
+\item\docValue{minimum center}:
+ Set box width according to \refKey{/tcb/width}, if the content fits into.
+ The content is centered and the box width may grow beyond \refKey{/tcb/width}.
+\item\docValue{minimum left}:
+ Set box width according to \refKey{/tcb/width}, if the content fits into.
+ The content is left aligned and the box width may grow beyond \refKey{/tcb/width}.
+\item\docValue{minimum right}:
+ Set box width according to \refKey{/tcb/width}, if the content fits into.
+ The content is right aligned and the box width may grow beyond \refKey{/tcb/width}.
+\end{itemize}
+
+\enlargethispage*{1cm}
+
+\begin{exdispExample}{tcbox_width}
+\tcbset{size=small,on line,before upper=\strut,
+ colframe=blue!75!black,colback=blue!5!white,
+ fontupper=\normalsize,width=4cm}
+
+\tcbox[tcbox width=auto]{auto}\qquad
+\tcbox[tcbox width=auto limited]{auto limited}\qquad
+\tcbox[tcbox width=auto limited]{auto limited with long text}\\
+\tcbox[tcbox width=forced center]{forced center}\qquad
+\tcbox[tcbox width=forced center]{forced center with long text}\\
+\tcbox[tcbox width=forced left]{forced left}\qquad
+\tcbox[tcbox width=forced left]{forced left with long text}\\
+\tcbox[tcbox width=forced right]{forced right}\qquad
+\tcbox[tcbox width=forced right]{forced right with long text}\\
+\tcbox[tcbox width=minimum center]{minimum center}\qquad
+\tcbox[tcbox width=minimum center]{minimum center with long text}\\
+\tcbox[tcbox width=minimum left]{minimum left}\qquad
+\tcbox[tcbox width=minimum left]{minimum left with long text}\\
+\tcbox[tcbox width=minimum right]{minimum right}\qquad
+\tcbox[tcbox width=minimum right]{minimum right with long text}
+\end{exdispExample}
+\end{docTcbKey}
%\subsection{Skins}
@@ -3519,3 +3766,19 @@ The \meta{options} will only be used on the specified |beamer| frames.
\end{document}
\end{dispListing}
\end{docTcbKey}
+
+
+\begin{docTcbKey}{code}{=\meta{code}}{no default, initially unset}
+ The given \meta{code} is executed immediately. This option is useful
+ to place some arbitrary code into an option list.
+\begin{dispExample}
+\tcbset{colback=red!5!white,colframe=red!75!black,
+ code={Useless at this spot but functional.},
+ fonttitle=\bfseries}
+
+\begin{tcolorbox}[code={\newcommand{\mycommand}{\textit{working}}},
+ title=My \mycommand\ title]
+This is a \textbf{tcolorbox}.
+\end{tcolorbox}
+\end{dispExample}
+\end{docTcbKey}
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.documentation.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.documentation.tex
index 5542303fe98..927d0e41b1e 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.documentation.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.documentation.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Library \mylib{documentation}}\label{sec:documentation}
+\section{Library \mylib{documentation}}\label{sec:documentation}%
+\tcbset{external/prefix=external/documentation_}%
This library has the single purpose to support \LaTeX\ package documentations
like this one. Actually, the visual nature follows the approach from
Till Tantau's |pgf| \cite{tantau:2013a} documentation.
@@ -16,13 +17,17 @@ This also loads the library \mylib{listings}, see \Vref{sec:listings},
the library \mylib{skins}, see \Vref{sec:skins},
the library \mylib{xparse}\tcbdocmarginnote{\tcbdocnew{2014-09-19}}, see \Vref{sec:xparse},
and a bunch of packages, namely
-|doc|, |pifont|, |marvosym|, |makeidx|, |marginnote|, |refcount|, and |hyperref|.
+|pifont|, |marvosym|, |makeidx|, |marginnote|, |refcount|, and |hyperref|.
\begin{marker}
The package |makeidx| is loaded only, if \docAuxCommand*{printindex} is
\emph{not} already defined. Therefore, one can include an alternative to |makeidx| like
|imakeidx| \emph{before} the library |documentation| is used.
\end{marker}
+\begin{marker}
+The package |marginnote| is loaded only, if \docAuxCommand*{marginnote} is
+\emph{not} already defined.
+\end{marker}
For UTF-8 support, load:
\begin{dispListing}
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.external.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.external.tex
index c8736787d2c..0d570cf1337 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.external.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.external.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Library \mylib{external}}\label{sec:external}
+\section{Library \mylib{external}}\label{sec:external}%
+\tcbset{external/prefix=external/external_}%
The library is loaded by a package option or inside the preamble by:
\begin{dispListing}
\tcbuselibrary{external}
@@ -352,6 +353,13 @@ parameters.
Note that this option is ignored for \refKey{/tcb/externalize listing}.
\end{extTcbKey}
+\begin{extTcbKey}[][doc new=2015-05-05]{environment with percent}{\colOpt{=true\textbar false}}{default |true|,
+ initially |true|}
+If set to |true|, the |\begin| and |\end| code of \refKey{/tcb/external/environment}
+is appended with a percent sign. For verbatim environments, this option
+typically has to be se to |false|.
+\end{extTcbKey}
+
\begin{extTcbKey}[][doc new=2015-03-11]{minipage}{\colOpt{=\meta{length}}}{default \texttt{\cs{linewidth}},
initially unset}
@@ -393,7 +401,7 @@ Note that this option is ignored for \refKey{/tcb/externalize listing}.
\end{dispExample}
\end{extTcbKey}
-
+\enlargethispage*{1cm}
\begin{extTcbKey}[][doc new=2015-03-11]{input source on error}{\colOpt{=true\textbar false}}{default |true|,
initially |true|}
If set to |true|, the source code of the snippet is loaded instead of
@@ -410,10 +418,51 @@ in this case.
\clearpage
-\begin{extTcbKey}[][doc new=2015-03-11]{preamble}{=\meta{macro}}{no default,
+
+\begin{extTcbKey}[][doc new=2015-05-05]{preclass}{=\meta{code}}{no default,
+ initially unset}
+ The given \meta{code} is added before the snippet document.
+ Typically, this means before |\documentclass|.
+ This is not used for compilation of the main document.
+\end{extTcbKey}
+
+
+\begin{extTcbKey}[][doc new=2015-05-05]{PassOptionsToPackage}{=\marg{options}\marg{package}}{no default,
+ initially unset}
+ The given \meta{options} are passed to the given \meta{package} for
+ the snippet document. This is a shortcut for using \refKey{/tcb/external/preclass}
+ with |\PassOptionsToPackage|.
+ This not used for compilation of the main document.
+\end{extTcbKey}
+
+
+\begin{extTcbKey}[][doc new=2015-05-05]{PassOptionsToClass}{=\marg{options}\marg{class}}{no default,
initially unset}
- The give \meta{macro} is added to the preamble of the snippet document.
- It is not used for compilation of the main document.
+ The given \meta{options} are passed to the given \meta{class} for
+ the snippet document. This is a shortcut for using \refKey{/tcb/external/preclass}
+ with |\PassOptionsToClass|.
+ This not used for compilation of the main document.
+\end{extTcbKey}
+
+
+\begin{extTcbKey}[][doc new=2015-05-05]{clear preclass}{}{no value}
+ Removes all additional \refKey{/tcb/external/preclass} settings.
+\end{extTcbKey}
+
+
+
+\begin{extTcbKey}[][doc new=2015-03-11]{preamble}{=\meta{code}}{no default,
+ initially unset}
+ The given \meta{code} is added to the preamble of the snippet document.
+ This is not used for compilation of the main document.
+\end{extTcbKey}
+
+
+\begin{extTcbKey}[][doc new=2015-05-05]{preamble tcbset}{=\meta{options}}{no default,
+ initially unset}
+ The given \meta{options} are added as parameter for \refCom{tcbset}
+ to the preamble of the snippet document.
+ This are not used for compilation of the main document.
\end{extTcbKey}
@@ -439,6 +488,7 @@ in this case.
+\clearpage
\begin{docCommand}[doc new=2015-03-11]{newtcbexternalizeenvironment}{\marg{newenv}\marg{env}\marg{options}\marg{begin}\marg{end}}
Creates a new environment \meta{newenv} which is based on
\refEnv{tcbexternal}. This enviroment takes \emph{at least}
@@ -471,7 +521,6 @@ a & This table is externalized as snippet. Obviously,
\end{docCommand}
-\clearpage
\begin{docCommand}[doc new=2015-03-11]{newtcbexternalizetcolorbox}{\marg{newenv}\marg{env}\marg{options}\marg{begin end options}}
Creates a new environment \meta{newenv} which is based on
\refEnv{tcbexternal}. This enviroment takes \emph{at least}
@@ -515,3 +564,48 @@ This is my \LaTeX\ box.
is created by |\renewenvironment| instead of |\newenvironment|.
\end{docCommand}
+
+\subsection{Troubleshooting and FAQ}\label{subsec:external_troubleshooting}
+
+\begin{itemize}
+
+\item\textbf{I use the default settings, but the |external| subdirectory is
+ not created.}\\
+ Depending on operating system and compiler, an |external| subdirectory is
+ automatically created or not. If not, create such a directory manually
+ or add the following to your document:
+\begin{dispListing}
+\immediate\write18{mkdir external}
+\end{dispListing}
+or
+\begin{dispListing}
+\immediate\write18{mkdir -p external}
+\end{dispListing}
+ If the combination of \refKey{/tcb/external/prefix} and chosen snippet
+ name points to another subdirectory than |external|, this has to be
+ adapted.
+
+\item\textbf{I use the |minted| package and I get a cache directory for
+ every externalized snippet.}\\
+ To avoid this problem, there are several ways.
+ \begin{itemize}
+ \item If you do not need |minted| inside the snippet code, you may use
+ |\usepackage{minted}| \emph{after} \refCom{tcbEXTERNALIZE}
+ or use \refCom{tcbifexternal} to switch |minted| off for the external code.
+ If |minted| is already included by another package, add the following to
+ your preamble:
+\begin{dispListing}
+\tcbset{external/PassOptionsToPackage={draft}{minted}}
+\end{dispListing}
+ \item If |minted| is needed for the snippet code, caching can be switched
+ off by adding the following to your preamble:
+\begin{dispListing}
+\tcbset{external/PassOptionsToPackage={cache=false}{minted}}
+\end{dispListing}
+ Alternatively, the |cachedir| option of |minted| may be used to redirect
+ the cache.
+ \end{itemize}
+
+
+\end{itemize}
+
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.filling.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.filling.tex
index 89e159eba81..e577f0fe1d3 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.filling.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.filling.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{\tikzname\ Image and Picture Fill Extensions; Auxiliary Macros}\label{sec:tikzimagefilling}
+\section{\tikzname\ Image and Picture Fill Extensions; Auxiliary Macros}\label{sec:tikzimagefilling}%
+\tcbset{external/prefix=external/filling_}%
The \mylib{skins} library adds some image and picture fill options to the vast option set of
\tikzname\ \cite{tantau:2013a}. These options can be used in any |tikzpicture|.
For the following options, the \mylib{skins} library has to be loaded
@@ -414,12 +415,50 @@ See \Vref{sec:skins} for the documentation of all other options of the \mylib{sk
\end{dispExample*}
+\subsection{Straightening of the Arcs}
+
+\begin{marker}
+This patch is considered as an experimental feature.
+It changes some of the original \tikzname\ code. This change may break
+with future updates of \tikzname.
+\end{marker}
+
+\begin{docCommand}[doc new=2014-05-05]{tcbpatcharcangular}{}
+The \tikzname\ package provides a nice |rounded corners| option to replace
+all corners by little arcs. |\tcbpatcharcangular| is a patch which
+straightens the arcs. To say it more prosaic, the little arcs are replaced
+by little straight lines.
+
+\begin{dispExample*}{sbs,lefthand ratio=0.66}
+\begin{tikzpicture}
+ \draw[thick,rounded corners=8pt]
+ (0,0) -- (0,2) -- (1,3.25) -- (2,2) -- (2,0)
+ -- (0,2) -- (2,2) -- (0,0) -- (2,0);
+ \tcbpatcharcangular
+ \draw[thick,rounded corners=8pt,xshift=2.5cm]
+ (0,0) -- (0,2) -- (1,3.25) -- (2,2) -- (2,0)
+ -- (0,2) -- (2,2) -- (0,0) -- (2,0);
+\end{tikzpicture}
+\end{dispExample*}
+
+\end{docCommand}
+
+
+\begin{docCommand}[doc new=2014-05-05]{tcbpatcharcround}{}
+This macro reverts \refCom{tcbpatcharcangular}, i.e., the patch from
+\refCom{tcbpatcharcangular} is replaced by the original code.
+\end{docCommand}
+
+
\clearpage
\subsection{Extracting Node Dimensions}
The following auxiliary macros are defined by the \mylib{skins} library.
They allow to determine the width and height of an arbitrary \tikzname\ node.
To be more specific, they determine the east-to-west and the north-to-south dimensions
which may be not the maximal dimensions for a non-rectangular node.
+Note that the following dimensions are measured exactly including the line width
+of the border line. If a new rectangle or node with the same dimensions
+and a border is to be drawn, this border width has to be substracted.
\begin{docCommand}[doc new=2014-09-19]{tcbsettowidthofnode}{\marg{register}\marg{node}}
Sets the east-to-west dimension of the given \meta{node}
@@ -444,8 +483,14 @@ which may be not the maximal dimensions for a non-rectangular node.
\node[align=center,draw=red,fill=yellow] (A) {This is my\\example node};
\tcbsetmacrotowidthofnode\mywidth{A}
\tcbsetmacrotoheightofnode\myheight{A}
- \path[draw=blue,fill=blue!25!white] ([xshift=2mm]A.south east)
+ \path[fill=blue!25!white] % rectangle widthout border
+ ([xshift=2mm]A.south east)
rectangle node{Copy} +(\mywidth,\myheight);
+ \node[draw=blue,fill=blue!25!white, % standard border width 0.4pt
+ minimum width=\mywidth-0.4pt, % minus width of border
+ minimum height=\myheight-0.4pt % minus height of border
+ ]
+ at ([xshift=5cm]A) {Copy 2};
\end{tikzpicture}
\end{dispExample}
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex
index 0c4b350e3cb..8ff8fa07923 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Library \mylib{fitting}}\label{sec:fitting}
+\section{Library \mylib{fitting}}\label{sec:fitting}%
+\tcbset{external/prefix=external/fitting_}%
The library is loaded by a package option or inside the preamble by:
\begin{dispListing}
\tcbuselibrary{fitting}
@@ -13,7 +14,7 @@ The library is loaded by a package option or inside the preamble by:
Creates a colored box where the given \meta{box content} is fitted to
the width and height of the box. A |tcboxfit| has to have a fixed height.
If no fixed height is given, a square box is constructed.
- In principal, most \meta{options} for a \refEnv{tcolorbox}
+ In principle, most \meta{options} for a \refEnv{tcolorbox}
can be used for |\tcboxfit| with some restrictions. A |\tcboxfit| cannot have
a lower part and cannot be broken.
@@ -54,7 +55,7 @@ elaborate methods to create new commands.
\begin{dispExample*}{sbs,lefthand ratio=0.6}
\newtcboxfit{\mybox}{colback=red!5!white,
colframe=red!75!black,width=4cm,
- height=1.5cm,center upper}
+ height=1.5cm,halign=center}
\mybox{This is my own box.}\par
\mybox{This is my own box with more text
@@ -66,7 +67,7 @@ elaborate methods to create new commands.
\newtcboxfit{\mybox}[2]{colback=red!5!white,
colframe=red!75!black,fonttitle=\bfseries,
boxsep=1mm,left=0mm,right=0mm,top=0mm,
- bottom=0mm,center upper,valign=center,
+ bottom=0mm,halign=center,valign=center,
nobeforeafter,width=#1,height=#2}
\mybox{2.5cm}{1cm}{First box}%
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.graphics.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.graphics.tex
index f6302028a86..6545a51ef7d 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.graphics.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.graphics.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Inclusion of Boxed Image Files}\label{sec:includegraphics}
+\section{Inclusion of Boxed Image Files}\label{sec:includegraphics}%
+\tcbset{external/prefix=external/graphics_}%
The \mylib{skins} library adds some commands to conveniently include
boxed image files.
For the following macros and options, the \mylib{skins} library has to be loaded
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.hooks.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.hooks.tex
index 8dbd52789e2..ffaa81a64b1 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.hooks.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.hooks.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Library \mylib{hooks}}\label{sec:hooks}
+\section{Library \mylib{hooks}}\label{sec:hooks}%
+\tcbset{external/prefix=external/hooks_}%
The library is loaded by a package option or inside the preamble by:
\begin{dispListing}
\tcbuselibrary{hooks}
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex
index d33aebfe9e0..96141a8b313 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Initialization Option Keys}\label{sec:initkeys}
+\section{Initialization Option Keys}\label{sec:initkeys}%
+\tcbset{external/prefix=external/initoptions_}%
The \emph{initialization} options are only applicable for the generation
of new environments and commands based on |tcolorbox| and friends.
Particularly, they can be used for
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.intro.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.intro.tex
index 7161bed29ac..a46240ef4df 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.intro.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.intro.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Introduction}
+\section{Introduction}%
+\tcbset{external/prefix=external/intro_}%
The package originates from the first edition of my book
\flqq{\citetitle{sturm:2014g}\frqq~\cite{sturm:2014g}
in about 2006.
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 86b63b18dbf..228c8996513 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex
@@ -4,7 +4,8 @@
\section{Libraries
\mylib{listings},
\mylib{listingsutf8}, and
- \mylib{minted}}\label{sec:listings}
+ \mylib{minted}}\label{sec:listings}%
+\tcbset{external/prefix=external/listings_}%
\subsection{Loading the Libraries}
In contrast to other |tcolorbox| libraries, the libraries
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.picturecredits.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.picturecredits.tex
index 2a9ea227aba..156e075d905 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.picturecredits.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.picturecredits.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Picture Credits}
+\section{Picture Credits}%
+\tcbset{external/prefix=external/picturecredits_}%
The following pictures were used inside this documentation.
\DeclareTotalTColorBox{\diabox}{ O{} v m }
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.quickref.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.quickref.tex
index ff8fd6cc9cb..f9162deaf5b 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.quickref.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.quickref.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Quick Reference}\label{sec:quickref}
+\section{Quick Reference}\label{sec:quickref}%
+\tcbset{external/prefix=external/quickref_}%
\makeatletter
\begin{tcolorbox}[enhanced,title={tcolorbox},
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.raster.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.raster.tex
index cf39926214d..4590d2bb6ee 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.raster.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.raster.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Library \mylib{raster}}\label{sec:raster}
+\section{Library \mylib{raster}}\label{sec:raster}%
+\tcbset{external/prefix=external/raster_}%
The library is loaded by a package option or inside the preamble by:
\begin{dispListing}
\tcbuselibrary{raster}
@@ -73,7 +74,7 @@ break into an arbitrary series of pages.
\begin{tcolorbox}[rounded corners=northeast,boxrule=0pt,
watermark graphics=goldshade.png]\end{tcolorbox}
\tcboxfit{\lipsum[2]}
- \begin{tcolorbox}[valign=center,center upper]Nine Boxes.\end{tcolorbox}
+ \begin{tcolorbox}[valign=center,halign=center]Nine Boxes.\end{tcolorbox}
\tcboxfit{\lipsum[3]}
\begin{tcolorbox}[rounded corners=southwest,boxrule=0pt,
watermark graphics=goldshade.png]\end{tcolorbox}
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.recording.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.recording.tex
index 38d5859f0fb..639402e98e0 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.recording.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.recording.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Recording}\label{sec:recording}
+\section{Recording}\label{sec:recording}%
+\tcbset{external/prefix=external/recording_}%
The package provides some macros and options to take \emph{records} during
compilation. This is done by \LaTeX\ file operations to save some data
to a file for later usage. The main application scenario is depicted in
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty
index bb8cc39535a..4df9532fc30 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty
@@ -107,6 +107,7 @@
endtcolorbox,endtcbverbatimwrite,newtcolorbox,newtcbox,newtcboxfit,tcbusetemp,tcbtitle,tcbtitletext,
tcblower,tcbox,tcboxfit,tcbset,tcbuselibrary,tcolorbox,tcbverbatimwrite,tcbsetforeverylayer,tcbsubtitle,
tcolorboxenvironment,tcblistof,tcbstartrecording,tcbrecord,tcbstoprecording,tcbinputrecords,
+ tcbpatcharcangular,tcbpatcharcround,
% listings
endtcblisting,newtcblisting,newtcbinputlisting,
tcblisting,tcbinputlisting,tcbuselistingtext,tcbuselistinglisting,tcbusetemplisting,
@@ -158,9 +159,12 @@
innerbox/.style={reset,documentation listing style=mydocumentation,
docexample/.style={docexample original},%
},
- base example/.style={bicolor,
+ beforeafter example/.style={
before skip=4pt plus 2pt minus 1pt,
- after skip=8pt plus 4pt minus 2pt,
+ after skip=8pt plus 4pt minus 2pt
+ },
+ base example/.style={bicolor,
+ beforeafter example,arc is angular,
colback=white,opacityback=0.87,
fontlower=\footnotesize,
frame style={top color=Green_Dark,bottom color=Blue_Dark},
@@ -175,11 +179,9 @@
before skip=\medskipamount,after skip=\medskipamount,frame style={}},
}
-\newtcbexternalizetcolorbox{exdispExample}{dispExample}{minipage}%
- {before skip=4pt plus 2pt minus 1pt,after skip=8pt plus 4pt minus 2pt}
+\newtcbexternalizetcolorbox{exdispExample}{dispExample}{environment with percent=false,minipage}{beforeafter example}
-\newtcbexternalizetcolorbox{exdispExample*}{dispExample*}{minipage}%
- {before skip=4pt plus 2pt minus 1pt,after skip=8pt plus 4pt minus 2pt}
+\newtcbexternalizetcolorbox{exdispExample*}{dispExample*}{environment with percent=false,minipage}{beforeafter example}
\newcommand{\inputpreamblelisting}[1]{%
\tcbinputlisting{title=Definition in the preamble:,
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex
index aaf54ac37ed..00421e26e2f 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Library \mylib{skins}}\label{sec:skins}
+\section{Library \mylib{skins}}\label{sec:skins}%
+\tcbset{external/prefix=external/skins_}%
The library is loaded by a package option or inside the preamble by:
\begin{dispListing}
\tcbuselibrary{skins}
@@ -1146,7 +1147,7 @@ Defines a |Tikz| scope which clips to the frame area path.
\begin{docEnvironment}{tcbinvclipframe}{}
Defines a |Tikz| scope which clips to the \emph{outside} of the frame area path.
-\begin{dispExample}
+\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}}
\tcbset{enhanced jigsaw,fonttitle=\bfseries,opacityback=0.35,colback=blue!5!white,
frame style={left color=red!75!black,right color=red!10!yellow}}
@@ -1165,7 +1166,7 @@ Defines a |Tikz| scope which clips to the \emph{outside} of the frame area path.
\end{tcbinvclipframe}}]
\lipsum[2]
\end{tcolorbox}
-\end{dispExample}
+\end{dispExample*}
\end{docEnvironment}
\clearpage
@@ -1510,126 +1511,8 @@ used on the same |tcolorbox|. They are drawn \emph{before} the box frame is draw
Removes all shadows if set before.
\end{docTcbKey}
+\subsubsection{Common Shadows and Halos}
-\begin{docTcbKey}{shadow}{=\marg{xshift}\marg{yshift}\marg{offset}\marg{options}}{no default}
- Adds a new shadow to the stack of shadows.
- This shadow is follows the outline of the |tcolorbox| but is shifted by
- \meta{xshift} and \meta{yshift}. The \meta{offset} value is a distance value
- from the frame outline. A positive \meta{offset} value shrinks the shadow
- and a negative \meta{offset} value enlarges the shadow.
- The shadow is filled along a \tikzname\ path with the given \tikzname\ \meta{options}.\\
- The shadows adapt to the rounded corners of the |tcolorbox|. An shrinked shadow
- will switch to sharp corners if necessary, an enlarged shadow may become
- more rounded depending on several factors. But \refKey{/tcb/sharp corners}
- have sharp shadows.
- \begin{marker}
- Shadows are not considered for the bounding box computation by default.
- Large shadows may be overlaped by the following content. But, the
- bounding box can be adapted if necessary.
- \end{marker}
-
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
-\tcbset{enhanced,colback=red!5!white,
- colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My own shadow,
- shadow={2mm}{-1mm}{0mm}{black!50!white}]
-This is a tcolorbox.
-\end{tcolorbox}
-\par\bigskip
-\begin{tcolorbox}[title=Another shadow,
- shadow={-1mm}{-2mm}{0mm}{fill=blue,
- opacity=0.5}]
-This is a tcolorbox.
-\end{tcolorbox}
-\par\bigskip
-\begin{tcolorbox}[title=Double shadow,
- shadow={-1.5mm}{-1.5mm}{0mm}{fill=blue,
- opacity=0.25},
- shadow={1.5mm}{-1.5mm}{0mm}{fill=red,
- opacity=0.25}]
-This is a tcolorbox.
-\end{tcolorbox}
-\par\bigskip
-\begin{tcolorbox}[title=Far shadow,
- shadow={5.5mm}{-3.5mm}{2mm}{fill=black,
- opacity=0.25}]
-This is a tcolorbox.
-\end{tcolorbox}
-\par\bigskip\bigskip
-\begin{tcolorbox}[title=Halo shadow,
- shadow={0mm}{0mm}{-1.5mm}%
- {fill=yellow!75!red,opacity=0.5}]
-This is a tcolorbox.
-\end{tcolorbox}
-\end{dispExample*}
-\end{docTcbKey}
-
-\clearpage
-\begin{docTcbKey}{fuzzy shadow}{=\marg{xshift}\marg{yshift}\marg{offset}\marg{step}\marg{options}}{no default}
- Adds a new fuzzy shadow to the stack of shadows. Actually, this option
- adds several shadows which appear like a shadow with a fuzzy border.
- This fuzzy shadow is follows the outline of the |tcolorbox| but is shifted by
- \meta{xshift} and \meta{yshift}. The \meta{offset} value is a distance value
- from the frame outline. A positive \meta{offset} value shrinks the shadow
- and a negative \meta{offset} value enlarges the shadow.
- The \marg{step} value describes a shrink
- offset used for the combination of the partial shadows.
- The shadow is filled along a \tikzname\ path with the given \tikzname\ \meta{options} but
- any |opacity| value will be ignored.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
-\tcbset{enhanced,colback=red!5!white,
- colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My own shadow,
- fuzzy shadow={2mm}{-1mm}{0mm}{0.1mm}%
- {black!50!white}]
-This is a tcolorbox.
-\end{tcolorbox}
-\par\bigskip
-\begin{tcolorbox}[title=Another shadow,
- fuzzy shadow={-1mm}{-2mm}{0mm}{0.2mm}%
- {fill=blue}]
-This is a tcolorbox.
-\end{tcolorbox}
-\par\bigskip
-\begin{tcolorbox}[title=Double shadow,
- fuzzy shadow={-1.5mm}{-1.5mm}{0mm}{0.1mm}%
- {blue},
- fuzzy shadow={1.5mm}{-1.5mm}{0mm}{0.1mm}%
- {red}]
-This is a tcolorbox.
-\end{tcolorbox}
-\par\bigskip
-\begin{tcolorbox}[title=Far shadow,
- fuzzy shadow={5.5mm}{-3.5mm}{0mm}{0.3mm}%
- {black}]
-This is a tcolorbox.
-\end{tcolorbox}
-\par\bigskip\bigskip
-\begin{tcolorbox}[title=Glow shadow,
- fuzzy shadow={0mm}{0mm}{-1.5mm}{0.15mm}%
- {yellow!75!red}]
-This is a tcolorbox.
-\end{tcolorbox}
-\end{dispExample*}
-
-\begin{dispExample}
-\newtcolorbox{mybox}[1][]{enhanced,
- fuzzy shadow={1.0mm}{-1.0mm}{0.12mm}{0mm}{blue!50!white},
- fuzzy shadow={-1.0mm}{-1.0mm}{0.12mm}{0mm}{red!50!white},
- fuzzy shadow={-1.0mm}{1.0mm}{0.12mm}{0mm}{green!50!white},
- fuzzy shadow={1.0mm}{1.0mm}{0.12mm}{0mm}{yellow!50!white},#1
-}
-
-\begin{mybox}[title=A multi shadow box]
-This is a tcolorbox.
-\end{mybox}
-\end{dispExample}
-\end{docTcbKey}
-
-
-\clearpage
\begin{docTcbKey}{drop shadow}{\colOpt{=\meta{color}}}{style, default |black!50!white|}
Adds a new shadow with standard dimensions to the stack of shadows.
Optionally, the \meta{color} for the shadow can be changed.
@@ -1648,8 +1531,6 @@ This is a tcolorbox.
\end{docTcbKey}
-
-
\begin{docTcbKey}{drop fuzzy shadow}{\colOpt{=\meta{color}}}{style, default |black!50!white|}
Adds a new fuzzy shadow with standard dimensions to the stack of shadows.
Optionally, the \meta{color} for the shadow can be changed.
@@ -1685,7 +1566,7 @@ This is a tcolorbox.
\end{dispExample*}
\end{docTcbKey}
-\enlargethispage*{2cm}
+%\enlargethispage*{2cm}
\begin{docTcbKey}{drop fuzzy midday shadow}{\colOpt{=\meta{color}}}{style, default |black!50!white|}
Adds a new fuzzy shadow with standard dimensions to the stack of shadows.
Optionally, the \meta{color} for the shadow can be changed.
@@ -1704,7 +1585,6 @@ This is a tcolorbox.
\end{docTcbKey}
-\clearpage
\begin{docTcbKey}{halo}{\colOpt{=\meta{size} \texttt{with} \meta{color}}}{style, default |0.9mm with yellow|}
Adds a new halo shadow with the given \meta{color}
which overlaps the colorbox an all sides by \meta{size}.
@@ -1723,7 +1603,7 @@ This is a tcolorbox.
\end{dispExample*}
\end{docTcbKey}
-
+\enlargethispage*{2cm}
\begin{docTcbKey}{fuzzy halo}{\colOpt{=\meta{size} \texttt{with} \meta{color}}}{style, default |0.9mm with yellow|}
Adds a new fuzzy halo shadow with the given \meta{color}
which overlaps the colorbox an all sides by \meta{size} plus |0.48mm|.
@@ -1924,29 +1804,7 @@ equivalent to the preceding examples.
\clearpage
-\begin{docTcbKey}{lifted shadow}{=\marg{xshift}\marg{yshift}\marg{bend}\marg{step}\marg{options}}{no default}
- Adds a new lifted shadow to the stack of shadows. Actually, this option
- adds several shadows which appear like a shadow with a fuzzy border.
- This lifted shadow is follows the outline of the |tcolorbox| but is shifted by
- \meta{xshift} and \meta{yshift} on the lower left corner and by
- $-$\meta{xshift} and \meta{yshift} on the lower right corner.
- Additionally, there is a \meta{bend} in the middle.
- The \marg{step} value describes a shrink
- offset used for the combination of the partial shadows.
- The shadow is filled along a \tikzname\ path with the given \tikzname\ \meta{options} but
- any |opacity| value will be ignored.
-\begin{dispExample*}{sbs,lefthand ratio=0.6}
-\tcbset{enhanced,colback=red!5!white,
- boxrule=0.1pt,
- colframe=red!75!black,fonttitle=\bfseries}
-
-\begin{tcolorbox}[title=My own shadow,
- lifted shadow={1mm}{-2mm}{3mm}{0.1mm}%
- {black!50!white}]
-This is a tcolorbox.
-\end{tcolorbox}
-\end{dispExample*}
-\end{docTcbKey}
+\subsubsection{Lifted Shadows}
\begin{docTcbKey}{drop lifted shadow}{\colOpt{=\meta{color}}}{style, default |black!50!white|}
Adds a new lifted shadow with standard dimensions to the stack of shadows.
@@ -1986,7 +1844,6 @@ This is a tcolorbox.
\end{docTcbKey}
-\clearpage
\begin{docTcbKey}{drop large lifted shadow}{\colOpt{=\meta{color}}}{style, default |black!50!white|}
Adds a new large lifted shadow with standard dimensions to the stack of shadows.
Optionally, the \meta{color} for the shadow can be changed.
@@ -2005,6 +1862,218 @@ This is a tcolorbox.
\end{docTcbKey}
+\clearpage
+
+\subsubsection{Generic Shadows}
+\begin{docTcbKey}{shadow}{=\marg{xshift}\marg{yshift}\marg{offset}\marg{options}}{no default}
+ Adds a new shadow to the stack of shadows.
+ This shadow is follows the outline of the |tcolorbox| but is shifted by
+ \meta{xshift} and \meta{yshift}. The \meta{offset} value is a distance value
+ from the frame outline. A positive \meta{offset} value shrinks the shadow
+ and a negative \meta{offset} value enlarges the shadow.
+ The shadow is filled along a \tikzname\ path with the given \tikzname\ \meta{options}.\\
+ The shadows adapt to the rounded corners of the |tcolorbox|. An shrinked shadow
+ will switch to sharp corners if necessary, an enlarged shadow may become
+ more rounded depending on several factors. But \refKey{/tcb/sharp corners}
+ have sharp shadows.
+ \begin{marker}
+ Shadows are not considered for the bounding box computation by default.
+ Large shadows may be overlaped by the following content. But, the
+ bounding box can be adapted if necessary.
+ \end{marker}
+
+\begin{dispExample*}{sbs,lefthand ratio=0.6}
+\tcbset{enhanced,colback=red!5!white,
+ colframe=red!75!black,fonttitle=\bfseries}
+
+\begin{tcolorbox}[title=My own shadow,
+ shadow={2mm}{-1mm}{0mm}{black!50!white}]
+This is a tcolorbox.
+\end{tcolorbox}
+\par\bigskip
+\begin{tcolorbox}[title=Another shadow,
+ shadow={-1mm}{-2mm}{0mm}{fill=blue,
+ opacity=0.5}]
+This is a tcolorbox.
+\end{tcolorbox}
+\par\bigskip
+\begin{tcolorbox}[title=Double shadow,
+ shadow={-1.5mm}{-1.5mm}{0mm}{fill=blue,
+ opacity=0.25},
+ shadow={1.5mm}{-1.5mm}{0mm}{fill=red,
+ opacity=0.25}]
+This is a tcolorbox.
+\end{tcolorbox}
+\par\bigskip
+\begin{tcolorbox}[title=Far shadow,
+ shadow={5.5mm}{-3.5mm}{2mm}{fill=black,
+ opacity=0.25}]
+This is a tcolorbox.
+\end{tcolorbox}
+\par\bigskip\bigskip
+\begin{tcolorbox}[title=Halo shadow,
+ shadow={0mm}{0mm}{-1.5mm}%
+ {fill=yellow!75!red,opacity=0.5}]
+This is a tcolorbox.
+\end{tcolorbox}
+\end{dispExample*}
+\end{docTcbKey}
+
+\clearpage
+\begin{docTcbKey}{fuzzy shadow}{=\marg{xshift}\marg{yshift}\marg{offset}\marg{step}\marg{options}}{no default}
+ Adds a new fuzzy shadow to the stack of shadows. Actually, this option
+ adds several shadows which appear like a shadow with a fuzzy border.
+ This fuzzy shadow is follows the outline of the |tcolorbox| but is shifted by
+ \meta{xshift} and \meta{yshift}. The \meta{offset} value is a distance value
+ from the frame outline. A positive \meta{offset} value shrinks the shadow
+ and a negative \meta{offset} value enlarges the shadow.
+ The \marg{step} value describes a shrink
+ offset used for the combination of the partial shadows.
+ The shadow is filled along a \tikzname\ path with the given \tikzname\ \meta{options} but
+ any |opacity| value will be ignored.
+\begin{dispExample*}{sbs,lefthand ratio=0.6}
+\tcbset{enhanced,colback=red!5!white,
+ colframe=red!75!black,fonttitle=\bfseries}
+
+\begin{tcolorbox}[title=My own shadow,
+ fuzzy shadow={2mm}{-1mm}{0mm}{0.1mm}%
+ {black!50!white}]
+This is a tcolorbox.
+\end{tcolorbox}
+\par\bigskip
+\begin{tcolorbox}[title=Another shadow,
+ fuzzy shadow={-1mm}{-2mm}{0mm}{0.2mm}%
+ {fill=blue}]
+This is a tcolorbox.
+\end{tcolorbox}
+\par\bigskip
+\begin{tcolorbox}[title=Double shadow,
+ fuzzy shadow={-1.5mm}{-1.5mm}{0mm}{0.1mm}%
+ {blue},
+ fuzzy shadow={1.5mm}{-1.5mm}{0mm}{0.1mm}%
+ {red}]
+This is a tcolorbox.
+\end{tcolorbox}
+\par\bigskip
+\begin{tcolorbox}[title=Far shadow,
+ fuzzy shadow={5.5mm}{-3.5mm}{0mm}{0.3mm}%
+ {black}]
+This is a tcolorbox.
+\end{tcolorbox}
+\par\bigskip\bigskip
+\begin{tcolorbox}[title=Glow shadow,
+ fuzzy shadow={0mm}{0mm}{-1.5mm}{0.15mm}%
+ {yellow!75!red}]
+This is a tcolorbox.
+\end{tcolorbox}
+\end{dispExample*}
+
+\begin{dispExample}
+\newtcolorbox{mybox}[1][]{enhanced,
+ fuzzy shadow={1.0mm}{-1.0mm}{0.12mm}{0mm}{blue!50!white},
+ fuzzy shadow={-1.0mm}{-1.0mm}{0.12mm}{0mm}{red!50!white},
+ fuzzy shadow={-1.0mm}{1.0mm}{0.12mm}{0mm}{green!50!white},
+ fuzzy shadow={1.0mm}{1.0mm}{0.12mm}{0mm}{yellow!50!white},#1
+}
+
+\begin{mybox}[title=A multi shadow box]
+This is a tcolorbox.
+\end{mybox}
+\end{dispExample}
+\end{docTcbKey}
+
+
+\clearpage
+\begin{docTcbKey}[][doc new=2015-05-05]{smart shadow arc}{\colOpt{=true\textbar false}}{default |true|,
+ initially |true|}
+If set to |true|, the shadow drawing algorithm tries to do a somewhat
+smart calculation of the arc for the shadow. The result is pleasing for typical boxes
+with rounded corners, but gives strange results for circular boxes.
+
+\begin{dispExample}
+\tcbset{enhanced,nobeforeafter,colback=red!5!white,
+ colframe=red!75!black,width=3cm,square,halign=center,valign=center
+ }
+
+\begin{tcolorbox}[drop shadow]
+Smart shadow arc (arguably better than normal)
+\end{tcolorbox}
+\hfill
+\begin{tcolorbox}[smart shadow arc=false, drop shadow]
+Normal shadow arc
+\end{tcolorbox}
+\hfill
+\begin{tcolorbox}[circular arc, drop shadow]
+Smart shadow arc (worse than normal)
+\end{tcolorbox}
+\hfill
+\begin{tcolorbox}[circular arc, smart shadow arc=false, drop shadow]
+Normal shadow arc
+\end{tcolorbox}
+\end{dispExample}
+\end{docTcbKey}
+
+
+\begin{docTcbKey}{lifted shadow}{=\marg{xshift}\marg{yshift}\marg{bend}\marg{step}\marg{options}}{no default}
+ Adds a new lifted shadow to the stack of shadows. Actually, this option
+ adds several shadows which appear like a shadow with a fuzzy border.
+ This lifted shadow is follows the outline of the |tcolorbox| but is shifted by
+ \meta{xshift} and \meta{yshift} on the lower left corner and by
+ $-$\meta{xshift} and \meta{yshift} on the lower right corner.
+ Additionally, there is a \meta{bend} in the middle.
+ The \marg{step} value describes a shrink
+ offset used for the combination of the partial shadows.
+ The shadow is filled along a \tikzname\ path with the given \tikzname\ \meta{options} but
+ any |opacity| value will be ignored.
+\begin{dispExample*}{sbs,lefthand ratio=0.6}
+\tcbset{enhanced,colback=red!5!white,
+ boxrule=0.1pt,
+ colframe=red!75!black,fonttitle=\bfseries}
+
+\begin{tcolorbox}[title=My own shadow,
+ lifted shadow={1mm}{-2mm}{3mm}{0.1mm}%
+ {black!50!white}]
+This is a tcolorbox.
+\end{tcolorbox}
+\end{dispExample*}
+\end{docTcbKey}
+
+\clearpage
+\subsubsection{\tikzname\ Shadows}
+Alternativ to the package shadow options described before, shadows from
+the \flqq Shadows Library\frqq\ of \tikzname\ can be used.
+Such shadows can be added directly to the frame path using \refKey{/tcb/frame style}.
+
+\begin{exdispExample*}{tikz_shadow_1}{sbs,lefthand ratio=0.7}
+% \usetikzlibrary{shadows}
+\begin{tcolorbox}[enhanced,
+ colback=red!5!white,colframe=red!75!black,
+ frame style={drop shadow} ]
+ This is a tcolorbox.
+\end{tcolorbox}
+\end{exdispExample*}
+
+\begin{exdispExample*}{tikz_shadow_2}{sbs,lefthand ratio=0.7}
+% \usetikzlibrary{shadows}
+\begin{tcolorbox}[enhanced,height=3cm,
+ colback=red!5!white,colframe=red!75!black,
+ halign=center,valign=center,
+ frame style={circular drop shadow} ]
+ This is a tcolorbox.
+\end{tcolorbox}
+\end{exdispExample*}
+
+\begin{exdispExample*}{tikz_shadow_3}{sbs,lefthand ratio=0.7}
+% \usetikzlibrary{shadows}
+\begin{tcolorbox}[enhanced,width=2.5cm,
+ square,circular arc,
+ halign=center,valign=center,
+ colback=red!5!white,colframe=red!75!black,
+ frame style={circular glow={fill=red}} ]
+ tcolorbox
+\end{tcolorbox}
+\end{exdispExample*}
+
\clearpage
\subsection{\tikzname\ Picture Option Keys}\label{subsec:tikzpicture}
@@ -2020,7 +2089,7 @@ but most other skins, e.\,g.\ \refSkin{enhanced}.
applied a second time, the new \meta{tikz option list} is appended to the
current option list.
\begin{dispExample*}{sbs,lefthand ratio=0.66,
- segmentation style={pattern=crosshatch dots light steel blue}}
+ segmentation style={pattern=checkerboard light gray}}
\tcbset{enhanced,colback=red!5!white,
colframe=red!75!black,fonttitle=\bfseries}
@@ -2034,7 +2103,7 @@ This is a tcolorbox.
\tcbset{enhanced,colback=red!5!white,
colframe=red!75!black,fonttitle=\bfseries,
fontupper=\bfseries\Huge,
- center title,center upper}
+ halign title=center,halign=center}
\begin{tcolorbox}[title=Rotated box,
tikz={rotate=30}]
@@ -2460,7 +2529,7 @@ and \refSkin{enhanced}, there are variants called \refSkin{standard jigsaw}
and \refSkin{enhanced jigsaw}.
-\begin{dispExample}
+\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}}
\newcommand{\ballexample}{\begin{tikzpicture}
\path[use as bounding box] (0,0.8) rectangle +(0.1,0.1);
\shadedraw [shading=ball] (0,0) circle (1cm);
@@ -2483,10 +2552,10 @@ and \refSkin{enhanced jigsaw}.
enhanced jigsaw,opacityback=0.35]
\lipsum[2]
\end{tcolorbox}
-\end{dispExample}
+\end{dispExample*}
-\begin{dispExample*}{segmentation style={pattern=crosshatch dots light steel blue}}
+\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}}
\tcbset{enhanced,colback=red!10!white,coltitle=black,
frame style={left color=red!75!black,right color=red!10!yellow},
fonttitle=\bfseries,interior hidden,title hidden}
@@ -2502,7 +2571,7 @@ and \refSkin{enhanced jigsaw}.
\end{dispExample*}
-\begin{dispExample}
+\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}}
\newtcolorbox{mybox}{skin=enhancedmiddle jigsaw,leftrule=5mm,rightrule=5mm,
boxsep=0mm,top=0mm,bottom=0mm,
frame style={top color=blue,bottom color=red},interior hidden}
@@ -2510,7 +2579,7 @@ and \refSkin{enhanced jigsaw}.
\begin{mybox}
\lipsum[2]
\end{mybox}
-\end{dispExample}
+\end{dispExample*}
\clearpage
@@ -2670,7 +2739,7 @@ This box looks like a box provided by the \texttt{beamer} class.
This is an abbreviation for setting |skin=standard jigsaw|.
\end{docTcbKey}
-\begin{dispExample}
+\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}}
\begin{tcbraster}[standard jigsaw,raster equal height,raster columns=4,
colback=LightGreen,colframe=DarkGreen,colbacktitle=LimeGreen!75!DarkGreen,
opacityframe=0.5,opacityback=0.5,opacitybacktitle=0.5,
@@ -2692,7 +2761,7 @@ This box looks like a box provided by the \texttt{beamer} class.
More content.
\end{tcolorbox}
\end{tcbraster}
-\end{dispExample}
+\end{dispExample*}
\clearpage
@@ -2989,7 +3058,7 @@ Nevertheless, this skin can be applied independently.
This is an abbreviation for setting |skin=enhanced jigsaw|.
\end{docTcbKey}
-\begin{dispExample}
+\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}}
\begin{tcbraster}[enhanced jigsaw,raster equal height,raster columns=4,
colback=LightGreen,colframe=DarkGreen,colbacktitle=LimeGreen!75!DarkGreen,
opacityframe=0.5,opacityback=0.5,opacitybacktitle=0.5,
@@ -3011,7 +3080,7 @@ Nevertheless, this skin can be applied independently.
More content.
\end{tcolorbox}
\end{tcbraster}
-\end{dispExample}
+\end{dispExample*}
\clearpage
@@ -3032,7 +3101,7 @@ Nevertheless, this skin can be applied independently.
\end{docSkin}
-\begin{dispExample}
+\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}}
\begin{tcbraster}[skin=enhancedfirst jigsaw,raster equal height,raster columns=4,
colback=LightGreen,colframe=DarkGreen,colbacktitle=LimeGreen!75!DarkGreen,
opacityframe=0.5,opacityback=0.5,opacitybacktitle=0.5,
@@ -3054,7 +3123,7 @@ Nevertheless, this skin can be applied independently.
More content.
\end{tcolorbox}
\end{tcbraster}
-\end{dispExample}
+\end{dispExample*}
\clearpage
@@ -3075,7 +3144,7 @@ Nevertheless, this skin can be applied independently.
\end{docSkin}
-\begin{dispExample}
+\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}}
\begin{tcbraster}[skin=enhancedmiddle jigsaw,raster equal height,raster columns=4,
colback=LightGreen,colframe=DarkGreen,colbacktitle=LimeGreen!75!DarkGreen,
opacityframe=0.5,opacityback=0.5,opacitybacktitle=0.5,
@@ -3097,7 +3166,7 @@ Nevertheless, this skin can be applied independently.
More content.
\end{tcolorbox}
\end{tcbraster}
-\end{dispExample}
+\end{dispExample*}
\begin{docTcbKey}{marker}{}{style, no value}
@@ -3173,7 +3242,7 @@ Nevertheless, this skin can be applied independently.
\end{docSkin}
-\begin{dispExample}
+\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}}
\begin{tcbraster}[skin=enhancedlast jigsaw,raster equal height,raster columns=4,
colback=LightGreen,colframe=DarkGreen,colbacktitle=LimeGreen!75!DarkGreen,
opacityframe=0.5,opacityback=0.5,opacitybacktitle=0.5,
@@ -3195,7 +3264,7 @@ Nevertheless, this skin can be applied independently.
More content.
\end{tcolorbox}
\end{tcbraster}
-\end{dispExample}
+\end{dispExample*}
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.technical.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.technical.tex
index 430b157f9c7..439e768cda2 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.technical.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.technical.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Technical Overview and Customization}\label{sec:technical}
+\section{Technical Overview and Customization}\label{sec:technical}%
+\tcbset{external/prefix=external/technical_}%
This section provides a technical overview of the skin concept of |tcolorbox|.
For most applications of |tcolorbox|, one will not need to know the bells and
whistles described herein.
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex
index fea19ffacb3..86d55451b8e 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Library \mylib{theorems}}\label{sec:theorems}
+\section{Library \mylib{theorems}}\label{sec:theorems}%
+\tcbset{external/prefix=external/theorems_}%
The library is loaded by a package option or inside the preamble by:
\begin{dispListing}
\tcbuselibrary{theorems}
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 7d654d2cebf..19770abfe04 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.verbatim.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.verbatim.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Saving and Loading of Verbatim Texts}
+\section{Saving and Loading of Verbatim Texts}%
+\tcbset{external/prefix=external/verbatim_}%
The following macros are slightly modified versions of the original macros
from the known packages |moreverb| and |verbatim|.
They are used implicitly inside of a |tcolorbox| environment,
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.xparse.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.xparse.tex
index 6a774d1b618..a201785ca08 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.xparse.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.xparse.tex
@@ -1,7 +1,8 @@
% !TeX root = tcolorbox.tex
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
\clearpage
-\section{Library \mylib{xparse}}\label{sec:xparse}
+\section{Library \mylib{xparse}}\label{sec:xparse}%
+\tcbset{external/prefix=external/xparse_}%
The library is loaded by a package option or inside the preamble by:
\begin{dispListing}
\tcbuselibrary{xparse}
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf
index d0ffff46c95..239f0e296f1 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex
index a4dc2e96bc0..1872de9aba5 100644
--- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex
+++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex
@@ -1,5 +1,5 @@
% \LaTeX-Main\
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcolorbox.tex: Manual
%%
%% -------------------------------------------------------------------------------------------
@@ -19,10 +19,14 @@
%% This work consists of all files listed in README
%%
\documentclass[a4paper,11pt]{ltxdoc}
+%\documentclass[a4paper,11pt]{report}
\usepackage{tcolorbox.doc.s_main}
\tcbEXTERNALIZE
\usepackage{tcolorbox.doc.s_snippet}
+\tcbset{external/PassOptionsToPackage={cache=false}{minted}}
+\immediate\write18{mkdir external}
+\immediate\write18{mkdir solutions}
\RequirePackage{csquotes}
\RequirePackage[style=numeric-comp,sorting=nyt,
@@ -32,8 +36,8 @@
\setlength{\bibitemsep}{\smallskipamount}
\addbibresource{tcolorbox.doc.bib}
-\def\version{3.50}%
-\def\datum{2015/03/16}%
+\def\version{3.60}%
+\def\datum{2015/05/07}%
\makeindex
\hypersetup{
@@ -46,7 +50,7 @@
\usepackage{pgfplots}
%\tcbset{draftmode}
-%\includeonly{tcolorbox.doc.coreoptions}
+%\includeonly{tcolorbox.doc.skins}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex
index f87080b974c..2ff4905fc0d 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbbreakable.code.tex: Code for breakable colorboxes
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\let\tcb@parboxrestore@true=\tcb@parboxrestore
\def\tcb@parboxrestore@false{\vskip-\parskip\linewidth\hsize\noindent}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex
index 15cf264ffc5..38f30e33d86 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbdocumentation.code.tex: Code for LaTeX documentations
%%
%% -------------------------------------------------------------------------------------------
@@ -17,11 +17,10 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\tcbuselibrary{listings,skins,xparse,external}
-\RequirePackage{doc}[2010/02/04]
\RequirePackage{pifont}[2005/04/12]
\RequirePackage{marvosym}[2011/07/20]
\ifdefined\printindex\else\RequirePackage{makeidx}[2000/03/29]\fi
@@ -54,8 +53,30 @@
% The following macros are taken from ltxdoc
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
-\let\tcb@doc@org@meta\meta%
-\def\meta#1{{\rmfamily\tcb@doc@org@meta{#1}}}
+\def\meta@font@select{\rmfamily\itshape}
+
+\AtEndPreamble{%
+ \@ifpackageloaded{doc}{%
+ }{% code taken from doc.sty
+ \ifx\l@nohyphenation\undefined
+ \newlanguage\l@nohyphenation
+ \fi
+ \DeclareRobustCommand\meta[1]{%
+ \ensuremath\langle
+ \ifmmode \expandafter \nfss@text \fi
+ {%
+ \meta@font@select
+ \edef\meta@hyphen@restore
+ {\hyphenchar\the\font\the\hyphenchar\font}%
+ \hyphenchar\font\m@ne
+ \language\l@nohyphenation
+ #1\/%
+ \meta@hyphen@restore
+ }\ensuremath\rangle
+ }%
+ }%
+}%
+
\def\marg#1{%
{\ttfamily\char`\{}\meta{#1}{\ttfamily\char`\}}}
\def\oarg#1{%
@@ -395,7 +416,9 @@
%--- index macros taken from pgfmanual-en-macros
\def\tcb@doc@index@pgf@{%
- \c@IndexColumns=2%
+ \ifdefined\c@IndexColumns%
+ \c@IndexColumns=2%
+ \fi%
\def\theindex{\@restonecoltrue
\columnseprule \z@ \columnsep 29\p@
\twocolumn[\index@prologue]%
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex
index c5c38983786..d62bec68285 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbexternal.code.tex: Code for externalization
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
{
\catcode`\"=12
@@ -73,6 +73,7 @@
\immediate\write\tcb@out{\string\gdef\string\TCBEXTERNALINPUT{"\tcbexternal@job@source"}}%
\immediate\write\tcb@out{\string\gdef\string\TCBEXTERNALSAFETY{\tcbexternal@safety}}%
\immediate\write\tcb@out{\string\gdef\string\TCBEXTERNALPREAMBLE{\expandonce{\tcbexternal@preamble}}}%
+ \ifdefempty{\tcbexternal@preclass}{}{\immediate\write\tcb@out{\expandonce{\tcbexternal@preclass}}}%
\immediate\write\tcb@out{\string\input{"\jobname.tex"}}%
\immediate\closeout\tcb@out%
\foreach \n in {1,...,\tcbexternal@runs}
@@ -227,6 +228,10 @@
preamble/.code={\appto\tcbexternal@preamble{#1}},
preamble tcbset/.code={\appto\tcbexternal@preamble{\tcbset{#1}}},
clear preamble/.code={\def\tcbexternal@preamble{}},
+ preclass/.code={\appto\tcbexternal@preclass{#1}},
+ clear preclass/.code={\def\tcbexternal@preclass{}},
+ PassOptionsToPackage/.code 2 args={\appto\tcbexternal@preclass{\PassOptionsToPackage{#1}{#2}}},
+ PassOptionsToClass/.code 2 args={\appto\tcbexternal@preclass{\PassOptionsToClass{#1}{#2}}},
externalize/.code={},
%
force remake/.is choice,
@@ -250,10 +255,21 @@
},
minipage/.default=\linewidth,
%
- environment/.code={%
- \appto\tcbexternal@out@begin{\immediate\write\tcb@out{\string\begin{#1}\@percentchar}}%
- \preto\tcbexternal@out@end{\immediate\write\tcb@out{\string\end{#1}\@percentchar}}%
- },%
+ environment with percent/.is choice,
+ environment with percent/true/.style={%
+ /tcb/external/environment/.code={%
+ \appto\tcbexternal@out@begin{\immediate\write\tcb@out{\string\begin{##1}\@percentchar}}%
+ \preto\tcbexternal@out@end{\immediate\write\tcb@out{\string\end{##1}\@percentchar}}%
+ }
+ },
+ environment with percent/false/.style={%
+ /tcb/external/environment/.code={%
+ \appto\tcbexternal@out@begin{\immediate\write\tcb@out{\string\begin{##1}}}%
+ \preto\tcbexternal@out@end{\immediate\write\tcb@out{\string\end{##1}}}%
+ }
+ },
+ environment with percent/.default=true,
+ %
runner=\jobname_run.tex,
prefix={external/},
compiler=pdflatex,
@@ -261,8 +277,10 @@
name=unnamed,
safety=2mm,
clear preamble,
+ clear preclass,
force remake=false,
input source on error,
+ environment with percent,
plain
}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
index 29926d0ccdc..e2d3a0ef20d 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbfitting.code.tex: Code for fit boxes
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\newdimen\tcbfitdim
\newdimen\tcb@lowerfitdim
@@ -226,7 +226,7 @@
\def\tcb@fit@@box{%
\iftcb@hasTitle%
\tcbdimto\tcb@w@title{\kvtcb@width-(\kvtcb@left@rule)-(\kvtcb@right@rule)-(\kvtcb@boxsep)*2-(\kvtcb@lefttitle)-(\kvtcb@righttitle)}%
- \begin{tcb@savebox}{\tcb@titlebox}{\tcb@w@title}\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@before@title\kvtcb@title\kvtcb@after@title\end{tcb@savebox}%
+ \begin{tcb@savebox}{\tcb@titlebox}{\tcb@w@title}\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@haligntitle\kvtcb@before@title\kvtcb@title\kvtcb@after@title\end{tcb@savebox}%
\tcbdimto\tcb@h@titletotal{\ht\tcb@titlebox+\dp\tcb@titlebox+\kvtcb@title@rule+(\kvtcb@boxsep)*2+\kvtcb@toptitle+\kvtcb@bottomtitle}%
\else%
\let\tcb@h@titletotal=\tcb@zpt%
@@ -256,7 +256,7 @@
\tcb@set@color{tcbcol@upper}%
\begin{tcb@savebox}{\tcb@upperbox}{##1}%
\kvtcb@fontupper\fontsize{\tcbfitdim}{\tcb@fit@@line}\selectfont%
- \kvtcb@before@upper\ignorespaces#1\unskip\kvtcb@after@upper%
+ \kvtcb@halignupper\kvtcb@before@upper\ignorespaces#1\unskip\kvtcb@after@upper%
\end{tcb@savebox}%
\tcb@reset@color%
\advance\count@ 1\relax%
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex
index 512bf4c75c8..e3bd47ba849 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbhooks.code.tex: Code for adding hooks
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\tcbset{%
before upper app/.code={\appto\kvtcb@before@upper{#1}},%
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
index 6cabae81769..a7c4eeecbd6 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcblistings.code.tex: Code for colorboxes with listings
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\RequirePackage{listings}[2007/02/22]
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex
index 04d1f07266f..b1a5f9288bd 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 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% 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{3.50}
+\tcb@set@library@version{3.60}
\RequirePackage{pdftexcmds}
@@ -41,7 +41,7 @@
\newenvironment{tcb@lower@outside}[1]{%
\tcbset{savedelimiter=tcb@lower@outside}\tcb@minipage{#1}%
- \color{tcbcol@lower}\kvtcb@fontlower\kvtcb@before@lower\ignorespaces}%
+ \color{tcbcol@lower}\kvtcb@fontlower\kvtcb@halignlower\kvtcb@before@lower\ignorespaces}%
{\unskip\kvtcb@after@lower\endminipage}
\def\tcb@use@listing@other@reset{%
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex
index 984f34d83d9..b4d2e0e54a1 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcblistingsutf8.code.tex: Code for colorboxes with listings in UTF-8
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\RequirePackage{listingsutf8}[2011/11/10]
\tcbuselibrary{listings}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
index 87dd742387b..d54ba8a8f54 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbminted.code.tex: Code for colorboxes with listings
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\RequirePackage{minted}[2011/09/17]
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex
index 18b8b6328ac..ef527cd803e 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\newcounter{tcbrastercolumn}
\newcounter{tcbrasterrow}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
index 578437722bd..c060ed92e05 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex
@@ -1,8 +1,8 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbskins.code.tex: Code for colorboxes with different skins
%%
%% -------------------------------------------------------------------------------------------
-%% Copyright (c) 2006-2014 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
+%% Copyright (c) 2006-2015 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
%% -------------------------------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\RequirePackage{tikz}[2010/10/13]
@@ -389,16 +389,15 @@
at begin tikz={%
\tcbdimto\kvtcb@arc{#1\dimexpr\kvtcb@arc}%
\tcbdimto\tcb@outer@arc{#1\dimexpr\tcb@outer@arc}%
- \def\tcb@shadow@prepare##1##2{%
- \ifdim##2>0pt\relax\tcbdimto\tcb@shadow@ts{##1-##2/2}%%
- \else\tcbdimto\tcb@shadow@ts{##1+##2/2}\fi%
+ \def\tcb@shadow@comp@arc{%
\tcbdimto\tcb@shadow@ts{#1\dimexpr\tcb@shadow@ts}%
- \ifdim\dimexpr\tcb@outer@arc>\tcb@shadow@ts\relax%
- \tcbdimto\tcb@shadow@arc{\tcb@outer@arc-\tcb@shadow@ts}%
+ \ifdim\dimexpr\tcb@outer@arc>\tcb@arc@scale\dimexpr\tcb@shadow@ts\relax%
+ \tcbdimto\tcb@shadow@arc{\tcb@outer@arc-\tcb@arc@scale\dimexpr\tcb@shadow@ts\relax}%
\else%
\let\tcb@shadow@arc=\tcb@zpt%
\fi%
- }}},%
+ }%
+ }},%
remember/.style={tikz={remember picture}},%
remember as/.style={tikz={remember picture},at end tikz={\pgfnodealias{#1}{frame}}},%
}
@@ -546,7 +545,7 @@
\or%
\tcb@spec{fill=tcbcol@back}\tcb@drawspec@UT%
\else%
- {\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithtitle@pathfirst}%
+ {\tcbset{interior style=}\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithtitle@pathfirst}%
\fi%
\else%
{\tcb@spec{fill=tcbcol@back}\tcb@drawwithtitle@pathfirst}%
@@ -558,7 +557,7 @@
\or%
\tcb@spec{fill=tcbcol@back}\tcb@drawspec@UR%
\else%
- {\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithouttitle@pathfirst}%
+ {\tcbset{interior style=}\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithouttitle@pathfirst}%
\fi%
\else%
{\tcb@spec{fill=tcbcol@back}\tcb@drawwithouttitle@pathfirst}%
@@ -577,7 +576,7 @@
\or%
\tcb@spec{fill=tcbcol@back}\tcb@drawspec@UT%
\else%
- {\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithtitle@pathmiddle}%
+ {\tcbset{interior style=}\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithtitle@pathmiddle}%
\fi%
\else%
{\tcb@spec{fill=tcbcol@back}\tcb@drawwithtitle@pathmiddle}%
@@ -589,7 +588,7 @@
\or%
\tcb@spec{fill=tcbcol@back}\tcb@drawspec@US%
\else%
- {\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithouttitle@pathmiddle}%
+ {\tcbset{interior style=}\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithouttitle@pathmiddle}%
\fi%
\else%
{\tcb@spec{fill=tcbcol@back}\tcb@drawwithouttitle@pathmiddle}%
@@ -608,7 +607,7 @@
\or%
\tcb@spec{fill=tcbcol@back}\tcb@drawspec@UT%
\else%
- {\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithtitle@pathlast}%
+ {\tcbset{interior style=}\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithtitle@pathlast}%
\fi%
\else%
{\tcb@spec{fill=tcbcol@back}\tcb@drawwithtitle@pathlast}%
@@ -620,7 +619,7 @@
\or%
\tcb@spec{fill=tcbcol@back}\tcb@drawspec@US%
\else
- {\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithouttitle@pathlast}%
+ {\tcbset{interior style=}\tcb@spec{fill=tcbcol@backlower}\tcb@drawwithouttitle@pathlast}%
\fi%
\else%
{\tcb@spec{fill=tcbcol@back}\tcb@drawwithouttitle@pathlast}%
@@ -1002,7 +1001,7 @@
\colorlet{tcbtranscol@frame}{tcbcol@frame}%
\colorlet{tcbtranscol@back}{tcbcol@backtitle}%
\let\tcb@trans@boxedstyle\kvtcb@style@boxedtitle%
- \setbox\tcb@titlebox\color@hbox\bgroup\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@before@boxedtitle\kvtcb@before@title\tcbtitletext\kvtcb@after@title\kvtcb@after@boxedtitle\egroup\color@endbox%
+ \setbox\tcb@titlebox\color@hbox\bgroup\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@haligntitle\kvtcb@before@boxedtitle\kvtcb@before@title\tcbtitletext\kvtcb@after@title\kvtcb@after@boxedtitle\egroup\color@endbox%
\setbox\tcb@titlebox\color@hbox\tcbox[colframe=tcbtranscol@frame,colback=tcbtranscol@back,size=title,code={\pgfkeysalsofrom\tcb@trans@boxedstyle}]{\box\tcb@titlebox}\color@endbox%
%
\tcbdimto\tcboxedtitleheight{\ht\tcb@titlebox+\dp\tcb@titlebox}%
@@ -1301,8 +1300,8 @@
\def\tcb@border@prepare#1#2{%
\tcbdimto\tcb@border@ts{#2+(#1)/2}%
- \ifdim\dimexpr\tcb@outer@arc>\tcb@border@ts\relax%
- \tcbdimto\tcb@border@arc{\tcb@outer@arc-\tcb@border@ts}%
+ \ifdim\dimexpr\tcb@outer@arc>\tcb@arc@scale\dimexpr\tcb@border@ts\relax%
+ \tcbdimto\tcb@border@arc{\tcb@outer@arc-\tcb@arc@scale\dimexpr\tcb@border@ts\relax}%
\else%
\let\tcb@border@arc=\tcb@zpt%
\fi%
@@ -1409,11 +1408,19 @@
borderline vertical/.style args={#1#2#3}{borderline west={#1}{#2}{#3},borderline east={#1}{#2}{#3}},%
}
-\def\tcb@shadow@prepare#1#2{%
+
+\def\tcb@shadow@comp@ts@smart#1#2{%
\ifdim#2>0pt\relax\tcbdimto\tcb@shadow@ts{#1-#2/2}%%
\else\tcbdimto\tcb@shadow@ts{#1+#2/2}\fi%
- \ifdim\dimexpr\tcb@outer@arc>\tcb@shadow@ts\relax%
- \tcbdimto\tcb@shadow@arc{\tcb@outer@arc-\tcb@shadow@ts}%
+}
+
+\def\tcb@shadow@comp@ts@copy#1#2{%
+ \tcbdimto\tcb@shadow@ts{#1}%
+}
+
+\def\tcb@shadow@comp@arc{%
+ \ifdim\dimexpr\tcb@outer@arc>\tcb@arc@scale\dimexpr\tcb@shadow@ts\relax%
+ \tcbdimto\tcb@shadow@arc{\tcb@outer@arc-\tcb@arc@scale\dimexpr\tcb@shadow@ts\relax}%
\else%
\let\tcb@shadow@arc=\tcb@zpt%
\fi%
@@ -1437,25 +1444,29 @@
\let\tcb@arc@sha@SE@rounded\tcb@arc@sha
\def\tcb@shadow@unbroken#1#2#3#4{%
- \tcb@shadow@prepare{#3}{#1}%
+ \tcb@shadow@comp@ts{#3}{#1}%
+ \tcb@shadow@comp@arc%
\tcb@pathbase{fill,#4}{[xshift=#1+#3,yshift=#2+#3]frame.south west}{[xshift=#1-#3,yshift=#2-#3]frame.north east}%
{\tcb@arc@sha@SW}{\tcb@arc@sha@NW}{\tcb@arc@sha@NE}{\tcb@arc@sha@SE}%
}
\def\tcb@shadow@first#1#2#3#4{%
- \tcb@shadow@prepare{#3}{#1}%
+ \tcb@shadow@comp@ts{#3}{#1}%
+ \tcb@shadow@comp@arc%
\tcb@pathbase{fill,#4}{[xshift=#1+#3,yshift=#2+#3]frame.south west}{[xshift=#1-#3,yshift=#2-#3]frame.north east}%
{\tcb@arc@zpt}{\tcb@arc@sha@NW}{\tcb@arc@sha@NE}{\tcb@arc@zpt}%
}
\def\tcb@shadow@middle#1#2#3#4{%
- \tcb@shadow@prepare{#3}{#1}%
+ \tcb@shadow@comp@ts{#3}{#1}%
+ \tcb@shadow@comp@arc%
\tcb@pathbase{fill,#4}{[xshift=#1+#3,yshift=#2+#3]frame.south west}{[xshift=#1-#3,yshift=#2-#3]frame.north east}%
{\tcb@arc@zpt}{\tcb@arc@zpt}{\tcb@arc@zpt}{\tcb@arc@zpt}%
}
\def\tcb@shadow@last#1#2#3#4{%
- \tcb@shadow@prepare{#3}{#1}%
+ \tcb@shadow@comp@ts{#3}{#1}%
+ \tcb@shadow@comp@arc%
\tcb@pathbase{fill,#4}{[xshift=#1+#3,yshift=#2+#3]frame.south west}{[xshift=#1-#3,yshift=#2-#3]frame.north east}%
{\tcb@arc@sha@SW}{\tcb@arc@zpt}{\tcb@arc@zpt}{\tcb@arc@sha@SE}%
}
@@ -1525,6 +1536,11 @@
drop fuzzy shadow northeast/.default={black!50!white},%
drop fuzzy shadow east/.style={fuzzy shadow={1.0mm}{0mm}{-0.5mm}{0.12mm}{#1}},
drop fuzzy shadow east/.default={black!50!white},%
+ %
+ smart shadow arc/.is choice,
+ smart shadow arc/true/.code={\let\tcb@shadow@comp@ts=\tcb@shadow@comp@ts@smart},
+ smart shadow arc/false/.code={\let\tcb@shadow@comp@ts=\tcb@shadow@comp@ts@copy},
+ smart shadow arc/.default=true,
}
\def\tcb@boundary@tikzbendedbase#1#2#3#4#5#6#7#8{%
@@ -1540,7 +1556,7 @@
\def\tcb@pathbendedbase#1#2#3#4#5#6#7#8#9{\tcb@pathboundary{#1}{\tcb@boundary@tikzbendedbase{#2}{#3}{#4}{#5}{#6}{#7}{#8}{#9}}}
\def\tcb@shadowbended@prepare#1{%
- \tcbdimto\tcb@shadow@arc{\tcb@outer@arc-#1}%
+ \tcbdimto\tcb@shadow@arc{\tcb@outer@arc-\tcb@arc@scale\dimexpr#1\relax}%
\ifdim\dimexpr\tcb@shadow@arc<0pt\relax%
\let\tcb@shadow@arc=\tcb@zpt%
\fi%
@@ -1735,7 +1751,7 @@
watermark opacity=1.00,watermark color=tcbcol@back!85!tcbcol@frame,%
watermark zoom=0.75,clip watermark,%
clip title=false,clip upper=false,clip lower=false,%
- no borderline,no shadow,no underlay,no finish,tikz reset,at begin tikz reset,at end tikz reset,%
+ no borderline,smart shadow arc,no shadow,no underlay,no finish,tikz reset,at begin tikz reset,at end tikz reset,%
boxed title style=,hbox boxed title,code={\let\tcb@specialgeonodes@hook\relax},%
graphics options=,graphics pages={1,...,\pdfpages},graphics directory=,%
},
@@ -1743,4 +1759,3 @@
}
\tcbuselibrary{skins@jigsaw}
-
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex
index f1da9d6971b..5503e8bc889 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins
%%
%% -------------------------------------------------------------------------------------------
@@ -17,7 +17,7 @@
%%
%% This work consists of all files listed in README
%%
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\tcbuselibrary{skins}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
index 5be3e04e054..64db47670b8 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbtheorems.code.tex: Code for theorems in colorboxes
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\RequirePackage{amsmath}
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex
index 628bce6e0f7..52fddb93403 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcbxparse.code.tex: Code for xparse features
%%
%% -------------------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{3.50}
+\tcb@set@library@version{3.60}
\RequirePackage{xparse}[2013/12/31]
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty b/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
index 599509c476d..da7be0e6c4f 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 3.50 (2015/03/16)
+%% The LaTeX package tcolorbox - version 3.60 (2015/05/07)
%% tcolorbox.sty: Text color boxes
%%
%% -------------------------------------------------------------------------------------------
@@ -18,8 +18,8 @@
%% This work consists of all files listed in README
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tcolorbox}[2015/03/16 version 3.50 text color boxes]
-\def\tcb@version{3.50}
+\ProvidesPackage{tcolorbox}[2015/05/07 version 3.60 text color boxes]
+\def\tcb@version{3.60}
\RequirePackage{pgf}[2008/01/15]
\RequirePackage{verbatim}[2003/08/22]
@@ -73,7 +73,7 @@
\let\tcb@outer@arc=\kvtcb@left@rule\fi%
\ifdim\kvtcb@right@rule<\tcb@outer@arc\relax%
\let\tcb@outer@arc=\kvtcb@right@rule\fi%
- \tcbdimto\tcb@outer@arc{\tcb@outer@arc+\kvtcb@arc}%
+ \tcbdimto\tcb@outer@arc{\tcb@arc@scale\dimexpr\tcb@outer@arc\relax+\kvtcb@arc}%
}
\def\tcb@comp@arc@fix{%
@@ -114,6 +114,12 @@
\fi%
\fi}
+\def\tcb@set@embed@tcbox#1{%
+ \long\def\tcb@embed@tcbox##1{%
+ \tcbdimto\tcb@w@upper{\kvtcb@width-\kvtcb@left@rule-\kvtcb@leftupper-\kvtcb@boxsep*2-\kvtcb@rightupper-\kvtcb@right@rule}%
+ #1}%
+}
+
\def\tcb@new@skin#1#2{\tcbset{skin@#1/.style={#2}}}
\newcommand{\tcbsubskin}[3]{\tcb@new@skin{#1}{skin@#2,#3}}
@@ -121,7 +127,7 @@
\pgfkeys{/handlers/.colorlet/.code=\pgfkeysalso{\pgfkeyscurrentpath/.code=\colorlet{#1}{##1}}}
\newcommand\tcbtitle{\ifx\tcbtitletext\@empty\else%
- {\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@before@title\tcbtitletext\kvtcb@after@title}\fi}
+ {\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@haligntitle\kvtcb@before@title\tcbtitletext\kvtcb@after@title}\fi}
\def\tcb@detach@title@code@{%
\let\tcbtitletext\kvtcb@title%
@@ -141,6 +147,11 @@
\let\tcb@specialtitle@hook\@empty%
}
+% analog to plain.tex
+\def\tcb@raggedright@plain{\raggedright\rightskip0pt plus2em \spaceskip.3333em \xspaceskip.5em\relax}
+\def\tcb@raggedleft@plain{\raggedleft\leftskip0pt plus2em \spaceskip.3333em \xspaceskip.5em \hbadness=10000\relax}
+\def\tcb@raggedcenter@plain{\centering\leftskip0pt plus2em\rightskip0pt plus2em\spaceskip.3333em \xspaceskip.5em \hbadness=10000\relax}
+
\tcbset{%
title/.store in=\kvtcb@title,
notitle/.style={title=},
@@ -187,6 +198,27 @@
arc/.store in=\kvtcb@arc,
outer arc/.code={\def\kvtcb@outerarc{#1}\let\tcb@comp@arc=\tcb@comp@arc@fix},
auto outer arc/.code={\let\tcb@comp@arc=\tcb@comp@arc@auto},
+ circular arc/.style={arc=\tcb@innerwidth/2},
+ bean arc/.code={%
+ \iftcb@fixedheight%
+ \ifdim\dimexpr\kvtcb@width-\kvtcb@left@rule-\kvtcb@right@rule>\dimexpr\kvtcb@height@fixed-\kvtcb@top@rule@stand-\kvtcb@bottom@rule@stand\relax%
+ \def\kvtcb@arc{(\kvtcb@height@fixed-\kvtcb@top@rule@stand-\kvtcb@bottom@rule@stand)/2}%
+ \else%
+ \def\kvtcb@arc{(\kvtcb@width-\kvtcb@left@rule-\kvtcb@right@rule)/2}%
+ \fi%
+ \else%
+ \def\kvtcb@arc{\tcb@innerwidth/2}%
+ \fi%
+ },
+ octogon arc/.style={arc=0.292893218\dimexpr\tcb@innerwidth\relax},
+ arc is curved/.code={%
+ \def\tcb@arc@scale{1}%
+ \let\tcb@apply@graph@patches=\tcbpatcharcround%
+ },
+ arc is angular/.code={%
+ \def\tcb@arc@scale{0.58578644}%
+ \let\tcb@apply@graph@patches=\tcbpatcharcangular%
+ },
sharpish corners/.style={arc=0pt,outer arc=0pt},
lefttitle/.store in=\kvtcb@lefttitle,
leftupper/.store in=\kvtcb@leftupper,
@@ -212,6 +244,7 @@
fontlower/.store in=\kvtcb@fontlower,
tempfile/.store in=\kvtcb@tempfile,
savelowerto/.store in=\kvtcb@savelowerto,
+ saveto/.store in=\kvtcb@saveupperto,
savedelimiter/.estore in=\kvtcb@savedelimiter,
floatplacement/.store in=\kvtcb@floatplacement,
float/.code={\def\kvtcb@float{#1}\def\tcb@float@env@begin{\@float}\def\tcb@float@env@end{\end@float}},
@@ -259,6 +292,7 @@
height from/.style args={#1 to #2}{height={#1},height plus={#2-#1}},%
height fill/.is choice,%
height fill/false/.code={\let\tcb@height@adjust\@empty},%
+ square/.style={height=\kvtcb@width},
equal height group/.code={\edef\tcb@ehgid{#1}\let\tcb@ch=\tcb@ch@equalheight},
minimum for equal height group/.code args={#1:#2}{\edef\tcb@ehgid{#1}\tcb@ehgadd{#2}},
space/.code={\def\tcb@height@fraction{#1}\let\tcb@ch@fixed@both=\tcb@ch@fixed@space},
@@ -266,8 +300,44 @@
space to lower/.style={space=0},
space to both/.style={space=0.5},
split/.code={\def\tcb@height@fraction{#1}\let\tcb@ch@fixed@both=\tcb@ch@fixed@split},
- valign/.store in=\kvtcb@valign,
- valign lower/.store in=\kvtcb@valignlower,
+ %
+ halign/.is choice,
+ halign/flush left/.code={\let\kvtcb@halignupper=\raggedright},
+ halign/flush right/.code={\let\kvtcb@halignupper=\raggedleft},
+ halign/flush center/.code={\let\kvtcb@halignupper=\centering},
+ halign/left/.code={\let\kvtcb@halignupper=\tcb@raggedright@plain},
+ halign/right/.code={\let\kvtcb@halignupper=\tcb@raggedleft@plain},
+ halign/center/.code={\let\kvtcb@halignupper=\tcb@raggedcenter@plain},
+ halign/justify/.code={\let\kvtcb@halignupper=\@empty},
+ halign upper/.style={halign=#1},
+ %
+ halign lower/.is choice,
+ halign lower/flush left/.code={\let\kvtcb@halignlower=\raggedright},
+ halign lower/flush right/.code={\let\kvtcb@halignlower=\raggedleft},
+ halign lower/flush center/.code={\let\kvtcb@halignlower=\centering},
+ halign lower/left/.code={\let\kvtcb@halignlower=\tcb@raggedright@plain},
+ halign lower/right/.code={\let\kvtcb@halignlower=\tcb@raggedleft@plain},
+ halign lower/center/.code={\let\kvtcb@halignlower=\tcb@raggedcenter@plain},
+ halign lower/justify/.code={\let\kvtcb@halignlower=\@empty},
+ %
+ halign title/.is choice,
+ halign title/flush left/.code={\let\kvtcb@haligntitle=\raggedright},
+ halign title/flush right/.code={\let\kvtcb@haligntitle=\raggedleft},
+ halign title/flush center/.code={\let\kvtcb@haligntitle=\centering},
+ halign title/left/.code={\let\kvtcb@haligntitle=\tcb@raggedright@plain},
+ halign title/right/.code={\let\kvtcb@haligntitle=\tcb@raggedleft@plain},
+ halign title/center/.code={\let\kvtcb@haligntitle=\tcb@raggedcenter@plain},
+ halign title/justify/.code={\let\kvtcb@haligntitle=\@empty},
+ %
+ valign/.is choice,
+ valign/top/.code={\def\kvtcb@valignupper{top}},
+ valign/center/.code={\def\kvtcb@valignupper{center}},
+ valign/bottom/.code={\def\kvtcb@valignupper{bottom}},
+ valign upper/.style={valign=#1},
+ valign lower/.is choice,
+ valign lower/top/.code={\def\kvtcb@valignlower{top}},
+ valign lower/center/.code={\def\kvtcb@valignlower{center}},
+ valign lower/bottom/.code={\def\kvtcb@valignlower{bottom}},
enlarge top initially by/.store in=\kvtcb@bbtop@stand,%
enlarge top at break by/.store in=\kvtcb@bbtop@break,%
enlarge top by/.style={enlarge top initially by={#1},enlarge top at break by={#1}},%
@@ -384,15 +454,15 @@
after upper/.store in=\kvtcb@after@upper,%
before lower/.store in=\kvtcb@before@lower,%
after lower/.store in=\kvtcb@after@lower,%
- center title/.style={before title=\centering},%
- center upper/.style={before upper=\centering},%
- center lower/.style={before lower=\centering},%
- flushleft title/.style={before title=\raggedright},%
- flushleft upper/.style={before upper=\raggedright},%
- flushleft lower/.style={before lower=\raggedright},%
- flushright title/.style={before title=\raggedleft},%
- flushright upper/.style={before upper=\raggedleft},%
- flushright lower/.style={before lower=\raggedleft},%
+ center title/.style={halign title=flush center},%
+ center upper/.style={halign upper=flush center},%
+ center lower/.style={halign lower=flush center},%
+ flushleft title/.style={halign title=flush left},%
+ flushleft upper/.style={halign upper=flush left},%
+ flushleft lower/.style={halign lower=flush left},%
+ flushright title/.style={halign title=flush right},%
+ flushright upper/.style={halign upper=flush right},%
+ flushright lower/.style={halign lower=flush right},%
tabularx*/.style 2 args={%
boxsep=0pt,top=0pt,bottom=0pt,leftupper=0pt,rightupper=0pt,
toptitle=1mm,bottomtitle=1mm,boxrule=0.5mm,
@@ -508,6 +578,21 @@
shape@of@skin/.store in=\tcb@shapeofskin,
ignore nobreak/.is if=tcb@ignorenobreak,%
only/.code args={<#1>#2}{\only<#1>{\tcbset{#2}}},%
+ %
+ tcbox width/.is choice,
+ tcbox width/auto/.code={\def\tcb@embed@tcbox{}},
+ tcbox width/auto limited/.code={\tcb@set@embed@tcbox{%
+ \setbox\z@=\color@hbox##1\color@endbox\ifdim\wd\z@<\tcb@w@upper\relax\box\z@\else%
+ \begin{minipage}{\tcb@w@upper}##1\end{minipage}\fi}},
+ tcbox width/forced center/.code={\tcb@set@embed@tcbox{\makebox[\tcb@w@upper]{##1}}},
+ tcbox width/forced left/.code={\tcb@set@embed@tcbox{\makebox[\tcb@w@upper][l]{##1}}},
+ tcbox width/forced right/.code={\tcb@set@embed@tcbox{\makebox[\tcb@w@upper][r]{##1}}},
+ tcbox width/minimum center/.code={\tcb@set@embed@tcbox{%
+ \setbox\z@=\color@hbox##1\color@endbox\ifdim\wd\z@<\tcb@w@upper\relax\makebox[\tcb@w@upper]{\box\z@}\else\box\z@\fi}},
+ tcbox width/minimum left/.code={\tcb@set@embed@tcbox{%
+ \setbox\z@=\color@hbox##1\color@endbox\ifdim\wd\z@<\tcb@w@upper\relax\makebox[\tcb@w@upper][l]{\box\z@}\else\box\z@\fi}},
+ tcbox width/minimum right/.code={\tcb@set@embed@tcbox{%
+ \setbox\z@=\color@hbox##1\color@endbox\ifdim\wd\z@<\tcb@w@upper\relax\makebox[\tcb@w@upper][r]{\box\z@}\else\box\z@\fi}},
}
\def\kvtcb@beforebox{}
@@ -558,10 +643,10 @@
\let\endtcb@savebox=\endtcb@lrbox
\def\tcb@saveupperbox{%
-\begin{tcb@savebox}{\tcb@upperbox}{\tcb@w@upper}\kvtcb@fontupper\kvtcb@before@upper\ignorespaces}
+\begin{tcb@savebox}{\tcb@upperbox}{\tcb@w@upper}\kvtcb@fontupper\kvtcb@halignupper\kvtcb@before@upper\ignorespaces}
\def\tcb@savelowerbox{%
-\begin{tcb@savebox}{\tcb@lowerbox}{\tcb@w@lower}\kvtcb@fontlower\kvtcb@before@lower\ignorespaces}
+\begin{tcb@savebox}{\tcb@lowerbox}{\tcb@w@lower}\kvtcb@fontlower\kvtcb@halignlower\kvtcb@before@lower\ignorespaces}
% counter for float
@@ -594,13 +679,12 @@
\ifx\kvtcb@title\@empty\tcb@hasTitlefalse\tcb@specialtitle@hook\else%
\tcb@hasTitletrue%
\tcbdimto\tcb@w@title{\kvtcb@width-(\kvtcb@left@rule)-(\kvtcb@right@rule)-(\kvtcb@boxsep)*2-(\kvtcb@lefttitle)-(\kvtcb@righttitle)}%
- \begin{tcb@savebox}{\tcb@titlebox}{\tcb@w@title}\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@before@title\kvtcb@title\kvtcb@after@title\end{tcb@savebox}%
+ \begin{tcb@savebox}{\tcb@titlebox}{\tcb@w@title}\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@haligntitle\kvtcb@before@title\kvtcb@title\kvtcb@after@title\end{tcb@savebox}%
\fi%
}
\def\tcb@set@@dimensions{%
% sanitize
- \tcbdimto\kvtcb@arc{\kvtcb@arc}%
\tcbdimto\kvtcb@left@rule{\kvtcb@left@rule}%
\tcbdimto\kvtcb@right@rule{\kvtcb@right@rule}%
\tcbdimto\kvtcb@title@rule{\kvtcb@title@rule}%
@@ -620,10 +704,17 @@
\tcbdimto\kvtcb@bottom{\kvtcb@bottom}%
\tcbdimto\kvtcb@bottomtitle{\kvtcb@bottomtitle}%
\tcbdimto\kvtcb@middle{\kvtcb@middle}%
+ \tcbdimto\kvtcb@bbtop@stand{\kvtcb@bbtop@stand}%
+ \tcbdimto\kvtcb@bbtop@break{\kvtcb@bbtop@break}%
+ \tcbdimto\kvtcb@bbbottom@stand{\kvtcb@bbbottom@stand}%
+ \tcbdimto\kvtcb@bbbottom@break{\kvtcb@bbbottom@break}%
+ \tcbdimto\kvtcb@bbleft{\kvtcb@bbleft}%
+ \tcbdimto\kvtcb@bbright{\kvtcb@bbright}%
% computation of text width
\tcbdimto\tcb@width{\kvtcb@width}%
\tcbdimto\tcb@innerwidth{\tcb@width-\kvtcb@left@rule-\kvtcb@right@rule}%
\tcbdimto\tcb@w@upper{\tcb@innerwidth-\kvtcb@boxsep*2-\kvtcb@leftupper-\kvtcb@rightupper}%
+ \tcbdimto\kvtcb@arc{\kvtcb@arc}%
}
\def\tcb@set@@sidebyside{%
@@ -669,9 +760,20 @@
\fi%
\tcb@startbox}%
% start of upper box
- \let\endtcolorbox\tcb@endboxanddraw%
\tcb@set@color{tcbcol@upper}%
- \tcb@saveupperbox%
+ \ifx\kvtcb@saveupperto\@empty%
+ \let\tcb@startbox\tcb@saveupperbox%
+ \let\endtcolorbox\tcb@endboxanddraw%
+ \else%
+ \let\tcb@startbox\tcb@upperverbatim%
+ \expandafter\let\csname end\kvtcb@savedelimiter\expandafter\endcsname\csname tcb@endupperverbatimanddraw\endcsname%
+ \ifx\kvtcb@savelowerto\@empty%
+ \else%
+ \tcb@warning{'saveto' and 'savelowerto' cannot be combined. I deactivate 'savelowerto'}%
+ \tcbset{savelowerto=}%
+ \fi%
+ \fi%
+ \tcb@startbox%
}
@@ -870,6 +972,43 @@
\def\tcb@dbox@center#1#2#3#4#5{\pgftext[x=#1,y=#2+#3/2,left]{\color{#5}\box#4}}%
+\let\tcb@pgfprocess@@specialround@orig=\pgfprocess@@specialround
+
+% patch for \pgfprocess@@specialround
+\def\tcb@pgfprocess@@specialround@angular#1#2#3{%
+ \pgfutil@g@addto@macro\pgfprocess@segment{#1}%
+ % start point
+ \pgf@xb=#2%
+ \pgf@yb=#3%
+ %
+ \edef\pgf@marshal%
+ {\noexpand\pgfpointlineatdistance{\pgfprocess@savex}%
+ {\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}%
+ {\noexpand\pgfqpoint{\the\pgf@xa}{\the\pgf@ya}}}%
+ \pgf@process{\pgf@marshal}%
+ \pgf@xa=\pgf@x% save start point
+ \pgf@ya=\pgf@y%
+ \edef\pgfprocess@addition{{\the\pgf@x}{\the\pgf@y}}%
+ \expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@segment\expandafter{\pgfprocess@addition}%
+ %
+ \edef\pgf@marshal%
+ {\noexpand\pgfpointlineatdistance{\pgfprocess@savey}%
+ {\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}%
+ {\noexpand\pgfqpoint{\the\pgf@xc}{\the\pgf@yc}}}%
+ \pgf@process{\pgf@marshal}%
+ \pgf@xc=\pgf@x% save end point
+ \pgf@yc=\pgf@y%
+ \edef\pgfprocess@addition{\noexpand\pgfsyssoftpath@linetotoken{\the\pgf@xc}{\the\pgf@yc}}%
+ \expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@segment\expandafter{\pgfprocess@addition}%
+ %
+ \pgf@xa=#2%
+ \pgf@ya=#3%
+ \pgfprocess@continueafterrounding%
+}
+
+\def\tcbpatcharcround{\let\pgfprocess@@specialround=\tcb@pgfprocess@@specialround@orig}
+\def\tcbpatcharcangular{\let\pgfprocess@@specialround=\tcb@pgfprocess@@specialround@angular}
+
\def\tcb@arc@zpt{\pgfsetcornersarced{\pgfpointorigin}}%
\def\tcb@arc@ins{\pgfsetcornersarced{\pgfqpoint{\kvtcb@arc}{\kvtcb@arc}}}%
\def\tcb@arc@out{\pgfsetcornersarced{\pgfqpoint{\tcb@outer@arc}{\tcb@outer@arc}}}%
@@ -1123,7 +1262,7 @@
\iftcb@uppervisible%
\begin{pgfscope}%
\pgfsetfillopacity{\kvtcb@opacityupper}%
- \csname tcb@dbox@\kvtcb@valign\endcsname{\the\dimexpr\kvtcb@left@rule+\kvtcb@boxsep+\kvtcb@leftupper\relax}%
+ \csname tcb@dbox@\kvtcb@valignupper\endcsname{\the\dimexpr\kvtcb@left@rule+\kvtcb@boxsep+\kvtcb@leftupper\relax}%
{\the\dimexpr\tcb@innerheight+\kvtcb@bottom@rule-\kvtcb@boxsep-\tcb@break@topsep-\kvtcb@top-\tcb@height@upper\relax}%
{\tcb@height@upper}{\tcb@upperbox}{tcbcol@upper}%
\end{pgfscope}%
@@ -1232,6 +1371,7 @@
\csname tcb@before@\tcb@split@state\endcsname%
\begin{\kvtcb@graphenv}%
\tcb@bbdraw%
+ \tcb@apply@graph@patches%
}
\def\tcb@drawing@env@end{%
@@ -1307,7 +1447,7 @@
\tcb@set@@phantom%
\colorlet{tcbcol@origin}{.}%
\tcb@set@color{tcbcol@upper}%
- \sbox\tcb@upperbox{\kvtcb@fontupper\kvtcb@before@upper\ignorespaces#1\unskip\kvtcb@after@upper}%
+ \sbox\tcb@upperbox{\tcb@embed@tcbox{\kvtcb@fontupper\kvtcb@halignupper\kvtcb@before@upper\ignorespaces#1\unskip\kvtcb@after@upper}}%
\tcb@reset@color%
\tcbdimto\tcb@val@raisebase{\the\dimexpr\dp\tcb@upperbox+\kvtcb@bottom+\kvtcb@boxsep+\kvtcb@bottom@rule@stand+\kvtcb@bbbottom@stand\relax}%
\tcbdimto\kvtcb@width{\wd\tcb@upperbox+\kvtcb@left@rule+\kvtcb@leftupper+\kvtcb@boxsep*2+\kvtcb@rightupper+\kvtcb@right@rule}%
@@ -1325,7 +1465,7 @@
\tcb@set@@dimensions%
\colorlet{tcbcol@origin}{.}%
\tcb@set@color{tcbcol@upper}%
- \begin{tcb@savebox}{\tcb@upperbox}{\tcb@w@upper}\kvtcb@fontupper\kvtcb@before@upper\ignorespaces#1\unskip\kvtcb@after@upper\end{tcb@savebox}%
+ \begin{tcb@savebox}{\tcb@upperbox}{\tcb@w@upper}\kvtcb@fontupper\kvtcb@halignupper\kvtcb@before@upper\ignorespaces#1\unskip\kvtcb@after@upper\end{tcb@savebox}%
\tcb@reset@color%
\tcb@hasLowerfalse%
\tcb@draw@color@box%
@@ -1607,25 +1747,34 @@
% saving of the lower box
+\def\tcb@lowerverbatim{%
+ \begingroup%
+ \tcbverbatimwrite\kvtcb@savelowerto}
+
\def\tcb@endlowerverbatimanddraw{%
- \tcb@endlowerverbatim%
+ \endtcbverbatimwrite%
+ \endgroup%
\IfFileExists{\kvtcb@savelowerto}{%
\tcb@savelowerbox\input{\kvtcb@savelowerto}\end{tcb@savebox}}{}%
\tcb@draw@color@box%
\tcb@finalize@environment%
}
-\def\tcb@lowerverbatim{%
+% saving of the upper box
+
+\def\tcb@upperverbatim{%
\begingroup%
- \tcbverbatimwrite\kvtcb@savelowerto}
+ \tcbverbatimwrite\kvtcb@saveupperto}
-\def\tcb@endlowerverbatim{%
+\def\tcb@endupperverbatimanddraw{%
\endtcbverbatimwrite%
\endgroup%
+ \IfFileExists{\kvtcb@saveupperto}{%
+ \tcb@saveupperbox\input{\kvtcb@saveupperto}\end{tcb@savebox}}{}%
+ \tcb@draw@color@box%
+ \tcb@finalize@environment%
}
-% saving of the upper box
-
\def\tcbwritetemp{%
\begingroup%
\tcbverbatimwrite\kvtcb@tempfile}
@@ -1683,22 +1832,24 @@
reset/.code={\tcb@reset},%
reset@core/.style={code={\let\tcbtitletext\@empty\tcb@attach@title@code@%
\let\tcb@lateoptions@hook\@empty},
- width=\linewidth,autoparskip,
+ width=\linewidth,autoparskip,arc is curved,
natural height,height plus=0pt,space to lower,valign=top,valign lower=top,
size=normal,rounded corners,
enlarge top by=0mm,enlarge bottom by=0mm,enlarge left by=0mm,enlarge right by=0mm,
toggle enlargement=none,toggle left and right=none,
baseline=0pt,adjust text={\"Apgjy},upperbox=visible,lowerbox=visible,lower separated,
colback=black!5!white,colframe=black!75!white,@colbacktitle=black!50!white,coltext=black,coltitle=white,
- fonttitle=,fontupper=,fontlower=,floatplacement=htb,nofloat,savelowerto=,
+ fonttitle=,fontupper=,fontlower=,floatplacement=htb,nofloat,saveto=,savelowerto=,
tempfile={\jobname.tcbtemp},
standard,parbox,hyphenationfix=false,overlay=,
+ halign=justify,halign lower=justify,halign title=justify,
before title=,after title=,before upper=,after upper=,before lower=,after lower=,
sidebyside=false,sidebyside align=center,sidebyside gap=10mm,
lefthand ratio=0.5,check odd page=false,nophantom,
shield externalize=false,list entry=,no label type,
opacityupper=1.0,opacitylower=1.0,opacitytitle=1.0,opacityframe=1.0,opacityback=1.0,@opacitybacktitle=1.0,
subtitle style=,title filled=false,every float=,ignore nobreak=false,before nobreak=\noindent,
+ tcbox width=auto,
},
initialize@reset=reset@core,
}
diff --git a/Master/tlpkg/tlpsrc/cjk-gs-integrate.tlpsrc b/Master/tlpkg/tlpsrc/cjk-gs-integrate.tlpsrc
index de48e57bcff..f5317bc1be5 100644
--- a/Master/tlpkg/tlpsrc/cjk-gs-integrate.tlpsrc
+++ b/Master/tlpkg/tlpsrc/cjk-gs-integrate.tlpsrc
@@ -1 +1 @@
-binpattern f bin/${ARCH}/cjk-gs-integrate
+ binpattern f bin/${ARCH}/cjk-gs-integrate