diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/twocolfix.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tudscr/twocolfix.sty | 54 |
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'. |