| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!-- |
| 3 |
This file is part of groff, the GNU roff type-setting system. |
| 4 |
|
| 5 |
Copyright (C) 2004-2020 Free Software Foundation, Inc. |
| 6 |
Written by Peter Schaffter ([email protected]). |
| 7 |
|
| 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 |
| 12 |
Texts. |
| 13 |
|
| 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. |
| 16 |
--> |
| 17 |
|
| 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"> |
| 20 |
|
| 21 |
<head> |
| 22 |
<meta http-equiv="content-type" content="text/html;charset=utf-8"/> |
| 23 |
<title>Mom -- Document Processing, Introduction and Setup</title> |
| 24 |
<link rel="stylesheet" type="text/css" href="stylesheet.css" /> |
| 25 |
</head> |
| 26 |
|
| 27 |
<body style="background-color: #f5faff;"> |
| 28 |
|
| 29 |
<!-- ==================================================================== --> |
| 30 |
|
| 31 |
<div id="top" class="page"> |
| 32 |
|
| 33 |
<!-- Navigation links --> |
| 34 |
<table style="width: 100%;"> |
| 35 |
<tr> |
| 36 |
<td><a href="toc.html">Back to Table of Contents</a></td> |
| 37 |
<td style="text-align: right;"><a href="docelement.html#top">Next: The document element tags</a></td> |
| 38 |
</tr> |
| 39 |
</table> |
| 40 |
|
| 41 |
<h1 class="docs">Document processing with mom</h1> |
| 42 |
|
| 43 |
<h2 id="toc-doc-processing" class="docs" style="text-align: center;">Table of contents</h2> |
| 44 |
|
| 45 |
<div id="docprocessing-mini-toc" style="font-size: 90%; line-height: 150%; margin-top: .5em;"> |
| 46 |
<div class="mini-toc-col-1" style="margin-left: 0;"> |
| 47 |
<h3 class="toc toc-docproc-header" style="margin-top: 1em;"><a class="header-link" href="#docprocessing-intro">Introduction to document processing</a></h3> |
| 48 |
<h3 class="toc toc-docproc-header" style="margin-top: .5em;"><a class="header-link" href="#defaults">Document defaults</a></h3> |
| 49 |
<h3 class="toc toc-docproc-header" style="margin-top: .5em;"><a class="header-link" href="#vertical-whitespace-management">Vertical whitespace management</a></h3> |
| 50 |
<h3 class="toc toc-docproc-header" style="margin-top: .5em;"><a class="header-link" href="#setup">Preliminary document setup</a></h3> |
| 51 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 52 |
<li><a href="#docprocessing-tut"><b>Tutorial – Setting up a mom document</b></a></li> |
| 53 |
<li><a href="#reference-macros"><b>The reference macros (metadata)</b></a> |
| 54 |
<ul class="toc-docproc"> |
| 55 |
<li><a href="#title">TITLE</a></li> |
| 56 |
<li><a href="#doc-title">DOCTITLE</a></li> |
| 57 |
<li><a href="#subtitle">SUBTITLE</a></li> |
| 58 |
<li><a href="#author">AUTHOR</a></li> |
| 59 |
<li><a href="#chapter">CHAPTER</a></li> |
| 60 |
<li><a href="#chapter-title">CHAPTER_TITLE</a></li> |
| 61 |
<li><a href="#draft">DRAFT</a></li> |
| 62 |
<li><a href="#revision">REVISION</a></li> |
| 63 |
<li><a href="#copyright">COPYRIGHT</a></li> |
| 64 |
<li><a href="#misc">MISC</a></li> |
| 65 |
<li><a href="#covertitle">COVERTITLE</a></li> |
| 66 |
<li><a href="#doc-covertitle">DOC_COVERTITLE</a></li> |
| 67 |
<li><a href="#pdftitle">PDF_TITLE</a></li> |
| 68 |
<li><a href="#toc-heading">TOC_HEADING</a></li> |
| 69 |
</ul></li> |
| 70 |
<li><a href="#docstyle-macros"><b>The docstyle macros (templates)</b></a> |
| 71 |
<ul class="toc-docproc"> |
| 72 |
<li><a href="#doctype">DOCTYPE (default, chapter, letter, named, slides)</a></li> |
| 73 |
<li><a href="#slides">DOCTYPE SLIDES</a> |
| 74 |
<ul class="toc-docproc"> |
| 75 |
<li><a href="#newslide">NEWSLIDE</a></li> |
| 76 |
<li><a href="#pause">PAUSE</a></li> |
| 77 |
<li><a href="#transition">TRANSITION</a></li> |
| 78 |
</ul></li> |
| 79 |
<li><a href="#printstyle">PRINTSTYLE</a></li> |
| 80 |
<li><a href="#copystyle">COPYSTYLE</a></li> |
| 81 |
</ul></li> |
| 82 |
<li><a href="cover.html"><b>Cover pages</b></a></li> |
| 83 |
<li><a href="#docheader"><b>Managing the document header</b></a> |
| 84 |
<ul class="toc-docproc"> |
| 85 |
<li><a href="#docheader">DOCHEADER</a></li> |
| 86 |
<li><a href="#docheader-control">Docheader control</a> |
| 87 |
<ul class="toc-docproc"> |
| 88 |
<li><a href="#docheader-desc">Docheader description</a></li> |
| 89 |
<li><a href="#index-docheader-control">Macro list</a></li> |
| 90 |
</ul></li> |
| 91 |
</ul></li> |
| 92 |
</ul> |
| 93 |
</div> |
| 94 |
<div class="mini-toc-col-2"> |
| 95 |
<br/> |
| 96 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#start-macro">Initiate document processing</a></h3> |
| 97 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 98 |
<li><a href="#start"><b>The START macro</b></a></li> |
| 99 |
</ul> |
| 100 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#style-before-start">Establishing type and formatting<br/><span style="display: block; margin-top: -.3em;">parameters before START</span></a></h3> |
| 101 |
<ul class="toc-docproc"> |
| 102 |
<li><a href="#type-before-start"><b>Behaviour of the typesetting macros before START</b></a> |
| 103 |
<ul class="toc-docproc"> |
| 104 |
<li><a href="docprocessing.html#include">Including (sourcing) style sheets and files</a></li> |
| 105 |
<li><a href="#color">Initializing colours</a></li> |
| 106 |
</ul></li> |
| 107 |
</ul> |
| 108 |
<ul class="toc-docproc" style="margin-top: -1em"> |
| 109 |
<li><a href="#doc-lead-adjust"><b>Adjust linespacing to fill pages</b></a> |
| 110 |
<ul class="toc-docproc"> |
| 111 |
<li><a href="#doc-lead-adjust">DOC_LEAD_ADJUST</a></li> |
| 112 |
<li><a href="#shim">SHIM</a> – get document leading back on track |
| 113 |
<ul class="toc-docproc"> |
| 114 |
<li><a href="#automatic-shimming">Automatic shimming (headings, etc)</a></li> |
| 115 |
</ul></li> |
| 116 |
</ul></li> |
| 117 |
<li><a href="#columns-intro"><b>Setting documents in columns</b></a> |
| 118 |
<ul class="toc-docproc"> |
| 119 |
<li><a href="#columns">COLUMNS</a></li> |
| 120 |
<li><a href="#marking-col-start">Marking the first page column start position</a> |
| 121 |
<ul class="toc-docproc"> |
| 122 |
<li><a href="#col-mark">COL_MARK</a></li> |
| 123 |
</ul></li> |
| 124 |
<li><a href="#breaking-columns">Breaking columns manually</a> |
| 125 |
<ul class="toc-docproc"> |
| 126 |
<li><a href="#col-next">COL_NEXT</a> and <a href="#col-break">COL_BREAK</a></li> |
| 127 |
</ul></li> |
| 128 |
</ul></li> |
| 129 |
</ul> |
| 130 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#style-after-start">Changing basic type and formatting<br/><span style="display: block; margin-top: -.3em;">parameters after START</span></a></h3> |
| 131 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 132 |
<li><a href="#behaviour"><b>Behaviour of the typesetting macros during document processing</b></a></li> |
| 133 |
<li><a href="docprocessing.html#intro-doc-param"><b>Changing document-wide typesetting parameters after START</b></a> |
| 134 |
<ul class="toc-docproc"> |
| 135 |
<li><a href="docprocessing.html#index-doc-param">Post-START global style change macros</a> |
| 136 |
<ul class="toc-docproc"> |
| 137 |
<li><a href="#doc-left-margin">DOC_LEFT_MARGIN</a></li> |
| 138 |
<li><a href="#doc-right-margin">DOC_RIGHT_MARGIN</a></li> |
| 139 |
<li><a href="#doc-line-length">DOC_LINE_LENGTH</a></li> |
| 140 |
<li><a href="#doc-family">DOC_FAMILY</a></li> |
| 141 |
<li><a href="#doc-pt-size">DOC_PT_SIZE</a></li> |
| 142 |
<li><a href="#doc-lead">DOC_LEAD</a></li> |
| 143 |
<li><a href="#doc-lead-adjust">DOC_LEAD_ADJUST</a></li> |
| 144 |
<li><a href="#doc-quad">DOC_QUAD</a></li> |
| 145 |
</ul></li> |
| 146 |
</ul></li> |
| 147 |
</ul> |
| 148 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#terminating">Terminating a document</a></h3> |
| 149 |
</div> |
| 150 |
</div> |
| 151 |
|
| 152 |
<div class="rule-short" style="margin-top: -1.75em"><br/><hr/></div> |
| 153 |
|
| 154 |
<!-- ==================================================================== --> |
| 155 |
|
| 156 |
<h2 id="docprocessing-intro" class="docs" style="margin-top: 1em">Introduction to document processing</h2> |
| 157 |
|
| 158 |
<p> |
| 159 |
Document processing with mom uses markup tags to identify document elements |
| 160 |
such as headings, paragraphs, blockquotes, and so on. The tags are, of course, |
| 161 |
macros, but with sensible, readable names that make them easy |
| 162 |
to grasp and easy to remember. (And don’t forget: if you |
| 163 |
don’t like the “official” name of a tag — |
| 164 |
too long, cumbersome to type in, not “intuitive” enough |
| 165 |
— you can change it with the |
| 166 |
<a href="goodies.html#alias">ALIAS</a> |
| 167 |
macro.) |
| 168 |
</p> |
| 169 |
|
| 170 |
<p> |
| 171 |
In addition to the tags themselves, mom has an extensive array of |
| 172 |
macros that control how they look and behave. |
| 173 |
</p> |
| 174 |
|
| 175 |
<p> |
| 176 |
Setting up a mom doc is a simple, four-part procedure. You |
| 177 |
begin by entering metadata about the document itself (title, |
| 178 |
subtitle, author, etc.). Next, you tell mom what kind of document |
| 179 |
you’re creating (e.g. a chapter, letter, abstract, etc...) and |
| 180 |
what kind of output you want (typeset, typewritten, draft-style, |
| 181 |
etc) — essentially, templates. Thirdly, you make as many |
| 182 |
or as few changes to the templates as you wish; in other words, |
| 183 |
create a style sheet. Lastly, you invoke the |
| 184 |
<kbd><a href="#start">START</a></kbd> |
| 185 |
macro. VoilĂ ! You’re ready to write. |
| 186 |
</p> |
| 187 |
|
| 188 |
<!-- ==================================================================== --> |
| 189 |
|
| 190 |
<h2 id="defaults" class="docs">Document defaults</h2> |
| 191 |
|
| 192 |
<p> |
| 193 |
As is to be expected, mom has defaults for everything. If you want |
| 194 |
to know a particular default, read about it in the description of |
| 195 |
the pertinent tag. |
| 196 |
</p> |
| 197 |
|
| 198 |
<p> |
| 199 |
I fear the following may not be adequately covered elsewhere in the |
| 200 |
documentation, so just in case: |
| 201 |
</p> |
| 202 |
<ul style="margin-top: -.5em; margin-bottom: .5em;"> |
| 203 |
<li>the paper size is 8.5x11 inches</li> |
| 204 |
<li>the left and right margins are 1-inch</li> |
| 205 |
<li>the top and bottom margins for document text are plus/minus |
| 206 |
visually 1-inch |
| 207 |
</li> |
| 208 |
<li>pages are numbered; the number appears centred, at the |
| 209 |
bottom, surrounded by hyphens (e.g. -6- ) |
| 210 |
</li> |
| 211 |
<li>the first page of a document begins with a |
| 212 |
<a href="definitions.html#docheader">document header</a> |
| 213 |
</li> |
| 214 |
<li>subsequent pages have |
| 215 |
<a href="definitions.html#header">page headers</a> |
| 216 |
with a rule underneath |
| 217 |
</li> |
| 218 |
</ul> |
| 219 |
|
| 220 |
<!-- ==================================================================== --> |
| 221 |
|
| 222 |
<h2 id="vertical-whitespace-management" class="macro-group">Vertical whitespace management</h2> |
| 223 |
|
| 224 |
<ul style="margin-left: -.5em;"> |
| 225 |
<li><a href="#shim">Macro: SHIM</a></li> |
| 226 |
<li><a href="#no-shim">Macro: NO_SHIM</a></li> |
| 227 |
<li><a href="#flex">Macro: FLEX</a></li> |
| 228 |
<li><a href="#no-flex">Macro: NO_FLEX</a></li> |
| 229 |
</ul> |
| 230 |
|
| 231 |
|
| 232 |
<p> |
| 233 |
Mom takes evenly-aligned bottom margins in |
| 234 |
<a href="definitions.html#running">running text</a> |
| 235 |
very seriously. Only under a very few, exceptional circumstances |
| 236 |
will she allow a bottom margin to “hang” (i.e. to fall |
| 237 |
short). |
| 238 |
</p> |
| 239 |
|
| 240 |
<p> |
| 241 |
Mom offers two modes of operation for ensuring flush bottom margins: |
| 242 |
shimming and flex-spacing. Shimming means that mom nudges the |
| 243 |
next line after a significant break in running text back onto the |
| 244 |
<a href="definitions.html#baseline-grid">baseline grid</a> |
| 245 |
(e.g. after the insertion of a graphic). Flex-spacing means that any |
| 246 |
vertical whitespace remaining between the end of running text and |
| 247 |
the bottom margin is distributed equally at logical points on the |
| 248 |
page. |
| 249 |
</p> |
| 250 |
|
| 251 |
<p> |
| 252 |
Mom uses the |
| 253 |
<a href="definitions.html#leading">leading</a> |
| 254 |
of running text (the “document leading”) that’s in effect |
| 255 |
<i>at the start of running text on each page</i> |
| 256 |
to establish the grid and space document elements such as heads or |
| 257 |
blockquotes so that they adhere to it. (Prior to invoking |
| 258 |
<a href="#start">START</a>, |
| 259 |
the document leading is set with the |
| 260 |
<a href="typesetting.html#macros-typesetting">typesetting macro</a> |
| 261 |
<a href="typesetting.html#leading">LS</a>, |
| 262 |
afterwards with the |
| 263 |
<a href="definitions.html#controlmacro">document control macro</a> |
| 264 |
<a href="#doc-lead">DOC_LEAD</a>.) |
| 265 |
</p> |
| 266 |
|
| 267 |
<p> |
| 268 |
What this means is that documents whose paragraphs are not separated |
| 269 |
by whitespace and which do not contain graphics or |
| 270 |
<a href="definitions.html#pre-processor">pre-processor material</a> |
| 271 |
will fill the page completely to the bottom margin. |
| 272 |
However, if your paragraphs are spaced, or if there are any leading |
| 273 |
changes on a page, or if graphics or pre-processor material are |
| 274 |
inserted, it’s very likely the bottom margins will hang |
| 275 |
unless shimming or flex-spacing is enabled. |
| 276 |
</p> |
| 277 |
|
| 278 |
<h3 id="shim-vs-flex" class="docs">Shimming <span style="text-transform: none">vs.</span> flex-spacing</h3> |
| 279 |
|
| 280 |
<p> |
| 281 |
<b>Shimming</b> is mom’s default mode of operation. She applies it |
| 282 |
automatically before headings, around quotes and blockquotes, and |
| 283 |
beneath |
| 284 |
<a href="definitions.html#float">floats</a> |
| 285 |
and |
| 286 |
<a href="definitions.html#preprocessor">pre-processor material</a>. |
| 287 |
In addition, the |
| 288 |
<a href="#shim">SHIM</a> |
| 289 |
macro can be inserted into a document at any point to make sure |
| 290 |
the text following falls on the baseline grid. |
| 291 |
</p> |
| 292 |
|
| 293 |
<p> |
| 294 |
This mode of operation works well in documents whose paragraphs are |
| 295 |
not spaced. Deviations from the baseline grid, usually |
| 296 |
caused by floats or pre-processor material, are corrected |
| 297 |
immediately. If the shimming results in slightly unbalanced |
| 298 |
whitespace around them, it can easily be remedied by passing the |
| 299 |
<kbd>ADJUST</kbd> argument to the appropriate macro. |
| 300 |
</p> |
| 301 |
|
| 302 |
<p> |
| 303 |
If you do not want mom shimming automatically, |
| 304 |
<a href="#no-shim">NO_SHIM</a> |
| 305 |
turns shimming off globally and suppresses the SHIM macro. If you |
| 306 |
want to disable shimming only for a particular float or |
| 307 |
pre-processor, the <kbd>NO_SHIM</kbd> argument may be given to the |
| 308 |
appropriate macro. |
| 309 |
</p> |
| 310 |
|
| 311 |
<p> |
| 312 |
<b>Flex-spacing</b> kicks in automatically whenever you |
| 313 |
turn shimming off, provided your document is processed with |
| 314 |
<b>pdfmom(1)</b>. In other words, if you want a document |
| 315 |
flex-spaced, <kbd>.NO_SHIM</kbd> is how you achieve it. If, in |
| 316 |
addition to not shimming, you don’t want mom flex-spacing |
| 317 |
either, |
| 318 |
<a href="#no-flex">NO_FLEX</a> |
| 319 |
lets you disable it, too. |
| 320 |
</p> |
| 321 |
|
| 322 |
<p> |
| 323 |
Flex-spacing differs from shimming in that mom doesn’t |
| 324 |
correct deviations from the baseline grid. Rather, she distributes |
| 325 |
whitespace left at the bottom of the page equally in appropriate |
| 326 |
places. Like shimming, flex-spacing is automatically applied |
| 327 |
before heads, after floats and pre-processor material, and around |
| 328 |
quotes and blockquotes. Like shimming, flex-spacing can be |
| 329 |
disabled for individual floats or pre-processor material with the |
| 330 |
<kbd>NO_FLEX</kbd> flag. |
| 331 |
</p> |
| 332 |
|
| 333 |
<p> |
| 334 |
In addition, you can use the |
| 335 |
<a href="#flex">FLEX</a> |
| 336 |
macro to insert flex-spacing yourself into the document, which you |
| 337 |
will almost certainly want to do if your paragraphs are spaced. |
| 338 |
This is because paragraphs are not flex-spaced. Typographically, |
| 339 |
the ideal for spaced paragraphs is that the space between them |
| 340 |
remain constant. Paradoxically, the only way to achieve flush |
| 341 |
bottom margins, or to correct excessive flex-spacing before a |
| 342 |
heading, is by adding flex-space between the paragraphs. This |
| 343 |
requires human judgment, and mom does not presume to decide for you. |
| 344 |
</p> |
| 345 |
|
| 346 |
<p> |
| 347 |
Shimming and flex-spacing are mutually exclusive. If the one is |
| 348 |
active, the other isn’t unless you have disabled both. This means |
| 349 |
that you cannot use the FLEX macro when shimming is enabled, or the |
| 350 |
SHIM macro when flex-spacing is enabled. Mom will issue a warning |
| 351 |
if you do. |
| 352 |
</p> |
| 353 |
|
| 354 |
<p> |
| 355 |
The choice of whether to use shimming or flex-spacing depends on |
| 356 |
whether or not your paragraphs are spaced. In a document with |
| 357 |
indented, non-spaced paragraphs, shimming and flex-spacing produce |
| 358 |
nearly the same result, with shimming winning by an aesthetic hair. |
| 359 |
In documents with spaced paragraphs, flex-spacing is the only way to |
| 360 |
achieve flush bottom margins. |
| 361 |
</p> |
| 362 |
|
| 363 |
<!-- -SHIM- --> |
| 364 |
|
| 365 |
<div class="macro-id-overline"> |
| 366 |
<h3 id="shim" class="macro-id">SHIM</h3> |
| 367 |
</div> |
| 368 |
|
| 369 |
<div class="box-macro-args"> |
| 370 |
Macro: <b>SHIM</b> |
| 371 |
</div> |
| 372 |
|
| 373 |
<p> |
| 374 |
When shimming is enabled, which it is by default, the SHIM macro |
| 375 |
allows you to nudge the line following it back onto the baseline |
| 376 |
grid. In documents with non-spaced paragraphs, this prevents |
| 377 |
the bottom margins from hanging. |
| 378 |
</p> |
| 379 |
|
| 380 |
<p style="margin-bottom: -1em"> |
| 381 |
Mom herself automatically applies shimming |
| 382 |
</p> |
| 383 |
<ul> |
| 384 |
<li><i>before</i> headings</li> |
| 385 |
<li><i>around</i> quotes and blockquotes</li> |
| 386 |
<li><i>after</i> PDF images, tables, pic diagrams, equations, and floats</li> |
| 387 |
</ul> |
| 388 |
|
| 389 |
<p> |
| 390 |
You may sometimes find the amount of space generated by |
| 391 |
<kbd>SHIM</kbd> looks too big, whether inserted manually into a |
| 392 |
document or as a result of automatic shimming. |
| 393 |
The situation occurs when the amount of shimming applied |
| 394 |
comes close to the leading currently in effect, making it seem as if |
| 395 |
there’s one linespace too much whitespace. |
| 396 |
</p> |
| 397 |
|
| 398 |
<p> |
| 399 |
The solution is simply to add <kbd>.SPACE -1v</kbd> or |
| 400 |
<kbd>.RLD 1v</kbd> to the document immediately after |
| 401 |
<kbd>.SHIM</kbd>. (Both <kbd>.SPACE -1v</kbd> and |
| 402 |
<kbd>.RLD 1v</kbd> back up by one linespace.) |
| 403 |
</p> |
| 404 |
|
| 405 |
<div class="macro-id-overline"> |
| 406 |
<h3 id="no-shim" class="macro-id">NO_SHIM</h3> |
| 407 |
</div> |
| 408 |
|
| 409 |
<div class="box-macro-args"> |
| 410 |
Macro: <b>NO_SHIM</b> <kbd class="macro-args"><none> | <anything></kbd> |
| 411 |
</div> |
| 412 |
|
| 413 |
<p> |
| 414 |
NO_SHIM, without an argument, disables automatic shimming, |
| 415 |
suppresses the SHIM macro, and, provided your document is processed |
| 416 |
with <b>pdfmom(1)</b>, enables flex-spacing. |
| 417 |
</p> |
| 418 |
|
| 419 |
<p> |
| 420 |
NO_SHIM with any argument (e.g. <kbd>OFF</kbd>, <kbd>QUIT</kbd>, |
| 421 |
<kbd>END</kbd>, <kbd>X</kbd>, etc) re-enables shimming if it has |
| 422 |
been disabled and disables flex-spacing. |
| 423 |
</p> |
| 424 |
|
| 425 |
<!-- -FLEX- --> |
| 426 |
|
| 427 |
<div class="macro-id-overline"> |
| 428 |
<h3 id="flex" class="macro-id">FLEX</h3> |
| 429 |
</div> |
| 430 |
|
| 431 |
<div class="box-macro-args"> |
| 432 |
Macro: <b>FLEX</b> <kbd class="macro-args">[ FORCE ]</kbd> |
| 433 |
</div> |
| 434 |
<p class="requires"> |
| 435 |
• Requires that documents be processed with <b>pdfmom(1)</b> |
| 436 |
</p> |
| 437 |
|
| 438 |
<p> |
| 439 |
When flex-spacing is enabled, the FLEX macro inserts flexible |
| 440 |
vertical whitespace into a document. The amount of flex-space is |
| 441 |
determined from any extra whitespace at the bottom of a page divided |
| 442 |
by the number of flex points on the same page. |
| 443 |
</p> |
| 444 |
|
| 445 |
<p style="margin-bottom: -1em"> |
| 446 |
If flex-spacing is enabled, mom herself automatically applies |
| 447 |
flex-spacing |
| 448 |
</p> |
| 449 |
<ul style="margin-bottom: -.5em"> |
| 450 |
<li><i>before</i> headings</li> |
| 451 |
<li><i>around</i> quotes and blockquotes</li> |
| 452 |
<li><i>after</i> PDF images, tables, pic diagrams, equations, and floats</li> |
| 453 |
</ul> |
| 454 |
|
| 455 |
<p> |
| 456 |
Near the bottom of some pages, you may find that |
| 457 |
<a href="definitions.html#float">floated</a> |
| 458 |
or |
| 459 |
<a href="definitions.html#preprocessor">pre-processor material</a>, |
| 460 |
including images, or a single line of text afterwards, is not flush |
| 461 |
with the bottom margin. This is a result of mom flex-spacing |
| 462 |
<i>after</i> such material but not before. The solution to is |
| 463 |
insert <kbd>.FLEX</kbd> immediately beforehand. |
| 464 |
</p> |
| 465 |
|
| 466 |
<p> |
| 467 |
There are some instances where mom inhibits flex-spacing, notably |
| 468 |
after outputting floated material deferred from one page to the |
| 469 |
next. Introducing FLEX by itself in these instances—say, |
| 470 |
before a head or paragraph—will not have any effect; you must |
| 471 |
pass FLEX the <kbd>FORCE</kbd> argument. |
| 472 |
</p> |
| 473 |
|
| 474 |
<div class="box-tip"> |
| 475 |
<p class="tip"> |
| 476 |
<span class="important">Important note on flex-spacing policy:</span><br/> |
| 477 |
Mom disables flex-spacing on |
| 478 |
</p> |
| 479 |
<ul style="margin-top: -1em; margin-bottom: -.5em"> |
| 480 |
<li>the last page or column of a document, before the Table of Contents, |
| 481 |
Endnotes, Bibliography, and/or any “Lists of...” |
| 482 |
</li> |
| 483 |
<li>the page preceding a |
| 484 |
<a href="rectoverso.html#collate">COLLATE</a> |
| 485 |
</li> |
| 486 |
<li>the page preceding a |
| 487 |
<a href="typesetting.html#NEWPAGE">NEWPAGE</a> |
| 488 |
or |
| 489 |
<a href="headfootpage.html#blankpage">BLANKPAGE</a> |
| 490 |
</li> |
| 491 |
<li>the column preceding a |
| 492 |
<a href="#col-next">COL_NEXT</a> |
| 493 |
or |
| 494 |
<a href="#col-break">COL_BREAK</a> |
| 495 |
</li> |
| 496 |
</ul> |
| 497 |
|
| 498 |
<p> |
| 499 |
If this is not what you want, insert |
| 500 |
<a href="#no-flex"><kbd>.NO_FLEX OFF</kbd></a> |
| 501 |
before the first flex-space point on the affected page or in the |
| 502 |
affected column. |
| 503 |
</p> |
| 504 |
|
| 505 |
<p> |
| 506 |
Flex-spacing is also disabled for any page or column where |
| 507 |
insufficient room at or near the bottom causes a |
| 508 |
<a href="docelement.html#heading">HEADING</a> |
| 509 |
or |
| 510 |
<a href="images.html#tbl">table</a> |
| 511 |
to be moved to the top of the next page. These situations cannot |
| 512 |
be harmonized with flex-spacing except by adjusting your layout |
| 513 |
to prevent them. You may try re-enabling flex-spacing for the |
| 514 |
page (<kbd>.NO_FLEX OFF</kbd>) and manually inserting |
| 515 |
flex-spaces at appropriate points, but the original whitespace is |
| 516 |
usually large enough that re-distributing it merely changes |
| 517 |
one layout gaffe into another. |
| 518 |
</p> |
| 519 |
|
| 520 |
<p> |
| 521 |
Very occasionally you may notice that a document element (spaced |
| 522 |
paragraph, floated material, pre-processor material, or a PDF image) |
| 523 |
near the bottom of page has also caused mom to disable flex-spacing |
| 524 |
for that page. This occurs when the document element following it |
| 525 |
is a |
| 526 |
<a href="docelement.html#pp-space">spaced paragraph</a>. |
| 527 |
</p> |
| 528 |
|
| 529 |
<p> |
| 530 |
It is typographically acceptable for there to be space between |
| 531 |
insertions in running text (e.g. an image) and the bottom margin when |
| 532 |
the next page begins with a paragraph. If you’d like to |
| 533 |
nudge the insertion a little closer to the bottom margin—not |
| 534 |
all the way; that isn’t possible without pushing it to the |
| 535 |
next page and disrupting subsequent flex-spacing—insert a |
| 536 |
small amount of space beforehand with |
| 537 |
<a href="typesetting.html#sp">SP</a>. |
| 538 |
Do not, in these cases, use the <kbd>ADJUST</kbd> |
| 539 |
argument (for example to |
| 540 |
<a href="images.html#pdf-image">PDF_IMAGE</a>.) |
| 541 |
</p> |
| 542 |
|
| 543 |
<p class="tip-bottom"> |
| 544 |
In the case of a spaced paragraph itself near the bottom of the page |
| 545 |
causing a break, re-enabling flex-spacing |
| 546 |
(<kbd>.NO_FLEX OFF</kbd>) at an appropriate place in your input |
| 547 |
file will resolve the issue, provided there is at least one |
| 548 |
flex-point on the page. If not, add one or more. |
| 549 |
</p> |
| 550 |
</div> |
| 551 |
|
| 552 |
<div class="macro-id-overline"> |
| 553 |
<h3 id="no-flex" class="macro-id">NO_FLEX</h3> |
| 554 |
</div> |
| 555 |
|
| 556 |
<div class="box-macro-args"> |
| 557 |
Macro: <b>NO_FLEX</b> <kbd class="macro-args"><none> | <anything></kbd> |
| 558 |
</div> |
| 559 |
|
| 560 |
<p> |
| 561 |
NO_FLEX, without an argument, disables automatic flex-spacing |
| 562 |
and suppresses the FLEX macro. If, in addition to NO_FLEX, NO_SHIM |
| 563 |
has also been given, your document will be neither flex-spaced nor |
| 564 |
shimmed. |
| 565 |
</p> |
| 566 |
|
| 567 |
<p> |
| 568 |
NO_FLEX with any argument (e.g. <kbd>OFF</kbd>, <kbd>QUIT</kbd>, |
| 569 |
<kbd>END</kbd>, <kbd>X</kbd>, etc) re-enables flex-spacing if it has |
| 570 |
been disabled. |
| 571 |
</p> |
| 572 |
|
| 573 |
<div class="rule-short"><hr/></div> |
| 574 |
|
| 575 |
<!-- ==================================================================== --> |
| 576 |
|
| 577 |
<h2 id="setup" class="docs" style="margin-bottom: .5em;">Preliminary document setup</h2> |
| 578 |
|
| 579 |
<div class="examples-container" style="margin-bottom: 1.5em;"> |
| 580 |
<h3 id="docprocessing-tut" class="docs">Tutorial – Setting up a mom document</h3> |
| 581 |
|
| 582 |
<p style="margin-top: 1em;"> |
| 583 |
There are four parts to setting up a mom doc (three, actually, |
| 584 |
with one optional). Before we proceed, though, be reassured that |
| 585 |
something as simple as |
| 586 |
<br/> |
| 587 |
<span class="pre-in-pp"> |
| 588 |
.TITLE "By the Shores of Lake Attica" |
| 589 |
.AUTHOR "Rosemary Winspeare" |
| 590 |
.PRINTSTYLE TYPESET |
| 591 |
.START |
| 592 |
</span> |
| 593 |
produces a beautifully typeset 8.5x11 document, with a |
| 594 |
<a href="definitions.html#docheader">docheader</a> |
| 595 |
at the top of page 1, |
| 596 |
<a href="definitions.html#header">page headers</a> |
| 597 |
with the title and author on subsequent pages, and page numbers at |
| 598 |
the bottom of each page. In the course of the document, headings, |
| 599 |
citations, quotes, epigraphs, and so on, all come out looking neat, |
| 600 |
trim, and professional. |
| 601 |
</p> |
| 602 |
|
| 603 |
<p> |
| 604 |
For the purposes of this tutorial, we’re going to set up |
| 605 |
a short story—<i>My Pulitzer Winner</i>—by Joe Blow. |
| 606 |
Thankfully, we don’t have to look at story itself, just the |
| 607 |
setup. Joe wants the document |
| 608 |
</p> |
| 609 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 610 |
<li>to be draft 7, revision 39;</li> |
| 611 |
<li>to use the DEFAULT template;</li> |
| 612 |
<li>to print as draft-style output (instead of final-copy output);</li> |
| 613 |
<li>to be typeset, in Helvetica, 12 on 14, |
| 614 |
<a href="definitions.html#rag">rag-right</a>; |
| 615 |
</li> |
| 616 |
<li>to have <a href="definitions.html#footer">footers</a> |
| 617 |
instead of |
| 618 |
<a href="definitions.html#header">headers</a>; |
| 619 |
</li> |
| 620 |
<li>to use a single asterisk for |
| 621 |
<a href="definitions.html#linebreak">author linebreaks</a>. |
| 622 |
</li> |
| 623 |
</ul> |
| 624 |
|
| 625 |
<p> |
| 626 |
Joe Blow has no taste in typography. His draft won’t look |
| 627 |
pretty, but this is, after all, a tutorial; we’re after |
| 628 |
examples, not beauty. |
| 629 |
</p> |
| 630 |
|
| 631 |
<h4 class="docs" style="margin-top: -.5em;">Step 1</h4> |
| 632 |
|
| 633 |
<p style="margin-bottom: -.5em;"> |
| 634 |
The first step in setting up any document is giving mom some |
| 635 |
reference information (metadata). The reference macros are: |
| 636 |
</p> |
| 637 |
<div style="width: 50%; float: left;"> |
| 638 |
<ul> |
| 639 |
<li>TITLE</li> |
| 640 |
<li>SUBTITLE</li> |
| 641 |
<li>AUTHOR</li> |
| 642 |
<li>CHAPTER – chapter number</li> |
| 643 |
<li>CHAPTER_TITLE</li> |
| 644 |
<li>DRAFT – draft number</li> |
| 645 |
<li>REVISION – revision number</li> |
| 646 |
</ul> |
| 647 |
</div> |
| 648 |
<div> |
| 649 |
<ul> |
| 650 |
<li>COPYRIGHT – only used on cover pages</li> |
| 651 |
<li>MISC – only used on cover pages</li> |
| 652 |
<li>DOCTITLE</li> |
| 653 |
<li>COVERTITLE</li> |
| 654 |
<li>DOC_COVERTITLE</li> |
| 655 |
<li>PDF_TITLE</li> |
| 656 |
</ul> |
| 657 |
</div> |
| 658 |
|
| 659 |
<p style="margin-top: -.5em; clear: both;"> |
| 660 |
You can use as many or as few as you wish, although at a minimum, |
| 661 |
you’ll probably fill in TITLE (unless the document’s a |
| 662 |
letter) and AUTHOR. Order doesn’t matter. You can separate |
| 663 |
the |
| 664 |
<a href="definitions.html#arguments">arguments</a> |
| 665 |
from the macros by any number of spaces. The following are what |
| 666 |
you’d need to start Joe Blow’s story. |
| 667 |
<br/> |
| 668 |
<span class="pre-in-pp"> |
| 669 |
.TITLE "My Pulitzer Winner" |
| 670 |
.AUTHOR "Joe Blow" |
| 671 |
.DRAFT 7 |
| 672 |
.REVISION 39 |
| 673 |
</span> |
| 674 |
</p> |
| 675 |
|
| 676 |
<h4 class="docs" style="margin-top: -1.5em;">Step 2</h4> |
| 677 |
|
| 678 |
<p> |
| 679 |
Once you’ve given mom the reference information she needs, you |
| 680 |
tell her how you want your document formatted. What kind of |
| 681 |
document is it? Should it be typeset or typewritten? Is this a |
| 682 |
final copy (for the world to see) or just a draft? Mom calls |
| 683 |
the macros that answer these questions “the docstyle |
| 684 |
macros”, and they’re essentially templates. |
| 685 |
</p> |
| 686 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 687 |
<li>PRINTSTYLE—typeset or typewritten</li> |
| 688 |
<li>DOCTYPE—the type of document (default, chapter, user-defined, letter, slide)</li> |
| 689 |
<li>COPYSTYLE—draft or final copy</li> |
| 690 |
</ul> |
| 691 |
|
| 692 |
<p> |
| 693 |
Mom has defaults for DOCTYPE and COPYSTYLE; if they’re what |
| 694 |
you want, you don’t need to include them. However, |
| 695 |
PRINTSTYLE has no default and must be present in every formatted |
| 696 |
document. If you omit it, mom won’t process the document |
| 697 |
AND she’ll complain (both to stderr and as a single printed |
| 698 |
sheet with a warning). Moms—they can be so annoying |
| 699 |
sometimes. <sigh> |
| 700 |
</p> |
| 701 |
|
| 702 |
<p> |
| 703 |
Adding to what we already have, the next bit of setup for Joe |
| 704 |
Blow’s story looks like this: |
| 705 |
<br/> |
| 706 |
<span class="pre-in-pp"> |
| 707 |
.TITLE "My Pulitzer Winner" |
| 708 |
.AUTHOR "Joe Blow" |
| 709 |
.DRAFT 7 |
| 710 |
.REVISION 39 |
| 711 |
\# |
| 712 |
.DOCTYPE DEFAULT \"Superfluous; mom uses DOCTYPE DEFAULT by default |
| 713 |
.PRINTSTYLE TYPESET |
| 714 |
.COPYSTYLE DRAFT |
| 715 |
</span> |
| 716 |
Notice the use of the |
| 717 |
<a href="definitions.html#commentlines">comment line</a> |
| 718 |
( <kbd>\#</kbd> ), a handy way to keep groups of macros visually |
| 719 |
separated for easy reading in a text editor. |
| 720 |
</p> |
| 721 |
|
| 722 |
<h4 class="docs" style="margin-top: -.5em; margin-bottom: -.5em;">Step 3</h4> |
| 723 |
|
| 724 |
<p> |
| 725 |
This step—completely optional—is where you, the user, |
| 726 |
take charge. Mom has reasonable defaults for every document element |
| 727 |
and tag, but who’s ever satisfied with defaults? Use any of |
| 728 |
the |
| 729 |
<a href="typesetting.html#macros-typesetting">typesetting macros</a> |
| 730 |
here to change mom’s document defaults (paper size, margins, |
| 731 |
family, point size, line space, rag, etc), or any of the document |
| 732 |
processing |
| 733 |
<a href="definitions.html#controlmacro">control macros</a>. |
| 734 |
This is the stylesheet section of a document, and |
| 735 |
must come after the |
| 736 |
<a href="#printstyle">PRINTSTYLE</a> |
| 737 |
directive. Failure to observe this condition will result in |
| 738 |
PRINTSTYLE overriding your changes. |
| 739 |
</p> |
| 740 |
|
| 741 |
<p> |
| 742 |
Joe Blow wants his story printed in Helvetica, 12 on 14, rag right, |
| 743 |
with |
| 744 |
<a href="definitions.html#footer">page footers</a> |
| 745 |
instead of |
| 746 |
<a href="definitions.html#header">page headers</a> |
| 747 |
and a single asterisk for the |
| 748 |
<a href="definitions.html#linebreak">linebreak</a> |
| 749 |
character. None of these requirements conforms to mom’s |
| 750 |
defaults for the chosen PRINTSTYLE (TYPESET), so we change them |
| 751 |
here. The setup for Joe Blow’s story now looks like this: |
| 752 |
<br/> |
| 753 |
<span class="pre-in-pp"> |
| 754 |
.TITLE "My Pulitzer Winner" |
| 755 |
.AUTHOR "Joe Blow" |
| 756 |
.DRAFT 7 |
| 757 |
.REVISION 39 |
| 758 |
\# |
| 759 |
.DOCTYPE DEFAULT |
| 760 |
.PRINTSTYLE TYPESET |
| 761 |
.COPYSTYLE DRAFT |
| 762 |
\# |
| 763 |
.FAMILY H |
| 764 |
.PT_SIZE 12 |
| 765 |
.LS 14 |
| 766 |
.QUAD LEFT \"ie rag right |
| 767 |
.FOOTERS |
| 768 |
.LINEBREAK_CHAR * |
| 769 |
</span> |
| 770 |
</p> |
| 771 |
|
| 772 |
<h4 class="docs" style="margin-top: -1.5em; margin-bottom: -.5em;">Step 4</h4> |
| 773 |
|
| 774 |
<p> |
| 775 |
The final step in setting up a document is telling mom to start |
| 776 |
document processing. It’s a no-brainer, just the single |
| 777 |
macro START. Other than PRINTSTYLE, it’s the only macro |
| 778 |
required for document processing. |
| 779 |
</p> |
| 780 |
|
| 781 |
<p> |
| 782 |
Here’s the complete setup for <i>My Pulitzer Winner</i>: |
| 783 |
<br/> |
| 784 |
<span class="pre-in-pp"> |
| 785 |
.TITLE "My Pulitzer Winner" |
| 786 |
.AUTHOR "Joe Blow" |
| 787 |
.DRAFT 7 |
| 788 |
.REVISION 39 |
| 789 |
\# |
| 790 |
.DOCTYPE DEFAULT |
| 791 |
.PRINTSTYLE TYPESET |
| 792 |
.COPYSTYLE DRAFT |
| 793 |
\# |
| 794 |
.FAMILY H |
| 795 |
.PT_SIZE 12 |
| 796 |
.LS 14 |
| 797 |
.QUAD LEFT \"ie rag right |
| 798 |
.FOOTERS |
| 799 |
.LINEBREAK_CHAR * |
| 800 |
\# |
| 801 |
.START |
| 802 |
</span> |
| 803 |
As pointed out earlier, Joe Blow is no typographer. Given that all he |
| 804 |
needs is a printed draft of his work, a simpler setup would have been: |
| 805 |
<br/> |
| 806 |
<span class="pre-in-pp"> |
| 807 |
.TITLE "My Pulitzer Winner" |
| 808 |
.AUTHOR "Joe Blow" |
| 809 |
.DRAFT 7 |
| 810 |
.REVISION 39 |
| 811 |
\# |
| 812 |
.PRINTSTYLE TYPEWRITE |
| 813 |
.COPYSTYLE DRAFT |
| 814 |
\# |
| 815 |
.START |
| 816 |
</span> |
| 817 |
<kbd>.PRINTSTYLE TYPEWRITE</kbd>, above, means that Joe’s |
| 818 |
work will come out “typewritten, double-spaced”, |
| 819 |
making the blue-pencilling he (or someone else) is sure to do much |
| 820 |
easier (which is why many publishers and agents still insist on |
| 821 |
typewritten, double-spaced copy). |
| 822 |
</p> |
| 823 |
|
| 824 |
<p> |
| 825 |
When J. Blow stops re-writing and decides to print off a final, |
| 826 |
typeset copy of his work for the world to see, he need only make two |
| 827 |
changes to the (simplified) setup: |
| 828 |
<br/> |
| 829 |
<span class="pre-in-pp"> |
| 830 |
.TITLE "My Pulitzer Winner" |
| 831 |
.AUTHOR "Joe Blow" |
| 832 |
.DRAFT 7 |
| 833 |
.REVISION 39 |
| 834 |
\# |
| 835 |
.PRINTSTYLE TYPESET \"first change |
| 836 |
.COPYSTYLE FINAL \"second change |
| 837 |
\# |
| 838 |
.START |
| 839 |
</span> |
| 840 |
In the above, <kbd>.DRAFT 7, .REVISION 39,</kbd> and |
| 841 |
<kbd>.COPYSTYLE FINAL</kbd> are actually superfluous. The draft |
| 842 |
and revision numbers aren’t used when COPYSTYLE is FINAL, |
| 843 |
and <b>COPYSTYLE FINAL</b> is mom’s default unless you tell |
| 844 |
her otherwise. |
| 845 |
</p> |
| 846 |
|
| 847 |
<p> |
| 848 |
But... to judge from the number of drafts already, |
| 849 |
J. Blow may very well decide his “final” version still |
| 850 |
isn’t up to snuff. Hence, he might as well leave in the |
| 851 |
superfluous macros. That way, when draft 7, rev. 62 becomes draft |
| 852 |
8, rev. 1, he’ll be ready to tackle his Pulitzer winner again. |
| 853 |
</p> |
| 854 |
</div> |
| 855 |
|
| 856 |
<div class="rule-short"><hr/></div> |
| 857 |
|
| 858 |
<!-- ======================================================================== --> |
| 859 |
|
| 860 |
<h2 id="reference-macros" class="macro-group">The reference macros (metadata)</h2> |
| 861 |
|
| 862 |
<p> |
| 863 |
The reference macros give mom the metadata she needs to generate |
| 864 |
<a href="definitions.html#docheader">docheaders</a>, |
| 865 |
<a href="definitions.html#header">page headers</a>, |
| 866 |
and |
| 867 |
<a href="cover.html#cover-top">covers</a>. |
| 868 |
They must go at the top of any file that uses mom’s document |
| 869 |
processing macros. |
| 870 |
</p> |
| 871 |
|
| 872 |
<div class="macro-list-container"> |
| 873 |
<h3 id="index-reference" class="macro-list">Reference macros</h3> |
| 874 |
|
| 875 |
<ul class="macro-list"> |
| 876 |
<li><a href="#title">TITLE</a> – title of a story, article, etc</li> |
| 877 |
<li><a href="#doc-title">DOCTITLE</a> – title of a book, or any collated document</li> |
| 878 |
<li><a href="#subtitle">SUBTITLE</a></li> |
| 879 |
<li><a href="#author">AUTHOR</a></li> |
| 880 |
<li><a href="#chapter">CHAPTER</a> – the chapter number |
| 881 |
<ul> |
| 882 |
<li class="sublist"><a href="#chapter-string">CHAPTER_STRING</a> – “Chapter”, “CHAPTER”, “ChapĂ®tre”, etc</li> |
| 883 |
</ul></li> |
| 884 |
<li><a href="#chapter-title">CHAPTER_TITLE</a></li> |
| 885 |
<li><a href="#draft">DRAFT</a> |
| 886 |
<ul> |
| 887 |
<li class="sublist"><a href="#draft-string">DRAFT_STRING</a> – “Draft”, “DRAFT”, “Jet”, etc</li> |
| 888 |
</ul></li> |
| 889 |
<li><a href="#revision">REVISION</a> |
| 890 |
<ul> |
| 891 |
<li class="sublist"><a href="#revision-string">REVISION_STRING</a> – “Revision”, “Rev.”, “RĂ©vision”, etc</li> |
| 892 |
</ul></li> |
| 893 |
<li><a href="#copyright">COPYRIGHT</a></li> |
| 894 |
<li><a href="#misc">MISC</a></li> |
| 895 |
<li><a href="#covertitle">COVERTITLE</a> – frontispiece, title page, etc</li> |
| 896 |
<li><a href="#doc-covertitle">DOC_COVERTITLE</a> – book cover, collated document cover, etc</li> |
| 897 |
<li><a href="#pdftitle">PDF_TITLE</a> – window title for PDF viewers</li> |
| 898 |
<li><a href="#toc-heading">TOC_HEADING</a> – single, non-pagenumbered line of text in table of contents</li> |
| 899 |
</ul> |
| 900 |
</div> |
| 901 |
|
| 902 |
<!-- -TITLE- --> |
| 903 |
|
| 904 |
<div class="macro-id-overline"> |
| 905 |
<h3 id="title" class="macro-id">TITLE</h3> |
| 906 |
</div> |
| 907 |
|
| 908 |
<div class="box-macro-args"> |
| 909 |
Macro: <b>TITLE</b> <kbd class="macro-args">[COVER | DOC_COVER] "<title string>" ["<2nd line>" ["<3rd line>" ... ] ]</kbd> |
| 910 |
</div> |
| 911 |
<p class="requires"> |
| 912 |
• Arguments must be enclosed in double-quotes |
| 913 |
</p> |
| 914 |
|
| 915 |
<p> |
| 916 |
The title string can be caps or caps/lower-case; it’s up to you. In |
| 917 |
<a href="#printstyle">PRINTSTYLE TYPESET</a>, |
| 918 |
the title will appear in the |
| 919 |
<a href="definitions.html#docheader">docheader</a> |
| 920 |
exactly as you typed it. However, mom converts the title to all |
| 921 |
caps in |
| 922 |
<a href="definitions.html#header">page headers</a> |
| 923 |
unless you turn that feature off (see |
| 924 |
<a href="headfootpage.html#_caps">HEADER_<POSITION>_CAPS</a>). |
| 925 |
In |
| 926 |
<a href="#printstyle">PRINTSTYLE TYPEWRITE</a>, |
| 927 |
the title always gets converted to caps. |
| 928 |
</p> |
| 929 |
|
| 930 |
<p> |
| 931 |
TITLE accepts multiple arguments, each surrounded by double-quotes. |
| 932 |
Each argument is printed on a separate line, permitting you to |
| 933 |
create multi-line titles in your docheaders. |
| 934 |
</p> |
| 935 |
|
| 936 |
<div class="box-tip"> |
| 937 |
<p class="tip"> |
| 938 |
<span class="note">Note:</span> |
| 939 |
If your <kbd><a href="#doctype">DOCTYPE</a></kbd> is CHAPTER, TITLE |
| 940 |
should be the title of the opus, not “CHAPTER whatever”. |
| 941 |
</p> |
| 942 |
</div> |
| 943 |
|
| 944 |
<p> |
| 945 |
If the optional argument, <kbd>COVER</kbd> or <kbd>DOC_COVER</kbd>, |
| 946 |
is given to TITLE, the remaining string arguments represent the |
| 947 |
title that will appear on cover or document cover pages (see the |
| 948 |
<a href="cover.html#cover-intro">Introduction to cover pages</a> |
| 949 |
for a description of the difference between “document |
| 950 |
covers” and “covers”). Thus, it is possible |
| 951 |
to have differing titles appear on the document cover, the cover |
| 952 |
(“title”) page, and in the document header. For |
| 953 |
example, |
| 954 |
<br/> |
| 955 |
<span class="pre-in-pp"> |
| 956 |
.TITLE DOC_COVER "Collected Essays" |
| 957 |
.TITLE COVER "The Meming of Meaning" |
| 958 |
.TITLE "LOL Cat Corruption" |
| 959 |
.AUTHOR "D. Rawkins" |
| 960 |
.DOC_COVER TITLE AUTHOR |
| 961 |
.COVER TITLE |
| 962 |
.START |
| 963 |
</span> |
| 964 |
creates a document cover with “Collected Essays” and the |
| 965 |
author, a cover page with “The Meming of Meaning”, |
| 966 |
and a docheader title, “LOL Cat Corruption” at the top |
| 967 |
of the essay. |
| 968 |
</p> |
| 969 |
|
| 970 |
<p> |
| 971 |
Alternatively, you can use the macros |
| 972 |
<a href="#doc-covertitle">DOC_COVERTITLE</a> |
| 973 |
and |
| 974 |
<a href="#covertitle">COVERTITLE</a> |
| 975 |
to accomplish the same thing. |
| 976 |
</p> |
| 977 |
|
| 978 |
<h4 id="no-toc-entry" class="docs">Table of Contents and PDF outline exceptions</h4> |
| 979 |
<p> |
| 980 |
Except for standalone documents (i.e. non-collated documents such |
| 981 |
as essays), the TITLE string appears as an entry in the Table of |
| 982 |
Contents. If you would like a document section not to appear in the |
| 983 |
Table of Contents (e.g. the copyright page), invoke the macro |
| 984 |
<kbd>.NO_TOC_ENTRY</kbd> after <kbd>.TITLE</kbd>. Equally, if you |
| 985 |
want the PDF outline to omit a title entry, invoke |
| 986 |
<kbd>.SKIP_PDF_OUTLINE</kbd> after <kbd>.TITLE</kbd>. This is |
| 987 |
particularly useful if your document has a title page but no |
| 988 |
docheader, beginning instead with a |
| 989 |
<a href="docelement.html#heading">HEADING</a>. |
| 990 |
</p> |
| 991 |
|
| 992 |
|
| 993 |
<!-- -DOCTITLE- --> |
| 994 |
|
| 995 |
<div class="macro-id-overline"> |
| 996 |
<h3 id="doc-title" class="macro-id">DOCUMENT TITLE</h3> |
| 997 |
</div> |
| 998 |
|
| 999 |
<div class="box-macro-args"> |
| 1000 |
Macro: <b>DOCTITLE</b> <kbd class="macro-args">"<overall document title>" ["<2nd line>" ["<3rd line>" ... ] ]</kbd> |
| 1001 |
</div> |
| 1002 |
<p class="requires"> |
| 1003 |
• Arguments must be enclosed in double-quotes |
| 1004 |
</p> |
| 1005 |
|
| 1006 |
<div class="box-tip"> |
| 1007 |
<p class="tip"> |
| 1008 |
<span class="note">Note:</span> |
| 1009 |
This macro should be used only if your <a |
| 1010 |
href="#doctype">DOCTYPE</a> is <kbd>DEFAULT</kbd> (which is |
| 1011 |
mom’s default). If your DOCTYPE is CHAPTER, use |
| 1012 |
<a href="#title">TITLE</a> |
| 1013 |
to set the overall document title for cover pages, document cover |
| 1014 |
pages, and page headers or footers. |
| 1015 |
</p> |
| 1016 |
</div> |
| 1017 |
|
| 1018 |
<p style="margin-top: -.5em;"> |
| 1019 |
When you’re creating a single document, say, an essay or a |
| 1020 |
short story, you have no need of this macro. |
| 1021 |
<a href="#title">TITLE</a> |
| 1022 |
takes care of all your title needs. |
| 1023 |
</p> |
| 1024 |
|
| 1025 |
<p> |
| 1026 |
However if you’re |
| 1027 |
<a href="rectoverso.html#collate">collating</a> |
| 1028 |
a bunch of documents together, say, to print out a report containing |
| 1029 |
many articles with different titles, or a book of short stories with |
| 1030 |
different authors, you need DOCTITLE. |
| 1031 |
</p> |
| 1032 |
|
| 1033 |
<p> |
| 1034 |
DOCTITLE tells mom the title of the complete document (as opposed to |
| 1035 |
the title of each article or entitled section), and appears |
| 1036 |
</p> |
| 1037 |
|
| 1038 |
<ol style="list-style-type: lower-alpha"> |
| 1039 |
<li>as the window title in PDF viewers (e.g. Okular or Evince)</li> |
| 1040 |
<li>in the initial rightmost position of page headers in the document</li> |
| 1041 |
</ol> |
| 1042 |
|
| 1043 |
<p> |
| 1044 |
Moreover, DOCTITLE does not appear in the |
| 1045 |
<a href="definitions.html#pdfoutline">PDF outline</a>, |
| 1046 |
as its presence in window title would make it redundant. |
| 1047 |
</p> |
| 1048 |
|
| 1049 |
<p> |
| 1050 |
The doctitle string can be caps or caps/lower-case; it’s up to |
| 1051 |
you. In |
| 1052 |
<a href="#printstyle">PRINTSTYLE TYPESET</a>, |
| 1053 |
by default, the doctitle in |
| 1054 |
<a href="definitions.html#header">page headers</a> |
| 1055 |
is all in caps, unless you turn that feature off (see |
| 1056 |
<a href="headfootpage.html#_caps">HEADER_<POSITION>_CAPS</a>). |
| 1057 |
In |
| 1058 |
<a href="#printstyle">PRINTSTYLE TYPEWRITE</a>, |
| 1059 |
the doctitle always gets converted to caps. |
| 1060 |
</p> |
| 1061 |
|
| 1062 |
<p> |
| 1063 |
DOCTITLE accepts multiple arguments, each surrounded |
| 1064 |
by double-quotes. Each argument is printed on a separate line, |
| 1065 |
permitting you to create multi-line document titles for use on |
| 1066 |
<a href="cover.html#cover">Covers</a> |
| 1067 |
and/or |
| 1068 |
<a href="cover.html#doc-cover">Doc covers</a>. |
| 1069 |
</p> |
| 1070 |
|
| 1071 |
<!-- -SUBTITLE- --> |
| 1072 |
|
| 1073 |
<div class="macro-id-overline"> |
| 1074 |
<h3 id="subtitle" class="macro-id">SUBTITLE</h3> |
| 1075 |
</div> |
| 1076 |
|
| 1077 |
<div class="box-macro-args"> |
| 1078 |
Macro: <b>SUBTITLE</b> <kbd class="macro-args">[COVER | DOC_COVER] "<subtitle>" ["<2nd line>" ["<3rd line>" ... ] ]</kbd> |
| 1079 |
</div> |
| 1080 |
<p class="requires"> |
| 1081 |
• String arguments must be enclosed in double-quotes |
| 1082 |
</p> |
| 1083 |
|
| 1084 |
<p> |
| 1085 |
The subtitle string can be caps or caps/lower-case. I recommend |
| 1086 |
caps/lower case. |
| 1087 |
</p> |
| 1088 |
|
| 1089 |
<p> |
| 1090 |
SUBTITLE accepts multiple arguments, each surrounded |
| 1091 |
by double-quotes. Each argument is printed on a separate line, |
| 1092 |
permitting you to create multi-line subtitles. |
| 1093 |
</p> |
| 1094 |
|
| 1095 |
<p> |
| 1096 |
If the optional argument, <kbd>COVER</kbd> or <kbd>DOC_COVER</kbd>, |
| 1097 |
is given to SUBTITLE, the remaining string |
| 1098 |
arguments represent the subtitle that will appear on cover or |
| 1099 |
document cover pages (see the |
| 1100 |
<a href="cover.html#cover-intro">Introduction to cover pages</a> |
| 1101 |
for a description of the difference between “document |
| 1102 |
covers” and “covers”). Thus, it is possible to have |
| 1103 |
differing subtitles appear on the document cover, the cover |
| 1104 |
(“title”) page, and in the document header. An extreme |
| 1105 |
example would be: |
| 1106 |
<br/> |
| 1107 |
<span class="pre-in-pp"> |
| 1108 |
.SUBTITLE "The Docheader Subtitle" |
| 1109 |
.SUBTITLE DOC_COVER "The Document Cover Subtitle" |
| 1110 |
.SUBTITLE COVER "The Cover Subtitle" |
| 1111 |
</span> |
| 1112 |
The first invocation of <kbd>.SUBTITLE</kbd> establishes the |
| 1113 |
subtitle that appears in the docheader at the top of the first page |
| 1114 |
of a document. The second invocation establishes the subtitle that |
| 1115 |
appears on the document cover; the third establishes the subtitle |
| 1116 |
that appears on the cover (“title”) page. |
| 1117 |
</p> |
| 1118 |
|
| 1119 |
<p> |
| 1120 |
If you don’t require differing subtitles for doc cover and cover |
| 1121 |
pages, <kbd>.SUBTITLE</kbd>, without the optional first argument, is |
| 1122 |
sufficient, provided you give the word, <kbd>SUBTITLE</kbd>, as an |
| 1123 |
argument to the macro |
| 1124 |
<a href="cover.html#doc-cover">DOC_COVER</a> |
| 1125 |
or |
| 1126 |
<a href="cover.html#cover">COVER</a> |
| 1127 |
</p> |
| 1128 |
|
| 1129 |
<!-- -AUTHOR- --> |
| 1130 |
|
| 1131 |
<div class="macro-id-overline"> |
| 1132 |
<h3 id="author" class="macro-id">AUTHOR</h3> |
| 1133 |
</div> |
| 1134 |
|
| 1135 |
<div class="box-macro-args"> |
| 1136 |
Macro: <b>AUTHOR</b> <kbd class="macro-args">[COVER | DOC_COVER] "<author>" [ "<author2>" ["<author3>" ... ] ]</kbd> |
| 1137 |
</div> |
| 1138 |
|
| 1139 |
<p class="alias" style="margin-bottom: 0;"> |
| 1140 |
<i>Alias:</i> <b>EDITOR</b> |
| 1141 |
</p> |
| 1142 |
<p class="requires"> |
| 1143 |
• String arguments must be enclosed in double-quotes |
| 1144 |
</p> |
| 1145 |
|
| 1146 |
<p> |
| 1147 |
Each author string can hold as many names as you like, e.g. |
| 1148 |
<br/> |
| 1149 |
<span class="pre-in-pp" style="margin-bottom: -1em;"> |
| 1150 |
.AUTHOR "Joe Blow" |
| 1151 |
</span> |
| 1152 |
or |
| 1153 |
<br/> |
| 1154 |
<span class="pre-in-pp" style="margin-top: -.5em;"> |
| 1155 |
.AUTHOR "Joe Blow, Jane Doe" "John Hancock" |
| 1156 |
</span> |
| 1157 |
Mom prints each string that’s enclosed in double-quotes on a |
| 1158 |
separate line in the |
| 1159 |
<a href="definitions.html#docheader">docheader</a>, |
| 1160 |
however only the first string appears in |
| 1161 |
<a href="definitions.html#header">page headers</a>. |
| 1162 |
If you want mom to put something else in the author part of page |
| 1163 |
headers (say, just the last names of a document’s two |
| 1164 |
authors), redefine the appropriate part of the header (see |
| 1165 |
<a href="headfootpage.html#header-control">header/footer control</a>). |
| 1166 |
</p> |
| 1167 |
|
| 1168 |
<p> |
| 1169 |
The strings can be caps or caps/lower-case. I recommend caps/lower |
| 1170 |
case. |
| 1171 |
</p> |
| 1172 |
|
| 1173 |
<p> |
| 1174 |
If the optional argument, <kbd>COVER</kbd> or <kbd>DOC_COVER</kbd>, |
| 1175 |
is given to AUTHOR, the remaining string arguments represent the |
| 1176 |
author(s) that will appear on cover or document cover pages (see the |
| 1177 |
<a href="cover.html#cover-intro">Introduction to cover pages</a> |
| 1178 |
for a description of the difference between “document |
| 1179 |
covers” and “covers”). Thus, it is possible |
| 1180 |
to have differing authors on the document cover, the cover |
| 1181 |
(“title”) page, in the document first-page header and |
| 1182 |
subsequent page headers/footers. An example might be: |
| 1183 |
<br/> |
| 1184 |
<span class="pre-in-pp"> |
| 1185 |
.AUTHOR "Joe Blow" |
| 1186 |
.EDITOR DOC_COVER "John Smith" "and" "Jane Doe" \" EDITOR is an alias for AUTHOR |
| 1187 |
.AUTHOR COVER "Joe Blow" "(assisted by Jane Doe)" |
| 1188 |
</span> |
| 1189 |
The first invocation of <kbd>.AUTHOR</kbd> establishes the author |
| 1190 |
that appears in the docheader at the top of the first page of |
| 1191 |
a document and in subsequent page headers/footers. The second |
| 1192 |
invocation establishes the authors (editors, in this instance) that |
| 1193 |
appear on the document cover; the third establishes the author(s) |
| 1194 |
that appear(s) on the cover (“title”) page. |
| 1195 |
</p> |
| 1196 |
|
| 1197 |
<p> |
| 1198 |
If you don’t require differing authors for doc cover and cover |
| 1199 |
pages, <kbd>.AUTHOR</kbd>, without the optional first argument, is |
| 1200 |
sufficient, provided you give the word, <kbd>AUTHOR</kbd> as an |
| 1201 |
argument to the macro |
| 1202 |
<a href="cover.html#doc-cover">DOC_COVER</a> |
| 1203 |
or |
| 1204 |
<a href="cover.html#cover">COVER</a> |
| 1205 |
</p> |
| 1206 |
|
| 1207 |
<!-- -CHAPTER- --> |
| 1208 |
|
| 1209 |
<div class="macro-id-overline"> |
| 1210 |
<h3 id="chapter" class="macro-id">CHAPTER</h3> |
| 1211 |
</div> |
| 1212 |
|
| 1213 |
<div class="box-macro-args"> |
| 1214 |
Macro: <b>CHAPTER</b> <kbd class="macro-args"><chapter number></kbd> |
| 1215 |
</div> |
| 1216 |
|
| 1217 |
<p> |
| 1218 |
The chapter number can be in any form you like—a digit, a roman |
| 1219 |
numeral, a word. If you choose |
| 1220 |
<a href="#doctype">DOCTYPE CHAPTER</a>, |
| 1221 |
mom prints whatever argument you pass CHAPTER beside the word, |
| 1222 |
“Chapter”, as a single line |
| 1223 |
<a href="definitions.html#docheader">docheader</a>. |
| 1224 |
She also puts the same thing in the middle of |
| 1225 |
<a href="definitions.html#header">page headers</a>. |
| 1226 |
</p> |
| 1227 |
|
| 1228 |
<p> |
| 1229 |
Please note that if your argument to CHAPTER runs to more than one |
| 1230 |
word, you must enclose the argument in double-quotes. |
| 1231 |
</p> |
| 1232 |
|
| 1233 |
<p> |
| 1234 |
If you’re not using DOCTYPE CHAPTER, the macro can |
| 1235 |
be used to identify any document as a chapter <i>for the purpose of |
| 1236 |
prepending a chapter number to numbered head elements</i>, provided |
| 1237 |
you pass it a |
| 1238 |
<a href="definitions.html#numericargument">numeric argument</a>. |
| 1239 |
See |
| 1240 |
<a href="docelement.html#prefix-chapter-number">PREFIX_CHAPTER_NUMBER</a>. |
| 1241 |
</p> |
| 1242 |
|
| 1243 |
<!-- -CHAPTER_STRING- --> |
| 1244 |
|
| 1245 |
<h3 id="chapter-string" class="docs">Chapter string</h3> |
| 1246 |
|
| 1247 |
<p> |
| 1248 |
If you’re not writing in English, you can ask mom to use the |
| 1249 |
word for “chapter” in your own language by telling her |
| 1250 |
what it is with the CHAPTER_STRING macro, like this: |
| 1251 |
<br/> |
| 1252 |
<span class="pre"> |
| 1253 |
.CHAPTER_STRING "Chapître" |
| 1254 |
</span> |
| 1255 |
</p> |
| 1256 |
|
| 1257 |
<p> |
| 1258 |
If you would like a blank chapter string, i.e., you’d like the |
| 1259 |
chapter number to appear without “Chapter” beforehand, |
| 1260 |
enter <kbd>.CHAPTER_STRING "\&"</kbd>. |
| 1261 |
</p> |
| 1262 |
|
| 1263 |
<!-- -CHAPTER_TITLE- --> |
| 1264 |
|
| 1265 |
<div class="macro-id-overline"> |
| 1266 |
<h3 id="chapter-title" class="macro-id">CHAPTER_TITLE</h3> |
| 1267 |
</div> |
| 1268 |
|
| 1269 |
<div class="box-macro-args"> |
| 1270 |
Macro: <b>CHAPTER_TITLE</b> <kbd class="macro-args">"<chapter title>" ["<2nd line>" ["<3rd line>" ... ] ]</kbd> |
| 1271 |
</div> |
| 1272 |
<p class="requires"> |
| 1273 |
• Arguments must be enclosed in double-quotes |
| 1274 |
</p> |
| 1275 |
|
| 1276 |
<p> |
| 1277 |
If, either in addition to or instead of “Chapter |
| 1278 |
<n>” appearing at the top of chapters, you want your |
| 1279 |
chapter to have a title, use CHAPTER_TITLE, with your title enclosed |
| 1280 |
in double-quotes, like this: |
| 1281 |
<br/> |
| 1282 |
<span class="pre"> |
| 1283 |
.CHAPTER_TITLE "The DMCA Nazis" |
| 1284 |
</span> |
| 1285 |
</p> |
| 1286 |
|
| 1287 |
<p> |
| 1288 |
CHAPTER_TITLE accepts multiple arguments, each surrounded by |
| 1289 |
double-quotes. Each argument is printed on a separate line, |
| 1290 |
permitting you to create multi-line chapter titles in your |
| 1291 |
docheaders. |
| 1292 |
</p> |
| 1293 |
|
| 1294 |
<p> |
| 1295 |
If you’ve used |
| 1296 |
<a href="#chapter">CHAPTER</a> |
| 1297 |
to give the chapter a number, both “Chapter <n>” |
| 1298 |
and the chapter title will appear at the top of the chapter, like |
| 1299 |
this: |
| 1300 |
<br/> |
| 1301 |
<span class="pre-in-pp"> |
| 1302 |
Chapter 1 |
| 1303 |
The DMCA Nazis |
| 1304 |
</span> |
| 1305 |
In such a case, by default, only the chapter’s title will appear in |
| 1306 |
the |
| 1307 |
<a href="definitions.html#header">page headers</a>, |
| 1308 |
not “Chapter <n>”. |
| 1309 |
</p> |
| 1310 |
|
| 1311 |
<p> |
| 1312 |
If you omit CHAPTER when setting up your reference macros, only the |
| 1313 |
title will appear, both at the top of page one and in subsequent |
| 1314 |
page headers. |
| 1315 |
</p> |
| 1316 |
|
| 1317 |
<p> |
| 1318 |
The style of the chapter title can be altered by |
| 1319 |
<a href="docelement.html#docelement-control">control macros</a>, |
| 1320 |
e.g. CHAPTER_TITLE_FAMILY, CHAPTER_TITLE_FONT, etc. The default |
| 1321 |
family, font and point size are Times Roman, Bold Italic, 4 points |
| 1322 |
larger than |
| 1323 |
<a href="definitions.html#running">running text</a>. |
| 1324 |
</p> |
| 1325 |
|
| 1326 |
<!-- -DRAFT- --> |
| 1327 |
|
| 1328 |
<div class="macro-id-overline"> |
| 1329 |
<h3 id="draft" class="macro-id">DRAFT</h3> |
| 1330 |
</div> |
| 1331 |
|
| 1332 |
<div class="box-macro-args"> |
| 1333 |
Macro: <b>DRAFT</b> <kbd class="macro-args"><draft number></kbd> |
| 1334 |
</div> |
| 1335 |
|
| 1336 |
<p> |
| 1337 |
DRAFT only gets used with |
| 1338 |
<a href="#copystyle">COPYSTYLE DRAFT</a>. |
| 1339 |
If the COPYSTYLE is FINAL (the default), mom ignores DRAFT. DRAFT |
| 1340 |
accepts both alphabetic and numeric arguments, hence it’s |
| 1341 |
possible to do either |
| 1342 |
<br/> |
| 1343 |
<span class="pre"> |
| 1344 |
.DRAFT 2 |
| 1345 |
or |
| 1346 |
.DRAFT Two |
| 1347 |
</span> |
| 1348 |
</p> |
| 1349 |
|
| 1350 |
<p> |
| 1351 |
Mom prints the argument to <kbd>.DRAFT</kbd> (i.e. the draft number) |
| 1352 |
beside the word “Draft” in the middle part of |
| 1353 |
<a href="definitions.html#header">page headers</a>. |
| 1354 |
</p> |
| 1355 |
|
| 1356 |
<div class="box-tip"> |
| 1357 |
<p class="tip"> |
| 1358 |
<span class="note">A small word of caution:</span> |
| 1359 |
If your argument to <kbd>.DRAFT</kbd> is more than one word long, |
| 1360 |
you must enclose the argument in double-quotes. |
| 1361 |
</p> |
| 1362 |
</div> |
| 1363 |
|
| 1364 |
<p> |
| 1365 |
You may, if you wish, invoke <kbd>.DRAFT</kbd> without an |
| 1366 |
argument, in which case, no draft number will be printed beside |
| 1367 |
“Draft” in headers or footers. |
| 1368 |
</p> |
| 1369 |
|
| 1370 |
<!-- -DRAFT_STRING- --> |
| 1371 |
|
| 1372 |
<h3 id="draft-string" class="docs">The draft string</h3> |
| 1373 |
|
| 1374 |
<p> |
| 1375 |
If you’re not writing in English, you can ask mom |
| 1376 |
to use the word for “draft” in your own language by |
| 1377 |
telling her what it is with the DRAFT_STRING macro, |
| 1378 |
like this: |
| 1379 |
<br/> |
| 1380 |
<span class="pre"> |
| 1381 |
.DRAFT_STRING "Jet" |
| 1382 |
</span> |
| 1383 |
</p> |
| 1384 |
|
| 1385 |
<p> |
| 1386 |
Equally, DRAFT_STRING can be used to roll your own solution to |
| 1387 |
something other than the word “Draft.” For example, you |
| 1388 |
might want “Trial run alpha-three” to appear in the |
| 1389 |
headers of a draft version. You’d accomplish this by doing |
| 1390 |
<br/> |
| 1391 |
<span class="pre"> |
| 1392 |
.DRAFT alpha-three |
| 1393 |
.DRAFT_STRING "Trial run" |
| 1394 |
</span> |
| 1395 |
</p> |
| 1396 |
|
| 1397 |
<p> |
| 1398 |
If you wanted only “Trial run” to appear, entering |
| 1399 |
<kbd>.DRAFT</kbd> without an argument as well as |
| 1400 |
<kbd>.DRAFT_STRING "Trial run"</kbd> is how you’d do it. |
| 1401 |
</p> |
| 1402 |
|
| 1403 |
<div class="box-tip"> |
| 1404 |
<p class="tip"> |
| 1405 |
<span class="note">Note:</span> |
| 1406 |
If you define both a blank <kbd>.DRAFT</kbd> and a blank |
| 1407 |
<kbd>.DRAFT_STRING</kbd>, mom skips the draft field in headers |
| 1408 |
entirely. If this is what you want, this is also the only way |
| 1409 |
to do it. Simply omitting invocations of <kbd>.DRAFT</kbd> and |
| 1410 |
<kbd>.DRAFT_STRING</kbd> will result in mom using her default, which |
| 1411 |
is to print “Draft <number>”. |
| 1412 |
</p> |
| 1413 |
</div> |
| 1414 |
|
| 1415 |
<!-- -REVISION- --> |
| 1416 |
|
| 1417 |
<div class="macro-id-overline"> |
| 1418 |
<h3 id="revision" class="macro-id">REVISION</h3> |
| 1419 |
</div> |
| 1420 |
|
| 1421 |
<div class="box-macro-args"> |
| 1422 |
Macro: <b>REVISION</b> <kbd class="macro-args"><revision number></kbd> |
| 1423 |
</div> |
| 1424 |
|
| 1425 |
<p> |
| 1426 |
REVISION only gets used with |
| 1427 |
<a href="#copystyle">COPYSTYLE DRAFT</a>. |
| 1428 |
If the COPYSTYLE is FINAL (the default), mom ignores the REVISION |
| 1429 |
macro. REVISION accepts both alphabetic and numeric arguments, hence |
| 1430 |
it’s possible to do either |
| 1431 |
<br/> |
| 1432 |
<span class="pre" style="margin-bottom: -1em;"> |
| 1433 |
.REVISION 2 |
| 1434 |
</span> |
| 1435 |
or |
| 1436 |
<span class="pre" style="margin-top: -.5em;"> |
| 1437 |
.REVISION Two |
| 1438 |
</span> |
| 1439 |
</p> |
| 1440 |
|
| 1441 |
<p> |
| 1442 |
Mom prints the revision number beside the shortform |
| 1443 |
“Rev.” in the middle part of |
| 1444 |
<a href="definitions.html#header">page headers</a>. |
| 1445 |
</p> |
| 1446 |
|
| 1447 |
<div class="box-tip"> |
| 1448 |
<p class="tip"> |
| 1449 |
<span class="note">A small word of caution:</span> |
| 1450 |
If your argument to <kbd>.REVISION</kbd> is more than one word long, |
| 1451 |
you must enclose the argument in double-quotes. |
| 1452 |
</p> |
| 1453 |
</div> |
| 1454 |
|
| 1455 |
<p> |
| 1456 |
You may, if you wish, invoke <kbd>.REVISION</kbd> without an |
| 1457 |
argument, in which case, no revision number will be printed beside |
| 1458 |
“Rev.” in headers or footers. |
| 1459 |
</p> |
| 1460 |
|
| 1461 |
<!-- -REVISION_STRING- --> |
| 1462 |
|
| 1463 |
<h3 id="revision-string" class="docs">The revision string</h3> |
| 1464 |
|
| 1465 |
<p> |
| 1466 |
If you’re not writing in English, you can ask mom |
| 1467 |
to use the word for “revision,” or a shortform |
| 1468 |
thereof, in your own language by telling her what it is with the |
| 1469 |
REVISION_STRING macro, like this: |
| 1470 |
<br/> |
| 1471 |
<span class="pre"> |
| 1472 |
.REVISION_STRING "Rév." |
| 1473 |
</span> |
| 1474 |
</p> |
| 1475 |
|
| 1476 |
<p> |
| 1477 |
Additionally, you may sometimes want to make use of mom’s |
| 1478 |
<a href="#copystyle">COPYSTYLE DRAFT</a> |
| 1479 |
but not actually require any draft information. For example, |
| 1480 |
you might like mom to indicate only the revision number of |
| 1481 |
your document. The way to do that is to define an empty |
| 1482 |
<kbd>.DRAFT</kbd> and <kbd>.DRAFT_STRING</kbd> in addition to |
| 1483 |
<kbd>.REVISION</kbd>, like this: |
| 1484 |
<br/> |
| 1485 |
<span class="pre"> |
| 1486 |
.DRAFT |
| 1487 |
.DRAFT_STRING |
| 1488 |
.REVISION 2 |
| 1489 |
</span> |
| 1490 |
</p> |
| 1491 |
|
| 1492 |
<p> |
| 1493 |
Equally, if you want to roll your own solution to what revision |
| 1494 |
information appears in headers, you could do something like this: |
| 1495 |
<br/> |
| 1496 |
<span class="pre"> |
| 1497 |
.DRAFT |
| 1498 |
.DRAFT_STRING |
| 1499 |
.REVISION "two-twenty-two" |
| 1500 |
.REVISION_STRING "Revision" |
| 1501 |
</span> |
| 1502 |
</p> |
| 1503 |
|
| 1504 |
<p> |
| 1505 |
The above, naturally, has no draft information. If you want to roll |
| 1506 |
your own <kbd>.DRAFT</kbd> and/or <kbd>.DRAFT_STRING</kbd> as well, |
| 1507 |
simply supply arguments to either or both. |
| 1508 |
</p> |
| 1509 |
|
| 1510 |
<!-- -COPYRIGHT- --> |
| 1511 |
|
| 1512 |
<div class="macro-id-overline"> |
| 1513 |
<h3 id="copyright" class="macro-id">COPYRIGHT</h3> |
| 1514 |
</div> |
| 1515 |
|
| 1516 |
<div class="box-macro-args"> |
| 1517 |
Macro: <b>COPYRIGHT</b> <kbd class="macro-args">[COVER | DOC_COVER] "<copyright info>"</kbd> |
| 1518 |
</div> |
| 1519 |
|
| 1520 |
<p class="requires"> |
| 1521 |
• Argument must be enclosed in double-quotes |
| 1522 |
</p> |
| 1523 |
|
| 1524 |
<p> |
| 1525 |
The required argument to COPYRIGHT is only used on cover or doc cover |
| 1526 |
pages, and then only if the argument COPYRIGHT is passed to |
| 1527 |
<a href="cover.html#cover">COVER</a> |
| 1528 |
or |
| 1529 |
<a href="cover.html#doc-cover">DOC_COVER</a>. |
| 1530 |
Do not include the copyright symbol in the argument passed to |
| 1531 |
COPYRIGHT; mom puts it in for you. |
| 1532 |
</p> |
| 1533 |
|
| 1534 |
<p> |
| 1535 |
The optional argument, <kbd>COVER</kbd> or <kbd>DOC_COVER</kbd>, |
| 1536 |
should only be used if you have both a doc cover and a cover and want |
| 1537 |
differing copyright information on each (see the |
| 1538 |
<a href="cover.html#cover-intro">Introduction to cover pages</a> |
| 1539 |
for a description of the difference between “document |
| 1540 |
covers” and “covers”). Thus, it is possible to |
| 1541 |
have differing copyright information on the document cover and on |
| 1542 |
the cover (“title”) page. An example might be: |
| 1543 |
<br/> |
| 1544 |
<span class="pre-in-pp"> |
| 1545 |
.COPYRIGHT DOC_COVER "2010 John Smith and Jane Doe" |
| 1546 |
.COPYRIGHT COVER "2008 Joe Blow" |
| 1547 |
</span> |
| 1548 |
The first invocation of <kbd>.COPYRIGHT</kbd> establishes the |
| 1549 |
copyright information that appears on the document cover; the second |
| 1550 |
establishes the copyright information that appears on the cover |
| 1551 |
(“title”) page. |
| 1552 |
</p> |
| 1553 |
|
| 1554 |
<p> |
| 1555 |
If you don’t require differing copyright information for |
| 1556 |
doc cover and cover pages, <kbd>.COPYRIGHT</kbd>, without the |
| 1557 |
optional first argument, is sufficient, provided you give the word, |
| 1558 |
<kbd>COPYRIGHT</kbd>, as an argument to the macro |
| 1559 |
<a href="cover.html#doc-cover">DOC_COVER</a> |
| 1560 |
or |
| 1561 |
<a href="cover.html#cover">COVER</a> |
| 1562 |
</p> |
| 1563 |
|
| 1564 |
<p> |
| 1565 |
Style parameters for the copyright line may be |
| 1566 |
entered as individual macros or |
| 1567 |
<a href="docelement.html#grouping">grouped</a>, |
| 1568 |
e.g. |
| 1569 |
<br/> |
| 1570 |
<span class="pre-in-pp"> |
| 1571 |
.COPYRIGHT_FAMILY H |
| 1572 |
.COPYRIGHT_FONT R |
| 1573 |
.COPYRIGHT_SIZE -2 |
| 1574 |
</span> |
| 1575 |
or |
| 1576 |
<br/> |
| 1577 |
<span class="pre-in-pp"> |
| 1578 |
.COPYRIGHT_STYLE \ |
| 1579 |
FAMILY H \ |
| 1580 |
FONT R \ |
| 1581 |
SIZE -2 |
| 1582 |
</span> |
| 1583 |
The vertical position of the copyright line may be raised (-) or |
| 1584 |
lowered (+) with the macro COPYRIGHT_V_ADJUST. For example, to |
| 1585 |
raise the copyright line by 3 |
| 1586 |
<a href="definitions.html#picaspoints">points</a>, you’d do |
| 1587 |
<br/> |
| 1588 |
<span class="pre-in-pp"> |
| 1589 |
.COPYRIGHT_V_ADJUST -3p |
| 1590 |
</span> |
| 1591 |
Alternatively, the COPYRIGHT_STYLE macro may be used with the |
| 1592 |
argument <kbd>V_ADJUST</kbd>: |
| 1593 |
<span class="pre-in-pp"> |
| 1594 |
.COPYRIGHT_STYLE \ |
| 1595 |
FAMILY H \ |
| 1596 |
FONT R \ |
| 1597 |
SIZE -2 \ |
| 1598 |
V_ADJUST -3p |
| 1599 |
</span> |
| 1600 |
</p> |
| 1601 |
|
| 1602 |
<!-- -MISC- --> |
| 1603 |
|
| 1604 |
<div class="macro-id-overline"> |
| 1605 |
<h3 id="misc" class="macro-id">MISC</h3> |
| 1606 |
</div> |
| 1607 |
|
| 1608 |
<div class="box-macro-args"> |
| 1609 |
Macro: <b>MISC</b> <kbd class="macro-args">[COVER | DOC_COVER] "<argument 1>" ["<argument 2>" "<argument 3>" ...]</kbd> |
| 1610 |
</div> |
| 1611 |
|
| 1612 |
<p class="requires"> |
| 1613 |
• String arguments must be enclosed in double-quotes |
| 1614 |
</p> |
| 1615 |
|
| 1616 |
<p> |
| 1617 |
The argument(s) passed to MISC are only used on cover or doc cover |
| 1618 |
pages, and then only if the argument <kbd>MISC</kbd> is passed to |
| 1619 |
<a href="cover.html#cover">COVER</a> |
| 1620 |
or |
| 1621 |
<a href="cover.html#doc-cover">DOC_COVER</a>. |
| 1622 |
MISC can contain any information you like. Each argument appears on |
| 1623 |
a separate line at the bottom of the cover or doc cover page. |
| 1624 |
</p> |
| 1625 |
|
| 1626 |
<p> |
| 1627 |
For example, if you’re submitting an essay where the prof has |
| 1628 |
requested that you include the course number, his name and the date, |
| 1629 |
you could do |
| 1630 |
<br/> |
| 1631 |
<span class="pre-in-pp"> |
| 1632 |
.MISC "Music History 101" "Professor Hasbeen" "Dec. 24, 2010" |
| 1633 |
</span> |
| 1634 |
and the information would appear on the essay’s cover page. |
| 1635 |
</p> |
| 1636 |
|
| 1637 |
<p> |
| 1638 |
If the optional argument, <kbd>COVER</kbd> or <kbd>DOC_COVER</kbd>, |
| 1639 |
is given to MISC, the string arguments represent the miscellaneous |
| 1640 |
information that will appear on cover or document cover pages (see |
| 1641 |
the |
| 1642 |
<a href="cover.html#cover-intro">Introduction to cover pages</a> |
| 1643 |
for a description of the difference between “document |
| 1644 |
covers” and “covers”). Thus, it is possible to |
| 1645 |
have differing miscellaneous information on the document cover and |
| 1646 |
on the cover (“title”) page. An example might be: |
| 1647 |
<br/> |
| 1648 |
<span class="pre"> |
| 1649 |
.MISC DOC_COVER "Music History 101" "Professor Hasbeen" |
| 1650 |
.MISC COVER "Spring Term Paper" |
| 1651 |
</span> |
| 1652 |
</p> |
| 1653 |
|
| 1654 |
<p> |
| 1655 |
The first invocation of <kbd>.MISC</kbd> establishes the |
| 1656 |
miscellaneous information that appears on the document cover; the |
| 1657 |
second establishes the miscellaneous information that appears on the |
| 1658 |
cover (“title”) page. |
| 1659 |
</p> |
| 1660 |
|
| 1661 |
<p> |
| 1662 |
If you don’t require differing miscellaneous information |
| 1663 |
for doc cover and cover pages, <kbd>.MISC</kbd>, without the |
| 1664 |
optional first argument, is sufficient, provided you give the word |
| 1665 |
“MISC” as an argument to the macro |
| 1666 |
<a href="cover.html#doc-cover">DOC_COVER</a> |
| 1667 |
or |
| 1668 |
<a href="cover.html#cover">COVER</a> |
| 1669 |
</p> |
| 1670 |
|
| 1671 |
<!-- -COVER_TITLE- --> |
| 1672 |
|
| 1673 |
<div class="macro-id-overline"> |
| 1674 |
<h3 class="macro-id">COVERTITLE & DOC_COVERTITLE</h3> |
| 1675 |
</div> |
| 1676 |
|
| 1677 |
<div id="covertitle" class="box-macro-args"> |
| 1678 |
Macro: <b>COVERTITLE</b> <kbd class="macro-args">"<user defined cover page title>" ["<2nd line>" ["<3rd line>" ... ] ]</kbd> |
| 1679 |
</div> |
| 1680 |
<p class="requires"> |
| 1681 |
• Arguments must be enclosed in double-quotes |
| 1682 |
</p> |
| 1683 |
|
| 1684 |
<div id="doc-covertitle" class="box-macro-args"> |
| 1685 |
Macro: <b>DOC_COVERTITLE</b> <kbd class="macro-args">"<user defined document cover page title>" ["<2nd line>" ["<3rd line>" ... ] ]</kbd> |
| 1686 |
</div> |
| 1687 |
<p class="requires"> |
| 1688 |
• Arguments must be enclosed in double-quotes |
| 1689 |
</p> |
| 1690 |
|
| 1691 |
<p> |
| 1692 |
The arguments passed to COVERTITLE or DOC_COVERTITLE are only |
| 1693 |
used on cover or doc cover pages, and then only if the argument |
| 1694 |
<kbd>COVERTITLE</kbd> or <kbd>DOC_COVERTITLE</kbd> is explicitly |
| 1695 |
passed to |
| 1696 |
<a href="cover.html#cover">COVER</a> |
| 1697 |
or |
| 1698 |
<a href="cover.html#doc-cover">DOC_COVER</a>. |
| 1699 |
</p> |
| 1700 |
|
| 1701 |
<p> |
| 1702 |
COVERTITLE and DOC_COVERTITLE accept multiple arguments, each |
| 1703 |
surrounded by double-quotes. Each argument is printed on a separate |
| 1704 |
line, permitting you to create multi-line titles on your cover |
| 1705 |
and/or doc cover pages. |
| 1706 |
</p> |
| 1707 |
|
| 1708 |
<p> |
| 1709 |
You only require COVERTITLE or DOC_COVERTITLE if they differ from |
| 1710 |
TITLE. Note that |
| 1711 |
<a href="#title">TITLE</a> |
| 1712 |
itself has two optional arguments that accomplish the same thing. |
| 1713 |
</p> |
| 1714 |
|
| 1715 |
<div class="macro-id-overline"> |
| 1716 |
<h3 class="macro-id">PDF Title</h3> |
| 1717 |
</div> |
| 1718 |
|
| 1719 |
<div id="pdftitle" class="box-macro-args"> |
| 1720 |
Macro: <b>PDF_TITLE</b> <kbd class="macro-args">"<pdf viewer window title>"</kbd> |
| 1721 |
</div> |
| 1722 |
<p class="requires"> |
| 1723 |
• Argument must be enclosed in double-quotes |
| 1724 |
</p> |
| 1725 |
|
| 1726 |
<p> |
| 1727 |
Except for |
| 1728 |
<a href="#doc-title">DOCTITLE</a>, |
| 1729 |
mom does not, by default, provide PDF viewers with a document title. |
| 1730 |
You may set one, if you like, with PDF_TITLE. |
| 1731 |
</p> |
| 1732 |
|
| 1733 |
<div class="macro-id-overline"> |
| 1734 |
<h3 class="macro-id">TOC heading</h3> |
| 1735 |
</div> |
| 1736 |
|
| 1737 |
<div id="toc-heading" class="box-macro-args"> |
| 1738 |
Macro: <b>TOC_HEADING</b> <kbd class="macro-args">"<single line TOC heading>"</kbd> |
| 1739 |
</div> |
| 1740 |
<p class="requires"> |
| 1741 |
• Argument must be enclosed in double-quotes |
| 1742 |
</p> |
| 1743 |
|
| 1744 |
<p> |
| 1745 |
Mom generates tables of contents automatically (see |
| 1746 |
<a href="tables-of-contents.html#toc">TOC</a>). |
| 1747 |
You may sometimes want to insert a line of text into the table of |
| 1748 |
contents without it referring to a page number, for example to |
| 1749 |
identify a “Part I” and a “Part II.” |
| 1750 |
</p> |
| 1751 |
|
| 1752 |
<p> |
| 1753 |
Placed before any instance of |
| 1754 |
<a href="#start">START,</a> |
| 1755 |
TOC_HEADING inserts its text into the table of contents with a |
| 1756 |
modest amount of whitespace around it to distinguish it easily |
| 1757 |
from table of contents entries. |
| 1758 |
</p> |
| 1759 |
|
| 1760 |
<p> |
| 1761 |
The appearance of the heading may be controlled with |
| 1762 |
the macro |
| 1763 |
<a href="#toc-heading-style">TOC_HEADING_STYLE</a>. |
| 1764 |
</p> |
| 1765 |
|
| 1766 |
<div id="toc-heading-style" class="box-macro-args"> |
| 1767 |
Macro: <b>TOC_HEADING_STYLE</b> <kbd class="macro-args">"<arguments>"</kbd> |
| 1768 |
</div> |
| 1769 |
|
| 1770 |
<p> |
| 1771 |
TOC_HEADING_STYLE controls the look of TOC headings. It is a |
| 1772 |
<a href="docelement.html#grouping">“grouping”</a> |
| 1773 |
style macro with multiple arguments. It is recommended that |
| 1774 |
you use the backslash character to separate them into individual |
| 1775 |
lines rather than entering a single, very long line. |
| 1776 |
</p> |
| 1777 |
|
| 1778 |
<p> |
| 1779 |
TOC_HEADING_STYLE accepts as many or as few arguments as you need: |
| 1780 |
<span class="pre-in-pp"> |
| 1781 |
FAMILY <family> \ |
| 1782 |
FONT <font> \ |
| 1783 |
SIZE <+|-n> \ |
| 1784 |
COLOR <colorname>* \ |
| 1785 |
QUAD L | C | R \ |
| 1786 |
SPACE_ABOVE <n>** \ |
| 1787 |
SPACE_BENEATH <n>** |
| 1788 |
</span> |
| 1789 |
* <kbd>COLOR</kbd> must be pre-initialized with |
| 1790 |
<a href="color.html#newcolor">NEWCOLOR</a> |
| 1791 |
or |
| 1792 |
<a href="color.html#xcolor">XCOLOR</a>. |
| 1793 |
<br/> |
| 1794 |
** <kbd>SPACE_ABOVE</kbd> and <kbd>SPACE_BENEATH</kbd> require a |
| 1795 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 1796 |
to be appended to their numeric argument. |
| 1797 |
</p> |
| 1798 |
|
| 1799 |
<p> |
| 1800 |
For example, if you want your TOC headings to be bold, slightly |
| 1801 |
larger than the rest of the table of contents, centred, and with |
| 1802 |
one linespace beforehand, |
| 1803 |
<span class="pre-in-pp"> |
| 1804 |
FONT B \ |
| 1805 |
SIZE +.5 \ |
| 1806 |
QUAD C \ |
| 1807 |
SPACE_ABOVE 1v |
| 1808 |
</span> |
| 1809 |
</p> |
| 1810 |
|
| 1811 |
<p> |
| 1812 |
See |
| 1813 |
<a href="docelement.html#control-macro-args">Arguments to the control macros</a> |
| 1814 |
for further information about the arguments. Note that |
| 1815 |
<kbd>SPACE_ABOVE</kbd> and <kbd>SPACE_BENEATH</kbd> are unique to |
| 1816 |
TOC_HEADING_STYLE. |
| 1817 |
|
| 1818 |
</p> |
| 1819 |
|
| 1820 |
<div class="rule-short"><hr/></div> |
| 1821 |
|
| 1822 |
<!-- ======================================================================== --> |
| 1823 |
|
| 1824 |
<h2 id="docstyle-macros" class="macro-group">The docstyle macros</h2> |
| 1825 |
|
| 1826 |
<p> |
| 1827 |
The docstyle macros tell mom what type of document you’re |
| 1828 |
writing, whether you want the output typeset or “typewritten, |
| 1829 |
double-spaced”, and whether you want a draft copy (with draft |
| 1830 |
and revision information in the headers) or a final copy. |
| 1831 |
</p> |
| 1832 |
|
| 1833 |
<div class="macro-list-container"> |
| 1834 |
<h3 id="index-docstyle" class="macro-list">Docstyle macros</h3> |
| 1835 |
<ul class="macro-list"> |
| 1836 |
<li><a href="#doctype">DOCTYPE</a></li> |
| 1837 |
<li><a href="#printstyle">PRINTSTYLE</a> – non-optional macro required for document processing |
| 1838 |
<ul style="margin-left: -.5em; list-style-type: disc;"> |
| 1839 |
<li><a href="#typeset-defaults">Defaults for PRINTSTYLE TYPESET</a></li> |
| 1840 |
<li><a href="#typewrite-defaults">Defaults for PRINTSTYLE TYPEWRITE</a> |
| 1841 |
<ul style="margin-left: -.5em; list-style-type: circle;"> |
| 1842 |
<li><a href="#typewrite-control">PRINTSTYLE TYPEWRITE control macros</a> |
| 1843 |
<ul style="margin-left: -1.5em; list-style-type: square;"> |
| 1844 |
<li><a href="#typewriter-family">Family</a></li> |
| 1845 |
<li><a href="#typewriter-size">Point size</a></li> |
| 1846 |
<li><a href="#typewriter-underlining">Underlining of italics</a></li> |
| 1847 |
</ul></li> |
| 1848 |
</ul></li> |
| 1849 |
</ul></li> |
| 1850 |
<li><a href="#copystyle">COPYSTYLE</a></li> |
| 1851 |
</ul> |
| 1852 |
</div> |
| 1853 |
|
| 1854 |
<!-- -DOCTYPE- --> |
| 1855 |
|
| 1856 |
<div class="macro-id-overline"> |
| 1857 |
<h3 id="doctype" class="macro-id">DOCTYPE</h3> |
| 1858 |
</div> |
| 1859 |
|
| 1860 |
<div class="box-macro-args"> |
| 1861 |
Macro: <b>DOCTYPE</b> <kbd class="macro-args">DEFAULT | CHAPTER | NAMED "<name>" | LETTER | SLIDES</kbd> |
| 1862 |
</div> |
| 1863 |
|
| 1864 |
<p> |
| 1865 |
The arguments <kbd>DEFAULT,</kbd> <kbd>CHAPTER</kbd> and |
| 1866 |
<kbd>NAMED</kbd> tell mom what to put in the |
| 1867 |
<a href="definitions.html#docheader">docheader</a> |
| 1868 |
and |
| 1869 |
<a href="definitions.html#header">page headers</a>. |
| 1870 |
<kbd>LETTER</kbd> and <kbd>SLIDES</kbd> tells her you want to write |
| 1871 |
a letter or create slides. |
| 1872 |
</p> |
| 1873 |
|
| 1874 |
<p> |
| 1875 |
Mom’s default DOCTYPE is <kbd>DEFAULT</kbd>. If that’s |
| 1876 |
what you want, you don’t have to give a DOCTYPE command. |
| 1877 |
</p> |
| 1878 |
|
| 1879 |
<p id="default-doctype"> |
| 1880 |
<kbd>DEFAULT</kbd> prints a |
| 1881 |
<a href="definitions.html#docheader">docheader</a> |
| 1882 |
containing the title, subtitle and author information given to the |
| 1883 |
<a href="#reference-macros">reference macros</a>, |
| 1884 |
and page headers with the author and title. (See |
| 1885 |
<a href="headfootpage.html#header-style">Default specs for headers</a> |
| 1886 |
for how mom outputs each part of the page header.) |
| 1887 |
</p> |
| 1888 |
|
| 1889 |
<p> |
| 1890 |
<kbd>CHAPTER</kbd> prints “Chapter <n>” in place |
| 1891 |
of a |
| 1892 |
<a href="definitions.html#docheader">docheader</a> |
| 1893 |
(<n> is what you gave to the |
| 1894 |
<a href="#reference-macros">reference macro</a>, |
| 1895 |
<kbd><a href="#chapter">CHAPTER</a></kbd>). |
| 1896 |
If you give the chapter a title with |
| 1897 |
<a href="#chapter-title">CHAPTER_TITLE</a>, |
| 1898 |
mom prints “Chapter <n>” and the |
| 1899 |
title underneath. If you omit the |
| 1900 |
<a href="#chapter">CHAPTER</a> |
| 1901 |
reference macro but supply a |
| 1902 |
<a href="#chapter-title">CHAPTER_TITLE</a>, |
| 1903 |
mom prints only the chapter title. |
| 1904 |
</p> |
| 1905 |
|
| 1906 |
<p> |
| 1907 |
The page headers in DOCTYPE <kbd>CHAPTER</kbd> contain the author, |
| 1908 |
the title of the book (which you gave with |
| 1909 |
<a href="#title">TITLE</a>), |
| 1910 |
and “Chapter <n>” (or the chapter title). See |
| 1911 |
<a href="headfootpage.html#header-style">Default Specs for Headers</a> |
| 1912 |
for mom’s default type parameters for each part of |
| 1913 |
the page header. |
| 1914 |
</p> |
| 1915 |
|
| 1916 |
<p> |
| 1917 |
<kbd>NAMED</kbd> takes an additional argument: a name for this |
| 1918 |
particular kind of document (e.g. outline, synopsis, abstract, |
| 1919 |
memorandum), enclosed in double-quotes. <kbd>NAMED</kbd> is |
| 1920 |
identical to <kbd>DEFAULT</kbd> except that mom prints the argument |
| 1921 |
to <kbd>NAMED</kbd> beneath the |
| 1922 |
<a href="definitions.html#docheader">docheader</a>, |
| 1923 |
as well as in page headers. |
| 1924 |
(See |
| 1925 |
<a href="headfootpage.html#header-style">Default specs for headers</a> |
| 1926 |
for how mom outputs each part of the page header.) |
| 1927 |
</p> |
| 1928 |
|
| 1929 |
<div class="box-tip"> |
| 1930 |
<p id="doctype-note" class="tip"> |
| 1931 |
<span class="note">Note: version 2.1 change</span> |
| 1932 |
<br/> |
| 1933 |
<kbd>DOCTYPE NAMED "string"</kbd> no longer accepts a colour |
| 1934 |
argument after <kbd>"string"</kbd>. Setting the colour |
| 1935 |
of the string is now done with <kbd><span class="nobr">DOCTYPE_COLOR |
| 1936 |
<color></span></kbd>. Default underscoring of |
| 1937 |
<kbd>"string"</kbd> in the docheader and on covers |
| 1938 |
has been removed. Use <kbd>DOCTYPE_UNDERSCORE</kbd>, |
| 1939 |
<kbd>DOC_COVER_DOCTYPE_UNDERSCORE</kbd> and/or |
| 1940 |
<kbd>COVER_DOCTYPE_UNDERSCORE</kbd> to re-enable it. All three take |
| 1941 |
the same arguments listed in the |
| 1942 |
<a href="docelement.html#underscore">Underscore style, rule weight</a> |
| 1943 |
section of |
| 1944 |
<a href="docelement.html#control-macro-args">Arguments to the control macros</a>. |
| 1945 |
</p> |
| 1946 |
</div> |
| 1947 |
|
| 1948 |
<p> |
| 1949 |
<kbd>LETTER</kbd> tells mom you’re writing a letter. See the |
| 1950 |
section |
| 1951 |
<a href="letters.html#letters">Writing Letters</a> |
| 1952 |
for instructions on using mom to format letters. |
| 1953 |
</p> |
| 1954 |
|
| 1955 |
<h4 id="slides" class="docs" style="font-size: 100%; text-transform: uppercase">Slides</h4> |
| 1956 |
|
| 1957 |
<p> |
| 1958 |
PDF slides are a special kind of mom document, formatted for viewing |
| 1959 |
in a PDF reader’s presentation mode. In most respects, they |
| 1960 |
behave identically to the other document types. Key differences |
| 1961 |
are: |
| 1962 |
</p> |
| 1963 |
<ul style="margin-top: -.5em"> |
| 1964 |
<li>headers, footers, and pagination are disabled by default</li> |
| 1965 |
<li>type is set |
| 1966 |
<a href="typesetting.html#quad">QUAD CENTER</a> |
| 1967 |
by default</li> |
| 1968 |
<li> |
| 1969 |
<a href="#flex">flex-spacing</a> |
| 1970 |
and |
| 1971 |
<a href="#shim">shimming</a> |
| 1972 |
are disabled by default; shimming may |
| 1973 |
be re-enabled (with <kbd>NO_SHIM OFF</kbd>), but not flex-spacing</li> |
| 1974 |
<li>there’s no need for |
| 1975 |
<a href="#printstyle">PRINTSTYLE</a></li> |
| 1976 |
</ul> |
| 1977 |
|
| 1978 |
<p> |
| 1979 |
DOCTYPE SLIDES takes up to five optional arguments, which come |
| 1980 |
immediately after SLIDES. They may be entered in any order. |
| 1981 |
<br/> |
| 1982 |
<span class="pre-in-pp"> |
| 1983 |
DOCTYPE SLIDES \ |
| 1984 |
ASPECT 4:3 | 16:9 \ |
| 1985 |
HEADER "left" "centre" "right" \ |
| 1986 |
FOOTER "left" "centre" "right" \ |
| 1987 |
TRANSITION "<slide transition effect>" (mode + parameters) \ |
| 1988 |
PAUSE "<text reveal effect>" (mode + parameters) |
| 1989 |
</span> |
| 1990 |
For convenience, you many want to enter each argument on a single |
| 1991 |
line as shown above; all but the last must be terminated by a |
| 1992 |
backslash. |
| 1993 |
</p> |
| 1994 |
|
| 1995 |
<h5 class="docs" style="margin-top: .5em">Aspect</h5> |
| 1996 |
|
| 1997 |
<p> |
| 1998 |
Slides can be formatted for one of two aspect ratios common to |
| 1999 |
monitors and screens: 4:3 and 16:9. The default is 16:9. |
| 2000 |
<span class="pre-in-pp"> |
| 2001 |
4:3 16:9 |
| 2002 |
media size: 11" x 8.25" media size: 11" x 8.1875" |
| 2003 |
left/right margins: 36 points left/right margins: 36 points |
| 2004 |
top margin: 90 points top margin: 80 points |
| 2005 |
bottom margin: 84 points bottom margin: 72 points |
| 2006 |
base text size: 16 points base text size: 14 points |
| 2007 |
autoleading: 6 points, adjusted autoleading: 4 points, adjusted |
| 2008 |
(header/footer size: -3 points) (header/footer size: -2 points) |
| 2009 |
</span> |
| 2010 |
Note that both media sizes fit on either A4 or US LETTER papersizes. |
| 2011 |
</p> |
| 2012 |
|
| 2013 |
<h5 class="docs" style="margin-top: .5em">Headers, footers, and pagination</h5> |
| 2014 |
|
| 2015 |
<p> |
| 2016 |
If you want a header, footer, or both for your slides, pass SLIDES |
| 2017 |
the <kbd>HEADER</kbd> and/or <kbd>FOOTER</kbd> argument(s). Both |
| 2018 |
take three additional |
| 2019 |
<a href="definitions.html#stringargument">string arguments</a>, |
| 2020 |
which must be enclosed in double-quotes, defining the left, centre, |
| 2021 |
and right parts of the header/footer. Any parts you want left blank |
| 2022 |
should be entered as two double-quotes. For example, |
| 2023 |
<span class="pre-in-pp"> |
| 2024 |
HEADER "" "My slide presentation" "" |
| 2025 |
</span> |
| 2026 |
will result in a header with only the centre part. |
| 2027 |
</p> |
| 2028 |
|
| 2029 |
<p> |
| 2030 |
Normal pagination is disabled for slides. If you want your slides |
| 2031 |
numbered, the slide number must be given to one of the header/footer |
| 2032 |
parts with the |
| 2033 |
<a href="definitions.html#inlines">inline escape</a> |
| 2034 |
<br/> |
| 2035 |
<kbd><span class="nobr">\*[SLIDE#]</span></kbd>. For example: |
| 2036 |
<span class="pre-in-pp"> |
| 2037 |
HEADER "" "My slide presentation" "" \ |
| 2038 |
FOOTER "" "" "\*[SLIDE#]" |
| 2039 |
</span> |
| 2040 |
will give you a centred header with numbering at the bottom right of |
| 2041 |
the slide. |
| 2042 |
</p> |
| 2043 |
|
| 2044 |
<p> |
| 2045 |
The overall family, size, and colour of headers may be set with |
| 2046 |
HEADER_FAMILY, HEADER_SIZE, and HEADER_COLOR. If you request |
| 2047 |
FOOTERS, you may use the FOOTER_ equivalent of these macros. |
| 2048 |
If you request both headers and footers, use one or the other but |
| 2049 |
not both. For example, in a header/footer situation, HEADER_FAMILY |
| 2050 |
would determine the family for both headers and footers, but if you |
| 2051 |
attempted to do this |
| 2052 |
<span class="pre-in-pp"> |
| 2053 |
.HEADER_FAMILY T |
| 2054 |
.FOOTER_FAMILY H |
| 2055 |
</span> |
| 2056 |
FOOTER_FAMILY would take precedence, and your header family would be |
| 2057 |
“<kbd>H</kbd>”. |
| 2058 |
</p> |
| 2059 |
|
| 2060 |
<p> |
| 2061 |
All other formatting of individual header/footer parts must be |
| 2062 |
entered as inline escapes inside the double-quotes. If you want, |
| 2063 |
say, your headers to be red but your footer page numbering to be |
| 2064 |
black and two points larger, this is how you’d do it: |
| 2065 |
<span class="pre-in-pp"> |
| 2066 |
.HEADER_COLOR red |
| 2067 |
.DOCTYPE SLIDES \ |
| 2068 |
HEADER "" "My slide presentation" "" \ |
| 2069 |
FOOTER "" "" "\*[black]\*S[+2]\*[SLIDE#]\*S[-2]" |
| 2070 |
</span> |
| 2071 |
</p> |
| 2072 |
|
| 2073 |
<div class="box-tip"> |
| 2074 |
<p class="tip"> |
| 2075 |
<span class="note">Note:</span> |
| 2076 |
Do not use mom’s |
| 2077 |
<a href="inlines.html#inline-size-mom"><kbd><span class="nobr">\*[SIZE ±n]</span></kbd></a> |
| 2078 |
inline escape to change point size in the strings |
| 2079 |
passed to HEADER or FOOTER. Prefer either mom’s |
| 2080 |
<kbd><span class="nobr">\*S[±n]</span></kbd> or groff’s |
| 2081 |
<kbd><span class="nobr">\s[±n]</span></kbd>. |
| 2082 |
</p> |
| 2083 |
</div> |
| 2084 |
|
| 2085 |
<h5 class="docs" style="margin-top: .5em">Transition</h5> |
| 2086 |
|
| 2087 |
<p> |
| 2088 |
“Transition” refers to how new slides appear during a |
| 2089 |
presentation. The official PDF specification lists a number of modes, |
| 2090 |
each with a choice of configurable parameters. Modes include Box, |
| 2091 |
Blinds, Wipe, Fade, and several others. Parameters include things |
| 2092 |
like duration, dimension, and direction. There are a total of |
| 2093 |
twelve modes; for each one there are from one to six configurable |
| 2094 |
parameters. Consult <kbd>man gropdf(1)</kbd> for a complete listing |
| 2095 |
of modes and parameters. |
| 2096 |
</p> |
| 2097 |
|
| 2098 |
<p> |
| 2099 |
If you pass SLIDES the <kbd>TRANSITION</kbd> argument, you must |
| 2100 |
at a minimum follow it with a mode. Afterwards, you may give as |
| 2101 |
many or as few parameters as you wish. Parameters are, in order, |
| 2102 |
<span class="pre-in-pp"> |
| 2103 |
1. duration |
| 2104 |
2. dimension |
| 2105 |
3. motion |
| 2106 |
4. direction |
| 2107 |
5. scale |
| 2108 |
6. bool |
| 2109 |
</span> |
| 2110 |
You don’t have to fill them all out. If you only need the |
| 2111 |
first three, that’s all you need to input. If you need the |
| 2112 |
first and third, enter the second as a period (dot), which is used |
| 2113 |
any time you want to leave a parameter at its current default or |
| 2114 |
when it isn’t applicable. For example, if you want a Box |
| 2115 |
transition that lasts 1 second, filling the screen from the centre |
| 2116 |
outwards, you’d enter |
| 2117 |
<span class="pre-in-pp"> |
| 2118 |
TRANSITION "Box 1 . O" |
| 2119 |
</span> |
| 2120 |
because Box does not take a “dimension” parameter but it |
| 2121 |
does take a motion parameter. |
| 2122 |
</p> |
| 2123 |
|
| 2124 |
<p> |
| 2125 |
Notice that the entire string (mode+parameters) must be enclosed in |
| 2126 |
double-quotes. |
| 2127 |
</p> |
| 2128 |
|
| 2129 |
<div class="box-tip"> |
| 2130 |
<p class="tip"> |
| 2131 |
<span class="note">Note:</span> |
| 2132 |
Not all PDF viewers support all modes. Any that are not supported |
| 2133 |
are replaced by the “R” mode, which simply replaces one |
| 2134 |
slide with the next unless the PDF viewer has a different default |
| 2135 |
transition mode. |
| 2136 |
</p> |
| 2137 |
</div> |
| 2138 |
|
| 2139 |
<h5 class="docs" style="margin-top: .5em">Pause</h5> |
| 2140 |
|
| 2141 |
<p> |
| 2142 |
A “pause” occurs when material on a slide is halted (see |
| 2143 |
<a href="#pause">PAUSE</a>), |
| 2144 |
awaiting a mouse click, PgDown, Next, or the spacebar to reveal |
| 2145 |
subsequent material. All the same modes and parameters as |
| 2146 |
<kbd>TRANSITION</kbd> may be used. The manner of entering them is |
| 2147 |
is identical, including that the entire mode+parameter string must |
| 2148 |
be enclosed in double-quotes. |
| 2149 |
</p> |
| 2150 |
|
| 2151 |
<div class="macro-id-overline"> |
| 2152 |
<h3 id="slide-macros" class="macro-id">SLIDE MACROS</h3> |
| 2153 |
</div> |
| 2154 |
|
| 2155 |
<div id="newslide" class="box-macro-args"> |
| 2156 |
Macro: <b>NEWSLIDE</b> <kbd class="macro-args">["<transition mode and parameters>"]</kbd> |
| 2157 |
</div> |
| 2158 |
|
| 2159 |
<p> |
| 2160 |
Unless you want material from one slide to flow onto the next, you |
| 2161 |
need to tell mom when to start a new slide with the macro NEWSLIDE. |
| 2162 |
Without any arguments, the new slide will appear with the default |
| 2163 |
TRANSITION you gave to DOCTYPE SLIDES. |
| 2164 |
</p> |
| 2165 |
|
| 2166 |
<p> |
| 2167 |
If you would like a different transition, you may pass NEWSLIDE a |
| 2168 |
new mode and associated parameters, following the same rules as the |
| 2169 |
TRANSITION argument to DOCTYPE. Note that the new effect becomes |
| 2170 |
the default. If you wish to return to the original transition, you |
| 2171 |
must give it explicitly to the appropriate NEWSLIDE. |
| 2172 |
</p> |
| 2173 |
|
| 2174 |
<div id="pause" class="box-macro-args"> |
| 2175 |
Macro: <b>PAUSE</b> <kbd class="macro-args">["<pause mode and parameters>"]</kbd> |
| 2176 |
</div> |
| 2177 |
|
| 2178 |
<p> |
| 2179 |
Pauses in slides are accomplished by entering the macro PAUSE at |
| 2180 |
desired locations in your input file. Subsequent material will be |
| 2181 |
revealed using the pause mode given to DOCTYPE SLIDES. |
| 2182 |
</p> |
| 2183 |
|
| 2184 |
<p> |
| 2185 |
If you would like a different mode, you may pass PAUSE a |
| 2186 |
new mode and associated parameters, following the same rules as the |
| 2187 |
PAUSE argument to DOCTYPE. |
| 2188 |
</p> |
| 2189 |
|
| 2190 |
<div id="transition" class="box-macro-args"> |
| 2191 |
Macro: <b>TRANSITION</b> <kbd class="macro-args">["<transition mode and parameters>"]</kbd> |
| 2192 |
</div> |
| 2193 |
|
| 2194 |
<p> |
| 2195 |
If for some reason you have material that flows from one slide to |
| 2196 |
the next <i>and</i> you want the next slide to have a transition |
| 2197 |
different from the current one, you can tell mom about the new |
| 2198 |
transition with the macro TRANSITION anywhere prior to the break to |
| 2199 |
the next slide. |
| 2200 |
</p> |
| 2201 |
|
| 2202 |
<h4 id="slide-printing" class="docs" style="font-size: 100%; text-transform: uppercase">Printing slides</h4> |
| 2203 |
|
| 2204 |
<p> |
| 2205 |
If you want to print slides as handouts, you have to tell |
| 2206 |
<kbd>pdfmom</kbd> or <kbd>gropdf</kbd>, otherwise printing will |
| 2207 |
stop at the first pause. Simply precede <kbd>pdfmom</kbd> or |
| 2208 |
<kbd>gropdf</kbd> with GROPDF_NOSLIDE=1, like this: |
| 2209 |
<br/> |
| 2210 |
<span class="pre-in-pp"> |
| 2211 |
GROPDF_NOSLIDE=1 pdfmom <options> slidefile.mom > slidefile.pdf |
| 2212 |
</span> |
| 2213 |
|
| 2214 |
</p> |
| 2215 |
|
| 2216 |
<!-- -PRINTSTYLE- --> |
| 2217 |
|
| 2218 |
<div class="macro-id-overline"> |
| 2219 |
<h3 id="printstyle" class="macro-id">PRINTSTYLE</h3> |
| 2220 |
</div> |
| 2221 |
|
| 2222 |
<div class="box-macro-args"> |
| 2223 |
Macro: <b>PRINTSTYLE</b> <kbd class="macro-args">TYPESET | TYPEWRITE [ SINGLESPACE ]</kbd> |
| 2224 |
</div> |
| 2225 |
|
| 2226 |
<p class="requires"> |
| 2227 |
• Required for document processing, except in the case of |
| 2228 |
slides |
| 2229 |
<br/> |
| 2230 |
Must come before any changes to default document style |
| 2231 |
</p> |
| 2232 |
|
| 2233 |
<p> |
| 2234 |
PRINTSTYLE tells mom whether to typeset a document, or to print it |
| 2235 |
out “typewritten, doubled-spaced”. |
| 2236 |
</p> |
| 2237 |
|
| 2238 |
<div class="box-important"> |
| 2239 |
<p class="tip-top"> |
| 2240 |
<span class="important">Important:</span> |
| 2241 |
<b>This macro may not be omitted.</b> In order for document |
| 2242 |
processing to take place, mom requires a PRINTSTYLE. If you |
| 2243 |
don’t give one, mom will warn you on stderr and print a single |
| 2244 |
page with a nasty message. |
| 2245 |
</p> |
| 2246 |
|
| 2247 |
<p class="tip-bottom"> |
| 2248 |
<span class="important">Just as important:</span> |
| 2249 |
<b>PRINTSTYLE must precede any and all page and style |
| 2250 |
parameters associated with a document</b> with the exception of |
| 2251 |
<kbd>PAPER</kbd>, which should be placed at the top of your file. |
| 2252 |
PRINTSTYLE sets up complete templates that include default margins, |
| 2253 |
family, fonts, point sizes, and so on. Therefore, changes to any |
| 2254 |
aspect of document style must come afterwards. For example, |
| 2255 |
<br/> |
| 2256 |
<span class="pre-in-pp"> |
| 2257 |
.PAPER A4 |
| 2258 |
.LS 14 |
| 2259 |
.QUAD LEFT |
| 2260 |
.PRINTSTYLE TYPESET |
| 2261 |
</span> |
| 2262 |
will not change mom’s default document leading to 14 points, |
| 2263 |
nor the default justification style (fully justified) to left |
| 2264 |
justified, whereas |
| 2265 |
<br/> |
| 2266 |
<span class="pre-in-pp"> |
| 2267 |
.PAPER A4 |
| 2268 |
.PRINTSTYLE TYPESET |
| 2269 |
.LS 14 |
| 2270 |
.QUAD LEFT |
| 2271 |
</span> |
| 2272 |
will. |
| 2273 |
</p> |
| 2274 |
|
| 2275 |
</div> |
| 2276 |
|
| 2277 |
<p> |
| 2278 |
<kbd>TYPESET</kbd>, as the argument implies, typesets |
| 2279 |
documents (by default in Times Roman; see |
| 2280 |
<a href="#typeset-defaults">TYPESET defaults</a>). |
| 2281 |
You have full access to all the |
| 2282 |
<a href="typesetting.html#macros-typesetting">typesetting macros</a> |
| 2283 |
as well as the |
| 2284 |
<a href="definitions.html#style-control">style control macros</a> |
| 2285 |
of document processing. |
| 2286 |
</p> |
| 2287 |
|
| 2288 |
<p> |
| 2289 |
With <kbd>TYPEWRITE</kbd>, mom does her best to reproduce the look |
| 2290 |
and feel of typewritten, double-spaced copy (see |
| 2291 |
<a href="#typewrite-defaults">TYPEWRITE defaults</a>). |
| 2292 |
<a href="docelement.html#docelement-control">Control macros</a> |
| 2293 |
and |
| 2294 |
<a href="typesetting.html#intro-macros-typesetting">typesetting macros</a> |
| 2295 |
that alter family, font, point size, and |
| 2296 |
<a href="definitions.html#leading">leading</a> |
| 2297 |
are (mostly) ignored. An important exception is |
| 2298 |
<a href="headfootpage.html#hdrftr-global-size">HEADER_SIZE</a> |
| 2299 |
(and, by extension, FOOTER_SIZE), which allows you to reduce the |
| 2300 |
point size of headers/footers should they become too crowded. Most |
| 2301 |
of mom’s inlines affecting the appearance of type are also |
| 2302 |
ignored |
| 2303 |
(<a href="inlines.html#inline-size-mom"><kbd><span class="nobr">\*S[<size>]</span></kbd></a> |
| 2304 |
is an exception; there may be a few others). |
| 2305 |
</p> |
| 2306 |
|
| 2307 |
<p> |
| 2308 |
In short, <kbd>TYPEWRITE</kbd> never produces effects |
| 2309 |
other than those available on a typewriter. Don’t be fooled |
| 2310 |
by how brainless this sounds; mom is remarkably sophisticated when |
| 2311 |
it comes to conveying the typographic sense of a document within the |
| 2312 |
confines of <kbd>TYPEWRITE</kbd>. |
| 2313 |
</p> |
| 2314 |
|
| 2315 |
<p> |
| 2316 |
The primary uses of <kbd>TYPEWRITE</kbd> are: outputting hard |
| 2317 |
copy drafts of your work (for editing) and producing documents |
| 2318 |
for submission to publishers and agents who (wisely) insist on |
| 2319 |
typewritten, double-spaced copy. To get a nicely typeset version of |
| 2320 |
work that’s in the submission phase of its life (say, to show |
| 2321 |
fellow writers for critiquing), simply change <kbd>TYPEWRITE</kbd> |
| 2322 |
to <kbd>TYPESET</kbd> and print out a copy. |
| 2323 |
</p> |
| 2324 |
|
| 2325 |
<p> |
| 2326 |
If, for some reason, you would prefer the output of |
| 2327 |
<kbd>TYPEWRITE</kbd> single-spaced, pass PRINTSTYLE |
| 2328 |
<kbd>TYPEWRITE</kbd> the optional argument, <kbd>SINGLESPACE</kbd>. |
| 2329 |
</p> |
| 2330 |
|
| 2331 |
<div class="defaults-container"> |
| 2332 |
<h3 id="typeset-defaults" class="docs defaults" style="margin-top: 0;">PRINTSTYLE TYPESET defaults</h3> |
| 2333 |
<span class="pre defaults"> |
| 2334 |
Family = Times Roman |
| 2335 |
Point size = 12.5 |
| 2336 |
Paragraph leading = 16 points, adjusted |
| 2337 |
Fill mode = justified |
| 2338 |
Hyphenation = enabled |
| 2339 |
max. lines = 2 |
| 2340 |
margin = 36 points |
| 2341 |
interword adjustment = 1 point |
| 2342 |
Kerning = enabled |
| 2343 |
Ligatures = enabled |
| 2344 |
Smartquotes = enabled |
| 2345 |
Word space = groff default |
| 2346 |
Sentence space = 0 |
| 2347 |
</span> |
| 2348 |
</div> |
| 2349 |
|
| 2350 |
<div class="defaults-container"> |
| 2351 |
<h3 id="typewrite-defaults" class="docs defaults" style="margin-top: 0;">PRINTSTYLE TYPEWRITE defaults</h3> |
| 2352 |
<span class="pre defaults"> |
| 2353 |
Family = Courier |
| 2354 |
Italics = underlined |
| 2355 |
Point size = 12 |
| 2356 |
Paragraph leading = 24 points, adjusted; 12 points for SINGLESPACE |
| 2357 |
Fill mode = left |
| 2358 |
Hyphenation = disabled |
| 2359 |
Kerning = disabled |
| 2360 |
Ligatures = disabled |
| 2361 |
Smartquotes = disabled |
| 2362 |
Word space = groff default |
| 2363 |
Sentence space = groff default |
| 2364 |
Columns = ignored |
| 2365 |
</span> |
| 2366 |
</div> |
| 2367 |
|
| 2368 |
<div class="box-tip" style="margin-top: 1.5em;"> |
| 2369 |
<h3 id="typewrite-control" class="docs control">PRINTSTYLE TYPEWRITE control macros</h3> |
| 2370 |
|
| 2371 |
<h4 id="typewriter-family" class="docs">Family</h4> |
| 2372 |
|
| 2373 |
<p style="margin-top: .5em;"> |
| 2374 |
If you’d prefer a monospace |
| 2375 |
<a href="definitions.html#family">family</a> |
| 2376 |
for PRINTSTYLE <kbd>TYPEWRITE</kbd> other than mom’s |
| 2377 |
default, Courier, you can change it with |
| 2378 |
<kbd>.TYPEWRITER_FAMILY <family></kbd> (or |
| 2379 |
<kbd>.TYPEWRITER_FAM</kbd>). Since groff ships with only the |
| 2380 |
Courier family, you will have to install any other monospace family |
| 2381 |
yourself. See |
| 2382 |
<a href="appendices.html#fonts">Adding fonts to |
| 2383 |
groff</a>. |
| 2384 |
</p> |
| 2385 |
|
| 2386 |
<h4 id="typewriter-size" class="docs">Point size</h4> |
| 2387 |
|
| 2388 |
<p style="margin-top: .5em;"> |
| 2389 |
If you’d like a smaller or larger point size for |
| 2390 |
PRINTSTYLE <kbd>TYPEWRITE</kbd> (mom’s default is 12-point), |
| 2391 |
you can change it with |
| 2392 |
<kbd>.TYPEWRITER_SIZE <size></kbd>. There’s no need to |
| 2393 |
add a |
| 2394 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 2395 |
to the <kbd><size></kbd> argument; points is assumed. Be |
| 2396 |
aware, however, that regardless of point size, mom’s |
| 2397 |
leading/linespacing for <kbd>TYPEWRITE</kbd> is fixed at 24-point |
| 2398 |
for double-spaced, and 12-point for single-spaced. |
| 2399 |
</p> |
| 2400 |
|
| 2401 |
<h4 id="typewriter-underlining" class="docs">Underlining of italics</h4> |
| 2402 |
|
| 2403 |
<p> |
| 2404 |
In PRINTSTYLE <kbd>TYPEWRITE</kbd>, mom, by default, underlines |
| 2405 |
anything that looks like italics. This includes the |
| 2406 |
<a href="typesetting.html#slant-inline"><kbd><span class="nobr">\*[SLANT]</span></kbd></a> |
| 2407 |
<a href="definitions.html#inlines">inline escape</a> |
| 2408 |
for pseudo-italics. TYPEWRITE files that require underlined italics |
| 2409 |
must be processed with |
| 2410 |
<br/> |
| 2411 |
<span class="pre-in-pp"> |
| 2412 |
pdfmom -Tps filename.mom > filename.pdf |
| 2413 |
</span> |
| 2414 |
since groff’s pdf driver does not recognize UNDERLINE. |
| 2415 |
</p> |
| 2416 |
|
| 2417 |
<p id="printstyle-italics"> |
| 2418 |
If you’d prefer that mom were less bloody-minded |
| 2419 |
about pretending to be a typewriter (i.e., you’d like italics and |
| 2420 |
pseudo-italics to come out as italics), use the control macros |
| 2421 |
<br/> |
| 2422 |
<span class="pre-in-pp"> |
| 2423 |
.ITALIC_MEANS_ITALIC |
| 2424 |
</span> |
| 2425 |
and |
| 2426 |
<span class="pre-in-pp"> |
| 2427 |
.SLANT_MEANS_SLANT |
| 2428 |
</span> |
| 2429 |
Neither requires an argument. |
| 2430 |
</p> |
| 2431 |
|
| 2432 |
<p> |
| 2433 |
Although it’s unlikely, should you wish to reverse |
| 2434 |
the sense of these macros in the midst of a document, |
| 2435 |
<kbd>.UNDERLINE_ITALIC</kbd> and <kbd>.UNDERLINE_SLANT</kbd> restore |
| 2436 |
underlining of italics and pseudo-italics. |
| 2437 |
</p> |
| 2438 |
|
| 2439 |
<p id="underline-quotes"> |
| 2440 |
Additionally, by default, mom underlines |
| 2441 |
<a href="definitions.html#quotes">quotes</a> |
| 2442 |
(but not |
| 2443 |
<a href="definitions.html#blockquotes">blockquotes</a>) |
| 2444 |
in PRINTSTYLE <kbd>TYPEWRITE</kbd>. If you don’t like this |
| 2445 |
behaviour, turn it off with |
| 2446 |
<br/> |
| 2447 |
<span class="pre"> |
| 2448 |
.UNDERLINE_QUOTES OFF |
| 2449 |
</span> |
| 2450 |
</p> |
| 2451 |
|
| 2452 |
<p> |
| 2453 |
To turn underlining of quotes back on, use UNDERLINE_QUOTES without |
| 2454 |
an argument. |
| 2455 |
</p> |
| 2456 |
|
| 2457 |
<p> |
| 2458 |
While most of the |
| 2459 |
<a href="docelement.html#docelement-control">control macros</a> |
| 2460 |
have no effect on PRINTSTYLE <kbd>TYPEWRITE</kbd>, there |
| 2461 |
is an important exception: |
| 2462 |
<a href="headfootpage.html#hdrftr-global-size">HEADER_SIZE</a> |
| 2463 |
(and by extension, FOOTER_SIZE). This is |
| 2464 |
particularly useful for reducing the point size of |
| 2465 |
headers/footers should they become crowded (quite likely to |
| 2466 |
happen if the title of your document is long and your |
| 2467 |
<a href="#copystyle">COPYSTYLE</a> |
| 2468 |
is <kbd>DRAFT</kbd>). |
| 2469 |
</p> |
| 2470 |
|
| 2471 |
<p class="tip-bottom"> |
| 2472 |
Finally, note that colour is disabled for <kbd>TYPEWRITE</kbd>. If |
| 2473 |
you would like it enabled, for example so PDF links are colourised, |
| 2474 |
invoke the groff |
| 2475 |
<a href="definitions.html#primitives">primitive</a> |
| 2476 |
'<kbd>.color</kbd>' after PRINTSTYLE. |
| 2477 |
</p> |
| 2478 |
|
| 2479 |
</div> |
| 2480 |
|
| 2481 |
<!-- -COPYSTYLE- --> |
| 2482 |
|
| 2483 |
<div class="macro-id-overline"> |
| 2484 |
<h3 id="copystyle" class="macro-id">COPYSTYLE</h3> |
| 2485 |
</div> |
| 2486 |
|
| 2487 |
<div class="box-macro-args"> |
| 2488 |
Macro: <b>COPYSTYLE</b> <kbd class="macro-args">DRAFT | FINAL</kbd> |
| 2489 |
</div> |
| 2490 |
|
| 2491 |
<p> |
| 2492 |
Mom’s default COPYSTYLE is <kbd>FINAL</kbd>, so you |
| 2493 |
don’t have to use this macro unless you want to. |
| 2494 |
</p> |
| 2495 |
|
| 2496 |
<p> |
| 2497 |
COPYSTYLE <kbd>DRAFT</kbd> exhibits the following behaviour: |
| 2498 |
</p> |
| 2499 |
<ol style="margin-top: -.5em;"> |
| 2500 |
<li>Documents start on page 1, whether or not you |
| 2501 |
request a different starting page number with |
| 2502 |
<a href="headfootpage.html#pagenumber">PAGENUMBER</a>. |
| 2503 |
</li> |
| 2504 |
<li>Page numbers are set in lower case roman numerals.</li> |
| 2505 |
<li>The draft number supplied by |
| 2506 |
<a href="#draft">DRAFT</a> |
| 2507 |
and a revision number, if supplied with |
| 2508 |
<a href="#revision">REVISION</a> |
| 2509 |
(see |
| 2510 |
<a href="#reference-macros">reference macros</a>), |
| 2511 |
appear in the centre part of |
| 2512 |
<a href="definitions.html#header">page headers</a> |
| 2513 |
(or footers, depending on which you’ve selected) along with |
| 2514 |
any other information that normally appears there. |
| 2515 |
</li> |
| 2516 |
</ol> |
| 2517 |
|
| 2518 |
<div class="box-important"> |
| 2519 |
<p class="tip"> |
| 2520 |
<span class="important">Important:</span> |
| 2521 |
If you define your own centre part for page headers with |
| 2522 |
<a href="headfootpage.html#hdrftr-center">HEADER_CENTER</a>, |
| 2523 |
no draft and/or revision number will appear there. If you want |
| 2524 |
draft and revision information in this circumstance, use |
| 2525 |
<a href="headfootpage.html#draft-with-pagenumber">DRAFT_WITH_PAGENUMBER</a>. |
| 2526 |
</p> |
| 2527 |
</div> |
| 2528 |
|
| 2529 |
<p> |
| 2530 |
COPYSTYLE <kbd>FINAL</kbd> differs from <kbd>DRAFT</kbd> in that: |
| 2531 |
</p> |
| 2532 |
<ol style="margin-top: -.5em;"> |
| 2533 |
<li>It respects the starting page number you give the document.</li> |
| 2534 |
<li>Page numbers are set in normal (Arabic) digits.</li> |
| 2535 |
<li>No draft or revision number appears in the page headers.</li> |
| 2536 |
</ol> |
| 2537 |
|
| 2538 |
<div class="box-tip"> |
| 2539 |
<p id="copystyle-note" class="tip"> |
| 2540 |
<span class="note">Note:</span> |
| 2541 |
The centre part of page headers can get crowded, especially with |
| 2542 |
<a href="docprocessing.html#doctype">DOCTYPE <kbd>CHAPTER</kbd></a> |
| 2543 |
and |
| 2544 |
<a href="docprocessing.html#doctype">DOCTYPE <kbd>NAMED</kbd></a>, |
| 2545 |
when the COPYSTYLE is <kbd>DRAFT</kbd>. Three mechanisms are |
| 2546 |
available to overcome this problem. One is to reduce the overall |
| 2547 |
size of headers (with |
| 2548 |
<a href="headfootpage.html#hdrftr-global-size">HEADER_SIZE</a>). |
| 2549 |
Another, which only works with |
| 2550 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>, |
| 2551 |
is to reduce the size of the header’s centre part only (with |
| 2552 |
<a href="headfootpage.html#_size">HEADER_CENTER_SIZE</a>). |
| 2553 |
And finally, you can elect to have the draft/revision information |
| 2554 |
attached to page numbers instead of having it appear in the centre |
| 2555 |
of page headers (see |
| 2556 |
<a href="headfootpage.html#draft-with-pagenumber">DRAFT_WITH_PAGENUMBER</a>). |
| 2557 |
</p> |
| 2558 |
</div> |
| 2559 |
|
| 2560 |
<div class="rule-short"><hr/></div> |
| 2561 |
|
| 2562 |
<!-- ======================================================================== --> |
| 2563 |
|
| 2564 |
<h2 id="start-macro" class="macro-group">Initiate document processing</h2> |
| 2565 |
|
| 2566 |
<p> |
| 2567 |
In order to use mom’s document element macros (tags), you have |
| 2568 |
to tell her you want them. The macro to do this is |
| 2569 |
<a href="#start">START</a>. |
| 2570 |
</p> |
| 2571 |
|
| 2572 |
<p> |
| 2573 |
START collects the information you gave mom in the setup section at |
| 2574 |
the top of your file (see |
| 2575 |
<a href="#docprocessing-tut">Tutorial – Setting up a mom document</a>), |
| 2576 |
merges it with her defaults, sets up headers and page numbering, |
| 2577 |
and prepares mom to process your document using the document |
| 2578 |
element tags. No document processing takes place until you invoke |
| 2579 |
<kbd>.START</kbd>. |
| 2580 |
</p> |
| 2581 |
|
| 2582 |
<!-- -START- --> |
| 2583 |
|
| 2584 |
<div class="macro-id-overline"> |
| 2585 |
<h3 id="start" class="macro-id">START</h3> |
| 2586 |
</div> |
| 2587 |
|
| 2588 |
<div class="box-macro-args"> |
| 2589 |
Macro: <b>START</b> |
| 2590 |
</div> |
| 2591 |
<p class="requires"> |
| 2592 |
• Required for document processing |
| 2593 |
</p> |
| 2594 |
|
| 2595 |
<p> |
| 2596 |
START takes no arguments. It simply instructs mom to begin document |
| 2597 |
processing. If you don’t want document processing (i.e., you |
| 2598 |
only want the |
| 2599 |
<a href="typesetting.html#macros-typesetting">typesetting macros</a>), |
| 2600 |
don’t use START. |
| 2601 |
</p> |
| 2602 |
|
| 2603 |
<p> |
| 2604 |
At a barest minimum before START, you must enter a |
| 2605 |
<a href="#printstyle">PRINTSTYLE</a> |
| 2606 |
command. |
| 2607 |
</p> |
| 2608 |
|
| 2609 |
<div class="rule-short"><hr/></div> |
| 2610 |
|
| 2611 |
<!-- ======================================================================== --> |
| 2612 |
|
| 2613 |
<h2 id="style-before-start" class="macro-group">Establishing typestyle and formatting parameters before START</h2> |
| 2614 |
|
| 2615 |
<p> |
| 2616 |
In the third (optional) part of setting up a document (the |
| 2617 |
stylesheet; see |
| 2618 |
<a href="#docprocessing-tut">Tutorial – Setting up a mom document</a>), |
| 2619 |
you can use the |
| 2620 |
<a href="typesetting.html">typesetting macros</a> |
| 2621 |
to change mom’s document-wide defaults for margins, |
| 2622 |
line length, family, base point size, |
| 2623 |
<a href="definitions.html#leading">leading</a>, |
| 2624 |
and justification style. |
| 2625 |
</p> |
| 2626 |
|
| 2627 |
<p> |
| 2628 |
Two additional style concerns have to be addressed here (i.e. in |
| 2629 |
macros before |
| 2630 |
<a href="#start">START</a>): |
| 2631 |
changes to the |
| 2632 |
<a href="definitions.html#docheader">docheader</a>, |
| 2633 |
and whether you want you want the document’s nominal leading |
| 2634 |
adjusted to fill pages fully to the bottom margin. |
| 2635 |
</p> |
| 2636 |
|
| 2637 |
<div class="macro-list-container" style="margin-top: 2em;"> |
| 2638 |
<h3 id="index-style-before-start" class="macro-list">Type & formatting parameters before START</h3> |
| 2639 |
<ul class="macro-list"> |
| 2640 |
<li><a href="#type-before-start">Behaviour of the typesetting macros before START</a> |
| 2641 |
<ul class="sublist" style="font-size: 100%; line-height: 120%; margin-bottom: .25em;"> |
| 2642 |
<li><a href="#meanings">List of meanings</a></li> |
| 2643 |
<li><a href="#lrc-note">Special note on LEFT, RIGHT and CENTER</a></li> |
| 2644 |
<li><a href="#color">Initializing colours</a></li> |
| 2645 |
</ul></li> |
| 2646 |
<li><a href="#include">Including (sourcing) style sheets and files</a></li> |
| 2647 |
<li><a href="#doc-lead-adjust">DOC_LEAD_ADJUST</a> – adjust linespacing to fill pages and align bottom margins</li> |
| 2648 |
<li><a href="#docheader">DOCHEADER</a> |
| 2649 |
<ul class="sublist" style="font-size: 100%; line-height: 120%;"> |
| 2650 |
<li><a href="#docheader-control">Docheader control</a></li> |
| 2651 |
</ul></li> |
| 2652 |
<li><a href="#columns">COLUMNS</a> |
| 2653 |
<ul class="sublist" style="font-size: 100%; line-height: 120%;"> |
| 2654 |
<li><a href="#col-next">COL_NEXT</a></li> |
| 2655 |
<li><a href="#col-break">COL_BREAK</a></li> |
| 2656 |
</ul></li> |
| 2657 |
</ul> |
| 2658 |
</div> |
| 2659 |
|
| 2660 |
<h3 id="type-before-start" class="docs">Behaviour of the typesetting macros before START</h3> |
| 2661 |
|
| 2662 |
<p> |
| 2663 |
From time to time (or maybe frequently), you’ll want the |
| 2664 |
overall look of a document to differ from mom’s defaults. |
| 2665 |
Perhaps you’d like her to use a different |
| 2666 |
<a href="definitions.html#family">family</a>, |
| 2667 |
or a different overall |
| 2668 |
<a href="definitions.html#leading">leading</a>, |
| 2669 |
or have different left and/or right page margins. |
| 2670 |
</p> |
| 2671 |
|
| 2672 |
<p> |
| 2673 |
To accomplish such alterations, use the appropriate |
| 2674 |
<a href="typesetting.html#macros-typesetting">typesetting macros</a> |
| 2675 |
(listed below) after |
| 2676 |
<a href="#printstyle">PRINTSTYLE</a> |
| 2677 |
and before |
| 2678 |
<a href="#start">START</a>. |
| 2679 |
</p> |
| 2680 |
|
| 2681 |
<p> |
| 2682 |
More than one user has, quite understandably, not fully grasped the |
| 2683 |
significance of the preceding sentence. The part they’ve missed is |
| 2684 |
<i>after</i> PRINTSTYLE. |
| 2685 |
</p> |
| 2686 |
|
| 2687 |
<p> |
| 2688 |
Changes to any aspect of the default look and/or formatting of a mom |
| 2689 |
document must come after PRINTSTYLE. For example, it might seem |
| 2690 |
natural to set up page margins at the very top of a document with |
| 2691 |
<br/> |
| 2692 |
<span class="pre-in-pp"> |
| 2693 |
.L_MARGIN 1i |
| 2694 |
.R_MARGIN 1.5i |
| 2695 |
</span> |
| 2696 |
However, when you invoke <kbd>.PRINTSTYLE</kbd>, those margins |
| 2697 |
will be overridden. The correct place to set margins—and |
| 2698 |
all other changes to the look of a document—is <i>after</i> |
| 2699 |
PRINTSTYLE. |
| 2700 |
</p> |
| 2701 |
|
| 2702 |
<div class="box-tip"> |
| 2703 |
<p class="tip"> |
| 2704 |
<span class="important">Important:</span> |
| 2705 |
Do not use the macros listed in |
| 2706 |
<a href="#intro-doc-param">Changing document-wide typesetting parameters after START</a> |
| 2707 |
prior to START; they are exclusively for use afterwards. |
| 2708 |
</p> |
| 2709 |
</div> |
| 2710 |
|
| 2711 |
<div id="meanings" class="defaults-container"> |
| 2712 |
<h3 class="docs defaults" style="margin-top: 0;">Meanings</h3> |
| 2713 |
<p style="margin-left: 9px; margin-top: -.25em;"> |
| 2714 |
When used before START, the |
| 2715 |
<a href="typesetting.html#macros-typesetting">typesetting macros</a>, |
| 2716 |
below have the following meanings: |
| 2717 |
<br/> |
| 2718 |
<span class="pre"> |
| 2719 |
L_MARGIN Left margin of pages, including headers/footers |
| 2720 |
R_MARGIN Right margin of pages, including headers/footers |
| 2721 |
T_MARGIN The point at which running text (i.e. not |
| 2722 |
headers/footers or page numbers) starts on each |
| 2723 |
page |
| 2724 |
B_MARGIN* The point at which running text (i.e. not |
| 2725 |
(see note) headers/footers or page numbers) ends on each page |
| 2726 |
|
| 2727 |
PAGE If you use PAGE, its final four arguments have the |
| 2728 |
same meaning as L_ R_ T_ and B_MARGIN (above). |
| 2729 |
|
| 2730 |
LL The line length for everything on the page; |
| 2731 |
equivalent to setting the right margin with |
| 2732 |
R_MARGIN |
| 2733 |
FAMILY The family of all type in the document |
| 2734 |
PT_SIZE The point size of type in paragraphs; mom uses |
| 2735 |
this to calculate automatic point size changes |
| 2736 |
(e.g. for heads, footnotes, quotes, headers, etc) |
| 2737 |
LS/AUTOLEAD** The leading used in paragraphs; all leading and |
| 2738 |
spacing of running text is calculated from this |
| 2739 |
|
| 2740 |
QUAD/JUSTIFY Affects paragraphs only |
| 2741 |
LEFT*** No effect |
| 2742 |
RIGHT*** No effect |
| 2743 |
CENTER*** No effect |
| 2744 |
|
| 2745 |
------ |
| 2746 |
*See <a href="headfootpage.html#footer-margin">FOOTER MARGIN AND BOTTOM MARGIN</a> for an important warning |
| 2747 |
**See <kbd><a href="#doc-lead-adjust">DOC_LEAD_ADJUST</a></kbd> |
| 2748 |
***See <a href="#lrc-note">Special note</a> |
| 2749 |
</span> |
| 2750 |
</p> |
| 2751 |
</div> |
| 2752 |
|
| 2753 |
<p style="margin-top: -.75em;"> |
| 2754 |
Other macros that deal with type style, or refinements thereof |
| 2755 |
(<a href="typesetting.html#kern">KERN</a>, |
| 2756 |
<a href="typesetting.html#ligatures">LIGATURES</a>, |
| 2757 |
<a href="typesetting.html#hy">HY</a>, |
| 2758 |
<a href="typesetting.html#ws">WS</a>, |
| 2759 |
<a href="typesetting.html#ss">SS</a>, |
| 2760 |
etc.), behave normally. It is not recommended that you set up tabs |
| 2761 |
or indents prior to START. |
| 2762 |
</p> |
| 2763 |
|
| 2764 |
<p> |
| 2765 |
If you want to change any of the basic parameters (above) |
| 2766 |
<i>after</i> START and have them affect a document globally (as if |
| 2767 |
you’d entered them <i>before</i> START), you must use the macros |
| 2768 |
listed in |
| 2769 |
<a href="#intro-doc-param">Changing document-wide typesetting parameters after START</a>. |
| 2770 |
</p> |
| 2771 |
|
| 2772 |
<h4 id="lrc-note" class="docs">Special note on LEFT, RIGHT and CENTER prior to START</h4> |
| 2773 |
|
| 2774 |
<p> |
| 2775 |
In a word, these three macros have no effect on document processing |
| 2776 |
when invoked prior to START. |
| 2777 |
</p> |
| 2778 |
|
| 2779 |
<p> |
| 2780 |
All mom’s document element tags |
| 2781 |
(<a href="docelement.html#pp">PP</a>, |
| 2782 |
<a href="docelement.html#heading">HEADING</a>, |
| 2783 |
<a href="docelement.html#blockquote">BLOCKQUOTE</a>, |
| 2784 |
<a href="docelement.html#footnote">FOOTNOTE</a>, |
| 2785 |
etc.) except |
| 2786 |
<a href="docelement.html#quote">QUOTE</a> |
| 2787 |
set a |
| 2788 |
<a href="definitions.html#filled">fill mode</a> |
| 2789 |
as soon as they’re invoked. If you wish to turn fill mode off |
| 2790 |
for the duration of any tag (with |
| 2791 |
<a href="typesetting.html#lrc">LEFT, RIGHT or CENTER</a>) |
| 2792 |
you must do so immediately after invoking the tag. Furthermore, |
| 2793 |
the change affects <i>only</i> the current invocation of the tag. |
| 2794 |
Subsequent invocations of the same tag for which you want the same |
| 2795 |
change require that you invoke <kbd>.LEFT</kbd>, <kbd>.RIGHT</kbd> |
| 2796 |
or <kbd>.CENTER</kbd> immediately after every invocation of the tag. |
| 2797 |
</p> |
| 2798 |
|
| 2799 |
<!-- -INCLUDE- --> |
| 2800 |
|
| 2801 |
<h4 id="include" class="docs">Including (sourcing) style sheets and files</h4> |
| 2802 |
|
| 2803 |
<p> |
| 2804 |
If you routinely make the same changes to mom’s defaults in |
| 2805 |
order to create similar documents in a similar style—in other |
| 2806 |
words, you need a template— you can create stylesheet files |
| 2807 |
and include, or “source”, them into your mom documents |
| 2808 |
with the macro <kbd>.INCLUDE</kbd>. The right place for such style |
| 2809 |
sheets is after |
| 2810 |
<a href="#printstyle">PRINTSTYLE</a> |
| 2811 |
and before |
| 2812 |
<a href="#start">START</a>. |
| 2813 |
</p> |
| 2814 |
|
| 2815 |
<p> |
| 2816 |
Say, for example, in a particular kind of document, you always |
| 2817 |
want main heads set in Helvetica Bold Italic, flush left, with |
| 2818 |
no underscore. You’d create a file, let’s call it |
| 2819 |
<kbd>head-template</kbd>, in which you’d place the pertinent |
| 2820 |
HEADIING control macros. |
| 2821 |
<br/> |
| 2822 |
<span class="pre-in-pp"> |
| 2823 |
.HEADING_STYLE 1 \ |
| 2824 |
FAMILY H \ |
| 2825 |
FONT BI \ |
| 2826 |
QUAD L \ |
| 2827 |
NO_UNDERSCORE |
| 2828 |
</span> |
| 2829 |
Then, in the preliminary document set-up section of your main file, |
| 2830 |
you’d include the style sheet, or template, like this: |
| 2831 |
<br/> |
| 2832 |
<span class="pre-in-pp"> |
| 2833 |
.TITLE "Sample Document |
| 2834 |
.AUTHOR "Joe Blow |
| 2835 |
.PRINTSTYLE TYPESET |
| 2836 |
\# |
| 2837 |
.INCLUDE head-template |
| 2838 |
\# |
| 2839 |
.START |
| 2840 |
</span> |
| 2841 |
|
| 2842 |
The blank comment lines ( <kbd>\#</kbd> ) aren’t required, but |
| 2843 |
they do make your file(s) easier to read. |
| 2844 |
</p> |
| 2845 |
|
| 2846 |
<p> |
| 2847 |
If the file to be included is in the same directory as the file |
| 2848 |
you’re working, you simply enter the filename after |
| 2849 |
<kbd>.INCLUDE</kbd>. If the file’s in another directory, you must |
| 2850 |
provide a full path name to it. For example, if you’re working in |
| 2851 |
a directory called <kbd>/home/joe/stories</kbd> and your |
| 2852 |
stylesheet is in <kbd>/home/joe/stylesheets</kbd>, the above |
| 2853 |
example would have to look like this: |
| 2854 |
<br/> |
| 2855 |
<span class="pre-in-pp"> |
| 2856 |
.TITLE "Sample Document |
| 2857 |
.AUTHOR "Joe Blow |
| 2858 |
.PRINTSTYLE TYPESET |
| 2859 |
\# |
| 2860 |
.INCLUDE /home/joe/stylesheets/head-template |
| 2861 |
\# |
| 2862 |
.START |
| 2863 |
</span> |
| 2864 |
</p> |
| 2865 |
|
| 2866 |
<p> |
| 2867 |
INCLUDE is not restricted to style sheets or templates. You can |
| 2868 |
include any file at any point into a document, provided the file |
| 2869 |
contains only text and valid groff or mom formatting commands. |
| 2870 |
Neither is INCLUDE restricted to use with mom’s document |
| 2871 |
processing macros. You can use it in plain typeset documents as |
| 2872 |
well. |
| 2873 |
</p> |
| 2874 |
|
| 2875 |
<div class="box-tip"> |
| 2876 |
<p class="tip"> |
| 2877 |
<span class="note">Note:</span> |
| 2878 |
INCLUDE is an alias for the groff request <kbd>.so</kbd>. If the |
| 2879 |
sourced file contains material that requires pre-processing (e.g. |
| 2880 |
a table made with <b>tbl(1)</b> or non-English characters), use |
| 2881 |
<kbd>.so</kbd> rather than INCLUDE and invoke pdfmom thus: |
| 2882 |
<br/> |
| 2883 |
<span class="pre-in-pp"> |
| 2884 |
soelim file.mom | pdfmom [flags] > file.pdf |
| 2885 |
</span> |
| 2886 |
<b>soelim</b> only looks for lines that begin with <kbd>.so</kbd>, |
| 2887 |
which furthermore must not have any space between the period and |
| 2888 |
the “s”. |
| 2889 |
</p> |
| 2890 |
</div> |
| 2891 |
|
| 2892 |
<!-- -COLOUR- --> |
| 2893 |
|
| 2894 |
<h4 id="color" class="docs">Initializing colours</h4> |
| 2895 |
|
| 2896 |
<p> |
| 2897 |
Although it doesn’t really matter where you define/initialize |
| 2898 |
colours for use in document processing (see |
| 2899 |
<a href="color.html#newcolor">NEWCOLOR</a> |
| 2900 |
and |
| 2901 |
<a href="color.html#xcolor">XCOLOR</a> |
| 2902 |
in the section |
| 2903 |
<a href="color.html#color-intro">Coloured text</a>), |
| 2904 |
I recommend doing so before you begin document processing with |
| 2905 |
<kbd><a href="#start">START</a></kbd>. |
| 2906 |
</p> |
| 2907 |
|
| 2908 |
<p> |
| 2909 |
The macro |
| 2910 |
<a href="color.html#color">COLOR</a> |
| 2911 |
and the |
| 2912 |
<a href="definitions.html#inlines">inline escape</a>, |
| 2913 |
<a href="color.html#color-inline"><kbd><span class="nobr">\*[<colorname>]</span></kbd></a> |
| 2914 |
can be used at any time during document processing for occasional |
| 2915 |
colour effects. However, consistent and reliable colourising of |
| 2916 |
various document elements (the docheader, heads, linebreaks, |
| 2917 |
footnotes, pagenumbers, and so on) must be managed through the use |
| 2918 |
of the |
| 2919 |
<a href="docelement.html#docelement-control">document element control macros</a>. |
| 2920 |
</p> |
| 2921 |
|
| 2922 |
<p> |
| 2923 |
Please note that colour is disabled if your |
| 2924 |
<a href="#printstyle">PRINTSTYLE</a> |
| 2925 |
is <kbd>TYPEWRITE</kbd>. If you would like it enabled, for example |
| 2926 |
so PDF links are colourised, invoke the groff |
| 2927 |
<a href="definitions.html#primitives">primitive</a> |
| 2928 |
'<kbd>.color</kbd>' after PRINTSTYLE. |
| 2929 |
</p> |
| 2930 |
|
| 2931 |
<div class="box-tip"> |
| 2932 |
<p class="tip"> |
| 2933 |
<span class="note">Note:</span> |
| 2934 |
If you plan to have mom generate a |
| 2935 |
<a href="docelement.html#toc">table of contents</a>, |
| 2936 |
do not embed colour |
| 2937 |
<a href="definitions.html#inlines">inline escapes</a> |
| 2938 |
(<a href="color.html#color-inline"><kbd><span class="nobr">\*[<colourname>]</span></kbd></a>) |
| 2939 |
in the |
| 2940 |
<a href="definitions.html#stringargument">string arguments</a> |
| 2941 |
given to any of the |
| 2942 |
<a href="docprocessing.html#reference-macros">reference macros</a>, |
| 2943 |
nor in the string arguments given to |
| 2944 |
<a href="docelement.html#heading">HEADING</a>. |
| 2945 |
Use, rather, the |
| 2946 |
<a href="definitions.html#controlmacro">control macros</a> |
| 2947 |
mom provides to automatically colourise these elements. |
| 2948 |
</p> |
| 2949 |
</div> |
| 2950 |
|
| 2951 |
<!-- -DOC LEAD ADJUST- --> |
| 2952 |
|
| 2953 |
<div class="macro-id-overline"> |
| 2954 |
<h3 id="doc-lead-adjust" class="macro-id">Adjust linespacing to fill pages and align bottom margins</h3> |
| 2955 |
</div> |
| 2956 |
|
| 2957 |
<div class="box-macro-args"> |
| 2958 |
Macro: <b>DOC_LEAD_ADJUST</b> <kbd class="macro-args">toggle</kbd> |
| 2959 |
</div> |
| 2960 |
|
| 2961 |
<p class="requires"> |
| 2962 |
• Must come after |
| 2963 |
<a href="typesetting.html#ls"><span class="normal">LS</span></a> |
| 2964 |
or |
| 2965 |
<a href="typesetting.html.#autoloead"><span class="normal">AUTOLEAD</span></a> |
| 2966 |
and before |
| 2967 |
<a href="#start"><span class="normal">START</span></a> |
| 2968 |
</p> |
| 2969 |
|
| 2970 |
<p> |
| 2971 |
DOC_LEAD_ADJUST is a special macro to adjust document |
| 2972 |
<a href="definitions.html#leading">leading</a> |
| 2973 |
so that bottom margins fall precisely where you expect. |
| 2974 |
</p> |
| 2975 |
|
| 2976 |
<p> |
| 2977 |
When you invoke <kbd>.DOC_LEAD_ADJUST</kbd>, mom takes the number |
| 2978 |
of lines that fit on the page at your requested leading, then |
| 2979 |
incrementally adds |
| 2980 |
<a href="definitions.html#units">machine units</a> |
| 2981 |
to the leading until the maximum number of lines at the new leading |
| 2982 |
that fit on the page coincides perfectly with the bottom margin of |
| 2983 |
<a href="definitions.html#running">running text</a>. |
| 2984 |
</p> |
| 2985 |
|
| 2986 |
<p> |
| 2987 |
In most instances, the difference between the requested lead and |
| 2988 |
the adjusted lead is unnoticeable, and since in almost all cases |
| 2989 |
adjusted leading is what you want, it’s mom’s default |
| 2990 |
and you don’t have to invoke it explicitly. |
| 2991 |
</p> |
| 2992 |
|
| 2993 |
<p> |
| 2994 |
However, should you not want adjusted document leading, you must |
| 2995 |
turn it off manually, like this: |
| 2996 |
<br/> |
| 2997 |
<span class="pre"> |
| 2998 |
.DOC_LEAD_ADJUST OFF |
| 2999 |
</span> |
| 3000 |
</p> |
| 3001 |
|
| 3002 |
<p> |
| 3003 |
If you set the document leading prior to START with |
| 3004 |
<a href="typesetting.html#leading">LS</a> |
| 3005 |
or |
| 3006 |
<a href="typesetting.html#autolead">AUTOLEAD</a>, |
| 3007 |
<kbd>.DOC_LEAD_ADJUST OFF</kbd> must come afterwards, like |
| 3008 |
this: |
| 3009 |
<br/> |
| 3010 |
<span class="pre-in-pp"> |
| 3011 |
.LS 12 |
| 3012 |
.DOC_LEAD_ADJUST OFF |
| 3013 |
</span> |
| 3014 |
In this scenario, the maximum number of lines that fit on a page at |
| 3015 |
a |
| 3016 |
<a href="definitions.html#leading">leading</a> |
| 3017 |
of 12 |
| 3018 |
<a href="definitions.html#picaspoints">points</a> |
| 3019 |
determine where mom ends a page. The effect will be that last lines |
| 3020 |
usually fall (slightly) short of the “official” bottom |
| 3021 |
margin. |
| 3022 |
</p> |
| 3023 |
|
| 3024 |
<p> |
| 3025 |
In |
| 3026 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a> <kbd>TYPEWRITE</kbd>, |
| 3027 |
the leading is always adjusted and can’t be turned off. |
| 3028 |
</p> |
| 3029 |
|
| 3030 |
<div class="box-tip"> |
| 3031 |
<p class="tip-top"> |
| 3032 |
<span class="note">Note:</span> |
| 3033 |
DOC_LEAD_ADJUST, if used, must be invoked after |
| 3034 |
<a href="typesetting.html#leading">LS</a> |
| 3035 |
or |
| 3036 |
<a href="typesetting.html#autolead">AUTOLEAD</a> |
| 3037 |
and before |
| 3038 |
<a href="#start">START</a>. |
| 3039 |
</p> |
| 3040 |
|
| 3041 |
<p class="tip-bottom"> |
| 3042 |
<span class="additional-note">Additional note:</span> |
| 3043 |
Even if you disable DOC_LEAD_ADJUST, mom will still adjust the |
| 3044 |
leading of endnotes pages and toc pages. See |
| 3045 |
<a href="docelement.html#endnote-lead">ENDNOTE_LEAD</a> |
| 3046 |
and |
| 3047 |
<a href="docelement.html#toc-lead">TOC_LEAD</a> |
| 3048 |
for an explanation of how to disable this default behaviour. |
| 3049 |
</p> |
| 3050 |
</div> |
| 3051 |
|
| 3052 |
<!-- -DOCHEADER- --> |
| 3053 |
|
| 3054 |
<div class="macro-id-overline"> |
| 3055 |
<h3 id="docheader" class="macro-id">Managing the docheader</h3> |
| 3056 |
</div> |
| 3057 |
|
| 3058 |
<div class="box-macro-args"> |
| 3059 |
Macro: <b>DOCHEADER</b> <kbd class="macro-args"><toggle> [ distance to advance from top of page ] [ NO_SHIM ]</kbd> |
| 3060 |
</div> |
| 3061 |
|
| 3062 |
<p class="requires"> |
| 3063 |
• Must come before |
| 3064 |
<a href="#start"><span class="normal">START</span></a>; <kbd><span class="normal">distance</span></kbd> requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3065 |
</p> |
| 3066 |
|
| 3067 |
<p> |
| 3068 |
By default, mom prints a |
| 3069 |
<a href="definitions.html#docheader">docheader</a> |
| 3070 |
on the first page of any document (see |
| 3071 |
<a href="#docheader-desc">below</a> |
| 3072 |
for a description of the docheader). If you don’t want a docheader, |
| 3073 |
turn it off with |
| 3074 |
<br/> |
| 3075 |
<span class="pre-in-pp"> |
| 3076 |
.DOCHEADER OFF |
| 3077 |
</span> |
| 3078 |
DOCHEADER is a toggle macro, so the argument doesn’t |
| 3079 |
have to be OFF; it can be anything you like. |
| 3080 |
</p> |
| 3081 |
|
| 3082 |
<p> |
| 3083 |
If you turn the docheader off, mom, by default, starts |
| 3084 |
the running text of your document on the same top |
| 3085 |
<a href="definitions.html#baseline">baseline</a> |
| 3086 |
as all subsequent pages. If you’d like her to start at a different |
| 3087 |
vertical position, give her the distance you’d like as a second |
| 3088 |
argument. |
| 3089 |
<br/> |
| 3090 |
<span class="pre-in-pp"> |
| 3091 |
.DOCHEADER OFF 1.5i |
| 3092 |
</span> |
| 3093 |
This starts the document 1.5 inches from the top of the page plus |
| 3094 |
whatever spacing adjustment mom has to make in order to ensure that |
| 3095 |
the first baseline of running text falls on a “valid” |
| 3096 |
baseline (i.e., one that ensures that the bottom margin of the first |
| 3097 |
page falls where it should). The distance is measured from the top |
| 3098 |
edge of the paper to the |
| 3099 |
<a href="definitions.html#baseline">baseline</a> |
| 3100 |
of the first line of type. |
| 3101 |
</p> |
| 3102 |
|
| 3103 |
<p> |
| 3104 |
With <kbd>.DOCHEADER OFF</kbd>, it is possible to create your own |
| 3105 |
custom docheaders (after |
| 3106 |
<a href="#start">START</a>) |
| 3107 |
using mom’s typesetting macros. It is recommended that if you |
| 3108 |
do create a custom docheader, you make |
| 3109 |
<a href="docprocessing.html#shim"><kbd>.SHIM</kbd></a> |
| 3110 |
the last macro before the first item of your document (for |
| 3111 |
example, <kbd>.PP</kbd> or <kbd>.HEADING 1</kbd>. |
| 3112 |
</p> |
| 3113 |
|
| 3114 |
<div class="box-tip"> |
| 3115 |
<p class="tip"> |
| 3116 |
<span class="note">Note:</span> |
| 3117 |
You may have tried <kbd>DOCHEAHER OFF</kbd> with a distance argument |
| 3118 |
and discovered that mom will not budge the starting position of the document |
| 3119 |
from her chosen default location. This is byproduct of |
| 3120 |
<a href="#shim">shimming</a>, |
| 3121 |
which mom always applies before the first line of running text after |
| 3122 |
the docheader, regardless of which |
| 3123 |
<a href="#vertical-whitespace-management">vertical whitespace management</a> |
| 3124 |
strategy is in effect. If you encounter the problem, pass |
| 3125 |
<kbd>DOCHEADER OFF <distance></kbd> |
| 3126 |
the additional final argument, <kbd>NO_SHIM</kbd>. |
| 3127 |
</p> |
| 3128 |
</div> |
| 3129 |
|
| 3130 |
<!-- DOCHEADER CONTROL --> |
| 3131 |
|
| 3132 |
<h3 id="docheader-control" class="docs">Docheader control: How to change the look of docheaders</h3> |
| 3133 |
|
| 3134 |
<p> |
| 3135 |
In |
| 3136 |
<a href="#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>, |
| 3137 |
the look of docheaders is carved in stone. In |
| 3138 |
<a href="#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>, |
| 3139 |
however, you can make a lot of changes. Macros that alter |
| 3140 |
docheaders must come before |
| 3141 |
<a href="#start">START</a>. |
| 3142 |
</p> |
| 3143 |
|
| 3144 |
<h4 id="docheader-desc" class="docs">Docheader description</h4> |
| 3145 |
|
| 3146 |
<p> |
| 3147 |
A typeset docheader has the following characteristics: |
| 3148 |
</p> |
| 3149 |
<div class="box-code" style="margin-left: 24px;"> |
| 3150 |
<span class="pre" style="color: #302419;"> |
| 3151 |
TITLE bold, 3.5 points larger than running text (not necessarily caps) |
| 3152 |
Subtitle medium, same size as running text |
| 3153 |
by medium italic, same size as running text |
| 3154 |
Author(s) medium italic, same size as running text |
| 3155 |
|
| 3156 |
(Document type) bold italic, 3 points larger than running text |
| 3157 |
</span> |
| 3158 |
</div> |
| 3159 |
|
| 3160 |
<p> |
| 3161 |
Or, if the |
| 3162 |
<a href="#doctype">DOCTYPE</a> |
| 3163 |
is <kbd>CHAPTER</kbd>, |
| 3164 |
</p> |
| 3165 |
<div class="box-code" style="margin-left: 24px;"> |
| 3166 |
<span class="pre" style="color: #302419;"> |
| 3167 |
Chapter <n> bold, 4 points larger than running text |
| 3168 |
Chapter Title bold italic, 4 points larger than running text |
| 3169 |
</span> |
| 3170 |
</div> |
| 3171 |
|
| 3172 |
<p> |
| 3173 |
The |
| 3174 |
<a href="definitions.html#family">family</a> |
| 3175 |
is the prevailing family of the whole document. Title, subtitle, |
| 3176 |
author, and document type are what you supply with the |
| 3177 |
<a href="#reference-macros">reference macros</a>. |
| 3178 |
Any you leave out will not appear; mom will compensate: |
| 3179 |
</p> |
| 3180 |
|
| 3181 |
<div class="box-tip"> |
| 3182 |
<p class="tip"> |
| 3183 |
<span class="note">Note:</span> |
| 3184 |
If your DOCTYPE is <kbd>CHAPTER</kbd> and you have both “Chapter |
| 3185 |
<n>” and a “Chapter Title” (as above), mom |
| 3186 |
inserts a small amount of whitespace between them, equal to |
| 3187 |
one-quarter of the |
| 3188 |
<a href="definitions.html#leading">leading</a> |
| 3189 |
in effect. If this doesn’t suit you, you can remove or alter |
| 3190 |
the space with |
| 3191 |
<a href="#space-before">CHAPTER_TITLE_SPACE_BEFORE</a>. |
| 3192 |
</p> |
| 3193 |
</div> |
| 3194 |
|
| 3195 |
<div class="macro-list-container"> |
| 3196 |
<h3 id="index-docheader-control" class="macro-list">Docheader control</h3> |
| 3197 |
|
| 3198 |
<p style="margin-top: -1.5em; margin-left: .5em; margin-right: .5em"> |
| 3199 |
With the docheader control macros, you can change the family, |
| 3200 |
colour, leading, and quad direction of the entire docheader. You can |
| 3201 |
also set the style parameters for each part individually. Style |
| 3202 |
parameters include family, font, size, colour, lead, space before, |
| 3203 |
caps, smallcaps, and underscoring. |
| 3204 |
</p> |
| 3205 |
|
| 3206 |
<ul class="macro-list" style="margin-top: -.5em"> |
| 3207 |
<li><a href="#change-whole-docheader">1. Changes to the whole docheader</a> |
| 3208 |
<ul style="list-style-type: disc"> |
| 3209 |
<li><a href="#change-start">Change the starting position of the docheader</a></li> |
| 3210 |
<li><a href="#docheader-family">Change the family of the whole docheader</a></li> |
| 3211 |
<li><a href="#docheader-color">Change the colour of the whole docheader</a></li> |
| 3212 |
<li><a href="#docheader-lead">Change the leading of the whole docheader</a></li> |
| 3213 |
<li><a href="#docheader-quad">Change the quad direction of the docheader</a></li> |
| 3214 |
</ul> |
| 3215 |
</li> |
| 3216 |
<li><a href="#part-by-part">2. Part by part changes</a> |
| 3217 |
<ul style="list-style-type: disc"> |
| 3218 |
<li><a href="#list-of-params">List of parameters and arguments</a></li> |
| 3219 |
<li><a href="#grouping">Grouping part/parameter changes</a> – very handy</li> |
| 3220 |
</ul> |
| 3221 |
</li> |
| 3222 |
<li><a href="#change-attribute">3. Changing or removing the attribution string (“by”)</a></li> |
| 3223 |
</ul> |
| 3224 |
</div> |
| 3225 |
|
| 3226 |
<h4 id="change-whole-docheader" class="docs" style="font-size: 100%">1. Changes to the whole docheader</h4> |
| 3227 |
|
| 3228 |
<h5 id="change-start" class="docs">Change the starting position of the docheader</h5> |
| 3229 |
|
| 3230 |
<p> |
| 3231 |
By default, a docheader starts on the same |
| 3232 |
<a href="definitions.html#baseline">baseline</a> |
| 3233 |
as |
| 3234 |
<a href="definitions.html#running">running text</a>. |
| 3235 |
If you’d like it to start somewhere else, use the macro |
| 3236 |
DOCHEADER_ADVANCE and give it the distance you want (measured from |
| 3237 |
the top edge of the paper to the first baseline of the docheader), |
| 3238 |
like this: |
| 3239 |
<br/> |
| 3240 |
<span class="pre-in-pp"> |
| 3241 |
.DOCHEADER_ADVANCE 4P |
| 3242 |
</span> |
| 3243 |
A |
| 3244 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3245 |
is required. |
| 3246 |
</p> |
| 3247 |
|
| 3248 |
<div class="box-tip"> |
| 3249 |
<p class="tip"> |
| 3250 |
<span class="note">Note:</span> |
| 3251 |
If |
| 3252 |
<a href="headfootpage.html#headers">HEADERS</a> |
| 3253 |
are <kbd>OFF</kbd>, mom’s normal top margin for |
| 3254 |
<a href="definitions.html#running">running text</a> |
| 3255 |
(7.5 |
| 3256 |
<a href="definitions.html#picaspoints">picas</a>) |
| 3257 |
changes to 6 picas (visually approx. 1 inch). Since the first |
| 3258 |
baseline of the docheader falls on the same baseline as the first |
| 3259 |
line of running text (on pages after page 1), you might find the |
| 3260 |
docheaders a bit high when headers are off. Use DOCHEADER_ADVANCE |
| 3261 |
to place them where you want. |
| 3262 |
</p> |
| 3263 |
</div> |
| 3264 |
|
| 3265 |
<h5 id="docheader-quad" class="docs">Change the quad direction of the docheader</h5> |
| 3266 |
|
| 3267 |
<p> |
| 3268 |
By default, mom centres the docheader. If you’d prefer to |
| 3269 |
have your docheaders set flush left or right, or need to restore |
| 3270 |
the default centering, invoke <kbd>.DOCHEADER_QUAD</kbd> with the |
| 3271 |
quad direction you want, either <kbd>LEFT</kbd> (or <kbd>L</kbd>), |
| 3272 |
<kbd>RIGHT</kbd> (or <kbd>R</kbd>) or <kbd>CENTER</kbd> (or |
| 3273 |
<kbd>C</kbd>). |
| 3274 |
</p> |
| 3275 |
|
| 3276 |
<h5 id="docheader-family" class="docs">Change the family of the entire docheader</h5> |
| 3277 |
|
| 3278 |
<p> |
| 3279 |
By default, mom sets the docheader in the same |
| 3280 |
family used for |
| 3281 |
<a href="definitions.html#running">running text</a>. |
| 3282 |
If you’d prefer to have your docheaders set in a different |
| 3283 |
family, invoke <kbd>.DOCHEADER_FAMILY</kbd> with the family you |
| 3284 |
want. The argument to DOCHEADER_FAMILY is the same as for |
| 3285 |
<a href="typesetting.html#family">FAMILY</a>. |
| 3286 |
</p> |
| 3287 |
|
| 3288 |
<p> |
| 3289 |
For example, mom’s default family for running text is Times |
| 3290 |
Roman. If you’d like to keep that default, but have the |
| 3291 |
docheaders set entirely in Helvetica, |
| 3292 |
<br/> |
| 3293 |
<span class="pre-in-pp"> |
| 3294 |
.DOCHEADER_FAMILY H |
| 3295 |
</span> |
| 3296 |
is how you’d do it. |
| 3297 |
</p> |
| 3298 |
|
| 3299 |
<p> |
| 3300 |
Please note that if you use DOCHEADER_FAMILY, you can still alter |
| 3301 |
the family of individual parts of the docheader. |
| 3302 |
</p> |
| 3303 |
|
| 3304 |
<h5 id="docheader-color" class="docs">Change the colour of the entire docheader</h5> |
| 3305 |
|
| 3306 |
<p> |
| 3307 |
The default colour for docheaders is black, as you’d expect. |
| 3308 |
If you wish to change it, use |
| 3309 |
<kbd>.DOCHEADER_COLOR <colour></kbd>, where |
| 3310 |
<kbd> <colour></kbd> is a colour pre-initialized with |
| 3311 |
<a href="color.html#xcolor">XCOLOR</a> |
| 3312 |
or |
| 3313 |
<a href="color.html#newcolor">NEWCOLOR</a>. |
| 3314 |
</p> |
| 3315 |
|
| 3316 |
<h5 id="docheader-lead" class="docs">Change the leading of the entire docheader</h5> |
| 3317 |
|
| 3318 |
<p> |
| 3319 |
By default, mom uses the leading in effect for |
| 3320 |
<a href="definitions.html#running">running text</a> |
| 3321 |
for docheaders. If you want to increase or |
| 3322 |
decrease the overall docheader leading, use |
| 3323 |
<kbd>.DOCHEADER_LEAD +|-<amount></kbd>, where |
| 3324 |
<kbd><amount></kbd> is the number of |
| 3325 |
<a href="definitions.html#picaspoints">points</a> |
| 3326 |
by which to make the adjustment. |
| 3327 |
</p> |
| 3328 |
|
| 3329 |
<h4 id="part-by-part" class="docs" style="font-size: 100%">2. Part by part changes</h4> |
| 3330 |
|
| 3331 |
<p> |
| 3332 |
Whenever you want to change the style parameters for any part of |
| 3333 |
the docheader, simply join the name of the part to the parameter |
| 3334 |
you wish to change using an underscore, then supply any necessary |
| 3335 |
arguments. The subtitle double-underlined? No problem. |
| 3336 |
<br/> |
| 3337 |
<span class="pre-in-pp"> |
| 3338 |
.SUBTITLE_UNDERSCORE DOUBLE |
| 3339 |
</span> |
| 3340 |
Author in red? |
| 3341 |
<br/> |
| 3342 |
<span class="pre-in-pp"> |
| 3343 |
.AUTHOR_COLOR red |
| 3344 |
</span> |
| 3345 |
Title in smallcaps? |
| 3346 |
<span class="pre-in-pp"> |
| 3347 |
.TITLE_SMALLCAPS |
| 3348 |
</span> |
| 3349 |
</p> |
| 3350 |
|
| 3351 |
<div class="box-tip" style="margin-top: -1em;"> |
| 3352 |
<p class="tip"> |
| 3353 |
<span class="note">Note:</span> |
| 3354 |
Use <kbd>ATTRIBUTE</kbd> as the part name for the attribution string |
| 3355 |
(“by”) that precedes the author, and <kbd>DOCTYPE</kbd> |
| 3356 |
as the name for the string passed to <kbd>DOCTYPE NAMED "string"</kbd>. |
| 3357 |
</p> |
| 3358 |
</div> |
| 3359 |
|
| 3360 |
<h5 id="list-of-params" class="docs">List of parameters with arguments</h5> |
| 3361 |
|
| 3362 |
<dl> |
| 3363 |
<dt class="params">_FAMILY</dt> |
| 3364 |
<dd> |
| 3365 |
Takes the same argument as <a href="typesetting.html#family">FAMILY</a>. |
| 3366 |
</dd> |
| 3367 |
<dt class="params">_FONT</dt> |
| 3368 |
<dd> |
| 3369 |
Takes the same argument as <a href="typesetting.html#font">FT</a>. |
| 3370 |
</dd> |
| 3371 |
<dt class="params">_SIZE</dt> |
| 3372 |
<dd> |
| 3373 |
Takes a <kbd>+</kbd> or <kbd>-</kbd> value relative to the size of |
| 3374 |
<a href="definitions.html#running">running text</a>. |
| 3375 |
</dd> |
| 3376 |
<dt class="params">_COLOR</dt> |
| 3377 |
<dd> |
| 3378 |
Takes the same argument as <a href="color.html#color">COLOR</a>. |
| 3379 |
Colours should be pre-initialized with |
| 3380 |
<a href="color.html#xcolor">XCOLOR</a> |
| 3381 |
or |
| 3382 |
<a href="color.html#newcolor">NEWCOLOR</a>. |
| 3383 |
</dd> |
| 3384 |
<dt class="params">_LEAD</dt> |
| 3385 |
<dd> |
| 3386 |
Takes an absolute leading value, i.e. not relative to the |
| 3387 |
overall leading of the docheader. The leading applies to |
| 3388 |
multiple lines of type within the same docheader part, e.g. |
| 3389 |
several authors or a long title that must be split over two |
| 3390 |
lines. No |
| 3391 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3392 |
is required; |
| 3393 |
<a href="definitions.html#picaspoints">points</a> |
| 3394 |
is assumed. |
| 3395 |
</dd> |
| 3396 |
<dt id="space-before" class="params">_SPACE</dt> |
| 3397 |
<dd> |
| 3398 |
Takes a numeric value with a |
| 3399 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3400 |
appended to it. The value may be negative. This allows you |
| 3401 |
to adjust the whitespace before a docheader part, for example |
| 3402 |
if you want more whitespace between the title and the author. |
| 3403 |
<span style="display: block; margin-top: .5em"> |
| 3404 |
Note that <kbd>TITLE</kbd> does not have a <kbd>_SPACE</kbd> |
| 3405 |
parameter; use |
| 3406 |
<a href="#change-start">DOCHEADER_ADVANCE</a> |
| 3407 |
to move the title further down on the page. |
| 3408 |
</span> |
| 3409 |
</dd> |
| 3410 |
<dt class="params">_CAPS</dt> |
| 3411 |
<dd> |
| 3412 |
Capitalizes the entire docheader part. No argument is |
| 3413 |
required. |
| 3414 |
</dd> |
| 3415 |
<dt class="params">_NO_CAPS</dt> |
| 3416 |
<dd> |
| 3417 |
Only used if you need to reverse the sense of <kbd>_CAPS</kbd>, as |
| 3418 |
can sometimes happen when |
| 3419 |
<a href="rectoverso.html#collate">collating</a> |
| 3420 |
documents that have differing docheader style requirements. |
| 3421 |
</dd> |
| 3422 |
<dt class="params">_SMALLCAPS</dt> |
| 3423 |
<dd> |
| 3424 |
Set the entire docheader part in smallcaps. No argument is |
| 3425 |
required. |
| 3426 |
</dd> |
| 3427 |
<dt class="params">_NO_SMALLCAPS</dt> |
| 3428 |
<dd> |
| 3429 |
Only used if you need to reverse the sense of |
| 3430 |
<kbd>_SMALLCAPS</kbd>, as can sometimes happen when |
| 3431 |
<a href="rectoverso.html#collate">collating</a> |
| 3432 |
documents that have differing docheader style requirements. |
| 3433 |
</dd> |
| 3434 |
<dt class="params">_UNDERSCORE</dt> |
| 3435 |
<dd> |
| 3436 |
With no argument, underscores the docheader part. With a |
| 3437 |
single, possibly decimal numeric argument, sets the weight of |
| 3438 |
the underscore. A second numeric argument to which a |
| 3439 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3440 |
is appended (most likely <kbd>p</kbd>) sets the distance |
| 3441 |
between the baseline and the underscore. |
| 3442 |
<span style="display: block; margin-top: .5em"> |
| 3443 |
If the argument <kbd>DOUBLE</kbd> is given, double underscores |
| 3444 |
the docheader part. With a single, possibly decimal numeric |
| 3445 |
argument afterwards, sets the weight of the underscore rules. |
| 3446 |
A third numeric argument to which a |
| 3447 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3448 |
is appended (most likely <kbd>p</kbd>) sets the distance |
| 3449 |
between the baseline and the first underscore rule. A fourth |
| 3450 |
numeric argument to which a unit of measure is appended sets |
| 3451 |
the distance between the two underscore rules. |
| 3452 |
</span> |
| 3453 |
<span style="display: block; margin-top: .5em"> |
| 3454 |
You may give <kbd>_UNDERLINE</kbd> as the parameter instead of |
| 3455 |
<kbd>_UNDERSCORE</kbd> if you prefer. |
| 3456 |
</span> |
| 3457 |
</dd> |
| 3458 |
<dt class="params">NO_UNDERSCORE</dt> |
| 3459 |
<dd> |
| 3460 |
Only used if you need to reverse the sense of |
| 3461 |
<kbd>_UNDERSCORE</kbd>, as can sometimes happen when |
| 3462 |
<a href="rectoverso.html#collate">collating</a> |
| 3463 |
documents that have differing docheader style requirements. |
| 3464 |
</dd> |
| 3465 |
</dl> |
| 3466 |
|
| 3467 |
<h5 id="grouping" class="docs">Grouping part/parameter changes</h5> |
| 3468 |
|
| 3469 |
<p> |
| 3470 |
If you want to change several parameters for a particular docheader |
| 3471 |
part, you may group the changes together in a single macro by |
| 3472 |
joining the name of the part to <kbd>STYLE</kbd> with an underscore, |
| 3473 |
for example <kbd>TITLE_STYLE</kbd> or <kbd>AUTHOR_STYLE</kbd>. |
| 3474 |
The following demonstrates: |
| 3475 |
<span class="pre-in-pp"> |
| 3476 |
.CHAPTER_TITLE_STYLE \ |
| 3477 |
FAMILY T \ |
| 3478 |
SIZE +4 \ |
| 3479 |
UNDERSCORE 2 \ |
| 3480 |
SMALLCAPS |
| 3481 |
</span> |
| 3482 |
Notice the use of the backslash character, which is required after |
| 3483 |
the macro name and all parameters except the last. Grouping reduces |
| 3484 |
clutter and the finger fatigue caused by entering |
| 3485 |
<span class="pre-in-pp"> |
| 3486 |
.CHAPTER_TITLE_FAMILY T |
| 3487 |
.CHAPTER_TITLE_SIZE +4 |
| 3488 |
.CHAPTER_TITLE_UNDERSCORE 2 |
| 3489 |
.CHAPTER_TITLE_SMALLCAPS |
| 3490 |
</span> |
| 3491 |
</p> |
| 3492 |
|
| 3493 |
<h4 id="change-attribute" class="docs" style="font-size: 100%">3. Changing or removing the attribution string (“by”)</h4> |
| 3494 |
|
| 3495 |
<p> |
| 3496 |
If you’re not writing in English, you can change what mom |
| 3497 |
prints where “by” appears in docheaders. For example, |
| 3498 |
<br/> |
| 3499 |
<span class="pre-in-pp"> |
| 3500 |
.ATTRIBUTE_STRING "par" |
| 3501 |
</span> |
| 3502 |
changes “by” to “par”. ATTRIBUTE_STRING |
| 3503 |
can also be used, for example, to make the attribution read |
| 3504 |
“Edited by”. |
| 3505 |
</p> |
| 3506 |
|
| 3507 |
<p> |
| 3508 |
If you don’t want an attribution string at all, simply pass |
| 3509 |
ATTRIBUTE_STRING an empty argument, like this: |
| 3510 |
<br/> |
| 3511 |
<span class="pre-in-pp"> |
| 3512 |
.ATTRIBUTE_STRING "" |
| 3513 |
</span> |
| 3514 |
Mom will deposit a blank line where the attribution string normally |
| 3515 |
appears. |
| 3516 |
</p> |
| 3517 |
|
| 3518 |
<p> |
| 3519 |
If the optional argument <kbd>COVER</kbd> or <kbd>DOC_COVER</kbd> |
| 3520 |
is given to ATTRIBUTE_STRING, the string argument represents the |
| 3521 |
attribution string that will appear on cover or document cover pages |
| 3522 |
(see the |
| 3523 |
<a href="cover.html#cover-intro">Introduction to cover pages</a> |
| 3524 |
for a description of the difference between “document |
| 3525 |
covers” and “covers”). Thus, it is possible to |
| 3526 |
have different attribution strings on the document cover page, the |
| 3527 |
cover (“title”) page, and in the first-page docheader. |
| 3528 |
An extreme example would be: |
| 3529 |
<br/> |
| 3530 |
<span class="pre-in-pp"> |
| 3531 |
.ATTRIBUTE_STRING "" |
| 3532 |
.ATTRIBUTE_STRING DOC_COVER "Edited by" |
| 3533 |
.ATTRIBUTE_STRING COVER "by" |
| 3534 |
</span> |
| 3535 |
The first invocation of <kbd>.ATTRIBUTE_STRING</kbd> establishes a |
| 3536 |
blank attribution string that will be incorporated in the first-page |
| 3537 |
docheader. The second will print “Edited by” on the |
| 3538 |
document cover; the third will print “by” on the cover |
| 3539 |
(“title”) page. |
| 3540 |
</p> |
| 3541 |
|
| 3542 |
<p> |
| 3543 |
If you don’t require differing attribute strings for |
| 3544 |
doc cover pages, cover pages, or the first-page docheader, |
| 3545 |
<kbd>.ATTRIBUTE_STRING</kbd>, without either of the optional first |
| 3546 |
arguments, is sufficient. |
| 3547 |
</p> |
| 3548 |
|
| 3549 |
<div class="rule-short"><hr/></div> |
| 3550 |
|
| 3551 |
<!-- -COLUMNS- --> |
| 3552 |
|
| 3553 |
<h2 id="columns-intro" class="docs">Setting documents in columns</h2> |
| 3554 |
|
| 3555 |
<p> |
| 3556 |
Setting documents in columns is easy with mom. All you have to do |
| 3557 |
is say how many columns you want and how much space you want |
| 3558 |
between them (the |
| 3559 |
<a href="definitions.html#gutter">gutters</a>). |
| 3560 |
That’s it. Mom takes care of everything else, from soup to |
| 3561 |
nuts. |
| 3562 |
</p> |
| 3563 |
|
| 3564 |
<h3 class="docs">Some words of advice</h3> |
| 3565 |
|
| 3566 |
<p> |
| 3567 |
If you want your type to achieve a pleasing |
| 3568 |
<a href="definitions.html#just">justification</a> |
| 3569 |
or |
| 3570 |
<a href="definitions.html#rag">rag</a> |
| 3571 |
in columns, reduce the point size of type (and probably the |
| 3572 |
<a href="definitions.html#leading">leading</a> |
| 3573 |
as well). Mom’s default document point size is 12.5, which |
| 3574 |
works well across her default 39 |
| 3575 |
<a href="definitions.html#picaspoints">pica</a> |
| 3576 |
full page line length, but with even just two columns on a page, the |
| 3577 |
default point size is awkward to work with. |
| 3578 |
</p> |
| 3579 |
|
| 3580 |
<p> |
| 3581 |
Furthermore, you’ll absolutely need to reduce the indents for |
| 3582 |
<a href="docelement.html#epigraph-control">epigraphs</a>, |
| 3583 |
<a href="docelement.html#quote-general">quotes</a>, |
| 3584 |
and |
| 3585 |
<a href="docelement.html#blockquote-general">blockquotes</a> |
| 3586 |
(and probably the |
| 3587 |
<a href="docelement.html#para-indent">paragraph first-line indent</a> |
| 3588 |
as well). |
| 3589 |
</p> |
| 3590 |
|
| 3591 |
<!-- -COLUMN- --> |
| 3592 |
|
| 3593 |
<div class="macro-id-overline"> |
| 3594 |
<h3 id="columns" class="macro-id">COLUMNS</h3> |
| 3595 |
</div> |
| 3596 |
|
| 3597 |
<div class="box-macro-args"> |
| 3598 |
Macro: <b>COLUMNS</b> <kbd class="macro-args"><number of columns> <width of gutters></kbd> |
| 3599 |
</div> |
| 3600 |
|
| 3601 |
<p class="requires"> |
| 3602 |
• Should be the last macro before START |
| 3603 |
<br/> |
| 3604 |
|
| 3605 |
<i>The second argument requires a <a href="definitions.html#unitofmeasure">unit of measure</a></i> |
| 3606 |
</p> |
| 3607 |
|
| 3608 |
<p> |
| 3609 |
COLUMNS takes two arguments: the number of columns you want on |
| 3610 |
document pages, and the width of the |
| 3611 |
<a href="definitions.html#gutter">gutter</a> |
| 3612 |
between them. For example, to set up a page with two columns |
| 3613 |
separated by an 18 point gutter, you’d do |
| 3614 |
<br/> |
| 3615 |
<span class="pre-in-pp"> |
| 3616 |
.COLUMNS 2 18p |
| 3617 |
</span> |
| 3618 |
Nothing to it, really. However, as noted above, COLUMNS should |
| 3619 |
always be the last document setup macro prior to |
| 3620 |
<a href="#start">START</a>. |
| 3621 |
</p> |
| 3622 |
|
| 3623 |
<div class="box-tip"> |
| 3624 |
<p class="tip"> |
| 3625 |
<span class="note">Note:</span> |
| 3626 |
Mom ignores columns completely when the |
| 3627 |
<a href="#printstyle">PRINTSTYLE</a> |
| 3628 |
is <kbd>TYPEWRITE</kbd>. The notion of typewriter-style |
| 3629 |
output in columns is just too ghastly for her to bear. |
| 3630 |
</p> |
| 3631 |
</div> |
| 3632 |
|
| 3633 |
<h3 class="docs" id="marking-col-start">Marking the first page column start position</h3> |
| 3634 |
|
| 3635 |
<p> |
| 3636 |
If you insert or remove space after the docheader, i.e. immediately after |
| 3637 |
<a href="#start">START</a> |
| 3638 |
in your input file, mom needs to know where your first column begins |
| 3639 |
in order to align subsequent columns on the first page. |
| 3640 |
</p> |
| 3641 |
|
| 3642 |
<div id="col-mark" class="box-macro-args"> |
| 3643 |
Macro: <b>COL_MARK</b> |
| 3644 |
</div> |
| 3645 |
|
| 3646 |
<p> |
| 3647 |
<kbd>COL_MARK</kbd> tells mom where the first column after the |
| 3648 |
docheader begins, in order for the top of subsequent columns on the |
| 3649 |
first page to be aligned. Note that if you do not manually add |
| 3650 |
or remove space after the docheader, there is no need to invoke |
| 3651 |
<kbd>COL_MARK</kbd>. |
| 3652 |
</p> |
| 3653 |
|
| 3654 |
<div class="box-tip"> |
| 3655 |
<p class="tip"> |
| 3656 |
<span class="note">Note:</span> |
| 3657 |
If you do add or subtract space after the docheader, e.g. with |
| 3658 |
<a href="typesetting.html#ald">ALD</a> |
| 3659 |
or |
| 3660 |
<a href="typesetting.html#SP">SP</a>, |
| 3661 |
and your |
| 3662 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3663 |
is something other than a multiple of “<kbd>v</kbd>”, be |
| 3664 |
sure to follow the spacing command with |
| 3665 |
<a href="docprocessing.html#shim">SHIM</a> |
| 3666 |
before entering <kbd>.COL_MARK</kbd> unless shimming has been |
| 3667 |
disabled with |
| 3668 |
<a href="#no-shim">NO_SHIM</a>. |
| 3669 |
If your document is being flex-spaced, do not use |
| 3670 |
<a href="docprocessing.html#flex">FLEX</a>. |
| 3671 |
Rather, disable flex-spacing temporarily with |
| 3672 |
<br/> |
| 3673 |
<span class="pre-in-pp"> |
| 3674 |
.NO_FLEX |
| 3675 |
.NO_SHIM off |
| 3676 |
.SHIM |
| 3677 |
.COL_MARK |
| 3678 |
</span> |
| 3679 |
and re-enable it afterwards with |
| 3680 |
<span class="pre-in-pp"> |
| 3681 |
.NO_SHIM |
| 3682 |
.NO_FLEX off |
| 3683 |
</span> |
| 3684 |
</p> |
| 3685 |
</div> |
| 3686 |
|
| 3687 |
<h3 class="docs">Using tabs when COLUMNS are enabled</h3> |
| 3688 |
|
| 3689 |
<p> |
| 3690 |
Mom’s tabs (both |
| 3691 |
<a href="typesetting.html#typesetting-tabs">typesetting tabs</a> |
| 3692 |
and |
| 3693 |
<a href="typesetting.html#string-tabs">string tabs</a>) |
| 3694 |
behave as you’d expect during document processing, even |
| 3695 |
when COLUMNS are enabled. Tab structures set up during document |
| 3696 |
processing carry over from page to page and column to column. |
| 3697 |
</p> |
| 3698 |
|
| 3699 |
<!-- -BREAKING COLUMNS- --> |
| 3700 |
|
| 3701 |
<h3 id="breaking-columns" class="docs">Breaking columns manually</h3> |
| 3702 |
|
| 3703 |
<p> |
| 3704 |
Mom takes care of breaking columns when they reach the bottom |
| 3705 |
margin of a page. However, there may be times you want to break |
| 3706 |
the columns yourself. There are two macros for breaking columns |
| 3707 |
manually: COL_NEXT and COL_BREAK. |
| 3708 |
</p> |
| 3709 |
|
| 3710 |
<div id="col-next" class="box-macro-args"> |
| 3711 |
Macro: <b>COL_NEXT</b> |
| 3712 |
</div> |
| 3713 |
|
| 3714 |
<p> |
| 3715 |
<kbd>.COL_NEXT</kbd> breaks the line just before it, |
| 3716 |
<a href="definitions.html#quad">quads</a> |
| 3717 |
it left (assuming the type is justified or quad left), and moves over |
| 3718 |
to the top of the next column. If the column happens to be the last |
| 3719 |
(rightmost) one on the page, mom starts a new page |
| 3720 |
at the “column 1” position. This is the macro to use when |
| 3721 |
you want to start a new column after the end of a paragraph. |
| 3722 |
</p> |
| 3723 |
|
| 3724 |
<div id="col-break" class="box-macro-args"> |
| 3725 |
Macro: <b>COL_BREAK</b> |
| 3726 |
</div> |
| 3727 |
|
| 3728 |
<p> |
| 3729 |
<kbd>.COL_BREAK</kbd> is almost the same as <kbd>.COL_NEXT</kbd>, |
| 3730 |
except that instead of breaking and quadding the line preceding it, |
| 3731 |
mom breaks and spreads it (see |
| 3732 |
<a href="typesetting.html#spread">SPREAD</a>). |
| 3733 |
Use this macro whenever you need to start a new column in the middle |
| 3734 |
of a paragraph. |
| 3735 |
</p> |
| 3736 |
|
| 3737 |
<div class="box-important"> |
| 3738 |
<p class="tip"> |
| 3739 |
<span class="important">Warning:</span> |
| 3740 |
If you need COL_BREAK in the middle of a blockquote or (god help |
| 3741 |
you) an epigraph, you must do the following in order for COL_BREAK |
| 3742 |
to work: |
| 3743 |
<br/> |
| 3744 |
<span class="pre-in-pp"> |
| 3745 |
.SPREAD |
| 3746 |
\!.COL_BREAK |
| 3747 |
</span> |
| 3748 |
</p> |
| 3749 |
</div> |
| 3750 |
|
| 3751 |
<div class="rule-short"><hr/></div> |
| 3752 |
|
| 3753 |
<!-- ======================================================================== --> |
| 3754 |
|
| 3755 |
<!-- *** --> |
| 3756 |
|
| 3757 |
|
| 3758 |
<h2 id="style-after-start" class="macro-group">Changing basic type and formatting parameters after START</h2> |
| 3759 |
|
| 3760 |
<ul id="changing-basic-type"> |
| 3761 |
<li><a href="#behaviour">Behaviour of the typesetting macros during document processing</a> |
| 3762 |
<ul style="margin-left: -.5em;"> |
| 3763 |
<li><a href="#behaviour-specific">Effect of specific typesetting macros</a></li> |
| 3764 |
</ul></li> |
| 3765 |
<li><a href="#tb-margins">Top and bottom margins in document processing</a></li> |
| 3766 |
<li><a href="#space">Inserting space at the top of a new page</a> |
| 3767 |
<ul style="margin-left: -.5em;"> |
| 3768 |
<li><a href="#add-space">ADD_SPACE</a></li> |
| 3769 |
</ul></li> |
| 3770 |
</ul> |
| 3771 |
|
| 3772 |
<div class="rule-medium"><hr/></div> |
| 3773 |
|
| 3774 |
<h3 id="behaviour" class="docs">Behaviour of the typesetting macros during document processing</h3> |
| 3775 |
|
| 3776 |
<p> |
| 3777 |
During document processing, most of the |
| 3778 |
<a href="typesetting.html#macros-typesetting">typesetting macros</a> |
| 3779 |
affect type in the document globally. For example, if you turn |
| 3780 |
kerning off, pairwise kerning is disabled not only in paragraphs, |
| 3781 |
but also in headers, footers, quotes, and so on. |
| 3782 |
</p> |
| 3783 |
|
| 3784 |
<p> |
| 3785 |
Typesetting macros that alter margins and line lengths affect |
| 3786 |
<a href="definitions.html#running">running text</a> |
| 3787 |
globally (or at least try to), but leave headers/footers and |
| 3788 |
footnotes alone. (To indent footnotes, see the full explanation of |
| 3789 |
the |
| 3790 |
<a href="docelement.html#footnote">FOOTNOTE</a> |
| 3791 |
macro.) |
| 3792 |
</p> |
| 3793 |
|
| 3794 |
<p> |
| 3795 |
Mom’s tabs (both |
| 3796 |
<a href="typesetting.html#typesetting-tabs">typesetting tabs</a> |
| 3797 |
and |
| 3798 |
<a href="typesetting.html#string-tabs">string tabs</a>) |
| 3799 |
behave as expected in running text during document processing. Tab |
| 3800 |
structures that do not exceed the line length of running text are |
| 3801 |
preserved sensibly from page to page, and, if |
| 3802 |
<a href="docprocessing.html#columns">COLUMNS</a> |
| 3803 |
are enabled, from column to column. |
| 3804 |
</p> |
| 3805 |
|
| 3806 |
<p> |
| 3807 |
Some typesetting macros, however, when used during document |
| 3808 |
processing, behave in special ways. These are the macros that deal |
| 3809 |
with the basic parameters of type style: horizontal and vertical |
| 3810 |
margins, line length, |
| 3811 |
<a href="definitions.html#family">family</a>, |
| 3812 |
<a href="definitions.html#font">font</a>, |
| 3813 |
<a href="definitions.html#ps">point size</a>, |
| 3814 |
<a href="definitions.html#leading">leading</a>, |
| 3815 |
and |
| 3816 |
<a href="definitions.html#quad">quad</a>. |
| 3817 |
</p> |
| 3818 |
|
| 3819 |
<p> |
| 3820 |
Mom assumes that any changes to these parameters stem from a |
| 3821 |
temporary need to set type in a style different from that provided |
| 3822 |
by mom’s |
| 3823 |
<a href="docelement.html#index-docelement">document element tags</a>. |
| 3824 |
In other words, you need to do a bit of creative typesetting in the |
| 3825 |
middle of a document. |
| 3826 |
</p> |
| 3827 |
|
| 3828 |
<p> |
| 3829 |
The following lists those typesetting macros whose behaviour during |
| 3830 |
document processing requires some explanation. |
| 3831 |
(Please refer to |
| 3832 |
<a href="#tb-margins">Top and bottom margins in document processing</a> |
| 3833 |
for information on how mom interprets |
| 3834 |
<a href="typesetting.html#t-margin">T_MARGIN</a> |
| 3835 |
and |
| 3836 |
<a href="typesetting.html#b-margin">B_MARGIN</a> |
| 3837 |
in document processing. Additionally, see |
| 3838 |
<a href="#add-space">ADD_SPACE</a> |
| 3839 |
if you encounter the problem of trying to get mom to put space at |
| 3840 |
the tops of pages after the first.) |
| 3841 |
</p> |
| 3842 |
|
| 3843 |
<div id="behaviour-specific" class="box-code" style="margin-left: 3.5%"> |
| 3844 |
<span class="pre" style="color: #302419;"> |
| 3845 |
MACRO EFFECT DURING DOCUMENT PROCESSING |
| 3846 |
----- --------------------------------- |
| 3847 |
|
| 3848 |
L_MARGIN •The left margin of all running text |
| 3849 |
assumes the new value. |
| 3850 |
|
| 3851 |
•The line length remains unaltered. |
| 3852 |
|
| 3853 |
•The header and footer left margin |
| 3854 |
remain at the current document default. |
| 3855 |
|
| 3856 |
(You won’t use this often by itself. Most |
| 3857 |
likely, you’ll use it in combination with |
| 3858 |
R_MARGIN or LL.) |
| 3859 |
|
| 3860 |
R_MARGIN •The right margin of all running text |
| 3861 |
assumes the new value. In other words, |
| 3862 |
the line length is altered. |
| 3863 |
|
| 3864 |
•The header and footer right margin |
| 3865 |
remain at the current document default. |
| 3866 |
|
| 3867 |
LL •The line length of all running text |
| 3868 |
is set to the new value. |
| 3869 |
|
| 3870 |
•The header and footer line length remain |
| 3871 |
at the current document default. |
| 3872 |
|
| 3873 |
FAMILY •Changes family for the duration of the |
| 3874 |
current tag only. As soon as another document |
| 3875 |
element tag is invoked, the family reverts to |
| 3876 |
the current default for the new tag. |
| 3877 |
|
| 3878 |
FT •Changes font for the duration of the |
| 3879 |
current tag only. As soon as another document |
| 3880 |
element tag is entered, the font reverts |
| 3881 |
to the current default for the new tag. |
| 3882 |
|
| 3883 |
N.B. — \*[SLANT] and \*[BOLDER] affect |
| 3884 |
paragraph text, and remain in effect for all |
| 3885 |
paragraphs until turned off. If you want to |
| 3886 |
use them in a macro that takes a string |
| 3887 |
argument, include the escape in the string. |
| 3888 |
\*[COND] and \*[EXT] behave similarly. |
| 3889 |
|
| 3890 |
PT_SIZE •Changes point size for the duration of the |
| 3891 |
current tag only. As soon as another document |
| 3892 |
element tag is entered, the point size reverts |
| 3893 |
to the current document default for the new |
| 3894 |
tag. |
| 3895 |
|
| 3896 |
LS •Changes line space for the duration of the |
| 3897 |
current tag only. As soon as another document |
| 3898 |
element tag is entered, the line space reverts |
| 3899 |
to the current document default for the new |
| 3900 |
tag. |
| 3901 |
|
| 3902 |
Using LS to temporarily change leading within |
| 3903 |
a document will almost certainly result in a |
| 3904 |
bottom margin that doesn’t align with the |
| 3905 |
bottom margin of subsequent pages. You’ll |
| 3906 |
need to use the SHIM or FLEX macro to get mom back |
| 3907 |
on track when you’re ready to return to the |
| 3908 |
document’s default leading. |
| 3909 |
|
| 3910 |
<a id="autolead" style="margin-top: -1em">AUTOLEAD</a> •Invoked before START, sets the overall document |
| 3911 |
leading as a function of the overall document |
| 3912 |
point size (i.e. the point size used in paragraphs); |
| 3913 |
subsequently disabled after START, except for calls |
| 3914 |
to DOC_PT_SIZE |
| 3915 |
|
| 3916 |
•DOC_LEAD before DOC_PT_SIZE cancels the AUTOLEAD |
| 3917 |
set before START |
| 3918 |
|
| 3919 |
•Invoked after START, remains in effect for all |
| 3920 |
subsequent point size changes made with PT_SIZE, |
| 3921 |
but does not affect the leading of the document |
| 3922 |
element tags (e.g. HEADING, PP, QUOTE...), or calls |
| 3923 |
to DOC_PT_SIZE |
| 3924 |
|
| 3925 |
QUAD •Changes quad for the duration of the |
| 3926 |
current tag only. As soon as another document |
| 3927 |
element tag is entered, the quad reverts to |
| 3928 |
the current document default for the new |
| 3929 |
tag. |
| 3930 |
|
| 3931 |
N.B. — Line-for-line quadding macros |
| 3932 |
(LEFT, CENTER, RIGHT) are also temporary, |
| 3933 |
overridden by the QUAD value of any subsequent |
| 3934 |
document element tag. |
| 3935 |
</span> |
| 3936 |
</div> |
| 3937 |
|
| 3938 |
<h3 id="tb-margins" class="docs" style="margin-top: 1.5em;">Top and bottom margins in document processing</h3> |
| 3939 |
|
| 3940 |
<p> |
| 3941 |
Normally, mom establishes the top and bottom |
| 3942 |
margins of |
| 3943 |
<a href="definitions.html#running">running text</a> |
| 3944 |
in documents from the values of <b>HEADER_MARGIN + |
| 3945 |
HEADER_GAP</b> and <b>FOOTER_MARGIN + FOOTER_GAP</b> |
| 3946 |
respectively. However, if you invoke |
| 3947 |
<a href="typesetting.html#t-margin">T_MARGIN</a> |
| 3948 |
or |
| 3949 |
<a href="typesetting.html#b-margin">B_MARGIN</a> |
| 3950 |
either before or after |
| 3951 |
<a href="docelement.html#start">START</a>, |
| 3952 |
they set the top and bottom margins of running text irrespective of |
| 3953 |
HEADER_GAP and FOOTER_GAP. |
| 3954 |
</p> |
| 3955 |
|
| 3956 |
<p> |
| 3957 |
Put another way, in document processing, T_MARGIN |
| 3958 |
and B_MARGIN set the top and bottom margins of |
| 3959 |
running text, but have no effect on the placement of |
| 3960 |
<a href="definitions.html#header">headers</a>, |
| 3961 |
<a href="definitions.html#footer">footers</a>, |
| 3962 |
or page numbers. |
| 3963 |
</p> |
| 3964 |
|
| 3965 |
<!-- ==================================================================== --> |
| 3966 |
|
| 3967 |
<h3 id="space" class="docs">Inserting space at the top of a new page</h3> |
| 3968 |
|
| 3969 |
<p> |
| 3970 |
Occasionally, you may want to insert space before the start of |
| 3971 |
<a href="definitions.html#running">running text</a> |
| 3972 |
on pages after the first. |
| 3973 |
</p> |
| 3974 |
|
| 3975 |
<p> |
| 3976 |
You might have tried using |
| 3977 |
<a href="typesetting.html#ald">ALD</a> |
| 3978 |
or |
| 3979 |
<a href="typesetting.html#space">SPACE</a> |
| 3980 |
and found it did nothing. This is because mom normally inhibits |
| 3981 |
any extra space before the start of running text on pages after the |
| 3982 |
first. |
| 3983 |
</p> |
| 3984 |
|
| 3985 |
<p> |
| 3986 |
If you need the space, you must use the macro ADD_SPACE in |
| 3987 |
conjunction with |
| 3988 |
<a href="typesetting.html#newpage">NEWPAGE</a>. |
| 3989 |
</p> |
| 3990 |
|
| 3991 |
<!-- -ADD_SPACE- --> |
| 3992 |
|
| 3993 |
<div class="macro-id-overline"> |
| 3994 |
<h3 id="add-space" class= "macro-id">ADD_SPACE/RESTORE_SPACE</h3> |
| 3995 |
</div> |
| 3996 |
|
| 3997 |
<div class="box-macro-args"> |
| 3998 |
Macro: <b>ADD_SPACE</b> <kbd class="macro-args"><amount of space></kbd> |
| 3999 |
<br/> |
| 4000 |
Macro: <b>RESTORE_SPACE</b> |
| 4001 |
</div> |
| 4002 |
|
| 4003 |
<p class="requires"> |
| 4004 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4005 |
</p> |
| 4006 |
|
| 4007 |
<p> |
| 4008 |
If your |
| 4009 |
<a href="#doctype">DOCTYPE</a> |
| 4010 |
is DEFAULT, CHAPTER, NAMED, or LETTER, ADD_SPACE takes as its |
| 4011 |
single argument the distance you want mom to advance from the normal |
| 4012 |
baseline position at the top of any page <i>after the first</i> (i.e. |
| 4013 |
the one on which the docheader is normally printed). A |
| 4014 |
<a href="definitions.html#unitofmeasure">unit of measure</a> is |
| 4015 |
required. |
| 4016 |
</p> |
| 4017 |
|
| 4018 |
<p> |
| 4019 |
For example, say you wanted to insert 2 inches of space before the |
| 4020 |
start of |
| 4021 |
<a href="definitions.html#running">running text</a> |
| 4022 |
on a page other than the first. You’d accomplish it with |
| 4023 |
<br/> |
| 4024 |
<span class="pre-in-pp"> |
| 4025 |
.NEWPAGE |
| 4026 |
.ADD_SPACE 2i |
| 4027 |
</span> |
| 4028 |
which would terminate your current page, break to a new page, print |
| 4029 |
the header (assuming headers are on) and insert 2 inches of space |
| 4030 |
before the start of running text. |
| 4031 |
</p> |
| 4032 |
|
| 4033 |
<p> |
| 4034 |
Since adding space in this way is almost sure to disrupt mom’s |
| 4035 |
ability to guarantee perfectly flush bottom margins, I highly |
| 4036 |
recommend using the |
| 4037 |
<a href="docprocessing.html#shim">SHIM</a> |
| 4038 |
or |
| 4039 |
<a href="docprocessing.html#flex">FLEX</a> |
| 4040 |
macro immediately after ADD_SPACE, which will add the space plus |
| 4041 |
whatever correction is required by the |
| 4042 |
<a href="docprocessing.html#vertical-whitespace-management">vertical whitespace management</a> |
| 4043 |
strategy in effect. |
| 4044 |
</p> |
| 4045 |
|
| 4046 |
<p> |
| 4047 |
If your |
| 4048 |
<a href="#doctype">DOCTYPE</a> |
| 4049 |
is SLIDES, ADD_SPACE may be used on any slide <i>including the |
| 4050 |
first</i> to introduce additional white space at the top. |
| 4051 |
</p> |
| 4052 |
|
| 4053 |
<h4 class="docs doc-param-macros" style="margin-top: .5em">RESTORE_SPACE</h4> |
| 4054 |
|
| 4055 |
<p style="margin-top: .5em"> |
| 4056 |
You may sometimes find that mom refuses to respect |
| 4057 |
<a href="typesetting.html#space">SP</a>, |
| 4058 |
<a href="typesetting.html#index-aldrld">ALD/RLD</a>, |
| 4059 |
<a href="docprocessing.html#shim">SHIM</a>, |
| 4060 |
or |
| 4061 |
<a href="docprocessing.html#flex">FLEX</a> |
| 4062 |
after the first element (line of text, floated material) output |
| 4063 |
at the top of a page. Should this happen, insert the macro |
| 4064 |
RESTORE_SPACE before issuing the spacing command. |
| 4065 |
</p> |
| 4066 |
|
| 4067 |
<!-- *** --> |
| 4068 |
|
| 4069 |
<h2 id="intro-doc-param" class="macro-group">Changing document-wide typesetting parameters after START</h2> |
| 4070 |
|
| 4071 |
<p> |
| 4072 |
In the normal course of things, you establish the basic type style |
| 4073 |
parameters of a document prior to invoking |
| 4074 |
<a href="#start">START</a>, |
| 4075 |
using the |
| 4076 |
<a href="typesetting.html#macros-typesetting">typesetting macros</a> |
| 4077 |
(<b>L_MARGIN, FAMILY, PT_SIZE, LS,</b> etc). After START, you must |
| 4078 |
use the following macros if you wish to make global changes to the |
| 4079 |
basic type style parameters, for example changing the overall leading or |
| 4080 |
the justification style. |
| 4081 |
</p> |
| 4082 |
|
| 4083 |
<div class="box-important"> |
| 4084 |
<p class="tip"> |
| 4085 |
<span class="important">Important:</span> |
| 4086 |
Because these macros globally update the chosen parameter, they |
| 4087 |
should only be used immediately prior to |
| 4088 |
<a href="rectoverso.html#collate">COLLATE</a> |
| 4089 |
or, if an occasional effect is desired, |
| 4090 |
<a href="typesetting.html#newpage">NEWPAGE</a>. |
| 4091 |
<a href="#doc-pt-size">DOC_PT_SIZE</a>, |
| 4092 |
for example, updates the point size of every page element, including |
| 4093 |
headers, footers, page numbers, and so on, which is almost certainly |
| 4094 |
not what you want in the middle of a page. |
| 4095 |
</p> |
| 4096 |
</div> |
| 4097 |
|
| 4098 |
<div class="macro-list-container"> |
| 4099 |
<h3 id="index-doc-param" class="macro-list">Post-START global style change macros</h3> |
| 4100 |
<ul class="macro-list"> |
| 4101 |
<li><a href="#doc-left-margin">DOC_LEFT_MARGIN</a></li> |
| 4102 |
<li><a href="#doc-right-margin">DOC_RIGHT_MARGIN</a></li> |
| 4103 |
<li><a href="#doc-line-length">DOC_LINE_LENGTH</a></li> |
| 4104 |
<li><a href="#doc-family">DOC_FAMILY</a></li> |
| 4105 |
<li><a href="#doc-pt-size">DOC_PT_SIZE</a></li> |
| 4106 |
<li><a href="#doc-lead">DOC_LEAD</a></li> |
| 4107 |
<li><a href="#doc-lead-adjust">DOC_LEAD_ADJUST</a></li> |
| 4108 |
<li><a href="#doc-quad">DOC_QUAD</a></li> |
| 4109 |
</ul> |
| 4110 |
</div> |
| 4111 |
|
| 4112 |
<!-- -DOC_LEFT_MARGIN --> |
| 4113 |
|
| 4114 |
<div class="macro-id-overline"> |
| 4115 |
<h3 id="doc-left-margin" class="macro-id">DOC_LEFT_MARGIN</h3> |
| 4116 |
</div> |
| 4117 |
|
| 4118 |
<div class="box-macro-args"> |
| 4119 |
Macro: <b>DOC_LEFT_MARGIN</b> <kbd class="macro-args"><left margin></kbd> |
| 4120 |
</div> |
| 4121 |
|
| 4122 |
<p class="requires"> |
| 4123 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4124 |
</p> |
| 4125 |
|
| 4126 |
<h4 class="docs doc-param-macros">Arguments and behaviour</h4> |
| 4127 |
|
| 4128 |
<ul class="doc-param-macros"> |
| 4129 |
<li>the argument is the same as for |
| 4130 |
<a href="typesetting.html#l-margin">L_MARGIN</a> |
| 4131 |
</li> |
| 4132 |
<li>changes all left margins, including headers, footers, and page |
| 4133 |
numbers to the new value |
| 4134 |
</li> |
| 4135 |
<li>any document elements that use a left indent calculate |
| 4136 |
the indent from the new value |
| 4137 |
</li> |
| 4138 |
<li>the line length remains the same (i.e., the right margin |
| 4139 |
shifts when you change the left margin) |
| 4140 |
</li> |
| 4141 |
</ul> |
| 4142 |
|
| 4143 |
<!-- -DOC_RIGHT_MARGIN --> |
| 4144 |
|
| 4145 |
<div class="macro-id-overline"> |
| 4146 |
<h3 id="doc-right-margin" class="macro-id">DOC_RIGHT_MARGIN</h3> |
| 4147 |
</div> |
| 4148 |
|
| 4149 |
<div class="box-macro-args"> |
| 4150 |
Macro: <b>DOC_RIGHT_MARGIN</b> <kbd class="macro-args"><right margin></kbd> |
| 4151 |
</div> |
| 4152 |
|
| 4153 |
<p class="requires"> |
| 4154 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4155 |
</p> |
| 4156 |
|
| 4157 |
<h4 class="docs doc-param-macros">Arguments and behaviour</h4> |
| 4158 |
|
| 4159 |
<ul class="doc-param-macros"> |
| 4160 |
<li>the argument is the same as for |
| 4161 |
<a href="typesetting.html#r-margin">R_MARGIN</a> |
| 4162 |
</li> |
| 4163 |
<li>changes all right margins, including headers, footers, and |
| 4164 |
page numbers to the new value; |
| 4165 |
</li> |
| 4166 |
<li>any document elements that use a right indent calculate |
| 4167 |
the indent from the new value |
| 4168 |
</li> |
| 4169 |
</ul> |
| 4170 |
|
| 4171 |
<!-- -DOC_RIGHT_MARGIN --> |
| 4172 |
|
| 4173 |
<div class="macro-id-overline"> |
| 4174 |
<h3 id="doc-line-length" class="macro-id">DOC_LINE_LENGTH</h3> |
| 4175 |
</div> |
| 4176 |
|
| 4177 |
<div class="box-macro-args"> |
| 4178 |
Macro: <b>DOC_LINE_LENGTH</b> <kbd class="macro-args"><length></kbd> |
| 4179 |
</div> |
| 4180 |
|
| 4181 |
<p class="requires"> |
| 4182 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4183 |
</p> |
| 4184 |
|
| 4185 |
<h4 class="docs doc-param-macros">Arguments and behaviour</h4> |
| 4186 |
|
| 4187 |
<ul class="doc-param-macros"> |
| 4188 |
<li>the argument is the same as for |
| 4189 |
<a href="typesetting.html#linelength">LL</a> |
| 4190 |
</li> |
| 4191 |
<li>exactly equivalent to changing the right margin with |
| 4192 |
DOC_RIGHT_MARGIN (see |
| 4193 |
<a href="#doc-right-margin">above</a>); |
| 4194 |
</li> |
| 4195 |
</ul> |
| 4196 |
|
| 4197 |
<!-- -DOC_FAMILY- --> |
| 4198 |
|
| 4199 |
<div class="macro-id-overline"> |
| 4200 |
<h3 id="doc-family" class="macro-id">DOC_FAMILY</h3> |
| 4201 |
</div> |
| 4202 |
|
| 4203 |
<div class="box-macro-args"> |
| 4204 |
Macro: <b>DOC_FAMILY</b> <kbd class="macro-args"><family></kbd> |
| 4205 |
</div> |
| 4206 |
|
| 4207 |
<h4 class="docs doc-param-macros" style="margin-top: 1em;">Arguments and behaviour</h4> |
| 4208 |
|
| 4209 |
<ul class="doc-param-macros"> |
| 4210 |
<li>the argument is the same as for |
| 4211 |
<a href="typesetting.html#family">FAMILY</a> |
| 4212 |
</li> |
| 4213 |
<li>globally changes the type family for |
| 4214 |
<ul> |
| 4215 |
<li style="margin-left: -.5em;">the <a href="definitions.html#docheader">docheader</a></li> |
| 4216 |
<li style="margin-left: -.5em;">all <a href="docelement.html#index-docelement">document element tags</a>, including footnotes</li> |
| 4217 |
<li style="margin-left: -.5em;"><a href="definitions.html#header">headers and/or footers</a></li> |
| 4218 |
<li style="margin-left: -.5em;"><a href="docelement.html#number-lines-intro">line numbering</a></li> |
| 4219 |
<li style="margin-left: -.5em;"><a href="headfootpage.html#pagination">page numbering</a></li> |
| 4220 |
</ul></li> |
| 4221 |
<li>does <i>not</i> change the family of |
| 4222 |
<ul> |
| 4223 |
<li><a href="cover.html#doc-cover">document cover pages</a></li> |
| 4224 |
<li><a href="cover.html#cover">cover pages</a></li> |
| 4225 |
<li><a href="docelement.html#endnote-intro">endnotes pages</a></li> |
| 4226 |
<li><a href="docelement.html#toc-intro">table of contents</a></li> |
| 4227 |
</ul></li> |
| 4228 |
<li>any page elements (e.g. headers page numbers, footnotes) whose |
| 4229 |
families you wish to remain at their old values must be |
| 4230 |
reset with the appropriate |
| 4231 |
<a href="docelement.html#docelement-control">control macros</a> |
| 4232 |
</li> |
| 4233 |
</ul> |
| 4234 |
|
| 4235 |
<!-- -DOC_PT_SIZE- --> |
| 4236 |
|
| 4237 |
<div class="macro-id-overline"> |
| 4238 |
<h3 id="doc-pt-size" class="macro-id">DOC_PT_SIZE</h3> |
| 4239 |
</div> |
| 4240 |
|
| 4241 |
<div class="box-macro-args"> |
| 4242 |
Macro: <b>DOC_PT_SIZE</b> <kbd class="macro-args"><point size></kbd> |
| 4243 |
</div> |
| 4244 |
|
| 4245 |
<p class="requires"> |
| 4246 |
• Does not require a <a href="definitions.html#unitofmeasure">unit of measure</a>; points is assumed |
| 4247 |
</p> |
| 4248 |
|
| 4249 |
<h4 class="docs doc-param-macros">Arguments and behaviour</h4> |
| 4250 |
|
| 4251 |
<ul class="doc-param-macros"> |
| 4252 |
<li>the argument is the same as for |
| 4253 |
<a href="typesetting.html#ps">PT_SIZE</a>, |
| 4254 |
and refers to the point size of type in paragraphs |
| 4255 |
</li> |
| 4256 |
<li>all automatic point size changes (heads, quotes, |
| 4257 |
footnotes, headers, etc.) are affected by the new size; |
| 4258 |
anything you do not want affected must be reset to |
| 4259 |
its former value (see the Control Macros section of |
| 4260 |
the pertinent document element for instructions on |
| 4261 |
how to do this) |
| 4262 |
</li> |
| 4263 |
<li>if |
| 4264 |
<a href="typesetting.html#autolead">AUTOLEAD</a> |
| 4265 |
was invoked before START; the value of AUTOLEAD will be used |
| 4266 |
to update the leading of all document element tags except |
| 4267 |
FOOTNOTE and EPIGRAPH |
| 4268 |
</li> |
| 4269 |
</ul> |
| 4270 |
|
| 4271 |
<!-- -DOC_LEAD- --> |
| 4272 |
|
| 4273 |
<div class="macro-id-overline"> |
| 4274 |
<h3 id="doc-lead" class="macro-id">DOC_LEAD</h3> |
| 4275 |
</div> |
| 4276 |
|
| 4277 |
<div class="box-macro-args"> |
| 4278 |
Macro: <b>DOC_LEAD</b> <kbd class="macro-args"><points> [ ADJUST ]</kbd> |
| 4279 |
</div> |
| 4280 |
|
| 4281 |
<p class="requires"> |
| 4282 |
• Does not require a <a href="definitions.html#unitofmeasure">unit of measure</a>; points is assumed |
| 4283 |
</p> |
| 4284 |
|
| 4285 |
<h4 class="docs doc-param-macros">Arguments and behaviour</h4> |
| 4286 |
|
| 4287 |
<ul class="doc-param-macros"> |
| 4288 |
<li>the argument is the same as for |
| 4289 |
<a href="typesetting.html#leading">LS</a>, |
| 4290 |
and refers to the |
| 4291 |
<a href="definitions.html#lead">leading</a> |
| 4292 |
of paragraphs |
| 4293 |
</li> |
| 4294 |
<li>because paragraphs will have a new leading, the leading and |
| 4295 |
spacing of most running text is influenced by the new value |
| 4296 |
</li> |
| 4297 |
<li>epigraphs and footnotes remain unaffected; |
| 4298 |
if you wish to change their leading, use |
| 4299 |
<a href="docelement.html#epigraph-autolead">EPIGRAPH_AUTOLEAD</a> |
| 4300 |
and |
| 4301 |
<a href="docelement.html#footnote-autolead">FOOTNOTE_AUTOLEAD</a>. |
| 4302 |
</li> |
| 4303 |
<li>the optional argument <kbd>ADJUST</kbd> performs |
| 4304 |
leading adjustment as explained in |
| 4305 |
<a href="#doc-lead-adjust">DOC_LEAD_ADJUST</a> |
| 4306 |
</li> |
| 4307 |
<li>if |
| 4308 |
<a href="typesetting.html#autolead">AUTOLEAD</a> |
| 4309 |
was invoked before START; the value of that AUTOLEAD will be |
| 4310 |
cancelled |
| 4311 |
</li> |
| 4312 |
</ul> |
| 4313 |
|
| 4314 |
<div class="box-tip"> |
| 4315 |
<p class="tip"> |
| 4316 |
<span class="note">Note:</span> |
| 4317 |
Even if you don’t pass DOC_LEAD the optional argument |
| 4318 |
<kbd>ADJUST</kbd>, mom will still adjust the leading of endnotes |
| 4319 |
pages and toc pages. See |
| 4320 |
<a href="docelement.html#endnote-lead">ENDNOTE_LEAD</a> |
| 4321 |
and |
| 4322 |
<a href="docelement.html#toc-lead">TOC_LEAD</a> |
| 4323 |
for an explanation of how to disable this default behaviour. |
| 4324 |
</p> |
| 4325 |
</div> |
| 4326 |
|
| 4327 |
<!-- -DOC_QUAD- --> |
| 4328 |
|
| 4329 |
<div class="macro-id-overline"> |
| 4330 |
<h3 id="doc-quad" class="macro-id">DOC_QUAD</h3> |
| 4331 |
</div> |
| 4332 |
|
| 4333 |
<div class="box-macro-args"> |
| 4334 |
Macro: <b>DOC_QUAD</b> <kbd class="macro-args">L | R | C | J</kbd> |
| 4335 |
</div> |
| 4336 |
|
| 4337 |
<h4 class="docs doc-param-macros" style="margin-top: 1em;">Arguments and behaviour</h4> |
| 4338 |
|
| 4339 |
<ul class="doc-param-macros"> |
| 4340 |
<li>the arguments are the same as for |
| 4341 |
<a href="typesetting.html#quad">QUAD</a> |
| 4342 |
</li> |
| 4343 |
<li>affects paragraphs, epigraphs and footnotes; does not |
| 4344 |
affect blockquotes |
| 4345 |
</li> |
| 4346 |
</ul> |
| 4347 |
|
| 4348 |
<h2 id="terminating" class="macro-group">Terminating a document</h2> |
| 4349 |
|
| 4350 |
<p> |
| 4351 |
You need do nothing special to terminate a document. When groff |
| 4352 |
finishes processing the last |
| 4353 |
<a href="definitions.html#inputline">input line</a> |
| 4354 |
of a file, the page is ejected, subject to whatever routines are |
| 4355 |
needed to complete it (e.g. printing footnotes or adding the page |
| 4356 |
number). |
| 4357 |
</p> |
| 4358 |
|
| 4359 |
<p> |
| 4360 |
It happens sometimes, however, that a last line of |
| 4361 |
<a href="definitions.html#running">running text</a>, |
| 4362 |
falling on or very near the bottom of the page, tricks groff into |
| 4363 |
breaking to a new page before terminating. The result is a blank |
| 4364 |
page at the end of the formatted document. |
| 4365 |
</p> |
| 4366 |
|
| 4367 |
<p> |
| 4368 |
The situation is rare, generally occurring only when some additional |
| 4369 |
macro is required after the input text, e.g. to exit a |
| 4370 |
<a href="docelement.html#list-intro">list</a> |
| 4371 |
or terminate a |
| 4372 |
<a href="docelement.html#quote">quote</a>. |
| 4373 |
To prevent it from ever happening, I recommend getting into the habit |
| 4374 |
of following the final input line of all your mom files with |
| 4375 |
<a href="typesetting.html#el"><kbd>.EL</kbd></a>. |
| 4376 |
Depending on the |
| 4377 |
<a href="definitions.html#filled">fill mode</a> |
| 4378 |
in effect, you may also have to append the “join line” |
| 4379 |
<a href="definitions.html#inlines">escape</a>, |
| 4380 |
<kbd>\c</kbd>, to the final line.</p> |
| 4381 |
|
| 4382 |
<p> |
| 4383 |
Thus, for normal text at the end of a paragraph, which is in fill |
| 4384 |
mode, |
| 4385 |
<br/> |
| 4386 |
<span class="pre-in-pp"> |
| 4387 |
and they all lived happily ever after. |
| 4388 |
.EL |
| 4389 |
</span> |
| 4390 |
or for ending a |
| 4391 |
<a href="docelement.html#list-intro">LIST</a> |
| 4392 |
(also in fill mode) |
| 4393 |
<span class="pre-in-pp"> |
| 4394 |
.ITEM |
| 4395 |
peaches, pears, plums |
| 4396 |
.EL |
| 4397 |
.LIST OFF |
| 4398 |
</span> |
| 4399 |
whereas, at the end of a |
| 4400 |
<a href="docelement.html#quote-intro">QUOTE</a> |
| 4401 |
(which is in nofill mode), |
| 4402 |
<span class="pre-in-pp"> |
| 4403 |
Shall be lifted\[em]nevermore!\c |
| 4404 |
.EL |
| 4405 |
.QUOTE OFF |
| 4406 |
</span> |
| 4407 |
Notice that the <kbd>.EL</kbd> comes after the last line of input |
| 4408 |
text, not any macros following. |
| 4409 |
</p> |
| 4410 |
|
| 4411 |
<div class="box-tip"> |
| 4412 |
<p class="tip"> |
| 4413 |
<span class="note">Note:</span> |
| 4414 |
<a href="inlines.html#b"><kbd><span class="nobr">\*[B]</span></kbd></a> |
| 4415 |
cannot be used as a replacement for <kbd>.EL</kbd> when terminating |
| 4416 |
a document. |
| 4417 |
</p> |
| 4418 |
</div> |
| 4419 |
|
| 4420 |
<!-- Navigation links --> |
| 4421 |
<table style="width: 100%; margin-top: 12px;"> |
| 4422 |
<tr> |
| 4423 |
<td style="width: 33%;"><a href="toc.html">Back to Table of Contents</a></td> |
| 4424 |
<td style="width: 24%; text-align: center;"><a href="#top">Top</a></td> |
| 4425 |
<td style="width: 43%; text-align: right;"><a href="docelement.html#top">Next: The document element tags</a></td> |
| 4426 |
</tr> |
| 4427 |
</table> |
| 4428 |
|
| 4429 |
</div> |
| 4430 |
|
| 4431 |
<div class="bottom-spacer"><br/></div> |
| 4432 |
|
| 4433 |
</body> |
| 4434 |
</html> |