From 2d5135a3daaa80ca6f8878e7296bd5cbd0041cd5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 14 Jul 2016 21:41:30 +0000 Subject: tcolorbox (14jul16) git-svn-id: svn://tug.org/texlive/trunk@41700 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/tcolorbox/CHANGES | 15 +++- Master/texmf-dist/doc/latex/tcolorbox/README | 4 +- .../doc/latex/tcolorbox/tcolorbox-example.pdf | Bin 458241 -> 458241 bytes .../doc/latex/tcolorbox/tcolorbox-example.tex | 2 +- .../latex/tcolorbox/tcolorbox.doc.coreoptions.tex | 21 ++++++ .../doc/latex/tcolorbox/tcolorbox.doc.external.tex | 23 +++++- .../doc/latex/tcolorbox/tcolorbox.doc.graphics.tex | 2 +- .../doc/latex/tcolorbox/tcolorbox.doc.listings.tex | 62 ++++++++++++++-- .../doc/latex/tcolorbox/tcolorbox.doc.s_main.sty | 2 + .../doc/latex/tcolorbox/tcolorbox.doc.theorems.tex | 5 +- .../texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf | Bin 6811114 -> 6835148 bytes .../texmf-dist/doc/latex/tcolorbox/tcolorbox.tex | 22 +++--- .../tex/latex/tcolorbox/tcbbreakable.code.tex | 6 +- .../tex/latex/tcolorbox/tcbdocumentation.code.tex | 4 +- .../tex/latex/tcolorbox/tcbexternal.code.tex | 45 ++++-------- .../tex/latex/tcolorbox/tcbfitting.code.tex | 4 +- .../tex/latex/tcolorbox/tcbhooks.code.tex | 4 +- .../tex/latex/tcolorbox/tcblistings.code.tex | 4 +- .../tex/latex/tcolorbox/tcblistingscore.code.tex | 28 +++++--- .../tex/latex/tcolorbox/tcblistingsutf8.code.tex | 4 +- .../tex/latex/tcolorbox/tcbmagazine.code.tex | 4 +- .../tex/latex/tcolorbox/tcbminted.code.tex | 4 +- .../tex/latex/tcolorbox/tcbprocessing.code.tex | 79 +++++++++++++++++++++ .../tex/latex/tcolorbox/tcbraster.code.tex | 4 +- .../tex/latex/tcolorbox/tcbskins.code.tex | 6 +- .../tex/latex/tcolorbox/tcbskinsjigsaw.code.tex | 4 +- .../tex/latex/tcolorbox/tcbtheorems.code.tex | 5 +- .../tex/latex/tcolorbox/tcbvignette.code.tex | 4 +- .../tex/latex/tcolorbox/tcbxparse.code.tex | 4 +- .../texmf-dist/tex/latex/tcolorbox/tcolorbox.sty | 20 ++++-- 30 files changed, 293 insertions(+), 98 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/tcolorbox/tcbprocessing.code.tex (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES index ec65b64e3b5..51810f6bce2 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES +++ b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% %% ------------------------------------------------------------------------------------------- %% Copyright (c) 2006-2016 by Prof. Dr. Dr. Thomas F. Sturm @@ -913,3 +913,16 @@ version 3.93 (2016/06/01) - bug fix: compatibility patch for \vsplit in luatex 0.95 was buggy - system commands are now accessed using the 'shellesc' package for compatibility with luatex + +version 3.94 (2016/07/14) +- bug fix: '\tcbincludegraphics' for fixed height boxes was broken since v3.90 (2016/02/29) +- new option 'nameref' +- library 'theorems': + Theorems made nameref-aware +- library 'listings': + * new options: + 'freeze file', 'freeze none', 'freeze extension', + 'freeze pdf', 'freeze png', 'freeze jpg' +- library 'external': + * implementation improved for lualatex and xelatex + * new macro '\tcbiffileprocess' diff --git a/Master/texmf-dist/doc/latex/tcolorbox/README b/Master/texmf-dist/doc/latex/tcolorbox/README index fec7a39af88..bec78a4d6b2 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/README +++ b/Master/texmf-dist/doc/latex/tcolorbox/README @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% %% ------------------------------------------------------------------------------------------- %% Copyright (c) 2006-2016 by Prof. Dr. Dr. Thomas F. Sturm @@ -39,6 +39,7 @@ Contents of the package 'tcblistingsutf8.code.tex' LaTeX package file (library of tcolorbox) 'tcbmagazine.code.tex' LaTeX package file (library of tcolorbox) 'tcbminted.code.tex' LaTeX package file (library of tcolorbox) + 'tcbprocessing.code.tex' LaTeX package file (library of tcolorbox) 'tcbraster.code.tex' LaTeX package file (library of tcolorbox) 'tcbskins.code.tex' LaTeX package file (library of tcolorbox) 'tcbskinsjigsaw.code.tex' LaTeX package file (library of tcolorbox) @@ -73,6 +74,7 @@ Alternatively, put the files to their respective locations within the TeX instal 'tcblistingsutf8.code.tex' -> /tex/latex/tcolorbox 'tcbmagazine.code.tex' -> /tex/latex/tcolorbox 'tcbminted.code.tex' -> /tex/latex/tcolorbox + 'tcbprocessing.code.tex' -> /tex/latex/tcolorbox 'tcbraster.code.tex' -> /tex/latex/tcolorbox 'tcbskins.code.tex' -> /tex/latex/tcolorbox 'tcbskinsjigsaw.code.tex' -> /tex/latex/tcolorbox diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf index e897357e8dd..583c0021d80 100644 Binary files a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf and b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf differ diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex index c93016d972d..565e0488b9e 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcolorbox-example.tex: an example for tcolorbox %% %% ------------------------------------------------------------------------------------------- diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex index 736ec69c11f..713dde66f2e 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex @@ -3662,6 +3662,27 @@ This issues:\\ |\addcontentsline|\marg{list}\marg{type}\marg{entry text} \end{docTcbKey} + +\begin{docTcbKey}[][doc new=2016-06-22]{nameref}{=\meta{text}}{no default, initially unset} +If the |nameref| package is loaded, the given \meta{text} is used for +corresponding |\nameref| makros. Typically, the \meta{text} will be chosen +to be identical or nearly identical to the one for \refKey{/tcb/title}. + +\inputpreamblelisting{A} + +\begin{dispExample} +\begin{pabox}[label={mynamelabel},nameref={Title or anything else}]{Title text} +This is a tcolorbox. +\end{pabox} +This box is automatically numbered with \ref{mynamelabel} on page +\pageref{mynamelabel}. + +The box is titled '\nameref{mynamelabel}'. +\end{dispExample} +\end{docTcbKey} + + +\clearpage \subsection{Even and Odd Pages} \begin{marker} diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.external.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.external.tex index 20e351c0599..a77651f321c 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.external.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.external.tex @@ -42,7 +42,7 @@ Source snippets are compiled, if their |md5| checksum has changed. They are not compiled automatically, if option settings are changed or anything outside the snippet is changed. Use \refKey{/tcb/external/force remake} to force compilation in this case -or simply delete the externalized snippets. +or simply delete the externalized pdf oder md5 files. \end{marker} \begin{marker} @@ -575,6 +575,27 @@ This is my \LaTeX\ box. \end{docCommand} +\begin{docCommand}[doc new=2016-07-14]{tcbiffileprocess}{\marg{condition}\marg{source}\marg{md5-file}\marg{target}\marg{true}\marg{false}} + This is a low-level macro which is internally used. + The MD5 digest of a \meta{source} file is compared with + a stored MD5 digest from an auxiliary \meta{md5-file}. + If they are not equal, the auxiliary \meta{md5-file} is updated to + store the current MD5 digest. Further, + \begin{itemize} + \item if \meta{condition} equals |0|, \meta{true} is executed. + \item if \meta{condition} equals |1|:\\ + If the current and stored MD5 digests were different, \meta{true} is executed.\\ + Otherwise, if the \meta{target} file is not existing, \meta{true} is executed.\\ + Otherwise, if the \meta{target} file is older than the \meta{md5-file}, \meta{true} is executed.\\ + Otherwise, \meta{false} is executed. + \item if \meta{condition} equals |2|, \meta{false} is executed. + \end{itemize} + The intended processing purpose of the \meta{true} code is to produce a \meta{target} + file from the given \meta{source} file. +\end{docCommand} + + +\clearpage \subsection{Troubleshooting and FAQ}\label{subsec:external_troubleshooting} \begin{itemize} diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.graphics.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.graphics.tex index 925cb4f1691..4035e9c45ca 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.graphics.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.graphics.tex @@ -15,7 +15,7 @@ See \Vref{sec:skins} for the documentation of all other options of the \mylib{sk \subsection{Macros} -\begin{docCommand}[doc new and updated={2014-11-14}{2016-02-19}]{tcbincludegraphics}{\oarg{options}\marg{file name}} +\begin{docCommand}[doc new and updated={2014-11-14}{2016-07-13}]{tcbincludegraphics}{\oarg{options}\marg{file name}} In principle, this macro includes an image file denoted by \meta{file name} using the standard |\includegraphics| and puts it into a \refEnv{tcolorbox}. The \meta{options} are |tcolorbox| keys to set up the colored box. diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex index a2a07810ce7..1cb2ee50bd7 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex @@ -943,6 +943,8 @@ There already is a file |tcolorbox-example.tex| and a PDF file The processing result can be used inside a \refKey{/tcb/comment}. Several \refKey{/tcb/process code} options can be given which are processed in the given order. + Typically, \meta{code} is added by using the following styles + \refKey{/tcb/run system command}, \refKey{/tcb/run pdflatex}, etc. \end{docTcbKey} \begin{marker} @@ -957,6 +959,7 @@ shown in the previous pages. Runs a \meta{system command}, if the document is compiled with the |-shell-escape| permission. The current listing file can be accessed as |\filename@area\filename@base\filename@ext|. +This \meta{system command} is added to \refKey{/tcb/process code}. \end{docTcbKey} @@ -988,7 +991,7 @@ Issues a |pdflatex| compilation of the listing with the given \meta{arguments}. colframe=red!50!black,colback=yellow!10!white, listing options={style=tcblatex,texcsstyle=*\color{red!70!black}}, listing and comment, - pdf comment, + pdf comment,freeze pdf, compilable listing, run pdflatex } @@ -1050,6 +1053,7 @@ Issues a |latex| compilation of the listing with the given \meta{arguments}. Issues a |dvips| compilation of the listing with the given \meta{arguments}. \end{docTcbKey} +\enlargethispage*{1cm} \begin{docTcbKey}[][doc new=2014-11-14]{run ps2pdf}{\colOpt{=\meta{arguments}}}{style, no default, initially unset} Issues a |ps2pdf| compilation of the listing with the given \meta{arguments}. \end{docTcbKey} @@ -1060,11 +1064,12 @@ Issues a |ps2pdf| compilation of the listing with the given \meta{arguments}. colframe=red!50!black,colback=yellow!10!white, listing options={style=tcblatex,texcsstyle=*\color{red!70!black}}, lower separated=false,middle=0pt, - listing side comment,righthand width=4.5cm, + listing side comment,righthand width=4cm, compilable listing, run latex,run dvips,run ps2pdf, - pdf comment, - comment style={raster columns=1,graphics options={viewport=0in 8in 4in 11.5in,clip}}, + pdf comment,freeze pdf, + comment style={raster columns=1, + graphics options={viewport=0.5in 7.7in 3.5in 10.5in,clip}}, } \documentclass{article} \usepackage{pstricks,multido} @@ -1078,6 +1083,55 @@ Issues a |ps2pdf| compilation of the listing with the given \meta{arguments}. \end{dispListing*} {\tcbusetemp} +\clearpage + +\begin{marker} + For most applications, you will like to add \refKey{/tcb/freeze pdf} as option, + since the included |pdf| file is only refreshed, if the source for this file + has changed. +\end{marker} + +\begin{docTcbKey}[][doc new=2016-07-14]{freeze file}{=\meta{file}}{no default, initially unset} + Observes some \meta{file}, usually the final file produced by \refKey{/tcb/process code}, + \refKey{/tcb/run system command}, \refKey{/tcb/run pdflatex}, etc. + If the MD5 checksum of the current \refKey{/tcb/listing file} is unchanged + and \meta{file} exists, the processing is skipped and + the \meta{file} is kept (frozen). + Typically, the style \refKey{/tcb/freeze pdf} can be used for + convenience. +\end{docTcbKey} + +\begin{docTcbKey}[][doc new=2016-07-14]{freeze none}{}{no default, initially set} + Freeze no file and always execute the given process commands. +\end{docTcbKey} + +\begin{docTcbKey}[][doc new=2016-07-14]{freeze extension}{=\meta{text}}{style, no default} + Calls \refKey{/tcb/freeze file} with the current \refKey{/tcb/listing file} + stripped with its extension plus \meta{text} as new extension. +\begin{dispListing} + ... + listing file=myfile.tex, + freeze extension=-modified.pdf, % -> myfile-modified.pdf is observed + ... +\end{dispListing} +\end{docTcbKey} + +\begin{docTcbKey}[][doc new=2016-07-14]{freeze pdf}{}{no value} + Calls \refKey{/tcb/freeze file} with the current \refKey{/tcb/listing file} + stripped with its extension plus |.pdf| as new extension. +\end{docTcbKey} + +\begin{docTcbKey}[][doc new=2016-07-14]{freeze png}{}{no value} + Calls \refKey{/tcb/freeze file} with the current \refKey{/tcb/listing file} + stripped with its extension plus |.png| as new extension. + See the examples for \refKey{/tcb/run pdflatex} and \refKey{/tcb/run ps2pdf}. +\end{docTcbKey} + +\begin{docTcbKey}[][doc new=2016-07-14]{freeze jpg}{}{no value} + Calls \refKey{/tcb/freeze file} with the current \refKey{/tcb/listing file} + stripped with its extension plus |.jpg| as new extension. +\end{docTcbKey} + diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty index 0fbf2d64a0b..4b351a587e3 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.s_main.sty @@ -11,6 +11,7 @@ \RequirePackage[svgnames,table,hyperref]{xcolor} \RequirePackage{tikz} \RequirePackage{varioref} +\RequirePackage[makeindex]{imakeidx} \RequirePackage[pdftex,bookmarks,raiselinks,pageanchor,hyperindex,colorlinks]{hyperref} \RequirePackage{varwidth,cleveref,incgraph} @@ -171,6 +172,7 @@ tcbEXTERNALIZE,tcbifexternal,newtcbexternalizeenvironment, renewtcbexternalizeenvironment,extcolorbox,extikzpicture, newtcbexternalizetcolorbox,renewtcbexternalizetcolorbox, + tcbiffileprocess, % box array newboxarray,boxarraygetsize,boxarrayreset,boxarrayclear, boxarraygetbox,boxarraygetwidth,boxarraygetheight,boxarraygetdepth, diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex index 0ef0f86af09..a1f98a9f666 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex @@ -11,7 +11,7 @@ This also loads the package |amsmath|. \subsection{Macros of the Library} -\begin{docCommand}{newtcbtheorem}{\oarg{init options}\marg{name}\marg{display name}\marg{options}\marg{prefix}} +\begin{docCommand}[doc updated=2016-06-22]{newtcbtheorem}{\oarg{init options}\marg{name}\marg{display name}\marg{options}\marg{prefix}} Creates new environments \meta{name} and \meta{name}|*| based on |tcolorbox| to frame a (mathematical) theorem. The \meta{display name} is used in the title line with a number, e.\,g. \mbox{\flqq Theorem 5.1\frqq}. @@ -24,7 +24,8 @@ This also loads the package |amsmath|. parameters. The optional parameter supplements the options and should be used only in rare cases. The first mandatory parameter is the title text for the theorem and - the second mandatory parameter is a \meta{marker}. The theorem is + is also set as \refKey{/tcb/nameref} identifier. + The second mandatory parameter is a \meta{marker}. The theorem is automatically labeled with \meta{prefix}\meta{separator}\meta{marker} where \meta{separator} is predefined as '|:|', see \refKey{/tcb/label separator}.\par The new environment \meta{name}|*| takes one optional and one mandatory diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf index 791afce372e..62f93aa83c8 100644 Binary files a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf and b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf differ diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex index f53bbc715d0..4f9238d2115 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex @@ -1,5 +1,5 @@ % \LaTeX-Main\ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcolorbox.tex: Manual %% %% ------------------------------------------------------------------------------------------- @@ -18,6 +18,12 @@ %% %% This work consists of all files listed in README %% +% arara: pdflatex: { shell: yes } +% arara: biber +% arara: pdflatex: { shell: yes } +% arara: pdflatex: { shell: yes } +% arara: pdflatex: { shell: yes, synctex: yes } +% \documentclass[a4paper,11pt]{ltxdoc} \usepackage{tcolorbox.doc.s_main} @@ -36,8 +42,8 @@ \setlength{\bibitemsep}{\smallskipamount} \addbibresource{tcolorbox.doc.bib} -\def\version{3.93}% -\def\datum{2016/06/01}% +\def\version{3.94}% +\def\datum{2016/07/14}% \makeindex \hypersetup{ @@ -49,18 +55,10 @@ \usepackage{pgfplots} -%\nocite{*} - -% intermediate hack to compensate a biblatex error (3.4) -%\makeatletter -%\def\ifempty#1{% -% \protected@edef\z{#1}% -% \expandafter\ifblank\expandafter{\z}} -%\makeatother - %\tcbset{draftmode} %\includeonly{tcolorbox.doc.listings} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} \include{tcolorbox.doc.abstract} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex index 5914031e464..b5936ffd193 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbbreakable.code.tex: Code for breakable colorboxes %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \let\tcb@parboxrestore@true=\tcb@parboxrestore \let\tcb@parboxrestore@false\tcb@parbox@false@settings @@ -156,7 +156,7 @@ \else% \tcb@hasTitletrue% \tcbdimto\tcb@w@title{\tcb@innerwidth-\kvtcb@boxsep*2-\kvtcb@lefttitle-\kvtcb@righttitle}% - \begin{tcb@savebox}{\tcb@titlebox}{\tcb@w@title}\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@followingtitle\end{tcb@savebox}% + \begin{tcb@savebox}{\tcb@titlebox}{\tcb@w@title}\leavevmode\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@followingtitle\end{tcb@savebox}% \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}% \fi% diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex index bb760a2c538..b514fac092c 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbdocumentation.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbdocumentation.code.tex: Code for LaTeX documentations %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \tcbuselibrary{listings,skins,xparse,external} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex index c42b0c1ff05..22938134556 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbexternal.code.tex: Code for externalization %% %% ------------------------------------------------------------------------------------------- @@ -17,9 +17,9 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} -\RequirePackage{shellesc} +\tcbuselibrary{pro@cessing} { \catcode`\"=12 @@ -90,6 +90,12 @@ \endgroup% } +\def\tcbexternal@compile#1{% + \tcbiffileprocess{#1}% + {\tcbexternal@job@source}{\tcbexternal@job@mdfive}{\tcbexternal@job@pdf}% + {\tcbexternal@corecompile}{}% +} + \def\tcbexternal@inputsource{% \IfFileExists{\tcbexternal@job@source}% {\input{\tcbexternal@job@source}}% @@ -122,37 +128,12 @@ \newif\iftcb@externalize \tcb@externalizefalse -\def\tcbexternal@generatemdivesum{% - \iftcb@externalize% - \def\tcbexternallastmdfivesum{}% - \IfFileExists{\tcbexternal@job@mdfive}{\input{\tcbexternal@job@mdfive}}{}% - \edef\tcbexternalmdfivesum{\pdfmdfivesum file {\tcbexternal@job@source}}% - \else% - \def\tcbexternallastmdfivesum{x}% - \edef\tcbexternalmdfivesum{}% - \fi% - \immediate\openout\tcb@out=\tcbexternal@job@mdfive% - \immediate\write\tcb@out{\string\def\string\tcbexternallastmdfivesum{\tcbexternalmdfivesum}\@percentchar}% - \immediate\closeout\tcb@out% -} - -\def\tcbexternal@conditionalcompile{% - \IfFileExists{\tcbexternal@job@pdf}{% - \ifdefstrequal{\tcbexternallastmdfivesum}{\tcbexternalmdfivesum}{% - }{% - \tcbexternal@corecompile% - }% - }{% - \tcbexternal@corecompile% - }% -} - \def\tcb@useexternal{% - \tcbexternal@generatemdivesum% \iftcb@externalize% - \tcbexternal@compile% + \tcbexternal@compile{\tcbexternal@condition}% \tcbexternal@inputpdf% \else% + \tcbexternal@compile{2}% \tcbexternal@inputsource% \fi% } @@ -242,8 +223,8 @@ -/.style={externalize=false}, % force remake/.is choice, - force remake/true/.code={\let\tcbexternal@compile=\tcbexternal@corecompile}, - force remake/false/.code={\let\tcbexternal@compile=\tcbexternal@conditionalcompile}, + force remake/true/.code={\def\tcbexternal@condition{0}}, + force remake/false/.code={\def\tcbexternal@condition{1}}, force remake/.default=true, !/.style=force remake, % diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex index e985561ece4..e4196e72458 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbfitting.code.tex: Code for fit boxes %% %% ------------------------------------------------------------------------------------------- @@ -18,7 +18,7 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \newdimen\tcbfitdim \newdimen\tcb@lowerfitdim diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex index f64ff57fb8d..001d3a0f26b 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbhooks.code.tex: Code for adding hooks %% %% ------------------------------------------------------------------------------------------- @@ -18,7 +18,7 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \tcbset{% before upper app/.code={\appto\kvtcb@before@upper{#1}},% diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex index 2d0fdbba6bc..05ae51bc857 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcblistings.code.tex: Code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- @@ -18,7 +18,7 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \RequirePackage{listings}[2007/02/22] diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex index a08a78253bf..84a7edc429b 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcblistingscode.code.tex: Auxiliary code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- @@ -18,10 +18,9 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} -\RequirePackage{pdftexcmds} -\RequirePackage{shellesc} +\tcbuselibrary{pro@cessing} \def\tcbuselistingtext@input{\input{\kvtcb@listingfile}}% \def\tcbuselistingtext{\tcbuselistingtext@input}% @@ -43,7 +42,6 @@ \newenvironment{tcb@lower@outside}[1]{% \tcbset{savedelimiter=tcb@lower@outside}\tcb@minipage{#1}% \color{tcbcol@lower}\kvtcb@fontlower\kvtcb@halignlower\kvtcb@before@lower\ignorespaces}% -% {\unskip\kvtcb@after@lower\endminipage} {\kvtcb@after@lower\endminipage} \def\tcb@use@listing@other@reset{% @@ -172,7 +170,7 @@ \or\or \tcb@warning{System call with restricted shell escape may fail}% \fi% - \filename@parse{\kvtcb@listingfile}\ShellEscape{#1}% + \ShellEscape{#1}% \relax% } @@ -233,10 +231,23 @@ run latex/.style={run@system@command={latex}{#1}},% run dvips/.style={run@system@command={dvips}{#1}},% run ps2pdf/.style={run system command={ps2pdf\space#1\space\filename@area\filename@base.ps}},% + freeze file/.code={\def\tcbprocess@condition{1}\def\tcbprocess@target{#1}},% + freeze none/.code={\def\tcbprocess@condition{0}\def\tcbprocess@target{}},% + freeze extension/.style={freeze file={\filename@area\filename@base#1}},% + freeze pdf/.style={freeze extension={.pdf}}, + freeze png/.style={freeze extension={.png}}, + freeze jpg/.style={freeze extension={.jpg}}, +} + +\def\tcb@listing@process@core{% + \filename@parse{\kvtcb@listingfile}% + \tcbiffileprocess{\tcbprocess@condition}% + {\kvtcb@listingfile}{\filename@area\filename@base.md5}{\tcbprocess@target}% + {\tcb@listing@process@hook}{}% } \def\tcbinputlisting@core{% - \tcb@listing@process@hook% + \ifdefempty\tcb@listing@process@hook{}{\tcb@listing@process@core}% \let\tcb@listing@capture=\kvtcb@capture% \tcb@inputlisting% } @@ -313,7 +324,8 @@ reset@listingscore/.style={% listing file=\jobname.listing, comment=, listing and text, - no process,comment style=,pdf extension=pdf, + no process,freeze none, + comment style=,pdf extension=pdf, }, initialize@reset=reset@listingscore, } diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex index edaa3b32263..afc31d98309 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcblistingsutf8.code.tex: Code for colorboxes with listings in UTF-8 %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \RequirePackage{listingsutf8}[2011/11/10] \tcbuselibrary{listings} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbmagazine.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbmagazine.code.tex index 528ccb536a6..dff4369a280 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbmagazine.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbmagazine.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% 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{3.93} +\tcb@set@library@version{3.94} \tcbuselibrary{breakable} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex index 7ca5861790e..4d9cfecd05e 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbminted.code.tex: Code for colorboxes with listings %% %% ------------------------------------------------------------------------------------------- @@ -18,7 +18,7 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \RequirePackage{minted}[2011/09/17] diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbprocessing.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbprocessing.code.tex new file mode 100644 index 00000000000..c24e493096f --- /dev/null +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbprocessing.code.tex @@ -0,0 +1,79 @@ +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) +%% tcbprocessing.code.tex: Code for conditional processing +%% +%% ------------------------------------------------------------------------------------------- +%% Copyright (c) 2006-2016 by Prof. Dr. Dr. Thomas F. Sturm +%% ------------------------------------------------------------------------------------------- +%% +%% 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 +%% +\tcb@set@library@version{3.94} + +\RequirePackage{pdftexcmds} +\RequirePackage{shellesc} + +\ifdefined\pdf@filemdfivesum\else% XeLaTeX presumed ... + \def\pdf@filemdfivesum#1{\mdfivesum file {#1}}% +\fi +\ifdefined\pdf@filemoddate\else% very poor XeLaTeX bypassing + \def\pdf@filemoddate#1{}% +\fi + +\def\tcbproc@readmdfive#1#2{% + \edef\tcbprocmdfivesum{\pdf@filemdfivesum{#1}}% + \IfFileExists{#2}{\input{#2}}{\def\tcbproclastmdfivesum{}}% +} + +\def\tcbproc@writemdfive#1{% + \immediate\openout\tcb@out=#1% + \immediate\write\tcb@out{\string\def\string\tcbproclastmdfivesum{\tcbprocmdfivesum}\@percentchar}% + \immediate\closeout\tcb@out% +} + +\newrobustcmd{\iftcb@process@on}[3]{% + \tcbproc@readmdfive{#1}{#2}% + \ifdefstrequal{\tcbproclastmdfivesum}{\tcbprocmdfivesum}{}{\tcbproc@writemdfive{#2}}% + \expandafter\@firstoftwo% +} + +\newrobustcmd{\iftcb@process@conditional}[3]{% + \tcbproc@readmdfive{#1}{#2}% + \ifdefstrequal{\tcbproclastmdfivesum}{\tcbprocmdfivesum}{% + \IfFileExists{#3}{% + \ifnum\pdf@strcmp{\pdf@filemoddate{#2}}{\pdf@filemoddate{#3}}>0\relax% + \expandafter\@firstoftwo% + \else% + \expandafter\@secondoftwo% + \fi% + }{\expandafter\@firstoftwo}% + }{% + \tcbproc@writemdfive{#2}% + \expandafter\@firstoftwo% + }% +} + +\newrobustcmd{\iftcb@process@off}[3]{% + \tcbproc@readmdfive{#1}{#2}% + \ifdefstrequal{\tcbproclastmdfivesum}{\tcbprocmdfivesum}{}{\tcbproc@writemdfive{#2}}% + \expandafter\@secondoftwo% +}% + +\newrobustcmd{\tcbiffileprocess}[1]{% + \ifcase\numexpr#1\relax% + \expandafter\iftcb@process@on% + \or% + \expandafter\iftcb@process@conditional% + \else% + \expandafter\iftcb@process@off% + \fi% +} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex index 3de8d30c03a..4d4c02ca597 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \newcounter{tcbrastercolumn} \newcounter{tcbrasterrow} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex index 64eff210d50..6fa5bef8e62 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 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% 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{3.93} +\tcb@set@library@version{3.94} \RequirePackage{tikz}[2010/10/13] @@ -1707,7 +1707,7 @@ }{% \iftcb@fixedheight% \begin{tcolorbox}% - \begingroup\edef\x{\endgroup\noexpand\includegraphics[\expandonce\kvtcb@graphics@options,height=\tcbtextheight]}% + \begingroup\edef\x{\endgroup\noexpand\includegraphics[\expandonce\kvtcb@graphics@options,width=\linewidth,height=\tcbtextheight,keepaspectratio]}% \x{\imagepath}% \end{tcolorbox}% \else% diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex index b68f4dc7819..537ad9fe6fd 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbskinsjigsaw.code.tex: Code for colorboxes with different skins %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \tcbuselibrary{skins} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex index 6a94a75ed65..8203e2dc108 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbtheorems.code.tex: Code for theorems in colorboxes %% %% ------------------------------------------------------------------------------------------- @@ -18,7 +18,7 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \RequirePackage{amsmath} @@ -139,6 +139,7 @@ \@@newtcolorbox[auto counter,#1]{#2}[3][]{#4,% title={\tcb@theo@title{#3}{\thetcbcounter}{##2}},% list entry={\protect\numberline{\thetcbcounter}##2},% + nameref={##2},% code={\tcb@theo@label{#5}{##3}},% ##1}% \@@newtcolorbox[#1,no counter,list inside=]{#2*}[2][]{#4,% diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbvignette.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbvignette.code.tex index 393ff7cc2f1..302de99d103 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbvignette.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbvignette.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbvignette.code.tex: Code for ornamental frames %% %% ------------------------------------------------------------------------------------------- @@ -17,7 +17,7 @@ %% %% This work consists of all files listed in README %% -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \tcbuselibrary{skins} diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex index fbe3cd4356a..f884b978e92 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbxparse.code.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcbxparse.code.tex: Code for xparse features %% %% ------------------------------------------------------------------------------------------- @@ -18,7 +18,7 @@ %% This work consists of all files listed in README %% %\makeatletter -\tcb@set@library@version{3.93} +\tcb@set@library@version{3.94} \RequirePackage{xparse}[2013/12/31] diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty b/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty index 1455dcd5669..f398fd14b7a 100644 --- a/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty +++ b/Master/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 3.93 (2016/06/01) +%% The LaTeX package tcolorbox - version 3.94 (2016/07/14) %% tcolorbox.sty: Text color boxes %% %% ------------------------------------------------------------------------------------------- @@ -18,8 +18,8 @@ %% This work consists of all files listed in README %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tcolorbox}[2016/06/01 version 3.93 text color boxes] -\def\tcb@version{3.93} +\ProvidesPackage{tcolorbox}[2016/07/14 version 3.94 text color boxes] +\def\tcb@version{3.94} \RequirePackage{pgf}[2008/01/15] \RequirePackage{verbatim}[2003/08/22] @@ -129,7 +129,7 @@ \pgfkeys{/handlers/.colorlet/.code=\pgfkeysalso{\pgfkeyscurrentpath/.code=\colorlet{#1}{##1}}} \newcommand\tcbtitle{\ifx\tcbtitletext\@empty\else% - {\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@haligntitle\kvtcb@before@title\tcbtitletext\kvtcb@after@title}\fi} + \leavevmode{\color{tcbcol@title}\kvtcb@fonttitle\kvtcb@haligntitle\kvtcb@before@title\tcbtitletext\kvtcb@after@title}\fi} \def\tcb@detach@title@code@{% \let\tcbtitletext\kvtcb@title% @@ -149,6 +149,14 @@ \let\tcb@specialtitle@hook\@empty% } +\def\tcb@gettitle#1{\edef\@currentlabelname{#1}} + +\AtBeginDocument{% + \@ifpackageloaded{nameref}{% + \let\tcb@gettitle\NR@gettitle% + }{}% +} + % analog to plain.tex \def\tcb@raggedright@plain{\raggedright\rightskip0pt plus2em \spaceskip.3333em \xspaceskip.5em\relax} \def\tcb@raggedleft@plain{\raggedleft\leftskip0pt plus2em \spaceskip.3333em \xspaceskip.5em \hbadness=10000\relax} @@ -580,6 +588,7 @@ step/.style={phantom={\refstepcounter{#1}}},% label/.style={phantom={\tcb@set@label{#1}}},% phantomlabel/.style={phantom={\ifdefined\phantomsection\phantomsection\fi\tcb@set@label{#1}}},% + nameref/.code={\tcb@gettitle{#1}},% label type/.store in=\kvtcb@label@type,% no label type/.style={label type=},% add to list/.style 2 args={phantom={\tcb@addcontentsline{#1}{#2}}}, @@ -1470,7 +1479,7 @@ \fi% \iftcb@hasLower% \tcb@box@align{\tcb@lowerbox}% - \iftcb@lowervisible\color{tcbcol@lower}\unhbox\tcb@lowerbox% + \iftcb@lowervisible\leavevmode\color{tcbcol@lower}\unhbox\tcb@lowerbox% \else% \iftcb@lowerignored\else\rule[-\dp\tcb@lowerbox]{0pt}{\the\dimexpr\ht\tcb@lowerbox+\dp\tcb@lowerbox\relax}\fi% \fi% @@ -2066,6 +2075,7 @@ \DeclareOption{#1}{\appto\tcb@optionlist{,#1}}% } +\tcb@add@library{pro@cessing}{tcbprocessing.code.tex} \tcb@add@library{listings@core}{tcblistingscore.code.tex} \tcb@add@library{listings}{tcblistings.code.tex} \tcb@add@library{listingsutf8}{tcblistingsutf8.code.tex} -- cgit v1.2.3