%% %% This is file `balance.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% balance.dtx (with options: `package') %% ============================================= %% IMPORTANT NOTICE: %% This is a generated file. %% %% It is subject to the same copyright conditions (see below) %% as in the original file: balance.dtx. %% It may not be distributed without balance.dtx. %% %% Full documentation can be obtained by LaTeXing that original file. %% Only a few abbreviated comments remain here to describe the usage. %% ============================================= %% Copyright 1993-1999 Patrick W Daly %% Max-Planck-Institut f\"ur Aeronomie %% Max-Planck-Str. 2 %% D-37191 Katlenburg-Lindau %% Germany %% E-mail: daly@linmpi.mpg.de \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{balance} [1999/02/23 4.3 (PWD)] % In order to balance the columns on a page, \balance must be given % somewhere within the first column. To turn off the feature, give % \nobalance. One has to look at the unbalanced text first to decide % where best to place \balance. %----------------------------------------------------------- \newcommand{\@BAlancecol}{\if@twocolumn \setbox0=\vbox{\unvbox\@outputbox} \@tempdima=\ht0 \advance\@tempdima by \topskip \advance\@tempdima by -\baselineskip \divide\@tempdima by 2 \splittopskip=\topskip {\vbadness=\@M \loop \global\setbox3=\copy0 \global\setbox1=\vsplit3 to \@tempdima \ifdim\ht3>\@tempdima \global\advance\@tempdima by 1pt \repeat} \setbox\@leftcolumn=\vbox to \@tempdima{\unvbox1\vfil} \setbox\@outputbox=\vbox to \@tempdima {\dimen2=\dp3\unvbox3\kern-\dimen2 \vfil} \fi} \newif\if@BAlanceone \global\@BAlanceonefalse \newdimen\oldvsize \newcommand{\@BAdblcol}{\if@firstcolumn \unvbox\@outputbox \penalty\outputpenalty \global\oldvsize=\@colht \global\multiply \@colht by 2 \global\@BAlanceonetrue \global\@firstcolumnfalse \else \global\@firstcolumntrue \if@BAlanceone \global\@BAlanceonefalse\@BAlancecol \global\@colht=\oldvsize \else \PackageWarningNoLine{balance} {You have called \protect\balance\space in second column\MessageBreak Columns might not be balanced}\fi \setbox\@outputbox\vbox to \@colht{\hbox to\textwidth {\hbox to\columnwidth {\box\@leftcolumn \hss}\hfil \vrule width\columnseprule\hfil \hbox to\columnwidth {\box\@outputbox \hss}}\vfil}\@combinedblfloats \@outputpage \begingroup \@dblfloatplacement \@startdblcolumn \@whilesw\if@fcolmade \fi {\@outputpage\@startdblcolumn}\endgroup \fi} \newcommand{\@BAcleardblpage}{\clearpage\if@twoside \ifodd\c@page\else \hbox{}\newpage\fi\fi} \newcommand{\@@cleardblpage}{} \let\@@cleardblpage=\cleardoublepage \newcommand{\@@utputdblcol}{} \let\@@utputdblcol=\@outputdblcol \newcommand{\balance}{\global\let\@outputdblcol=\@BAdblcol \global\let\cleardoublepage=\@BAcleardblpage} \newcommand{\nobalance}{\global\let\@outputdblcol=\@@utputdblcol \global\let\cleardoublepage=\@@cleardblpage} %% %% <<<<< End of generated file <<<<<< %% %% End of file `balance.sty'.