1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2 Final//EN">
4 <meta http-equiv=
"content-type" content=
"text/html;charset=iso-8859-1">
5 <title>Mom -- Document Processing, Recto/verso printing
</title>
7 <body bgcolor=
"#dfdfdf">
9 <!====================================================================
>
11 <a href=
"cover.html#TOP">Next
</a>
12 <a href=
"headfootpage.html#TOP">Prev
</a>
13 <a href=
"toc.html">Back to Table of Contents
</a>
17 <a name=
"INDEX_RECTOVERSO"></a>
19 <h1 align=
"center"><u>RECTO/VERSO PRINTING and COLLATING
</u></h1>
23 <li><a href=
"#RECTOVERSO_INTRO">Introduction to recto/verso
</a>
25 <li><a href=
"#RECTOVERSO_LIST">Macro list
</a>
27 <li><a href=
"#COLLATE_INTRO">Introduction to collating
</a>
29 <li><a href=
"#COLLATE">The COLLATE macro
</a>
33 <a name=
"RECTOVERSO_INTRO">
34 <h2><u>Introduction to recto/verso
</u></h2>
37 Recto/verso printing allows you to set up a
<strong>mom
</strong>
38 document in such a way that it can be printed on both sides of a
39 printer sheet and subsequently bound.
41 With recto/verso,
<strong>mom
</strong> automatically takes control
42 of the following aspects of alternating page layout:
45 <li>switching left and right margins (if they're not equal)
46 <li>switching the left and right parts of the default
3-part
47 <a href=
"definitions.html#TERMS_HEADER">headers
</a>
49 <a href=
"definitions.html#TERMS_FOOTER">footers
</a>
51 <a href=
"headfootpage.html#DESCRIPTION_GENERAL">General description of headers
</a>)
53 <a href=
"headfootpage.html#HDRFTR_RECTOVERSO">HEADER_RECTO
</a>
55 <a href=
"headfootpage.html#HDRFTR_RECTOVERSO">HEADER_VERSO
</a>
56 if user-defined, single string recto/verso headers
57 or footers are used in place of the default
3-part
59 <li>switching the page number position (if page numbers are not centred)
62 It is beyond the scope of this documentation to cover the different
63 ways in which you can make your printer print on both sides of a sheet.
64 A simple but effective method for those of us with
"dumb
"
65 printers is to open the document (after it's been processed into
66 PostScript by groff -- see
67 <a href=
"using.html#USING_INVOKING">How to invoke groff with mom
</a>)
68 in
<strong>gv
</strong> (ghostview),
69 click the
"odd pages
" icon, then click
"Print
70 Marked
". After printing is complete, rearrange the sheets
71 appropriately, put them back in your printer, and have
72 <strong>gv
</strong> print the
"even pages
". If you prefer to
73 work from the command line, check out the man pages for
74 <strong>pstops
</strong> and
<strong>psbook
</strong>. There are other
75 programs out there as well to help with two-sided printing.
78 <a name=
"RECTOVERSO_LIST">
79 <h3><u>Recto/verso macros list
</u></h3>
83 <li><a href=
"#RECTO_VERSO">RECTO_VERSO
</a>
84 <li><a href=
"#SWITCH_HDRFTR">SWITCH_HEADERS (also FOOTERS)
</a>
91 <a name=
"RECTO_VERSO">
92 <h3><u>Recto/verso printing
</u></h3>
94 Macro:
<strong>RECTO_VERSO
</strong>
97 If you want
<strong>mom
</strong> to set up alternating pages for
98 recto/verso printing, simply invoke
<strong>RECTO_VERSO
</strong>
101 <strong>NOTE:
</strong>
103 Recto/verso always switches the left and right parts of
104 <a href=
"definitions.html#TERMS_HEADER">headers
</a>
106 <a href=
"definitions.html#TERMS_FOOTER">footers
</a>
107 on odd/even pages. However, it only switches the left and right
108 margins if the margins aren't equal. Consequently, it is your
109 responsibility to set the appropriate differing left and right
111 <a href=
"typesetting.html#L_MARGIN">L_MARGIN
</a>
113 <a href=
"typesetting.html#R_MARGIN">R_MARGIN
</a>
115 <a href=
"docprocessing.html#START">START
</a>)
117 <a href=
"docprocessing.html#DOC_LEFT_MARGIN">DOC_LEFT_MARGIN
</a>
119 <a href=
"docprocessing.html#DOC_RIGHT_MARGIN">DOC_RIGHT_MARGIN
</a>
120 (before or after
<strong>START
</strong>).
122 Equally, recto/verso only switches the page number position if page
123 numbers aren't centred, which means you have to set the page
125 <a href=
"headfootpage.html#PAGENUM_POS">PAGENUM_POS
</a>
126 (before or after
<strong>START
</strong>).
129 <!---SWITCH_HDRFTR--->
131 <hr width=
"66%" align=
"left">
132 <a name=
"SWITCH_HDRFTR">
133 <h3><u>Switch header left part/right part
</u></h3>
135 Macro:
<strong>SWITCH_HEADERS
</strong>
138 <strong>SWITCH_HEADERS
</strong> switches the location of the
139 header left string (by default, the author) and the header right
140 string (by default, the document title). If you don't like
141 <strong>mom
</strong>'s default placement of author and title, use
142 <strong>SWITCH_HEADERS
</strong> to reverse it.
144 <strong>SWITCH_HEADERS
</strong> can also be useful in conjunction
146 <a href=
"#RECTO_VERSO">RECTO_VERSO
</a>.
147 The assumption of
<strong>RECTO_VERSO
</strong> is that the first
148 page of a document (recto/odd) represents the norm for header-left
149 and header-right, meaning that the second (and all subsequent even)
150 page(s) of the document exchange header-left and header-right.
152 If
<strong>mom
</strong>'s behaviour in this matter is not what
153 you want, simply invoke
<strong>SWITCH_HEADERS
</strong> on the
154 first page of your recto/verso document to reverse her default
155 treatment of header parts. The remainder of your document (with
156 respect to headers) will come out as you want.
158 <strong>NOTE:
</strong> Replace
<strong>_HEADERS
</strong>, above,
159 with
<strong>_FOOTERS
</strong> if your document uses footers.
163 <!=====================================================================
>
165 <a name=
"COLLATE_INTRO">
166 <h2><u>Introduction to collating
</u></h2>
169 The macro
<strong>COLLATE
</strong> lets you join documents together.
170 Primarily, it's a convenience for printing long documents that
171 comprise several chapters, although it could be used for any
172 document type (except
<strong>LETTER
</strong>).
174 Personally, I prefer to keep chapters in separate files and print
175 them out as needed. However, that means keeping track of the correct
176 starting page number for each chapter, a problem circumvented by the
177 use of
<strong>COLLATE
</strong>.
179 When collating chapters, you need only put
<code>.COLLATE
</code>
180 at the end of a chapter, follow it with any
181 <a href=
"docprocessing.html#REFERENCE_MACROS">reference macros
</a>
182 needed for the new chapter, e.g.
183 <a href=
"docprocessing.html#CHAPTER">CHAPTER
</a>
185 <a href=
"docprocessing.html#CHAPTER_STRING">CHAPTER_STRING
</a>
187 <a href=
"#CHAPTER_NOTE">Special Note on CHAPTER
</a>)
188 make any pertinent style changes to the document (unlikely, but
189 possible), and re-invoke the
190 <a href=
"docprocessing.html#START">START
</a>
191 macro. Your new chapter will begin on a fresh page and behave
194 <strong>COLLATE
</strong> assumes you are collating documents/files
195 with similar type-style parameters hence there's no need for
196 <strong>PRINTSTYLE
</strong> to appear after
<strong>COLLATE
</strong>,
197 although if you're collating documents that were created as separate
198 files, chances are the
<strong>PRINTSTYLE
</strong>'s already there.
200 <a name=
"CAUTION"></a>
201 <strong><u>Two words of caution:
</u></strong>
203 <li>Do not collate documents of differing
204 <strong>PRINTSTYLES
</strong> (i.e. don't try to
205 collate a TYPESET document and TYPEWRITE document).
206 <li>Use
<strong>DOC_FAMILY
</strong> instead of
207 <strong>FAMILY
</strong> if, for some reason, you want
208 to change the family of all the document elements after
209 <strong>COLLATE
</strong>.
<strong>FAMILY
</strong>, by
210 itself, will change the family of paragraph text only.
216 <hr width=
"66%" align=
"left">
218 <h3><u>Collate document files
</u></h3>
221 Macro:
<strong>COLLATE
</strong>
224 The most basic (and most likely) collating situation looks like
233 A slightly more complex version of the same thing, for chapters
234 that require their own titles, looks like this:
238 .CHAPTER_TITLE
"Geek Fatigue: Symptoms and Causes"
242 <strong>NOTE:
</strong> See the
243 <a href=
"#CAUTION">two words of caution
</a>,
248 <a href=
"cover.html#TOP">Next
</a>
249 <a href=
"headfootpage.html#TOP">Prev
</a>
250 <a href=
"#TOP">Top
</a>
251 <a href=
"toc.html">Back to Table of Contents
</a>