summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-12-18 22:04:25 +0000
committerKarl Berry <karl@freefriends.org>2013-12-18 22:04:25 +0000
commit7edd1b30f6d91c3f4961d8ceca5a9af64668db1b (patch)
tree3c631b8d49caab36f4b589405ec4766a0f46aa5a /Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
parent00be60da8df9f90d4ad3914ed813951c0639b409 (diff)
tcolorbox (17dec13)
git-svn-id: svn://tug.org/texlive/trunk@32442 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex')
-rw-r--r--Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex23
1 files changed, 20 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex
index e10522afe79..85ec5f60284 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 2.51 (2013/09/16)
+%% The LaTeX package tcolorbox - version 2.60 (2013/12/17)
%% 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{2.51}
+\tcb@set@library@version{2.60}
\newdimen\tcbfitdim
\newdimen\tcb@lowerfitdim
@@ -51,6 +51,13 @@
fit maxfontdiffgap/.store in=\kvtcb@fit@maxfontdiffgap,%
fit maxwidthdiff/.store in=\kvtcb@fit@maxwidthdiff,%
fit maxwidthdiffgap/.store in=\kvtcb@fit@maxwidthdiffgap,%
+ fit warning/.is choice,
+ fit warning/on/.code={\let\tcb@fit@warn@begin=\@empty%
+ \let\tcb@fit@warn@end=\@empty},
+ fit warning/off/.code={\def\tcb@fit@warn@begin{\hbadness=10000\relax}%
+ \let\tcb@fit@warn@end=\@empty},
+ fit warning/final/.code={\tcb@cur@hbadness=\hbadness\def\tcb@fit@warn@begin{\hbadness=10000\relax}%
+ \def\tcb@fit@warn@end{\hbadness=\tcb@cur@hbadness\relax\tcb@fit@@box}},
}
\def\tcb@@capture@fitbox{%
@@ -67,6 +74,8 @@
\tcb@finalize@environment%
}
+\newcount\tcb@cur@hbadness
+
\long\def\tcbox@inner@fitbox#1{%
\tcbset{breakable@false,sidebyside=false}%
\let\tcb@val@raisebase=\tcb@zpt%
@@ -77,7 +86,7 @@
%
\count@\z@%
\tcbfitdim\kvtcb@fit@basedim%
- %
+ \tcb@fit@warn@begin%
%
\def\tcb@fit@@box{%
\tcbdimto\tcb@fit@@line{\kvtcb@fit@skip\tcbfitdim}%
@@ -87,6 +96,11 @@
\kvtcb@fontupper\fontsize{\tcbfitdim}{\tcb@fit@@line}\selectfont%
\kvtcb@before@upper\ignorespaces#1\unskip\kvtcb@after@upper%
\end{tcb@savebox}%
+ %
+ \ifdim\wd\tcb@upperbox>\tcb@w@upper\relax
+ \message{WARNING!!!!!}
+ \fi
+ %
\tcbdimto\tcb@fit@@h{\ht\tcb@upperbox+\dp\tcb@upperbox}%
\tcbdimto\tcb@fit@@target{\kvtcb@height@fixed-\kvtcb@top@rule@stand-\kvtcb@bottom@rule@stand-\kvtcb@top-\kvtcb@bottom-\kvtcb@boxsep*2-\tcb@h@titletotal}%
\advance\count@ 1\relax%
@@ -231,6 +245,8 @@
\fi%
\fi%
%
+ \tcb@fit@warn@end%
+ %
% last height fit
\ifdim\kvtcb@height@fixed@plus>0pt\relax%
\ifdim\dimexpr\tcb@fit@@h<\tcb@fit@@target\relax%
@@ -300,6 +316,7 @@
fit height plus=0pt,fit width plus=0pt,
fit maxstep=20,fit maxfontdiff=0.1pt,fit maxfontdiffgap=1pt,
fit maxwidthdiff=1pt,fit maxwidthdiffgap=10pt,
+ fit warning=off
},
initialize@reset=reset@fitting,
}