summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tudscr/twocolfix.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-07-30 23:12:46 +0000
committerKarl Berry <karl@freefriends.org>2016-07-30 23:12:46 +0000
commit6b200dd5c2335baa8c78037d8f1c75d1295187f4 (patch)
tree45201aff662870ef1d337d24f7ce584320a633bf /Master/texmf-dist/tex/latex/tudscr/twocolfix.sty
parent4e2bc5d88938c53a614ca1efafe6680e25d24c76 (diff)
tudscr (26jul16)
git-svn-id: svn://tug.org/texlive/trunk@41776 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/twocolfix.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tudscr/twocolfix.sty54
1 files changed, 50 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/twocolfix.sty b/Master/texmf-dist/tex/latex/tudscr/twocolfix.sty
index 33ed2a093d1..f2f423cfba5 100644
--- a/Master/texmf-dist/tex/latex/tudscr/twocolfix.sty
+++ b/Master/texmf-dist/tex/latex/tudscr/twocolfix.sty
@@ -36,7 +36,7 @@
%%% From File: tudscr-twocolfix.dtx
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{twocolfix}[%
- 2016/06/17 v2.04e TUD-KOMA-Script
+ 2016/07/26 v2.05 TUD-KOMA-Script
package
(twocolumn layout bugfix)%
]
@@ -94,9 +94,55 @@
\@floatplacement%
\fi%
}
-\@ifundefined{scr@topnewpage}
- {\let\@topnewpage\@tempa}
- {\let\scr@topnewpage\@tempa}
+\long\def\@tempb[#1]{%
+ \@nodocument
+ \@next\@currbox\@freelist{}{}%
+ \global \setbox\@currbox
+ \color@vbox
+ \normalcolor
+ \vbox {%
+ \hsize\textwidth
+ \@parboxrestore
+ \col@number \@ne
+ #1%
+ \vskip -\dbltextfloatsep
+ }%
+ \color@endbox
+ \ifdim \ht\@currbox>\textheight
+ \ht\@currbox \textheight
+ \fi
+ \global \count\@currbox \tw@
+ \@tempdima -\ht\@currbox
+ \advance \@tempdima -\dbltextfloatsep
+ \global \advance \@colht \@tempdima
+ \ifx \@dbltoplist \@empty
+ \else
+ \@latexerr{Float(s) lost}\@ehb
+ \let \@dbltoplist \@empty
+ \fi
+ \@cons \@dbltoplist \@currbox
+ \global \@dbltopnum \m@ne
+ \ifdim \@colht<2.5\baselineskip
+ \@latex@warning@no@line {Optional argument of \noexpand\twocolumn
+ too tall on page \thepage}%
+ \@emptycol
+ \if@firstcolumn
+ \else
+ \@emptycol
+ \fi
+ \else
+ \global \vsize \@colht
+ \global \@colroom \@colht
+ \@floatplacement
+ \fi
+}
+\@ifundefined{scr@topnewpage}{%
+ \@check@eq\@topnewpage\@tempb%
+ \let\@topnewpage\@tempa%
+}{%
+ \@check@eq\scr@topnewpage\@tempb%
+ \let\scr@topnewpage\@tempa%
+}
\endinput
%%
%% End of file `twocolfix.sty'.