summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-12 22:36:11 +0000
committerKarl Berry <karl@freefriends.org>2018-01-12 22:36:11 +0000
commitc8aaf5923479f61c01270f4c3ec39e9967632ee3 (patch)
tree3ac4e870bf87cceefb37f10b6d765952e710f53e /Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
parentcb8ebf13b33bc2e0f8c2e4ffa30f0cd0ba783828 (diff)
tcolorbox (12jan18)
git-svn-id: svn://tug.org/texlive/trunk@46292 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex')
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex20
1 files changed, 12 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
index b8bb5b8da1e..8d666acced7 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex
@@ -1,8 +1,8 @@
-%% The LaTeX package tcolorbox - version 4.11 (2017/09/14)
+%% The LaTeX package tcolorbox - version 4.12 (2018/01/12)
%% tcbtheorems.code.tex: Code for theorems in colorboxes
%%
%% -------------------------------------------------------------------------------------------
-%% Copyright (c) 2006-2017 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
+%% Copyright (c) 2006-2018 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
%% -------------------------------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
@@ -18,7 +18,7 @@
%% This work consists of all files listed in README
%%
%\makeatletter
-\tcb@set@library@version{4.11}
+\tcb@set@library@version{4.12}
\RequirePackage{amsmath}
@@ -51,7 +51,8 @@
\def\temp@a{#2}%
\ifx\temp@a\@empty%
\else%
- \tcbset{label={#1\kvtcb@label@sep#2}}%
+ \tcbset{label={#1\kvtcb@label@sep#2},%
+ tcb@theo@full@label@supp={#1\kvtcb@label@sep#2},tcb@theo@label@supp={#2}}%
\fi%
}
@@ -133,6 +134,8 @@
theorem style/margin/.style={theorem style=plain,theorem name,before title=\makebox[0pt][r]{\thetcbcounter\ }},
theorem style/margin apart/.style={theorem style=margin,attach title,terminator sign none},
theorem style/margin break/.style={theorem style=margin,attach title to upper={\par}},
+ theorem label supplement/.style={tcb@theo@label@supp/.style={#1}},
+ theorem full label supplement/.style={tcb@theo@full@label@supp/.style={#1}},
}
\newcommand{\new@tcbtheorem}[5][]{%
@@ -153,10 +156,6 @@
\def\renewtcbtheorem{\let\@@newtcolorbox\renewtcolorbox%
\new@tcbtheorem}
-\newcommand{\tcbmaketheorem}[5]{%
- \newtcolorbox{#1}[3][]{#3,theorem={#2}{#4}{##2}{#5\kvtcb@label@sep##3},##1}%
-}
-
\newtcbox{\tcboxmath}[1][]{nobeforeafter,math upper,tcbox raise base,#1}
\newtcbox{\tcbhighmath}[1][]{highlight math,nobeforeafter,math upper,tcbox raise base,#1}
@@ -165,7 +164,12 @@
description formatter,description color,description font,
highlight math style={colframe=red,colback=yellow!25!white},%
theorem style=standard,label separator=:,%
+ theorem label supplement=,theorem full label supplement=,%
},
initialize@reset=reset@theorems,
}
+% DEPRECATED
+\newcommand{\tcbmaketheorem}[5]{%
+ \newtcolorbox{#1}[3][]{#3,theorem={#2}{#4}{##2}{#5\kvtcb@label@sep##3},##1}%
+}