Debian Codegraph @

texmf-dist/tex/latex/fix2col/fix2col.sty

raw
1 %%
2 %% This is file `fix2col.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% fix2col.dtx (with options: `package')
8 %%
9 %% Source File: fix2col.dtx Copyright 1997 1998 David Carlisle
10 %%
11 %% This file may be distributed under the terms of the LPPL.
12 %% See 00readme.txt for details.
13 \NeedsTeXFormat{LaTeX2e}
14 \ProvidesPackage{fix2col}
15 [2015/11/13 v0.04 Output Routine fixes for two column mode (DPC,FMi)]
16 \@ifl@t@r\fmtversion{2014/12/31}
17 {\PackageWarningNoLine{fix2col}{Obsolete package: ignored}\endinput}
18 {}
19 \def\@outputdblcol{%
20 \if@firstcolumn
21 \global\@firstcolumnfalse
22 \global\setbox\@leftcolumn\copy\@outputbox
23 \splitmaxdepth\maxdimen
24 \vbadness\maxdimen
25 \setbox\@outputbox\vsplit\@outputbox to\maxdimen
26 \toks@\expandafter{\topmark}%
27 \xdef\@firstcoltopmark{\the\toks@}%
28 \toks@\expandafter{\splitfirstmark}%
29 \xdef\@firstcolfirstmark{\the\toks@}%
30 \ifx\@firstcolfirstmark\@empty
31 \global\let\@setmarks\relax
32 \else
33 \gdef\@setmarks{%
34 \let\firstmark\@firstcolfirstmark
35 \let\topmark\@firstcoltopmark}%
36 \fi
37 \else
38 \global\@firstcolumntrue
39 \setbox\@outputbox\vbox{%
40 \hb@xt@\textwidth{%
41 \hb@xt@\columnwidth{\box\@leftcolumn \hss}%
42 \hfil
43 \vrule \@width\columnseprule
44 \hfil
45 \hb@xt@\columnwidth{\box\@outputbox \hss}}}%
46 \@combinedblfloats
47 \@setmarks
48 \@outputpage
49 \begingroup
50 \@dblfloatplacement
51 \@startdblcolumn
52 \@whilesw\if@fcolmade \fi{\@outputpage\@startdblcolumn}%
53 \endgroup
54 \fi}
55 \def\end@dblfloat{%
56 \if@twocolumn
57 \@endfloatbox
58 \ifnum\@floatpenalty <\z@
59 \@largefloatcheck
60 \global\dp\@currbox1sp %
61 \expandafter\@gobble\end@float
62 \fi
63 \else
64 \end@float
65 \fi
66 }
67 \def\@testwrongwidth #1{%
68 \ifdim\dp#1=\f@depth
69 \else
70 \global\@testtrue
71 \fi}
72 \let\f@depth\z@
73 \def\@dblfloatplacement{\global\@dbltopnum\c@dbltopnumber
74 \global\@dbltoproom \dbltopfraction\@colht
75 \@textmin \@colht
76 \advance \@textmin -\@dbltoproom
77 \@fpmin \dblfloatpagefraction\textheight
78 \@fptop \@dblfptop
79 \@fpsep \@dblfpsep
80 \@fpbot \@dblfpbot
81 \def\f@depth{1sp}}
82 \def \@doclearpage {%
83 \ifvoid\footins
84 \setbox\@tempboxa\vsplit\@cclv to\z@ \unvbox\@tempboxa
85 \setbox\@tempboxa\box\@cclv
86 \xdef\@deferlist{\@toplist\@botlist\@deferlist}%
87 \global \let \@toplist \@empty
88 \global \let \@botlist \@empty
89 \global \@colroom \@colht
90 \ifx \@currlist\@empty
91 \else
92 \@latexerr{Float(s) lost}\@ehb
93 \global \let \@currlist \@empty
94 \fi
95 \@makefcolumn\@deferlist
96 \@whilesw\if@fcolmade \fi{\@opcol\@makefcolumn\@deferlist}%
97 \if@twocolumn
98 \if@firstcolumn
99 \xdef\@deferlist{\@dbltoplist\@deferlist}%
100 \global \let \@dbltoplist \@empty
101 \global \@colht \textheight
102 \begingroup
103 \@dblfloatplacement
104 \@makefcolumn\@deferlist
105 \@whilesw\if@fcolmade \fi{\@outputpage
106 \@makefcolumn\@deferlist}%
107 \endgroup
108 \else
109 \vbox{}\clearpage
110 \fi
111 \fi
112 \ifx\@deferlist\@empty \else\clearpage \fi
113 \else
114 \setbox\@cclv\vbox{\box\@cclv\vfil}%
115 \@makecol\@opcol
116 \clearpage
117 \fi
118 }
119 \def \@startdblcolumn {%
120 \@tryfcolumn \@deferlist
121 \if@fcolmade
122 \else
123 \begingroup
124 \let \reserved@b \@deferlist
125 \global \let \@deferlist \@empty
126 \let \@elt \@sdblcolelt
127 \reserved@b
128 \endgroup
129 \fi
130 }
131 \def\@addtonextcol{%
132 \begingroup
133 \@insertfalse
134 \@setfloattypecounts
135 \ifnum \@fpstype=8
136 \else
137 \ifnum \@fpstype=24
138 \else
139 \@flsettextmin
140 \@reqcolroom \ht\@currbox
141 \advance \@reqcolroom \@textmin
142 \ifdim \@colroom>\@reqcolroom
143 \@flsetnum \@colnum
144 \ifnum\@colnum>\z@
145 \@bitor\@currtype\@deferlist
146 \@testwrongwidth\@currbox
147 \if@test
148 \else
149 \@addtotoporbot
150 \fi
151 \fi
152 \fi
153 \fi
154 \fi
155 \if@insert
156 \else
157 \@cons\@deferlist\@currbox
158 \fi
159 \endgroup
160 }
161 \def\@addtodblcol{%
162 \begingroup
163 \@insertfalse
164 \@setfloattypecounts
165 \@getfpsbit \tw@
166 \ifodd\@tempcnta
167 \@flsetnum \@dbltopnum
168 \ifnum \@dbltopnum>\z@
169 \@tempswafalse
170 \ifdim \@dbltoproom>\ht\@currbox
171 \@tempswatrue
172 \else
173 \ifnum \@fpstype<\sixt@@n
174 \advance \@dbltoproom \@textmin
175 \ifdim \@dbltoproom>\ht\@currbox
176 \@tempswatrue
177 \fi
178 \advance \@dbltoproom -\@textmin
179 \fi
180 \fi
181 \if@tempswa
182 \@bitor \@currtype \@deferlist
183 \@testwrongwidth\@currbox
184 \if@test
185 \else
186 \@tempdima -\ht\@currbox
187 \advance\@tempdima
188 -\ifx \@dbltoplist\@empty \dbltextfloatsep \else
189 \dblfloatsep \fi
190 \global \advance \@dbltoproom \@tempdima
191 \global \advance \@colht \@tempdima
192 \global \advance \@dbltopnum \m@ne
193 \@cons \@dbltoplist \@currbox
194 \@inserttrue
195 \fi
196 \fi
197 \fi
198 \fi
199 \if@insert
200 \else
201 \@cons\@deferlist\@currbox
202 \fi
203 \endgroup
204 }
205 \def \@addtocurcol {%
206 \@insertfalse
207 \@setfloattypecounts
208 \ifnum \@fpstype=8
209 \else
210 \ifnum \@fpstype=24
211 \else
212 \@flsettextmin
213 \advance \@textmin \@textfloatsheight
214 \@reqcolroom \@pageht
215 \ifdim \@textmin>\@reqcolroom
216 \@reqcolroom \@textmin
217 \fi
218 \advance \@reqcolroom \ht\@currbox
219 \ifdim \@colroom>\@reqcolroom
220 \@flsetnum \@colnum
221 \ifnum \@colnum>\z@
222 \@bitor\@currtype\@deferlist
223 \@testwrongwidth\@currbox
224 \if@test
225 \else
226 \@bitor\@currtype\@botlist
227 \if@test
228 \@addtobot
229 \else
230 \ifodd \count\@currbox
231 \advance \@reqcolroom \intextsep
232 \ifdim \@colroom>\@reqcolroom
233 \global \advance \@colnum \m@ne
234 \global \advance \@textfloatsheight \ht\@currbox
235 \global \advance \@textfloatsheight 2\intextsep
236 \@cons \@midlist \@currbox
237 \if@nobreak
238 \nobreak
239 \@nobreakfalse
240 \everypar{}%
241 \else
242 \addpenalty \interlinepenalty
243 \fi
244 \vskip \intextsep
245 \box\@currbox
246 \penalty\interlinepenalty
247 \vskip\intextsep
248 \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
249 \outputpenalty \z@
250 \@inserttrue
251 \fi
252 \fi
253 \if@insert
254 \else
255 \@addtotoporbot
256 \fi
257 \fi
258 \fi
259 \fi
260 \fi
261 \fi
262 \fi
263 \if@insert
264 \else
265 \@resethfps
266 \@cons\@deferlist\@currbox
267 \fi
268 }
269 \def\@xtryfc #1{%
270 \@next\reserved@a\@trylist{}{}%
271 \@currtype \count #1%
272 \divide\@currtype\@xxxii
273 \multiply\@currtype\@xxxii
274 \@bitor \@currtype \@failedlist
275 \@testfp #1%
276 \@testwrongwidth #1%
277 \ifdim \ht #1>\@colht
278 \@testtrue
279 \fi
280 \if@test
281 \@cons\@failedlist #1%
282 \else
283 \@ytryfc #1%
284 \fi}
285 \def\@ztryfc #1{%
286 \@tempcnta\count #1%
287 \divide\@tempcnta\@xxxii
288 \multiply\@tempcnta\@xxxii
289 \@bitor \@tempcnta {\@failedlist \@flfail}%
290 \@testfp #1%
291 \@testwrongwidth #1%
292 \@tempdimb\@tempdima
293 \advance\@tempdimb\ht #1%
294 \advance\@tempdimb\@fpsep
295 \ifdim \@tempdimb >\@colht
296 \@testtrue
297 \fi
298 \if@test
299 \@cons\@flfail #1%
300 \else
301 \@cons\@flsucceed #1%
302 \@tempdima\@tempdimb
303 \fi}
304 \endinput
305 %%
306 %% End of file `fix2col.sty'.