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