1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> 2 <html> 3 <head> 4 <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> 5 <title>Mom -- Document processing, creating a cover page</title> 6 </head> 7 <body bgcolor="#dfdfdf"> 8 9 <!====================================================================> 10 11 <a href="refer.html#TOP">Next</a> 12 <a href="rectoverso.html#TOP">Prev</a> 13 <a href="toc.html">Back to Table of Contents</a> 14 <p> 15 16 <a name="TOP"> 17 <h1 align="center"><u>CREATING A COVER PAGE</u></h1> 18 </a> 19 20 <ul> 21 <li><a href="#COVER_INTRO">Introduction to cover pages</a> 22 <ul> 23 <li><a href="#PLEASE">Important note -- please read</a> 24 <li><a href="#DESC">Description of what mom does on cover pages</a> 25 <li><a href="#PAGINATION">A note on headers/footers and pagination</a> 26 <li><a href="#DESIGN">What to do if you want to design your 27 own cover pages</a> 28 </ul> 29 <li><a href="#COVER">The cover and document cover macros</a> 30 <ul> 31 <li><a href="#COVER">COVER/DOC_COVER</a> 32 <ul> 33 <li><a href="#REQUIRED">The required argument</a> 34 <li><a href="#CHAPTER">How the CHAPTER argument and friends work</a> 35 <li><a href="#OPTIONAL">The optional arguments</a> 36 <li><a href="#DOCTYPE">What the DOCTYPE argument means</a> 37 </ul> 38 </ul> 39 <li><a href="#ON_OFF">Enabling/disabling automatic generation of cover pages</a> 40 <li><a href="#COVER_CONTROL">Control macros--changing the 41 defaults for covers and document covers</a> 42 </ul> 43 44 <a name="COVER_INTRO"><h2><u>Introduction to cover pages</u></h2></a> 45 <p> 46 As of version 1.19 of <strong>mom</strong>, you can now have cover 47 pages generated automatically. 48 <p> 49 Though identical in treatment, <strong>mom</strong> provides two 50 kinds of cover pages: section cover pages (which I shall refer to 51 simply as "cover pages") and document cover pages 52 ("doc covers"). 53 <p> 54 A document cover page 55 (<a href="#DOC_COVER">doc cover</a>) 56 is what you'd most likely use at the start of a <a 57 href="rectoverso.html#COLLATE_INTRO">collated</a> document, where 58 you might want the name of the complete document, the author(s) and 59 the copyright line to appear. Another place you might use a doc 60 cover is for a novel, where you want the title of the novel, not 61 the chapter title or chapter number, as the first cover page. 62 <p> 63 A section 64 <a href="#COVER">cover</a> 65 page is what you'd use for cover pages that separate sections of a 66 collated document. A section cover page (but not a doc cover page) 67 in a collated document could, for example, simply read "PART 68 I". 69 <p> 70 In non-collated documents (say, an essay) you can use either a 71 section cover or a doc cover to generate a cover sheet. 72 <p> 73 In addition, nothing prevents you from generating both a doc cover 74 page and a section cover page for every document in a collated 75 document. Or you can selectively disable the automatic generation 76 of either doc covers or section covers in a collated document, 77 on-the-fly. 78 <p> 79 <a name="PLEASE"><strong>Important note:</strong></a> 80 automatic generation of cover or doc cover pages after the first 81 one(s) only takes place if you are working with collated documents. 82 <strong>Mom</strong> provides no mechanism for saying "print 83 a section cover here even though I'm still working on the same 84 (non-collated) document." 85 86 <a name="DESC"><h3><u>Description of what mom does on cover pages</u></h3></a> 87 88 By default, <strong>mom</strong> typesets cover (and doc cover) 89 pages identically to 90 <a href="definitions.html#TERMS_DOCHEADER">docheaders</a> 91 (see 92 <a href="docprocessing.html#DOCHEADER_CONTROL">How to change the look of docheaders</a> 93 for a description of what a docheader looks like). The only 94 differences are 95 <br> 96 <ul> 97 <li>the position on the page where the information is output 98 <li>the (optional) addition of copyright and miscellaneous 99 information 100 <li>there's no running text underneath 101 </ul> 102 103 <p> 104 You tell <strong>mom</strong> what you want to appear on the cover 105 pages through the arguments you pass to 106 <a href="#COVER">COVER</a> 107 and/or 108 <a href="#COVER">DOC_COVER</a>. 109 Provided you have already given <strong>mom</strong> the 110 appropriate references macro (e.g. 111 <a href="docprocessing.html#TITLE">TITLE</a> 112 or 113 <a href="docprocessing.html#AUTHOR">AUTHOR</a>), 114 she will output cover (and doc cover) pages identically to how she 115 would output docheaders containing the same information. 116 <p> 117 By default, <strong>mom</strong> starts cover (and doc cover) pages 118 one-third of the way down the page. This can be changed through 119 the use of the control macros 120 <a href="#COVER_CONTROL_INDEX">COVER_ADVANCE/DOC_COVER_ADVANCE</a>. 121 <p> 122 If you request copyright information (and have already given 123 <strong>mom</strong> the reference macro, 124 <a href="docprocessing.html#COPYRIGHT">COPYRIGHT</a>), 125 she sets it, by default, in a smaller 126 <a href="definitions.html#TERMS_PS">point size</a> 127 in the bottom right hand corner of the cover (or doc cover) page. 128 The default point size and the position can be controlled 129 with 130 <a href="#COVER_CONTROL_INDEX">COVER_COPYRIGHT_SIZE/DOC_COVER_COPYRIGHT_SIZE</a> 131 and 132 <a href="#COVER_CONTROL_INDEX">COVER_COPYRIGHT_QUAD/DOC_COVER_COPYRIGHT_QUAD</a>. 133 <p> 134 Similarly, if you request miscellaneous information (and have already given 135 <strong>mom</strong> the reference macro, 136 <a href="docprocessing.html#MISC">MISC</a>), 137 she sets it, by default, in a smaller point size in the bottom left 138 hand corner of the cover (or doc cover) page. The default point 139 size is dependent on 140 <strong>COVER_COPYRIGHT_SIZE/DOC_COVER_COPYRIGHT_SIZE</strong>, 141 but the position can be controlled with 142 <a href="#COVER_CONTROL_INDEX">COVER_MISC_QUAD/DOC_COVER_MISC_QUAD</a>. 143 144 <a name="PAGINATION"></a> 145 <p> 146 <strong>NOTE: mom</strong> does not set any 147 <a href="definitions.html#TERMS_HEADER">headers</a> 148 or 149 <a href="definitions.html#TERMS_FOOTER">footers</a> 150 on cover pages. Neither does she set any page numbers. From the 151 point of pagination, cover (and doc cover) pages are considered 152 "null" pages; if you wish them to be included in the 153 pagination scheme (even though no page numbers appear), you must 154 set the page number of each first page following a 155 <a href="rectoverso.html#COLLATE">COLLATE</a> 156 manually with 157 <a href="headfootpage.html#PAGENUMBER">PAGENUMBER</a>. 158 159 <a name="DESIGN"></a> 160 <p> 161 Finally, if you want to design your own cover page(s), you can 162 always typeset them (using the 163 <a href="typesetting.html#MACROS_TYPESETTING">typesetting macros</a>), 164 invoke 165 <a href="typesetting.html#NEWPAGE">NEWPAGE</a>, 166 set up your document <em>in full</em> (see 167 <a href="docprocessing.html#DOCPROCESSING_TUT">Tutorial -- Setting up a mom document</a>), 168 and lastly invoke 169 <a href="docprocessing.html#START">START</a>. 170 The cover page (and any typesetting commands on it) will have no 171 effect on <strong>mom</strong>'s processing of the document itself, 172 the first page of which, moreover, will be numbered "1" 173 unless you instruct her otherwise with 174 <a href="headfootpage.html#PAGENUMBER">PAGENUMBER</a>. 175 <p> 176 177 <!---COVER---> 178 179 <hr width="66%" align="left"> 180 <p> 181 <a name="COVER"></a> 182 Macro: <strong>COVER</strong> 183 <br> 184 Macro: <strong>DOC_COVER</strong> 185 <br> 186 Required argument: <nobr>TITLE | DOCTITLE | COVERTITLE | CHAPTER | CHAPTER_TITLE | CHAPTER+TITLE</nobr> 187 <br> 188 Optional arguments: <nobr>[ SUBTITLE AUTHOR DOCTYPE COPYRIGHT MISC ]</nobr> 189 <p> 190 <em>*Note: these macros should be placed in the 191 "style-sheet" section of your document setup (see the 192 <a href="docprocessing.html#DOCPROCESSING_TUT">Tutorial -- Setting up a mom document</a>), 193 i.e. after PRINTSTYLE (and/or DOCTYPE and/or COPYSTYLE), but 194 before START.</em> 195 196 </a> 197 <p> 198 <strong>COVER</strong> and <strong>DOC_COVER</strong> behave 199 identically. The reason <strong>mom</strong> provides two macros 200 for automatic cover page generation is so that you can have two 201 different kinds of covers with different information on each. 202 <p> 203 Imagine, for a moment, you've written a document comprised of three 204 sections. When you 205 <a href="rectoverso.html#COLLATE">COLLATE</a> 206 the document for output, you could use <strong>DOC_COVER</strong> 207 to generate a cover page that contained the name of the entire 208 document, your (the author's) name, and perhaps the copyright date. 209 Subsequently, you could use <strong>COVER</strong>, after each 210 <strong>COLLATE</strong> but before each 211 <a href="docprocessing.html#START">START</a>, 212 to generate a cover page (or cover "sheet", if you prefer) 213 containing just the name of the section. 214 <br> 215 216 <a name="REQUIRED"><h3><u>The required argument</u></h3></a> 217 218 Both <strong>COVER</strong> and <strong>DOC_COVER</strong>, whenever 219 invoked, require a first argument, as listed above. This first argument 220 will become the first bit of information <strong>mom</strong> 221 prints on the cover (or doc cover) page (i.e. it will be the 222 "title"). 223 <p> 224 In order for the information to appear, you must, of course, first 225 have given <strong>mom</strong> the appropriate 226 <a href="docprocessing.html#REFERENCE_MACROS">reference macro</a>. 227 A list of arguments with their equivalent reference macros follows. 228 <br> 229 230 <dl> 231 <dt>TITLE 232 <dd>-means the argument you gave to 233 <a href="docprocessing.html#TITLE">TITLE</a> 234 <dt>DOCTITLE 235 <dd>-means the argument you gave to 236 <a href="docprocessing.html#DOCTITLE">DOCTITLE</a> 237 <dt>COVERTITLE 238 <dd>-means the argument you gave to 239 <a href="docprocessing.html#COVERTITLE">COVERTITLE</a> 240 or 241 <a href="docprocessing.html#DOC_COVERTITLE">DOC_COVERTITLE</a> 242 <dt>CHAPTER, CHAPTER_TITLE, CHAPTER+TITLE 243 <dd>-see below (How the CHAPTER argument and friends work) 244 </dl> 245 <br> 246 247 <a name="CHAPTER"><h3><u>How the CHAPTER argument and friends work</u></h3></a> 248 249 <kbd>CHAPTER</kbd>, by itself, will print the <a 250 href="docprocessing.html#CHAPTER_STRING">CHAPTER_STRING</a> as well 251 as the chapter number that you gave to 252 <a href="docprocessing.html#CHAPTER">CHAPTER</a>. 253 For example, assuming a vanilla setup for your chapter 254 <p> 255 <pre> 256 \# Reference macros 257 .CHAPTER 1 258 .CHAPTER_TITLE "The Bonny Blue Yonder" 259 <other stuff> 260 .COVER CHAPTER \" (or .DOC_COVER CHAPTER) 261 .START 262 </pre> 263 264 will simply print 265 <p> 266 <pre> 267 Chapter 1 268 </pre> 269 270 <kbd>CHAPTER_TITLE</kbd> will print the chapter title you 271 gave to 272 <a href="docprocessing.html#CHAPTER_TITLE">CHAPTER_TITLE</a>. 273 For example, assuming a vanilla setup for your chapter 274 <p> 275 <pre> 276 \# Reference macros 277 .CHAPTER 1 278 .CHAPTER_TITLE "The Bonny Blue Yonder" 279 <other stuff> 280 .COVER CHAPTER_TITLE \" (or .DOC_COVER CHAPTER_TITLE) 281 .START 282 </pre> 283 284 will simply print 285 <p> 286 <pre> 287 The Bonny Blue Yonder 288 </pre> 289 290 <p> 291 <kbd>CHAPTER+TITLE</kbd> will print <strong>both</strong> the 292 chapter string + number AND the chapter title. For example, 293 assuming a vanilla setup for your chapter 294 <p> 295 <pre> 296 \# Reference macros 297 .CHAPTER 1 298 .CHAPTER_TITLE "The Bonny Blue Yonder" 299 <other stuff> 300 .COVER CHAPTER+TITLE \" (or .DOC_COVER CHAPTER+TITLE) 301 .START 302 </pre> 303 304 will print 305 <p> 306 <pre> 307 Chapter 1 308 The Bonny Blue Yonder 309 </pre> 310 311 <a name="OPTIONAL"><h3><u>The optional arguments</u></h3></a> 312 313 The remainder of the arguments to <strong>COVER</strong> and 314 <strong>DOC_COVER</strong> are optional. They refer specifically 315 to the information you gave the 316 <a href="docprocessing.html#REFERENCE_MACROS">reference macros</a> 317 bearing the same name as the arguments. 318 <p> 319 You may enter as many or as few as you would like to see on your 320 cover (or doc cover) page. The only hitch is--PAY ATTENTION, 321 CLASS!--they must be entered in the order given above. For 322 example, if you want <kbd>TITLE</kbd>, <kbd>AUTHOR</kbd>, 323 <kbd>COPYRIGHT</kbd> and <kbd>MISC</kbd> 324 <p> 325 <pre> 326 .COVER TITLE AUTHOR COPYRIGHT MISC 327 </pre> 328 329 is correct, while 330 <p> 331 <pre> 332 .COVER TITLE AUTHOR MISC COPYRIGHT 333 </pre> 334 335 is not. 336 <br> 337 338 <a name="DOCTYPE"><h3><u>What the DOCTYPE argument means</u></h3></a> 339 340 When you pass <strong>COVER</strong> or <strong>DOC_COVER</strong> 341 the argument, <kbd>DOCTYPE</kbd>, it refers to the argument you 342 gave to 343 <a href="docprocessing.html#DOCTYPE">DOCTYPE</a> <kbd>NAMED</kbd>. 344 For example, if, in your 345 <a href="docprocessing.html#DOCSTYLE_MACROS">docstyle macros</a> 346 you gave a 347 <p> 348 <pre> 349 .DOCTYPE NAMED "Abstract" 350 </pre> 351 352 the argument, <kbd>DOCTYPE</kbd>, in the <strong>COVER</strong> or 353 <strong>DOC_COVER</strong> macros, would mean that you wanted the 354 word, Abstract, to appear on the cover (or doc cover), just as it 355 would in the 356 <a href="docprocessing.html#DOCHEADER">docheader</a>. 357 <br> 358 359 <!---ENABLING/DISABLING---> 360 361 <hr width="66%" align="left"> 362 <p> 363 <a name="ON_OFF"></a> 364 <nobr>Macro: <strong>COVERS</strong> <toggle></nobr> 365 <br> 366 <nobr>Macro: <strong>DOC_COVERS</strong> <toggle></nobr> 367 </a> 368 <p> 369 By default, if you give <strong>mom</strong> a 370 <a href="#COVER">COVER</a> 371 or 372 <a href="#DOC_COVER">DOC_COVER</a> 373 macro, she will print it. In a document that contains sections, 374 articles or chapters formerly treated as "one-off's" but 375 now being 376 <a href="rectoverso.html#COLLATE_INTRO">collated</a>, 377 such behaviour may not be desirable. 378 <p> 379 <strong>Mom</strong> lets you selectively enable or disable the 380 generation of covers and/or doc covers with the toggle macros 381 <strong>COVERS</strong> and <strong>DOC_COVERS</strong>. Because 382 they're toggle macros, simply invoking them by themselves enables 383 automatic cover (or doc cover) generation, while invoking them 384 with any argument at all (<strong>OFF, QUIT, X</strong>, etc) 385 disables cover (or doc cover) generation. 386 <p> 387 <strong>NOTE:</strong> You must place these macros prior to any 388 instance of 389 <a href="docprocessing.html#START">START</a>. Since they're 390 "on" by default, there's no need to use them if you want 391 covers. However, if you don't, especially in the kind of scenario 392 described above, the best place to put them (most likely with an 393 <strong>OFF, NO, X</strong>, etc. argument), is immediately after the 394 first invocation of <strong>START</strong>. By doing so, you ensure 395 they precede all subsequent instances of <strong>START</strong>. 396 <p> 397 398 <hr> 399 <p> 400 <a name="COVER_CONTROL"><h3><u>Control macros--changing the defaults for covers and document covers</u></h3></a> 401 The default typographic appearance of the items on a cover (or doc 402 cover) page is identical to that of the items in a 403 <a href="definitions.html#TERMS_DOCHEADER">docheader</a>. 404 (See 405 <a href="docprocessing.html#DOCHEADER_CONTROL">How to change the look of docheaders</a> 406 for a description of the defaults.) 407 <p> 408 <a href="docprocessing.html#COPYRIGHT">COPYRIGHT</a> 409 and 410 <a href="docprocessing.html#MISC">MISC</a>, 411 which do not appear in docheaders, have the following default 412 characteristics: 413 <br> 414 <ol> 415 <li>The copyright line is set in the bottom right hand corner 416 of the page, 2 417 <a href="definitions.html#TERMS_PS">point sizes</a> 418 smaller than the size of 419 <a href="definitions.html#TERMS_RUNNING">running text</a> 420 <li>The "misc" line is set in the bottom left hand 421 corner of the page, in the same family, font and point size 422 as the copyright line. 423 </ol> 424 <p> 425 With the exception of the copyright and "misc" lines, the 426 defaults for the entirety of cover (and doc cover) pages, and all 427 the elements thereon, can be changed with control macros whose 428 behaviour and arguments are identical to 429 <a href="docprocessing.html#DOCHEADER_CONTROL_INDEX">the control macros used for docheaders</a>. 430 The only difference is the name by which you invoke the control 431 macro(s). 432 <p> 433 The complete list of cover (and doc cover) page control macros 434 follows; please refer to the 435 <a href="docprocessing.html#DOCHEADER_CONTROL_INDEX">docheader control macros index</a> 436 in order to understand how to use them. 437 <p> 438 <a name="COVER_CONTROL_INDEX"><h3><u>Index of cover and doc cover control macros</u></h3></a> 439 <pre> 440 <a name="COVER_ADVANCE">.COVER_ADVANCE .DOC_COVER_ADVANCE</a> -+ 441 <a name="COVER_FAMILY">.COVER_FAMILY .DOC_COVER_FAMILY</a> | like DOCHEADER_ 442 <a name="COVER_LEAD">.COVER_LEAD .DOC_COVER_LEAD</a> -+ 443 444 .COVER_TITLE_FAMILY .DOC_COVER_TITLE_FAMILY -+ 445 .COVER_TITLE_FONT .DOC_COVER_TITLE_FONT | like 446 .COVER_TITLE_COLOR .DOC_COVER_TITLE_COLOR | TITLE_ 447 .COVER_TITLE_SIZE .DOC_COVER_TITLE_SIZE -+ 448 449 .COVER_CHAPTER_TITLE_FAMILY .DOC_COVER_CHAPTER_TITLE_FAMILY -+ 450 .COVER_CHAPTER_TITLE_FONT .DOC_COVER_CHAPTER_TITLE_FONT | like 451 .COVER_CHAPTER_TITLE_COLOR .DOC_COVER_CHAPTER_TITLE_COLOR | CHAPTER_TITLE_ 452 .COVER_CHAPTER_TITLE_SIZE .DOC_COVER_CHAPTER_TITLE_SIZE -+ 453 454 .COVER_SUBTITLE_FAMILY .DOC_COVER_SUBTITLE_FAMILY -+ 455 .COVER_SUBTITLE_FONT .DOC_COVER_SUBTITLE_FONT | like 456 .COVER_SUBTITLE_COLOR .DOC_COVER_SUBTITLE_COLOR | SUBTITLE_ 457 .COVER_SUBTITLE_SIZE .DOC_COVER_AUTHOR_SIZE -+ 458 459 .COVER_ATTRIBUTE_COLOR .DOC_COVER_ATTRIBUTE_COLOR - like ATTRIBUTE_COLOR 460 - the macro, .ATTRIBUTE_STRING, controls the attribution string 461 for both docheaders and cover pages; cover pages have no 462 separate ATTRIBUTE_STRING macro 463 464 .COVER_AUTHOR_FAMILY .DOC_COVER_AUTHOR_FAMILY -+ 465 .COVER_AUTHOR_FONT .DOC_COVER_AUTHOR_FONT | like 466 .COVER_AUTHOR_COLOR .DOC_COVER_AUTHOR_COLOR | AUTHOR_ 467 .COVER_AUTHOR_SIZE .DOC_COVER_AUTHOR_SIZE -+ 468 469 .COVER_DOCTYPE_FAMILY .DOC_COVER_DOCTYPE_FAMILY -+ 470 .COVER_DOCTYPE_FONT .DOC_COVER_DOCTYPE_FONT | like 471 .COVER_DOCTYPE_COLOR .DOC_COVER_DOCTYPE_COLOR | DOCTYPE_ 472 .COVER_DOCTYPE_SIZE .DOC_COVER_DOCTYPE_SIZE -+ 473 474 .COVER_COPYRIGHT_FAMILY .DOC_COVER_COPYRIGHT_FAMILY -+ 475 .COVER_COPYRIGHT_FONT .DOC_COVER_COPYRIGHT_FONT | like any 476 .COVER_COPYRIGHT_COLOR .DOC_COVER_COPYRIGHT_COLOR | of the above 477 .COVER_COPYRIGHT_SIZE .DOC_COVER_COPYRIGHT_SIZE -+ 478 .COVER_COPYRIGHT_QUAD .DOC_COVER_COPYRIGHT_QUAD 479 - the copyright quad can be either L (left) or R (right); default is left 480 481 .COVER_MISC_COLOR .DOC_COVER_MISC_COLOR - like any of the above _COLOR 482 .COVER_MISC_QUAD .DOC_COVER_MISC_QUAD 483 - the misc quad can be either L (left) or R (right); default is right 484 </pre> 485 486 <strong>Note: COVER_MISC</strong> and 487 <strong>DOC_COVER_MISC</strong> have only two control macros, 488 <strong>_COLOR</strong> and <strong>_QUAD</strong>. The 489 family, font and size of the <kbd>MISC</kbd> argument to 490 <strong>COVER</strong> or <strong>DOC_COVER</strong> are always the 491 same as for <kbd>COPYRIGHT</kbd>. Should you wish the family, font 492 or size to be different from <kbd>COPYRIGHT</kbd>, I suggest setting 493 the type specs for <kbd>COPYRIGHT</kbd> to the ones you want for 494 <kbd>MISC</kbd>, then altering them for <kbd>COPYRIGHT</kbd> using 495 <a href="inlines.html#INDEX_INLINES">inline escapes</a> 496 in the 497 <a href="definitions.html#TERMS_STRINGARGUMENT">string argument</a> 498 you pass to the macro, 499 <a href="docprocessing.html#COPYRIGHT">COPYRIGHT</a>. (Of course, 500 you could always do the reverse, but if you pass several arguments 501 to 502 <a href="docprocessing.html#MISC">MISC</a>, 503 it's more likely you want to get <strong>MISC</strong> right first.) 504 505 <p> 506 <hr> 507 <a href="refer.html#TOP">Next</a> 508 <a href="rectoverso.html#TOP">Prev</a> 509 <a href="#TOP">Top</a> 510 <a href="toc.html">Back to Table of Contents</a> 511 </body> 512 </html> 513