From 4b0f677aea00124171602de9498d50ac10d71eb3 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 20 Sep 2019 03:00:40 +0000 Subject: CTAN sync 201909200300 --- macros/latex/contrib/tcolorbox/CHANGES | 24 +++- macros/latex/contrib/tcolorbox/README | 2 +- .../latex/contrib/tcolorbox/tcbbreakable.code.tex | 4 +- .../contrib/tcolorbox/tcbdocumentation.code.tex | 59 ++++++-- .../latex/contrib/tcolorbox/tcbexternal.code.tex | 4 +- macros/latex/contrib/tcolorbox/tcbfitting.code.tex | 4 +- macros/latex/contrib/tcolorbox/tcbhooks.code.tex | 17 ++- .../latex/contrib/tcolorbox/tcblistings.code.tex | 4 +- .../contrib/tcolorbox/tcblistingscore.code.tex | 4 +- .../contrib/tcolorbox/tcblistingsutf8.code.tex | 4 +- .../latex/contrib/tcolorbox/tcbmagazine.code.tex | 4 +- macros/latex/contrib/tcolorbox/tcbminted.code.tex | 4 +- macros/latex/contrib/tcolorbox/tcbposter.code.tex | 4 +- .../latex/contrib/tcolorbox/tcbprocessing.code.tex | 4 +- macros/latex/contrib/tcolorbox/tcbraster.code.tex | 4 +- macros/latex/contrib/tcolorbox/tcbskins.code.tex | 4 +- .../contrib/tcolorbox/tcbskinsjigsaw.code.tex | 4 +- .../latex/contrib/tcolorbox/tcbtheorems.code.tex | 4 +- .../latex/contrib/tcolorbox/tcbvignette.code.tex | 4 +- macros/latex/contrib/tcolorbox/tcbxparse.code.tex | 10 +- .../contrib/tcolorbox/tcolorbox-example-poster.pdf | Bin 273214 -> 274152 bytes .../contrib/tcolorbox/tcolorbox-example-poster.tex | 2 +- .../latex/contrib/tcolorbox/tcolorbox-example.pdf | Bin 456409 -> 457694 bytes .../latex/contrib/tcolorbox/tcolorbox-example.tex | 2 +- .../tcolorbox/tcolorbox-tutorial-poster.pdf | Bin 440925 -> 442887 bytes .../tcolorbox/tcolorbox-tutorial-poster.tex | 2 +- .../tcolorbox/tcolorbox.doc.coreoptions.tex | 78 +++++++++-- .../tcolorbox/tcolorbox.doc.documentation.tex | 152 ++++++++++++++++++--- .../contrib/tcolorbox/tcolorbox.doc.hooks.tex | 28 +++- .../contrib/tcolorbox/tcolorbox.doc.recording.tex | 13 +- .../contrib/tcolorbox/tcolorbox.doc.s_main.sty | 1 + .../contrib/tcolorbox/tcolorbox.doc.skins.tex | 22 +-- macros/latex/contrib/tcolorbox/tcolorbox.pdf | Bin 7938126 -> 7152247 bytes macros/latex/contrib/tcolorbox/tcolorbox.sty | 36 +++-- macros/latex/contrib/tcolorbox/tcolorbox.tex | 10 +- 35 files changed, 402 insertions(+), 116 deletions(-) (limited to 'macros/latex/contrib/tcolorbox') diff --git a/macros/latex/contrib/tcolorbox/CHANGES b/macros/latex/contrib/tcolorbox/CHANGES index 721d974d1e..4775a12354 100644 --- a/macros/latex/contrib/tcolorbox/CHANGES +++ b/macros/latex/contrib/tcolorbox/CHANGES @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% %% ------------------------------------------------------------------------------------------- %% Copyright (c) 2006-2019 by Prof. Dr. Dr. Thomas F. Sturm @@ -1084,3 +1084,25 @@ version 4.20 (2019/03/02) * new options: 'beamer hidden', 'beamer alerted', 'hide', 'alert' * option 'only' moved from package to skins library - new documentation section '13 Beamer Support' + +version 4.21 (2019/09/19) +- bug fix (#71): 'shield externalize' should be effective on all tcolorbox layers +- bug fix (#76): 'spread inwards', 'spread outwards', 'spread sidewards' gave + wrong results for some document geometry settings +- new options (#75): 'tabulars', 'tabulars*' +- library 'extras': + * bug fix: all 'extras ...' options from library 'hooks' took code instead of options + * new options (#73): 'minted options app', 'minted options pre', + 'listing options app', 'listing options pre' +- library 'xparse': + * bug fix: options 'IfNoValueTF', 'IfValueTF', 'IfBooleanTF' failed + to recognize arguments in some code line breaks situations +- library 'documentation': + TikZ path operation documentation (#65): + * new color name: 'Fade' + * new macros and environments: '\colFade', 'docPathOperation', + '\refPathOperation', '\refPathOperation*' + * new options: 'color fade', 'color path', 'doc label', 'doc head path', + 'before doc body path', 'after doc body path' + * new language string: 'path', 'paths' +- documentation: checkerbox for opacity examples was too dark diff --git a/macros/latex/contrib/tcolorbox/README b/macros/latex/contrib/tcolorbox/README index 67e8c16547..ad3735e664 100644 --- a/macros/latex/contrib/tcolorbox/README +++ b/macros/latex/contrib/tcolorbox/README @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% %% ------------------------------------------------------------------------------------------- %% Copyright (c) 2006-2019 by Prof. Dr. Dr. Thomas F. Sturm diff --git a/macros/latex/contrib/tcolorbox/tcbbreakable.code.tex b/macros/latex/contrib/tcolorbox/tcbbreakable.code.tex index 69f5899e5c..224eed6ed6 100644 --- a/macros/latex/contrib/tcolorbox/tcbbreakable.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbbreakable.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcbbreakable.code.tex: Code for breakable colorboxes %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{4.20} +\tcb@set@library@version{4.21} \let\tcb@parboxrestore@true=\tcb@parboxrestore \let\tcb@parboxrestore@false\tcb@parbox@false@settings diff --git a/macros/latex/contrib/tcolorbox/tcbdocumentation.code.tex b/macros/latex/contrib/tcolorbox/tcbdocumentation.code.tex index ecd2d24dd2..a9475d0f86 100644 --- a/macros/latex/contrib/tcolorbox/tcbdocumentation.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbdocumentation.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcbdocumentation.code.tex: Code for LaTeX documentations %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{4.20} +\tcb@set@library@version{4.21} \tcbuselibrary{listings,skins,xparse,external} @@ -33,9 +33,11 @@ \definecolor{ExampleFrame}{rgb}{0.628,0.705,0.942} \definecolor{ExampleBack}{rgb}{0.963,0.971,0.994} \definecolor{Hyperlink}{rgb}{0.281,0.275,0.485} +\definecolor{Fade}{rgb}{0.5,0.5,0.5} \def\colDef#1{\textcolor{\kvtcb@col@command}{#1}} \def\colOpt#1{\textcolor{\kvtcb@col@opt}{#1}} +\def\colFade#1{\textcolor{\kvtcb@col@fade}{#1}} \lstdefinestyle{tcbdocumentation}{language={[LaTeX]TeX}, aboveskip={0\p@ \@plus 6\p@}, @@ -105,6 +107,8 @@ length/.store in=\kvtcb@text@length, lengths/.store in=\kvtcb@text@lengths, new/.store in=\kvtcb@text@new, + path/.store in=\kvtcb@text@path, + paths/.store in=\kvtcb@text@paths, pageshort/.store in=\kvtcb@text@pageshort, updated/.store in=\kvtcb@text@updated, value/.store in=\kvtcb@text@value, @@ -125,8 +129,10 @@ color counter/.store in=\kvtcb@col@counter, color length/.store in=\kvtcb@col@length, color color/.store in=\kvtcb@col@color, + color fade/.store in=\kvtcb@col@fade, + color path/.store in=\kvtcb@col@path, color definition/.style={color command={#1},color environment={#1},color key={#1}, - color value={#1},color color={#1},color counter={#1},color length={#1}}, + color value={#1},color color={#1},color counter={#1},color length={#1}, color path={#1}}, color option/.store in=\kvtcb@col@opt, color hyperlink/.store in=\kvtcb@colhyper, color frame/.store in=\kvtcb@colhyper, @@ -145,15 +151,22 @@ doc head command/.style={doc@head@command/.style={#1}}, doc head environment/.style={doc@head@environment/.style={#1}}, doc head key/.style={doc@head@key/.style={#1}}, - doc head/.style={doc head command={#1},doc head environment={#1},doc head key={#1}}, + doc head path/.style={doc@head@path/.style={#1}}, + doc head/.style={doc head command={#1},doc head environment={#1},doc head key={#1}, + doc head path={#1}}, + doc label/.store in=\kvtcb@doc@label, before doc body command/.store in=\kvtcb@doc@body@command@before, after doc body command/.store in=\kvtcb@doc@body@command@after, before doc body environment/.store in=\kvtcb@doc@body@environment@before, after doc body environment/.store in=\kvtcb@doc@body@environment@after, before doc body key/.store in=\kvtcb@doc@body@key@before, after doc body key/.store in=\kvtcb@doc@body@key@after, - before doc body/.style={before doc body command={#1},before doc body environment={#1},before doc body key={#1}}, - after doc body/.style={after doc body command={#1},after doc body environment={#1},after doc body key={#1}}, + before doc body path/.store in=\kvtcb@doc@body@path@before, + after doc body path/.store in=\kvtcb@doc@body@path@after, + before doc body/.style={before doc body command={#1},before doc body environment={#1}, + before doc body key={#1},before doc body path={#1}}, + after doc body/.style={after doc body command={#1},after doc body environment={#1} + ,after doc body key={#1},after doc body path={#1}}, doc description/.store in=\kvtcb@doc@description,% doc into index/.is if=tcb@doc@toindex,% doc updated/.style={before upper={\tcbdocmarginnote{\tcbdocupdated{#1}}}}, @@ -182,6 +195,7 @@ counter=counter,counters=Counters, environment content=environment content, environment=environment,environments=Environments, + path=path operation,paths=Path operations, index=Index, key=key,keys=Keys, length=length,lengths=Lengths, @@ -259,6 +273,10 @@ \newrobustcmd{\tcbIndexPrintKeyC}[1]{\tcb@Index@Print@C{#1}{\kvtcb@col@key}} \def\tcb@Print@Key#1{\textcolor{\kvtcb@col@key}{\tcb@doc@bfseries\tcb@scantokens{#1}}} +\newrobustcmd{\tcbIndexPrintPathCA}[1]{\tcb@Index@Print@CA{#1}{\kvtcb@col@path}{\kvtcb@text@path}} +\newrobustcmd{\tcbIndexPrintPathC}[1]{\tcb@Index@Print@C{#1}{\kvtcb@col@path}} +\def\tcb@Print@Path#1{\textcolor{\kvtcb@col@path}{\tcb@doc@bfseries\tcb@scantokens{#1}}} + \newrobustcmd{\tcbIndexPrintValCA}[1]{\tcb@Index@Print@CA{#1}{\kvtcb@col@value}{\kvtcb@text@value}} \newrobustcmd{\tcbIndexPrintValC}[1]{\tcb@Index@Print@C{#1}{\kvtcb@col@value}} \def\tcb@Print@Val#1{\textcolor{\kvtcb@col@value}{\tcb@doc@bfseries\tcb@scantokens{#1}}} @@ -279,6 +297,7 @@ \def\tcb@index@Env#1{\iftcb@doc@toindex\kvtcb@index@command{#1\idx@actual\tcbIndexPrintEnvCA{#1}}\kvtcb@index@command{\kvtcb@text@envs\idx@level#1\idx@actual\tcbIndexPrintEnvC{#1}}\fi} \def\tcb@index@Key#1{\iftcb@doc@toindex\kvtcb@index@command{#1\idx@actual\tcbIndexPrintKeyCA{#1}}\kvtcb@index@command{\kvtcb@text@keys\idx@level#1\idx@actual\tcbIndexPrintKeyC{#1}}\fi}% \def\tcb@index@KeyPath#1#2{\iftcb@doc@toindex\kvtcb@index@command{#2\idx@actual\tcbIndexPrintKeyCA{#2}}\kvtcb@index@command{\kvtcb@text@keys\idx@level#1\idx@actual\tcbIndexPrintKeyC{/#1/}\idx@level#2\idx@actual\tcbIndexPrintKeyC{#2}}\fi}% +\def\tcb@index@Path#1{\iftcb@doc@toindex\kvtcb@index@command{#1\idx@actual\tcbIndexPrintPathCA{#1}}\kvtcb@index@command{\kvtcb@text@paths\idx@level#1\idx@actual\tcbIndexPrintPathC{#1}}\fi} \def\tcb@index@Val#1{\iftcb@doc@toindex\kvtcb@index@command{#1\idx@actual\tcbIndexPrintValCA{#1}}\kvtcb@index@command{\kvtcb@text@values\idx@level#1\idx@actual\tcbIndexPrintValC{#1}}\fi} \def\tcb@index@Col#1{\iftcb@doc@toindex\kvtcb@index@command{#1\idx@actual\tcbIndexPrintColCA{#1}}\kvtcb@index@command{\kvtcb@text@colors\idx@level#1\idx@actual\tcbIndexPrintColC{#1}}\fi} \def\tcb@index@Count#1{\iftcb@doc@toindex\kvtcb@index@command{#1\idx@actual\tcbIndexPrintCountCA{#1}}\kvtcb@index@command{\kvtcb@text@counters\idx@level#1\idx@actual\tcbIndexPrintCountC{#1}}\fi} @@ -311,20 +330,20 @@ enlarge bottom by=-0.2\baselineskip,#1} % main documentation environments -\newenvironment{docCommand}[3][]{\tcbset{#1}% +\newenvironment{docCommand}[3][]{\tcbset{doc label={#2},#1}% \begin{tcb@manual@entry}% \begin{tcb@doc@head}{doc@head@command}% - \tcb@Print@Com{#2}\tcb@index@Com{#2}\protected@edef\@currentlabel{\noexpand\tcb@cs{#2}}\label{com:#2}{\ttfamily #3}% + \tcb@Print@Com{#2}\tcb@index@Com{#2}\protected@edef\@currentlabel{\noexpand\tcb@cs{#2}}\label{com:\kvtcb@doc@label}{\ttfamily #3}% \tcb@doc@do@description% \end{tcb@doc@head}\nobreak\tcbset{before upper=}\kvtcb@doc@body@command@before\ignorespaces}% {\ifvmode\else\unskip\fi\kvtcb@doc@body@command@after\end{tcb@manual@entry}} \newenvironment{docCommand*}{\bgroup\tcb@doc@toindexfalse\begin{docCommand}}{\end{docCommand}\egroup} -\newenvironment{docEnvironment}[3][]{\tcbset{#1}% +\newenvironment{docEnvironment}[3][]{\tcbset{doc label={#2},#1}% \begin{tcb@manual@entry}% \begin{tcb@doc@head}{doc@head@environment}% - \strut\cs{begin}\brackets{\tcb@Print@Env{#2}}\tcb@index@Env{#2}\protected@edef\@currentlabel{#2}\label{env:#2}{\ttfamily #3}\par% + \strut\cs{begin}\brackets{\tcb@Print@Env{#2}}\tcb@index@Env{#2}\protected@edef\@currentlabel{#2}\label{env:\kvtcb@doc@label}{\ttfamily #3}\par% \strut~~\meta{\kvtcb@text@envcontent}\par% \strut\cs{end}\brackets{\tcb@Print@Env{#2}}% \tcb@doc@do@description% @@ -333,14 +352,14 @@ \newenvironment{docEnvironment*}{\bgroup\tcb@doc@toindexfalse\begin{docEnvironment}}{\end{docEnvironment}\egroup} -\NewDocumentEnvironment{docKey}{ O{} +O{} m m +m }{\tcbset{#2,doc description={#5}}% +\NewDocumentEnvironment{docKey}{ O{} +O{} m m +m }{\tcbset{doc label={#3},#2,doc description={#5}}% \begin{tcb@manual@entry}% \begin{tcb@doc@head}{doc@head@key}% \ifblank{#1}{% - \tcb@Print@Key{#3}\tcb@index@Key{#3}\protected@edef\@currentlabel{#3}\label{key:#3}{\ttfamily #4}% + \tcb@Print@Key{#3}\tcb@index@Key{#3}\protected@edef\@currentlabel{#3}\label{key:\kvtcb@doc@label}{\ttfamily #4}% }{% \tcb@Print@Key{/#1/#3}% - \tcb@index@KeyPath{#1}{#3}\protected@edef\@currentlabel{/#1/#3}\label{key:/#1/#3}{\ttfamily #4}% + \tcb@index@KeyPath{#1}{#3}\protected@edef\@currentlabel{/#1/#3}\label{key:/#1/\kvtcb@doc@label}{\ttfamily #4}% }% \tcb@doc@do@description% \end{tcb@doc@head}\nobreak\tcbset{before upper=}\kvtcb@doc@body@key@before\ignorespaces}% @@ -356,6 +375,18 @@ \newenvironment{#1*}{\bgroup\tcb@doc@toindexfalse\begin{#1}}{\end{#1}\egroup}% } +\newenvironment{docPathOperation}[3][]{\tcbset{doc label={#2},#1}% + \begin{tcb@manual@entry}% + \begin{tcb@doc@head}{doc@head@path}% + \colFade{\tcb@cs{path ...}}\ + \tcb@Print@Path{#2}\tcb@index@Path{#2}\protected@edef\@currentlabel{#2}\label{path:\kvtcb@doc@label}{\ttfamily #3}% + \ \colFade{\tcb@scantokens{...;}} + \tcb@doc@do@description% + \end{tcb@doc@head}\nobreak\tcbset{before upper=}\kvtcb@doc@body@path@before\ignorespaces}% + {\ifvmode\else\unskip\fi\kvtcb@doc@body@path@after\end{tcb@manual@entry}} + +\newenvironment{docPathOperation*}{\bgroup\tcb@doc@toindexfalse\begin{docPathOperation}}{\end{docPathOperation}\egroup} + \DeclareDocumentCommand\docAuxCommand{sm}{% \tcb@Print@Com{#2}% \IfBooleanTF{#1}{}{\tcb@index@Com{#2}}% @@ -408,6 +439,7 @@ \def\refCom{\tcb@ref@doc{com}} \def\refEnv{\tcb@ref@doc{env}} \def\refKey{\tcb@ref@doc{key}} +\def\refPathOperation{\tcb@ref@doc{path}} \def\refAux#1{\textcolor{\kvtcb@colhyper}{\tcb@scantokens{#1}}} \def\refAuxcs#1{\textcolor{\kvtcb@colhyper}{\tcb@cs{#1}}} @@ -491,6 +523,7 @@ color option=Option, color definition=Definition, color hyperlink=Hyperlink, + color fade=Fade, index command=\index,% index format=pgf, index default settings, diff --git a/macros/latex/contrib/tcolorbox/tcbexternal.code.tex b/macros/latex/contrib/tcolorbox/tcbexternal.code.tex index 0f3f68546f..f16893e3c2 100644 --- a/macros/latex/contrib/tcolorbox/tcbexternal.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbexternal.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcbexternal.code.tex: Code for externalization %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{4.20} +\tcb@set@library@version{4.21} \tcbuselibrary{pro@cessing} diff --git a/macros/latex/contrib/tcolorbox/tcbfitting.code.tex b/macros/latex/contrib/tcolorbox/tcbfitting.code.tex index 7e32bdec72..be49d57bab 100644 --- a/macros/latex/contrib/tcolorbox/tcbfitting.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbfitting.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% 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{4.20} +\tcb@set@library@version{4.21} \newdimen\tcbfitdim \newdimen\tcb@lowerfitdim diff --git a/macros/latex/contrib/tcolorbox/tcbhooks.code.tex b/macros/latex/contrib/tcolorbox/tcbhooks.code.tex index d0e0acae72..db0a3b5b2a 100644 --- a/macros/latex/contrib/tcolorbox/tcbhooks.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbhooks.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% 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{4.20} +\tcb@set@library@version{4.21} \tcbset{% before upper app/.code={\appto\kvtcb@before@upper{#1}},% @@ -74,10 +74,10 @@ title code app/.code={\appto\tcb@title@code{#1}},% title code pre/.code={\preto\tcb@title@code{#1}},% % - extras unbroken pre/.code={\preto\tcb@extras@unbroken{#1}},% - extras first pre/.code={\preto\tcb@extras@first{#1}},% - extras middle pre/.code={\preto\tcb@extras@middle{#1}},% - extras last pre/.code={\preto\tcb@extras@last{#1}},% + extras unbroken pre/.code={\preto\tcb@extras@unbroken{\tcbset{#1}}},% + extras first pre/.code={\preto\tcb@extras@first{\tcbset{#1}}},% + extras middle pre/.code={\preto\tcb@extras@middle{\tcbset{#1}}},% + extras last pre/.code={\preto\tcb@extras@last{\tcbset{#1}}},% extras pre/.style={extras unbroken pre={#1},extras first pre={#1},extras middle pre={#1},extras last pre={#1}},% extras broken pre/.style={extras first pre={#1},extras middle pre={#1},extras last pre={#1}},% extras unbroken and first pre/.style={extras unbroken pre={#1},extras first pre={#1}},% @@ -119,5 +119,10 @@ watermark text pre/.style={overlay pre={\tcb@drawspec@watermark@text{#1}}}, watermark text app on/.style args={#1 is #2}{overlay #1 app={\tcb@drawspec@watermark@text{#2}}}, watermark text pre on/.style args={#1 is #2}{overlay #1 pre={\tcb@drawspec@watermark@text{#2}}}, + % + minted options app/.code={\appto\kvtcb@minted@options{,#1}}, + minted options pre/.code={\preto\kvtcb@minted@options{#1,}}, + listing options app/.code={\appto\kvtcb@listingoptions{,#1}}, + listing options pre/.code={\preto\kvtcb@listingoptions{#1,}}, } diff --git a/macros/latex/contrib/tcolorbox/tcblistings.code.tex b/macros/latex/contrib/tcolorbox/tcblistings.code.tex index 418618ad6b..11de76ad0d 100644 --- a/macros/latex/contrib/tcolorbox/tcblistings.code.tex +++ b/macros/latex/contrib/tcolorbox/tcblistings.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% 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{4.20} +\tcb@set@library@version{4.21} \RequirePackage{listings}[2007/02/22] diff --git a/macros/latex/contrib/tcolorbox/tcblistingscore.code.tex b/macros/latex/contrib/tcolorbox/tcblistingscore.code.tex index 2906d28c35..c70ac254ad 100644 --- a/macros/latex/contrib/tcolorbox/tcblistingscore.code.tex +++ b/macros/latex/contrib/tcolorbox/tcblistingscore.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% 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{4.20} +\tcb@set@library@version{4.21} \tcbuselibrary{pro@cessing} diff --git a/macros/latex/contrib/tcolorbox/tcblistingsutf8.code.tex b/macros/latex/contrib/tcolorbox/tcblistingsutf8.code.tex index 46720bc980..d65e96e069 100644 --- a/macros/latex/contrib/tcolorbox/tcblistingsutf8.code.tex +++ b/macros/latex/contrib/tcolorbox/tcblistingsutf8.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% 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{4.20} +\tcb@set@library@version{4.21} \RequirePackage{listingsutf8}[2011/11/10] \tcbuselibrary{listings} diff --git a/macros/latex/contrib/tcolorbox/tcbmagazine.code.tex b/macros/latex/contrib/tcolorbox/tcbmagazine.code.tex index 75c4ef5e39..16a92a7431 100644 --- a/macros/latex/contrib/tcolorbox/tcbmagazine.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbmagazine.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcbmagazine.code.tex: Code for box sets and magazine styles %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{4.20} +\tcb@set@library@version{4.21} \tcbuselibrary{breakable} diff --git a/macros/latex/contrib/tcolorbox/tcbminted.code.tex b/macros/latex/contrib/tcolorbox/tcbminted.code.tex index 220d7d82f7..a7de5a9990 100644 --- a/macros/latex/contrib/tcolorbox/tcbminted.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbminted.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% 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{4.20} +\tcb@set@library@version{4.21} \RequirePackage{minted}[2011/09/17] diff --git a/macros/latex/contrib/tcolorbox/tcbposter.code.tex b/macros/latex/contrib/tcolorbox/tcbposter.code.tex index 057e02b30f..de26989fae 100644 --- a/macros/latex/contrib/tcolorbox/tcbposter.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbposter.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcbposter.code.tex: Code for posters %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{4.20} +\tcb@set@library@version{4.21} \tcbuselibrary{breakable,magazine,skins,fitting} diff --git a/macros/latex/contrib/tcolorbox/tcbprocessing.code.tex b/macros/latex/contrib/tcolorbox/tcbprocessing.code.tex index 773d095bc8..953c708d36 100644 --- a/macros/latex/contrib/tcolorbox/tcbprocessing.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbprocessing.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcbprocessing.code.tex: Code for conditional processing %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{4.20} +\tcb@set@library@version{4.21} \RequirePackage{pdftexcmds} \RequirePackage{shellesc} diff --git a/macros/latex/contrib/tcolorbox/tcbraster.code.tex b/macros/latex/contrib/tcolorbox/tcbraster.code.tex index aab39967d6..2ea8a91eb5 100644 --- a/macros/latex/contrib/tcolorbox/tcbraster.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbraster.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% 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{4.20} +\tcb@set@library@version{4.21} \newcounter{tcbrastercolumn} \newcounter{tcbrasterrow} diff --git a/macros/latex/contrib/tcolorbox/tcbskins.code.tex b/macros/latex/contrib/tcolorbox/tcbskins.code.tex index b209a86e70..e530a07efd 100644 --- a/macros/latex/contrib/tcolorbox/tcbskins.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbskins.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcbskins.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{4.20} +\tcb@set@library@version{4.21} \RequirePackage{tikz}[2010/10/13] diff --git a/macros/latex/contrib/tcolorbox/tcbskinsjigsaw.code.tex b/macros/latex/contrib/tcolorbox/tcbskinsjigsaw.code.tex index 0c2e5902d9..4fa98841d9 100644 --- a/macros/latex/contrib/tcolorbox/tcbskinsjigsaw.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbskinsjigsaw.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% 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{4.20} +\tcb@set@library@version{4.21} \tcbuselibrary{skins} diff --git a/macros/latex/contrib/tcolorbox/tcbtheorems.code.tex b/macros/latex/contrib/tcolorbox/tcbtheorems.code.tex index 06ce9c04a5..50a16801aa 100644 --- a/macros/latex/contrib/tcolorbox/tcbtheorems.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbtheorems.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% 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{4.20} +\tcb@set@library@version{4.21} \RequirePackage{amsmath} diff --git a/macros/latex/contrib/tcolorbox/tcbvignette.code.tex b/macros/latex/contrib/tcolorbox/tcbvignette.code.tex index 0f494da1dd..05f7b2685b 100644 --- a/macros/latex/contrib/tcolorbox/tcbvignette.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbvignette.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcbvignette.code.tex: Code for ornamental frames %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{4.20} +\tcb@set@library@version{4.21} \tcbuselibrary{skins} diff --git a/macros/latex/contrib/tcolorbox/tcbxparse.code.tex b/macros/latex/contrib/tcolorbox/tcbxparse.code.tex index be04cd8028..6126157d26 100644 --- a/macros/latex/contrib/tcolorbox/tcbxparse.code.tex +++ b/macros/latex/contrib/tcolorbox/tcbxparse.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcbxparse.code.tex: Code for xparse features %% %% ------------------------------------------------------------------------------------------- @@ -18,14 +18,14 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{4.20} +\tcb@set@library@version{4.21} \RequirePackage{xparse}[2013/12/31] \tcbset{% - IfNoValueTF/.code args={#1#2#3}{\IfNoValueTF{#1}{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}}, - IfValueTF/.code args={#1#2#3}{\IfValueTF{#1}{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}}, - IfBooleanTF/.code args={#1#2#3}{\IfBooleanTF{#1}{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}}, + IfNoValueTF/.code n args={3}{\IfNoValueTF{#1}{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}}, + IfValueTF/.code n args={3}{\IfValueTF{#1}{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}}, + IfBooleanTF/.code n args={3}{\IfBooleanTF{#1}{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}}, verbatim/.style={fontupper=\ttfamily,nobeforeafter,tcbox raise base,top=0pt,bottom=0pt,left=1mm,right=1mm,boxrule=0.3mm} } diff --git a/macros/latex/contrib/tcolorbox/tcolorbox-example-poster.pdf b/macros/latex/contrib/tcolorbox/tcolorbox-example-poster.pdf index 6745fadb2b..3e10c42360 100644 Binary files a/macros/latex/contrib/tcolorbox/tcolorbox-example-poster.pdf and b/macros/latex/contrib/tcolorbox/tcolorbox-example-poster.pdf differ diff --git a/macros/latex/contrib/tcolorbox/tcolorbox-example-poster.tex b/macros/latex/contrib/tcolorbox/tcolorbox-example-poster.tex index 4cd8461954..1f67a3c87b 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox-example-poster.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox-example-poster.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcolorbox-example-poster.tex: a poster example for tcolorbox %% %% ------------------------------------------------------------------------------------------- diff --git a/macros/latex/contrib/tcolorbox/tcolorbox-example.pdf b/macros/latex/contrib/tcolorbox/tcolorbox-example.pdf index ea5dc03ad1..0e99b2a539 100644 Binary files a/macros/latex/contrib/tcolorbox/tcolorbox-example.pdf and b/macros/latex/contrib/tcolorbox/tcolorbox-example.pdf differ diff --git a/macros/latex/contrib/tcolorbox/tcolorbox-example.tex b/macros/latex/contrib/tcolorbox/tcolorbox-example.tex index 64bd2eaced..5ed9ba9a67 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox-example.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox-example.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcolorbox-example.tex: an example for tcolorbox %% %% ------------------------------------------------------------------------------------------- diff --git a/macros/latex/contrib/tcolorbox/tcolorbox-tutorial-poster.pdf b/macros/latex/contrib/tcolorbox/tcolorbox-tutorial-poster.pdf index 67a36b97eb..b50b13514b 100644 Binary files a/macros/latex/contrib/tcolorbox/tcolorbox-tutorial-poster.pdf and b/macros/latex/contrib/tcolorbox/tcolorbox-tutorial-poster.pdf differ diff --git a/macros/latex/contrib/tcolorbox/tcolorbox-tutorial-poster.tex b/macros/latex/contrib/tcolorbox/tcolorbox-tutorial-poster.tex index 11d6d47954..9c52b6c68c 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox-tutorial-poster.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox-tutorial-poster.tex @@ -1,5 +1,5 @@ % \LaTeX-Main\ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcolorbox-tutorial-poster.tex: a tutorial for poster creation with tcolorbox %% %% ------------------------------------------------------------------------------------------- diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.doc.coreoptions.tex b/macros/latex/contrib/tcolorbox/tcolorbox.doc.coreoptions.tex index b8effa83e9..dfe82a456e 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox.doc.coreoptions.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox.doc.coreoptions.tex @@ -1535,7 +1535,7 @@ 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{exdispExample*}{opacityframe}{sbs,lefthand ratio=0.6,segmentation style={pattern=checkerboard light gray}} +\begin{exdispExample*}{opacityframe}{sbs,lefthand ratio=0.6,segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \begin{tcolorbox}[opacityframe=0.25, colframe=red] This is a \textbf{tcolorbox}. @@ -1545,7 +1545,7 @@ This is a \textbf{tcolorbox}. \begin{docTcbKey}{opacityback}{=\meta{fraction}}{no default, initially \texttt{1.0}} Sets the background opacity of the box to the given \meta{fraction}. -\begin{exdispExample*}{opacityback}{sbs,lefthand ratio=0.6,segmentation style={pattern=checkerboard light gray}} +\begin{exdispExample*}{opacityback}{sbs,lefthand ratio=0.6,segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \begin{tcolorbox}[standard jigsaw,colframe=red, opacityframe=0.5, opacityback=0.5] This is a \textbf{tcolorbox}. @@ -1556,7 +1556,7 @@ This is a \textbf{tcolorbox}. \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{exdispExample*}{opacitybacktitle}{sbs,lefthand ratio=0.6,segmentation style={pattern=checkerboard light gray}} +\begin{exdispExample*}{opacitybacktitle}{sbs,lefthand ratio=0.6,segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \begin{tcolorbox}[standard jigsaw,colframe=red, opacityframe=0.5, opacitybacktitle=0.5, title filled, title=This is a title] @@ -1569,7 +1569,7 @@ This is a \textbf{tcolorbox}. \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{exdispExample*}{opacityfill}{sbs,lefthand ratio=0.6,segmentation style={pattern=checkerboard light gray}} +\begin{exdispExample*}{opacityfill}{sbs,lefthand ratio=0.6,segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \begin{tcolorbox}[standard jigsaw,colframe=red, opacityfill=0.7, title=This is a title] This is a \textbf{tcolorbox}. @@ -1582,7 +1582,7 @@ This is a \textbf{tcolorbox}. Sets the text opacity of the upper box part to the given \meta{fraction}. \begin{exdispExample*}{opacityupper}{sbs,lefthand ratio=0.6} \begin{tcolorbox}[enhanced,opacityupper=0.5, - interior style={pattern=checkerboard light gray}] + interior style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}] This is a \textbf{tcolorbox}. \end{tcolorbox} \end{exdispExample*} @@ -1593,7 +1593,7 @@ This is a \textbf{tcolorbox}. Sets the text opacity of the lower box part to the given \meta{fraction}. \begin{exdispExample*}{opacitylower}{sbs,lefthand ratio=0.6} \begin{tcolorbox}[enhanced,opacitylower=0.5, - interior style={pattern=checkerboard light gray}] + interior style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}] This is a \textbf{tcolorbox}. \tcblower This is the lower part. @@ -1605,7 +1605,7 @@ This is the lower part. Sets the text opacity of the upper and the lower box part to the given \meta{fraction}. \begin{exdispExample*}{opacitytext}{sbs,lefthand ratio=0.6} \begin{tcolorbox}[enhanced,opacitytext=0.5, - interior style={pattern=checkerboard light gray}] + interior style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}] This is a \textbf{tcolorbox}. \tcblower This is the lower part. @@ -1620,14 +1620,14 @@ This is the lower part. \begin{tcolorbox}[enhanced,opacitytitle=0.7, coltitle=black, fonttitle=\bfseries,title=This is a title, - title style={pattern=checkerboard light gray}] + title style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}] This is a \textbf{tcolorbox}. \end{tcolorbox} \end{exdispExample*} \end{docTcbKey} -\begin{exdispExample*}{opacity_general}{segmentation style={pattern=checkerboard light gray}} +\begin{exdispExample*}{opacity_general}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \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] @@ -2336,6 +2336,55 @@ This is the end of my box. \end{exdispExample} \end{docTcbKey} + +\clearpage + +\begin{docTcbKey}[][doc new={2019-09-19}]{tabulars}{=\meta{preamble}}{style} + This style sets \refKey{/tcb/before upper} and \refKey{/tcb/after upper} + and several geometry keys to support a |tabular*| with the + given \meta{preamble}. + The packages |array| and |colortbl| have to be loaded separately. +\begin{exdispExample}{tabulars_1} +% \usepackage{array} +% \usepackage{colortbl} - or - \usepackage[table]{xcolor} +\tcbset{enhanced,fonttitle=\bfseries\large,fontupper=\normalsize\sffamily, + colback=yellow!10!white,colframe=red!50!black,colbacktitle=Salmon!30!white, + coltitle=black,center title} + +\begin{tcolorbox}[tabulars={@{\extracolsep{\fill}\hspace{5mm}}lrrrrr@{\hspace{5mm}}}, + boxrule=0.5pt,title=My table] +Group & One & Two & Three & Four & Sum\\\hline\hline +Red & 1000.00 & 2000.00 & 3000.00 & 4000.00 & 10000.00\\\hline +Green & 2000.00 & 3000.00 & 4000.00 & 5000.00 & 14000.00\\\hline +Blue & 3000.00 & 4000.00 & 5000.00 & 6000.00 & 18000.00\\\hline\hline +Sum & 6000.00 & 9000.00 & 12000.00 & 15000.00 & 42000.00 +\end{tcolorbox} +\end{exdispExample} +\end{docTcbKey} + + +\begin{docTcbKey}[][doc new={2019-09-19}]{tabulars*}{=\marg{code}\marg{preamble}}{style} + This is a variant of \refKey{/tcb/tabulars} which adds some \meta{code} + before the table starts. +\begin{exdispExample}{tabulars_2} +% \usepackage{array} +% \usepackage{colortbl} - or - \usepackage[table]{xcolor} +\tcbset{enhanced,fonttitle=\bfseries\large,fontupper=\normalsize\sffamily, + colback=yellow!10!white,colframe=red!50!black,colbacktitle=Salmon!30!white, + coltitle=black,center title} + +\begin{tcolorbox}[tabulars*={\arrayrulewidth0.5mm\renewcommand\arraystretch{1.4}}% + {@{\extracolsep{\fill}\hspace{20mm}}lll@{\hspace{20mm}}}, + title=My table] +One & Two & Three \\\hline\hline +1000.00 & 2000.00 & 3000.00\\\hline +2000.00 & 3000.00 & 4000.00 +\end{tcolorbox} +\end{exdispExample} +\end{docTcbKey} + + + \clearpage \begin{marker} If \refKey{/tcb/tabularx} or \refKey{/tcb/tabularx*} are used, one cannot @@ -2386,6 +2435,7 @@ One & Two & Three \\\hline\hline \end{docTcbKey} + \clearpage \begin{docTcbKey}{tikz upper}{\colOpt{=\meta{options}}}{style} This style adds a centered |tikzpicture| environment to the start and end @@ -3547,7 +3597,7 @@ If needed, the number of managed layers can be increased by setting The following styles have a considerable influence on how layered boxes are processed. Note especially that nested boxes are getting a \refKey{/tcb/reset} by default. You can change this, but be prepared for -suprises if you do. +surprises if you do. If the defaults are \emph{not changed}, a |tcolorbox| gets its options in the following order. Following options overwrite preceding options. @@ -4287,6 +4337,11 @@ do \emph{not} use |\tikzexternaldisable| in front of the |tcolorbox|. \refKey{/tcb/shield externalize} is deactivated automatically inside a |tikzpicture|. \end{marker} +\begin{marker} +\refKey{/tcb/shield externalize} is applied for every following |tcolorbox| +inside the current \TeX\ group and is not affected by \refKey{/tcb/reset}. +\end{marker} + \begin{docTcbKey}{external}{=\meta{file name}}{no default, initially unset} Convenience option which calls |\tikzsetnextfilename|\marg{file name}. Typically, it may be used inside the option list of a |tcolorbox| to set the @@ -4310,7 +4365,8 @@ do \emph{not} use |\tikzexternaldisable| in front of the |tcolorbox|. \begin{docTcbKey}{reset}{}{no value, initially set} Sets (nearly) all |tcolorbox| settings (including loaded libraries) back to their default values \emph{plus} any settings given by \refCom{tcbsetforeverylayer}. -\refKey{/tcb/savedelimiter} and \refKey{/tcb/capture} keep their values. +\refKey{/tcb/savedelimiter}, \refKey{/tcb/capture}, and +\refKey{/tcb/shield externalize} keep their values. Also, all raster values (see \Vref{sec:raster}) are not resetted. This option is useful for boxes in boxes where the inner box should not inherit diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.doc.documentation.tex b/macros/latex/contrib/tcolorbox/tcolorbox.doc.documentation.tex index f8c1c4553c..cda39d43fa 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox.doc.documentation.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox.doc.documentation.tex @@ -131,6 +131,36 @@ For |minted| \cite{poore:minted} support, load: \end{docEnvironment} + + +\begin{docEnvironment}[doclang/environment content=operation description, + doc new=2019-09-18]{docPathOperation}{\oarg{options}\marg{name}\marg{parameters}} + Documents a \tikzname\ path operation with given \meta{name}. + The given \meta{options} are set with \refCom{tcbset}. + This \tikzname\ path operation takes mandatory or optional \meta{parameters}. + It is automatically indexed and can be referenced with + \refCom{refPathOperation}\marg{name}. +\begin{dispExample} +\begin{docPathOperation}{fooop}{\oarg{opt}(\meta{name})\colOpt{at(\meta{coord})}} + Imaginary path operation for illustration. +\end{docPathOperation} +\end{dispExample} +\end{docEnvironment} + + +\begin{docEnvironment}[doclang/environment content=command description, + doc new=2019-09-17]{docPathOperation*}{\oarg{options}\marg{name}\marg{parameters}} + Identical to \refEnv{docPathOperation}, but without index entry. +\end{docEnvironment} + + + + + + + + + \begin{docCommand}{docValue}{\marg{name}} Documents a value with given \meta{name}. Typically, this is a value for a key. This value is automatically indexed. @@ -144,6 +174,7 @@ A feasible value for \refKey{/foo/footitle} is \docValue{foovalue}. Identical to \refCom{docValue}, but without index entry. \end{docCommand} +\clearpage \begin{docCommand}[doc updated=2014-10-09]{docAuxCommand}{\marg{name}} Documents an auxiliary or minor \LaTeX\ macro with given \meta{name} @@ -170,7 +201,7 @@ The environment \docAuxEnvironment{fooauxenv} holds some interesting data. Identical to \refCom{docAuxEnvironment}, but without index entry. \end{docCommand} -\clearpage + \begin{docCommand}{docAuxKey}{\oarg{key path}\marg{name}} Documents an auxiliary key with given \meta{name} and an optional \meta{key path}. @@ -208,6 +239,7 @@ The length \docLength{foolength} can be used for computation. Identical to \refCom{docLength}, but without index entry. \end{docCommand} +\clearpage \begin{docCommand}{docColor}{\marg{name}} Documents a color with given \meta{name}. The color is automatically indexed. @@ -221,7 +253,7 @@ The color \docColor{foocolor} is available. \end{docCommand} -\clearpage + \begin{docCommand}{cs}{\marg{name}} Macro from |ltxdoc| \cite{carlisle:2007a} to typeset a command word \meta{name} where the backslash is prefixed. The library overwrites the original macro. @@ -409,6 +441,24 @@ We have created \refKey*{/foo/footitle} as an example. \end{docCommand} +\begin{docCommand}[doc new=2019-09-17]{refPathOperation}{\marg{name}} + References a documented \tikzname\ path operation with given \meta{name}. + The page reference is suppressed if it links to the same page. +\begin{dispExample} +We have created \refPathOperation{fooop} as an example. +\end{dispExample} +\end{docCommand} + +\begin{docCommand}[doc new=2019-09-17]{refPathOperation*}{\marg{name}} + References a documented \tikzname\ path operation with given \meta{name}. + There is no page reference. +\begin{dispExample} +We have created \refPathOperation*{fooop} as an example. +\end{dispExample} +\end{docCommand} + + + \begin{docCommand}{refAux}{\marg{name}} References some auxiliary environment, key, value, or color. The hyperlink color is used, but there is no real link. @@ -426,8 +476,8 @@ Some pages back, one can see \refAuxcs{fooaux} as an example. \end{dispExample} \end{docCommand} +\clearpage -% \begin{docCommand}{colDef}{\marg{text}} Sets \meta{text} with the command color, see \refKey{/tcb/color command}. \begin{dispExample} @@ -442,7 +492,14 @@ This is my \colOpt{text}. \end{dispExample} \end{docCommand} -\clearpage + +\begin{docCommand}[doc new=2019-09-18]{colFade}{\marg{text}} + Sets \meta{text} with the fade color, see \refKey{/tcb/color fade}. +\begin{dispExample} +This is my \colFade{text}. +\end{dispExample} +\end{docCommand} + \begin{docCommand}[doc new=2014-09-19]{tcbdocmarginnote}{\oarg{options}\marg{text}} Creates a |tcolorbox| note with the given \meta{text} inside the margin using @@ -672,6 +729,10 @@ instead. Also see \refKey{/tcb/docexample}. Sets the highlight color used by key definitions. \end{docTcbKey} +\begin{docTcbKey}[][doc new={2019-09-18}]{color path}{=\meta{color}}{no default, initially |Definition|} + Sets the highlight color used by \tikzname\ path operation definitions. +\end{docTcbKey} + \begin{docTcbKey}{color value}{=\meta{color}}{no default, initially |Definition|} Sets the highlight color used by value definitions. \end{docTcbKey} @@ -688,9 +749,9 @@ instead. Also see \refKey{/tcb/docexample}. Sets the highlight color used by color definitions. \end{docTcbKey} -\begin{docTcbKey}{color definition}{=\meta{color}}{no default, initially |Definition|} +\begin{docTcbKey}[][doc updated={2019-09-18}]{color definition}{=\meta{color}}{no default, initially |Definition|} Sets the highlight color for \refKey{/tcb/color command}, \refKey{/tcb/color environment}, - \refKey{/tcb/color key}, \refKey{/tcb/color value}, \refKey{/tcb/color counter}, + \refKey{/tcb/color key}, \refKey{/tcb/color path}, \refKey{/tcb/color value}, \refKey{/tcb/color counter}, \refKey{/tcb/color length}, and \refKey{/tcb/color color}. \end{docTcbKey} @@ -698,6 +759,12 @@ instead. Also see \refKey{/tcb/docexample}. Sets the color used for optional arguments. \end{docTcbKey} +\begin{docTcbKey}{color fade}{=\meta{color}}{no default, initially |Fade|} + Sets the color used for faded text like \colFade{\textbackslash path} + in \refEnv{docPathOperation}. +\end{docTcbKey} + + \begin{docTcbKey}{color hyperlink}{=\meta{color}}{no default, initially |Hyperlink|} Sets the color for all hyper-links, i.\,e. all internal and external links. \end{docTcbKey} @@ -759,11 +826,18 @@ The English language is predefined. Heading text in the index for lengths. \end{langTcbKey} - \begin{langTcbKey}[][doc new={2014-09-19}]{new}{=\meta{text}}{no default, initially |New|} Announcement text for new content. \end{langTcbKey} +\begin{langTcbKey}[][doc new={2019-09-18}]{path}{=\meta{text}}{no default, initially |path operation|} + Text used in the index for path operations. +\end{langTcbKey} + +\begin{langTcbKey}[][doc new={2019-09-18}]{paths}{=\meta{text}}{no default, initially |Path operations|} + Heading text in the index for path operations. +\end{langTcbKey} + \begin{langTcbKey}{pageshort}{=\meta{text}}{no default, initially |P.|} Short text for page references. \end{langTcbKey} @@ -872,13 +946,27 @@ Options to these |tcolorbox|es can be given using the following keys. \end{dispExample} \end{docTcbKey} -\begin{docTcbKey}{doc head}{=\meta{options}}{no default, initially empty} +\clearpage +\begin{docTcbKey}[][doc new=2019-09-18]{doc head path}{=\meta{options}}{no default, initially empty} + Sets \meta{options} for the head line of \refEnv{docPathOperation} and \refEnv{docPathOperation*}. +\begin{dispExample} +\tcbset{doc head command={interior style={fill,left color=red!7!white, + right color=blue!7!white}}} + +\begin{docPathOperation*}{-{}-}{\meta{coordinate or cycle}} + This is the documentation of \refPathOperation{-{}-}. +\end{docPathOperation*} +\end{dispExample} +\end{docTcbKey} + + +\begin{docTcbKey}[][doc updated=2019-09-18]{doc head}{=\meta{options}}{no default, initially empty} Shortcut for setting the same \meta{options} for \refKey{/tcb/doc head command}, \refKey{/tcb/doc head environment}, - and \refKey{/tcb/doc head key}. + \refKey{/tcb/doc head key}, and \refKey{/tcb/doc head path}. \end{docTcbKey} -\clearpage + The description texts of the main documentation environments \refEnv{docCommand}, \refEnv{docEnvironment}, \refEnv{docKey}, etc, are set in a compact form without indention and |parskip=0pt|. This settings can overruled by using the following @@ -916,7 +1004,7 @@ keys to insert code before (or after) the description texts. \end{dispExample} \end{docTcbKey} - +\clearpage \begin{docTcbKey}[][doc new=2015-10-09]{before doc body environment}{=\meta{code}}{no default, initially empty} Executes \meta{code} before the description texts of \refEnv{docEnvironment} and \refEnv{docEnvironment*}. @@ -938,23 +1026,35 @@ keys to insert code before (or after) the description texts. of \refEnv{docKey} and \refEnv{docKey*}. \end{docTcbKey} -\begin{docTcbKey}[][doc new=2015-10-09]{before doc body}{=\meta{options}}{no default, initially empty} +\begin{docTcbKey}[][doc new=2019-09-18]{before doc body path}{=\meta{code}}{no default, initially empty} + Executes \meta{code} before the description texts + of \refEnv{docPathOperation} and \refEnv{docPathOperation*}. +\end{docTcbKey} + +\begin{docTcbKey}[][doc new=2019-09-18]{after doc body path}{=\meta{code}}{no default, initially empty} + Executes \meta{code} after the description texts + of \refEnv{docPathOperation} and \refEnv{docPathOperation*}. +\end{docTcbKey} + + +\begin{docTcbKey}[][doc new and updated={2015-10-09}{2019-09-18}]{before doc body}{=\meta{options}}{no default, initially empty} Shortcut for setting the same \meta{options} for \refKey{/tcb/before doc body command}, \refKey{/tcb/before doc body environment}, - and \refKey{/tcb/before doc body key}. + \refKey{/tcb/before doc body key}, and \refKey{/tcb/before doc body path}. \end{docTcbKey} -\begin{docTcbKey}[][doc new=2015-10-09]{after doc body}{=\meta{options}}{no default, initially empty} +\begin{docTcbKey}[][doc new and updated={2015-10-09}{2019-09-18}]{after doc body}{=\meta{options}}{no default, initially empty} Shortcut for setting the same \meta{options} for \refKey{/tcb/after doc body command}, \refKey{/tcb/after doc body environment}, - and \refKey{/tcb/after doc body key}. + \refKey{/tcb/after doc body key}, and \refKey{/tcb/after doc body path}. \end{docTcbKey} -\clearpage +%\clearpage \begin{docTcbKey}{doc description}{=\meta{text}}{no default, initially empty} Sets a (short!) additional description \meta{text} for - \refEnv{docCommand} or \refEnv{docEnvironment}. Such a description is + \refEnv{docCommand}, \refEnv{docEnvironment}, or \refEnv{docPathOperation}. + Such a description is mandatory for \refEnv{docKey}. \begin{dispExample} \begin{docCommand*}[doc description=my description]{myCommandF}{\marg{argument}} @@ -968,6 +1068,19 @@ hand side if too long. Linebreaks can be used inside the \meta{text}. \end{marker} \end{docTcbKey} +\clearpage +\begin{docTcbKey}[][doc new={2019-09-18}]{doc label}{=\meta{text}}{no default, initially unset} + If used inside the option list of \refEnv{docCommand}, \refEnv{docEnvironment}, + \refEnv{docKey}, or \refEnv{docPathOperation}, then \meta{text} is used + for labeling instead of the name of the definition. +\begin{dispExample} +\begin{docPathOperation*}[doc label=pathline]{-{}-}{\meta{coordinate or cycle}} + This is the documentation of \refPathOperation{pathline}. +\end{docPathOperation*} +\end{dispExample} +\end{docTcbKey} + + \begin{docTcbKey}{doc into index}{\colOpt{=true\textbar false}}{default |true|, initially |true|} If set to |false|, no index entries are written for the main documentation environments. The same effect is achieved by using e.\,g.\ \refEnv{docCommand*} @@ -1008,7 +1121,7 @@ Some command for something. \end{docTcbKey} -\subsection{Predefined Colors of the Library} +\subsection{Predefined Colors of the Library}\tcbdocmarginnote{\tcbdocupdated{2019-09-18}} The following colors are predefined. They are used as default colors in some library commands. @@ -1018,6 +1131,7 @@ in some library commands. \dispColor{Definition}, \dispColor{ExampleFrame}, \dispColor{ExampleBack}, -\dispColor{Hyperlink}. +\dispColor{Hyperlink}, +\dispColor{Fade}. diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.doc.hooks.tex b/macros/latex/contrib/tcolorbox/tcolorbox.doc.hooks.tex index b5e37eee98..33782234fe 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox.doc.hooks.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox.doc.hooks.tex @@ -475,8 +475,8 @@ There are no |app| type keys since finishes are stackable by default. \subsection{Skin Code} -The following option keys extend the options given in Subsection \ref{subsec:addcodeoptions} -from page \pageref{subsec:addcodeoptions}. +The following option keys extend the options given in Subsection~\ref{subsec:addcodeoptions} +from page~\pageref{subsec:addcodeoptions}. \begin{docTcbKey}{frame code app}{=\meta{graphical code}}{no default} Appends the given \meta{graphical code} to \refKey{/tcb/frame code}. @@ -575,3 +575,27 @@ There are no |app| type keys since extras are stackable by default. Prepends the given \meta{options} to \refKey{/tcb/extras first and middle}. \end{docTcbKey} + +\subsection{Listings} +The following option keys extend the options given in +Section~\ref{sec:listings} +from page~\pageref{sec:listings}. + + +\begin{docTcbKey}[][doc new=2019-07-11]{listing options app}{=\marg{options}}{no default} + Appends the given \meta{options} to \refKey{/tcb/listing options}. +\end{docTcbKey} + +\begin{docTcbKey}[][doc new=2019-07-11]{listing options pre}{=\marg{options}}{no default} + Prepends the given \meta{options} to \refKey{/tcb/listing options}. +\end{docTcbKey} + +\begin{docTcbKey}[][doc new=2019-07-11]{minted options app}{=\marg{options}}{no default} + Appends the given \meta{options} to \refKey{/tcb/minted options}. +\end{docTcbKey} + +\begin{docTcbKey}[][doc new=2019-07-11]{minted options pre}{=\marg{options}}{no default} + Prepends the given \meta{options} to \refKey{/tcb/minted options}. +\end{docTcbKey} + + diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.doc.recording.tex b/macros/latex/contrib/tcolorbox/tcolorbox.doc.recording.tex index 75c016fb91..84510ab754 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox.doc.recording.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox.doc.recording.tex @@ -15,6 +15,17 @@ in \Vref{sec:recording-solutions}. Opens a file denoted by \meta{file name} for writing the records. The default file name is |\jobname.records|. See \Vref{sec:recording-exercises} for an example application. + \begin{marker} + In some situations, a not existing optional parameter may cause parsing + problems. If this happens (or just for precaution), use +\begin{dispListing} +\tcbstartrecording\relax +\end{dispListing} + or +\begin{dispListing} +\tcbstartrecording[\jobname.records] +\end{dispListing} + \end{marker} \end{docCommand} \begin{docCommand}[doc new=2014-11-28]{tcbrecord}{\marg{content}} @@ -66,7 +77,7 @@ has no solution. Finally, the solutions are input in \Vref{sec:recording-solutio \inputpreamblelisting{L} \begin{dispListing*}{breakable,before upper=} -\tcbstartrecording +\tcbstartrecording\relax \begin{exercise} Compute the derivative of the following function: diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.doc.s_main.sty b/macros/latex/contrib/tcolorbox/tcolorbox.doc.s_main.sty index 9a48d42bb6..18385877c0 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox.doc.s_main.sty +++ b/macros/latex/contrib/tcolorbox/tcolorbox.doc.s_main.sty @@ -54,6 +54,7 @@ \tcbset{skin=enhanced, doc head={colback=yellow!10!white,interior style=fill}, doc head key={colback=magenta!5!white,interior style=fill}, + doc head path={colback=blue!50!gray!7!white,interior style=fill}, color key=DarkViolet, color value=Teal, color color=Teal, diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.doc.skins.tex b/macros/latex/contrib/tcolorbox/tcolorbox.doc.skins.tex index e357d5b78c..8c18743cec 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox.doc.skins.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox.doc.skins.tex @@ -596,7 +596,7 @@ The boxed title is shifted by \meta{length} in the vertical direction. \end{boxTcbKey} \begin{boxTcbKey}{yshifttext}{=\meta{length}}{no default, initially |0pt|} -The text inside the main box by \meta{length} to give room for e.\,g.\ a sunken title. +The text inside the main box is shifted by \meta{length} to give room for e.\,g.\ a sunken title. \begin{exdispExample*}{yshifttext}{sbs,lefthand ratio=0.66} \begin{tcolorbox}[enhanced,title=My title, attach boxed title to top center= @@ -1303,7 +1303,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*}{segmentation style={pattern=checkerboard light gray}} +\begin{dispExample*}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \tcbset{enhanced jigsaw,fonttitle=\bfseries,opacityback=0.35,colback=blue!5!white, frame style={left color=red!75!black,right color=red!10!yellow}} @@ -2245,7 +2245,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=checkerboard light gray}} + segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \tcbset{enhanced,colback=red!5!white, colframe=red!75!black,fonttitle=\bfseries} @@ -2837,7 +2837,7 @@ and \refSkin{enhanced}, there are variants called \refSkin{standard jigsaw} and \refSkin{enhanced jigsaw}. -\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}} +\begin{dispExample*}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \newcommand{\ballexample}{\begin{tikzpicture} \path[use as bounding box] (0,0.8) rectangle +(0.1,0.1); \shadedraw [shading=ball] (0,0) circle (1cm); @@ -2863,7 +2863,7 @@ and \refSkin{enhanced jigsaw}. \end{dispExample*} -\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}} +\begin{dispExample*}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \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} @@ -2879,7 +2879,7 @@ and \refSkin{enhanced jigsaw}. \end{dispExample*} -\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}} +\begin{dispExample*}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \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} @@ -3047,7 +3047,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*}{segmentation style={pattern=checkerboard light gray}} +\begin{dispExample*}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \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, @@ -3366,7 +3366,7 @@ Nevertheless, this skin can be applied independently. This is an abbreviation for setting |skin=enhanced jigsaw|. \end{docTcbKey} -\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}} +\begin{dispExample*}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \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, @@ -3416,7 +3416,7 @@ Nevertheless, this skin can be applied independently. \end{docSkin} -\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}} +\begin{dispExample*}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \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, @@ -3459,7 +3459,7 @@ Nevertheless, this skin can be applied independently. \end{docSkin} -\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}} +\begin{dispExample*}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \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, @@ -3557,7 +3557,7 @@ Nevertheless, this skin can be applied independently. \end{docSkin} -\begin{dispExample*}{segmentation style={pattern=checkerboard light gray}} +\begin{dispExample*}{segmentation style={preaction={fill=white},pattern=checkerboard,pattern color=gray!40}} \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, diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.pdf b/macros/latex/contrib/tcolorbox/tcolorbox.pdf index e1e37bfe2c..4c995dd99f 100644 Binary files a/macros/latex/contrib/tcolorbox/tcolorbox.pdf and b/macros/latex/contrib/tcolorbox/tcolorbox.pdf differ diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.sty b/macros/latex/contrib/tcolorbox/tcolorbox.sty index 778bf12363..e70df1e68b 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox.sty +++ b/macros/latex/contrib/tcolorbox/tcolorbox.sty @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcolorbox.sty: Text color boxes %% %% ------------------------------------------------------------------------------------------- @@ -18,8 +18,8 @@ %% This work consists of all files listed in README %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tcolorbox}[2019/03/02 version 4.20 text color boxes] -\def\tcb@version{4.20} +\ProvidesPackage{tcolorbox}[2019/09/19 version 4.21 text color boxes] +\def\tcb@version{4.21} \RequirePackage{pgf}[2008/01/15] \RequirePackage{verbatim}[2003/08/22] @@ -431,9 +431,15 @@ left skip/.style={grow to left by={-\dimexpr#1\relax}}, right skip/.style={grow to right by={-\dimexpr#1\relax}}, leftright skip/.style={left skip={#1},right skip={#1}}, - spread inwards/.style={grow to left by=1in+\hoffset+\oddsidemargin+\@totalleftmargin+(#1),code={\if@twoside\tcbset{toggle enlargement}\fi}}, + spread inwards/.style={% + if odd page={grow to left by=1in+\hoffset+\oddsidemargin+\@totalleftmargin+(#1)}% + {grow to right by=\paperwidth-\textwidth-1in-\hoffset-\evensidemargin+(#1)}% + }, spread inwards/.default=\z@, - spread outwards/.style={grow to right by=\paperwidth-\textwidth-1in-\hoffset-\oddsidemargin+(#1),code={\if@twoside\tcbset{toggle enlargement}\fi}}, + spread outwards/.style={% + if odd page={grow to right by=\paperwidth-\textwidth-1in-\hoffset-\oddsidemargin+(#1)}% + {grow to left by=1in+\hoffset+\evensidemargin+\@totalleftmargin+(#1)}% + }, spread outwards/.default=\z@, move upwards/.style={before={\clearpage% \lineskip\z@skip% @@ -576,10 +582,23 @@ tabularx*/.style 2 args={% boxsep=\z@,top=\z@,bottom=\z@,leftupper=\z@,rightupper=\z@, toptitle=1mm,bottomtitle=1mm,boxrule=0.5mm, - before upper*={\arrayrulecolor{tcbcolframe}\def\arraystretch{1.1}#1% + before upper*={% + \let\tcb@CT@arc@save\CT@arc@% + \arrayrulecolor{tcbcolframe}\def\arraystretch{1.1}#1% \tcb@hack@currenvir\tabularx{\linewidth}{#2}}, - after upper*=\endtabularx\arrayrulecolor{black}}, + after upper*={\endtabularx\global\let\CT@arc@\tcb@CT@arc@save}% + }, tabularx/.style={tabularx*={}{#1}}, + tabulars*/.style 2 args={% + boxsep=\z@,top=\z@,bottom=\z@,leftupper=\z@,rightupper=\z@, + toptitle=1mm,bottomtitle=1mm,boxrule=0.5mm, + before upper*={% + \let\tcb@CT@arc@save\CT@arc@% + \arrayrulecolor{tcbcolframe}\def\arraystretch{1.1}#1% + \begin{tabular*}{\linewidth}{#2}}, + after upper*={\end{tabular*}\global\let\CT@arc@\tcb@CT@arc@save} + }, + tabulars/.style={tabulars*={}{#1}}, tikz upper/.style={before upper*={\centering\tcb@shield@externalize\begin{tikzpicture}[{#1}]},after upper*=\end{tikzpicture}},% tikz lower/.style={before lower*={\centering\tcb@shield@externalize\begin{tikzpicture}[{#1}]},after lower*=\end{tikzpicture}},% tikznode upper/.style={before upper={\centering\tcb@shield@externalize\begin{tikzpicture}\node[{align=center,inner sep=\z@,outer sep=\z@,#1}]\bgroup},after upper={\egroup;\end{tikzpicture}}},% @@ -2136,12 +2155,13 @@ 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, + 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, + shield externalize=false, } \def\tcbsetforeverylayer#1{\tcbset{initialize@reset={#1}}} diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.tex b/macros/latex/contrib/tcolorbox/tcolorbox.tex index 69d5d40992..8399ca7681 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox.tex @@ -1,5 +1,5 @@ % \LaTeX-Main\ -%% The LaTeX package tcolorbox - version 4.20 (2019/03/02) +%% The LaTeX package tcolorbox - version 4.21 (2019/09/19) %% tcolorbox.tex: Manual %% %% ------------------------------------------------------------------------------------------- @@ -43,8 +43,8 @@ \setlength{\bibitemsep}{\smallskipamount} \addbibresource{tcolorbox.doc.bib} -\def\version{4.20}% -\def\datum{2019/03/02}% +\def\version{4.21}% +\def\datum{2019/09/19}% \makeindex \hypersetup{ @@ -58,11 +58,11 @@ %\tcbset{draftmode} \tcbset{/tcb/external/-}% for final run -%\includeonly{tcolorbox.doc.skins} +%\includeonly{tcolorbox.doc.coreoptions} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} -\include{tcolorbox.doc.abstract} +\input{tcolorbox.doc.abstract} \include{tcolorbox.doc.intro} \include{tcolorbox.doc.quickref} \include{tcolorbox.doc.coremacros} -- cgit v1.2.3