blob: 98224f3e4cd127e8b78b366f4064eaa3483f5a77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
%%
%% This is file `twocolfix.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tudscr-twocolfix.dtx (with options: `package')
%%
%% TUD-Script -- Corporate Design of Technische Universitaet Dresden
%%
%% 2017/01/26 v2.05g TUD-Script
%%
%% Copyright (C) Falk Hanisch <tudscr@gmail.com>, 2012-2017
%%
%% This file was generated from file(s) of the TUD-Script bundle.
%% ----------------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, version 1.3c of the license.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of
%% LaTeX 2005/12/01 or later and of this work.
%%
%% This work has the LPPL maintenance status "author-maintained".
%%
%% The current maintainer and author of this work is Falk Hanisch.
%%
%%% From File: tudscr-twocolfix.dtx
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{twocolfix}[%
2017/01/26 v2.05g TUD-Script
package
(twocolumn layout bugfix)%
]
\long\def \@tempa [#1]{%
\@nodocument%
\@next\@currbox\@freelist{}{}%
\global \setbox\@currbox%
\vbox {%
\break%
\prevdepth\z@%
\begingroup%
\normalcolor%
\hsize\textwidth%
\@parboxrestore%
\ifcsname KOMAClassName\endcsname%
\KOMAoptionOf[\KOMAoption{parskip}]{\KOMAClassFileName}{parskip}%
\fi%
\col@number \@ne%
\ignorespaces #1\par%
\ifdim\parskip>\z@\null\fi%
\vskip -\dbltextfloatsep%
\endgroup%
\ifdim\parskip>\z@\vskip\parskip\else\null\fi%
\vskip -\topskip%
}%
\begingroup%
\splitmaxdepth\maxdepth \splittopskip\topskip%
\setbox\@tempboxa \vsplit\@currbox to\z@%
\endgroup%
\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%
}
\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
}
\ifx\scr@topnewpage\@undefined
\@check@eq\@topnewpage\@tempb%
\let\@topnewpage\@tempa%
\else
\@check@eq\scr@topnewpage\@tempb%
\let\scr@topnewpage\@tempa%
\fi
\endinput
%%
%% End of file `twocolfix.sty'.
|