summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-04-24 20:55:21 +0000
committerKarl Berry <karl@freefriends.org>2014-04-24 20:55:21 +0000
commit65c3e05fb1c80b23ce47a1cc4f4e5f5cbab6bd0b (patch)
tree598e0a451de3b833184a7ee75de5069a12958236 /Master/texmf-dist/tex/latex
parent6490b40d995e58060dcfc70648e086ff431bc8c3 (diff)
sttools (24apr14)
git-svn-id: svn://tug.org/texlive/trunk@33669 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/sttools/flushend.sty19
1 files changed, 13 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/sttools/flushend.sty b/Master/texmf-dist/tex/latex/sttools/flushend.sty
index da79299fb1d..68e6fad9213 100644
--- a/Master/texmf-dist/tex/latex/sttools/flushend.sty
+++ b/Master/texmf-dist/tex/latex/sttools/flushend.sty
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{flushend}
- [2014/03/18 v2.1 Balancing columns in twocolumn mode]
+ [2014/04/24 v2.2 Balancing columns in twocolumn mode]
\newif\if@auto@baselineskip \@auto@baselineskiptrue
\newif\if@balance@debug \@balance@debugfalse
\DeclareOption{autobase}{\global\@auto@baselineskiptrue}
@@ -50,15 +50,22 @@
\newtoks\atColsEnd \atColsEnd={}
\@ifundefined{fmt@box@adds}{\def\fmt@box@adds#1{#1}}{}
\@ifundefined{fmt@vbox@adds}{\def\fmt@vbox@adds[#1]#2{#2}}{}
-\gdef\remove@lastbox@at@balancing{%
- \unskip\unkern\unpenalty
- \unskip\unkern\unpenalty
- \unskip\unkern\unpenalty
- {\setbox\z@\lastbox}%
+\def\unskip@three@kern@penalty{%
\unskip\unkern\unpenalty
\unskip\unkern\unpenalty
\unskip\unkern\unpenalty
}
+\gdef\remove@lastbox@at@balancing{%
+ \unskip@three@kern@penalty
+ \bgroup
+ \setbox\z@\lastbox
+ \ifdim\wd\z@>\z@
+ \box\z@
+ \else
+ \aftergroup\unskip@three@kern@penalty
+ \fi
+ \egroup
+ }
\def\show@@box#1{%
\bgroup
\showboxbreadth=20000\showboxdepth=20000%