1 <?xml version="1.0" encoding="utf-8"?>
3 This file is part of groff, the GNU roff type-setting system.
5 Copyright (C) 2004-2018 Free Software Foundation, Inc.
6 Written by Peter Schaffter (peter@schaffter.ca).
8 Permission is granted to copy, distribute and/or modify this document
9 under the terms of the GNU Free Documentation License, Version 1.3 or
10 any later version published by the Free Software Foundation; with no
11 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
14 A copy of the Free Documentation License is included as a file called
15 FDL in the main directory of the groff source package.
18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
19 <html xmlns="http://www.w3.org/1999/xhtml">
22 <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
23 <title>Mom -- Document processing, creating cover pages</title>
24 <link rel="stylesheet" type="text/css" href="stylesheet.css" />
27 <body style="background-color: #f5faff;">
29 <!-- ==================================================================== -->
31 <div id="top" class="page">
33 <!-- Navigation links -->
34 <table style="width: 100%;">
36 <td><a href="toc.html">Back to Table of Contents</a></td>
37 <td style="text-align: right;"><a href="tables-of-contents.html#top">Next: Tables of contents</a></td>
41 <h1 class="docs">Creating cover pages</h1>
43 <div style="width: 66%; margin: auto;">
44 <ul class="no-enumerator">
45 <li><a href="#cover-intro">Introduction to cover pages</a>
46 <ul style="margin-left: -.5em; list-style-type: disc;">
47 <li><a href="#important-note">Important note</a></li>
48 <li><a href="#desc">Description of cover pages</a></li>
49 <li><a href="#pagination">Headers/footers/pagination</a>
50 <ul style="margin-left: -1.25em; list-style-type: circle;">
51 <li><a href="#pagination">DOC_COVERS_COUNT_PAGES</a></li>
52 <li><a href="#pagination">COVERS_COUNT_PAGES</a></li>
55 <li><a href="#design">Designing your own cover pages</a></li>
56 <li><a href="#persistence">Persistence of data and formatting</a></li>
58 <li><a href="#index-covers">Doc-cover and cover macros</a>
59 <ul style="margin-left: -.5em; list-style-type: disc;">
60 <li><a href="#cover">DOC_COVER / COVER</a>
61 <ul style="margin-left: -1.25em; list-style-type: circle;">
62 <li><a href="#cover-args">The argument list: saying what goes on doc-cover and cover pages</a></li>
63 <li><a href="#meanings">What the arguments mean</a></li>
64 <li><a href="#chapter">How the CHAPTER argument and friends work</a></li>
66 <li><a href="#covertext">DOC_COVERTEXT / COVERTEXT</a>
67 <ul style="margin-left: -1.25em; list-style-type: circle;">
68 <li><a href="#placement">Placement</a></li>
71 <li><a href="#coverimage">DOC_COVER_IMAGE / COVER_IMAGE</a>
72 <ul style="margin-left: -1.25em; list-style-type: circle;">
73 <li><a href="#positioning">Positioning of doc-cover and cover images</a></li>
77 <li><a href="#on-off">Enabling/disabling automatic generation of cover pages</a></li>
78 <li><a href="#cover-control">Control macros for covers and doc-covers</a></li>
82 <div class="rule-medium"><hr/></div>
84 <h2 id="cover-intro" class="docs">Introduction to cover pages</h2>
87 Though identical in treatment, mom provides two kinds of cover
88 pages: document cover pages (”doc-covers”), and section
89 cover pages (which I shall refer to simply as cover pages).
93 A doc-cover is what you’d most likely use at the start of a
94 collated document, where you might want the name of the complete
95 document, the author(s) and the copyright line to appear. Another
96 place you might use a doc-cover is for a novel, where you want the
97 title of the novel, not the chapter title or chapter number, as the
102 A cover is what you’d use for pages that separate sections
103 of a collated document, ie title pages. A cover page (but not a
104 doc-cover) in a collated document could, for example, simply read:
105 ”PART 1”.
109 In non-collated documents (say, an essay) you can use either a cover
110 or doc-cover to generate the cover sheet.
114 In addition, nothing prevents you from generating both a doc-cover
115 and a cover for every document in a collated document. Or you can
116 selectively disable the automatic generation of either doc-covers or
117 covers in a collated document on-the-fly.
120 <div id="important-note" class="box-important">
122 <span class="important">Important note:</span>
123 Automatic generation of covers or doc-covers after the first one(s)
124 only takes place if you are working with collated documents. Mom
125 provides no mechanism for saying ”print a section cover
126 here even though I'm still working on the same (non-collated)
131 <h3 id="desc" class="docs">Description of cover pages</h3>
134 By default, mom typesets covers and doc-covers identically to
135 <a href="definitions.html#docheader">docheaders</a>
137 <a href="docprocessing.html#docheader-control">How to change the look of docheaders</a>
138 for a description of what a docheader looks like). The only
141 <ul style="margin-top: -.5em; margin-bottom: -.5em;">
142 <li>the position on the page where the information is output</li>
143 <li>the (optional) addition of copyright and miscellaneous information</li>
144 <li>there’s no running text underneath, although you can add text
145 to a cover or doc-cover (for example, an Abstract) with
146 <a href="#covertext">COVERTEXT</a>
151 You tell mom what you want to appear on cover pages through the
152 arguments you pass to
153 <a href="#cover">DOC_COVER</a>
155 <a href="#cover">COVER</a>.
156 Provided you have already given mom the appropriate reference macros
158 <a href="docprocessing.html#title">TITLE</a>
160 <a href="docprocessing.html#author">AUTHOR</a>),
161 she will output covers and doc-covers identically to how she
162 would output docheaders containing the same information.
166 By default, mom starts covers and doc-covers one-third of the way
167 down the page. This can be changed through the use of the control
168 macros DOC_COVER_START_POS / COVER_START_POS (or DOC_COVER_ADVANCE /
173 If you request copyright information (and have already given mom the
175 <a href="docprocessing.html#copyright">COPYRIGHT</a>)
176 she sets it, by default, in a smaller
177 <a href="definitions.html#ps">point size</a>
178 in the bottom right hand corner of the cover or doc-cover. The
179 position, as well as all of the standard typesetting parameters, can be
180 altered via control macros.
184 Similarly, if you request miscellaneous information (and have
185 already given mom the reference macro
186 <a href="docprocessing.html#misc">MISC</a>)
187 she sets it, by default, in a smaller point size in the bottom left
188 hand corner of the cover or doc-cover. As with the copyright, the
189 position and type specs can be altered via control macros.
192 <h3 id="pagination" class="docs">Headers/footers/pagination</h3>
196 <a href="definitions.html#header">headers</a>
198 <a href="definitions.html#footer">footers</a>
199 on cover pages. Neither does she set any page numbers. From
200 the point of view of pagination, covers and doc-covers are by
201 default considered ”null” pages. If you wish them to
202 be included in the pagination scheme (even though no page numbers
203 appear), you must tell mom that’s what you want by invoking
205 <span class="pre-in-pp">
206 .DOC_COVERS_COUNT_PAGES
210 <span class="pre-in-pp">
215 <h3 id="design" class="docs">Designing your own cover pages</h3>
218 Finally, if you want to design your own cover page(s), you can
219 typeset them by hand inside a
220 <a href="#covertext">COVERTEXT</a>
221 block using mom’s typesetting macros to format the text.
224 <h3 id="persistence" class="docs">Persistence of data and formatting</h3>
227 Doc-cover and cover data—that is to say, the strings passed to
228 reference macros that appear on doc-cover and cover
229 pages—does not persist after
230 <a href="docprocessing.html#start">START</a>,
231 however the formatting of the various parts (TITLE, AUTHOR,
232 COPYRIGHT, etc.) does.
235 <div class="macro-list-container">
236 <h3 id="index-covers" class="macro-list">Cover and document cover macros</h3>
237 <ul class="macro-list">
238 <li><a href="#cover">DOC_COVER and COVER</a>
239 <ul style="margin-left: -.5em; list-style-type: disc;">
240 <li><a href="#cover-args">The arguments: saying what goes on doc-cover and cover pages</a></li>
242 <li><a href="#covertext">DOC_COVERTEXT / COVERTEXT</a></li>
243 <li><a href="#coverimage">DOC_COVER_IMAGE / COVER_IMAGE</a></li>
244 <li><a href="#on-off">Enabling/disabling automatic generation of cover pages</a>
245 <ul style="margin-left: -.5em; list-style-type: disc;">
246 <li><a href="#doc-covers">DOC_COVERS</a></li>
247 <li><a href="#covers">COVERS</a></li>
249 <li><a href="#cover-control">Control macros for doc-covers and covers</a></li>
255 <div class="macro-id-overline">
256 <h3 id="cover" class="macro-id">DOC_COVER and COVER</h3>
259 <div id="doc-cover" class="box-macro-args">
260 Macro: <b>DOC_COVER</b> <kbd class="macro-args">(see argument list, below)</kbd>
263 <div class="box-macro-args" style="margin-top: 1em;">
264 Macro: <b>COVER</b> <kbd class="macro-args">(see argument list, below)</kbd>
268 DOC_COVER and COVER behave identically. The reason mom provides
269 two macros for cover page generation is so that you can have two
270 different kinds of covers with different information on each.
274 Imagine, for a moment, you’ve written a document comprised of
275 three sections. When you
276 <a href="rectoverso.html#collate">COLLATE</a>
277 the document for output, you could use DOC_COVER to generate a cover
278 page that contained the name of the entire document, your (the
279 author’s) name, and perhaps the copyright date. Subsequently,
280 you could use COVER, after each <kbd>.COLLATE</kbd> but before each
281 <kbd><a href="docprocessing.html#start">.START</a></kbd>,
282 to generate a cover page (title page, cover sheet) containing
283 just the name of the section, for example, “Part 1”.
287 The arguments to <kbd>DOC_COVER</kbd> and <kbd>COVER</kbd> tell mom
288 what you’d like on cover pages. You may give as many or as
289 few arguments as you need, in any order. A very common setup would
292 <span class="pre-in-pp">
293 .COVER TITLE AUTHOR COPYRIGHT
297 <h4 id="cover-args" class="docs" style="margin-top: -1em;">The argument list</h4>
299 <p style="margin-top: 1em">
300 The arguments to <kbd>COVER</kbd> and <kbd>DOC_COVER</kbd> tell mom
301 what you want on the cover page:
303 <span class="pre-in-pp">
304 TITLE | DOCTITLE | DOC_COVERTITLE | COVERTITLE
305 CHAPTER | CHAPTER_TITLE | CHAPTER+TITLE
309 DOC_COVERTEXT | COVERTEXT
310 DOC_COVER_IMAGE | COVER_IMAGE
313 PDF_OUTLINE_LABEL "<label>"
318 <h4 id="meanings" class="docs" style="margin-top: -1em;">What the arguments mean</h4>
321 <dt class="params">TITLE</dt>
322 <dd class="cover-args">– the string(s) you gave to
323 <a href="docprocessing.html#title">TITLE</a>
325 <dt class="params">DOCTITLE</dt>
326 <dd class="cover-args">– the string(s) you gave to
327 <a href="docprocessing.html#doc-title">DOCTITLE</a>
329 <dt class="params">DOC_COVERTITLE / COVERTITLE</dt>
330 <dd class="cover-args">– the string(s) you gave to
331 <a href="docprocessing.html#doc-covertitle">DOC_COVERTITLE</a>
333 <a href="docprocessing.html#covertitle">COVERTITLE</a>
335 <dt class="params">CHAPTER, CHAPTER_TITLE, CHAPTER+TITLE</dt>
336 <dd class="cover-args">– see below,
337 <a href="#chapter">How the CHAPTER argument and friends work</a>
339 <dt class="params">SUBTITLE</dt>
340 <dd class="cover-args">– the string(s) you gave to
341 <a href="docprocessing.html#subtitle">SUBTITLE</a>
343 <dt class="params">AUTHOR</dt>
344 <dd class="cover-args">– the string(s) you gave to
345 <a href="docprocessing.html#author">AUTHOR</a>
347 <dt class="params">DOCTYPE</dt>
348 <dd class="cover-args">– the string you gave to
349 <a href="docprocessing.html#doctype">DOCTYPE NAMED</a>
351 <dt class="params">DOC_COVERTEXT / COVERTEXT</dt>
352 <dd class="cover-args">– the block of type you entered for
353 <a href="#covertext">DOC_COVERTEXT</a>
355 <a href="#covertext">COVERTEXT</a>
357 <dt class="params">DOC_COVER_IMAGE / COVER_IMAGE</dt>
358 <dd class="cover-args">– the image file you gave to
359 <a href="#covertext">DOC_COVER_IMAGE</a>
361 <a href="#covertext">COVER_IMAGE</a>
363 <dt class="params">COPYRIGHT</dt>
364 <dd class="cover-args">– the string you gave to
365 <a href="docprocessing.html#copyright">COPYRIGHT</a>
367 <dt class="params">MISC</dt>
368 <dd class="cover-args">– the string(s) you gave to
369 <a href="docprocessing.html#misc">MISC</a>
371 <dt class="params">PDF_OUTLINE_LABEL <label></dt>
372 <dd class="cover-args">
373 <span style="display:block; margin-left: 1em">
374 By default, mom identifies doc-covers in the outline panel of PDF
375 viewers with the prepended label, “Cover:”, and covers
376 with the label “Title Page:”. If you would like
377 to change the label, give the <kbd>PDF_OUTLINE_LABEL</kbd>
378 argument to DOC_COVER or COVER along with the new label, in
379 quotation marks, as in this example:
381 <kbd> .COVER TITLE AUTHOR COPYRIGHT PDF_LABEL "Cover Sheet: "</kbd>
384 <dt class="params">BLANKPAGE</dt>
385 <dd class="cover-args">
386 <span style="display:block; margin-left: 1em">
387 If the final argument to DOC_COVER or COVER is <kbd>BLANKPAGE</kbd>,
388 mom will insert a blank page after the doc-cover or cover. This is
389 particularly useful if you intend to print your document two-sided,
390 since, in two-sided printing, there may be instances where you do
391 not want text on the reverse side of cover or title pages
393 <span style="display:block; margin-left: 1em; margin-top: .5em">
395 <a href="#pagination">DOC_COVERS_COUNT_PAGES</a>
397 <a href="#pagination">COVERS_COUNT_PAGES</a>,
398 the blank page will be taken into account in the pagination
399 scheme, though no page number appears on it. Otherwise, blank
400 pages are invisible to mom's pagination.
406 Please note that in all cases, if you have passed
407 a reference macro one of the optional arguments
408 <kbd>DOC_COVER</kbd> or <kbd>COVER</kbd> (e.g.
409 <kbd>.TITLE DOC_COVER "Title"</kbd>), mom will print the
410 appropriate string on the appropriate cover page. Thus,
412 <span class="pre-in-pp">
413 .TITLE DOC_COVER "Collected Essays"
414 .TITLE COVER "1985-2015"
415 .TITLE "Neo-liberalism: Who Did They Think They Were Fooling?"
419 will print “Collected Essays” on the doc-cover page,
420 “1985-2015” on the cover page, and, assuming the
421 docheader hasn’t been disabled, “Neo-liberalism: Who
422 Did They Think They Were Fooling?” as the title in the
429 <span class="pre-in-pp">
430 .DOC_COVERTITLE "Collected Essays"
431 .COVERTITLE "1985-2015"
432 .TITLE "Neo-liberalism: Who Did They Think They Were Fooling?"
433 .DOC_COVER DOC_COVERTITLE
436 could be used to accomplish the same thing.
439 <h5 id="chapter" class="docs" style="margin-top: 0; text-transform: none;">How the CHAPTER argument and friends work</h5>
441 <p style="margin-top: .75em">
442 <span style="display: block; margin-bottom: -1.25em; font-weight: bold;">• CHAPTER</span>
444 The <kbd>CHAPTER</kbd> argument will print the
445 <a href="docprocessing.html#chapter-string">CHAPTER_STRING</a>
446 concatenated with the chapter number you gave to
447 <a href="docprocessing.html#chapter">CHAPTER</a>.
448 For example, assuming a vanilla setup for your chapter:
450 <span class="pre-in-pp" style="color: #64614a;">
452 .CHAPTER_TITLE "The Bonny Blue Yonder"
453 <span style="color: #941614;">.COVER CHAPTER</span> \" (or <span style="color: #941614;">.DOC_COVER CHAPTER</span>)
455 will print (and only print)
457 <span class="pre-in-pp">
462 <p style="margin-top: -1em;">
463 <span style="display: block; margin-bottom: -1.25em; font-weight: bold;">• CHAPTER_TITLE</span>
465 The <kbd>CHAPTER_TITLE</kbd> argument will print the chapter title
467 <a href="docprocessing.html#chapter-title">CHAPTER_TITLE</a>.
468 For example, assuming a vanilla setup for your chapter:
470 <span class="pre-in-pp" style="color: #64614a;">
472 .CHAPTER_TITLE "The Bonny Blue Yonder"
473 <span style="color: #941614;">.COVER CHAPTER_TITLE</span> \"(or <span style="color: #941614;">.DOC_COVER CHAPTER_TITLE</span>)
475 will print (and only print)
477 <span class="pre-in-pp">
478 The Bonny Blue Yonder
482 <p style="margin-top: -1em;">
483 <span style="display: block; margin-bottom: -1.25em; font-weight: bold;">• CHAPTER+TITLE</span>
485 The <kbd>CHAPTER+TITLE</kbd> argument will print both the
486 concatenated chapter string+number and the chapter title. For
487 example, assuming a vanilla setup for your chapter:
489 <span class="pre-in-pp" style="color: #64614a;">
491 .CHAPTER_TITLE "The Bonny Blue Yonder"
492 <span style="color: #941614;">.COVER CHAPTER+TITLE</span> \"(or <span style="color: #941614;">.DOC_COVER CHAPTER+TITLE</span>)
496 <span class="pre-in-pp">
498 The Bonny Blue Yonder
502 <div class="macro-id-overline">
503 <h3 id="covertext" class="macro-id">DOC_COVERTEXT and COVERTEXT</h3>
506 <div class="box-macro-args">
507 Macro: <b>DOC_COVERTEXT</b> <kbd class="macro-args"><toggle></kbd>
509 <div class="box-macro-args" style="margin-top: 1em;">
510 Macro: <b>COVERTEXT</b> <kbd class="macro-args"><toggle></kbd>
514 • Must come after
515 <a href="#printstyle"><span class="normal">PRINTSTYLE</span></a>
519 <kbd>DOC_COVERTEXT</kbd> and <kbd>COVERTEXT</kbd> allow you to add
520 text to doc-covers and covers in addition to, or instead of, what is
521 generated by mom from the arguments you give to
522 <a href="#doccover">DOC_COVER</a>
524 <a href="#doccover">COVER</a>.
528 Invoke <kbd>.DOC_COVERTEXT</kbd> or <kbd>.COVERTEXT</kbd> on a line
529 by itself, follow it with the text and formatting you desire, and
530 terminate the text block with <kbd>.DOC_COVERTEXT OFF</kbd> or
531 <kbd>COVERTEXT OFF</kbd> (or <kbd>QUIT, END, DONE</kbd>, etc.).
535 By default, cover text is set over the full line length of the
536 document, using the style parameters of
537 <a href="definitions.html#running">running text</a>.
538 Therefore, as noted, these macros must come after PRINTSTYLE
539 and any global style changes (margins, family, size, leading,
540 etc.). Formatting within a cover text block must be done
541 “manually” with mom’s typesetting macros;
542 <a href="docelement.html#pp">PP</a>
543 is the only allowed document element tag.
546 <h4 id="placement" class="docs">Placement</h4>
549 If you do not instruct mom to put anything on doc-cover or cover
550 pages except <kbd>DOC_COVERTEXT</kbd> or <kbd>COVERTEXT</kbd>, the
551 cover text will begin at the document’s top margin. You must
553 <a href="typesetting.html#space">SP</a>
555 <a href="typesetting.html#ald">ALD</a>
556 to move it further down the page. Equally, if only
557 <kbd>COPYRIGHT</kbd> and/or <kbd>MISC</kbd> are to go on the pages,
558 cover text begins at the top margin. In all other cases, cover text
559 begins below the last element on the page (excluding COPYRIGHT or
560 MISC), separated by a blank line.
564 <kbd>DOC_COVERTEXT</kbd> and <kbd>COVERTEXT</kbd> are particularly
565 useful for putting abstracts on cover pages, as technical reports
570 Here's a simple recipe for setting an abstract:
572 <span class="pre-in-pp">
587 Assuming you have told mom to put the title and author on the
588 cover page, the abstract will appear beneath the author with a
589 14-point bold-italic title, centered, with the text of the abstract
590 medium-roman and justified, indented 6 picas from both margins.
593 <div class="macro-id-overline">
594 <h3 id="coverimage" class="macro-id">DOC_COVER_IMAGE and COVER_IMAGE</h3>
597 <div id="coverimage" class="box-macro-args">
598 Macro: <b>DOC_COVER_IMAGE</b> <kbd class="macro-args"><image> <width> <height> [ -L | -C | -R | -I <indent> <Y-pos> [ <X-pos> ] ]</kbd>
601 <div id="coverimage" class="box-macro-args" style="margin-top: 1em;">
602 Macro: <b>COVER_IMAGE</b> <kbd class="macro-args"><image> <width> <height> [ -L | -C | -R | -I <indent> <Y-pos> [ <X-pos> ] ]</kbd>
606 There are times you need a full page image on a cover, for example
607 the jacket of a book. Equally, there are times when you need a small
608 image on the cover, perhaps a company logo.
612 DOC_COVER_IMAGE and COVER_IMAGE take the same arguments
613 as PDF_IMAGE, and in the same order. Consult
614 <a href="images.html#pdf-image">PDF_IMAGE</a>
619 Two additional arguments allow you to place images using x-y
620 coordinates. Please note that if you use x-y coordinates for
621 positioning, <b>Y-pos</b> comes before <b>X-pos</b> in the order of
626 Like PDF_IMAGE, the image file must be in PDF format. Mom
627 apologizes, but PostScript images are not supported for inclusion on
629 <a href="images.html#pdf">Image conversion and file processing</a>
630 for instructions on converting various image types to PDF, and
631 <a href="images.html#bounding-box">here</a>
632 for instructions on obtaining image dimensions.
635 <h4 id="positioning" class="docs">Positioning of doc-cover and cover images</h4>
638 With no arguments other than <kbd><file name></kbd>,
639 <kbd><width></kbd>, and <kbd><height></kbd>,
640 DOC_COVER_IMAGE and COVER_IMAGE place images flush with the top
641 left corner of the printer sheet. This allows placing full-page
642 background images on covers. For example, assuming a US-letter page
645 <span class="pre-in-pp">
646 .DOC_COVER_IMAGE image.pdf 612p 792p
647 .DOC_COVER TITLE AUTHOR DOC_COVER_IMAGE
649 will fill the doc-cover page with “image.pdf” and set
650 the title and author in their usual locations.
654 For smaller images, the horizontal position is established
655 with one of the <kbd>-L</kbd>, <kbd>-C</kbd>, <kbd>-R</kbd>, or
656 <kbd>-I <indent></kbd> arguments, just like
657 <a href="images.html#pdf-image">PDF_IMAGE</a>.
658 You may instead use the <kbd>X-pos</kbd> argument, provided that it
659 is preceded by a <kbd>Y-pos</kbd> argument. The values given to
660 <kbd>-I</kbd>, <kbd>Y-pos</kbd> and <kbd>X-pos</kbd> must have a
661 <a href="definitions.html#unitofmeasure">unit of measure</a>
666 Vertical positioning of smaller images requires the <kbd>Y-pos</kbd>
667 argument (which is why it precedes <kbd>X-pos</kbd> in the order of
668 arguments) otherwise the image will be flush with the top edge of
673 The positioning of images does not effect the placement of type on
674 doc-cover and cover pages.
677 <div class="box-tip">
679 <span class="note">Tip:</span>
681 <a href="#covertext">COVERTEXT</a>
682 and COVER_IMAGE make it possible to design covers entirely to your
687 <div class="macro-id-overline" style="margin-top: .5em">
688 <h3 id="on-off" class="macro-id">Enabling/disabling automatic generation of cover pages</h3>
691 <div id="covers" class="box-macro-args" style="margin-top: .5em">
692 Macro: <b>COVERS</b> <kbd class="macro-args"><toggle></kbd>
695 <div id="doc-covers" class="box-macro-args" style="margin-top: 1em;">
696 Macro: <b>DOC_COVERS</b> <kbd class="macro-args"><toggle></kbd>
700 By default, if you give mom a
701 <a href="#cover">COVER</a>
703 <a href="#doc-cover">DOC_COVER</a>
704 directive, she will print the cover or doc-cover. In a document
705 that contains sections, articles or chapters formerly treated as
706 ”one-off’s” but now being
707 <a href="rectoverso.html#collate-intro">collated</a>,
708 such behaviour may not be desirable.
712 Mom lets you selectively enable or disable the generation of covers
713 and/or doc-covers with the toggle macros, COVERS and DOC_COVERS.
714 Because they’re toggle macros, simply invoking them by
715 themselves enables automatic cover or doc-cover generation, while
716 invoking them with any argument at all (<kbd>OFF, QUIT, X</kbd>,
717 etc) disables cover or doc-cover generation. </p>
719 <div class="box-tip">
721 <span class="note">Note:</span>
722 You must place these macros prior to any instance of
723 <a href="docprocessing.html#start">START</a>.
724 Since they’re ”on” by default, there’s no
725 need to use them if you want covers. However, if you don’t,
726 especially in the kind of scenario described above, the best place
727 to put them (most likely with an <kbd>OFF, NO, X</kbd>, etc. argument),
728 is immediately after the first invocation of START. By doing so,
729 you ensure they meet the requirement of preceding all subsequent
734 <div class="rule-short"><hr/></div>
736 <h2 id="cover-control" class="macro-group">Control macros for doc-covers and covers</h2>
739 The default typographic appearance of the items on a doc-cover or
740 cover is identical to that of the items in a
741 <a href="definitions.html#docheader">docheader</a>.
743 <a href="docprocessing.html#docheader-desc">Docheader description</a>
744 for a description of the defaults.)
748 <a href="docprocessing.html#copyright">COPYRIGHT</a>
750 <a href="docprocessing.html#misc">MISC</a>,
751 which do not appear in docheaders, have the following default
754 <ul style="margin-top: -.5em; margin-bottom: -.5em;">
755 <li>the COPYRIGHT line is set flush with the document’s right
756 and bottom margins, 2
757 <a href="definitions.html#ps">point sizes</a>
758 smaller than the size of
759 <a href="definitions.html#running">running text</a>
761 <li>MISC lines are set flush with the document’s left and bottom
762 margins, in the same family, font and point size as the
768 The defaults for the entirety of doc-covers and covers, and all the
769 elements thereon, can be changed with control macros whose defaults
770 and arguments are identical to the corresponding
771 <a href="docprocessing.html#index-docheader-control">Control macros for docheaders</a>
772 (q.v.) The only difference is the name by which you invoke them. Wherever
773 <kbd>DOCHEADER</kbd> is used for overall changes, replace it
774 with <kbd>DOC_COVER</kbd> or <kbd>COVER</kbd>. For part-by-part
775 changes, prepend <kbd>DOC_COVER_</kbd> or <kbd>COVER_</kbd> to the
780 Thus, to change the overall family, color, leading, quad and
781 starting position of a doc-cover, you’d do
783 <span class="pre-in-pp">
785 .DOC_COVER_COLOR blue
788 .DOC_COVER_ADVANCE 3i \" or .DOC_COVER_START_POS 3i
790 To change the style parameters for selected parts of a cover, you
791 might do something like this:
793 <span class="pre-in-pp">
796 .COVER_SUBTITLE_FONT I
798 .COVER_AUTHOR_SPACE_BEFORE 6p
799 .COVER_DOCTYPE_COLOR red
802 .COVER_COPYRIGHT_SIZE -2
803 .COVER_COPYRIGHT_QUAD L
806 Note in the above example that _COPYRIGHT_QUAD and _MISC_QUAD set
807 both the horizontal position on the page and the quad direction,
808 either L (or LEFT) or R (or RIGHT), and have no corresponding
809 docheader control macro.
812 <div class="box-tip">
814 <span class="note">Tip:</span>
815 As with the docheader control macros, <kbd>DOC_COVER_</kbd> and
816 <kbd>COVER_</kbd> part/parameter style changes may be
817 <a href="docprocessing.html#grouping">grouped</a>,
820 <span class="pre-in-pp">
821 .DOC_COVER_TITLE_STYLE \
830 <!-- Navigation links -->
831 <table style="width: 100%; margin-top: 12px;">
833 <td style="width: 33%;"><a href="toc.html">Back to Table of Contents</a></td>
834 <td style="width: 33%; text-align: center;"><a href="#top">Top</a></td>
835 <td style="width: 33%; text-align: right;"><a href="tables-of-contents.html">Next: Tables of contents</a></td>
841 <div class="bottom-spacer"><br/></div>