diff options
author | Karl Berry <karl@freefriends.org> | 2013-03-07 23:13:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-03-07 23:13:00 +0000 |
commit | 4e1f696f6b4ab551a453f61da79aa42f4b06d510 (patch) | |
tree | 75b4dfef3b0234553d20ccdec193c118c815d41f /Master | |
parent | 81b31d750e9806bfcd17916b130f77496b1ee9e3 (diff) |
tcolorbox (7mar13)
git-svn-id: svn://tug.org/texlive/trunk@29309 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/CHANGES | 20 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/README | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf | bin | 147401 -> 147400 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf | bin | 1500559 -> 1520185 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex | 188 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex | 68 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex | 8 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex | 30 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex | 26 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty | 27 |
13 files changed, 280 insertions, 99 deletions
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES index f11ff014d33..7b505aac700 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 2.00 (2013/03/01)
+%% The LaTeX package tcolorbox - version 2.01 (2013/03/07)
%%
%% -------------------------------------------------------------------------------------------
%% Copyright (c) 2006-2012 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
@@ -70,7 +70,7 @@ version 1.30 (2012/04/20) 'colbacklower'
version 2.00 (2013/03/01)
-- breaking news: the new library 'breakable' add breaking support to tcolorbox.
+- breaking news: the new library 'breakable' adds breaking support to tcolorbox.
- e-TeX now used instead of calc
- new key 'adjust text' and new implementation for 'adjusted title'
- new geometry keys:
@@ -99,5 +99,19 @@ version 2.00 (2013/03/01) 'watermark text', 'watermark text on', 'watermark graphics',
'watermark graphics on', 'watermark tikz', 'watermark tikz on',
'no watermark', 'watermark opacity', 'watermark color',
- 'watermark zoom', 'watermark stretch',
+ 'watermark zoom', 'watermark stretch'
+
+version 2.01 (2013/03/07)
+- bug fix: superfluous vertical space for a breakable box which appeared after a page break
+- bug fix: height computation error when a broken boxed starts with a segmentation line
+- new key for the 'listings' library:
+ 'listing inputencoding'
+- new library 'listingsutf8' as variant of 'listings' with new key
+ 'listing utf8'
+- keys 'toprule at break', 'bottomrule at break',
+ 'enlarge top at break by', 'enlarge bottom at break by'
+ moved from core package to 'breakable' library.
+- new keys for the 'breakable' library:
+ 'topsep at break', 'bottomsep at break', 'pad before break',
+ 'pad after break', 'pad at break'
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/README b/Master/texmf-dist/doc/latex/tcolorbox/README index 217e6249343..f5e5e6fbf9d 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 2.00 (2013/03/01) +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) %% %% ------------------------------------------------------------------------------------------- %% Copyright (c) 2006-2013 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> @@ -32,6 +32,7 @@ Contents of the package 'tcbbreakable.code.tex' LaTeX package file (library of tcolorbox) 'tcbdocumenation.code.tex' LaTeX package file (library of tcolorbox) 'tcblistings.code.tex' LaTeX package file (library of tcolorbox) + 'tcblistingsutf8.code.tex' LaTeX package file (library of tcolorbox) 'tcbskins.code.tex' LaTeX package file (library of tcolorbox) 'tcbtheorems.code.tex' LaTeX package file (library of tcolorbox) 'tcolorbox.pdf' Documentation for tcolorbox @@ -50,6 +51,7 @@ Alternatively, put the files to their respective locations within the TeX instal 'tcbbreakable.code.tex' -> /tex/latex/tcolorbox 'tcbdocumenation.code.tex' -> /tex/latex/tcolorbox 'tcblistings.code.tex' -> /tex/latex/tcolorbox + 'tcblistingsutf8.code.tex' -> /tex/latex/tcolorbox 'tcbtheorems.code.tex' -> /tex/latex/tcolorbox 'tcbskins.code.tex' -> /tex/latex/tcolorbox all other files -> /doc/latex/tcolorbox diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf Binary files differindex 22711a6773e..432f7194929 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex index 67b4a3da847..80aae833f4b 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 2.00 (2013/03/01) +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) %% tcolorbox-example.tex: an example for tcolorbox %% %% ------------------------------------------------------------------------------------------- diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf Binary files differindex 2a7701620ad..ad3fbe01abe 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex index 1f6ed365176..42b21104154 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 2.00 (2013/03/01) +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) %% tcolorbox.tex: Manual %% %% ------------------------------------------------------------------------------------------- @@ -81,8 +81,8 @@ pdfkeywords={colored boxes, LaTeX examples, theorems} } -\def\version{2.00}% -\def\datum{2013/03/01}% +\def\version{2.01}% +\def\datum{2013/03/07}% \makeindex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -175,32 +175,41 @@ The following keys are used inside |\tcbuselibrary| respectively \begin{docTcbKey}[library]{listings}{}{no value} Loads the package |listings| \cite{heinz:2007a} and provides additional - macros for typesetting listings which are described in section \ref{sec:listings} + macros for typesetting listings which are described in Section \ref{sec:listings} from page \pageref{sec:listings}. \end{docTcbKey} +\begin{docTcbKey}[library]{listingsutf8}{}{no value} + Loads the packages |listings| \cite{heinz:2007a} and + |listingsutf8| \cite{oberdiek:2011a} for UTF-8 support. + This is a variant of the library 'listings' + and is described in Section \ref{sec:listings} + from page \pageref{sec:listings}. +\end{docTcbKey} + + \begin{docTcbKey}[library]{theorems}{}{no value} Provides additional - macros for typesetting theorems which are described in section \ref{sec:theorems} + macros for typesetting theorems which are described in Section \ref{sec:theorems} from page \pageref{sec:theorems}. \end{docTcbKey} \begin{docTcbKey}[library]{documentation}{}{no value} Provides additional macros for typesetting \LaTeX\ documentations - which are described in section \ref{sec:documentation} + which are described in Section \ref{sec:documentation} from page \pageref{sec:documentation}. \end{docTcbKey} \begin{docTcbKey}[library]{skins}{}{no value} Loads the package |tikz| \cite{tantau:2010c} and provides additional styles (skins) for the appearance of the colored boxes; see - section \ref{sec:skins} from page \pageref{sec:skins}. + Section \ref{sec:skins} from page \pageref{sec:skins}. \end{docTcbKey} \begin{docTcbKey}[library]{breakable}{}{no value} Provides support for automatic box breaking from one page to another; - see section \ref{sec:breakable} from page \pageref{sec:breakable}. + see Section \ref{sec:breakable} from page \pageref{sec:breakable}. \end{docTcbKey} @@ -532,12 +541,6 @@ This is a \textbf{tcolorbox}. \end{dispExample} \end{docTcbKey} -\begin{docTcbKey}{toprule at break}{=\meta{length}}{no default, initially \texttt{0.5mm}} - Sets the line width of the top rule to \meta{length} \emph{if} the box is \refKey{/tcb/breakable}. - In this case, it is applied to \emph{middle} and \emph{last} parts in a - break sequence. Note that \refKey{/tcb/toprule} overwrites this value - if used afterwards. -\end{docTcbKey} \begin{docTcbKey}{bottomrule}{=\meta{length}}{no default, initially \texttt{0.5mm}} Sets the line width of the bottom rule to \meta{length}. @@ -550,26 +553,19 @@ This is a \textbf{tcolorbox}. \end{dispExample} \end{docTcbKey} -\begin{docTcbKey}{bottomrule at break}{=\meta{length}}{no default, initially \texttt{0.5mm}} - Sets the line width of the bottom rule to \meta{length} \emph{if} the box is \refKey{/tcb/breakable}. - In this case, it is applied to \emph{first} and \emph{middle} parts in a - break sequence. Note that \refKey{/tcb/bottomrule} overwrites this value - if used afterwards. -\end{docTcbKey} -\clearpage \begin{docTcbKey}{leftrule}{=\meta{length}}{no default, initially \texttt{0.5mm}} Sets the line width of the left rule to \meta{length}. \begin{dispExample} \tcbset{colback=red!5!white,colframe=red!75!black} -\clearpage \begin{tcolorbox}[leftrule=3mm] This is a \textbf{tcolorbox}. \end{tcolorbox} \end{dispExample} \end{docTcbKey} +\clearpage \begin{docTcbKey}{rightrule}{=\meta{length}}{no default, initially \texttt{0.5mm}} Sets the line width of the right rule to \meta{length}. \begin{dispExample} @@ -1250,14 +1246,6 @@ This is a \textbf{tcolorbox}. \end{docTcbKey} -\begin{docTcbKey}{enlarge top at break by}{=\meta{length}}{no default, initially \texttt{0mm}} - Enlarges the bounding box distance to the top of the box by \meta{length} - \emph{if} the box is \refKey{/tcb/breakable}. - In this case, it is applied to \emph{middle} and \emph{last} parts in a - break sequence. - \refKey{/tcb/enlarge top by} overwrites this key. -\end{docTcbKey} - \begin{docTcbKey}{enlarge bottom by}{=\meta{length}}{no default, initially |0mm|} Enlarges the bounding box distance to the bottom of the box by \meta{length}. @@ -1274,13 +1262,6 @@ This is a \textbf{tcolorbox}. \end{docTcbKey} -\begin{docTcbKey}{enlarge bottom at break by}{=\meta{length}}{no default, initially \texttt{0mm}} - Enlarges the bounding box distance to the bottom of the box by \meta{length} - \emph{if} the box is \refKey{/tcb/breakable}. - In this case, it is applied to \emph{first} and \emph{middle} parts in a - break sequence. \refKey{/tcb/enlarge bottom by} overwrites this key. -\end{docTcbKey} - \clearpage \begin{docTcbKey}{enlarge left by}{=\meta{length}}{no default, initially |0mm|} @@ -1457,13 +1438,25 @@ Now, we are using the file:\par \clearpage -\section{Library 'listings'}\label{sec:listings} +\section{Library 'listings' / 'listingsutf8'}\label{sec:listings} The library is loaded by a package option or inside the preamble by: \begin{dispListing} \tcbuselibrary{listings} \end{dispListing} This also loads the package |listings| \cite{heinz:2007a}. +Alternatively, if your sources are encoded with UTF-8, you can use the support from +the package |listingsutf8| \cite{oberdiek:2011a} by loading the library +variant 'listingsutf8'. +\begin{dispListing} +\tcbuselibrary{listingsutf8} +\tcbset{listing utf8=latin1}% optional; 'latin1' is the default. +\end{dispListing} +This also loads the packages |listings| \cite{heinz:2007a} +and |listingsutf8| \cite{oberdiek:2011a}. + + + \subsection{Macros of the Library} \begin{docEnvironment}{tcblisting}{\marg{options}} @@ -1479,7 +1472,7 @@ This is a \LaTeX\ example which displays the text as source code and in compiled form. \end{tcblisting} \end{dispExample} -\begin{dispExample} +{\tcbset{breakable}\begin{dispExample} \begin{tcblisting}{colback=yellow!5,colframe=yellow!50!black,listing only, title=This is source code in another language (XML), fonttitle=\bfseries, listing options={language=XML,columns=fullflexible,keywordstyle=\color{red}}} @@ -1491,10 +1484,11 @@ and in compiled form. </project> \end{tcblisting} \end{dispExample} +} \end{docEnvironment} -\clearpage +%\clearpage \begin{docEnvironment}{tcboutputlisting}{} Saves the environment content to a file which is named by the key value of |listing file|. Later, this file can be loaded by @@ -1577,6 +1571,23 @@ Here, we use the predefined style. \end{dispExample} \end{docTcbKey} + +\begin{docTcbKey}{listing inputencoding}{=\meta{encoding}}{no default, initially \texttt{\cs inputencodingname}} + Sets the input encoding value for the predefined listing style |tcblatex| + and |tcbdocumentation| from the library 'documentation'. + The initial value is derived from the package |inputenc| if used. +\end{docTcbKey} + + +\begin{docTcbKey}{listing utf8}{=\meta{one-byte-encoding}}{style, no default, initially |latin1|} + Abbreviation for using \refKey{/tcb/listing inputencoding} + together with UTF-8 support from the package |listingsutf8| \cite{oberdiek:2011a}. + This option is available only for the library variant 'listingsutf8'. + The \meta{one-byte-encoding} is one of + the applicable encodings from \cite{oberdiek:2011a}, e.\,g.\ |latin1|. +\end{docTcbKey} + + \clearpage \begin{docTcbKey}{listing and text}{}{no value, initially set} Typesets the environment content as listing in the upper part and @@ -2155,6 +2166,11 @@ This also loads the library 'listings', see section \ref{sec:listings}, and a bunch of packages, namely |doc|, |pifont|, |marvosym|, |hyperref|, and |makeidx|. +For UTF-8 support, load: +\begin{dispListing} + \tcbuselibrary{listingsutf8,documentation} +\end{dispListing} + \subsection{Macros of the Library} @@ -4246,7 +4262,7 @@ parameters. The differences are: \clearpage -\subsection{Option Keys} +\subsection{Main Option Keys} \begin{docTcbKey}{breakable}{}{no value} Allows the |tcolorbox| to be breakable. If the box is larger than the available space at the current page, the box is automatically broken @@ -4305,6 +4321,89 @@ parameters. The differences are: \end{docTcbKey} +\clearpage +\subsection{Option Keys for the Break Appearance} + +\begin{docTcbKey}{toprule at break}{=\meta{length}}{no default, initially \texttt{0.5mm}} + Sets the line width of the top rule to \meta{length} \emph{if} the box is \refKey{/tcb/breakable}. + In this case, it is applied to \emph{middle} and \emph{last} parts in a + break sequence. Note that \refKey{/tcb/toprule} overwrites this value + if used afterwards. +\end{docTcbKey} + + +\begin{docTcbKey}{bottomrule at break}{=\meta{length}}{no default, initially \texttt{0.5mm}} + Sets the line width of the bottom rule to \meta{length} \emph{if} the box is \refKey{/tcb/breakable}. + In this case, it is applied to \emph{first} and \emph{middle} parts in a + break sequence. Note that \refKey{/tcb/bottomrule} overwrites this value + if used afterwards. +\end{docTcbKey} + + + + +\begin{docTcbKey}{topsep at break}{=\meta{length}}{no default, initially \texttt{0mm}} + Additional vertical space of \meta{length} which is added at the top of + \emph{middle} and \emph{last} parts in a break sequence. In general, + it is not advisable to change this value if these parts start with a rule or a title. +\end{docTcbKey} + +\begin{docTcbKey}{bottomsep at break}{=\meta{length}}{no default, initially \texttt{0mm}} + Additional vertical space of \meta{length} which is added at the bottom of + \emph{first} and \emph{middle} parts in a break sequence. + In general, it is not advisable to change this value if these parts end with a rule. +\end{docTcbKey} + +\begin{docTcbKey}{pad before break}{=\meta{length}}{style, no default, initially \texttt{3.5mm}} + Sets the total amount of vertical space after the text content and before the + break point to \meta{length}. This style sets \refKey{/tcb/toprule at break} to |0pt| + and changes \refKey{/tcb/topsep at break} as required. + In general, it is not advisable to change this value if the + \emph{middle} and \emph{last} parts in a break sequence start with a rule or a title. +\end{docTcbKey} + +\begin{docTcbKey}{pad after break}{=\meta{length}}{style, no default, initially \texttt{3.5mm}} + Sets the total amount of vertical space after the break point and before the + text content to \meta{length}. This style sets \refKey{/tcb/bottomrule at break} to |0pt| + and changes \refKey{/tcb/bottomsep at break} as required. + In general, it is not advisable to change this value if the + \emph{first} and \emph{middle} parts in a break sequence end with a rule. +\end{docTcbKey} + +\begin{docTcbKey}{pad at break}{=\meta{length}}{style, no default, initially \texttt{3.5mm}} + Abbreviation for setting \meta{length} to \refKey{/tcb/pad before break} + and \refKey{/tcb/pad after break}. +\end{docTcbKey} + + +\begin{dispListing} +% \usepackage{lipsum} % preamble +\tcbset{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries} + +\begin{tcolorbox}[enhanced,breakable,pad at break=0mm, + title={For this box, the pad space at the break point is set to 0mm}] + \lipsum[1-2] +\end{tcolorbox} +\end{dispListing} +{\tcbusetemp} + + + +\begin{docTcbKey}{enlarge top at break by}{=\meta{length}}{no default, initially \texttt{0mm}} + Enlarges the bounding box distance to the top of the box by \meta{length} + \emph{if} the box is \refKey{/tcb/breakable}. + In this case, it is applied to \emph{middle} and \emph{last} parts in a + break sequence. + \refKey{/tcb/enlarge top by} overwrites this key. +\end{docTcbKey} + + +\begin{docTcbKey}{enlarge bottom at break by}{=\meta{length}}{no default, initially \texttt{0mm}} + Enlarges the bounding box distance to the bottom of the box by \meta{length} + \emph{if} the box is \refKey{/tcb/breakable}. + In this case, it is applied to \emph{first} and \emph{middle} parts in a + break sequence. \refKey{/tcb/enlarge bottom by} overwrites this key. +\end{docTcbKey} \clearpage @@ -4487,6 +4586,13 @@ own purposes. date = {1998-02}, } +@manual{oberdiek:2011a, + author = {Heiko Oberdiek}, + title = {The listingsutf8 package}, + url = {http://mirror.ctan.org/macros/latex/contrib/oberdiek/listingsutf8.pdf}, + date = {2011-11-10}, +} + \end{tcbverbatimwrite} \clearpage diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex index aba156be1c6..0764c048932 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 2.00 (2013/03/01) +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) %% tcbbreakable.code.tex: Code for breakable colorboxes %% %% ------------------------------------------------------------------------------------------- @@ -23,7 +23,6 @@ \let\tcb@drawcolorbox@standalone=\tcb@drawcolorbox \let\tcb@parboxrestore@true=\tcb@parboxrestore -%\def\tcb@parboxrestore@false{\vspace{-\parskip}} \def\tcb@parboxrestore@false{\vskip-\parskip} \def\tcb@vbox#1#2{% @@ -45,7 +44,11 @@ % remaining height \def\tcb@comp@h@page{% \ifx\kvtcb@float\@empty% - \tcbdimto\tcb@h@page{\pagegoal-\pagetotal-\pageshrink-\kvtcb@shrinkbreakgoal}% + \ifdim\pagegoal=16383.99998pt + \tcbdimto\tcb@h@page{\textheight-\kvtcb@shrinkbreakgoal}% + \else + \tcbdimto\tcb@h@page{\pagegoal-\pagetotal-\pageshrink-\kvtcb@shrinkbreakgoal}% + \fi% \else% \tcbdimto\tcb@h@page{\textheight-\kvtcb@shrinkbreakgoal}% \fi% @@ -70,8 +73,7 @@ \def\tcb@drawcolorbox@breakable{% \ifx\kvtcb@float\@empty% - \par\nointerlineskip{\topskip\z@\null}% - \bgroup\@nobreakfalse\addpenalty\z@\egroup% force update vertical list + {\parskip\z@\par}\bgroup\@nobreakfalse\addpenalty\z@\egroup% force update vertical list \setbox\z@=\vbox{\kvtcb@beforebox}% \tcbdimto\tcb@h@before{\ht\z@+\dp\z@+\dimexpr\parskip\relax}% \setbox\z@=\vbox{\kvtcb@afterbox}% @@ -94,7 +96,7 @@ \else \ifx\kvtcb@float\@empty% \ifdim\dimexpr\tcb@h@page-\tcb@h@before-\tcb@h@padding-\tcb@h@padtitle<\kvtcb@breakminlines\baselineskip\relax% - \pagebreak\null% + \pagebreak% \tcb@comp@h@page% \ifdim\tcb@h@total<\tcb@h@page\relax% no break! \tcb@drawcolorbox@standalone% @@ -133,6 +135,8 @@ \let\kvtcb@bottom@rule=\kvtcb@bottom@rule@break% \let\kvtcb@bbtop=\kvtcb@bbtop@stand% \let\kvtcb@bbbottom=\kvtcb@bbbottom@break% + \let\tcb@break@topsep=\tcb@zpt% + \let\tcb@break@bottomsep=\kvtcb@bottomsep% } \def\tcb@split@setstate@middle{% @@ -141,6 +145,8 @@ \let\kvtcb@bottom@rule=\kvtcb@bottom@rule@break% \let\kvtcb@bbtop=\kvtcb@bbtop@break% \let\kvtcb@bbbottom=\kvtcb@bbbottom@break% + \let\tcb@break@topsep=\kvtcb@topsep% + \let\tcb@break@bottomsep=\kvtcb@bottomsep% } \def\tcb@split@setstate@last{% @@ -149,6 +155,8 @@ \let\kvtcb@bottom@rule=\kvtcb@bottom@rule@stand% \let\kvtcb@bbtop=\kvtcb@bbtop@break% \let\kvtcb@bbbottom=\kvtcb@bbbottom@stand% + \let\tcb@break@topsep=\kvtcb@topsep% + \let\tcb@break@bottomsep=\tcb@zpt% } \def\tcb@split@first{% @@ -174,9 +182,12 @@ \edef\kvtcb@skin@@middle{\kvtcb@skin@middle}% \edef\kvtcb@skin@@last{\kvtcb@skin@last}% % - \tcbdimto\tcb@h@padding@first{\kvtcb@bbtop@stand+\kvtcb@bbbottom@break+\kvtcb@top@rule@stand+\kvtcb@bottom@rule@break+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom}% - \tcbdimto\tcb@h@padding@middle{\kvtcb@bbtop@break+\kvtcb@bbbottom@break+\kvtcb@top@rule@break+\kvtcb@bottom@rule@break+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom}% - \tcbdimto\tcb@h@padding@last{\kvtcb@bbtop@break+\kvtcb@bbbottom@stand+\kvtcb@top@rule@break+\kvtcb@bottom@rule@stand+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom}% + \let\tcb@h@breaksep@first=\kvtcb@bottomsep% + \tcbdimto\tcb@h@breaksep@middle{\kvtcb@bottomsep+\kvtcb@topsep}% + \let\tcb@h@breaksep@last=\kvtcb@topsep% + \tcbdimto\tcb@h@padding@first{\kvtcb@bbtop@stand+\kvtcb@bbbottom@break+\kvtcb@top@rule@stand+\kvtcb@bottom@rule@break+\tcb@h@breaksep@first+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom}% + \tcbdimto\tcb@h@padding@middle{\kvtcb@bbtop@break+\kvtcb@bbbottom@break+\kvtcb@top@rule@break+\kvtcb@bottom@rule@break+\tcb@h@breaksep@middle+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom}% + \tcbdimto\tcb@h@padding@last{\kvtcb@bbtop@break+\kvtcb@bbbottom@stand+\kvtcb@top@rule@break+\kvtcb@bottom@rule@stand+\tcb@h@breaksep@last+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom}% % \tcb@split@setstate@first% % @@ -256,7 +267,7 @@ \tcb@comp@h@page% \edef\tcb@h@upper{0pt}% \tcbdimto\tcb@h@lower{\ht\tcb@totallowerbox+\dp\tcb@totallowerbox}% - \tcbdimto\tcb@h@total{\tcb@h@after+\tcb@h@padding@last-\kvtcb@top+\tcb@h@padtitle+\tcb@h@segment+\tcb@h@lower}% + \tcbdimto\tcb@h@total{\tcb@h@after+\tcb@h@padding@last-\kvtcb@top-\kvtcb@boxsep+\tcb@h@padtitle+\tcb@h@segment+\tcb@h@lower}% % \ifdim\tcb@h@total<\tcb@h@page\relax% no break \tcb@split@setstate@last% @@ -265,7 +276,7 @@ \let\tcb@split@next=\relax% \else \tcb@split@setstate@middle% - \tcbdimto\tcb@split@dim{\tcb@h@page-\tcb@h@padding@middle+\kvtcb@top-\tcb@h@padtitle-\tcb@h@segment}% + \tcbdimto\tcb@split@dim{\tcb@h@page-\tcb@h@padding@middle+\kvtcb@top+\kvtcb@boxsep-\tcb@h@padtitle-\tcb@h@segment}% \tcb@split@lower@box% \tcb@sdraw@SL% \let\tcb@split@next=\tcb@split@L% @@ -301,7 +312,7 @@ \def\tcb@sdraw@USL{% \tcbset{skin=\csname kvtcb@skin@@\tcb@split@state\endcsname}% \def\tcb@segment@state{1}% - \tcbdimto\tcb@natheight{\tcb@h@padtitle+\kvtcb@top@rule+\kvtcb@bottom@rule+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom+\tcb@h@upper+\tcb@h@segment+\tcb@h@lower}% + \tcbdimto\tcb@natheight{\tcb@h@padtitle+\kvtcb@top@rule+\kvtcb@bottom@rule+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom+\tcb@h@upper+\tcb@h@segment+\tcb@h@lower+\csname tcb@h@breaksep@\tcb@split@state\endcsname}% \tcb@ch@natural% \tcbdimto\tcb@innerheight{\tcb@height-\kvtcb@top@rule-\kvtcb@bottom@rule-\tcb@h@padtitle}% \csname tcb@before@\tcb@split@state\endcsname% @@ -331,7 +342,7 @@ \def\tcb@sdraw@U{% \tcbset{skin=\csname kvtcb@skin@@\tcb@split@state\endcsname}% \def\tcb@segment@state{0}% - \tcbdimto\tcb@natheight{\tcb@h@padtitle+\kvtcb@top@rule+\kvtcb@bottom@rule+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom+\tcb@h@upper}% + \tcbdimto\tcb@natheight{\tcb@h@padtitle+\kvtcb@top@rule+\kvtcb@bottom@rule+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom+\tcb@h@upper+\csname tcb@h@breaksep@\tcb@split@state\endcsname}% \tcb@ch@natural% \tcbdimto\tcb@innerheight{\tcb@height-\kvtcb@top@rule-\kvtcb@bottom@rule-\tcb@h@padtitle}% \csname tcb@before@\tcb@split@state\endcsname% @@ -359,7 +370,7 @@ \def\tcb@sdraw@SL{% \tcbset{skin=\csname kvtcb@skin@@\tcb@split@state\endcsname}% \def\tcb@segment@state{1}% - \tcbdimto\tcb@natheight{\tcb@h@padtitle+\kvtcb@top@rule+\kvtcb@bottom@rule+\kvtcb@bottom+\tcb@h@segment+\tcb@h@lower}% + \tcbdimto\tcb@natheight{\tcb@h@padtitle+\kvtcb@top@rule+\kvtcb@bottom@rule+\kvtcb@bottom+\kvtcb@boxsep+\tcb@h@segment+\tcb@h@lower+\csname tcb@h@breaksep@\tcb@split@state\endcsname}% \tcb@ch@natural% \tcbdimto\tcb@innerheight{\tcb@height-\kvtcb@top@rule-\kvtcb@bottom@rule-\tcb@h@padtitle}% \csname tcb@before@\tcb@split@state\endcsname% @@ -388,7 +399,7 @@ \def\tcb@sdraw@L{% \tcbset{skin=\csname kvtcb@skin@@\tcb@split@state\endcsname}% \def\tcb@segment@state{2}% - \tcbdimto\tcb@natheight{\tcb@h@padtitle+\kvtcb@top@rule+\kvtcb@bottom@rule+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom+\ht\tcb@lowerbox+\dp\tcb@lowerbox}% + \tcbdimto\tcb@natheight{\tcb@h@padtitle+\kvtcb@top@rule+\kvtcb@bottom@rule+\kvtcb@boxsep*2+\kvtcb@top+\kvtcb@bottom+\ht\tcb@lowerbox+\dp\tcb@lowerbox+\csname tcb@h@breaksep@\tcb@split@state\endcsname}% \tcb@ch@natural% \tcbdimto\tcb@innerheight{\tcb@height-\kvtcb@top@rule-\kvtcb@bottom@rule-\tcb@h@padtitle}% \csname tcb@before@\tcb@split@state\endcsname% @@ -425,17 +436,32 @@ \let\tcb@drawcolorbox=\tcb@drawcolorbox@standalone}, breakable/.style={breakable@#1}, breakable/.default=true,% - unbreakable/.style={breakable=false}, - title after break/.store in=\kvtcb@followingtitle, - notitle after break/.style={title after break=}, - adjusted title after break/.style={title after break={#1\vphantom{\kvtcb@adjusttext}}}, - lines before break/.store in=\kvtcb@breakminlines, - shrink break goal/.store in=\kvtcb@shrinkbreakgoal, + unbreakable/.style={breakable=false},% + title after break/.store in=\kvtcb@followingtitle,% + notitle after break/.style={title after break=},% + adjusted title after break/.style={title after break={#1\vphantom{\kvtcb@adjusttext}}},% + lines before break/.store in=\kvtcb@breakminlines,% + shrink break goal/.store in=\kvtcb@shrinkbreakgoal,% +% + toprule at break/.store in=\kvtcb@top@rule@break, + bottomrule at break/.store in=\kvtcb@bottom@rule@break, + enlarge top at break by/.store in=\kvtcb@bbtop@break, + enlarge bottom at break by/.store in=\kvtcb@bbbottom@break, +% + topsep at break/.store in=\kvtcb@topsep,% + bottomsep at break/.store in=\kvtcb@bottomsep,% + pad before break/.code={\let\kvtcb@bottom@rule@break=\tcb@zpt% + \tcbdimto\kvtcb@bottomsep{#1-\kvtcb@bottom-\kvtcb@boxsep}},% + pad after break/.code={\let\kvtcb@top@rule@break=\tcb@zpt% + \tcbdimto\kvtcb@topsep{#1-\kvtcb@top-\kvtcb@boxsep}},% + pad at break/.style={pad before break={#1},pad after break={#1}},% } \tcbset{% notitle after break, shrink break goal=0pt, lines before break=2, + topsep at break=0pt, + bottomsep at break=0pt, } diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex index 7a9734de709..fd4481c5abd 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 2.00 (2013/03/01) +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) %% tcbdocumentation.code.tex: Code for LaTeX documentations %% %% ------------------------------------------------------------------------------------------- @@ -49,7 +49,7 @@ basicstyle=\ttfamily\footnotesize, extendedchars=true, moredelim={[is][\itshape\rmfamily]{§}{§}}, - nolol} + nolol,inputencoding=\kvtcb@listingencoding} % The following macros are taken from ltxdoc \DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex index 4955eec9f6b..deca862db43 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 2.00 (2013/03/01) +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) %% tcblistings.code.tex: Code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- @@ -26,8 +26,8 @@ aboveskip={0\p@ \@plus 6\p@}, belowskip={0\p@ \@plus 6\p@}, columns=fullflexible, keepspaces=true, breaklines=true, breakatwhitespace=true, - basicstyle=\ttfamily\small, extendedchars=true, nolol - } + basicstyle=\ttfamily\small, extendedchars=true, nolol, + inputencoding=\kvtcb@listingencoding} \def\tcbuselistingtext{\input{\kvtcb@listingfile}}% @@ -72,6 +72,7 @@ comment and listing/.code={\let\tcp@listing@process\tcb@listing@commentAndListing}, listing only/.code={\let\tcp@listing@process\tcbuselistinglisting}, text only/.code={\let\tcp@listing@process\tcbuselistingtext}, + listing inputencoding/.store in=\kvtcb@listingencoding, } \tcbset{ @@ -79,6 +80,7 @@ listing style=tcblatex, comment=, listing and text, + listing inputencoding=\inputencodingname, } \newenvironment{tcblisting}[1]{% diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex new file mode 100644 index 00000000000..723fd1e6f3e --- /dev/null +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex @@ -0,0 +1,30 @@ +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) +%% tcblistingsutf8.code.tex: Code for colorboxes with listings in UTF-8 +%% +%% ------------------------------------------------------------------------------------------- +%% Copyright (c) 2006-2013 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> +%% ------------------------------------------------------------------------------------------- +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `author-maintained'. +%% +%% This work consists of all files listed in README +%% +\makeatletter +\def\tcblibrary@listingsutf8@loaded{} + +\RequirePackage{listingsutf8}[2011/11/10] +\tcbuselibrary{listings} + +\tcbset{ + listing utf8/.style={listing inputencoding=utf8/#1}, + listing utf8=latin1, +} + diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex index 72bed16be68..408f0cda0e1 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 2.00 (2013/03/01) +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) %% tcbskins.code.tex: Code for colorboxes with different skins %% %% ------------------------------------------------------------------------------------------- @@ -27,7 +27,7 @@ \node[name=frame,at={(0,0)},above right,minimum width=\kvtcb@width,minimum height=\tcb@height]{}; \node[name=interior,at={({\kvtcb@left@rule},{\kvtcb@bottom@rule})},above right,minimum width=\tcb@innerwidth,minimum height=\tcb@innerheight]{}; \ifnum\tcb@segment@state=1% - \node[name=segmentation,at={({\kvtcb@left@rule},{\the\dimexpr\kvtcb@bottom@rule+\kvtcb@boxsep*2+\kvtcb@bottom+\tcb@height@lower\relax})},above right, + \node[name=segmentation,at={({\kvtcb@left@rule},{\the\dimexpr\kvtcb@bottom@rule+\kvtcb@boxsep*2+\tcb@break@bottomsep+\kvtcb@bottom+\tcb@height@lower\relax})},above right, minimum width=\tcb@innerwidth,minimum height=\the\dimexpr\kvtcb@middle*2\relax]{}; \fi% \iftcb@hasTitle% @@ -499,40 +499,40 @@ \fi% \ifcase\tcb@segment@state \path[fill=white,draw,dotted] - ([xshift={\kvtcb@boxsep},yshift={\kvtcb@boxsep}]interior.south west) rectangle - ([xshift={-\kvtcb@boxsep},yshift={-\kvtcb@boxsep}]interior.north east); + ([xshift={\kvtcb@boxsep},yshift={\kvtcb@boxsep+\tcb@break@bottomsep}]interior.south west) rectangle + ([xshift={-\kvtcb@boxsep},yshift={-\kvtcb@boxsep-\tcb@break@topsep}]interior.north east); \path[fill=green!20!white,draw=green!75!black,dashed] - ([xshift={\kvtcb@boxsep+\kvtcb@leftupper},yshift={\kvtcb@boxsep+\kvtcb@bottom}]interior.south west) + ([xshift={\kvtcb@boxsep+\kvtcb@leftupper},yshift={\kvtcb@boxsep+\kvtcb@bottom+\tcb@break@bottomsep}]interior.south west) rectangle node[font=\scriptsize] {upper: w=\tcb@w@upper, h=\tcb@height@upper} +(\tcb@w@upper,\tcb@height@upper); \or% \ifvoid\tcb@upperbox \path[fill=white,draw,dotted] - ([xshift={\kvtcb@boxsep},yshift={\kvtcb@boxsep}]interior.south west) rectangle - ([xshift={-\kvtcb@boxsep},yshift={-\kvtcb@boxsep}]interior.north east); + ([xshift={\kvtcb@boxsep},yshift={\kvtcb@boxsep+\tcb@break@bottomsep}]interior.south west) rectangle + ([xshift={-\kvtcb@boxsep},yshift={-\kvtcb@boxsep-\tcb@break@topsep}]interior.north east); \else \path[fill=white,draw,dotted] - ([xshift={\kvtcb@boxsep},yshift={\kvtcb@boxsep}]interior.south west) rectangle + ([xshift={\kvtcb@boxsep},yshift={\kvtcb@boxsep+\tcb@break@bottomsep}]interior.south west) rectangle ([xshift={-\kvtcb@boxsep},yshift={-\kvtcb@boxsep}]segmentation.east); \path[fill=white,draw,dotted] ([xshift={\kvtcb@boxsep},yshift={\kvtcb@boxsep}]segmentation.west) - rectangle ([xshift={-\kvtcb@boxsep},yshift={-\kvtcb@boxsep}]interior.north east); + rectangle ([xshift={-\kvtcb@boxsep},yshift={-\kvtcb@boxsep-\tcb@break@topsep}]interior.north east); \path[fill=green!20!white,draw=green!75!black,dashed] ([xshift={\kvtcb@boxsep+\kvtcb@leftupper},yshift={\kvtcb@boxsep}]segmentation.north west) rectangle node[font=\scriptsize] {upper: w=\tcb@w@upper, h=\tcb@height@upper} +(\tcb@w@upper,\tcb@height@upper); \fi% \path[fill=green!20!white,draw=green!75!black,dashed] - ([xshift={\kvtcb@boxsep+\kvtcb@leftlower},yshift={\kvtcb@boxsep+\kvtcb@bottom}]interior.south west) + ([xshift={\kvtcb@boxsep+\kvtcb@leftlower},yshift={\kvtcb@boxsep+\kvtcb@bottom+\tcb@break@bottomsep}]interior.south west) rectangle node[font=\scriptsize] {lower: w=\tcb@w@lower, h=\tcb@height@lower} +(\tcb@w@lower,\tcb@height@lower); \path[draw=red,opacity=0.5] (segmentation.south west) rectangle (segmentation.north east); \else \path[fill=white,draw,dotted] - ([xshift={\kvtcb@boxsep},yshift={\kvtcb@boxsep}]interior.south west) rectangle - ([xshift={-\kvtcb@boxsep},yshift={-\kvtcb@boxsep}]interior.north east); + ([xshift={\kvtcb@boxsep},yshift={\kvtcb@boxsep+\tcb@break@bottomsep}]interior.south west) rectangle + ([xshift={-\kvtcb@boxsep},yshift={-\kvtcb@boxsep-\tcb@break@topsep}]interior.north east); \path[fill=green!20!white,draw=green!75!black,dashed] - ([xshift={\kvtcb@boxsep+\kvtcb@leftlower},yshift={\kvtcb@boxsep+\kvtcb@bottom}]interior.south west) + ([xshift={\kvtcb@boxsep+\kvtcb@leftlower},yshift={\kvtcb@boxsep+\kvtcb@bottom+\tcb@break@bottomsep}]interior.south west) rectangle node[font=\scriptsize] {lower: w=\tcb@height@lower, h=\tcb@h@lower} +(\tcb@w@lower,\tcb@height@lower); \fi% diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex index 1485b58a9fe..d1bad85009c 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 2.00 (2013/03/01) +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) %% tcbtheorems.code.tex: Code for theorems in colorboxes %% %% ------------------------------------------------------------------------------------------- diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty b/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty index b9f4b18b411..a87b89d674c 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 2.00 (2013/03/01) +%% The LaTeX package tcolorbox - version 2.01 (2013/03/07) %% tcolorbox.sty: Text color boxes %% %% ------------------------------------------------------------------------------------------- @@ -18,7 +18,7 @@ %% This work consists of all files listed in README %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tcolorbox}[2013/03/01 version 2.00 text color boxes] +\ProvidesPackage{tcolorbox}[2013/03/07 version 2.01 text color boxes] \RequirePackage{pgf}[2008/01/15] \RequirePackage{verbatim}[2003/08/22] @@ -43,6 +43,8 @@ \def\tcbdimto#1#2{\edef#1{\the\dimexpr#2\relax}} +\def\tcb@zpt{0pt} + \def\tcb@comp@arc@auto{% \let\tcb@outer@arc=\kvtcb@top@rule@stand% \ifdim\kvtcb@bottom@rule@stand<\tcb@outer@arc\relax% @@ -65,12 +67,10 @@ adjusted title/.style={title={#1\vphantom{\kvtcb@adjusttext}}}, width/.store in=\kvtcb@width, boxsep/.store in=\kvtcb@boxsep, - toprule at break/.store in=\kvtcb@top@rule@break, toprule/.code={% \def\kvtcb@top@rule@stand{#1}% \let\kvtcb@top@rule@break=\kvtcb@top@rule@stand% }, - bottomrule at break/.store in=\kvtcb@bottom@rule@break, bottomrule/.code={% \def\kvtcb@bottom@rule@stand{#1}% \let\kvtcb@bottom@rule@break=\kvtcb@bottom@rule@stand% @@ -138,12 +138,10 @@ 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, - enlarge top at break by/.store in=\kvtcb@bbtop@break, enlarge top by/.code={% \def\kvtcb@bbtop@stand{#1}% \let\kvtcb@bbtop@break=\kvtcb@bbtop@stand% }, - enlarge bottom at break by/.store in=\kvtcb@bbbottom@break, enlarge bottom by/.code={% \def\kvtcb@bbbottom@stand{#1}% \let\kvtcb@bbbottom@break=\kvtcb@bbbottom@stand% @@ -395,7 +393,7 @@ \begin{pgfscope}% \pgfsetcolor{\kvtcb@colframe}% \pgfsetdash{{1mm}{1mm}}{0.5mm}% - \tcbdimto\tcb@seg@pos{\kvtcb@bottom@rule+\kvtcb@boxsep*2+\kvtcb@middle+\kvtcb@bottom+\tcb@height@lower}% + \tcbdimto\tcb@seg@pos{\kvtcb@bottom@rule+\kvtcb@boxsep*2+\tcb@break@bottomsep+\kvtcb@middle+\kvtcb@bottom+\tcb@height@lower}% \pgfpathmoveto{\pgfpoint{\kvtcb@left@rule}{\tcb@seg@pos}}% \pgfpathlineto{\pgfpoint{\kvtcb@width-\kvtcb@right@rule}{\tcb@seg@pos}}% \pgfusepath{stroke}% @@ -438,14 +436,14 @@ \def\tcb@tdraw@upper{% \csname tcb@dbox@\kvtcb@valign\endcsname{\the\dimexpr\kvtcb@left@rule+\kvtcb@boxsep+\kvtcb@leftupper\relax}% - {\the\dimexpr\tcb@innerheight+\kvtcb@bottom@rule-\kvtcb@boxsep-\kvtcb@top-\tcb@height@upper\relax}% + {\the\dimexpr\tcb@innerheight+\kvtcb@bottom@rule-\kvtcb@boxsep-\tcb@break@topsep-\kvtcb@top-\tcb@height@upper\relax}% {\tcb@height@upper}{\tcb@upperbox}% } \def\tcb@tdraw@lower{% \iftcb@lowervisible% \csname tcb@dbox@\kvtcb@valignlower\endcsname{\the\dimexpr\kvtcb@left@rule+\kvtcb@boxsep+\kvtcb@leftlower\relax}% - {\the\dimexpr\kvtcb@bottom@rule+\kvtcb@boxsep+\kvtcb@bottom\relax}% + {\the\dimexpr\kvtcb@bottom@rule+\kvtcb@boxsep+\tcb@break@bottomsep+\kvtcb@bottom\relax}% {\tcb@height@lower}{\tcb@lowerbox}% \fi% } @@ -457,8 +455,8 @@ \tcbdimto\tcb@h@title{\ht\tcb@titlebox+\dp\tcb@titlebox}% \tcbdimto\tcb@h@padtitle{\kvtcb@title@rule+\kvtcb@boxsep*2+\kvtcb@toptitle+\kvtcb@bottomtitle+\tcb@h@title}% \else% - \edef\tcb@h@title{0pt}% - \edef\tcb@h@padtitle{0pt}% + \let\tcb@h@title=\tcb@zpt% + \let\tcb@h@padtitle=\tcb@zpt% \fi% % \tcbdimto\tcb@h@upper{\ht\tcb@upperbox+\dp\tcb@upperbox}% @@ -470,8 +468,8 @@ \tcbdimto\tcb@h@segment{\kvtcb@boxsep*2+\kvtcb@middle*2}% \tcbdimto\tcb@h@lower{\ht\tcb@lowerbox+\dp\tcb@lowerbox}% \else - \edef\tcb@h@segment{0pt}% - \edef\tcb@h@lower{0pt}% + \let\tcb@h@segment=\tcb@zpt% + \let\tcb@h@lower=\tcb@zpt% \fi% % \tcb@drawcolorbox% @@ -483,6 +481,8 @@ \let\kvtcb@bottom@rule=\kvtcb@bottom@rule@stand% \let\kvtcb@bbtop=\kvtcb@bbtop@stand% \let\kvtcb@bbbottom=\kvtcb@bbbottom@stand% + \let\tcb@break@topsep=\tcb@zpt% + \let\tcb@break@bottomsep=\tcb@zpt% % floats \ifx\kvtcb@float\@empty% \newenvironment{tcb@float}{\kvtcb@beforebox}{\kvtcb@afterbox}% @@ -584,6 +584,7 @@ } \tcb@add@library{listings}{tcblistings.code.tex} +\tcb@add@library{listingsutf8}{tcblistingsutf8.code.tex} \tcb@add@library{theorems}{tcbtheorems.code.tex} \tcb@add@library{documentation}{tcbdocumentation.code.tex} \tcb@add@library{skins}{tcbskins.code.tex} |