summaryrefslogtreecommitdiff
path: root/obsolete/macros/inrstex/inrsdoc/thmulcol.tex
blob: 47e7462e827bbde9508746bef3b2fa104eeb0ba2 (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
%-*-tex-*-
\ifundefined{writestatus} \input status \relax \fi %
\chcode{mulcol}

\def\cqu{}

\chapterhead{mulcol}{MULTICOLUMN\cr FORMAT}
\intex\ supplies a reasonably versatile multicolumn format mechanism. 
The rest of this chapter is set in the multicolumn format with two columns it
was called using
\begintt
\beginmulticolumnformat
\tolerance = 1000
\intercolumnsep = {\quad \vrule\quad}
\numberofcolumns = 2
\endtt
\beginmulticolumnformat
\tolerance = 1000
\intercolumnsep = {\quad \vrule\quad}
\numberofcolumns = 2

\shead{mulcolcomlist}{Command List}
\begingroup
\obeylines
\ext|\balancecolumnsize|
\ext|\beginmulticolumnformat|
\ext|\endmulticolumnformat|
\ext|\ejectcolumn|
\ext|\ejectpage|
\ext|\firstcolumnoffset|
\ext|\intercolumnsep|
\ext|\numberofcolumns|
\endgroup

\shead{mulcolform}{Multicolumn Usage}
Multicolumn format is begun using
\begintt
\beginmulticolumnformat.
\endtt
and is terminated with an
\begintt
\endmulticolumnformat. 
\endtt

Narrow columns in multicolumn format can make it difficult to produce nice
looking lines. This is why the |\tolerance| was increased above while in this
two column mode.
When the number of columns is specified,
above it was 2, the {\bf current} space taken by the intercolumn separator and the
first column offset is used to compute the size of the columns. This
hopefully will not be of negative width. From this point all input will be
put in multicolumn format. Footnotes, inserts, and the like that occur 
while multicolumn format is in force will migrate to the appropriate places
in the column.\footnote{\dagger}{This footnote migrated down to the bottom of
this page} Figures, tables will all behave as if the column were a page.
Footnotes and inserts that occur before or after multicolumn format will be
placed in the appropriate place but with  respect to the entire page rather
than the individual column. A column is completed using an |\ejectcolumn|
while an |\ejectpage| will complete all the columns on the page. 

\intex\ does not produce balanced columns automatically.
However, there is a way of hand
balancing. When the multicolumn format is ended, \intex\ computes
an estimate of the column length that is needed to produce balanced
columns on the last page. If this amount is entered by using 
|\balancecolumnsize [=] <dimen>| command somewhere on the page {\bf
preceding} the last page, the next time the file is processed, \intex\ will
use |<dimen>| as the vertical size of the columns on the last
page. It may take a few trials to determine the correct value for the
|<dimen>|. In this instance 
\begintt
\balancecolumnsize=165pt
\endtt
was inserted here.
\balancecolumnsize=165pt

\shead{mulcolcomform}{Command Forms}
\beginblockmode
\ext\@|\balancecolumnsize 
        [=] <column length> |
\nbr
This command, when inserted somewhere  on the second to last page or before
the 
multicolumnformat starts if it takes less than a page, will produce columns
with vertical size |<column length>|.


\mbr
\ext\@|\beginmulticolumnformat|
\nbr
This begins multicolumn format and a group.


\mbr
\ext\@|\endmulticolumnformat|
\nbr
This ends multicolumn format and terminates the group. 

\mbr
\ext\@|\ejectcolumn|
\nbr
This ends and vertical fills a {\bf column}. When not in multicolumn format,
it will act as an |\ejectpage|.


\mbr
\ext\@|\ejectpage|
\nbr
This command ends and fills the current column. It  then terminates the
entire page, leaving blank columns as necessary.

\mbr
\ext\@|\firstcolumnoffset 
      [=] <dimen>|
\nbr
This command reduces the horizontal size by
amount of 2|<dimen>|. The reduction will show up 
evenly on both side of the page. The \intex\ default is 0pt.

\mbr
\ext\@|\intercolumnsep 
      [=] {<token list>}|
\nbr
The |<token list>| is  inserted between every
column. The vertical lines  in this chapter are a result of the
|\vrule| when the multicolumn format was first called. \intex\ defaults to a
pure spacing of 2em. 


\mbr
\ext\@|\numberofcolumns 
      [=] <integer>|
\nbr
This sets the number of columns and computes the horizontal size of the
column. The various offsets should be set before this is called. This command
should be called before any |<text>| is submitted to the multicolumn page.
\endblockmode
\endmulticolumnformat
\ejectpage
\done