diff options
author | Karl Berry <karl@freefriends.org> | 2013-07-23 22:29:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-07-23 22:29:26 +0000 |
commit | 393d6ac7f30401efc47612d4f4322910f32fcee5 (patch) | |
tree | 2d181466a6ff19d1c4518e7d1e2853c453baf887 /Master/texmf-dist/doc/latex | |
parent | f59ca1d9cbe7adbdacee09b1da37ca357965c0c9 (diff) |
tcolorbox (23jul13)
git-svn-id: svn://tug.org/texlive/trunk@31275 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/CHANGES | 16 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf | bin | 274565 -> 280582 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex | 19 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.bib | 8 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex | 6 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex | 21 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex | 6 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex | 19 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex | 30 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex | 79 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf | bin | 2821113 -> 2854565 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex | 13 |
13 files changed, 184 insertions, 35 deletions
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES index c05aa0ba06d..183e401167c 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/CHANGES +++ b/Master/texmf-dist/doc/latex/tcolorbox/CHANGES @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 2.40 (2013/07/15) +%% The LaTeX package tcolorbox - version 2.41 (2013/07/23) %% %% ------------------------------------------------------------------------------------------- %% Copyright (c) 2006-2013 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> @@ -287,3 +287,17 @@ version 2.40 (2013/07/15) * new macros '\refCom*', '\refEnv*', '\refKey*' * docCommand and docEnvironment take options now +version 2.41 (2013/07/23) +- NOTE: The deprecated macro '\tcbmaketheorem' is redefined to its signature + of v2.33 and before to ensure backward compatibility. This may break code + written with v2.40 using '\tcbmaketheorem'. +- minor internal improvements +- support for the cleveref package with + * new initialization options 'crefname', 'Crefname' + * new options 'label type', 'no label type' +- library 'theorems': + * new options: 'separator sign', 'separator sign colon', 'separator sign dash' +- library 'listings': + * capture mode can be changed for 'tcblisting' and '\tcbinputlisting' + * new option: 'listing remove caption' + diff --git a/Master/texmf-dist/doc/latex/tcolorbox/README b/Master/texmf-dist/doc/latex/tcolorbox/README index 822c82956fe..3b9c7cd1ec1 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/README +++ b/Master/texmf-dist/doc/latex/tcolorbox/README @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 2.40 (2013/07/15) +%% The LaTeX package tcolorbox - version 2.41 (2013/07/23) %% %% ------------------------------------------------------------------------------------------- %% Copyright (c) 2006-2013 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf Binary files differindex cb6a19c21c3..4352b1219e8 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.pdf diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex index 31e236008de..bdca33ba0c2 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox-example.tex @@ -1,4 +1,4 @@ -%% The LaTeX package tcolorbox - version 2.40 (2013/07/15) +%% The LaTeX package tcolorbox - version 2.41 (2013/07/23) %% tcolorbox-example.tex: an example for tcolorbox %% %% ------------------------------------------------------------------------------------------- @@ -116,6 +116,23 @@ We have given Theorem \ref{theorem:summation} on page \pageref{theorem:summation \end{tcolorbox} %---------------------------------------------------------- +\section{Boxes in boxes} +\begin{tcolorbox}[colback=yellow!10!white,colframe=yellow!50!black, + every box/.style={fonttitle=\bfseries},title=Box] + \begin{tcolorbox}[enhanced,colback=red!10!white,colframe=red!50!black, + colbacktitle=red!85!black, + title=Box inside box,drop fuzzy shadow] + \begin{tcolorbox}[beamer,colframe=blue!50!black,title=Box inside box inside box] + An now for something completely different: Boxes!\par\medskip + \newtcbox{\mybox}{nobeforeafter,tcbox raise base,colframe=green!50!black,colback=green!10!white,arc=0pt} + \mybox{This} \mybox{is} \mybox{another} \mybox{box.} + \end{tcolorbox} + \end{tcolorbox} +\end{tcolorbox} + + + +%---------------------------------------------------------- \section{Breakable Boxes} \begin{tcolorbox}[enhanced,breakable, colback=blue!5!white,colframe=blue!75!black,title=Breakable box, diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.bib b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.bib index d222847b8ad..05e8cc7d120 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.bib +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.bib @@ -130,3 +130,11 @@ date = {2011-01-03}, } + +@manual{cubitt:2013a, + author = {Toby Cubitt}, + title = {The cleveref Package}, + url = {http://mirror.ctan.org/macros/latex/contrib/cleveref/cleveref.pdf}, + date = {2013-03-22}, +} + diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex index 95c117a5059..45801e6b456 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coremacros.tex @@ -155,10 +155,10 @@ numbered title and options. \clearpage -\begin{docCommand}{newtcbox}{\oarg{init options}\marg{\texttt{\textbackslash}name}\oarg{number}\oarg{default}\marg{options}} - Creates a new macro \meta{\texttt{\textbackslash}name} based on \refCom{tcbox}. +\begin{docCommand}{newtcbox}{\oarg{init options}\brackets{\texttt{\textbackslash}\rmfamily\meta{name}}\oarg{number}\oarg{default}\marg{options}} + Creates a new macro \texttt{\textbackslash}\meta{name} based on \refCom{tcbox}. Basically, |\newtcbox| operates like |\newcommand|. - The new macro \meta{\texttt{\textbackslash}name} optionally takes \meta{number}$+1$ arguments, where + The new macro \texttt{\textbackslash}\meta{name} optionally takes \meta{number}$+1$ arguments, where \meta{default} is the default value for the optional first argument. The \meta{options} are given to the underlying |tcbox|. The \meta{init options} allow to set up automatic numbering, 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 c96326f8f5e..159b5112672 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.coreoptions.tex @@ -2169,12 +2169,25 @@ Removes the phantom code if set before. \end{docTcbKey} \begin{docTcbKey}{label}{=\meta{marker}}{no default, initially unset} -Shortcut for |phantom={\label{#1}}|. The \meta{marker} is set as label text -for a reference with the |\ref| macro. +The \meta{marker} is set as label text for a reference with the |\ref| macro. Typically, this option is used for numbered boxes, see Subsection \ref{sec:numberedboxes} from page \pageref{sec:numberedboxes}, e.\,g.\ \refKey{/tcb/new/auto counter}. \end{docTcbKey} +\begin{docTcbKey}{label type}{=\meta{type}}{no default, initially unset} +This option key can be used only in conjunction with the |cleveref| package +\cite{cubitt:2013a} which has to be loaded separately. +\meta{type} has to be a cross-reference type \emph{known} to |cleveref| +like |theorem|, |algorithm|, |result|, etc. References made with |cleveref| +will use this type. Note that using |label type| will result in compilation +errors, if |cleveref| is not loaded. +For an example, see \Vref{theo:meanvaluetheorem}. +\end{docTcbKey} + +\begin{docTcbKey}{no label type}{}{no value, initially set} +Removes a \refKey{/tcb/label type}, if set before. +\end{docTcbKey} + \begin{docTcbKey}{step}{=\meta{counter}}{no default, initially unset} Shortcut for |phantom={\refstepcounter{#1}}|. The given \meta{counter} is increased and ready for labelling. This option is not needed when @@ -2191,6 +2204,7 @@ from page \pageref{sec:numberedboxes}. \end{docTcbKey} +\clearpage \begin{docTcbKey}{list entry}{=\meta{text}}{no default, initially unset} If the \flqq list of tcolorbox(es)\frqq\ feature described in Subsection \ref{sec:listsof} from page \pageref{sec:listsof} is used, this key @@ -2212,7 +2226,6 @@ This issues:\\ \end{docTcbKey} -\clearpage \begin{docTcbKey}{check odd page}{\colOpt{=\meta{boolean value}}}{default |true|, initially |false|} If set to |true|, the even/odd page testing from the package |changepage| is applied. The \refKey{/tcb/toggle enlargement} check @@ -2238,7 +2251,7 @@ box content. % \usepackage{changepage} \tcbset{colframe=blue!75!black,colback=white} -\begin{tcolorbox}[enhanced, +\begin{tcolorbox}[enhanced,check odd page, watermark text={\ifoddpage Odd\else Even\fi\ page!}] \lipsum[1] \end{tcolorbox} diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex index e3afeacb0f5..48cc75048ab 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.fitting.tex @@ -36,10 +36,10 @@ The library is loaded by a package option or inside the preamble by: \end{docCommand} -\begin{docCommand}{newtcboxfit}{\oarg{init options}\marg{\texttt{\textbackslash}name}\oarg{number}\oarg{default}\marg{options}} - Creates a new macro \meta{\texttt{\textbackslash}name} based on \refCom{tcboxfit}. +\begin{docCommand}{newtcboxfit}{\oarg{init options}\brackets{\texttt{\textbackslash}\rmfamily\meta{name}}\oarg{number}\oarg{default}\marg{options}} + Creates a new macro \texttt{\textbackslash}\meta{name} based on \refCom{tcboxfit}. Basically, |\newtcboxfit| operates like |\newcommand|. - The new macro \meta{\texttt{\textbackslash}name} optionally takes \meta{number}$+1$ arguments, where + The new macro \texttt{\textbackslash}\meta{name} optionally takes \meta{number}$+1$ arguments, where \meta{default} is the default value for the optional first argument. The \meta{options} are given to the underlying |tcboxfit|. The \meta{init options} allow to set up automatic numbering, diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex index e1335c1f5db..e8ca304eb37 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.initoptions.tex @@ -142,6 +142,25 @@ The real counter name is \texttt{\tcbcounter}. \end{dispExample} \end{newTcbKey} +\clearpage +\begin{newTcbKey}{crefname}{=\marg{singular}\marg{plural}}{no default, initially unset} + This option key can be used only in conjunction with the |cleveref| package + \cite{cubitt:2013a} which has to be loaded separately. + It creates a cross-reference type for the new |tcolorbox|'es, where the + lowercase \meta{singular} and \meta{plural} forms of the cross-reference are given. + See \refKey{/tcb/label type} and \cite{cubitt:2013a} for more information. +\end{newTcbKey} + + +\begin{newTcbKey}{Crefname}{=\marg{singular}\marg{plural}}{no default, initially unset} + This option key can be used only in conjunction with the |cleveref| package + \cite{cubitt:2013a} which has to be loaded separately. + It creates a cross-reference type for the new |tcolorbox|'es, where the + uppercase \meta{singular} and \meta{plural} forms of the cross-reference are given. + See \refKey{/tcb/label type} and \cite{cubitt:2013a} for more information. +\end{newTcbKey} + + \clearpage \subsection{Lists of \texttt{tcolorbox}es}\label{sec:listsof} 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 6bbac3e8cb5..544afba872b 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.listings.tex @@ -48,6 +48,17 @@ and in compiled form. </project> \end{tcblisting} \end{dispExample} + +\begin{dispExample} +% This box is as wide as needed (listing only !!) +% \usetikzlibrary{skins} +\begin{tcblisting}{colback=green!5!white,colframe=green!50!black,listing only, + hbox,enhanced,drop fuzzy shadow,before=\begin{center},after=\end{center}} +\begin{tikzpicture} +\fill[red] (0,0) rectangle (1,1); +\end{tikzpicture} +\end{tcblisting} +\end{dispExample} \end{docEnvironment} @@ -64,6 +75,7 @@ This \textbf{text} is written to a standardized file for later usage. \end{docEnvironment} +\clearpage \begin{docCommand}{tcbinputlisting}{\marg{options}} Creates a colored boxed based on a |tcolorbox|. The text content is read from a file named by the key value of |listing file|. Apart from that, @@ -74,7 +86,6 @@ This \textbf{text} is written to a standardized file for later usage. \end{dispExample} \end{docCommand} -\clearpage \begin{docCommand}{tcbuselistingtext}{} Loads text from a file named by the key value of |listing file|. \begin{dispExample} @@ -163,10 +174,10 @@ This is my \LaTeX\ box. \clearpage -\begin{docCommand}{newtcbinputlisting}{\oarg{init options}\marg{\texttt{\textbackslash}name}\oarg{number}\oarg{default}\marg{options}} - Creates a new macro \meta{\texttt{\textbackslash}name} based on \refCom{tcbinputlisting}. +\begin{docCommand}{newtcbinputlisting}{\oarg{init options}\brackets{\texttt{\textbackslash}\rmfamily\meta{name}}\oarg{number}\oarg{default}\marg{options}} + Creates a new macro \texttt{\textbackslash}\meta{name} based on \refCom{tcbinputlisting}. Basically, |\newtcbinputlisting| operates like |\newcommand|. - The new macro \meta{\texttt{\textbackslash}name} optionally takes \meta{number}$+1$ arguments, where + The new macro \texttt{\textbackslash}\meta{name} optionally takes \meta{number}$+1$ arguments, where \meta{default} is the default value for the optional first argument. The \meta{options} are given to the underlying |tcbinputlisting|. The \meta{init options} allow to set up automatic numbering, @@ -420,6 +431,17 @@ This is a \LaTeX\ example. \clearpage +\begin{docTcbKey}{listing remove caption}{\colOpt{=\meta{boolean value}}}{default |true|, initially |true|} +If set to |true|, some part of the caption building code of the |listings| package +is silenced to prevent some unwanted interaction with the |hyperref| package resulting +in additional vertical space. +If set to |false|, the |listings| package code is kept unchanged. +Note that listings outside \refEnv{tcblisting} and +\refCom{tcbinputlisting} are always processed normally. +Typically, a user is not expected to use this key at all. +\end{docTcbKey} + +\clearpage \subsection{Creation of \LaTeX\ Tutorials}\label{sec:latextutorial} The following source code gives a guideline for the creation of \LaTeX\ tutorials. In the next section, a framework for \LaTeX\ exercises is described. 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 8766b6d1eff..99fbd74fd30 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.theorems.tex @@ -10,7 +10,6 @@ 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}} Creates a new environment \meta{name} based on |tcolorbox| to frame a (mathematical) theorem. The \meta{display name} is used in the title line @@ -54,24 +53,25 @@ This also loads the package |amsmath|. \clearpage +\begin{docCommand}{tcbmaketheorem}{\marg{name}\marg{display name}\marg{options}\marg{counter}\marg{prefix}} +\begin{marker} +\refCom{newtcbtheorem} supersedes this macro. +\end{marker} \begin{deprecated} -\begin{docCommand}{tcbmaketheorem}{\oarg{init options}\marg{name}\marg{display name}\marg{options}\marg{counter}\marg{prefix}} Creates a new environment \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}. The \meta{options} are given to the underlying |tcolorbox| to control the appearance. The \meta{counter} is used for automatic numbering. - The \meta{init options} allow to set up automatic numbering, - see Section \ref{sec:initkeys} from page \pageref{sec:initkeys}.\par The new environment \meta{name} takes one optional and two mandatory 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 automatically labeled with \meta{prefix}|:|\meta{marker}. -\end{docCommand} \end{deprecated} +\end{docCommand} \begin{docCommand}{tcboxmath}{\oarg{options}\marg{mathematical box content}} Creates a \refEnv{tcolorbox} which is fitted to the width of the given @@ -120,6 +120,39 @@ This also loads the package |amsmath|. \subsection{Option Keys of the Library} +\begin{docTcbKey}{separator sign}{=\meta{sign}}{no default, initial |:|} + The given \meta{sign} is used inside the title text of a theorem + as separater between display name combined with number and + the specific title text. It is omitted, if there is no specific title text. + +\begin{dispExample} +% \usepackage{amssymb} +\newtcbtheorem[use counter from=mytheo]{sometheorem}{Theorem}% + {colback=white,colframe=red!50!black,fonttitle=\bfseries, + separator sign={\ $\blacktriangleright$}}{theo} +\begin{sometheorem}{My example}{} +My theorem text. +\end{sometheorem} +\end{dispExample} +\end{docTcbKey} + +\begin{docTcbKey}{separator sign colon}{}{style, no value, initially set} +Sets \refKey{/tcb/separator sign} to the default colon |:| sign. +\end{docTcbKey} + +\begin{docTcbKey}{separator sign dash}{}{style, no value} +Sets \refKey{/tcb/separator sign} to an en-dash sign. +\begin{dispExample} +\newtcbtheorem[use counter from=mytheo]{sometheorem}{Theorem}% + {colback=white,colframe=red!50!black,fonttitle=\bfseries, + separator sign dash}{theo} +\begin{sometheorem}{My example}{} +My theorem text. +\end{sometheorem} +\end{dispExample} +\end{docTcbKey} + + \begin{docTcbKey}{theorem}{=\marg{display name}\marg{counter}\marg{title}\marg{marker}}{no default} This key is internally used by \refCom{tcbmaketheorem}, but can be used directly in a |tcolorbox| for a more flexible approach. @@ -127,6 +160,7 @@ This also loads the package |amsmath|. and the \meta{title} for the title line of the box. Additionally, a |\label| with the given \meta{marker} is created. \begin{dispExample} +% \newcounter{texercise}% preamble \begin{tcolorbox}[colback=green!10,colframe=green!50!black,arc=4mm, theorem={Test}{texercise}{Direct usage}{myMarker}] Here, we see the test \ref{myMarker}. @@ -134,10 +168,11 @@ Here, we see the test \ref{myMarker}. \end{dispExample} For a common appearance inside the document, the key |theorem| should not be used directly as in the example above, but as part of a new environment -created by hand or using \refCom{tcbmaketheorem}. +created by hand or using \refCom{tcbmaketheorem} or using its successor +\refCom{newtcbtheorem}. \end{docTcbKey} - +\clearpage \begin{docTcbKey}{highlight math}{}{style, no value} Predefined style which is used for \refCom{tcbhighmath}. It can be changed comfortable with \refKey{/tcb/highlight math style}. @@ -433,16 +468,18 @@ referenced with the marker \texttt{cor:nullstellen}.\bigskip \end{dispExample} \begin{dispExample} +% \usepackage{varioref} +% \usepackage{cleveref} % \tcbuselibrary{skins} \newtcbtheorem[use counter from=Definition]{YetAnotherTheorem}{Theorem}% - {enhanced,frame hidden, + {label type=theorem,enhanced,frame hidden, boxrule=2mm,titlerule=0mm,toptitle=1mm,bottomtitle=1mm, fonttitle=\bfseries\large,fontupper=\normalsize, coltitle=green!35!black,colbacktitle=green!15!white, colback=green!50!yellow!15!white,borderline={1pt}{0pt}{green!25!blue}, }{theo} -\begin{YetAnotherTheorem}{Mittelwertsatz f\"{u}r $n$ Variable}{mittelwertsatz_n}% +\begin{YetAnotherTheorem}{Mittelwertsatz f\"{u}r $n$ Variable}{meanvaluetheorem}% Es sei $n\in\mathbb{N}$, $D\subseteq\mathbb{R}^n$ eine offene Menge und $f\in C^{1}(D,\mathbb{R})$. Dann gibt es auf jeder Strecke $[x_0,x]\subset D$ einen Punkt $\xi\in[x_0,x]$, so dass gilt @@ -450,6 +487,22 @@ referenced with the marker \texttt{cor:nullstellen}.\bigskip f(x)-f(x_0) = \operatorname{grad} f(\xi)^{\top}(x-x_0) \end{equation*} \end{YetAnotherTheorem} + +\medskip +Here, |cleveref| support is used to reference \Cref{theo:meanvaluetheorem} +on \Cpageref{theo:meanvaluetheorem}. This \namecref{theo:meanvaluetheorem} +can also be referenced by |\Vref| resulting in \Vref{theo:meanvaluetheorem}. +\end{dispExample} + +\begin{marker} +Note that \refKey{/tcb/label type} was used in the example above to feed +|cleveref| \cite{cubitt:2013a} with the needed name information. +\end{marker} + +\clearpage + +\begin{dispExample} +Here, using |\Vref| resulting in \Vref{theo:meanvaluetheorem} is more interesting\ldots \end{dispExample} @@ -465,7 +518,7 @@ referenced with the marker \texttt{cor:nullstellen}.\bigskip fonttitle=\bfseries\sffamily\normalsize,fontupper=\normalsize\itshape, }{theo} -\begin{YetAnotherTheorem}{Mittelwertsatz f\"{u}r $n$ Variable}{mittelwertsatz_n}% +\begin{YetAnotherTheorem}{Mittelwertsatz f\"{u}r $n$ Variable}{mittelwertsatz_n2}% Es sei $n\in\mathbb{N}$, $D\subseteq\mathbb{R}^n$ eine offene Menge und $f\in C^{1}(D,\mathbb{R})$. Dann gibt es auf jeder Strecke $[x_0,x]\subset D$ einen Punkt $\xi\in[x_0,x]$, so dass gilt @@ -476,7 +529,7 @@ referenced with the marker \texttt{cor:nullstellen}.\bigskip \end{dispExample} - +\clearpage You need more attention for your theorems? Here, you are \ldots \begin{dispExample} @@ -492,7 +545,7 @@ You need more attention for your theorems? Here, you are \ldots \end{Theorem} \end{dispExample} -\clearpage + Using \refCom{newtcbtheorem} is a convenient way to generate a new theorem type. On the other hand, it enforces to use a titled |tcolorbox|. If you prefer to have an embedded title, you may create a new theorem @@ -509,7 +562,7 @@ type with the more flexible \refCom{newtcolorbox} macro: list entry={\numberline{\thetcbcounter}#2},% label={theo:#3},#1} -\begin{YetAnotherTheorem}{Mittelwertsatz f\"{u}r $n$ Variable}{mittelwertsatz_n}% +\begin{YetAnotherTheorem}{Mittelwertsatz f\"{u}r $n$ Variable}{mittelwertsatz_n3}% Es sei $n\in\mathbb{N}$, $D\subseteq\mathbb{R}^n$ eine offene Menge und $f\in C^{1}(D,\mathbb{R})$. Dann gibt es auf jeder Strecke $[x_0,x]\subset D$ einen Punkt $\xi\in[x_0,x]$, so dass gilt diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf Binary files differindex f57d4b89109..47df6302cfb 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.pdf diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex index 94e5b372b2c..e6ac3165013 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.tex @@ -1,5 +1,5 @@ % \LaTeX-Main\ -%% The LaTeX package tcolorbox - version 2.40 (2013/07/15) +%% The LaTeX package tcolorbox - version 2.41 (2013/07/23) %% tcolorbox.tex: Manual %% %% ------------------------------------------------------------------------------------------- @@ -27,7 +27,9 @@ \usepackage{amsmath,amssymb} \usepackage[svgnames,table,hyperref]{xcolor} \usepackage{tikz} +\usepackage{varioref} \usepackage[pdftex,bookmarks,raiselinks,pageanchor,hyperindex,colorlinks]{hyperref} +\usepackage{cleveref} \usepackage[a4paper,left=2.5cm,right=2.5cm,top=1.5cm,bottom=1.5cm, marginparsep=5mm,marginparwidth=10mm, @@ -79,8 +81,8 @@ \newtcolorbox{marker}[1][]{marker,#1} -\def\version{2.40}% -\def\datum{2013/07/15}% +\def\version{2.41}% +\def\datum{2013/07/23}% \makeindex \hypersetup{ @@ -160,11 +162,13 @@ utf, % theorems ams,align, + dash, equation, gather, highlight, math, nodisplayskip, + separator,sign, theorem, % documentation actual, @@ -314,8 +318,7 @@ \input{\jobname_preamble_H.tex} -%\includeonly{tcolorbox.doc.abstract,tcolorbox.doc.coreoptions} - +%\includeonly{tcolorbox.doc.theorems} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} |