summaryrefslogtreecommitdiff
path: root/macros/inrstex/inrsdoc/thpagsiz.tex
blob: 460fee3027f69b7d760c7318a33934671cece1e8 (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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
%-*-tex-*-
\ifundefined{writestatus} \input status \relax \fi %
\chcode{pagsiz}

\def\cqu{\cquote{It is when I am struggling to be brief that
I become unintelligible.}{Ars Poetica, Horace (65-8~BC)}
}

\chapterhead{pagsiz}{PAGES:\cr SIZES\cr MAGNIFICATION}
\intex\ has a number of page size parameters that are set to make the output
possible on different devices, and to facilitate special formats. 
All page size
parameter changes are made in assignment fashion with an optional |[=]| sign.
All page size changes must be made inside a 
\@|\documentstyle| list in order to insure that they take effect.
Figure~\ref{pagdiag} diagrams the various dimensions.

\input pagdiag 
\beginpageinsert
\figureform{pagdiag}{Diagram of the various page dimensions.\captionbody{
     The actual printing area is determined by the computed dimensions
{\tt \1hinnerpagesize} and {\tt \1vinnerpagesize}. The {\tt outer} dimensions
are normally specified. The {\tt \1firstcolumnoffset} is normally
0pt.}}{\centergraph{ \pagdiag sc:.8 }}
\endpageinsert

\shead{pagecomlist}{Command List}
\beginthreecolumn
\hfuzz=20pt
\ext\@|\documentstyle|
\ext\@|\houterpagesize|
\ext\@|\hpapersize|
\ext\@|\leftmarginsize|
\ext\@|\leftmarginskip|
\pri|\mag|
\pla|\magstep|
\ext\@|\topmarginsize|
\ext\@|\topmarginskip|
\ext\@|\vouterpagesize|
\ext\@|\vpapersize|
\endthreecolumn

\shead{pagesandmargins}{Page Size Setting and Margins}
These commands define and set the various page sizes. Only the |outer| and
|header|, and |paper| commands should be changed. 
\intex\ also has some |inner| and |column| sizes. These are computed and
should not be modified -- although they are accessible. See
Section~{\ref{inner}}, page \pref{inner} for details. 
{\bf All dimension changes must be made inside a |\documentstyle| command or
they  will not necessarily take effect.}

This  section details the various parameters used to
name and describe the parts of the printed page that can be varied.
The general convention is that |\h<name>| names a horizontal dimension
and |\v<name>| names the corresponding vertical dimension. The various 
|<name>|s are
\bshortcomlist
|outerpagesize|&{this is the extent of the area allowed
                                    for printing. It includes all headers,
                                    footers, footnotes \dots\
                                    \@|\vouterpagesize| and \@|\houterpagesize|
                                    are the vertical and horizontal 
                                    forms}\cr
|papersize|&{this is the ``physical'' size of the paper and includes all 
                                   the |outerpagesizes| plus 
                                   margins. The actual 
                                   vertical extent of the paper 
                                   is  \@|\vpapersize| and
                                   the actual width of the 
                                    paper is is the size of \@|\hpapersize|.
The default values are correct for 
11in by 8.5in paper but must be increased for 
14in by 8.5in (Legal size) paper.}\cr
\@|\vsize|&the actual verticalsize of the present page. This is set at the time when the
first material is submitted for putting on the page. In \intex\ it is usually
the |\vcolumnsize|. It should be changed only with knowledge.\cr
\@|\hsize|&the actual horizontal size of the present {\bf box} in which \tex\ is
working. This may be a page or some box that is to be eventually placed on
the page. 
This is set at the time when 
first material is submitted for putting on the page. In \intex\ |\hsize|  is
usually 
the |\hcolumnsize|. \cr

\eshortcomlist

Assignments are made in the normal way. The general form is

\@|\<dimen name> [=] <dimen>|
\noindent
where |<dimen>| is a dimension. Thus the papersize, margins, 
and outer page sizes are set in \intex\ by 
\begintt
\documentstyle{\vpapersize = 11in
               \hpapersize = 8.5in
               \vouterpagesize=9in 
               \houterpagesize=6.5in
               \leftmarginsize=1.25in
               \topmarginsize=1in}
\endtt
These values are actually set for the paper style in {\tt papersty.tex}. 

\shead{magnification}{Magnification}
\tex\ is able to magnify an entire document through its
|\magnification| parameter. The form is
\beginblockmode
\mbr
\pri\@|\mag [=] <1000 times scale factor>|
\nbr
The document is magnified by the |<scale factor>|, times any  |texprint|
magnification. It can appear only once and should appear at the beginning of
the document. {\bf It should be used with extreme caution. The results may 
be too big for the output device.} The {\it plain} form |\magnification| has
been defined to be the same as |\mag|. The reason is that |\magnification| in
{\it plain} also sets page sizes which is inappropriate here. \TeX Graph will
scale correctly when using |\mag|. 

\mbr
\pri\@|\magstep<integer>|
\nbr
This is a valid magnification scaling for the |\magnification| command. The
actual magnification is $1.2^{\langle{\rm integer}\rangle}$. 
Thus |<integer>=3| implies a
magnification of 1.728.
\endblockmode

In fact there are two points at which
magnification can occur. The first is in the \tex\ document and the second is
when it is printed. All that is important is the final magnification. A
magnified document may be printed only if all the fonts are available at the
magnifications requested. In general, magnification should be controlled by 
\intex\ so that \TeX Graph will operate correctly. 

\shead{inner}{Internal and Computed Sizes}
\intex\ is actually in multicolumn mode at all times. The default though is
just one column. In order to live in this world \intex\ understands |inner|
and |column| sizes. The |column| sizes are the actual sizes that are used to
for the text. The |inner| horizontal size is the sum of the column widths and
the intercolumn spacing. To this is added a \@|\leftcolumnoffset| (twice) to
obtain the |\houterpagesize|. Normally the |\leftcolumnoffset| is zero. The
effect of a left column offset is to inset the pages with respect to the
header/footer boxes whose width is the |\houterpagesize|. Thus 

\bshortcomlist
|columnsize|&this is the actual size of the column
                                    where the text is printed. Footnotes 
                                    are inside the column. In single 
                                    column format columnsize and innerpagesize
                                    are the same 
                                    (\@|\vcolumnsize|, \@|\hcolumnsize|) \cr
|innerpagesize|&this is the size of the page left after
                 the headers and footers have been removed 
                 (\@|\vinnerpagesize|, \@|\hinnerpagesize|) \cr
\eshortcomlist
\ejectpage
\done