| 1 |
%% file: TXSdcol.doc - Double Columns - TeXsis version 2.18 |
| 2 |
%% @(#) $Id: TXSdcol.doc,v 18.2 2000/05/17 00:19:46 myers Exp $ |
| 3 |
%======================================================================* |
| 4 |
% (C) Copyright 1989, 1992, 1993 by Eric Myers and Frank E. Paige |
| 5 |
% This file is a part of TeXsis. Distribution and/or modifications |
| 6 |
% are allowed under the terms of the LaTeX Project Public License (LPPL). |
| 7 |
% See the file COPYING or ftp://ftp.texsis.org/texsis/LPPL |
| 8 |
%======================================================================* |
| 9 |
\ifx\undefined\bs \texsis\input TXSdocM.doc\input Manual.aux\draft\fi |
| 10 |
|
| 11 |
|
| 12 |
\section{Double Column Output \label{sect.dcol}} |
| 13 |
|
| 14 |
Typesetting text in more than one column on a single page is more |
| 15 |
involved than typesetting text in a single page-wide column, but this |
| 16 |
extra effort can be rewarded with a document which looks much more |
| 17 |
professional and which can be easier to read (provided that the |
| 18 |
resolution of your printer is up to it). Many publishers of |
| 19 |
``\idx{camera-ready}'' conference proceedings require double |
| 20 |
column\index{double columns} \index{multiple columns|see{double |
| 21 |
columns}} typesetting, and the {\sl \idx{Physical Review}} and other APS |
| 22 |
and AIP journals are typeset in double columns. In order to make it |
| 23 |
easy for authors to prepare manuscripts either for such camera-ready |
| 24 |
conference proceedings or for submission to {\sl Physical Review}, we |
| 25 |
have included some powerful double column typesetting macros in \TeXsis. |
| 26 |
These macros can automatically balance columns which do not fill an |
| 27 |
entire page, and there are also provisions for equations which must be |
| 28 |
extended across both columns because they are too wide for a single |
| 29 |
column. Figures and tables (or other such ``floating'' insertions) can |
| 30 |
be put either in a single column or across both columns. The same is |
| 31 |
true for footnotes. By changing a single instruction in the manuscript |
| 32 |
file it is also possible to take a document which has been prepared for |
| 33 |
double columns and to print it in single column mode. The converse is |
| 34 |
not true --- typesetting text in double columns with automatic column |
| 35 |
balancing is a nontrivial task. While the macros generally behave as |
| 36 |
intended, more attention to the layout of the document is required, and |
| 37 |
even then the macros will sometimes fail without some extra guidance. |
| 38 |
It is not possible to divide three lines into two balanced columns! In |
| 39 |
such cases you must rearrange text or the placement of figures and |
| 40 |
tables, or explicitly select column or page breaks elsewhere in the |
| 41 |
document, in order to give \TeXsis\ some extra guidance on how best to |
| 42 |
format the page. |
| 43 |
|
| 44 |
%\bigbreak |
| 45 |
|
| 46 |
In order to use the double column formatting macros you must first |
| 47 |
specify the size of the columns with the command |
| 48 |
\CS{SetDoubleColumns}\arg{c-width}. The width and height of the full |
| 49 |
page are taken from the current settings of \cs{hsize} and \cs{vsize}, |
| 50 |
while the width of each column is \meta{c-width}. This re-defines |
| 51 |
\TeX's \cs{output} routine, so it should be called shortly after you say |
| 52 |
\cs{texsis}, before any output is actually produced, and it should only |
| 53 |
be called if double column output is to be produced. |
| 54 |
|
| 55 |
\CS{SetDoubleColumns} only sets the column dimensions and |
| 56 |
prepares the \cs{output} routine for double column output at some point |
| 57 |
in the future --- it does not actually put you in double column mode. |
| 58 |
Text will still be set in a single page-wide column until you say |
| 59 |
\CS{doublecolumns}. After you say \CS{doublecolumns} text will be set |
| 60 |
in double columns until you say \CS{enddoublecolumns}. This will cause |
| 61 |
the text collected so far to be put into two ``balanced'' columns of the |
| 62 |
same height. You can, if you desire, return to double column mode at |
| 63 |
any later time by saying \CS{doublecolumns} again, and you can switch |
| 64 |
back and forth as much as you like. However, keep in mind that |
| 65 |
frequently switching between single and double columns will make it very |
| 66 |
difficult for \TeXsis\ to choose good points to break columns and pages, |
| 67 |
and you may get an error message warning you that a column cannot be |
| 68 |
balanced. |
| 69 |
|
| 70 |
%\bigbreak |
| 71 |
%\pagecheck{3cm} |
| 72 |
|
| 73 |
A simple example of the use of these double column commands is the |
| 74 |
following: |
| 75 |
\TeXexample |
| 76 |
\SetDoubleColumns{0.47\hsize} |
| 77 |
\doublecolumns\tenpoint |
| 78 |
{\bf BISMUTH} (Ger.\ {\it Weisse Masse}, white mass; later |
| 79 |
{\it Wismuth} and {\it Bisemutum}, Bi; at.~wt. 308.981; |
| 80 |
at.~no. 83; m.p. 271.3$^\circ$C; b.p. 1560 $\pm$ 5$^\circ$C; |
| 81 |
sp.~gr. 9.747 (20$^\circ$); valence 3 or~5. In early times |
| 82 |
bismuth was confused with tin and lead. Claude Geoffroy the |
| 83 |
Younger showed it to be distinct from lead . . . |
| 84 |
. . . . . . . |
| 85 |
. . . High purity bismuth metal costs about \$4/lb. |
| 86 |
\enddoublecolumns |
| 87 |
|endTeXexample |
| 88 |
\noindent |
| 89 |
Here the column size is chosen to be slightly less than half of the |
| 90 |
\cs{hsize} (0.47 times the \cs{hsize}) to allow some space (called the |
| 91 |
``gutter'') between the two columns. The result is the |
| 92 |
following:\reference{CRC} |
| 93 |
\booktitle{Handbook of Chemistry and Physics}, 56th Edition, |
| 94 |
(CRC Press, Cleveland, Ohio, 1974), pg. B-9 |
| 95 |
\endreference |
| 96 |
\medbreak |
| 97 |
|
| 98 |
% set up double column mode: |
| 99 |
\SetDoubleColumns{0.47\hsize} |
| 100 |
|
| 101 |
\doublecolumns\tenpoint\baselineskip=12pt plus 1pt \relax |
| 102 |
{\bf BISMUTH} (Ger.\ {\it Weisse Masse}, white mass; later {\it Wismuth} |
| 103 |
and {\it Bisemutum}, Bi; at.~wt. 308.981; at.~no. 83; m.p. |
| 104 |
271.3$^\circ$C; b.p. 1560 $\pm$ 5$^\circ$C; sp.~gr. 9.747 (20$^\circ$); |
| 105 |
valence 3 or~5. In early times bismuth was confused with tin and lead. |
| 106 |
Claude Geoffroy\index{Geoffroy, Claude} the Younger showed it to be |
| 107 |
distinct from lead in 1753. It is a white, crystalline, brittle metal |
| 108 |
with a pinkish tinge. It occurs native. The most important ores are |
| 109 |
{\it bismuthinite} or {\it bismuth glance} (Bi$_2$S$_3$) and {\it |
| 110 |
bismite} (Bi$_2$O$_3$). Peru, Japan, Mexico, Bolivia, and Canada are |
| 111 |
major \idx{bismuth} producers. Much of the bismuth produced in the U.S. is |
| 112 |
obtained as a by-product in refining lead, copper, tin, silver, and |
| 113 |
gold ores. Bismuth is the most diamagnetic of all metals, and the |
| 114 |
thermal conductivity is lower than any metal, except mercury. It has a |
| 115 |
high electrical resistance, and has the highest \idx{Hall effect} of any |
| 116 |
metal (i.e., greatest increase in electrical resistance when placed in |
| 117 |
a magnetic field). ``Bismanol'' is a permanent magnet of high coercive |
| 118 |
force, made of MnBi, by the U.S. Naval Ordnance Laboratory. Bismuth |
| 119 |
expands 3.32\% on solidification. This property makes bismuth alloys |
| 120 |
particularly suited to the making of sharp castings of objects subject |
| 121 |
to damage by high temperatures. With other metals, such as tin, |
| 122 |
\idx{cadmium}, etc., bismuth forms low-melting alloys which are extensively |
| 123 |
used for safety devices used in \idx{fire detection} and extinguishing |
| 124 |
systems. Bismuth is used in producing malleable irons and is finding use |
| 125 |
as a catalyst for making acrylic fibers. When bismuth is heated in air |
| 126 |
it burns with a blue flame forming yellow fumes of the oxide. The metal |
| 127 |
is also used as a \idx{thermocouple} material (has highest negativity |
| 128 |
known), and has found application as a carrier for U$^{235}$ or |
| 129 |
U$^{238}$ fuel in \idx{atomic reactors}. Its soluble salts are |
| 130 |
characterized by forming insoluble basic salts on the addition of water, |
| 131 |
a property sometimes used in detection work. Bismuth oxychloride is |
| 132 |
used extensively in cosmetics. Bismuth subnitrate and subcarbonate are |
| 133 |
used in medicine. High purity bismuth metal costs about \$4/lb. |
| 134 |
\enddoublecolumns |
| 135 |
|
| 136 |
\nobreak |
| 137 |
\medskip |
| 138 |
|
| 139 |
The \cs{IEEE}, \cs{PhysRev}, and \cs{NorthHollandTwo} document formats |
| 140 |
described in \Sect{fmts} also use these double column macros. |
| 141 |
|
| 142 |
\bigbreak |
| 143 |
|
| 144 |
Any document prepared for double column output using the macros just |
| 145 |
described can also be printed in the simpler single column mode very |
| 146 |
easily, simply by leaving out the \CS{SetDoubleColumns}. Without the |
| 147 |
initialization provided by \CS{SetDoubleColumns} the \cs{doublecolumns} |
| 148 |
and \cs{enddoublecolumns} commands do nothing (they are, in fact, the |
| 149 |
same as saying \cs{relax}). However, if you restore the |
| 150 |
\CS{SetDoubleColumns} command, or invoke one of the specialized document |
| 151 |
styles which use double column output (like \cs{PhysRev}) they will come |
| 152 |
back to life and perform as required. |
| 153 |
|
| 154 |
\bigbreak |
| 155 |
|
| 156 |
In double column mode displayed equations that fit within a |
| 157 |
single column are typed within the usual |$$|\ttdots|$$|. If an equation |
| 158 |
is too long then it may have to be printed across both columns. This is |
| 159 |
easily done by saying \CS{longequation} before the |$$| which begins the |
| 160 |
equation and \CS{endlongequation} after the |$$| which ends the |
| 161 |
equation, like so:\index{double columns!long equations}% |
| 162 |
\TeXexample |
| 163 |
|smalltt\longequation |
| 164 |
$$ |
| 165 |
\psi_{nlm}(r,\theta,\phi) |
| 166 |
= [({2Z \over n a_0})^3 {(n-l-1)! \over 2n(n+l)!} ]^{1 \over 2} |
| 167 |
\, (\rho)^l \, e^{-\rho / 2} \, \, |
| 168 |
L_{n-l-1}^{2l+1} (\rho) \,\, Y_l^m(\theta,\phi) |
| 169 |
$$ |
| 170 |
\endlongequation |
| 171 |
|endTeXexample |
| 172 |
\noindent |
| 173 |
The command \CS{longequation} invokes \cs{enddoublecolumns} to end |
| 174 |
double column mode and balance the partial double columns, and it will |
| 175 |
also draw a ruled line across the bottom of the left column. After the |
| 176 |
equation has been completed \CS{endlongequation} invokes |
| 177 |
\cs{doublecolumns} to go back to double column mode, and it also draws a |
| 178 |
rule across the top of the right column. |
| 179 |
|
| 180 |
The purpose of these ruled lines is to guide the reader's eye from the |
| 181 |
incomplete left column to the right column above the equation, and to |
| 182 |
the top of the incomplete right column from the left column below the |
| 183 |
long equation. The default style of these rules is the same as is used |
| 184 |
by {\sl Physical Review}. The rules are drawn by macros called |
| 185 |
\CS{leftcolrule} and \CS{rightcolrule}, and these can be changed either |
| 186 |
by you or by a style file. For |
| 187 |
example, if you don't want these rules you can turn them off simply |
| 188 |
by redefining these macros to be \cs{relax}: |
| 189 |
\TeXexample |
| 190 |
\def\leftcolrule{\relax} |
| 191 |
\def\rightcolrule{\relax} |
| 192 |
|endTeXexample |
| 193 |
\noindent |
| 194 |
As with the other double column macros, \CS{longequation} and |
| 195 |
\CS{endlongequation} do nothing if they are invoked when double column |
| 196 |
mode has not been initialized with \CS{SetDoubleColumns}, to make it |
| 197 |
easy to print the document in single column mode. |
| 198 |
|
| 199 |
Keep in mind that when dealing with long equations which span both |
| 200 |
columns, switching frequently between single and double columns will |
| 201 |
almost certainly cause trouble in balancing the double columns. Also |
| 202 |
note that each separate piece of double-column material forms its own |
| 203 |
group, so any definitions made inside that group will be forgotten |
| 204 |
outside it. To avoid this problem put all definitions at the beginning of the |
| 205 |
paper, before double column mode is begun. Alternatively, make your |
| 206 |
definitions global by using \cs{gdef} rather than \cs{def}. |
| 207 |
|
| 208 |
\bigbreak |
| 209 |
|
| 210 |
Figures, tables, or other floating insertions can be inserted |
| 211 |
within a single column using the usual insertion commands of \TeX\ and |
| 212 |
\TeXsis:\index{double columns!insertions} \cs{topinsert}, \cs{midinsert}, |
| 213 |
\cs{pageinsert}, \cs{bottominsert}, or \cs{heavyinsert}, all of which |
| 214 |
are terminated as usual by \cs{endinsert}. A \cs{midinsert} or |
| 215 |
\cs{heavyinsert} will appear in the column where it is called for, |
| 216 |
unless it won't fit, in which case it migrates to the next {\sl |
| 217 |
column} (rather than all the way to the next page). You can force an |
| 218 |
insertion into a particular column by placing {\sl within} the |
| 219 |
insertion either \CS{forceleft} or \CS{forceright}. Since insertions |
| 220 |
which have been forced into the left or right columns are handled |
| 221 |
separately, an insertion which fails to fit on a page is moved to the |
| 222 |
same column of the next page and not just to the next column. This means |
| 223 |
that if there are several figures per page, then the figures can |
| 224 |
easily appear in the wrong order. Also, a \cs{topinsert} which follows |
| 225 |
a wide equation on a page will be placed after the equation, not at |
| 226 |
the top of the page. Such problems can easily be corrected by moving |
| 227 |
the insertion to a better place in the manuscript file. |
| 228 |
|
| 229 |
|
| 230 |
Besides putting insertions in one column or the other, it is also |
| 231 |
sometimes desirable to be able to put an insertion across the full width |
| 232 |
of the page. These ``wide'' insertions can be made with ``wide'' |
| 233 |
versions of some of the the insertions already mentioned: |
| 234 |
\CS{widetopinsert}, \CS{widepageinsert} and \CS{widebottominsert} |
| 235 |
(there is no such thing as |\widemidinsert| or |\wideheavyinsert|). These |
| 236 |
wide insertions behave just like their more conventional counterparts |
| 237 |
when in single column mode. |
| 238 |
|
| 239 |
The standard \TeXsis\ macros for table and figure insertions |
| 240 |
described in \Sect{tbls} use \cs{topinsert} and cousins, and so make |
| 241 |
insertions within a single column in double column format. |
| 242 |
There are also macros to make two-column wide tables and figures: |
| 243 |
\index{double columns!figures and tables}% |
| 244 |
\description{Xwidetable}\clump |
| 245 |
% |
| 246 |
\itm{\CS{widetable}\arg{label\/}} |
| 247 |
Insert a two-column wide table, with the tag \meta{label\/}, at the top of the |
| 248 |
current page. |
| 249 |
% |
| 250 |
\itm{\CS{widefigure}\arg{label\/}} |
| 251 |
Insert a two-column wide figure, with the tag \meta{label\/}, at the top of the |
| 252 |
current page. |
| 253 |
% |
| 254 |
\itm{\CS{widetopfigure}\arg{label\/}} |
| 255 |
A synonym for |\widefigure|. |
| 256 |
% |
| 257 |
\itm{\CS{widefulltable}\arg{label\/}} |
| 258 |
Insert a two-column wide, full-page table, with the tag \meta{label\/}. |
| 259 |
% |
| 260 |
\itm{\CS{widefullfigure}\arg{label\/}} |
| 261 |
Insert a two-column wide, full-page figure, with the tag \meta{label\/}. |
| 262 |
% |
| 263 |
\enddescription |
| 264 |
\noindent |
| 265 |
These also behave correctly in single column document formats. |
| 266 |
|
| 267 |
\bigbreak |
| 268 |
%================ |
| 269 |
|
| 270 |
Here is a summary of the commands which can be used to set-up and |
| 271 |
control double column mode: |
| 272 |
\description{Xdoublecolumns\quad}\clump |
| 273 |
% |
| 274 |
\itm{\CS{SetDoubleColumns}\arg{c-width}} |
| 275 |
Set up the double column format, using the current \cs{hsize} and |
| 276 |
\cs{vsize} for the total size of the page and \meta{c-width} for the |
| 277 |
column width. |
| 278 |
% |
| 279 |
\itm{\CS{doublecolumns}} |
| 280 |
Begin double column mode. |
| 281 |
% |
| 282 |
\itm{\CS{newcolumn}} |
| 283 |
Force a \idx{column break}, much like \cs{newpage} forces a page break. |
| 284 |
% |
| 285 |
\itm{\CS{enddoublecolumns}} |
| 286 |
End double column mode, making balanced double columns, |
| 287 |
% |
| 288 |
\itm{\CS{longequation}} |
| 289 |
Begins a ``long'' equation which cannot fit within one column |
| 290 |
and therefore must stretch across both columns. This balances the |
| 291 |
columns, putting a \CS{leftcolrule} below the left column, and then |
| 292 |
enters single column mode. |
| 293 |
% |
| 294 |
\itm{\CS{endlongequation}} |
| 295 |
Ends a long equation, returning to double column mode and |
| 296 |
putting a \CS{rightcolrule} above the right column of the text following. |
| 297 |
% |
| 298 |
\enddescription |
| 299 |
|
| 300 |
%>>> EOF TXSdcol.doc <<< |