| 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, element tags</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="images.html#top">Next: Graphics, floats, preprocessor support</a></td> |
| 38 |
</tr> |
| 39 |
</table> |
| 40 |
|
| 41 |
<h1 class="docs">The document element tags</h1> |
| 42 |
|
| 43 |
<div style="width: 460px; margin: auto;"> |
| 44 |
<ul class="no-enumerator"> |
| 45 |
<li><a href="#docelement-intro">Introduction to the document element tags</a></li> |
| 46 |
<li><a href="#docelement-control">Control macros – changing the tag defaults</a> |
| 47 |
<ul style="margin-left: -.5em; list-style-type: disc;"> |
| 48 |
<li><a href="#control-macro-args">Arguments to the control macros</a> |
| 49 |
<ul style="margin-left: -.5em; list-style-type: circle;"> |
| 50 |
<li><a href="#family-and-font">family and font</a></li> |
| 51 |
<li><a href="#point-size">point size</a></li> |
| 52 |
<li><a href="#color">colour</a></li> |
| 53 |
<li><a href="#quad">quad/justification</a></li> |
| 54 |
<li><a href="#underline">underline style, rule weight</a></li> |
| 55 |
</ul></li> |
| 56 |
<li><a href="#grouping">Grouping control macros</a></li> |
| 57 |
</ul></li> |
| 58 |
</ul> |
| 59 |
</div> |
| 60 |
|
| 61 |
<div class="rule-medium"><hr/></div> |
| 62 |
|
| 63 |
<h2 id="toc-doc-element" class="docs" style="text-align: center;">Document element tags table of contents</h2> |
| 64 |
|
| 65 |
<div id="docelement-mini-toc" style="font-size: 100%; line-height: 150%; margin-top: .5em;"> |
| 66 |
<div class="mini-toc-col-1" style="margin-left: 0;"> |
| 67 |
<h3 class="toc toc-docproc-header" style="margin-top: 1em;"><a class="header-link" href="#epigraph-intro">Epigraphs</a></h3> |
| 68 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 69 |
<li><a href="#epigraph">EPIGRAPH</a></li> |
| 70 |
<li><a href="#epigraph-control">Epigraph control</a></li> |
| 71 |
</ul> |
| 72 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#pp-intro">Paragraphs</a></h3> |
| 73 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 74 |
<li><a href="#pp">PP</a></li> |
| 75 |
<li><a href="#pp-control">Paragraph control</a></li> |
| 76 |
</ul> |
| 77 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#heading-intro">Headings</a></h3> |
| 78 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 79 |
<li><a href="#heading">HEADING</a></li> |
| 80 |
<li><a href="#heading-control">Heading control</a></li> |
| 81 |
<li><a href="#oldstyle-headings-intro">Oldstyle headings</a></li> |
| 82 |
</ul> |
| 83 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#linebreak-intro">Linebreaks (section breaks)</a></h3> |
| 84 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 85 |
<li><a href="#linebreak">LINEBREAK</a></li> |
| 86 |
<li><a href="#linebreak-control">Linebreak control</a></li> |
| 87 |
</ul> |
| 88 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#quote-intro">Quotes (line for line; poetry or code)</a></h3> |
| 89 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 90 |
<li><a href="#quote">QUOTE</a></li> |
| 91 |
<li><a href="#quote-control">Quote control</a></li> |
| 92 |
</ul> |
| 93 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#blockquote-intro">Blockquotes (cited material)</a></h3> |
| 94 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 95 |
<li><a href="#blockquote">BLOCKQUOTE</a></li> |
| 96 |
<li><a href="#blockquote-control">Blockquote control</a></li> |
| 97 |
</ul> |
| 98 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#code-intro">Inserting code snippets</a></h3> |
| 99 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 100 |
<li><a href="#code">CODE</a></li> |
| 101 |
<li><a href="#code-control">Code control</a></li> |
| 102 |
</ul> |
| 103 |
</div> |
| 104 |
<div class="mini-toc-col-2" style="margin-top: 1.5em;"> |
| 105 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#list-intro">Nested lists</a></h3> |
| 106 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 107 |
<li><a href="#list">LIST</a></li> |
| 108 |
<li><a href="#item">ITEM</a></li> |
| 109 |
<li><a href="#list-control">List control</a></li> |
| 110 |
</ul> |
| 111 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#number-lines-intro">Line numbering</a></h3> |
| 112 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 113 |
<li><a href="#number-lines">NUMBER_LINES</a></li> |
| 114 |
<li><a href="#number-lines-control">Line numbering control</a></li> |
| 115 |
</ul> |
| 116 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#footnote-intro">Footnotes</a></h3> |
| 117 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 118 |
<li><a href="#footnote">FOOTNOTE</a></li> |
| 119 |
<li><a href="#footnote-control">Footnote control</a></li> |
| 120 |
</ul> |
| 121 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#endnote-intro">Endnotes</a></h3> |
| 122 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 123 |
<li><a href="#endnote">ENDNOTE</a></li> |
| 124 |
<li><a href="#endnote-control">Endnote control</a></li> |
| 125 |
</ul> |
| 126 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#margin-notes-intro">Margin notes</a></h3> |
| 127 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 128 |
<li><a href="#mn-init">MN_INIT (set margin notes parameters)</a></li> |
| 129 |
<li><a href="#mn">MN</a></li> |
| 130 |
</ul> |
| 131 |
<h3 class="toc toc-docproc-header"><a class="header-link" href="#finis-intro">Document termination string</a></h3> |
| 132 |
<ul class="toc-docproc" style="margin-top: .5em;"> |
| 133 |
<li><a href="#finis">FINIS</a></li> |
| 134 |
<li><a href="#finis-control">Finis control</a></li> |
| 135 |
</ul> |
| 136 |
</div> |
| 137 |
</div> |
| 138 |
|
| 139 |
<div class="rule-medium" style="clear: both;"><hr/></div> |
| 140 |
|
| 141 |
<h2 id="docelement-intro" class="docs">Introduction to the document element tags</h2> |
| 142 |
|
| 143 |
<p> |
| 144 |
Once you’ve completed the setup for a document (see |
| 145 |
<a href="docprocessing.html#docprocessing-tut">Setting up a mom document</a>), |
| 146 |
formatting it is a snap. Simply invoke the appropriate tag for |
| 147 |
each document element as you need it. The tags are macros that |
| 148 |
tell mom: “This is a paragraph; this is a heading; this is a |
| 149 |
footnote,” and so on. |
| 150 |
</p> |
| 151 |
|
| 152 |
<p> |
| 153 |
Generally, for each tag, there are |
| 154 |
<a href="definitions.html#controlmacro">control macros</a> |
| 155 |
for the tag’s family, font and point size. Where appropriate, |
| 156 |
there are macros to control leading, indents, quad and special |
| 157 |
features as well. |
| 158 |
Mom has tasteful defaults for all the tags, hence you only use the |
| 159 |
control macros when you want to change the way she does things. |
| 160 |
This is usually done prior to |
| 161 |
<a href="docprocessing.html#start">START</a>, |
| 162 |
but can, in fact, be done at any time in the course of a document. |
| 163 |
Any change to a tag’s style affects all subsequent invocations |
| 164 |
of the tag. |
| 165 |
</p> |
| 166 |
|
| 167 |
<h2 id="docelement-control" class="docs">Control macros – changing the tag defaults</h2> |
| 168 |
|
| 169 |
<p> |
| 170 |
The control macros for document processing tags let you design the |
| 171 |
look of all the parts of your documents—should you wish. At |
| 172 |
a bare minimum, all tags have macros to change mom’s defaults |
| 173 |
for family, font, point size and colour. Where appropriate, there |
| 174 |
are macros to control leading, indents and quad as well. |
| 175 |
</p> |
| 176 |
|
| 177 |
<p> |
| 178 |
In addition, many tags have special macros to control features that |
| 179 |
are pertinent to those tags alone. Have a look at the section |
| 180 |
dealing with any particular tag to find out what macros control the |
| 181 |
tag, and what mom’s defaults for the tag are. |
| 182 |
</p> |
| 183 |
|
| 184 |
<p> |
| 185 |
The control macros may be used at any time during the course of a |
| 186 |
document (i.e. before or after |
| 187 |
<a href="docprocessing.html#start">START</a>). |
| 188 |
The changes you make alter all subsequent invocations of the |
| 189 |
affected tag until you make another change, either by passing new |
| 190 |
arguments to the tag’s control macro, or toggling a particular |
| 191 |
feature of the tag on or off. |
| 192 |
</p> |
| 193 |
|
| 194 |
<p> |
| 195 |
And don’t forget: the |
| 196 |
<a href="typesetting.html#macros-typesetting">typesetting macros</a> |
| 197 |
can be used at any time, including inside |
| 198 |
<a href="definitions.html#toggle">toggle</a> |
| 199 |
tags (affecting only that particular invocation of the tag). |
| 200 |
Equally, |
| 201 |
<a href="definitions.html#inlines">inline escapes</a> |
| 202 |
can be used in tags that take |
| 203 |
<a href="definitions.html#stringargument">string arguments.</a> |
| 204 |
</p> |
| 205 |
|
| 206 |
<div class="box-tip"> |
| 207 |
<p class="tip"> |
| 208 |
<span class="tip">Tip:</span> |
| 209 |
Get familiar with mom at her default settings before exploring the |
| 210 |
control macros. Put her through her paces. See how she behaves. |
| 211 |
Get to know what she feels like and how she looks, both in your |
| 212 |
text editor and on the printed page. Then, if you don’t like |
| 213 |
something, use this documentation to find the precise macro you need |
| 214 |
to change it. There are tons of control macros. Reading up on them |
| 215 |
and trying to remember them all might lead you to think that mom is |
| 216 |
complex and unwieldy, which is not only untrue, but would offend her |
| 217 |
mightily. |
| 218 |
</p> |
| 219 |
</div> |
| 220 |
|
| 221 |
<div class="box-important"> |
| 222 |
<p class="tip-top"> |
| 223 |
<span class="important">Important:</span> |
| 224 |
The family, font, point size, colour and leading control macros have |
| 225 |
no effect in |
| 226 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>, |
| 227 |
except where noted throughout this documentation. |
| 228 |
</p> |
| 229 |
|
| 230 |
<p class="tip-bottom"> |
| 231 |
Please also note that the defaults listed with the control macros |
| 232 |
apply only to |
| 233 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a> |
| 234 |
unless a default for <kbd>TYPEWRITE</kbd> is also given. |
| 235 |
</p> |
| 236 |
</div> |
| 237 |
|
| 238 |
<h3 id="control-macro-args" class="docs">Arguments to the control macros</h3> |
| 239 |
|
| 240 |
<h4 id="family-and-font" class="docs" style="margin-top: 1em; margin-bottom: -.75em;">Family and font</h4> |
| 241 |
|
| 242 |
<p> |
| 243 |
The arguments to the control macros that end in _FAMILY or _FONT are |
| 244 |
the same as for |
| 245 |
<a href="typesetting.html#family">FAMILY</a> |
| 246 |
and |
| 247 |
<a href="typesetting.html#font">FT</a>. |
| 248 |
</p> |
| 249 |
|
| 250 |
<h4 id="point-size" class="docs" style="margin-top: -.5em; margin-bottom: -.75em;">Point size</h4> |
| 251 |
|
| 252 |
<p> |
| 253 |
Control macros that end in _SIZE always take |
| 254 |
the form <kbd>+<n></kbd> or <kbd>-<n></kbd> where |
| 255 |
<n> is the number of |
| 256 |
<a href="definitions.html#picaspoints">points</a> |
| 257 |
larger (+) or smaller (-) than the point size of paragraphs |
| 258 |
you want the document element to be. For example, to set |
| 259 |
blockquotes 2 points smaller than the type in paragraphs, do |
| 260 |
<br/> |
| 261 |
<span class="pre-in-pp"> |
| 262 |
.BLOCKQUOTE_SIZE -2 |
| 263 |
</span> |
| 264 |
There’s no need for a |
| 265 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 266 |
with the _SIZE control macros; points is assumed. |
| 267 |
</p> |
| 268 |
|
| 269 |
<h4 id="color" class="docs" style="margin-top: -.5em; margin-bottom: -.75em;">Colour</h4> |
| 270 |
|
| 271 |
<p> |
| 272 |
Control macros that end in _COLOR take as their argument a colour |
| 273 |
name pre-defined (or “initialized”) with |
| 274 |
<a href="color.html#newcolor">NEWCOLOR</a> |
| 275 |
or |
| 276 |
<a href="color.html#xcolor">XCOLOR</a>. |
| 277 |
For example, if you want your |
| 278 |
<a href="#linebreak">author linebreaks</a> |
| 279 |
to be red, once you’ve defined or initialized the colour, red, |
| 280 |
<br/> |
| 281 |
<span class="pre-in-pp"> |
| 282 |
.LINEBREAK_COLOR red |
| 283 |
</span> |
| 284 |
will turn them red. |
| 285 |
</p> |
| 286 |
|
| 287 |
<h4 id="lead" class="docs" style="margin-top: -.5em; margin-bottom: -.75em;">Lead / linespacing</h4> |
| 288 |
|
| 289 |
<p> |
| 290 |
Control macros that end in _AUTOLEAD take the same argument as |
| 291 |
<a href="typesetting.html#autolead">AUTOLEAD</a>, |
| 292 |
<i>viz.</i> a digit that represents the number of points to add to |
| 293 |
the tag’s point size to arrive at its |
| 294 |
<a href="definitions.html#leading">leading</a>. |
| 295 |
For example, to set footnotes |
| 296 |
<a href="definitions.html#solid">solid</a>, do |
| 297 |
<br/> |
| 298 |
<span class="pre-in-pp"> |
| 299 |
.FOOTNOTE_AUTOLEAD 0 |
| 300 |
</span> |
| 301 |
To set footnotes with a 1-point lead (i.e. with the line spacing |
| 302 |
one point greater than the footnote’s point size), do |
| 303 |
<br/> |
| 304 |
<span class="pre-in-pp"> |
| 305 |
.FOOTNOTE_AUTOLEAD 1 |
| 306 |
</span> |
| 307 |
</p> |
| 308 |
|
| 309 |
<div class="box-tip" style="margin-top: -1.25em;"> |
| 310 |
<p class="tip"> |
| 311 |
<span class="note">Note:</span> |
| 312 |
_AUTOLEAD control macros do not have a <kbd>FACTOR</kbd> argument. |
| 313 |
</p> |
| 314 |
</div> |
| 315 |
|
| 316 |
|
| 317 |
<h4 id="control-indents" class="docs" style="margin-top: -.75em; margin-bottom: -.75em;">Indents</h4> |
| 318 |
|
| 319 |
<p> |
| 320 |
Except for |
| 321 |
<a href="#para-indent">PARA_INDENT</a>, |
| 322 |
the argument to control macros that end in _INDENT can take |
| 323 |
either a single numeral (whole numbers only, no decimal fractions) |
| 324 |
<i>without</i> a |
| 325 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 326 |
appended to it, or a digit (including decimal fractions) <i>with</i> |
| 327 |
a unit of measure appended. |
| 328 |
</p> |
| 329 |
|
| 330 |
<p> |
| 331 |
A digit <i>without</i> a unit of measure appended represents by |
| 332 |
how much you want your paragraph first-line indents (set with |
| 333 |
PARA_INDENT) multiplied to achieve the correct indent for a |
| 334 |
particular tag. For example, |
| 335 |
<br/> |
| 336 |
<span class="pre-in-pp"> |
| 337 |
.PARA_INDENT 2m |
| 338 |
.BLOCKQUOTE_INDENT 2 |
| 339 |
</span> |
| 340 |
means that blockquotes will be indented from the left and right |
| 341 |
margins by twice the size of the paragraph indent, or 4 |
| 342 |
<a href="definitions.html#em">ems</a>. |
| 343 |
</p> |
| 344 |
|
| 345 |
<p> |
| 346 |
A digit <i>with</i> a unit of measure appended defines an absolute |
| 347 |
indent, relative to nothing. In the following, blockquotes will be |
| 348 |
indented by 3 |
| 349 |
<a href="definitions.html#picaspoints">picas</a> |
| 350 |
and 6 |
| 351 |
<a href="definitions.html#picaspoints">points</a>, |
| 352 |
regardless of the paragraph indent. |
| 353 |
<br/> |
| 354 |
<span class="pre-in-pp"> |
| 355 |
.PARA_INDENT 2m |
| 356 |
.BLOCKQUOTE_INDENT 3P+6p |
| 357 |
</span> |
| 358 |
</p> |
| 359 |
|
| 360 |
<h4 id="quad" class="docs" style="margin-top: -1em; margin-bottom: -.75em;">Quad / justification style</h4> |
| 361 |
|
| 362 |
<p> |
| 363 |
Control macros that end in _QUAD take the same arguments as |
| 364 |
<a href="typesetting.html#quad">QUAD</a>. |
| 365 |
</p> |
| 366 |
|
| 367 |
<h4 id="underscore" class="docs" style="margin-bottom: -.75em;">Underscore style, rule weight</h4> |
| 368 |
|
| 369 |
<p> |
| 370 |
If mom gives the option to underscore a document element, the weight |
| 371 |
of the underline and its distance from the |
| 372 |
<a href="definitions.html#baseline">baseline</a> |
| 373 |
are controlled by macros that end in _UNDERSCORE or _UNDERLINE, the |
| 374 |
two being synonymous. These macros take the following arguments: |
| 375 |
<br/> |
| 376 |
<span class="pre-in-pp"> |
| 377 |
DOUBLE - double underscore |
| 378 |
<weight> - the underscore weight (in points, no unit of measure required |
| 379 |
<distance> - distance from baseline (unit of measure required) |
| 380 |
<rule gap> - distance between double underscore rules (unit of measure required) |
| 381 |
</span> |
| 382 |
<kbd>DOUBLE</kbd> by itself will double-underscore the element. The |
| 383 |
remaining arguments must be entered in the order given. You may not |
| 384 |
skip over any of them, which means that if you only wish to change |
| 385 |
<kbd><rule gap></kbd>, you must still enter a |
| 386 |
<kbd><weight></kbd> and <kbd><distance></kbd> argument. |
| 387 |
</p> |
| 388 |
|
| 389 |
<p> |
| 390 |
Page elements that are separated from |
| 391 |
<a href="definitions.html#running">running text</a> |
| 392 |
by a rule (i.e. page headers, page footers, and footnotes) are |
| 393 |
controlled by macros that end in _RULE_WEIGHT. |
| 394 |
</p> |
| 395 |
|
| 396 |
<p> |
| 397 |
The weight argument to _UNDERSCORE macros is the same as the |
| 398 |
argument to |
| 399 |
<a href="inlines.html#rule-weight">RULE_WEIGHT</a>, |
| 400 |
as is the argument to _RULE_WEIGHT macros. |
| 401 |
</p> |
| 402 |
|
| 403 |
<h3 id="grouping" class="docs">Grouping control macros</h3> |
| 404 |
|
| 405 |
<p> |
| 406 |
As of version 2.1, it is possible to group control macros for a |
| 407 |
particular tag into a single <kbd><element>_STYLE</kbd> macro. |
| 408 |
For example, rather than setting the family, size, and indent of |
| 409 |
<a href="#blockquote-intro">BLOCKQUOTES</a> |
| 410 |
with |
| 411 |
<br/> |
| 412 |
<span class="pre-in-pp"> |
| 413 |
.BLOCKQUOTE_FAMILY H |
| 414 |
.BLOCKQUOTE_SIZE -2 |
| 415 |
.BLOCKQUOTE_INDENT 4P |
| 416 |
</span> |
| 417 |
you can enter the same style parameter changes with |
| 418 |
<br/> |
| 419 |
<span class="pre-in-pp"> |
| 420 |
.BLOCKQUOTE_STYLE \ |
| 421 |
FAMILY H \ |
| 422 |
SIZE -2 \ |
| 423 |
INDENT 4P |
| 424 |
</span> |
| 425 |
<kbd><element>_STYLE</kbd> macros use |
| 426 |
“keyword/value” pairs (<kbd>FAMILY</kbd> is a keyword, |
| 427 |
<kbd>H</kbd> is a value), and may be entered entirely on one line, |
| 428 |
or, as the example shows, broken into several readable lines using |
| 429 |
the backslash. The macro itself and all but the last keyword/value |
| 430 |
pair require the backslash when this style is used. |
| 431 |
</p> |
| 432 |
|
| 433 |
<p> |
| 434 |
Not all the control macros for a particular tag may be available |
| 435 |
with an <kbd><element>_STYLE</kbd> macro. Generally speaking, |
| 436 |
though, if a tag has control macros for |
| 437 |
</p> |
| 438 |
<table style="font-family: monospace; font-weight: bold; margin-left: 5em; margin-top: -1em"> |
| 439 |
<tr> |
| 440 |
<td style="padding-right: 1em">FAMILY</td> |
| 441 |
<td style="padding-right: 1em">LEAD</td> |
| 442 |
<td style="padding-right: 1em">INDENT</td> |
| 443 |
<td style="padding-right: 1em">SMALLCAPS</td> |
| 444 |
</tr> |
| 445 |
<tr> |
| 446 |
<td style="padding-right: 1em">FONT</td> |
| 447 |
<td style="padding-right: 1em">AUTOLEAD</td> |
| 448 |
<td style="padding-right: 1em">COLOR</td> |
| 449 |
<td style="padding-right: 1em">UNDERSCORE or UNDERLINE</td> |
| 450 |
</tr> |
| 451 |
<tr> |
| 452 |
<td style="padding-right: 1em">SIZE</td> |
| 453 |
<td style="padding-right: 1em">QUAD</td> |
| 454 |
<td style="padding-right: 1em">CAPS</td> |
| 455 |
</tr> |
| 456 |
</table> |
| 457 |
<p style="margin-top: .5em"> |
| 458 |
those parameters may be used within an |
| 459 |
<kbd><element>_STYLE</kbd> macro. |
| 460 |
</p> |
| 461 |
|
| 462 |
<div class="box-tip"> |
| 463 |
<p class="tip"> |
| 464 |
<span class="note">Note:</span> |
| 465 |
If you need to reverse the sense of <kbd>CAPS</kbd>, |
| 466 |
<kbd>SMALLCAPS</kbd> or <kbd>UNDERSCORE/UNDERLINE</kbd>, which |
| 467 |
do not take a value after the keyword, use <kbd>NO_CAPS</kbd>, |
| 468 |
<kbd>NO_SMALLCAPS</kbd>, and <kbd>NO_UNDERSCORE/NO_UNDERLINE</kbd>. |
| 469 |
</p> |
| 470 |
</div> |
| 471 |
|
| 472 |
<div class="rule-short"><hr/></div> |
| 473 |
|
| 474 |
<!-- ==================================================================== --> |
| 475 |
|
| 476 |
<h2 id="epigraph-intro" class="macro-group">Epigraphs</h2> |
| 477 |
|
| 478 |
<ul style="margin-left: -.5em;"> |
| 479 |
<li><a href="#epigraph">Tag: EPIGRAPH</a></li> |
| 480 |
<li><a href="#epigraph-control">Epigraph control macros and defaults</a></li> |
| 481 |
</ul> |
| 482 |
|
| 483 |
<p> |
| 484 |
<a href="definitions.html#epigraph">Epigraphs</a> |
| 485 |
colour, flavour, or comment on the document they precede. |
| 486 |
Typically, they are centred at the top of a document’s first page |
| 487 |
(underneath the title) and set in a smaller point size than that of |
| 488 |
paragraph text. |
| 489 |
</p> |
| 490 |
|
| 491 |
<p> |
| 492 |
By default, mom sets epigraphs centred and |
| 493 |
<a href="definitions.html#filled">unfilled</a>; |
| 494 |
this lets you input them on a line for line basis. This behaviour |
| 495 |
can be changed to accommodate |
| 496 |
<a href="definitions.html#filled">filled</a> |
| 497 |
epigraph “blocks.” |
| 498 |
</p> |
| 499 |
|
| 500 |
<!-- -EPIGRAPH- --> |
| 501 |
|
| 502 |
<div class="macro-id-overline"> |
| 503 |
<h3 id="epigraph" class="macro-id">EPIGRAPH</h3> |
| 504 |
</div> |
| 505 |
|
| 506 |
<div class="box-macro-args"> |
| 507 |
Macro: <b>EPIGRAPH</b> <kbd class="macro-args"><toggle> | [ BLOCK ]</kbd> |
| 508 |
</div> |
| 509 |
|
| 510 |
<p> |
| 511 |
EPIGRAPH is a toggle, used like this: |
| 512 |
<br/> |
| 513 |
<span class="pre-in-pp"> |
| 514 |
.EPIGRAPH |
| 515 |
<text of epigraph> |
| 516 |
.EPIGRAPH OFF |
| 517 |
</span> |
| 518 |
<kbd>OFF</kbd>, above, could be anything—say, <kbd>Q</kbd> or |
| 519 |
<kbd>X</kbd>—since any argument other than <kbd>BLOCK</kbd> |
| 520 |
turns it off. |
| 521 |
</p> |
| 522 |
|
| 523 |
<p> |
| 524 |
If given the argument, <kbd>BLOCK</kbd>, EPIGRAPH sets epigraphs |
| 525 |
<a href="definitions.html#filled">filled</a>, |
| 526 |
justified or quadded in the same direction as paragraphs, indented |
| 527 |
equally from both the left and right margins. |
| 528 |
</p> |
| 529 |
|
| 530 |
<p> |
| 531 |
If a block-style epigraph runs to more than one paragraph (unlikely, |
| 532 |
but conceivable), you must introduce every paragraph—including |
| 533 |
the first—with the |
| 534 |
<a href="#pp">PP</a> |
| 535 |
tag. |
| 536 |
</p> |
| 537 |
|
| 538 |
<div class="box-tip"> |
| 539 |
<p class="tip"> |
| 540 |
<span class="note">Note:</span> |
| 541 |
EPIGRAPH should only be used at the top of a document (i.e. just |
| 542 |
after |
| 543 |
<a href="docprocessing.html#start">START</a>) |
| 544 |
or after headings. The latter is not especially recommended, but it |
| 545 |
does work. In all other places where you want quotes or cited text, |
| 546 |
use |
| 547 |
<a href="#quote">QUOTE</a> |
| 548 |
or |
| 549 |
<a href="#blockquote">BLOCKQUOTE</a>. |
| 550 |
</p> |
| 551 |
</div> |
| 552 |
|
| 553 |
<div class="box-tip"> |
| 554 |
<p class="tip"> |
| 555 |
<span class="tip">Tips on vertical spacing around epigraphs:</span> |
| 556 |
If you wish to change the vertical position of an epigraph with |
| 557 |
<a href="typesetting.html#space">SPACE</a>, |
| 558 |
<a href="typesetting.html#ald">ALD</a>, or |
| 559 |
<a href="typesetting.html#rld">RLD</a>, |
| 560 |
do so before invoking <kbd>.EPIGRAPH</kbd>, like this: |
| 561 |
<br/> |
| 562 |
<span class="pre-in-pp"> |
| 563 |
.SP -6p |
| 564 |
.EPIGRAPH |
| 565 |
A notable quote. |
| 566 |
.EPIGRAPH OFF |
| 567 |
</span> |
| 568 |
If you’re setting a document in |
| 569 |
<a href="docprocessing.html#columns">columns</a> |
| 570 |
and you’d like to add or subtract space <i>after</i> the |
| 571 |
epigraph, which is centred over the top of both columns, the place |
| 572 |
to do it is inside the epigraph, like this: |
| 573 |
<br/> |
| 574 |
<span class="pre-in-pp"> |
| 575 |
.EPIGRAPH |
| 576 |
A notable quote. |
| 577 |
.SP 1v |
| 578 |
.EPIGRAPH OFF |
| 579 |
</span> |
| 580 |
If you were to add the <kbd>.SP 1v</kbd> outside the epigraph, the |
| 581 |
space would be added to the top of the leftmost column only, |
| 582 |
resulting in unbalanced columns. |
| 583 |
</p> |
| 584 |
</div> |
| 585 |
|
| 586 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 587 |
<h3 id="epigraph-control" class="docs defaults" style="margin-top: -.25em;">EPIGRAPH control macros and defaults</h3> |
| 588 |
|
| 589 |
<p class="defaults"> |
| 590 |
See |
| 591 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 592 |
<br/> |
| 593 |
The following EPIGRAPH control macros may also be |
| 594 |
<a href="#grouping">grouped</a> |
| 595 |
using EPIGRAPH_STYLE. |
| 596 |
</p> |
| 597 |
|
| 598 |
<span class="pre defaults"> |
| 599 |
.EPIGRAPH_FAMILY default = prevailing document family; default is Times Roman |
| 600 |
.EPIGRAPH_FONT default = roman |
| 601 |
.EPIGRAPH_SIZE default = -1.5 (points) |
| 602 |
.EPIGRAPH_COLOR default = black |
| 603 |
.EPIGRAPH_AUTOLEAD default = 2 points |
| 604 |
(The next two apply to “block” style epigraphs only) |
| 605 |
.EPIGRAPH_INDENT* (see Note on EPIGRAPH_INDENT, below) |
| 606 |
|
| 607 |
*Indent here refers to the indent from both the left and right margins |
| 608 |
that centres block style epigraphs on the page. |
| 609 |
</span> |
| 610 |
</div> |
| 611 |
|
| 612 |
<div class="box-notes"> |
| 613 |
<h3 id="epigraph-indent" class="docs notes" style="margin-bottom: -.75em;">Note on EPIGRAPH_INDENT</h3> |
| 614 |
|
| 615 |
<p style="margin-top: .5em;"> |
| 616 |
If you pass EPIGRAPH_INDENT an integer with no unit of measure |
| 617 |
appended, the integer represents the amount by which to multiply |
| 618 |
PARA_INDENT to arrive at an indent for block style epigraphs. If |
| 619 |
you append a unit of measure to the argument, the indent will be |
| 620 |
precisely the amount specified. |
| 621 |
</p> |
| 622 |
|
| 623 |
<p> |
| 624 |
Please also note that if your PARA_INDENT is <kbd>0</kbd> (i.e. |
| 625 |
no indenting of the first line of paragraphs), you must set an |
| 626 |
EPIGRAPH_INDENT yourself, with a unit of measure appended to the |
| 627 |
argument. Mom has no default for EPIGRAPH_INDENT if paragraph first |
| 628 |
lines are not being indented. |
| 629 |
</p> |
| 630 |
|
| 631 |
<p class="tip-bottom"> |
| 632 |
The default value for EPIGRAPH_INDENT is <kbd>3</kbd> (for |
| 633 |
<a href="docprocessing.html#printstyle">PRINTSTYLE TYPESET</a>) |
| 634 |
and <kbd>2</kbd> (for |
| 635 |
<a href="docprocessing.html#printstyle">PRINTSTYLE TYPEWRITE</a>). |
| 636 |
</p> |
| 637 |
</div> |
| 638 |
|
| 639 |
<div class="rule-short"><hr/></div> |
| 640 |
|
| 641 |
<!-- ==================================================================== --> |
| 642 |
|
| 643 |
<h2 id="pp-intro" class="macro-group">Paragraphs</h2> |
| 644 |
|
| 645 |
<ul style="margin-left: -.5em;"> |
| 646 |
<li><a href="#pp">Tag: PP</a></li> |
| 647 |
<li><a href="#pp-control">Paragraph control macros and defaults</a></li> |
| 648 |
</ul> |
| 649 |
|
| 650 |
<p> |
| 651 |
The paragraph macro is the one you use most often. Consequently, |
| 652 |
it’s one of most powerful, yet simplest to use—just the |
| 653 |
letters PP. No arguments, nothing. Just <kbd>.PP</kbd> on a line |
| 654 |
by itself any time, in any document element, tells mom you want to |
| 655 |
start a new paragraph. The spacing and indent appropriate to where |
| 656 |
you are in your document are taken care of automatically. |
| 657 |
</p> |
| 658 |
|
| 659 |
<p> |
| 660 |
By default, mom does not indent the first paragraph of a document, |
| 661 |
nor paragraphs that fall immediately after headings. The first |
| 662 |
paragraphs of blockquotes and block-style epigraphs are also not |
| 663 |
indented. This behaviour can be changed with the control macro |
| 664 |
<kbd><a href="#para-indent-first">INDENT_FIRST_PARAS</a></kbd>. |
| 665 |
</p> |
| 666 |
|
| 667 |
<p> |
| 668 |
Mom does not deposit a blank line between paragraphs. If you want |
| 669 |
her to do so, use the control macro |
| 670 |
<a href="#pp-space">PARA_SPACE</a>. |
| 671 |
(I don’t recommend using this macro with |
| 672 |
<a href="typesetting.html#printstyle">PRINTSTYLE TYPEWRITE</a>.) |
| 673 |
</p> |
| 674 |
|
| 675 |
<p> |
| 676 |
Note that mom does not provide widow or orphan control for |
| 677 |
paragraphs (i.e., even if only one line of a paragraph fits at the |
| 678 |
bottom of a page, she will set it on that page). The reason for |
| 679 |
this is that writers of fiction often have single-line paragraphs |
| 680 |
(e.g. in dialogue). Groff’s simplistic orphan control will |
| 681 |
break these one-liners—if they fall at the bottom of the |
| 682 |
page—to a new page, which is not what you want. |
| 683 |
</p> |
| 684 |
|
| 685 |
<!-- -PP- --> |
| 686 |
|
| 687 |
<div class="macro-id-overline"> |
| 688 |
<h3 id="pp" class="macro-id">PP</h3> |
| 689 |
</div> |
| 690 |
|
| 691 |
<div class="box-macro-args"> |
| 692 |
Macro: <b>PP</b> |
| 693 |
</div> |
| 694 |
<p> |
| 695 |
<kbd>.PP</kbd> (on a line by itself, of course) tells mom to start a |
| 696 |
new paragraph. See |
| 697 |
<a href="#pp-intro">above</a> |
| 698 |
for more details. In addition to regular text paragraphs, you can |
| 699 |
use PP in |
| 700 |
<a href="#epigraph-intro">epigraphs</a>, |
| 701 |
<a href="#blockquote-intro">blockquotes</a>, |
| 702 |
<a href="#endnote-intro">endnotes</a> |
| 703 |
and |
| 704 |
<a href="#footnote-intro">footnotes</a>. |
| 705 |
</p> |
| 706 |
|
| 707 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 708 |
<h3 id="pp-control" class="docs defaults">PP control macros and defaults</h3> |
| 709 |
|
| 710 |
<p class="defaults"> |
| 711 |
The PP macro being so important, and representing, as it were, the |
| 712 |
basis of everything that goes on in a document, its control is |
| 713 |
managed in a manner somewhat different from other document element |
| 714 |
tags. As a result, the control macros for PP may not be |
| 715 |
<a href="#grouping">grouped</a> |
| 716 |
within a <kbd>_STYLE</kbd> macro. |
| 717 |
</p> |
| 718 |
|
| 719 |
<ol style="margin-top: .5em; padding-bottom: .5em;"> |
| 720 |
<li><a href="#pp-family">Family control</a></li> |
| 721 |
<li><a href="#pp-font">Font control</a></li> |
| 722 |
<li><a href="#pp-color">Paragraph colour</a></li> |
| 723 |
<li><a href="#pp-leading">Leading/linespacing control</a></li> |
| 724 |
<li><a href="#pp-just-quad">Justification/quad control</a></li> |
| 725 |
<li><a href="#para-indent">First-line indent control</a></li> |
| 726 |
<li><a href="#para-indent-first">Initial paragraphs indent control</a></li> |
| 727 |
<li><a href="#pp-space">Inter-paragraph spacing</a></li> |
| 728 |
</ol> |
| 729 |
</div> |
| 730 |
|
| 731 |
<h4 id="pp-family" class="docs" style="margin-top: -1.5em;">1. Family control</h4> |
| 732 |
|
| 733 |
<p> |
| 734 |
The paragraph |
| 735 |
<a href="definitions.html#family">family</a> |
| 736 |
is set with |
| 737 |
<a href="typesetting.html#family">FAMILY</a> |
| 738 |
prior to |
| 739 |
<a href="docprocessing.html#start">START</a>, |
| 740 |
or |
| 741 |
<a href="docprocessing.html#doc-family">DOC_FAMILY</a> |
| 742 |
afterwards. Please note that both globally affect the family of |
| 743 |
every element in the document. |
| 744 |
</p> |
| 745 |
|
| 746 |
<p> |
| 747 |
If you wish to change the family for regular text paragraphs only, |
| 748 |
invoke <kbd>.FAMILY</kbd> immediately after <kbd>.PP</kbd> in every |
| 749 |
paragraph whose family you wish to differ from the prevailing |
| 750 |
document family. Alternatively, set the family and font for |
| 751 |
paragraphs with PP_FONT, giving it a complete family+font name, e.g. |
| 752 |
<br/> |
| 753 |
<span class="pre-in-pp"> |
| 754 |
PP_FONT TI |
| 755 |
</span> |
| 756 |
which would make the font used in paragraphs Times Roman Italic. |
| 757 |
</p> |
| 758 |
|
| 759 |
<p> |
| 760 |
Mom’s default paragraph (and document) family is Times Roman. |
| 761 |
</p> |
| 762 |
|
| 763 |
<div class="box-tip"> |
| 764 |
<p class="tip"> |
| 765 |
<span class="note">Note:</span> |
| 766 |
Neither FAMILY nor DOC_FAMILY has any effect when the PRINTSTYLE is |
| 767 |
<kbd>TYPEWRITE</kbd>. |
| 768 |
</p> |
| 769 |
</div> |
| 770 |
|
| 771 |
<h4 id="pp-font" class="docs" style="margin-top: -.25em;">2. Font control</h4> |
| 772 |
|
| 773 |
<p> |
| 774 |
To change the |
| 775 |
<a href="definitions.html#font">font</a> |
| 776 |
used in regular text paragraphs, use PP_FONT, which takes the same |
| 777 |
argument as |
| 778 |
<a href="typesetting.html#font">FT</a>. |
| 779 |
PP_FONT may be used before or after |
| 780 |
<a href="docprocessing.html#start">START</a>. |
| 781 |
Only regular text paragraphs are affected; paragraphs in |
| 782 |
<a href="#epigraph-intro">epigraphs</a>, |
| 783 |
<a href="#blockquote-intro">blockquotes</a>, |
| 784 |
<a href="#endnote-intro">endnotes</a>, |
| 785 |
and |
| 786 |
<a href="#footnote-intro">footnotes</a> |
| 787 |
remain at their default setting (medium roman) unless you change |
| 788 |
them with the appropriate control macros. |
| 789 |
</p> |
| 790 |
|
| 791 |
<p> |
| 792 |
Mom’s default paragraph font is medium roman. |
| 793 |
</p> |
| 794 |
|
| 795 |
<div class="box-tip"> |
| 796 |
<p class="tip"> |
| 797 |
<span class="note">Note:</span> |
| 798 |
PP_FONT has no effect when the PRINTSTYLE is <kbd>TYPEWRITE</kbd>. |
| 799 |
If you wish to set whole typewritten paragraphs in italic, invoke |
| 800 |
<kbd>.FT I</kbd> immediately after <kbd>.PP</kbd>. Depending |
| 801 |
on which of |
| 802 |
<a href="docprocessing.html#printstyle-italics">UNDERLINE_ITALIC</a> |
| 803 |
or |
| 804 |
<a href="docprocessing.html#printstyle-italics">ITALIC_MEANS_ITALIC</a> |
| 805 |
is currently enabled, the paragraph will be set underlined or in |
| 806 |
italic. Neither persists past the end of the paragraph. |
| 807 |
</p> |
| 808 |
</div> |
| 809 |
|
| 810 |
<h4 id="pp-color" class="docs" style="margin-top: -.25em;">3. Paragraph colour</h4> |
| 811 |
|
| 812 |
<p> |
| 813 |
Mom has no special control macro for colourising paragraphs. If you |
| 814 |
wish a colourised paragraph, you must use the macro |
| 815 |
<a href="color.html#color">COLOR</a> |
| 816 |
or the |
| 817 |
<a href="definitions.html#inline">inline escape</a>, |
| 818 |
<a href="color.html#color-inline"><kbd><span class="nobr">\*[<colourname>]</span></kbd></a>, |
| 819 |
<i>after</i> <kbd>.PP</kbd>. The colour must be one pre-defined (or |
| 820 |
“initialized”) with |
| 821 |
<a href="color.html#newcolor">NEWCOLOR</a> |
| 822 |
or |
| 823 |
<a href="color.html#xcolor">XCOLOR</a>. |
| 824 |
</p> |
| 825 |
|
| 826 |
<p> |
| 827 |
Please note that unless you change the colour back to it’s |
| 828 |
default (usually black) at the end of the paragraph, all subsequent |
| 829 |
paragraphs will be set in the new colour, although most other |
| 830 |
elements of your document will continue to be set in the default |
| 831 |
colour (usually black). |
| 832 |
</p> |
| 833 |
|
| 834 |
<p> |
| 835 |
For example, assuming you have defined the colour, blue, |
| 836 |
<br/> |
| 837 |
<span class="pre-in-pp"> |
| 838 |
.PP |
| 839 |
.COLOR blue |
| 840 |
<first paragraph> |
| 841 |
.HEADING 1 "Monty Python" |
| 842 |
.HEADING 2 "The Origins of Spam" |
| 843 |
.PP |
| 844 |
<second paragraph> |
| 845 |
</span> |
| 846 |
the first paragraph will be blue, the head and subhead will be in |
| 847 |
the document’s default colour (usually black), and the second |
| 848 |
paragraph will be in blue. |
| 849 |
</p> |
| 850 |
|
| 851 |
<h4 id="pp-leading" class="docs" style="margin-top: -.25em;">4. Leading</h4> |
| 852 |
|
| 853 |
<p> |
| 854 |
The paragraph |
| 855 |
<a href="definitions.html#leading">leading</a> |
| 856 |
is set with |
| 857 |
<a href="typesetting.html#leading">LS</a> |
| 858 |
prior to |
| 859 |
<a href="docprocessing.html#start">START</a>, |
| 860 |
or |
| 861 |
<a href="docprocessing.html#doc-lead">DOC_LEAD</a> |
| 862 |
afterwards. Please note that either method globally affects the |
| 863 |
leading and spacing of every document element (except |
| 864 |
<a href="definitions.html#header">headers</a> |
| 865 |
and |
| 866 |
<a href="definitions.html#footer">footers</a>). |
| 867 |
</p> |
| 868 |
|
| 869 |
<p> |
| 870 |
If you wish to change the leading of regular text paragraphs only, |
| 871 |
invoke <kbd>.LS</kbd> immediately after <kbd>.PP</kbd> in any |
| 872 |
paragraph whose leading you wish to change. |
| 873 |
</p> |
| 874 |
|
| 875 |
<div class="box-tip"> |
| 876 |
<p class="tip"> |
| 877 |
<span class="note">Warning:</span> |
| 878 |
Changing a paragraph’s leading will almost certainly screw up |
| 879 |
mom’s ability to balance the bottom margin of pages. Should |
| 880 |
you absolutely require a change to a paragraph’s leading and |
| 881 |
need to get mom back on track leading-wise afterwards, use the |
| 882 |
<a href="docprocessing.html#shim">SHIM</a> |
| 883 |
or |
| 884 |
<a href="docprocessing.html#shim">FLEX</a> |
| 885 |
macro, depending on which |
| 886 |
<a href="docprocessing.html#vertical-whitespace-management">vertical whitespace management</a> |
| 887 |
strategy you are using. |
| 888 |
</p> |
| 889 |
</div> |
| 890 |
|
| 891 |
<p> |
| 892 |
Mom’s default paragraph leading (document leading) |
| 893 |
is 16 points, adjusted to fill the page. |
| 894 |
</p> |
| 895 |
|
| 896 |
<h4 id="pp-just-quad" class="docs" style="margin-top: -.25em;">5. Justification / quad</h4> |
| 897 |
|
| 898 |
<p> |
| 899 |
The justification/quad-direction of regular text paragraphs (i.e. |
| 900 |
<a href="definitions.html#just">justified</a>, |
| 901 |
or |
| 902 |
<a href="definitions.html#filled">filled</a> |
| 903 |
and |
| 904 |
<a href="definitions.html#quad">quadded</a> |
| 905 |
left/right/centre) is set with |
| 906 |
<a href="typesetting.html#justify">JUSTIFY</a> |
| 907 |
or |
| 908 |
<a href="typesetting.html#quad">QUAD</a> |
| 909 |
prior to |
| 910 |
<a href="docprocessing.html#start">START</a>, |
| 911 |
and with |
| 912 |
<a href="docprocessing.html#doc-quad">DOC_QUAD</a> |
| 913 |
afterwards. |
| 914 |
</p> |
| 915 |
|
| 916 |
<p> |
| 917 |
Please note that either method of setting the paragraph |
| 918 |
justification/quad-direction also affects |
| 919 |
<a href="#epigraph-intro">epigraphs</a>, |
| 920 |
<a href="#footnote-intro">footnotes</a>, |
| 921 |
and |
| 922 |
<a href="#endnote-intro">endnotes</a>, |
| 923 |
but not |
| 924 |
<a href="#blockquote-intro">blockquotes</a> |
| 925 |
(whose default is quad left unless you change it with |
| 926 |
<a href="#blockquote">BLOCKQUOTE_QUAD</a>). |
| 927 |
The justification/quad-direction of epigraphs and footnotes may be |
| 928 |
changed with their own control macros. |
| 929 |
</p> |
| 930 |
|
| 931 |
<p> |
| 932 |
If you wish to change the justification/quad-direction of individual |
| 933 |
paragraphs, invoke |
| 934 |
<a href="typesetting.html#justify"><kbd>.JUSTIFY</kbd></a> |
| 935 |
or |
| 936 |
<a href="typesetting.html#quad"><kbd>.QUAD</kbd></a> |
| 937 |
on the line immediately after <kbd>.PP</kbd>. Only the paragraph |
| 938 |
in question gets justified or quadded differently; subsequent |
| 939 |
paragraphs remain unaffected. |
| 940 |
</p> |
| 941 |
|
| 942 |
<p> |
| 943 |
Mom’s default justification/quad-direction for paragraphs |
| 944 |
when the |
| 945 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a> |
| 946 |
is <kbd>TYPESET</kbd> is justified; for PRINTSTYLE |
| 947 |
<kbd>TYPEWRITE</kbd>, the default is quad left. |
| 948 |
</p> |
| 949 |
|
| 950 |
<h4 id="para-indent" class="docs" style="margin-top: -.25em;">6. First-line indent</h4> |
| 951 |
|
| 952 |
<p> |
| 953 |
The first-line indent of paragraphs is controlled by PARA_INDENT, |
| 954 |
which takes one argument: the size of the indent. PARA_INDENT may be |
| 955 |
used before or after |
| 956 |
<a href="docprocessing.html#start">START</a>. |
| 957 |
A |
| 958 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 959 |
is required; fractional sizes are allowed. Thus, to set the |
| 960 |
paragraph indent to 4-1/2 |
| 961 |
<a href="definitions.html#em">ems</a>, do |
| 962 |
<br/> |
| 963 |
<span class="pre-in-pp"> |
| 964 |
.PARA_INDENT 4.5m |
| 965 |
</span> |
| 966 |
In addition to establishing the basic first line-indent of |
| 967 |
paragraphs, PARA_INDENT also affects |
| 968 |
<a href="#epigraph-intro">epigraphs</a>, |
| 969 |
<a href="#quote-intro">quotes</a> |
| 970 |
and |
| 971 |
<a href="#blockquote-intro">blockquotes</a>, |
| 972 |
whose overall indenting from the left and (where applicable) |
| 973 |
right margins is relative to PARA_INDENT if |
| 974 |
the _INDENT control macro for these tags has |
| 975 |
no |
| 976 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 977 |
appended to it. Furthermore, the first-line indent of paragraphs |
| 978 |
within these document elements (as well as footnotes) is also |
| 979 |
relative to PARA_INDENT (always 1/2 of PARA_INDENT), hence they are |
| 980 |
also affected. |
| 981 |
</p> |
| 982 |
|
| 983 |
<p> |
| 984 |
Mom’s default PARA_INDENT is 2 ems for |
| 985 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a> |
| 986 |
<kbd>TYPESET</kbd> and 3 picas (1/2 inch) for |
| 987 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a> |
| 988 |
<kbd>TYPEWRITE</kbd>. |
| 989 |
</p> |
| 990 |
|
| 991 |
<h4 id="para-indent-first" class="docs" style="margin-top: -.25em;">7. Indenting initial paragraphs</h4> |
| 992 |
|
| 993 |
<p> |
| 994 |
By default, mom does not indent the first paragraph of a document, |
| 995 |
nor the first paragraph after a heading or |
| 996 |
<a href="#linebreak-intro">linebreak</a>, |
| 997 |
nor the first paragraphs of |
| 998 |
<a href="#epigraph-intro">epigraphs</a>, |
| 999 |
<a href="#blockquote-intro">blockquotes</a>, |
| 1000 |
<a href="#endnote-intro">endnotes</a> |
| 1001 |
or |
| 1002 |
<a href="#footnote-intro">footnotes</a> |
| 1003 |
that run to more than one paragraph. |
| 1004 |
</p> |
| 1005 |
|
| 1006 |
<p> |
| 1007 |
If you wish to have first paragraphs indented, invoke the macro |
| 1008 |
INDENT_FIRST_PARAS without an argument, either before or after |
| 1009 |
<a href="docprocessing.html#start">START</a>. |
| 1010 |
INDENT_FIRST_PARAS is a toggle macro, therefore passing it any |
| 1011 |
argument (<kbd>OFF</kbd>, <kbd>QUIT</kbd>, <kbd>Q</kbd>, |
| 1012 |
<kbd>X</kbd>...) cancels its effect, meaning that first paragraphs |
| 1013 |
will once again not be indented. |
| 1014 |
</p> |
| 1015 |
|
| 1016 |
<h4 id="pp-space" class="docs">8. Inter-paragraph spacing</h4> |
| 1017 |
|
| 1018 |
<p> |
| 1019 |
By default, mom does not insert a blank line between |
| 1020 |
paragraphs. If you would like her to do so, invoke the macro |
| 1021 |
PARA_SPACE without an argument, either before or after |
| 1022 |
<a href="docprocessing.html#start">START</a>. |
| 1023 |
PARA_SPACE is a toggle macro, therefore passing it any argument |
| 1024 |
(<kbd>OFF</kbd>, <kbd>QUIT</kbd>, <kbd>Q</kbd>, <kbd>X</kbd>...) |
| 1025 |
cancels its effect, meaning that paragraphs will once again not be |
| 1026 |
separated by a blank line. |
| 1027 |
</p> |
| 1028 |
|
| 1029 |
<p> |
| 1030 |
If you would like to space paragraphs by less than a full linespace, |
| 1031 |
invoke PARA_SPACE with the amount of space you want as a numeric |
| 1032 |
argument. A |
| 1033 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 1034 |
is required. For example, to space paragraphs by one-quarter |
| 1035 |
linespace |
| 1036 |
<span class="pre-in-pp"> |
| 1037 |
.PARA_SPACE .25v |
| 1038 |
</span> |
| 1039 |
is how you’d do it, or, if you want six points between |
| 1040 |
paragraphs |
| 1041 |
<span class="pre-in-pp"> |
| 1042 |
.PARA_SPACE 6p |
| 1043 |
</span> |
| 1044 |
</p> |
| 1045 |
|
| 1046 |
<p style="margin-top: -1em" > |
| 1047 |
If |
| 1048 |
<a href="docprocessing.html#flex-vs-shim">flex-spacing</a> |
| 1049 |
is enabled, additional flexible vertical whitespace can be inserted |
| 1050 |
between spaced paragraphs with the |
| 1051 |
<a href="docprocessing.html#flex">FLEX</a> |
| 1052 |
macro. |
| 1053 |
</p> |
| 1054 |
|
| 1055 |
<p> |
| 1056 |
PARA_SPACE is not recommended for use with PRINTSTYLE TYPEWRITE |
| 1057 |
unless you give PRINTSTYLE the <kbd>SINGLESPACE</kbd> option. |
| 1058 |
</p> |
| 1059 |
|
| 1060 |
<div class="box-tip"> |
| 1061 |
<p class="tip-top"> |
| 1062 |
<span class="note">Note:</span> |
| 1063 |
If PARA_SPACE is on, mom spaces only those paragraphs that come |
| 1064 |
after an initial paragraph. Initial paragraphs are those that come |
| 1065 |
immediately after the |
| 1066 |
<a href="definitions.html#docheader">docheader</a> |
| 1067 |
(i.e. the start of a document), |
| 1068 |
<a href="#epigraph-intro">epigraphs</a>, |
| 1069 |
<a href="#heading-intro">headings</a>, |
| 1070 |
and |
| 1071 |
<a href="#linebreak-intro">linebreaks</a>. |
| 1072 |
(The first paragraph after these document elements requires no |
| 1073 |
blank line to separate it from other paragraphs.) |
| 1074 |
</p> |
| 1075 |
|
| 1076 |
<p class="tip-bottom"> |
| 1077 |
Sometimes, you can be fairly deep into a document before using PP |
| 1078 |
for the first time, and when you do, because mom is still waiting |
| 1079 |
for that initial paragraph, she doesn’t space it with a blank |
| 1080 |
line, even though you expect her to. The simple workaround for this |
| 1081 |
is to invoke <kbd>.PP</kbd> twice (in succession) at the point you |
| 1082 |
expect the blank line to appear. |
| 1083 |
</p> |
| 1084 |
</div> |
| 1085 |
|
| 1086 |
<div class="rule-short"><hr/></div> |
| 1087 |
|
| 1088 |
<!-- ==================================================================== --> |
| 1089 |
|
| 1090 |
<h2 id="heading-intro" class="macro-group">Headings</h2> |
| 1091 |
|
| 1092 |
<ul style="margin-left: -.5em;"> |
| 1093 |
<li><a href="#heading">Tag: HEADING</a></li> |
| 1094 |
<li><a href="#head-spacing-notes">Spacing of headings</a></li> |
| 1095 |
<li><a href="#heading-control">Heading control macros and defaults</a></li> |
| 1096 |
<li><a href="#prefix-chapter-number">Prefixing chapter numbers</a></li> |
| 1097 |
<li><a href="#oldstyle-headings">Oldstyle headings</a> |
| 1098 |
<ul style="list-style-type: circle; margin-left: -1.25em"> |
| 1099 |
<li><a href="#parahead">Important information about PARAHEAD</a> |
| 1100 |
<ul style="list-style-type: square; margin-left: -1.25em"> |
| 1101 |
<li><a href="#parahead-usage">Correct usage of paraheads</a></li> |
| 1102 |
</ul></li> |
| 1103 |
</ul></li> |
| 1104 |
</ul> |
| 1105 |
|
| 1106 |
<p> |
| 1107 |
Heads, subheads, and deeper levels of section headings are |
| 1108 |
handled by a single macro, HEADING, to which you pass an argument |
| 1109 |
stating the desired level. |
| 1110 |
<kbd><span class="nobr">.HEADING 1 "<text>"</span></kbd>, |
| 1111 |
for example, would be a main head; |
| 1112 |
<kbd><span class="nobr">.HEADING 2 "<text>"</span></kbd> |
| 1113 |
would be a subhead; etc. |
| 1114 |
</p> |
| 1115 |
|
| 1116 |
<p> |
| 1117 |
In addition to printing headings in the body of your document, |
| 1118 |
HEADING collects the heading as an entry for the Table of Contents, |
| 1119 |
if the document is to have one, and the |
| 1120 |
<a href="definitions.html#pdfoutline">PDF outline</a>. |
| 1121 |
With the <kbd>NAMED</kbd> argument, it furthermore acts as a |
| 1122 |
bookmark for |
| 1123 |
<a href="definitions.html#pdflink">PDF links</a>. |
| 1124 |
</p> |
| 1125 |
|
| 1126 |
<p> |
| 1127 |
Headings can also be numbered on a per-heading-level basis, |
| 1128 |
hierarchically and concatenatively, e.g. |
| 1129 |
<br/> |
| 1130 |
<span class="pre-in-pp"> |
| 1131 |
1. |
| 1132 |
1.1 |
| 1133 |
1.2 |
| 1134 |
1.2.1 |
| 1135 |
2. |
| 1136 |
2.1 |
| 1137 |
2.2 |
| 1138 |
2.2.1 |
| 1139 |
</span> |
| 1140 |
By default, a blank line precedes headings, regardless of the level. |
| 1141 |
In addition, mom |
| 1142 |
<a href="docprocessing.html#shim">SHIM</a>s |
| 1143 |
the heading, if necessary, to ensure conformity with the |
| 1144 |
<a href="definitions.html#baseline-grid">baseline grid</a>. |
| 1145 |
</p> |
| 1146 |
|
| 1147 |
<p> |
| 1148 |
Mom initially sets up a very basic style for nine levels of heading, |
| 1149 |
of which you can have an infinite number, although as has been said, |
| 1150 |
if you need more than four levels of heading, you should consider |
| 1151 |
re-organising your material. The pared-down style of mom’s |
| 1152 |
defaults is intentional; it is expected that you will design |
| 1153 |
headings to your own specifications with the |
| 1154 |
<a href="definitions.html#controlmacro">control macro</a>, |
| 1155 |
<a href="#heading-style">HEADING_STYLE</a>. |
| 1156 |
</p> |
| 1157 |
|
| 1158 |
<p> |
| 1159 |
It is very good practice, and strongly recommended, that you respect |
| 1160 |
the hierarchy of headings, using level-1 for main heads, level-2 for |
| 1161 |
subheads, level-3 for subsubheads, etc. The ease of designing and |
| 1162 |
re-designing the style for each level, plus mom’s very basic |
| 1163 |
defaults, are meant, in part, to prevent the whimsical misuse of |
| 1164 |
a particular heading level just because its style appeals to you. |
| 1165 |
</p> |
| 1166 |
|
| 1167 |
<!-- -HEAD- --> |
| 1168 |
|
| 1169 |
<div class="macro-id-overline"> |
| 1170 |
<h3 id="heading" class="macro-id">HEADING</h3> |
| 1171 |
</div> |
| 1172 |
|
| 1173 |
<div class="box-macro-args"> |
| 1174 |
Macro: <b>HEADING</b> <kbd class="macro-args"><level> [ |
| 1175 |
PARAHEAD ] [ NAMED <pdf-id> ] "<heading text>"</kbd> |
| 1176 |
</div> |
| 1177 |
|
| 1178 |
<p> |
| 1179 |
The first argument to HEADING is the <kbd>level</kbd>. Level 1 is |
| 1180 |
analogous to a main head; level 2 is analogous to a subhead; level 3 |
| 1181 |
is analogous to a subsubhead; etc. |
| 1182 |
</p> |
| 1183 |
|
| 1184 |
<p> |
| 1185 |
The second (optional) argument, <kbd>PARAHEAD</kbd>, instructs mom |
| 1186 |
that the heading should be treated as a |
| 1187 |
<a href="definitions.html#parahead">paragraph head</a>. |
| 1188 |
If HEADING is being used to create a parahead, it must come after |
| 1189 |
<a href="#pp">PP</a>, |
| 1190 |
not before. |
| 1191 |
</p> |
| 1192 |
|
| 1193 |
<p> |
| 1194 |
The indent applied to a parahead is the same as what would be |
| 1195 |
expected from a paragraph without the parahead (see |
| 1196 |
<a href="#para-indent-first">Indenting initial paragraphs</a>). |
| 1197 |
If you wish that a paragraph introduced by a parahead not be |
| 1198 |
indented, use |
| 1199 |
<a href="#para-indent">PARA_INDENT</a> |
| 1200 |
to set the paragraph indent to zero, then reset the indent for |
| 1201 |
subsequent paragraphs. |
| 1202 |
</p> |
| 1203 |
|
| 1204 |
<p> |
| 1205 |
The optional third argument, <kbd>NAMED <id></kbd>, gives |
| 1206 |
the heading a unique, non-printing identifier that allows it to be |
| 1207 |
referenced from anywhere in the final PDF document with the PDF_LINK |
| 1208 |
macro, provided the mom file is processed with |
| 1209 |
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>. |
| 1210 |
PDF_LINK usage is explained in the manual, |
| 1211 |
<a href="http://www.schaffter.ca/mom/pdf/mom-pdf.pdf"><span class="book-title">Producing PDFs with groff and mom</span></a>. |
| 1212 |
</p> |
| 1213 |
|
| 1214 |
<p> |
| 1215 |
The final argument is the text of the heading, surrounded by double |
| 1216 |
quotes. Long headings that are likely to exceed the current |
| 1217 |
line length should be broken into chunks, each surrounded by |
| 1218 |
double-quotes, like this, producing a multi-line heading: |
| 1219 |
<br/> |
| 1220 |
<span class="pre-in-pp"> |
| 1221 |
.HEADING 1 "A needlessly long but instructive" "first level heading" |
| 1222 |
</span> |
| 1223 |
</p> |
| 1224 |
|
| 1225 |
<div class="box-tip"> |
| 1226 |
<p class="tip"> |
| 1227 |
<span class="note">Note:</span> |
| 1228 |
If a heading falls near the bottom of an output page and mom is |
| 1229 |
unable to fit the heading plus at least one line of text underneath |
| 1230 |
it, she will set the head at the top of the next page. |
| 1231 |
</p> |
| 1232 |
</div> |
| 1233 |
|
| 1234 |
<div class="box-tip"> |
| 1235 |
<h3 id="head-spacing-notes" class="docs" |
| 1236 |
style="padding-top: 9px; font-size: 100%; text-transform: none"> |
| 1237 |
Spacing of headings</h3> |
| 1238 |
|
| 1239 |
<p> |
| 1240 |
As described above, mom inserts a blank line before each heading. |
| 1241 |
If the leading of your document never changes, and you introduce no |
| 1242 |
additional space into the text—as, for example, between |
| 1243 |
paragraphs—this will result in perfectly equal whitespace before |
| 1244 |
each heading. |
| 1245 |
</p> |
| 1246 |
|
| 1247 |
<p> |
| 1248 |
If, however, you disrupt the regular placement of text on |
| 1249 |
mom’s |
| 1250 |
<a href="definitions.html#baseline-grid">baseline grid</a>, |
| 1251 |
HEADING adds extra whitespace to the blank line according to the |
| 1252 |
<a href="docprocessing.html#vertical-whitespace-management">vertical whitespace management</a> |
| 1253 |
strategy in effect. This, along with a similar strategy for |
| 1254 |
whitespace around quotes, blockquotes, and |
| 1255 |
<a href="definitions.html#float">floated</a> |
| 1256 |
and |
| 1257 |
<a href="definitions.html#preprocessor">pre-processor material</a> |
| 1258 |
is what allows mom to balance the bottom |
| 1259 |
margins of pages effectively. |
| 1260 |
</p> |
| 1261 |
|
| 1262 |
<p> |
| 1263 |
It occasionally happens that the extra whitespace becomes |
| 1264 |
noticeable. This typically occurs when the amount of whitespace |
| 1265 |
adjustment approaches the value of the current leading. The result |
| 1266 |
looks like two blank lines instead of one. When this happens, a |
| 1267 |
simple but effective fix is to reduce the space before the heading |
| 1268 |
by backing up one line, either with |
| 1269 |
<br/> |
| 1270 |
<span class="pre-in-pp"> |
| 1271 |
.SPACE -1v |
| 1272 |
</span> |
| 1273 |
or |
| 1274 |
<br/> |
| 1275 |
<span class="pre-in-pp"> |
| 1276 |
.RLD -1v |
| 1277 |
</span> |
| 1278 |
This results in slightly less whitespace than normal, but the |
| 1279 |
difference is usually not apparent. Alternatively, you may pass the |
| 1280 |
<kbd>NO_SHIM</kbd> or <kbd>NO_FLEX</kbd> argument to |
| 1281 |
<a href="#heading-style">HEADING_STYLE</a> |
| 1282 |
to prevent shimming or flex-spacing of any particular heading level |
| 1283 |
either globally or selectively. If shimming/flex-spacing is |
| 1284 |
disabled selectively with |
| 1285 |
<br/> |
| 1286 |
<span class="pre-in-pp"> |
| 1287 |
.HEADING_STYLE <n> NO_SHIM | NO_FLEX |
| 1288 |
</span> |
| 1289 |
it can be re-enabled for the heading level with |
| 1290 |
<br/> |
| 1291 |
<span class="pre-in-pp"> |
| 1292 |
.HEADING_STYLE <n> SHIM | FLEX |
| 1293 |
</span> |
| 1294 |
</p> |
| 1295 |
</div> |
| 1296 |
|
| 1297 |
<div class="box-tip" style="margin-top: 2em"> |
| 1298 |
<h3 id="multi-line-heading" class="docs" |
| 1299 |
style="padding-top: 9px; font-size: 100%; text-transform: none"> |
| 1300 |
Multi-line headings</h3> |
| 1301 |
|
| 1302 |
<p> |
| 1303 |
Multi-line headings grow upwards, encroaching on the space above |
| 1304 |
them. The reason is that multi-line headings with |
| 1305 |
<kbd>LEAD</kbd> given to <kbd>HEADING_STYLE</kbd> deviate from the |
| 1306 |
<a href="definitions.html#baseline-grid">baseline grid</a>. |
| 1307 |
If headings were set downwards, the compensation mom would have to |
| 1308 |
apply afterwards (shimming; see |
| 1309 |
<a href="docprocessing.html#vertical-whitespace-management">vertical whitespace management</a>) |
| 1310 |
would introduce a gaping hole after the heading. Since mom always |
| 1311 |
deposits a blank line before a heading, it makes more sense |
| 1312 |
typographically to steal from the space above rather than to add |
| 1313 |
space below. If the space stolen is too much, precede the heading |
| 1314 |
with <kbd>SP</kbd> (mom) or <kbd>sp</kbd> (groff) to introduce an |
| 1315 |
additional linespace beforehand. |
| 1316 |
</p> |
| 1317 |
|
| 1318 |
<p style="margin-top: -.5em"> |
| 1319 |
Multi-line headings at the top of a page sometimes have too much |
| 1320 |
whitespace afterwards, a by-product of shimming, which mom always |
| 1321 |
applies after multi-line headings that have a <kbd>LEAD</kbd> |
| 1322 |
argument in their heading style. If there are other shimmed elements |
| 1323 |
on the page, (see |
| 1324 |
<a href="docprocessing.html#">SHIM</a>), |
| 1325 |
you may remove the excess space after the heading with a negative |
| 1326 |
spacing command, e.g. <kbd><span class="nobr">.SP -.5</span></kbd> |
| 1327 |
or <kbd><span class="nobr">.sp -.5</span></kbd>. If there are no |
| 1328 |
other shimmed elements, use the <kbd>BASELINE_ADJUST</kbd> argument |
| 1329 |
to <kbd>HEADING_STYLE</kbd>, passing it a negative value to lower |
| 1330 |
the heading. |
| 1331 |
</p> |
| 1332 |
|
| 1333 |
<p style="margin-top: -.5em"> |
| 1334 |
Boxed headings with <kbd>LEAD</kbd> given to their heading style |
| 1335 |
will not be centred vertically within the box. Raise or lower the |
| 1336 |
heading into a blanaced position with <kbd>BASELINE_ADJUST</kbd>. |
| 1337 |
</p> |
| 1338 |
|
| 1339 |
<p class="tip-bottom" style="margin-top: -.5em"> |
| 1340 |
If flex is enabled and it introduces unwanted space on a page, |
| 1341 |
which it certainly will if a heading near the bottom of a page |
| 1342 |
gets deferred to the next, pass <kbd>HEADING_STYLE</kbd> the |
| 1343 |
<kbd>NO_FLEX</kbd> option, either globally for the heading level, or |
| 1344 |
on a one-off basis, restoring flexing afterwards. |
| 1345 |
</div> |
| 1346 |
|
| 1347 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 1348 |
<h3 id="heading-control" class="defaults" style="margin-left: 6px; margin-bottom: -1em">HEADING control and defaults</h3> |
| 1349 |
|
| 1350 |
<div style="padding-left: 15px; padding-right: 15px"> |
| 1351 |
<p style="margin-bottom: 1em"> |
| 1352 |
By default, mom pre-initializes nine levels of headings to use |
| 1353 |
the bold font of the prevailing document family, with a baseline |
| 1354 |
adjustment of 1/10 of the current |
| 1355 |
<a href="definitions.html#leading">leading</a>. |
| 1356 |
In addition, level-1 headings are 3 points larger than running text, |
| 1357 |
level-2 headings 2 points larger, and level 3-headings 1 point |
| 1358 |
larger. The remaining 6 levels are the same size as running text. |
| 1359 |
A single blank line precedes all levels of heading. |
| 1360 |
</p> |
| 1361 |
|
| 1362 |
<h4 id="heading-style" class="docs" style="margin-bottom: -.5em">The HEADING_STYLE macro</h4> |
| 1363 |
|
| 1364 |
<p> |
| 1365 |
Styling heads is accomplished with a single macro |
| 1366 |
<br/> |
| 1367 |
<span class="pre-in-pp"> |
| 1368 |
.HEADING_STYLE <level> |
| 1369 |
</span> |
| 1370 |
where <kbd><level></kbd> is the numeric heading level to which |
| 1371 |
the style applies. |
| 1372 |
</p> |
| 1373 |
|
| 1374 |
<p> |
| 1375 |
HEADING_STYLE takes any or all of the following arguments, |
| 1376 |
which may be given in any order: |
| 1377 |
<br/> |
| 1378 |
<span class="pre defaults"> |
| 1379 |
FAMILY <family> \ |
| 1380 |
FONT <font> \ |
| 1381 |
SIZE <+|-size> \ |
| 1382 |
LEAD <+|-points> \ |
| 1383 |
QUAD <direction> \ |
| 1384 |
COLOR <colour> \ |
| 1385 |
UNDERSCORE <weight> <gap> | NO_UNDERSCORE \ |
| 1386 |
UNDERSCORE2 <weight> <gap1> <gap2> | NO_UNDERSCORE2 \ |
| 1387 |
CAPS | NO_CAPS \ |
| 1388 |
SMALLCAPS | NO_SMALLCAPS \ |
| 1389 |
BASELINE_ADJUST <amount to raise or lower heading from the baseline> \ |
| 1390 |
NEEDS <lines of text required beneath the heading> \ |
| 1391 |
PREFIX_CHAPTER [<n>] \ |
| 1392 |
SPACE_AFTER | NO_SPACE_AFTER \ |
| 1393 |
NUMBER | NO_NUMBER \ |
| 1394 |
NO_SHIM | SHIM \ |
| 1395 |
NO_FLEX | FLEX |
| 1396 |
</span> |
| 1397 |
</p> |
| 1398 |
|
| 1399 |
<p> |
| 1400 |
You may enter your entire argument list on a single line, or, if it |
| 1401 |
is very long, break it into shorter lines with the |
| 1402 |
“line-continued” backslash (<kbd>\</kbd>), as shown |
| 1403 |
above. |
| 1404 |
</p> |
| 1405 |
|
| 1406 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1407 |
The arguments to <kbd>FAMILY</kbd>, <kbd>FONT</kbd>, |
| 1408 |
<kbd>SIZE</kbd>, <kbd>QUAD</kbd>, and |
| 1409 |
<kbd>COLOR</kbd> are the same as |
| 1410 |
those you’d give to the |
| 1411 |
<a href="#docelement-control">control macros</a> |
| 1412 |
ending in _FAMILY, _FONT, _SIZE, _QUAD, or _COLOR. See |
| 1413 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 1414 |
</p> |
| 1415 |
|
| 1416 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1417 |
<kbd>LEAD</kbd> allows you to adjust the |
| 1418 |
<a href="definitions.html#leading">leading</a> |
| 1419 |
of multi-line headings. Pass <kbd>LEAD</kbd> the number of points |
| 1420 |
by which you wish to increase or decrease the leading, preceded by a |
| 1421 |
plus (+) or minus (-) sign. Note that there is no need to append |
| 1422 |
the |
| 1423 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 1424 |
<kbd>p</kbd> to the argument. Please see |
| 1425 |
<a href="#multi-line-heading">Multi-line headings</a>. |
| 1426 |
</p> |
| 1427 |
|
| 1428 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1429 |
<kbd>UNDERSCORE</kbd> and <kbd>UNDERSCORE2</kbd> require that a |
| 1430 |
weight for the underscore be given, in points (decimal fractions |
| 1431 |
allowed), but without the unit of measure <kbd>p</kbd> appended. |
| 1432 |
They also require that the underscore’s distance from the |
| 1433 |
baseline be supplied; in the case of UNDERSCORE2, an additional gap |
| 1434 |
argument representing the distance between the two underscores must |
| 1435 |
be provided. |
| 1436 |
</p> |
| 1437 |
|
| 1438 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1439 |
The <kbd>CAPS</kbd> argument capitalizes the text of a heading |
| 1440 |
level in the body of a document but not in the Table of |
| 1441 |
Contents, where capitalization of entries is controlled by |
| 1442 |
<a href="tables-of-contents.html#toc-entry-style">TOC_ENTRY_STYLE <n></a>. |
| 1443 |
</p> |
| 1444 |
|
| 1445 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1446 |
<kbd>BASELINE_ADJUST</kbd> allows you to raise or lower a heading |
| 1447 |
slightly from the baseline on which it would otherwise sit. For |
| 1448 |
aesthetic reasons, it is often desirable to introduce a small |
| 1449 |
amount of space between a heading and the text following it. Since |
| 1450 |
headings are preceded by a blank line, it is preferable to move the |
| 1451 |
heading upward slightly rather than lowering the text following it. |
| 1452 |
Used for this purpose, no <kbd>+</kbd> sign is required. The |
| 1453 |
argument must have a |
| 1454 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 1455 |
appended to it, usually <kbd>p</kbd>. It is also possible to lower |
| 1456 |
the position of headings by prepending a <kbd>-</kbd> sign to the |
| 1457 |
argument. |
| 1458 |
</p> |
| 1459 |
|
| 1460 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1461 |
<kbd>NEEDS</kbd> lets you reserve the number of lines of text |
| 1462 |
required beneath a heading, including fractions thereof (e.g. |
| 1463 |
“1.5” for one line of text plus half a linespace). |
| 1464 |
If a heading falls near the bottom margin and there isn’t |
| 1465 |
sufficient room for both the heading and the reserved space, mom |
| 1466 |
will break to a new page for the heading. A |
| 1467 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 1468 |
should not be appended to the argument. |
| 1469 |
<span class="note"><i>Note:</i></span> If you have |
| 1470 |
<a href="goodies.html#dropcap">DROPCAP</a>s |
| 1471 |
after headings, you must increase the value of <kbd>NEEDS</kbd> |
| 1472 |
to match the number of dropcap lines. |
| 1473 |
</p> |
| 1474 |
|
| 1475 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1476 |
<kbd>PREFIX_CHAPTER</kbd> instructs mom to prefix the current |
| 1477 |
chapter number to numbered headings. If mom is unable to determine |
| 1478 |
a chapter number, she will ask for one. |
| 1479 |
If you want to disable the prefixing of chapter numbers to headings, |
| 1480 |
you must use |
| 1481 |
<a href="#prefix-chapter-number">PREFIX_CHAPTER_NUMBER</a>. |
| 1482 |
Note that using <kbd>PREFIX_CHAPTER</kbd> with an explicit chapter |
| 1483 |
number will also set the chapter number for subsequent |
| 1484 |
<a href="images.html#autolabel">automatically-generated image and pre-processor labels</a>. |
| 1485 |
</p> |
| 1486 |
|
| 1487 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1488 |
<kbd>SPACE_AFTER</kbd> inserts a blank line equal to the current |
| 1489 |
<a href="definitions.html#leading">leading</a> after a HEADING. |
| 1490 |
If you’d like a full linespace after a heading level, use |
| 1491 |
<kbd>SPACE_AFTER</kbd>. If you’d like additional space before |
| 1492 |
a heading level, you must introduce it yourself with |
| 1493 |
<a href="typesetting.html#space">SPACE</a> |
| 1494 |
or |
| 1495 |
<a href="typesetting.html#ald">ALD</a>. |
| 1496 |
</p> |
| 1497 |
|
| 1498 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1499 |
<kbd>NUMBER</kbd> and <kbd>NO_NUMBER</kbd> allow you to determine |
| 1500 |
whether mom prepends a hierarchic numbering scheme to a heading |
| 1501 |
level in the body of a document. Numbering of Table of Contents |
| 1502 |
entries is controlled separately with |
| 1503 |
<a href="tables-of-contents.html#toc-entry-numbers">TOC_ENTRY_NUMBERS</a>. |
| 1504 |
Mom also has a special macro to toggle whether to prefix a chapter |
| 1505 |
number to numbered headings and Table of Contents entries, |
| 1506 |
<a href="#prefix-chapter-number">PREFIX_CHAPTER_NUMBER</a>. |
| 1507 |
</p> |
| 1508 |
|
| 1509 |
<p class="defaults" style="margin-bottom: 1em"> |
| 1510 |
<kbd>SHIM</kbd> is not necessary if shimming is enabled |
| 1511 |
globally, which it is by default; it exists to re-enable |
| 1512 |
shimming for the heading level if you have previously passed |
| 1513 |
HEADING_STYLE <kbd><n></kbd> a <kbd>NO_SHIM</kbd> |
| 1514 |
argument. The <kbd>FLEX</kbd> and <kbd>NO_FLEX</kbd> arguments work |
| 1515 |
the same way if flex-spacing is enabled. |
| 1516 |
</p> |
| 1517 |
|
| 1518 |
<p class="defaults" style="padding-bottom: .5em"> |
| 1519 |
The argument list is long, so you may want to break it into |
| 1520 |
several lines by using the backslash character (<kbd>\</kbd>). |
| 1521 |
Here’s an example of how you might style a level 1 heading: |
| 1522 |
<br/> |
| 1523 |
<span class="pre defaults"> |
| 1524 |
.HEADING_STYLE 1 \ |
| 1525 |
FONT B \ |
| 1526 |
QUAD C \ |
| 1527 |
UNDERSCORE .5 2p \ |
| 1528 |
BASELINE_ADJUST 3p \ |
| 1529 |
NUMBER |
| 1530 |
</span> |
| 1531 |
This creates a level-1 heading style that’s bold, centred, |
| 1532 |
underscored and numbered, raised by 3 points from the baseline. |
| 1533 |
</p> |
| 1534 |
</div> |
| 1535 |
</div> |
| 1536 |
|
| 1537 |
<!-- -PREFIX_CHAPTER_NUMBER- --> |
| 1538 |
|
| 1539 |
<div id="prefix-chapter-number" class="macro-id-overline" style="margin-top: -1em;"> |
| 1540 |
<h3 class="macro-id" style="text-transform: none; font-size: 105%;">Prefixing chapter numbers</h3> |
| 1541 |
</div> |
| 1542 |
|
| 1543 |
<div class="box-macro-args"> |
| 1544 |
Macro: <b>PREFIX_CHAPTER_NUMBER</b> <kbd class="macro-args"><none> | <chapter number as digit> | <anything></kbd> |
| 1545 |
</div> |
| 1546 |
|
| 1547 |
<p> |
| 1548 |
If, in addition to numbering heads, you want mom to prepend the |
| 1549 |
chapter number, invoke <kbd>.PREFIX_CHAPTER_NUMBER</kbd>. |
| 1550 |
</p> |
| 1551 |
|
| 1552 |
<p> |
| 1553 |
When you invoke <kbd>.PREFIX_CHAPTER_NUMBER</kbd> without an |
| 1554 |
argument, mom checks to see whether the argument you passed to <a |
| 1555 |
href="docprocessing.html#chapter">CHAPTER</a> (if it’s been |
| 1556 |
called) is a digit. If it isn’t (say you’ve numbered your |
| 1557 |
chapter “One” instead of “1”), mom will |
| 1558 |
abort with a request that you pass PREFIX_CHAPTER_NUMBER a digit |
| 1559 |
representing the chapter number. |
| 1560 |
</p> |
| 1561 |
|
| 1562 |
<p> |
| 1563 |
After you invoke <kbd>.PREFIX_CHAPTER_NUMBER</kbd>, mom will prepend |
| 1564 |
the chapter number to all headings you have requested be numbered |
| 1565 |
with |
| 1566 |
<a href="#heading-style"><kbd>.HEADING_STYLE <n> NUMBER</kbd></a>. |
| 1567 |
Thus, assuming chapter number twelve (12): |
| 1568 |
<br/> |
| 1569 |
<span class="pre-in-pp"> |
| 1570 |
1. LEVEL 1 HEADING |
| 1571 |
1.1. Level 2 heading |
| 1572 |
</span> |
| 1573 |
would become |
| 1574 |
<br/> |
| 1575 |
<span class="pre-in-pp"> |
| 1576 |
12.1. LEVEL 1 HEADING |
| 1577 |
12.1.1. Level 2 heading |
| 1578 |
</span> |
| 1579 |
</p> |
| 1580 |
|
| 1581 |
<div class="box-tip"> |
| 1582 |
<p class="tip"> |
| 1583 |
<span class="note">Note:</span> |
| 1584 |
If a chapter number is given to PREFIX_CHAPTER_NUMBER, automatically |
| 1585 |
generated labels with a prepended chapter number are also affected. |
| 1586 |
</p> |
| 1587 |
</div> |
| 1588 |
|
| 1589 |
<p> |
| 1590 |
In collated documents, mom automatically increments the digit used |
| 1591 |
by PREFIX_CHAPTER_NUMBER by one (current chapter digit + 1) every |
| 1592 |
time you invoke |
| 1593 |
<a href="rectoverso.html#collate"><kbd>.COLLATE</kbd></a>, |
| 1594 |
even if you’ve (temporarily) turned off the prefixing |
| 1595 |
of chapter numbers. Thus, even if you number your chapters |
| 1596 |
“One”, “Two”, “Three” instead of |
| 1597 |
“1”, “2”, “3”, mom will Do The |
| 1598 |
Right Thing with respect to numbering head (and label) elements |
| 1599 |
in all collated chapters following the first invocation of |
| 1600 |
PREFIX_CHAPTER_NUMBER (assuming, of course, that the collated |
| 1601 |
chapters are in incrementing order; if not, you must put |
| 1602 |
<br/> |
| 1603 |
<span class="pre-in-pp"> |
| 1604 |
.PREFIX_CHAPTER_NUMBER <chapter number> |
| 1605 |
</span> |
| 1606 |
somewhere after the invocation of COLLATE and before the first |
| 1607 |
numbered head element of each collated document). |
| 1608 |
</p> |
| 1609 |
|
| 1610 |
<p> |
| 1611 |
PREFIX_CHAPTER_NUMBER can be disabled by passing it any argument |
| 1612 |
other than a digit (e.g. (<kbd>OFF</kbd>, <kbd>QUIT</kbd>, <kbd>Q</kbd>, |
| 1613 |
<kbd>X</kbd>...), although, as noted above, mom will keep, |
| 1614 |
and—in the case of collated documents—increment the |
| 1615 |
chapter number, allowing you to turn prefixing of chapter numbers to |
| 1616 |
numbered head elements off and on according to your needs or whims. |
| 1617 |
</p> |
| 1618 |
|
| 1619 |
<div class="box-tip"> |
| 1620 |
<p class="tip"> |
| 1621 |
<span class="note">Note:</span> |
| 1622 |
Because PREFIX_CHAPTER_NUMBER takes an (optional) digit representing |
| 1623 |
the chapter number, it’s use need not be restricted to |
| 1624 |
<a href="docprocessing.html#doctype">DOCTYPE <kbd>CHAPTER</kbd></a>. |
| 1625 |
You can use it with any document type. Furthermore, even if |
| 1626 |
your doctype isn’t <kbd>CHAPTER</kbd>, you can identify |
| 1627 |
the document as a chapter for the purposes of numbering head |
| 1628 |
elements by invoking the macro |
| 1629 |
<a href="docprocessing.html#chapter"><kbd>.CHAPTER</kbd></a> |
| 1630 |
with a |
| 1631 |
<a href="definitions.html#numericargument">numeric argument</a> |
| 1632 |
in your document setup. |
| 1633 |
</p> |
| 1634 |
</div> |
| 1635 |
<div class="rule-short"><hr/></div> |
| 1636 |
|
| 1637 |
<!-- ==================================================================== --> |
| 1638 |
|
| 1639 |
<h2 id="oldstyle-headings-intro" class="macro-group">Oldstyle headings</h2> |
| 1640 |
|
| 1641 |
<ul style="margin-left: -.5em;"> |
| 1642 |
<li><a href="#oldstyle-headings">Macro: OLDSTYLE_HEADINGS</a></li> |
| 1643 |
<li><a href="#head">Macro: HEAD</a></li> |
| 1644 |
<li><a href="#subhead">Macro: SUBHEAD</a></li> |
| 1645 |
<li><a href="#subsubhead">Macro: SUBSUBHEAD</a></li> |
| 1646 |
</ul> |
| 1647 |
|
| 1648 |
<p> |
| 1649 |
In versions of mom prior to 2.0, headings were entered by their |
| 1650 |
commonly used names, <i>viz.</i> HEAD, SUBHEAD, and SUBSUBHEAD. The |
| 1651 |
new |
| 1652 |
<a href="#heading-intro">HEADING</a> |
| 1653 |
scheme allows for greater flexibility, and permits seamless |
| 1654 |
integration with PDF output. |
| 1655 |
</p> |
| 1656 |
|
| 1657 |
<p> |
| 1658 |
Documents created with pre-2.0 versions may still use the oldstyle |
| 1659 |
heading names, as may new documents, however there are some |
| 1660 |
differences in their behaviour. |
| 1661 |
</p> |
| 1662 |
|
| 1663 |
<p> |
| 1664 |
Whenever mom encounters an oldstyle heading, she loads the default |
| 1665 |
style formerly associated with the oldstyle name. See below for a |
| 1666 |
description of the default styles in the sections |
| 1667 |
<a href="#head">HEAD</a> (now HEADING 1), |
| 1668 |
<a href="#subhead">SUBHEAD</a> (now HEADING 2), |
| 1669 |
and |
| 1670 |
<a href="#subsubhead">SUBSUBHEAD</a> (now HEADING 3). |
| 1671 |
Mom also emits a message to stderr alerting you to what she’s |
| 1672 |
doing. |
| 1673 |
</p> |
| 1674 |
|
| 1675 |
<p> |
| 1676 |
The control macros formerly associated with oldstyle headings are no |
| 1677 |
longer present in mom’s macro file, which means that if you |
| 1678 |
made changes to mom’s default for those headings, you must |
| 1679 |
recreate the changes with the |
| 1680 |
<a href="#heading-style">HEADING_STYLE</a> |
| 1681 |
macro. The entire style need not be recreated, only those |
| 1682 |
parameters that differed from mom’s defaults. Thus, if your |
| 1683 |
HEADs were set flush left, instead of the oldstyle default, centred, |
| 1684 |
but otherwise kept mom’s settings, you need only do |
| 1685 |
<br/> |
| 1686 |
<span class="pre-in-pp"> |
| 1687 |
.HEADING_STYLE 1 QUAD L |
| 1688 |
</span> |
| 1689 |
</p> |
| 1690 |
|
| 1691 |
<div id="parahead" class="box-important"> |
| 1692 |
<p class="tip-top"> |
| 1693 |
<span class="important">Important:</span> |
| 1694 |
The macro PARAHEAD is no longer available. You must create paragraph |
| 1695 |
heads using the |
| 1696 |
<a href="#heading">HEADING</a> |
| 1697 |
macro. Mom will abort with an informational message whenever she |
| 1698 |
encounters PARAHEAD. Assuming a heading level of 3 for your |
| 1699 |
paraheads, the former defaults for PARAHEAD can be set up like this: |
| 1700 |
<br/> |
| 1701 |
<span class="pre-in-pp"> |
| 1702 |
.HEADING STYLE 3 FONT BI SIZE -.25 \" For PRINTSTYLE TYPESET |
| 1703 |
.HEADING STYLE 3 FONT I SIZE +0 \" For PRINTSTYLE TYPEWRITE |
| 1704 |
</span> |
| 1705 |
Equally, the macro NUMBER_PARAHEADS is no longer available. You |
| 1706 |
must enable numbering of the correct level for paraheads with |
| 1707 |
HEADING_STYLE. Again assuming a heading level of 3 for paraheads, |
| 1708 |
it’s simply done: |
| 1709 |
<br/> |
| 1710 |
<span class="pre-in-pp"> |
| 1711 |
.HEADING_STYLE 3 NUMBER |
| 1712 |
</span> |
| 1713 |
</p> |
| 1714 |
|
| 1715 |
<h3 id="parahead-usage" class="docs" style="text-transform: none; margin-top: -1em">Correct usage of paraheads</h3> |
| 1716 |
|
| 1717 |
<p style="margin-top: .5em"> |
| 1718 |
It is tempting to choose an arbitrary heading level for paraheads, |
| 1719 |
since they are sometimes needed out-of-sequence; for example, |
| 1720 |
immediately after a main head (level-1) in a document that |
| 1721 |
subsequently requires subheads (level-2). In such a circumstance, |
| 1722 |
choosing level-3 for all your paraheads might seem to make sense, |
| 1723 |
but in fact doesn’t, since it disrupts the hierarchy of |
| 1724 |
both the Table of Contents (if your document has one) and the PDF |
| 1725 |
outline. |
| 1726 |
</p> |
| 1727 |
|
| 1728 |
<p> |
| 1729 |
Correct use of the <kbd>PARAHEAD</kbd> option to HEADING under such |
| 1730 |
circumstances requires always assigning <kbd>PARAHEAD</kbd> to |
| 1731 |
the next logical level in the heading hierarchy. For example, if |
| 1732 |
there are no headings before the parahead, it should be assigned to |
| 1733 |
level-1. If subsequently there is a main head to be followed by |
| 1734 |
more paraheads, the main head should be level-1, and the paraheads |
| 1735 |
level-2. This will almost certainly require assigning new style |
| 1736 |
parameters to level-1 (with |
| 1737 |
<a href="#heading-style">HEADING_STYLE</a>) |
| 1738 |
and to the level now being used for paraheads. The following |
| 1739 |
example demonstrates. |
| 1740 |
<br/> |
| 1741 |
<span class="pre-in-pp"> |
| 1742 |
.HEADING_STYLE 1 FONT BI SIZE +.25 \" parahead style, level-1 |
| 1743 |
.PP |
| 1744 |
.HEADING 1 PARAHEAD <parahead> |
| 1745 |
<paragraph text> |
| 1746 |
.PP |
| 1747 |
.HEADING 1 PARAHEAD <parahead> |
| 1748 |
<paragraph text> |
| 1749 |
\# main head style, level-1 |
| 1750 |
.HEADING_STYLE 1 FONT B SIZE +3 QUAD CENTER UNDERSCORE .5 2p |
| 1751 |
.HEADING_STYLE 2 FONT BI SIZE +.25 \" parahead style, level-2 |
| 1752 |
.HEADING 1 <main head> |
| 1753 |
.PP |
| 1754 |
<paragraph text> |
| 1755 |
.PP |
| 1756 |
.HEADING 2 PARAHEAD <parahead> |
| 1757 |
<paragraph text> |
| 1758 |
</span> |
| 1759 |
</p> |
| 1760 |
</div> |
| 1761 |
|
| 1762 |
<!-- -OLDSTYLE_HEADINGS - --> |
| 1763 |
|
| 1764 |
<div class="macro-id-overline"> |
| 1765 |
<h3 id="oldstyle-headings" class="macro-id">OLDSTYLE HEADINGS</h3> |
| 1766 |
</div> |
| 1767 |
|
| 1768 |
<div class="box-macro-args"> |
| 1769 |
Macro: <b>OLDSTYLE_HEADINGS</b> |
| 1770 |
</div> |
| 1771 |
|
| 1772 |
<p> |
| 1773 |
OLDSTYLE_HEADINGS requires no argument. It instructs mom to set the |
| 1774 |
first three levels of heading to the parameters of her old defaults |
| 1775 |
for HEAD, SUBHEAD, and SUBSUBHEAD. Use of OLDSTYLE_HEADINGS will |
| 1776 |
also prevent mom from generating the message she issues the first |
| 1777 |
time she encounters HEAD, SUBHEAD, and SUBSUBHEAD. |
| 1778 |
</p> |
| 1779 |
|
| 1780 |
<!-- -HEAD- --> |
| 1781 |
|
| 1782 |
<div id="head" class="box-macro-args"> |
| 1783 |
Macro: <b>HEAD</b> <kbd class="macro-args">[ NAMED <id> ] "<text of head>" "<another line>"...</kbd> |
| 1784 |
</div> |
| 1785 |
|
| 1786 |
<p> |
| 1787 |
When invoked for the first time, with or without |
| 1788 |
<a href="oldstyle-headings">OLDSTYLE_HEADINGS</a>, |
| 1789 |
HEAD sets the parameters for level-1 headings to mom’s old |
| 1790 |
HEAD defaults, then prints the head as a level-1 heading. |
| 1791 |
The <kbd>NAMED <id></kbd> optional argument is explained in |
| 1792 |
the description of |
| 1793 |
<a href="#heading">HEADING</a>. |
| 1794 |
</p> |
| 1795 |
|
| 1796 |
<p> |
| 1797 |
If, prior to invoking HEAD, you have given any parameters to level-1 |
| 1798 |
heads with |
| 1799 |
<a href="#heading-style">HEADING STYLE</a>, |
| 1800 |
they will be preserved; any you give afterwards will be respected. |
| 1801 |
</p> |
| 1802 |
|
| 1803 |
<p> |
| 1804 |
The former style defaults for HEAD were: |
| 1805 |
<br/> |
| 1806 |
<span class="pre-in-pp"> |
| 1807 |
FAMILY = prevailing document family |
| 1808 |
FONT = bold (TYPESET); roman (TYPEWRITE) |
| 1809 |
SIZE = +1 (TYPESET); +0 (TYPEWRITE) |
| 1810 |
QUAD = C |
| 1811 |
UNDERSCORE .5 2p |
| 1812 |
CAPS |
| 1813 |
</span> |
| 1814 |
</p> |
| 1815 |
|
| 1816 |
<div class="box-tip"> |
| 1817 |
<p class="tip"> |
| 1818 |
<span class="note">Note:</span> |
| 1819 |
The macro NUMBER_HEADS from pre-2.0 versions of mom, can still be |
| 1820 |
used, though it is now a wrapper for |
| 1821 |
<br/> |
| 1822 |
<span class="pre-in-pp"> |
| 1823 |
.HEADING_STYLE 1 NUMBER |
| 1824 |
</span> |
| 1825 |
Mom will alert you to this on stderr. |
| 1826 |
</p> |
| 1827 |
</div> |
| 1828 |
|
| 1829 |
<!-- -SUBHEAD- --> |
| 1830 |
|
| 1831 |
<div id="subhead" class="box-macro-args"> |
| 1832 |
Macro: <b>SUBHEAD</b> <kbd class="macro-args">[ NAMED <id> ] "<text of head>" "<another line>"...</kbd> |
| 1833 |
</div> |
| 1834 |
|
| 1835 |
<p> |
| 1836 |
When invoked for the first time, with or without |
| 1837 |
<a href="oldstyle-headings">OLDSTYLE_HEADINGS</a>, |
| 1838 |
SUBHEAD sets the parameters for level-2 headings to mom’s old |
| 1839 |
SUBHEAD defaults, then prints the subhead as a level-2 heading. |
| 1840 |
The <kbd>NAMED <id></kbd> optional argument is explained in |
| 1841 |
the description of |
| 1842 |
<a href="#heading">HEADING</a>. |
| 1843 |
</p> |
| 1844 |
|
| 1845 |
<p> |
| 1846 |
The former style defaults for SUBHEAD were: |
| 1847 |
<br/> |
| 1848 |
<span class="pre-in-pp"> |
| 1849 |
FAMILY = prevailing document family |
| 1850 |
FONT = bold (TYPESET); italic, i.e. underlined (TYPEWRITE) |
| 1851 |
SIZE = +.5 (TYPESET); +0 (TYPEWRITE) |
| 1852 |
QUAD = L |
| 1853 |
BASELINE_ADJUST = 1/8 the current leading |
| 1854 |
</span> |
| 1855 |
</p> |
| 1856 |
|
| 1857 |
<div class="box-tip"> |
| 1858 |
<p class="tip"> |
| 1859 |
<span class="note">Note:</span> |
| 1860 |
The macro NUMBER_SUBHEADS from pre-2.0 versions of mom, can still be |
| 1861 |
used, though it is now a wrapper for |
| 1862 |
<br/> |
| 1863 |
<span class="pre-in-pp"> |
| 1864 |
.HEADING_STYLE 2 NUMBER |
| 1865 |
</span> |
| 1866 |
Mom will alert you to this on stderr. |
| 1867 |
</p> |
| 1868 |
</div> |
| 1869 |
|
| 1870 |
<!-- -SUBSUBHEAD- --> |
| 1871 |
|
| 1872 |
<div id="subsubhead" class="box-macro-args"> |
| 1873 |
Macro: <b>SUBSUBHEAD</b> <kbd class="macro-args">[ NAMED <id> ] "<text of head>" "<another line>"...</kbd> |
| 1874 |
|
| 1875 |
</div> |
| 1876 |
|
| 1877 |
<p> |
| 1878 |
When invoked for the first time, with or without |
| 1879 |
<a href="oldstyle-headings">OLDSTYLE_HEADINGS</a>, |
| 1880 |
SUBSUBHEAD sets the parameters for level-3 headings to mom’s old |
| 1881 |
SUBSUBHEAD defaults, then prints the subsubhead as a level-3 heading. |
| 1882 |
The <kbd>NAMED <id></kbd> optional argument is explained in |
| 1883 |
the description of |
| 1884 |
<a href="#heading">HEADING</a>. |
| 1885 |
</p> |
| 1886 |
|
| 1887 |
<p> |
| 1888 |
The former style defaults for SUBSUBHEAD were: |
| 1889 |
<br/> |
| 1890 |
<span class="pre-in-pp"> |
| 1891 |
FAMILY = prevailing document family |
| 1892 |
FONT = italic (TYPESET); roman (TYPEWRITE) |
| 1893 |
SIZE = +.5 (TYPESET); +0 (TYPEWRITE) |
| 1894 |
QUAD = L |
| 1895 |
BASELINE_ADJUST = 1/8 the current leading |
| 1896 |
</span> |
| 1897 |
</p> |
| 1898 |
|
| 1899 |
<div class="box-tip"> |
| 1900 |
<p class="tip"> |
| 1901 |
<span class="note">Note:</span> |
| 1902 |
The macro NUMBER_SUBSUBHEADS from pre-2.0 versions of mom, can still be |
| 1903 |
used, though it is now a wrapper for |
| 1904 |
<br/> |
| 1905 |
<span class="pre-in-pp"> |
| 1906 |
.HEADING_STYLE 3 NUMBER |
| 1907 |
</span> |
| 1908 |
Mom will alert you to this on stderr. |
| 1909 |
</p> |
| 1910 |
</div> |
| 1911 |
|
| 1912 |
<div class="rule-short"><hr/></div> |
| 1913 |
|
| 1914 |
<!-- ==================================================================== --> |
| 1915 |
|
| 1916 |
<h2 id="linebreak-intro" class="macro-group">Linebreaks (section breaks)</h2> |
| 1917 |
|
| 1918 |
<ul style="margin-left: -.5em;"> |
| 1919 |
<li><a href="#linebreak">Tag: LINEBREAK</a></li> |
| 1920 |
<li><a href="#linebreak-control">Linebreak control macros and defaults</a></li> |
| 1921 |
</ul> |
| 1922 |
|
| 1923 |
<p> |
| 1924 |
Linebreaks (“author linebreaks”, “section |
| 1925 |
breaks”) are gaps in the vertical flow of running text that |
| 1926 |
indicate a shift in content (e.g. a scene change in story). They |
| 1927 |
are frequently set off by typographic symbols, sometimes whimsical |
| 1928 |
in nature. |
| 1929 |
</p> |
| 1930 |
|
| 1931 |
<!-- -LINEBREAK- --> |
| 1932 |
|
| 1933 |
<div class="macro-id-overline"> |
| 1934 |
<h3 id="linebreak" class="macro-id">LINEBREAK</h3> |
| 1935 |
</div> |
| 1936 |
|
| 1937 |
<div class="box-macro-args"> |
| 1938 |
Macro: <b>LINEBREAK</b> |
| 1939 |
</div> |
| 1940 |
<p class="alias" style="margin-bottom: 0;"> |
| 1941 |
<i>Alias:</i> <b>SECTION</b> |
| 1942 |
</p> |
| 1943 |
|
| 1944 |
<p> |
| 1945 |
LINEBREAK takes no arguments. Simply invoke it (on a line by |
| 1946 |
itself, of course) whenever you want to insert an author linebreak. |
| 1947 |
</p> |
| 1948 |
|
| 1949 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 1950 |
<h3 id="linebreak-control" class="docs defaults">LINEBREAK control macros and defaults</h3> |
| 1951 |
|
| 1952 |
<p class="defaults"> |
| 1953 |
By default, mom marks |
| 1954 |
<a href="definitions.html#linebreak">author linebreaks</a> |
| 1955 |
with three centred asterisks (stars) in the prevailing colour of the |
| 1956 |
document (by default, black). You can alter this with the control |
| 1957 |
macros |
| 1958 |
</p> |
| 1959 |
<ol style="margin-top: .5em; padding-bottom: .5em;"> |
| 1960 |
<li><a href="#linebreak-char">LINEBREAK_CHAR</a></li> |
| 1961 |
<li><a href="#linebreak-color">LINEBREAK_COLOR</a></li> |
| 1962 |
</ol> |
| 1963 |
</div> |
| 1964 |
|
| 1965 |
<h4 id="linebreak-char" class="docs" style="margin-top: -1.5em; margin-bottom: .5em;">1. Linebreak character</h4> |
| 1966 |
<div class="box-macro-args"> |
| 1967 |
Macro: <b>LINEBREAK_CHAR</b> <kbd class="macro-args">[ <character> ] [ <iterations> [ <vertical adjustment> ] ]</kbd> |
| 1968 |
</div> |
| 1969 |
|
| 1970 |
<p class="alias" style="margin-bottom: 0;"> |
| 1971 |
<i>Alias:</i> <b>SECTION_CHAR</b> |
| 1972 |
</p> |
| 1973 |
<p class="requires"> |
| 1974 |
• The third optional argument requires a |
| 1975 |
<a href="definitions.html#unitofmeasure">unit of measure</a>. |
| 1976 |
</p> |
| 1977 |
|
| 1978 |
<p> |
| 1979 |
LINEBREAK_CHAR determines what mom prints when LINEBREAK is invoked. |
| 1980 |
It takes 3 optional arguments: the character you want deposited at |
| 1981 |
the line break, the number of times you want the character repeated, |
| 1982 |
and a vertical adjustment factor. |
| 1983 |
</p> |
| 1984 |
|
| 1985 |
<p> |
| 1986 |
The first argument is any valid groff character (e.g. <kbd>*</kbd> |
| 1987 |
[an asterisk], <kbd>\[dg]</kbd> [a dagger], <kbd>\f[ZD]\N'141'\fP</kbd> |
| 1988 |
[an arbitrary character from Zapf Dingbats], <kbd>\l'4P'</kbd> [a |
| 1989 |
4-pica long rule]). Mom sets the character centred on the current |
| 1990 |
line length. (See <kbd>man groff_char</kbd> for a list of all |
| 1991 |
valid groff characters.) |
| 1992 |
</p> |
| 1993 |
|
| 1994 |
<p> |
| 1995 |
The second argument is the number of times to repeat the character. |
| 1996 |
</p> |
| 1997 |
|
| 1998 |
<p> |
| 1999 |
The third argument is a +|-value by which to raise (-) or lower (+) |
| 2000 |
the character in order to make it appear visually centred between |
| 2001 |
sections of text. This lets you make vertical adjustments to |
| 2002 |
characters that don’t sit on the |
| 2003 |
<a href="definitions.html#baseline">baseline</a> |
| 2004 |
(such as asterisks). The argument must be preceded by a plus or |
| 2005 |
minus sign, and must include a unit of measure. |
| 2006 |
</p> |
| 2007 |
|
| 2008 |
<p> |
| 2009 |
If you enter LINEBREAK_CHAR with no arguments, sections of |
| 2010 |
text will be separated by two blank lines when you invoke |
| 2011 |
<kbd>.LINEBREAK</kbd>. |
| 2012 |
</p> |
| 2013 |
|
| 2014 |
<p> |
| 2015 |
Mom’s default for LINEBREAK_CHAR is |
| 2016 |
<br/> |
| 2017 |
<span class="pre-in-pp"> |
| 2018 |
.LINEBREAK_CHAR * 3 -3p |
| 2019 |
</span> |
| 2020 |
i.e. three asterisks, raised 3 points from their normal vertical |
| 2021 |
position (for |
| 2022 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>; |
| 2023 |
the vertical adjustment is -2 points for |
| 2024 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>). |
| 2025 |
</p> |
| 2026 |
|
| 2027 |
<h4 id="linebreak-color" class="docs" style="margin-top: -.25em; margin-bottom: .5em;">2. Linebreak colour</h4> |
| 2028 |
|
| 2029 |
<div class="box-macro-args"> |
| 2030 |
Macro: <b>LINEBREAK_COLOR</b> <kbd class="macro-args"><colourname></kbd> |
| 2031 |
</div> |
| 2032 |
<p class="alias" style="margin-bottom: 0;"> |
| 2033 |
<i>Alias:</i> <b>SECTION_COLOR</b> |
| 2034 |
</p> |
| 2035 |
|
| 2036 |
<p> |
| 2037 |
To change the colour of the linebreak character(s), simply invoke |
| 2038 |
<kbd>.LINEBREAK_COLOR</kbd> with the name of a colour pre-defined |
| 2039 |
(or “initialized”) with |
| 2040 |
<a href="color.html#newcolor">NEWCOLOR</a> |
| 2041 |
or |
| 2042 |
<a href="color.html#xcolor">XCOLOR</a>. |
| 2043 |
|
| 2044 |
</p> |
| 2045 |
|
| 2046 |
<div class="rule-short"><hr/></div> |
| 2047 |
|
| 2048 |
<!-- ==================================================================== --> |
| 2049 |
|
| 2050 |
<h2 id="quote-intro" class="macro-group">Quotes (line for line, poetry or code)</h2> |
| 2051 |
|
| 2052 |
<ul style="margin-left: -.5em;"> |
| 2053 |
<li><a href="#quote-description">Introduction</a> |
| 2054 |
<ul style="margin-left: -1.25em"> |
| 2055 |
<li><a href="#quote-spacing">Quote spacing</a> |
| 2056 |
<ul style="margin-left: -1.25em"> |
| 2057 |
<li><a href="#quote-spacing-notes">Notes on quote spacing</a></li> |
| 2058 |
</ul></li> |
| 2059 |
<li><a href="#no-shim">Disable shimming of quotes and blockquotes</a></li> |
| 2060 |
<li><a href="#float-quote">Keeping quotes and blockquotes together as a block</a></li> |
| 2061 |
<li><a href="#label-caption">Labelling/captioning quotes and blockquotes</a></li> |
| 2062 |
</ul></li> |
| 2063 |
<li><a href="#quote">Tag: QUOTE</a></li> |
| 2064 |
<li><a href="#quote-control">Quote control macros and defaults</a></li> |
| 2065 |
</ul> |
| 2066 |
|
| 2067 |
<p id="quote-decription"> |
| 2068 |
<a href="definitions.html#quote">Quotes</a> |
| 2069 |
are always set in |
| 2070 |
<a href="definitions.html#filled">nofill mode</a>, |
| 2071 |
flush left. This permits entering quotes on a line for line basis |
| 2072 |
in your text editor and have them come out the same way on output |
| 2073 |
copy. (See |
| 2074 |
<a href="#blockquote-intro">Blockquotes</a> |
| 2075 |
for how quotes, in the present sense, differ from longer passages of |
| 2076 |
cited text.) |
| 2077 |
</p> |
| 2078 |
|
| 2079 |
<p> |
| 2080 |
Since mom originally came into being to serve the needs of creative |
| 2081 |
writers (i.e. novelists, short story writers, etc.—not |
| 2082 |
to cast aspersions on the creativity of mathematicians and |
| 2083 |
programmers), she sets quotes in italics |
| 2084 |
<a href="docprocessing.html#printstyle">(PRINTSTYLE <kbd>TYPESET</kbd>)</a> |
| 2085 |
or underlined |
| 2086 |
<a href="docprocessing.html#printstyle">(PRINTSTYLE <kbd>TYPEWRITE</kbd>)</a>, |
| 2087 |
indented from the left margin. Obviously, she’s thinking |
| 2088 |
“quotes from poetry or song lyrics”, but with the |
| 2089 |
<a href="#quote-control">QUOTE control macros</a> |
| 2090 |
you can change her defaults so QUOTE serves other needs, e.g. |
| 2091 |
entering verbatim snippets of programming code, command-line |
| 2092 |
instructions, and so on. (See the |
| 2093 |
<a href="#code">CODE</a> |
| 2094 |
for a convenience macro to assist in including code snippets in |
| 2095 |
documents.) |
| 2096 |
</p> |
| 2097 |
|
| 2098 |
<h3 id="quote-spacing" class="docs">QUOTE spacing</h3> |
| 2099 |
|
| 2100 |
<p> |
| 2101 |
Besides indenting quotes, mom further sets them off from |
| 2102 |
<a href="definitions.html#running">running text</a> |
| 2103 |
with a small amount of vertical whitespace top and bottom. In |
| 2104 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>, |
| 2105 |
this is always one full linespace. In |
| 2106 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>, |
| 2107 |
it’s 1/2 of the prevailing |
| 2108 |
<a href="definitions.html#leading">leading</a> |
| 2109 |
if the quote fits fully on the page (i.e. with running text above |
| 2110 |
and below it), otherwise it’s a full linespace either above |
| 2111 |
or below as is necessary to balance the page to the bottom margin. |
| 2112 |
This behaviour can be changed with the control macro |
| 2113 |
<a href="#always-fullspace-quotes">ALWAYS_FULLSPACE_QUOTES</a>. |
| 2114 |
</p> |
| 2115 |
|
| 2116 |
<div class="box-tip"> |
| 2117 |
<h3 id="quote-spacing-notes" class="docs" style="padding-top: 9px; font-size: 95%;">Notes on quote spacing</h3> |
| 2118 |
|
| 2119 |
<p style="margin-top: .5em"> |
| 2120 |
If your quote (or blockquote) leading differs from the document |
| 2121 |
leading, mom attempts to observe the same rules for vertical |
| 2122 |
whitespace outlined above; however, she will also insert a small, |
| 2123 |
flexible amount of extra whitespace |
| 2124 |
(<a href="docprocessing.html#shim-vs-flex">shim or flex-spacing</a>) |
| 2125 |
around the quotes to make sure the whitespace is equal, top and |
| 2126 |
bottom. When shimming is enabled, this may result in multiple |
| 2127 |
quotes or blockquotes on the same page being spaced slightly |
| 2128 |
differently. |
| 2129 |
</p> |
| 2130 |
|
| 2131 |
<h4 id="no-shim" class="docs">Disable shimming/flex-spacing of quotes and blockquotes</h4> |
| 2132 |
|
| 2133 |
<p class="tip-bottom"> |
| 2134 |
If you don’t want the behaviour |
| 2135 |
described above (i.e., you don’t want mom putting additional shim |
| 2136 |
or flex-spacing around quotes and |
| 2137 |
blockquotes), put <kbd>.NO_SHIM</kbd> or/and <kbd>.NO_FLEX</kbd> |
| 2138 |
in the style sheet section of your document (i.e. after PRINTSTYLE |
| 2139 |
but before START), which will disable shimming or/and flex-spacing |
| 2140 |
globally for all tags, or disable shimming/flex-spacing |
| 2141 |
on a per-instance basis prior to <kbd>.QUOTE</kbd> or |
| 2142 |
<kbd>.BLOCKQUOTE</kbd>, re-enabling it after the terminating |
| 2143 |
<kbd>.QUOTE OFF</kbd> or <kbd>.BLOCKQUOTE OFF</kbd> with |
| 2144 |
<kbd>.NO_SHIM OFF</kbd> or <kbd>.NO_FLEX OFF</kbd>. |
| 2145 |
</p> |
| 2146 |
|
| 2147 |
</div> |
| 2148 |
|
| 2149 |
<h3 id="float-quote" class="docs">Keeping QUOTEs and BLOCKQUOTEs together as a block</h3> |
| 2150 |
|
| 2151 |
<p> |
| 2152 |
The text of quotes and blockquotes is output immediately, and may therefore |
| 2153 |
start on one page and finish on the next. If you wish to keep the |
| 2154 |
text together as a block, deferred to the following page if the |
| 2155 |
block doesn’t all fit on one page, wrap |
| 2156 |
<kbd><span class="nobr">(BLOCK)QUOTE...(BLOCK)QUOTE OFF</span></kbd> |
| 2157 |
inside a |
| 2158 |
<a href="images.html#floats-intro">float</a>. |
| 2159 |
If you further wish to force a page break before the floated quote |
| 2160 |
or blockquote (leaving whitespace at the bottom of the page, pass |
| 2161 |
<a href="images.html#float">FLOAT</a> |
| 2162 |
the <kbd>FORCE</kbd> argument. |
| 2163 |
<span class="pre-in-pp"> |
| 2164 |
.FLOAT FORCE |
| 2165 |
.QUOTE |
| 2166 |
Fly me to the moon |
| 2167 |
And let me play among the stars |
| 2168 |
Let me see what life is like |
| 2169 |
On Jupiter and Mars |
| 2170 |
.QUOTE END |
| 2171 |
.FLOAT OFF |
| 2172 |
</span> |
| 2173 |
</p> |
| 2174 |
|
| 2175 |
<h3 id="label-caption" class="docs">Labelling/captioning quotes and blockquotes</h3> |
| 2176 |
|
| 2177 |
<p> |
| 2178 |
Quotes and blockquotes may be labelled and/or captioned identically to |
| 2179 |
<a href="images.html#floats-intro">floats</a> |
| 2180 |
with the macros |
| 2181 |
<a href="images.html#label">LABEL</a> |
| 2182 |
and |
| 2183 |
<a href="images.html#caption">CAPTION</a> |
| 2184 |
(see |
| 2185 |
<a href="images.html#float-label-caption">Labelling and captioning floats</a>). |
| 2186 |
</p> |
| 2187 |
|
| 2188 |
<!-- -QUOTE- --> |
| 2189 |
|
| 2190 |
<div class="macro-id-overline"> |
| 2191 |
<h3 id="quote" class="macro-id">QUOTE</h3> |
| 2192 |
</div> |
| 2193 |
|
| 2194 |
<div class="box-macro-args"> |
| 2195 |
Macro: <b>QUOTE</b> <kbd class="macro-args">[ ADJUST +|-<space> ] | <anything></kbd> |
| 2196 |
</div> |
| 2197 |
<p class="requires"> |
| 2198 |
• The argument to <kbd style="font-style: normal">ADJUST</kbd> requires a |
| 2199 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 2200 |
</p> |
| 2201 |
|
| 2202 |
<p> |
| 2203 |
QUOTE is a toggle macro. To begin a section of quoted text, invoke |
| 2204 |
it with no argument, then type in your quote. When you’re |
| 2205 |
finished, invoke <kbd>.QUOTE</kbd> with any argument (e.g. <kbd>OFF, |
| 2206 |
END, X, Q</kbd>...) to turn it off. Example: |
| 2207 |
<br/> |
| 2208 |
<span class="pre-in-pp"> |
| 2209 |
.QUOTE |
| 2210 |
Nymphomaniacal Jill |
| 2211 |
Used a dynamite stick for a thrill |
| 2212 |
They found her vagina |
| 2213 |
In North Carolina |
| 2214 |
And bits of her tits in Brazil. |
| 2215 |
.QUOTE END |
| 2216 |
</span> |
| 2217 |
Mom does her best to equalize whitespace around quotes and make |
| 2218 |
sure the line following it falls on a valid baseline. On occasion, |
| 2219 |
you may need to tweak the quote placement slightly, which is done |
| 2220 |
by passing <kbd>ADJUST</kbd> to QUOTE with a plus or minus value. |
| 2221 |
The quote will be lowered (<kbd>+</kbd>) or raised (<kbd>-</kbd>) |
| 2222 |
<i>within the space allotted for it</i> by the given amount. For |
| 2223 |
example, to lower a quote slightly within the space allotted for it, |
| 2224 |
you’d do |
| 2225 |
<br/> |
| 2226 |
<span class="pre-in-pp"> |
| 2227 |
.QUOTE ADJUST +3p |
| 2228 |
There was a soprano named Golda |
| 2229 |
Whose lovers grew colda and colda |
| 2230 |
For during love-making |
| 2231 |
She'd sing the earth-shaking |
| 2232 |
Love theme from Tristan und Isolde. |
| 2233 |
.QUOTE off |
| 2234 |
</span> |
| 2235 |
</p> |
| 2236 |
|
| 2237 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 2238 |
|
| 2239 |
<h3 id="quote-control" class="docs defaults">QUOTE control macros and defaults</h3> |
| 2240 |
|
| 2241 |
<ol style="margin-top: .5em; padding-bottom: .5em;"> |
| 2242 |
<li><a href="#quote-general">Family/font/size/leading/colour/indent</a></li> |
| 2243 |
<li><a href="#always-fullspace-quotes">Spacing above and below quotes (typeset only)</a></li> |
| 2244 |
<li><a href="#underline-quotes">Underlining quotes (typewrite only)</a></li> |
| 2245 |
</ol> |
| 2246 |
</div> |
| 2247 |
|
| 2248 |
<h4 id="quote-general" class="docs" style="margin-top: -1.5em; margin-bottom: .5em;">1. Family/font/size/colour/indent</h4> |
| 2249 |
|
| 2250 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 2251 |
<p class="defaults" style="padding-top: 6px;"> |
| 2252 |
See |
| 2253 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 2254 |
<br/> |
| 2255 |
The following QUOTE control macros may also be |
| 2256 |
<a href="#grouping">grouped</a> |
| 2257 |
using QUOTE_STYLE. If you do so, <kbd>QUOTE_LEFT</kbd>, <kbd>QUOTE_CENTER</kbd>, |
| 2258 |
and <kbd>QUOTE_RIGHT</kbd> must be entered as: |
| 2259 |
<br/> |
| 2260 |
<kbd> QUAD LEFT</kbd><br/> |
| 2261 |
<kbd> QUAD CENTER</kbd><br/> |
| 2262 |
<kbd> QUAD RIGHT</kbd> |
| 2263 |
</p> |
| 2264 |
|
| 2265 |
<span class="pre defaults"> |
| 2266 |
.QUOTE_FAMILY default = prevailing document family; default is Times Roman |
| 2267 |
.QUOTE_FONT default = italic; underlined in TYPEWRITE |
| 2268 |
.QUOTE_SIZE default = +0 (i.e. same size as paragraph text) |
| 2269 |
<a id="quote-autolead">.QUOTE_AUTOLEAD default = none; leading of quotes is the same as paragraphs </a> |
| 2270 |
.QUOTE_COLOR default = black |
| 2271 |
.QUOTE_INDENT (see below, "Quote indent") |
| 2272 |
.QUOTE_LEFT -+ Quad direction of quote. |
| 2273 |
.QUOTE_CENTER | LEFT observes QUOTE_INDENT; |
| 2274 |
.QUOTE_RIGHT -+ CENTER and RIGHT do not |
| 2275 |
</span> |
| 2276 |
</div> |
| 2277 |
|
| 2278 |
<h4 id="quote-indent" class="docs" style="margin-top: -1.5em;">Quote indent</h4> |
| 2279 |
|
| 2280 |
<p> |
| 2281 |
<kbd>QUOTE_INDENT</kbd> takes one of two kinds of argument: an integer |
| 2282 |
representing the amount by which to multiply the argument passed to |
| 2283 |
<a href="#para-indent"><kbd>.PARA_INDENT</kbd></a> |
| 2284 |
(by default, 2 |
| 2285 |
<a href="definitions.html#em">ems</a> |
| 2286 |
for TYPESET, 3 |
| 2287 |
<a href="definitions.html#picaspoints">picas</a> |
| 2288 |
for TYPEWRITE) to arrive at the quote indent, or a distance with a |
| 2289 |
<a href="definitions.html#unitofmesaure">unit of measure</a> |
| 2290 |
appended. |
| 2291 |
</p> |
| 2292 |
|
| 2293 |
<p> |
| 2294 |
Be careful when using QUOTE. If a quote is set flush left (the |
| 2295 |
default), the QUOTE_INDENT applies only to the left margin. Because |
| 2296 |
quote lines are output as-is (see |
| 2297 |
<a href="definitions.html#no-fill">no-fill mode</a>), |
| 2298 |
they do not respect line length and may extend beyond a document's |
| 2299 |
right margin. Similarly, if a quote is being set flush right, the |
| 2300 |
indent applies only to the right margin; long lines may extend into |
| 2301 |
the left margin. Centered quotes are never indented, so long lines |
| 2302 |
may extend beyond both the left and right margins. |
| 2303 |
</p> |
| 2304 |
|
| 2305 |
<p> |
| 2306 |
The default value for QUOTE_INDENT is 3 (for |
| 2307 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>) |
| 2308 |
and 1 (for |
| 2309 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>). |
| 2310 |
</p> |
| 2311 |
|
| 2312 |
<div class="box-tip"> |
| 2313 |
<p class="tip"> |
| 2314 |
<span class="note">Note:</span> |
| 2315 |
If your PARA_INDENT is 0 (i.e. no indenting of the first line of |
| 2316 |
paragraphs), you <i>must</i> set a QUOTE_INDENT yourself, with a |
| 2317 |
unit of measure appended to the argument. Mom has no default for |
| 2318 |
QUOTE_INDENT if paragraph first lines are not being indented. |
| 2319 |
</p> |
| 2320 |
</div> |
| 2321 |
|
| 2322 |
<h4 id="always-fullspace-quotes" class="docs" style="margin-top: -.25em;">2. Spacing above and below quotes (typeset only)</h4> |
| 2323 |
|
| 2324 |
<p> |
| 2325 |
If you’d like mom always to put a full linespace above and |
| 2326 |
below quotes, invoke |
| 2327 |
<br/> |
| 2328 |
<span class="pre-in-pp"> |
| 2329 |
.ALWAYS_FULLSPACE_QUOTES |
| 2330 |
</span> |
| 2331 |
with no argument. If you wish to restore mom’s |
| 2332 |
default behaviour regarding the spacing of quotes (see |
| 2333 |
<a href="#quote-spacing">Quote spacing</a>), |
| 2334 |
invoke the macro with any argument (<kbd>OFF</kbd>, <kbd>QUIT</kbd>, |
| 2335 |
<kbd>END</kbd>, <kbd>X</kbd>...) |
| 2336 |
</p> |
| 2337 |
|
| 2338 |
<div class="box-tip"> |
| 2339 |
<p class="tip"> |
| 2340 |
<span class="note">Note:</span> |
| 2341 |
This macro also sets mom’s spacing policy for |
| 2342 |
<a href="#blockquote-intro">blockquotes</a>. |
| 2343 |
</p> |
| 2344 |
</div> |
| 2345 |
|
| 2346 |
<h4 id="underline-quotes" class="docs" style="margin-top: -.25em;">3. Underlining quotes (typewrite only)</h4> |
| 2347 |
|
| 2348 |
<p> |
| 2349 |
By default in |
| 2350 |
<a href="docprocessing.html#printstyle">PRINTSTYLE TYPEWRITE</a>, |
| 2351 |
mom underlines quotes. If you’d rather she didn’t, |
| 2352 |
invoke <kbd>.UNDERLINE_QUOTES</kbd> with any argument |
| 2353 |
(<kbd>OFF</kbd>, <kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>...) |
| 2354 |
to disable the feature. Invoke it without an argument to restore |
| 2355 |
mom’s default underlining of quotes. |
| 2356 |
</p> |
| 2357 |
|
| 2358 |
<p> |
| 2359 |
If you not only wish that mom not underline quotes, but also that |
| 2360 |
she set them in italic, you must follow each instance of QUOTE with |
| 2361 |
the typesetting macro |
| 2362 |
<a href="typesetting.html#font">FT I</a>. |
| 2363 |
Furthermore, since mom underlines all instances of italics by |
| 2364 |
default in PRINTSTYLE TYPEWRITE, you must also make sure that |
| 2365 |
ITALIC_MEANS_ITALIC is enabled (see |
| 2366 |
<a href="docprocessing.html#typewrite-control">PRINTSTYLE TYPEWRITE control macros</a>). |
| 2367 |
</p> |
| 2368 |
|
| 2369 |
<div class="rule-short"><hr/></div> |
| 2370 |
|
| 2371 |
<!-- ==================================================================== --> |
| 2372 |
|
| 2373 |
<h2 id="blockquote-intro" class="macro-group">Blockquotes (cited material)</h2> |
| 2374 |
|
| 2375 |
<ul style="margin-left: -.5em;"> |
| 2376 |
<li><a href="#blockquote-description">Introduction</a></li> |
| 2377 |
<li><a href="#blockquote">Tag: BLOCKQUOTE</a></li> |
| 2378 |
<li><a href="#blockquote-control">BLOCKQUOTE control macros</a></li> |
| 2379 |
</ul> |
| 2380 |
|
| 2381 |
<p id="blockquote-description"> |
| 2382 |
<a href="definitions.html#blockquote">Blockquotes</a> |
| 2383 |
are used to cite passages from another author’s work. So that |
| 2384 |
they stand out well from |
| 2385 |
<a href="definitions.html#running">running text</a>, |
| 2386 |
mom indents them from both the left and right margins and sets them |
| 2387 |
in a different point size |
| 2388 |
(<a href="docprocessing.html#printstyle">PRINTSTYLE TYPESET</a> |
| 2389 |
only). |
| 2390 |
<a href="definitions.html#outputline">Output lines</a> |
| 2391 |
are |
| 2392 |
<a href="definitions.html#filled">filled</a>, |
| 2393 |
and, by default, |
| 2394 |
<a href="definitions.html#quad">quadded</a> |
| 2395 |
left. |
| 2396 |
</p> |
| 2397 |
|
| 2398 |
<p> |
| 2399 |
Besides indenting blockquotes, mom further sets them off from |
| 2400 |
running text with a small amount of vertical whitespace top and |
| 2401 |
bottom. (See |
| 2402 |
<a href="#quote-spacing">Quote spacing</a> |
| 2403 |
for a complete explanation of how this is managed, and how |
| 2404 |
to control it.) |
| 2405 |
</p> |
| 2406 |
|
| 2407 |
<p> |
| 2408 |
Additional information concerning blockquotes, floats, and labelling |
| 2409 |
blockquotes can be found in the sections |
| 2410 |
<a href="#float-quote">Keeping quotes and blockquotes together as a block</a>, |
| 2411 |
and |
| 2412 |
<a href="#label-caption">Labelling/captioning quotes and blockquotes</a>. |
| 2413 |
</p> |
| 2414 |
|
| 2415 |
<!-- -BLOCKQUOTE- --> |
| 2416 |
|
| 2417 |
<div class="macro-id-overline"> |
| 2418 |
<h3 id="blockquote" class="macro-id">BLOCKQUOTE</h3> |
| 2419 |
</div> |
| 2420 |
|
| 2421 |
<div class="box-macro-args"> |
| 2422 |
Macro: <b>BLOCKQUOTE</b> <kbd class="macro-args">[ ADJUST +|-<space> ] | <anything></kbd> |
| 2423 |
</div> |
| 2424 |
|
| 2425 |
<p class="alias" style="margin-bottom: 0;"> |
| 2426 |
<i>Aliases: </i> <b>CITE, CITATION</b> |
| 2427 |
</p> |
| 2428 |
|
| 2429 |
<p class="requires"> |
| 2430 |
• The argument to <kbd style="font-style: normal">ADJUST</kbd> requires a |
| 2431 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 2432 |
</p> |
| 2433 |
|
| 2434 |
<p> |
| 2435 |
BLOCKQUOTE is a toggle macro. To begin a cited passage, invoke |
| 2436 |
the tag with no argument, then type in your blockquote. When |
| 2437 |
you’re finished, invoke <kbd>.BLOCKQUOTE</kbd> with any |
| 2438 |
argument (e.g. <kbd>OFF, END, X, Q</kbd>...) to turn it off. |
| 2439 |
Example: |
| 2440 |
<br/> |
| 2441 |
<span class="pre-in-pp"> |
| 2442 |
.BLOCKQUOTE |
| 2443 |
Redefining the role of the United States from enablers to keep |
| 2444 |
the peace to enablers to keep the peace from peacekeepers is |
| 2445 |
going to be an assignment. |
| 2446 |
.RIGHT |
| 2447 |
\[em]George W. Bush |
| 2448 |
.BLOCKQUOTE END |
| 2449 |
</span> |
| 2450 |
If the cited passage runs to more than one paragraph, you must |
| 2451 |
introduce each paragraph—including the first—with |
| 2452 |
<kbd><a href="#pp">.PP</a></kbd>. |
| 2453 |
</p> |
| 2454 |
|
| 2455 |
<p> |
| 2456 |
Mom does her best to equalize whitespace around blockquotes and make |
| 2457 |
sure the line following it falls on a valid baseline. On occasion, |
| 2458 |
you may need to tweak the blockquote placement slightly, which is |
| 2459 |
done by passing <kbd>ADJUST</kbd> to BLOCKQUOTE with a plus or minus |
| 2460 |
value. The blockquote will be lowered (<kbd>+</kbd>) or raised |
| 2461 |
(<kbd>-</kbd>) <i>within the space allotted for it</i> by the given |
| 2462 |
amount. For example, to raise a blockquote slightly within the |
| 2463 |
space allotted for it, you’d do |
| 2464 |
<br/> |
| 2465 |
<span class="pre-in-pp"> |
| 2466 |
.BLOCKQUOTE ADJUST -3p |
| 2467 |
True! - nervous - very, very dreadfully nervous I had been and |
| 2468 |
am; but why will you say that I am mad? The disease had sharpened |
| 2469 |
my senses - not destroyed - not dulled them. |
| 2470 |
.RIGHT |
| 2471 |
\[em]Edgar Allen Poe, The Tell-Tale Heart |
| 2472 |
.QUOTE off |
| 2473 |
</span> |
| 2474 |
</p> |
| 2475 |
|
| 2476 |
<div class="box-tip"> |
| 2477 |
<p class="tip"> |
| 2478 |
<span class="note">Note:</span> |
| 2479 |
The aliases CITE and CITATION may be used in place of the BLOCKQUOTE |
| 2480 |
tag, as well as in any of the control macros that begin or end with |
| 2481 |
BLOCKQUOTE_. |
| 2482 |
</p> |
| 2483 |
</div> |
| 2484 |
|
| 2485 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 2486 |
<h3 id="blockquote-control" class="docs defaults">BLOCKQUOTE control macros and defaults</h3> |
| 2487 |
|
| 2488 |
<ol style="margin-top: .5em; padding-bottom: .5em;"> |
| 2489 |
<li><a href="#blockquote-general">Family/font/size/leading/colour/quad/indent</a></li> |
| 2490 |
<li><a href="#bq-always-fullspace-quotes">Spacing above and below (typeset only)</a></li> |
| 2491 |
</ol> |
| 2492 |
</div> |
| 2493 |
|
| 2494 |
<h4 id="blockquote-general" class="docs" style="margin-top: -1.5em; margin-bottom: .5em;">1. Family/font/size/colour/quad/indent</h4> |
| 2495 |
|
| 2496 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 2497 |
<p class="defaults" style="padding-top: 6px;"> |
| 2498 |
See |
| 2499 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 2500 |
<br/> |
| 2501 |
The following BLOCKQUOTE control macros may also be |
| 2502 |
<a href="#grouping">grouped</a> |
| 2503 |
using BLOCKQUOTE_STYLE. |
| 2504 |
</p> |
| 2505 |
<span class="pre defaults"> |
| 2506 |
.BLOCKQUOTE_FAMILY default = prevailing document family; default is Times Roman |
| 2507 |
.BLOCKQUOTE_FONT default = roman |
| 2508 |
.BLOCKQUOTE_SIZE default = -1 (point) |
| 2509 |
<a id="blockquote-autolead">.BLOCKQUOTE_AUTOLEAD default = none; leading of blockquotes is the same as paragraphs</a> |
| 2510 |
.BLOCKQUOTE_COLOR default = black |
| 2511 |
.BLOCKQUOTE_QUAD default = left |
| 2512 |
.BLOCKQUOTE_INDENT (see below) |
| 2513 |
</span> |
| 2514 |
</div> |
| 2515 |
|
| 2516 |
<h4 id="blockquote-indent" class="docs" style="margin-top: -1.5em;">Blockquote indent</h4> |
| 2517 |
|
| 2518 |
<p> |
| 2519 |
<kbd>BLOCKQUOTE_INDENT</kbd> takes one of two kinds of argument: an |
| 2520 |
integer representing the amount by which to multiply the argument |
| 2521 |
passed to |
| 2522 |
<a href="#para-indent">PARA_INDENT</a> |
| 2523 |
(by default, 2 |
| 2524 |
<a href="definitions.html#em">ems</a> |
| 2525 |
for TYPESET, 3 |
| 2526 |
<a href="definitions.html#picaspoints">picas</a> |
| 2527 |
for TYPEWRITE) to arrive at the blockquote indent, or a distance with a |
| 2528 |
<a href="definitions.html#unitofmesaure">unit of measure</a> |
| 2529 |
appended. Both result in blockquotes being indented equally from |
| 2530 |
the left and right margins. |
| 2531 |
</p> |
| 2532 |
|
| 2533 |
<p> |
| 2534 |
The default value for BLOCKQUOTE_INDENT is 3 (for |
| 2535 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>) |
| 2536 |
and 1 (for |
| 2537 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>). |
| 2538 |
</p> |
| 2539 |
|
| 2540 |
<div class="box-tip"> |
| 2541 |
<p class="tip"> |
| 2542 |
<span class="note">Note:</span> |
| 2543 |
If your PARA_INDENT is 0 (i.e. no indenting of the first line of |
| 2544 |
paragraphs), you must set a BLOCKQUOTE_INDENT yourself, with |
| 2545 |
a unit of measure appended to the argument. Mom has no default for |
| 2546 |
BLOCKQUOTE_INDENT if paragraph first lines are not being indented. |
| 2547 |
</p> |
| 2548 |
</div> |
| 2549 |
|
| 2550 |
|
| 2551 |
|
| 2552 |
<h4 id="bq-always-fullspace-quotes" class="docs">2. Spacing above and below blockquotes (typeset only)</h4> |
| 2553 |
|
| 2554 |
<p> |
| 2555 |
If you’d like mom always to put a full linespace above and |
| 2556 |
below blockquotes, invoke |
| 2557 |
<br/> |
| 2558 |
<span class="pre-in-pp"> |
| 2559 |
.ALWAYS_FULLSPACE_QUOTES |
| 2560 |
</span> |
| 2561 |
with no argument. If you wish to restore mom’s default |
| 2562 |
behaviour regarding the spacing of blockquotes (see |
| 2563 |
<a href="#quote-spacing">Quote spacing</a>), |
| 2564 |
invoke the macro with any argument (<kbd>OFF</kbd>, <kbd>QUIT</kbd>, |
| 2565 |
<kbd>END</kbd>, <kbd>X</kbd>...). |
| 2566 |
</p> |
| 2567 |
|
| 2568 |
<div class="box-tip"> |
| 2569 |
<p class="tip"> |
| 2570 |
<span class="note">Note:</span> |
| 2571 |
This macro also sets mom’s spacing policy for |
| 2572 |
<a href="#quote-intro">quotes</a>. |
| 2573 |
</p> |
| 2574 |
</div> |
| 2575 |
|
| 2576 |
<div class="rule-short"><hr/></div> |
| 2577 |
|
| 2578 |
<!-- ==================================================================== --> |
| 2579 |
|
| 2580 |
<h2 id="code-intro" class="macro-group">Inserting code into a document</h2> |
| 2581 |
|
| 2582 |
<ul style="margin-left: -.5em;"> |
| 2583 |
<li><a href="#code">Tag: CODE</a></li> |
| 2584 |
<li><a href="#code-control">CODE control macros and defaults</a></li> |
| 2585 |
</ul> |
| 2586 |
|
| 2587 |
<p> |
| 2588 |
CODE is a convenience macro that facilitates entering code blocks |
| 2589 |
into documents. Its use is not restricted to documents created |
| 2590 |
using mom’s document processing macros; it can be used for |
| 2591 |
“manually” typeset documents as well. |
| 2592 |
</p> |
| 2593 |
|
| 2594 |
<div class="macro-id-overline"> |
| 2595 |
<h3 id="code" class="macro-id">CODE</h3> |
| 2596 |
</div> |
| 2597 |
|
| 2598 |
<div class="box-macro-args"> |
| 2599 |
Macro: <b>CODE</b> <kbd class="macro-args">[BR | BREAK | SPREAD] <anything></kbd> |
| 2600 |
</div> |
| 2601 |
|
| 2602 |
<p class="requires" style="font-style: normal"> |
| 2603 |
Inline escape: <b><kbd>\*[CODE]</kbd></b> |
| 2604 |
</p> |
| 2605 |
|
| 2606 |
<p> |
| 2607 |
When you invoke the macro CODE or insert |
| 2608 |
<kbd><span class="nobr">\*[CODE]</span></kbd> into running text, mom switches to |
| 2609 |
a |
| 2610 |
<a href="definitions.html#fixedwidthfont">fixed-width font</a> |
| 2611 |
(Courier, by default) and turns |
| 2612 |
<a href="goodies.html#smartquotes">SMARTQUOTES</a> |
| 2613 |
off. |
| 2614 |
</p> |
| 2615 |
|
| 2616 |
<p> |
| 2617 |
If your code includes the backslash character, which is |
| 2618 |
groff’s escape character, you will have to change the |
| 2619 |
escape character temporarily to something else with the macro |
| 2620 |
<a href="goodies.html#esc-char">ESC_CHAR</a>. |
| 2621 |
Mom has no way of knowing what special characters you’re going |
| 2622 |
to use in code snippets, therefore she cannot automatically replace |
| 2623 |
the escape character with something else. |
| 2624 |
</p> |
| 2625 |
|
| 2626 |
<p> |
| 2627 |
The correct order for changing the escape character inside |
| 2628 |
<kbd>CODE</kbd> is |
| 2629 |
<span class="pre-in-pp"> |
| 2630 |
.CODE |
| 2631 |
.ESC_CHAR character |
| 2632 |
<code> |
| 2633 |
.ESC_CHAR \ |
| 2634 |
.CODE OFF |
| 2635 |
</span> |
| 2636 |
Be aware that changing the escape character prevents subsequent |
| 2637 |
macros, which require that the backslash be the escape character, |
| 2638 |
from functioning correctly. Therefore, do not introduce any macros |
| 2639 |
into your CODE block without first restoring the escape character to |
| 2640 |
its default. |
| 2641 |
</p> |
| 2642 |
|
| 2643 |
<p> |
| 2644 |
Alternatively, you can enter the backslash character as |
| 2645 |
<kbd>\e</kbd> or <kbd>\\</kbd> (two backslashes), which tells groff |
| 2646 |
to print a literal backslash. |
| 2647 |
</p> |
| 2648 |
|
| 2649 |
<div class="box-tip"> |
| 2650 |
<p class="tip-top"> |
| 2651 |
<span class="tip">Note:</span> |
| 2652 |
<kbd>.CODE</kbd> does not cause a line break when |
| 2653 |
you’re in a |
| 2654 |
<a href="definitions.html#filled">fill mode</a> |
| 2655 |
(i.e. |
| 2656 |
<a href="typesetting.html#justify">JUSTIFY</a> |
| 2657 |
or |
| 2658 |
<a href="typesetting.html#quad">QUAD</a> |
| 2659 |
<kbd>LEFT, CENTER,</kbd> or <kbd>RIGHT</kbd>). |
| 2660 |
If you want CODE to deposit a break, invoke <kbd>.CODE</kbd> with |
| 2661 |
the argument <kbd>BR</kbd> (or <kbd>BREAK</kbd>). If, in addition |
| 2662 |
to having mom break the line before <kbd>.CODE</kbd>, you want her |
| 2663 |
to |
| 2664 |
<a href="definitions.html#force">force justify</a> |
| 2665 |
it as well, invoke <kbd>.CODE</kbd> with the argument, |
| 2666 |
<kbd>SPREAD</kbd>. If, in addition to breaking the line before CODE |
| 2667 |
you want a break afterwards, you must supply it manually with |
| 2668 |
<a href="typesetting.html#br">BR</a> |
| 2669 |
unless what follows immediately is a macro that automatically causes |
| 2670 |
a break (e.g. |
| 2671 |
<a href="#pp">PP</a>). |
| 2672 |
</p> |
| 2673 |
|
| 2674 |
<p id="quote-code" class="tip-bottom"> |
| 2675 |
In all likelihood, if you want the situation described above (i.e. a |
| 2676 |
break before and after CODE), what you probably want is to use |
| 2677 |
<a href="quote">QUOTE</a> |
| 2678 |
in conjunction with CODE, like this: |
| 2679 |
<br/> |
| 2680 |
<span class="pre-in-pp"> |
| 2681 |
.QUOTE |
| 2682 |
.CODE |
| 2683 |
$ echo "Hello, world" | sed -e 's/Hello,/Goodbye, cruel/' |
| 2684 |
.QUOTE OFF |
| 2685 |
</span> |
| 2686 |
QUOTE takes care of breaking both the text and the code, as well as |
| 2687 |
indenting the code and offsetting it from |
| 2688 |
<a href="definitions.html#running">running text</a> |
| 2689 |
with vertical whitespace. Notice that <kbd>.CODE</kbd>, above, has |
| 2690 |
no corresponding <kbd>.CODE OFF</kbd>. <kbd>.CODE</kbd> inside a QUOTE |
| 2691 |
does not require a terminating <kbd>.CODE OFF</kbd>, which risks |
| 2692 |
introducing unwanted vertical whitespace. |
| 2693 |
</p> |
| 2694 |
</div> |
| 2695 |
|
| 2696 |
<p> |
| 2697 |
Passing any argument other than <kbd>BR</kbd>, <kbd>BREAK</kbd> or |
| 2698 |
<kbd>SPREAD</kbd> to CODE (e.g. <kbd>OFF</kbd>, <kbd>QUIT</kbd>, |
| 2699 |
<kbd>END</kbd>, <kbd>X</kbd>, etc) turns CODE off and returns the |
| 2700 |
family, font, and smartquotes back to their former state. |
| 2701 |
</p> |
| 2702 |
|
| 2703 |
<h4 class="docs" style="font-size: 102%">Using <kbd>\*[CODE]</kbd> inline</h4> |
| 2704 |
|
| 2705 |
<p> |
| 2706 |
<kbd><span class="nobr">\*[CODE]</span></kbd> invokes <kbd>.CODE</kbd>, allowing you to |
| 2707 |
bracket code snippets inline. It does not accept the <kbd>BR</kbd>, |
| 2708 |
<kbd>BREAK</kbd>, or <kbd>SPREAD</kbd> arguments. It is most useful |
| 2709 |
for short snippets, as in the following example. |
| 2710 |
<br/> |
| 2711 |
<span class="pre-in-pp"> |
| 2712 |
\*[CODE]apropos\*[CODE X] and \*[CODE]man -k\*[CODE X] are identical. |
| 2713 |
</span> |
| 2714 |
</p> |
| 2715 |
|
| 2716 |
<p> |
| 2717 |
<kbd><span class="nobr">\*[CODE]</span></kbd> does not permit changing the escape |
| 2718 |
character, so <kbd>\e</kbd> or a doubled backslash must be used. |
| 2719 |
Furthermore, if your code starts with a period, you must enter it as |
| 2720 |
“<kbd>\&.</kbd>”. |
| 2721 |
<br/> |
| 2722 |
<span class="pre-in-pp"> |
| 2723 |
Registers are created with the \*[CODE]\&.nr\*[CODE X] request. |
| 2724 |
</span> |
| 2725 |
</p> |
| 2726 |
|
| 2727 |
<h4 class="docs" style="font-size: 102%; margin-top: -1em">CODE and punctuation</h4> |
| 2728 |
|
| 2729 |
<p> |
| 2730 |
<kbd>.CODE OFF</kbd> automatically inserts a word space into |
| 2731 |
running text. If your CODE block is to be followed by punctuation |
| 2732 |
with the parameters of |
| 2733 |
<a href="definitions.html#running">running text</a>, |
| 2734 |
you must terminate the block with “<kbd>\c</kbd>” and |
| 2735 |
enter the punctuation at the beginning of the next input line. If |
| 2736 |
the punctuation mark is a period or an apostrophe, you must precede |
| 2737 |
it with |
| 2738 |
“<kbd>\&</kbd>”. |
| 2739 |
<br/> |
| 2740 |
<span class="pre-in-pp"> |
| 2741 |
...for example, |
| 2742 |
.CODE |
| 2743 |
echo "Hello, world" | sed -e 's/Hello,/Goodbye, cruel/'\c |
| 2744 |
.CODE OFF |
| 2745 |
\&. As this demonstrates... |
| 2746 |
</span> |
| 2747 |
Use of <kbd><span class="nobr">\*[CODE]</span></kbd> inline does not require |
| 2748 |
the <kbd>\c</kbd>, however periods and apostrophes after |
| 2749 |
<kbd><span class="nobr">\*[CODE X]</span></kbd> still need to be introduced |
| 2750 |
with <kbd>\&</kbd>, as in this example: |
| 2751 |
<br/> |
| 2752 |
<span class="pre-in-pp"> |
| 2753 |
...append the unit of measure \*[CODE]p\*[CODE OFF]\&. New sentence... |
| 2754 |
</span> |
| 2755 |
</p> |
| 2756 |
|
| 2757 |
|
| 2758 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 2759 |
<h3 id="code-control" class="docs defaults">CODE control macros and defaults</h3> |
| 2760 |
|
| 2761 |
<ol style="margin-top: .5em; padding-bottom: .5em;"> |
| 2762 |
<li><a href="#code-general">Family/Font/Colour</a></li> |
| 2763 |
<li><a href="#code-size">Size</a></li> |
| 2764 |
</ol> |
| 2765 |
</div> |
| 2766 |
|
| 2767 |
<h4 id="code-general" class="docs" style="margin-top: -1.5em; margin-bottom: .5em;">1. Family/font/colour</h4> |
| 2768 |
|
| 2769 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 2770 |
<p class="defaults" style="padding-top: 6px;"> |
| 2771 |
See |
| 2772 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 2773 |
<br/> |
| 2774 |
The following CODE control macros may also be |
| 2775 |
<a href="#grouping">grouped</a> |
| 2776 |
using CODE_STYLE. |
| 2777 |
</p> |
| 2778 |
<span class="pre defaults"> |
| 2779 |
.CODE_FAMILY default = Courier |
| 2780 |
.CODE_FONT default = roman; see Note |
| 2781 |
.CODE_COLOR default = black |
| 2782 |
|
| 2783 |
Note: Unlike other control macros, CODE_FONT sets the code font for both |
| 2784 |
PRINTSTYLE TYPESET and PRINTSTYLE TYPEWRITE. |
| 2785 |
</span> |
| 2786 |
</div> |
| 2787 |
|
| 2788 |
<h4 id="code-size" class="docs" style="margin-top: -1.25em;">2. Size</h4> |
| 2789 |
|
| 2790 |
<p> |
| 2791 |
CODE_SIZE works a little differently from the other _SIZE macros |
| 2792 |
(see <a href="#control-macro-args">Arguments to the control |
| 2793 |
macros</a>). The argument you pass it is a percentage of the |
| 2794 |
prevailing document point size. It does not require a prepended |
| 2795 |
plus (<kbd>+</kbd>) or minus (<kbd>-</kbd>) sign, nor an appended |
| 2796 |
percent sign (<kbd>%</kbd>). Thus, if you want the point size of your CODE font to be |
| 2797 |
90% of the prevailing document point size, you enter: |
| 2798 |
<br/> |
| 2799 |
<span class="pre-in-pp"> |
| 2800 |
.CODE_SIZE 90 |
| 2801 |
</span> |
| 2802 |
Fixed-width fonts have notoriously whimsical |
| 2803 |
<a href="definitions.html#xheight">x-heights</a>, |
| 2804 |
meaning that they frequently look bigger (or, in some cases, |
| 2805 |
smaller) than the type surrounding them, even if they’re |
| 2806 |
technically the same point size. CODE_SIZE lets you choose a |
| 2807 |
percentage of the prevailing point size for your fixed-width |
| 2808 |
CODE font so it doesn’t look gangly or minuscule in relation |
| 2809 |
to the type around it. All invocations of <kbd>.CODE</kbd> or |
| 2810 |
<kbd><span class="nobr">\*[CODE]</span></kbd> will use this size, so that if you |
| 2811 |
decide to change the prevailing point size of your document, the |
| 2812 |
CODE font will be scaled proportionally. |
| 2813 |
</p> |
| 2814 |
|
| 2815 |
<div class="rule-short"><hr/></div> |
| 2816 |
|
| 2817 |
<!-- ==================================================================== --> |
| 2818 |
|
| 2819 |
<h2 id="list-intro" class="macro-group">Nested lists</h2> |
| 2820 |
|
| 2821 |
<ul style="margin-left: -.5em;"> |
| 2822 |
<li><a href="#list">Tag: LIST</a></li> |
| 2823 |
<li><a href="#item">Tag: ITEM</a></li> |
| 2824 |
<li><a href="#list-control">LIST control macros and defaults</a></li> |
| 2825 |
</ul> |
| 2826 |
|
| 2827 |
<p> |
| 2828 |
Lists are points or items of interest or importance that are |
| 2829 |
separated from |
| 2830 |
<a href="definitions.html#running">running text</a> |
| 2831 |
by enumerators. Some typical enumerators are |
| 2832 |
<a href="definitions.html#em">en-dashes</a>, |
| 2833 |
<a href="definitions.html#bullet">bullets</a>, |
| 2834 |
digits and letters. |
| 2835 |
</p> |
| 2836 |
|
| 2837 |
<p> |
| 2838 |
Setting lists with mom is easy. First, you initialize a list with |
| 2839 |
the LIST macro. Then, for every item in the list, you invoke |
| 2840 |
the macro <kbd>.ITEM</kbd> followed by the text of the item. |
| 2841 |
When a list is finished, you exit the list with |
| 2842 |
<kbd>.LIST OFF</kbd> (or <kbd>QUIT</kbd>, <kbd>END</kbd>, |
| 2843 |
<kbd>BACK</kbd>, etc.) |
| 2844 |
</p> |
| 2845 |
|
| 2846 |
<p> |
| 2847 |
By default mom starts each list with the enumerator flush with the |
| 2848 |
left margin of running text that comes before it, like this: |
| 2849 |
<br/> |
| 2850 |
<span class="pre-in-pp"> |
| 2851 |
My daily schedule needs organising. I can’t |
| 2852 |
seem to get everything done I want. |
| 2853 |
o an hour’s worth of exercise |
| 2854 |
o time to prepare at least one healthy |
| 2855 |
meal per day |
| 2856 |
o reading time |
| 2857 |
o work on mom |
| 2858 |
o writing |
| 2859 |
- changes from publisher |
| 2860 |
- current novel |
| 2861 |
o a couple of hours at the piano |
| 2862 |
</span> |
| 2863 |
In other words, mom does not, by default, indent entire lists. |
| 2864 |
Indenting a list is controlled by the macro |
| 2865 |
<a href="#shift-list">SHIFT_LIST</a>. |
| 2866 |
(This is a design decision; there are too many instances where a |
| 2867 |
default indent is not desirable.) Equally, mom does not add any |
| 2868 |
extra space above or below lists. |
| 2869 |
</p> |
| 2870 |
|
| 2871 |
<p> |
| 2872 |
Lists can be nested (as in the example above). In other words, |
| 2873 |
you can set lists within lists, each with an enumerator (and |
| 2874 |
possibly, indent) of your choosing. In nested lists, each |
| 2875 |
invocation of <kbd>.LIST OFF</kbd> (you may prefer to use |
| 2876 |
<kbd>.LIST BACK</kbd>) takes you back to the previous depth |
| 2877 |
(or level) of list, with that list’s enumerator and indent |
| 2878 |
intact. The final <kbd>.LIST OFF</kbd> exits lists completely |
| 2879 |
and returns you to the left margin of running text. |
| 2880 |
</p> |
| 2881 |
|
| 2882 |
<p> |
| 2883 |
If |
| 2884 |
<kbd><a href="typesetting.html#quad">QUAD CENTER</a></kbd> |
| 2885 |
is in effect when LIST is invoked, the list is set quad left but |
| 2886 |
centred on the page as a block, based on the longest line of list |
| 2887 |
text. Equally, if <kbd>QUAD RIGHT</kbd> in in effect, the list is |
| 2888 |
set flush left but quadded right as a block. If you want a centred |
| 2889 |
or right-quadded list in an otherwise left-quadded or justified |
| 2890 |
document, simply invoke <kbd>.QUAD <direction></kbd> |
| 2891 |
before the list and reset the quad afterwards. Do not use |
| 2892 |
<kbd><a href="typesetting.html#lrc">CENTER</a></kbd> |
| 2893 |
or |
| 2894 |
<kbd><a href="typesetting.html#lrc">RIGHT</a></kbd>. |
| 2895 |
</p> |
| 2896 |
|
| 2897 |
<div class="box-tip"> |
| 2898 |
<p class="tip"> |
| 2899 |
<span class="note">Note:</span> |
| 2900 |
Mom centres lists over the entire line length, disregarding |
| 2901 |
<a href="typesetting.html#ib">IB</a> |
| 2902 |
if it is in effect. If there are lines in the list that exceed |
| 2903 |
the margins of IB, they must be broken manually with |
| 2904 |
<kbd>.BR</kbd> if you wish to keep them within the indented margins. |
| 2905 |
</p> |
| 2906 |
</div> |
| 2907 |
|
| 2908 |
<p> |
| 2909 |
Finally, lists can be used in documents created with either the |
| 2910 |
<a href="docprocessing.html#top">document processing macros</a> |
| 2911 |
or just the |
| 2912 |
<a href="typesetting.html#top">typesetting macros</a>. |
| 2913 |
</p> |
| 2914 |
|
| 2915 |
<!-- -LIST- --> |
| 2916 |
|
| 2917 |
<div class="macro-id-overline"> |
| 2918 |
<h3 id="list" class="macro-id">LIST</h3> |
| 2919 |
</div> |
| 2920 |
|
| 2921 |
<div class="box-macro-args"> |
| 2922 |
Macro: <b>LIST</b> <kbd class="macro-args">[ BULLET | DASH | DIGIT | ALPHA | alpha | ROMAN<n> | roman<n> | USER <user-defined enumerator> | PLAIN | VARIABLE <character>] [ <separator> ] [ <prefix> ] [ <anything> ]</kbd> |
| 2923 |
</div> |
| 2924 |
|
| 2925 |
<p> |
| 2926 |
Invoked by itself (i.e. with no argument), LIST |
| 2927 |
initializes a list with bullets as the default enumerator. |
| 2928 |
Afterwards, each block of input text preceded by |
| 2929 |
<kbd><a href="#item">.ITEM</a></kbd>, |
| 2930 |
on a line by itself, is treated as a list item. |
| 2931 |
</p> |
| 2932 |
|
| 2933 |
<div class="box-tip"> |
| 2934 |
<p class="tip"> |
| 2935 |
<span class="note">Note:</span> |
| 2936 |
Every time you invoke <kbd>.LIST</kbd> to start a list (as opposed to |
| 2937 |
<a href="#list-exit">exiting one</a>), |
| 2938 |
you must supply an enumerator (and optionally, a separator) for the |
| 2939 |
list, unless you want mom’s default enumerator, which is a |
| 2940 |
bullet. Within nested lists, mom stores the enumerator, separator |
| 2941 |
and indent for any list you return <i>backwards</i> to (i.e. with |
| 2942 |
<kbd>.LIST OFF</kbd>), but does not store any information for lists |
| 2943 |
you move <i>forward</i> to. |
| 2944 |
</p> |
| 2945 |
</div> |
| 2946 |
|
| 2947 |
<p> |
| 2948 |
There are a lot of arguments (be sure to side-scroll through them |
| 2949 |
all, above), so I’ll discuss them one at a time here. |
| 2950 |
</p> |
| 2951 |
<h3 class="docs">The first argument – enumerator style</h3> |
| 2952 |
|
| 2953 |
<p> |
| 2954 |
The optional arguments <kbd>BULLET</kbd>, <kbd>DASH</kbd>, |
| 2955 |
<kbd>DIGIT</kbd> (for Arabic numerals), <kbd>ALPHA</kbd> (for |
| 2956 |
uppercase letters), <kbd>alpha</kbd> (for lowercase letters), |
| 2957 |
<kbd>ROMAN<n></kbd> (for uppercase roman numerals), |
| 2958 |
<kbd>roman<n></kbd> (for lowercase roman numerals) tell |
| 2959 |
mom what kind of enumerator to use for a given list. |
| 2960 |
</p> |
| 2961 |
|
| 2962 |
<p> |
| 2963 |
The arguments, <kbd>ROMAN<n></kbd> and |
| 2964 |
<kbd>roman<n></kbd>, are special. You must append to them |
| 2965 |
a digit (arabic, e.g. "1" or "9" or "17") saying how many items a |
| 2966 |
particular roman-numeraled LIST is going to have. Mom requires this |
| 2967 |
information in order to align roman numerals sensibly, and will |
| 2968 |
abort—with a message — if you don’t provide it. |
| 2969 |
(For setting roman numeral and digit lists with the enumerators |
| 2970 |
aligned flush right—the default is flush left—see |
| 2971 |
<a href="#pad-list-digits">PAD_LIST_DIGITS</a>.) |
| 2972 |
</p> |
| 2973 |
|
| 2974 |
<p> |
| 2975 |
A roman-numeraled list containing, say, five items, would be set |
| 2976 |
up like this: |
| 2977 |
<br/> |
| 2978 |
<span class="pre-in-pp"> |
| 2979 |
.LIST roman5 producing i) Item 1. |
| 2980 |
.ITEM ii) Item 2. |
| 2981 |
Item 1. iii) Item 3. |
| 2982 |
.ITEM iv) Item 4. |
| 2983 |
Item 2. v) Item 5. |
| 2984 |
.ITEM |
| 2985 |
Item 3 |
| 2986 |
.ITEM |
| 2987 |
Item 4 |
| 2988 |
.ITEM |
| 2989 |
Item 5 |
| 2990 |
</span> |
| 2991 |
</p> |
| 2992 |
|
| 2993 |
<p> |
| 2994 |
The argument <kbd>VARIABLE <character></kbd> lets |
| 2995 |
you choose different enumerators for the items in a list. |
| 2996 |
<kbd><character></kbd> is the widest enumerator to |
| 2997 |
be used. Thus, if you have a list enumerated by both bullets |
| 2998 |
and em-dashes, you’d set it up with |
| 2999 |
<br/> |
| 3000 |
<span class="pre-in-pp"> |
| 3001 |
.LIST VARIABLE \[em] |
| 3002 |
</span> |
| 3003 |
and select the enumerator you want with |
| 3004 |
<br/> |
| 3005 |
<span class="pre-in-pp"> |
| 3006 |
.ITEM \[em] |
| 3007 |
</span> |
| 3008 |
or |
| 3009 |
<br/> |
| 3010 |
<span class="pre-in-pp"> |
| 3011 |
.ITEM \[bu] |
| 3012 |
</span> |
| 3013 |
If your enumerator contains spaces, you must enclose the |
| 3014 |
<kbd><character></kbd> argument in both LIST and ITEM in |
| 3015 |
double-quotes, e.g. |
| 3016 |
<br/> |
| 3017 |
<span class="pre-in-pp"> |
| 3018 |
.LIST VARIABLE "\*[UP 1p]\[bu]\*[DOWN 1p]" |
| 3019 |
.ITEM "\*[UP 1p]\[bu]\*[DOWN 1p]" |
| 3020 |
</span> |
| 3021 |
</p> |
| 3022 |
|
| 3023 |
<p> |
| 3024 |
The argument <kbd>USER</kbd> lets you make up your own enumerator, |
| 3025 |
and must be followed by a second argument: what you’d like the |
| 3026 |
enumerator to look like. For example, if you want a list enumerated |
| 3027 |
with <kbd>=></kbd>, |
| 3028 |
<br/> |
| 3029 |
<span class="pre-in-pp"> |
| 3030 |
.LIST USER => |
| 3031 |
.ITEM |
| 3032 |
A list item |
| 3033 |
</span> |
| 3034 |
|
| 3035 |
will produce |
| 3036 |
<br/> |
| 3037 |
<span class="pre-in-pp"> |
| 3038 |
=> A list item |
| 3039 |
</span> |
| 3040 |
Some useful special groff characters you might want to pass to |
| 3041 |
<kbd>USER</kbd> are: |
| 3042 |
<span class="pre-in-pp"> |
| 3043 |
\[sq] - square box |
| 3044 |
\[rh] - pointing hand |
| 3045 |
\[->] - right arrow |
| 3046 |
\[rA] - right double arrow |
| 3047 |
\[OK] - checkmark |
| 3048 |
</span> |
| 3049 |
The size and vertical positioning of special characters may be |
| 3050 |
adjusted with |
| 3051 |
<a href="definitions.html#inlines">inline escapes</a> |
| 3052 |
in the argument passed to USER. For example, to raise the position |
| 3053 |
of <kbd><span class="nobr">\[sq]</span></kbd> slightly, you might do |
| 3054 |
<span class="pre-in-pp"> |
| 3055 |
.LIST USER "\*[UP .25p]\[sq]\*[DOWN .25p]" |
| 3056 |
or |
| 3057 |
.LIST USER \v'-.25p'\[sq]\v'.25p' |
| 3058 |
</span> |
| 3059 |
</p> |
| 3060 |
|
| 3061 |
<p> |
| 3062 |
The argument <kbd>PLAIN</kbd> initializes a list with no enumerator. |
| 3063 |
</p> |
| 3064 |
|
| 3065 |
<div class="box-tip"> |
| 3066 |
<p class="tip"> |
| 3067 |
<span class="note">Note:</span> |
| 3068 |
If the argument to <kbd>USER</kbd> contains spaces, you must enclose |
| 3069 |
the argument in double quotes. |
| 3070 |
</p> |
| 3071 |
</div> |
| 3072 |
|
| 3073 |
<h3 class="docs">The second argument – separator style</h3> |
| 3074 |
|
| 3075 |
<p> |
| 3076 |
If you choose <kbd>DIGIT</kbd>, <kbd>ALPHA</kbd>, <kbd>alpha</kbd>, |
| 3077 |
<kbd>ROMAN<n></kbd>, or <kbd>roman<n></kbd>, you may |
| 3078 |
enter the optional argument, <kbd>separator</kbd>, to say what kind |
| 3079 |
of separator you want after the enumerator. The separator can be |
| 3080 |
anything you like. The default for <kbd>DIGIT</kbd> is a period |
| 3081 |
(dot), like this: |
| 3082 |
<br/> |
| 3083 |
<span class="pre-in-pp"> |
| 3084 |
1. A list item |
| 3085 |
</span> |
| 3086 |
The default separator for <kbd>ALPHA</kbd>, <kbd>alpha</kbd>, |
| 3087 |
<kbd>ROMAN<n></kbd> and <kbd>roman<n></kbd> is a right |
| 3088 |
parenthesis, like this: |
| 3089 |
<br/> |
| 3090 |
<span class="pre-in-pp"> |
| 3091 |
a) An alpha-ed list item |
| 3092 |
b) A second alpha-ed list item |
| 3093 |
</span> |
| 3094 |
If you’d prefer, say, digits with right-parenthesis separators |
| 3095 |
instead of the default period, you’d do |
| 3096 |
<br/> |
| 3097 |
<span class="pre-in-pp"> |
| 3098 |
.LIST DIGIT ) |
| 3099 |
.ITEM |
| 3100 |
A numbered list item |
| 3101 |
</span> |
| 3102 |
which would produce |
| 3103 |
<br/> |
| 3104 |
<span class="pre-in-pp"> |
| 3105 |
1) A numbered list item |
| 3106 |
</span> |
| 3107 |
</p> |
| 3108 |
|
| 3109 |
<div class="box-tip"> |
| 3110 |
<p class="tip"> |
| 3111 |
<span class="note">Note:</span> |
| 3112 |
<kbd>BULLET</kbd>, <kbd>DASH</kbd> and <kbd>USER</kbd> do not take a |
| 3113 |
separator. |
| 3114 |
</p> |
| 3115 |
</div> |
| 3116 |
|
| 3117 |
<h3 class="docs">The third argument – prefix style</h3> |
| 3118 |
|
| 3119 |
<p> |
| 3120 |
Additionally, you may give a prefix (i.e. a character |
| 3121 |
that comes <i>before</i> the enumerator) when your |
| 3122 |
enumerator style for a particular list is <kbd>DIGIT</kbd>, |
| 3123 |
<kbd>ALPHA</kbd>, <kbd>alpha</kbd>, <kbd>ROMAN<n></kbd> or |
| 3124 |
<kbd>roman<n></kbd>. In the arguments to LIST, the prefix |
| 3125 |
comes <i>after</i> the separator, which is counter-intuitive, |
| 3126 |
so please be careful. |
| 3127 |
</p> |
| 3128 |
|
| 3129 |
<p> |
| 3130 |
A prefix can be anything you like. Most likely, you’ll want |
| 3131 |
some kind of open-bracket, such as a left parenthesis. If, for |
| 3132 |
example, you want a <kbd>DIGIT</kbd> list with the numbers enclosed |
| 3133 |
in parentheses, you’d enter |
| 3134 |
<br/> |
| 3135 |
<span class="pre-in-pp"> |
| 3136 |
.LIST DIGIT ) ( |
| 3137 |
.ITEM |
| 3138 |
The first item on the list. |
| 3139 |
.ITEM |
| 3140 |
The second item on the list. |
| 3141 |
</span> |
| 3142 |
which would produce |
| 3143 |
<br/> |
| 3144 |
<span class="pre-in-pp"> |
| 3145 |
(1) The first item on the list. |
| 3146 |
(2) The second item on the list. |
| 3147 |
</span> |
| 3148 |
</p> |
| 3149 |
|
| 3150 |
<div class="box-tip"> |
| 3151 |
<p class="tip"> |
| 3152 |
<span class="note">Note:</span> |
| 3153 |
<kbd>BULLET</kbd>, <kbd>DASH</kbd> and |
| 3154 |
<kbd>USER</kbd> do not take a prefix. |
| 3155 |
</p> |
| 3156 |
</div> |
| 3157 |
|
| 3158 |
<h3 class="docs">Exiting lists – LIST OFF / BACK or QUIT_LISTS</h3> |
| 3159 |
|
| 3160 |
<p> |
| 3161 |
Any single argument to <kbd>LIST</kbd> other than |
| 3162 |
<kbd>BULLET</kbd>, <kbd>DASH</kbd>, <kbd>DIGIT</kbd>, |
| 3163 |
<kbd>ALPHA</kbd>, <kbd>alpha</kbd>, <kbd>ROMAN<n></kbd>, |
| 3164 |
<kbd>roman<n></kbd> or <kbd>USER</kbd> (e.g. |
| 3165 |
<kbd>LIST OFF</kbd> or <kbd>LIST BACK</kbd>) takes you out |
| 3166 |
of the current list. |
| 3167 |
</p> |
| 3168 |
|
| 3169 |
<p> |
| 3170 |
If you are at the first list-level (or list-depth), mom returns you |
| 3171 |
to the left margin of running text. Any indents that were in effect |
| 3172 |
prior to setting the list are fully restored. |
| 3173 |
</p> |
| 3174 |
|
| 3175 |
<p> |
| 3176 |
If you are in a nested list, mom moves you back one list-level |
| 3177 |
(i.e., does not take you out of the list structure) and restores the |
| 3178 |
enumerator, separator and indent appropriate to that level. |
| 3179 |
</p> |
| 3180 |
|
| 3181 |
<p> |
| 3182 |
Each invocation of <kbd>.LIST</kbd> should thus be matched by |
| 3183 |
a corresponding <kbd>.LIST OFF</kbd> in order to fully exit |
| 3184 |
lists. For example, |
| 3185 |
<br/> |
| 3186 |
<span class="pre-in-pp"> |
| 3187 |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 3188 |
sed diam nonumy eirmod tempor invidunt ut labore. |
| 3189 |
o List item in level 1 |
| 3190 |
o List item in level 1 |
| 3191 |
- List item in level 2 |
| 3192 |
- List item in level 2 |
| 3193 |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 3194 |
sed diam nonumy eirmod tempor invidunt ut labore. |
| 3195 |
</span> |
| 3196 |
is created like this: |
| 3197 |
<br/> |
| 3198 |
<span class="pre-in-pp"> |
| 3199 |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 3200 |
sed diam nonumy eirmod tempor invidunt ut labore. |
| 3201 |
.LIST BULLET |
| 3202 |
.ITEM |
| 3203 |
List item in level 1 |
| 3204 |
.ITEM |
| 3205 |
List item in level 1 |
| 3206 |
.LIST DASH |
| 3207 |
.ITEM |
| 3208 |
List item in level 2 |
| 3209 |
.ITEM |
| 3210 |
List item in level 2 |
| 3211 |
.LIST OFF \" Turn level 2 list off |
| 3212 |
.LIST OFF \" Turn level 1 list off |
| 3213 |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 3214 |
sed diam nonumy eirmod tempor invidunt ut labore. |
| 3215 |
</span> |
| 3216 |
Alternatively, you may use the single-purpose macro |
| 3217 |
<kbd>.QUIT_LISTS</kbd>, to get yourself out of a list structure. In |
| 3218 |
the example above, the two <kbd>.LIST OFF</kbd> lines could be |
| 3219 |
replaced with a single <kbd>.QUIT_LISTS</kbd>. |
| 3220 |
</p> |
| 3221 |
|
| 3222 |
<div class="macro-id-overline"> |
| 3223 |
<h3 id="item" class="macro-id">ITEM</h3> |
| 3224 |
</div> |
| 3225 |
|
| 3226 |
<div class="box-macro-args"> |
| 3227 |
Macro: <b>ITEM</b> <kbd class="macro-args">[<enumerator>] [<space>]</kbd> |
| 3228 |
</div> |
| 3229 |
<p class="requires"> |
| 3230 |
• The argument to <kbd style="font-style: normal"><space></kbd> requires a |
| 3231 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3232 |
</p> |
| 3233 |
|
| 3234 |
<p> |
| 3235 |
After you’ve initialized a list with |
| 3236 |
<a href="#list">LIST</a>, |
| 3237 |
precede each item you want in the list with <kbd>.ITEM</kbd>. Mom |
| 3238 |
takes care of everything else with respect to setting the item |
| 3239 |
appropriate to the list you’re in. |
| 3240 |
</p> |
| 3241 |
|
| 3242 |
<p> |
| 3243 |
If you’ve chosen the <kbd>VARIABLE</kbd> argument when |
| 3244 |
invoking LIST, ITEM must be followed by an enumerator character. |
| 3245 |
</p> |
| 3246 |
|
| 3247 |
<p> |
| 3248 |
If you give ITEM a space argument, either by itself or after a |
| 3249 |
variable enumerator character, the item will be spaced by the amount |
| 3250 |
of the argument. |
| 3251 |
</p> |
| 3252 |
|
| 3253 |
<p> |
| 3254 |
In document processing, it is valid to have list items that contain |
| 3255 |
multiple paragraphs. Simply issue a |
| 3256 |
<kbd><a href="#pp">.PP</a></kbd> |
| 3257 |
request for each paragraph <i>following</i> the first item. |
| 3258 |
I.e., don’t do this: |
| 3259 |
<br/> |
| 3260 |
<span class="pre-in-pp"> |
| 3261 |
.ITEM |
| 3262 |
.PP |
| 3263 |
Some text... |
| 3264 |
.PP |
| 3265 |
A second paragraph of text |
| 3266 |
</span> |
| 3267 |
but rather |
| 3268 |
<br/> |
| 3269 |
<span class="pre-in-pp"> |
| 3270 |
.ITEM |
| 3271 |
Some text... |
| 3272 |
.PP |
| 3273 |
A second paragraph of text |
| 3274 |
</span> |
| 3275 |
</p> |
| 3276 |
|
| 3277 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 3278 |
<h3 id="list-control" class="docs defaults">LIST control macros and defaults</h3> |
| 3279 |
|
| 3280 |
<p style="margin-top: 0; margin-left: .5em"> |
| 3281 |
LIST control macros may not be |
| 3282 |
<a href="#grouping">grouped</a>. |
| 3283 |
</p> |
| 3284 |
|
| 3285 |
<ol style="margin-top: -.5em; padding-left: 1.5em; padding-bottom: .5em;"> |
| 3286 |
<li><a href="#shift-list">Indenting lists (SHIFT_LIST)</a></li> |
| 3287 |
<li><a href="#reset-list">Resetting an initialized list’s enumerator (RESET_LIST)</a></li> |
| 3288 |
<li><a href="#pad-list-digits">Padding digit enumerators (PAD_LIST_DIGITS)</a></li> |
| 3289 |
</ol> |
| 3290 |
</div> |
| 3291 |
|
| 3292 |
<h4 id="shift-list" class="docs" style="margin-top: -1.5em;">1. Indenting lists – SHIFT_LIST</h4> |
| 3293 |
|
| 3294 |
<p> |
| 3295 |
If you want a list to be indented to the right of running text, or |
| 3296 |
indented to the right of a current list, use the macro SHIFT_LIST |
| 3297 |
immediately after |
| 3298 |
<a href="#list">LIST</a>. |
| 3299 |
SHIFT_LIST takes just one argument: the amount by which you want the |
| 3300 |
list shifted to the right. The argument requires a |
| 3301 |
<a href="definitions.html#unitofmeasure">unit of measure</a>. |
| 3302 |
</p> |
| 3303 |
|
| 3304 |
<p> |
| 3305 |
SHIFT_LIST applies only to the list you just initialized with LIST. |
| 3306 |
It does not carry over from one invocation of LIST to the next. |
| 3307 |
However, the indent remains in effect when you return to a list |
| 3308 |
level in a nested list. |
| 3309 |
</p> |
| 3310 |
|
| 3311 |
<p> |
| 3312 |
For example, if you want a 2-level list, with each list indented to |
| 3313 |
the right by 18 |
| 3314 |
<a href="definitions.html#picaspoints">points</a>, |
| 3315 |
<br/> |
| 3316 |
<span class="pre-in-pp"> |
| 3317 |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 3318 |
sed diam nonumy eirmod tempor invidunt ut labore. |
| 3319 |
.LIST \" List 1 |
| 3320 |
.SHIFT_LIST 18p \" Indent 18 points right of running text |
| 3321 |
.ITEM |
| 3322 |
List 1 item |
| 3323 |
.ITEM |
| 3324 |
List 1 item |
| 3325 |
.LIST DASH \" List 2 |
| 3326 |
.SHIFT_LIST 18p \" Indent 18 points right of list 1 |
| 3327 |
.ITEM |
| 3328 |
List 2 item |
| 3329 |
.ITEM |
| 3330 |
List 2 item |
| 3331 |
.LIST OFF \" Move back to list 1 |
| 3332 |
.ITEM |
| 3333 |
List 1 item |
| 3334 |
.ITEM |
| 3335 |
List 1 item |
| 3336 |
.LIST OFF \" Exit lists |
| 3337 |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 3338 |
sed diam nonumy eirmod tempor invidunt ut labore. |
| 3339 |
</span> |
| 3340 |
produces (approximately) |
| 3341 |
<br/> |
| 3342 |
<span class="pre-in-pp"> |
| 3343 |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 3344 |
sed diam nonumy eirmod tempor invidunt ut labore. |
| 3345 |
• List 1 item |
| 3346 |
• List 1 item |
| 3347 |
- List 2 item |
| 3348 |
- List 2 item |
| 3349 |
• List 1 item |
| 3350 |
• List 1 item |
| 3351 |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 3352 |
sed diam nonumy eirmod tempor invidunt ut labore. |
| 3353 |
</span> |
| 3354 |
</p> |
| 3355 |
|
| 3356 |
<h4 id="reset-list" class="docs" style="margin-top: -.25em;">2. Resetting an initialized list’s enumerator – RESET_LIST</h4> |
| 3357 |
|
| 3358 |
<p> |
| 3359 |
In nested lists, if your choice of enumerator for a given level |
| 3360 |
of list is <kbd>DIGIT</kbd>, <kbd>ALPHA</kbd>, <kbd>alpha</kbd>, |
| 3361 |
<kbd>ROMAN</kbd> or <kbd>roman</kbd>, you may sometimes want to |
| 3362 |
reset the list’s enumerator when you return to that list. |
| 3363 |
Consider the following: |
| 3364 |
<br/> |
| 3365 |
<span class="pre-in-pp"> |
| 3366 |
Things to do religiously each and every day: |
| 3367 |
• take care of the dog |
| 3368 |
a) walk every day |
| 3369 |
b) brush once a week |
| 3370 |
- trim around the eyes every fourth brushing |
| 3371 |
- don’t forget to check nails |
| 3372 |
• feed the cat |
| 3373 |
d) soft food on Mon., Wed. and Fri. |
| 3374 |
e) dry food on Tues., Thurs. and Sat. |
| 3375 |
f) canned tuna on Sunday |
| 3376 |
</span> |
| 3377 |
</p> |
| 3378 |
|
| 3379 |
<p> |
| 3380 |
The alpha-enumerated items under “Feed the cat” |
| 3381 |
would be normally a), b), c), but we want d), e), f). The |
| 3382 |
solution is to reset the second <kbd>.LIST alpha</kbd>’s |
| 3383 |
enumerator—before the first <kbd>.ITEM</kbd>—with |
| 3384 |
the macro RESET_LIST. |
| 3385 |
</p> |
| 3386 |
|
| 3387 |
<p> |
| 3388 |
With no argument, <kbd>.RESET_LIST</kbd> resets an incrementing |
| 3389 |
enumerator to 1, A, a, I or i depending on the style of enumerator. |
| 3390 |
If you pass <kbd>.RESET_LIST</kbd> a |
| 3391 |
<a href="definitions.html#numericargument">numeric argument</a>, |
| 3392 |
it represents the starting position for an incrementing enumerator. In |
| 3393 |
the example above, <kbd>.RESET_LIST 4</kbd> starts the second |
| 3394 |
alpha-ed list at d). |
| 3395 |
</p> |
| 3396 |
|
| 3397 |
<h4 id="pad-list-digits" class="docs" style="margin-top: -.25em;">3. Padding digit enumerators – PAD_LIST_DIGITS</h4> |
| 3398 |
|
| 3399 |
<h5 class="docs" style="margin-top: 1em;">Arabic digits</h5> |
| 3400 |
|
| 3401 |
<p style="margin-top: .5em;"> |
| 3402 |
When your choice of enumerators is DIGIT and the number of items |
| 3403 |
in the list exceeds nine (9), you have to make a design decision: |
| 3404 |
should mom leave room for the extra numeral in two-numeral digits to |
| 3405 |
the right or the left of the single-numeral digits? |
| 3406 |
</p> |
| 3407 |
|
| 3408 |
<p> |
| 3409 |
If you want the extra space to the right, invoke the macro |
| 3410 |
<kbd>.PAD_LIST_DIGITS</kbd> (with no argument), after |
| 3411 |
<kbd>.LIST</kbd> and before <kbd>.ITEM</kbd>. This will produce |
| 3412 |
something like |
| 3413 |
<br/> |
| 3414 |
<span class="pre-in-pp"> |
| 3415 |
8. List item |
| 3416 |
9. List item |
| 3417 |
10. List item |
| 3418 |
</span> |
| 3419 |
If you want the extra space to the left, invoke |
| 3420 |
<kbd>.PAD_LIST_DIGITS</kbd> with the single argument, |
| 3421 |
<kbd>LEFT</kbd>, which will produce |
| 3422 |
<br/> |
| 3423 |
<span class="pre-in-pp"> |
| 3424 |
8. List item |
| 3425 |
9. List item |
| 3426 |
10. List item |
| 3427 |
</span> |
| 3428 |
</p> |
| 3429 |
|
| 3430 |
<p> |
| 3431 |
Of course, if the number of items in the list is less than ten |
| 3432 |
(10), there’s no need for PAD_LIST_DIGITS. |
| 3433 |
</p> |
| 3434 |
|
| 3435 |
<h5 class="docs" style="margin-top: -.5em;">Roman numerals</h5> |
| 3436 |
|
| 3437 |
<p style="margin-top: .5em;"> |
| 3438 |
By default, mom sets roman numerals in lists flush left. The |
| 3439 |
<kbd><n></kbd> argument appended to <kbd>ROMAN<n></kbd> |
| 3440 |
or <kbd>roman<n></kbd> allows her to calculate how much space |
| 3441 |
to put after each numeral in order to ensure that the text of items |
| 3442 |
lines up properly. |
| 3443 |
</p> |
| 3444 |
|
| 3445 |
<p> |
| 3446 |
If you’d like the roman numerals to line |
| 3447 |
up flush right (i.e. be padded "left"), simply |
| 3448 |
invoke <kbd>.PAD_LIST_DIGITS LEFT</kbd> after |
| 3449 |
<kbd>.LIST ROMAN<n></kbd> or |
| 3450 |
<kbd>.LIST roman<n></kbd> and before <kbd>.ITEM</kbd>. |
| 3451 |
</p> |
| 3452 |
|
| 3453 |
<div class="rule-short"><hr/></div> |
| 3454 |
|
| 3455 |
<!-- -LINE NUMBERING- --> |
| 3456 |
|
| 3457 |
<h2 id="number-lines-intro" class="macro-group">Line numbering – prepend numbers to output lines</h2> |
| 3458 |
|
| 3459 |
<ul style="margin-left: -.5em;"> |
| 3460 |
<li><a href="#number-lines">Macro: <b>NUMBER_LINES</b></a> |
| 3461 |
<ul style="margin-left: -.5em;"> |
| 3462 |
<li><a href="#ln-control">Line numbering control (off/suspend, resume)</a></li> |
| 3463 |
</ul></li> |
| 3464 |
<li><a href="#number-lines-control">Control macros and defaults</a> |
| 3465 |
<ul style="margin-left: -.5em;"> |
| 3466 |
<li><a href="#number-quote-lines">Line numbering control macros for quotes and blockquotes</a></li> |
| 3467 |
</ul></li> |
| 3468 |
</ul> |
| 3469 |
|
| 3470 |
<p style="margin-top: -.5em;"> |
| 3471 |
When you turn line-numbering on, mom, by default |
| 3472 |
</p> |
| 3473 |
<ul style="margin-top: -.5em;"> |
| 3474 |
<li>numbers every line of paragraph text; line-numbering is |
| 3475 |
suspended for all other document elements (docheaders, |
| 3476 |
epigraphs, headings, quotes, etc.) and special pages (covers, |
| 3477 |
endotes, bibliographies, etc.); be aware, though, that if you |
| 3478 |
turn |
| 3479 |
<a href="definitions.html#docheader">docheaders</a> |
| 3480 |
off (with |
| 3481 |
<a href="docprocessing.html#docheader">DOCHEADER</a> OFF) |
| 3482 |
and create your own docheader, mom |
| 3483 |
<i>will</i> line-number your custom docheader, so turn |
| 3484 |
line numbering on afterwards |
| 3485 |
</li> |
| 3486 |
<li>doesn’t touch your line length; line numbers are hung |
| 3487 |
outside your current left margin (as set with |
| 3488 |
<a href="typesetting.html#l-margin">L_MARGIN</a>, |
| 3489 |
<a href="typesetting.html#page">PAGE</a> |
| 3490 |
or |
| 3491 |
<a href="docprocessing.html#doc-left-margin">DOC_LEFT_MARGIN</a>), |
| 3492 |
regardless of any indents that may be active |
| 3493 |
</li> |
| 3494 |
<li>separates line numbers from running text by two |
| 3495 |
<a href="definitions.html#figurespace">figure spaces</a>. |
| 3496 |
</li> |
| 3497 |
</ul> |
| 3498 |
|
| 3499 |
<p> |
| 3500 |
Mom expects that |
| 3501 |
<a href="#quote">QUOTE</a>s |
| 3502 |
and |
| 3503 |
<a href="#blockquote">BLOCKQUOTE</a>s |
| 3504 |
will not be line-numbered, however control macros are provided to |
| 3505 |
enable line numbering for either. |
| 3506 |
See |
| 3507 |
<a href="#number-quote-lines">Line numbering control macros for quotes and blockquotes</a>. |
| 3508 |
</p> |
| 3509 |
|
| 3510 |
<!-- -NUMBER_LINES- --> |
| 3511 |
|
| 3512 |
<div class="macro-id-overline"> |
| 3513 |
<h3 id="number-lines" class="macro-id">NUMBER_LINES</h3> |
| 3514 |
</div> |
| 3515 |
|
| 3516 |
<div class="box-macro-args"> |
| 3517 |
Macro: <b>NUMBER_LINES</b> <kbd class="macro-args"><start number> [ <which lines to number> [ <gutter> ] ]</kbd> |
| 3518 |
</div> |
| 3519 |
|
| 3520 |
<div class="box-macro-args" style="margin-top: 1em;"> |
| 3521 |
Macro: <b>NUMBER_LINES</b> <kbd class="macro-args"><anything> | RESUME</kbd> |
| 3522 |
</div> |
| 3523 |
|
| 3524 |
<p> |
| 3525 |
NUMBER_LINES does what it says: prints line numbers, to the left of |
| 3526 |
<a href="definitions.html#outputline">output lines</a> |
| 3527 |
of paragraph text. One of the chief reasons for wanting numbered |
| 3528 |
lines is in order to identify footnotes or endnotes by line number |
| 3529 |
instead of by a marker in the text. (See |
| 3530 |
<a href="#footnotes-by-linenumber">Footnotes by linenumber</a> |
| 3531 |
for instructions on line-numbered footnotes, and |
| 3532 |
<a href="#endnote-marker-style">ENDNOTE_MARKER_STYLE LINE</a> |
| 3533 |
for instructions on line-numbered endnotes.) |
| 3534 |
</p> |
| 3535 |
|
| 3536 |
<div class="box-tip"> |
| 3537 |
<p class="tip"> |
| 3538 |
<span class="note">Note: QUOTE / BLOCKQUOTE</span> |
| 3539 |
<br/> |
| 3540 |
By default, mom does not include quotes and blockquotes in the line |
| 3541 |
numbering scheme. If you wish to enable line numbering for them, |
| 3542 |
use the macros |
| 3543 |
<a href="#number-quote-lines">NUMBER_QUOTE_LINES</a> |
| 3544 |
or |
| 3545 |
<a href="#number-quote-lines">NUMBER_BLOCKQUOTE_LINES</a>. |
| 3546 |
Do not use NUMBER_LINES inside |
| 3547 |
<a href="#quote">QUOTE</a> |
| 3548 |
or |
| 3549 |
<a href="#blockquote">BLOCKQUOTE</a>. |
| 3550 |
</p> |
| 3551 |
</div> |
| 3552 |
|
| 3553 |
<div class="box-tip"> |
| 3554 |
<p class="tip"> |
| 3555 |
<span class="note">Note: LIST</span> |
| 3556 |
<br/> |
| 3557 |
By default, |
| 3558 |
<a href="#item">ITEM</a>s |
| 3559 |
in a |
| 3560 |
<a href="#list">LIST</a> |
| 3561 |
are included in the line numbering scheme. If |
| 3562 |
<a href="typesetting.html#quad">QUAD C</a> |
| 3563 |
or |
| 3564 |
<a href="typesetting.html#quad">QUAD R</a> |
| 3565 |
are in effect prior to the start of the list, line numbers are set |
| 3566 |
to the left of longest item, not the document’s left margin. |
| 3567 |
If you wish to disable line numbering for a such (or any) lists, |
| 3568 |
put <kbd>.NUMBER_LINES OFF</kbd> before the first ITEM and insert |
| 3569 |
<kbd>NUMBER_LINES RESUME</kbd> after the last. |
| 3570 |
</div> |
| 3571 |
|
| 3572 |
|
| 3573 |
<p> |
| 3574 |
The first time you invoke |
| 3575 |
<a href="#number-lines">NUMBER_LINES</a> |
| 3576 |
you must, at a minimum, tell it what line number you want the |
| 3577 |
<i>next</i> |
| 3578 |
<a href="definitions.html#outputline">output line</a> |
| 3579 |
to have. The optional arguments <kbd><which lines to number></kbd> |
| 3580 |
and <kbd><gutter></kbd> allow you to state which lines should |
| 3581 |
be numbered (e.g. every five or every ten lines), and the gutter to |
| 3582 |
place between line numbers and |
| 3583 |
<a href="definitions.html#running">running text</a>. |
| 3584 |
</p> |
| 3585 |
|
| 3586 |
<p> |
| 3587 |
For example, if you want mom to number output lines using her defaults, |
| 3588 |
<span class="pre-in-pp"> |
| 3589 |
.NUMBER_LINES 1 |
| 3590 |
</span> |
| 3591 |
will prepend the number, 1, to the next output line and number all |
| 3592 |
subsequent output lines sequentially. |
| 3593 |
</p> |
| 3594 |
|
| 3595 |
<p> |
| 3596 |
If you want only every five lines numbered, pass mom the optional |
| 3597 |
<kbd><which lines to number></kbd> argument, like this: |
| 3598 |
<span class="pre-in-pp"> |
| 3599 |
.NUMBER_LINES 1 5 |
| 3600 |
</span> |
| 3601 |
</p> |
| 3602 |
|
| 3603 |
<div class="box-important"> |
| 3604 |
<p class="tip-top"> |
| 3605 |
<span class="important">GOTCHA!</span> |
| 3606 |
The argument to <kbd><which lines to number></kbd> instructs |
| 3607 |
mom to number only those lines that are multiples of the argument. |
| 3608 |
Hence, in the above example, line number <kbd>1</kbd> will |
| 3609 |
<i>not</i> be numbered, since <kbd>1</kbd> is not a multiple of |
| 3610 |
<kbd>5</kbd>. |
| 3611 |
</p> |
| 3612 |
|
| 3613 |
<p> |
| 3614 |
If you want line number <kbd>1</kbd> to be numbered, you have |
| 3615 |
to invoke <kbd><span class="nobr">.NUMBER_LINES 1 1</span></kbd> before the |
| 3616 |
first output line you want numbered, then study your <i>output</i> |
| 3617 |
copy and determine where best to insert the following in your |
| 3618 |
<i>input</i> text: |
| 3619 |
<br/> |
| 3620 |
<span class="pre-in-pp"> |
| 3621 |
.NUMBER_LINES \n[ln] 5 |
| 3622 |
</span> |
| 3623 |
(The escape <kbd>\n[ln]</kbd> ensures that NUMBER_LINES |
| 3624 |
automatically supplies the correct value for the first argument, |
| 3625 |
<kbd><start number></kbd>.) |
| 3626 |
</p> |
| 3627 |
|
| 3628 |
<p class="tip-bottom"> |
| 3629 |
Following this recipe, line number <kbd>1</kbd> will be numbered; |
| 3630 |
subsequently, only line numbers that are multiples of 5 will be |
| 3631 |
numbered. A little experimentation may be required to determine the |
| 3632 |
best place for it in your input text. |
| 3633 |
</p> |
| 3634 |
</div> |
| 3635 |
|
| 3636 |
<p> |
| 3637 |
The optional argument, <kbd><gutter></kbd>, tells mom how much |
| 3638 |
space to put between the line numbers and the running text. |
| 3639 |
<kbd><gutter></kbd> does not require (or even accept) a |
| 3640 |
<a href="definitions.html#unitofmeasure">unit of measure</a>. |
| 3641 |
The argument you pass to it is the number of |
| 3642 |
<a href="definitions.html#figurespace">figure spaces</a> |
| 3643 |
you want between line numbers and running text. |
| 3644 |
Mom’s default gutter is two figure spaces. If |
| 3645 |
you’d like a wider gutter, say, four figures spaces, you’d do |
| 3646 |
<br/> |
| 3647 |
<span class="pre-in-pp"> |
| 3648 |
.NUMBER_LINES 1 1 4 |
| 3649 |
| |
| 3650 |
+-- Notice you *must* supply a value |
| 3651 |
for the 2nd argument in order to supply |
| 3652 |
a value for the 3rd. |
| 3653 |
</span> |
| 3654 |
</p> |
| 3655 |
|
| 3656 |
<div class="box-tip"> |
| 3657 |
<p class="tip"> |
| 3658 |
<span class="note">Note:</span> |
| 3659 |
When giving a value for <kbd><gutter></kbd>, you cannot skip |
| 3660 |
the <kbd><which lines to number></kbd> argument. Either fill |
| 3661 |
in the desired value, or use two double-quotes ( <kbd>""</kbd> ) to |
| 3662 |
have mom use the value formerly in effect. |
| 3663 |
</p> |
| 3664 |
</div> |
| 3665 |
|
| 3666 |
<h3 id="ln-control" class="docs" style="margin-top: -.5em;">Off/suspend, resume</h3> |
| 3667 |
|
| 3668 |
<p style="margin-top: .5em;"> |
| 3669 |
After initializing line numbering, you can suspend it, with the |
| 3670 |
option to resume, using |
| 3671 |
<br/> |
| 3672 |
<span class="pre-in-pp"> |
| 3673 |
.NUMBER_LINES OFF |
| 3674 |
</span> |
| 3675 |
(or <kbd>END</kbd>, <kbd>QUIT</kbd>, <kbd>X</kbd>, etc). |
| 3676 |
</p> |
| 3677 |
|
| 3678 |
<p>To resume line numbering: |
| 3679 |
<br/> |
| 3680 |
<span class="pre-in-pp"> |
| 3681 |
.NUMBER_LINES RESUME |
| 3682 |
</span> |
| 3683 |
When you resume, the line number will be the next in sequence |
| 3684 |
from where you left off. If that is not what you want—say |
| 3685 |
you want to reset the line number to <kbd>1</kbd>—re-invoke |
| 3686 |
<kbd>.NUMBER_LINES</kbd> with whatever arguments are needed for the |
| 3687 |
desired result. |
| 3688 |
</p> |
| 3689 |
|
| 3690 |
<div class="box-tip" style="margin-left: 6px;"> |
| 3691 |
<p class="tip"> |
| 3692 |
<span class="note">Additional notes:</span> |
| 3693 |
</p> |
| 3694 |
<ol style="margin-top: -1.25em; margin-left: -1.25em; padding-bottom: .5em;"> |
| 3695 |
<li>In document processing, you may invoke |
| 3696 |
<kbd>.NUMBER_LINES</kbd> either before or after |
| 3697 |
<kbd>.START</kbd>. Mom doesn’t care. |
| 3698 |
</li> |
| 3699 |
<li style="margin-top: .25em;">If you’re collating documents with |
| 3700 |
<a href="rectoverso.html#collate">COLLATE</a>, |
| 3701 |
you should re-invoke, at a minimum, |
| 3702 |
<kbd>.NUMBER_LINES 1</kbd> for each collated |
| 3703 |
document, in order to ensure that each begins with the |
| 3704 |
number <kbd>1</kbd> prepended to the first line. |
| 3705 |
</li> |
| 3706 |
<li style="margin-top: .25em;">Occasionally, you may want to |
| 3707 |
change the current gutter between line numbers and running |
| 3708 |
text without knowing what the next output line number should |
| 3709 |
be. Since NUMBER_LINES requires this number as its first |
| 3710 |
argument, in such instances, pass NUMBER_LINES as its first |
| 3711 |
argument the escape |
| 3712 |
<kbd>\n[ln]</kbd>. |
| 3713 |
<br/> |
| 3714 |
<span style="display: block; margin-top: .5em;">For example, if you were numbering every 5 lines with a |
| 3715 |
gutter of 2 (figure spaces) and you needed to change the |
| 3716 |
gutter to 4 (figures spaces), |
| 3717 |
<br/> |
| 3718 |
<span class="pre-in-pp" style="margin-bottom: -2em;"> |
| 3719 |
.NUMBER_LINES \n[ln] 5 4 |
| 3720 |
</span> |
| 3721 |
would do the trick. |
| 3722 |
</span> |
| 3723 |
</li> |
| 3724 |
<li style="margin-top: .25em;">If you’re using |
| 3725 |
<a href="#mn-intro">margin notes</a> |
| 3726 |
in a document, be sure to set the gutter for margin notes wide |
| 3727 |
enough to allow room for the line numbers. |
| 3728 |
</li> |
| 3729 |
<li style="margin-top: .25em;">Mom (groff, actually), only numbers |
| 3730 |
lines <i>to the left</i> of running text. For aesthetic |
| 3731 |
reason, therefore, the use of line numbering when setting a |
| 3732 |
document in columns is discouraged. However, should you wish |
| 3733 |
to number lines when setting in columns, make sure the |
| 3734 |
<a href="definitions.html#gutter">gutter(s)</a> |
| 3735 |
between columns is wide enough to leave room for the numbers. |
| 3736 |
</li> |
| 3737 |
</ol> |
| 3738 |
</div> |
| 3739 |
|
| 3740 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 3741 |
<h3 id="number-lines-control" class="docs defaults">NUMBER_LINES control macros and defaults</h3> |
| 3742 |
|
| 3743 |
<ol style="margin-top: .5em; padding-bottom: .5em;"> |
| 3744 |
<li><a href="#number-lines-general">Family/font/size/colour</a></li> |
| 3745 |
<li><a href="#number-lines-per-section">Reset line numbering after COLLATE</a></li> |
| 3746 |
<li><a href="#number-quote-lines">Line numbering control for quotes and blockquotes</a> |
| 3747 |
<ul style="padding-left: 1em"> |
| 3748 |
<li><a href="#number-quote-lines-global">Including QUOTEs and BLOCKQUOTEs in the line numbering scheme</a></li> |
| 3749 |
<li><a href="#number-quote-lines-selective">Selectively enabling line numbering for QUOTEs and BLOCKQUOTEs</a></li> |
| 3750 |
<li><a href="#number-quote-lines-gutter">Changing the line number gutter for QUOTEs and BLOCKQUOTEs</a></li> |
| 3751 |
<li><a href="#number-quote-lines-silent">Silently increment line numbers during QUOTE and BLOCKQUOTE</a></li> |
| 3752 |
</ul></li> |
| 3753 |
</ol> |
| 3754 |
</div> |
| 3755 |
|
| 3756 |
<h4 id="number-lines-general" class="docs" style="margin-top: -1.5em; margin-bottom: .5em;">1. Family/font/size/colour</h4> |
| 3757 |
|
| 3758 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 3759 |
<p class="defaults" style="padding-top: 6px;"> |
| 3760 |
See |
| 3761 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 3762 |
<br/> |
| 3763 |
The following NUMBER_LINES control macros may also be |
| 3764 |
<a href="#grouping">grouped</a> |
| 3765 |
using LINENUMBER_STYLE. |
| 3766 |
</p> |
| 3767 |
<span class="pre defaults"> |
| 3768 |
.LINENUMBER_FAMILY default = prevailing family or document family; default is Times Roman |
| 3769 |
.LINENUMBER_FONT default = prevailing font |
| 3770 |
.LINENUMBER_SIZE default = +0 |
| 3771 |
.LINENUMBER_COLOR default = black |
| 3772 |
</span> |
| 3773 |
</div> |
| 3774 |
|
| 3775 |
<h4 id="number-lines-per-section" class="docs" style="margin-top: -1.75em;">2. Reset line numbering after COLLATE</h4> |
| 3776 |
|
| 3777 |
<p> |
| 3778 |
After |
| 3779 |
<a href="rectoverso.html#collate">COLLATE</a>, |
| 3780 |
line numbering continues from where it left off. If you would like |
| 3781 |
each chapter or major document section to begin its line numbering |
| 3782 |
at “1”, invoke |
| 3783 |
<span class="pre-in-pp"> |
| 3784 |
.NUMBER_LINES_PER_SECTION |
| 3785 |
</span> |
| 3786 |
after |
| 3787 |
<a href="#number-lines"><kbd>.NUMBER_LINES</kbd></a>. |
| 3788 |
</p> |
| 3789 |
|
| 3790 |
<h4 id="number-quote-lines" class="docs" style="margin-top: 0em;">3. Line numbering control macros for QUOTE and BLOCKQUOTE</h4> |
| 3791 |
|
| 3792 |
<h5 id="number-quote-lines-global" class="docs" style="font-size: 87%">• Including QUOTEs and BLOCKQUOTEs in the line numbering scheme</h5> |
| 3793 |
|
| 3794 |
<p> |
| 3795 |
If you’d like mom to number lines in a |
| 3796 |
<a href="#quote">QUOTE</a> |
| 3797 |
or |
| 3798 |
<a href="#blockquote">BLOCKQUOTE</a> |
| 3799 |
as part of the same order and sequence as paragraph text, |
| 3800 |
invoke |
| 3801 |
<span class="pre-in-pp"> |
| 3802 |
.NUMBER_QUOTE_LINES |
| 3803 |
</span> |
| 3804 |
or |
| 3805 |
<span class="pre-in-pp"> |
| 3806 |
.NUMBER_BLOCKQUOTE_LINES |
| 3807 |
</span> |
| 3808 |
either before or after NUMBER_LINES. Both behave identically with |
| 3809 |
respect to the affected macro (i.e. QUOTE or BLOCKQUOTE). |
| 3810 |
</p> |
| 3811 |
|
| 3812 |
<h5 id="number-quote-lines-selective" class="docs" style="font-size: 87%">• Selectively enabling line numbering for QUOTEs and BLOCKQUOTEs</h5> |
| 3813 |
|
| 3814 |
<p> |
| 3815 |
If you’d like to enable line numbering selectively for quotes |
| 3816 |
and blockquotes <i>only</i>, invoke <kbd>.NUMBER_QUOTE_LINES</kbd> |
| 3817 |
or <kbd>.NUMBER_BLOCKQUOTE_LINES</kbd> first, followed by |
| 3818 |
<kbd>.NUMBER_LINES <n></kbd>, where <kbd><n></kbd> |
| 3819 |
is the first line number of the quote or blockquote. Afterwards, |
| 3820 |
enter your QUOTE or BLOCKQUOTE. When the quote or blockquote |
| 3821 |
is finished (i.e. after <kbd>.QUOTE OFF</kbd> or |
| 3822 |
<kbd>.BLOCKQUOTE OFF</kbd>), turn line numbering off. Each |
| 3823 |
subsequent quote or blockquote you want line numbered requires |
| 3824 |
only <kbd>.NUMBER_LINES <n></kbd> (with a corresponding |
| 3825 |
<kbd>.NUMBER_LINES OFF</kbd>) until you turn NUMBER_QUOTE_LINES or |
| 3826 |
NUMBER_BLOCKQUOTE_LINES off. |
| 3827 |
</p> |
| 3828 |
|
| 3829 |
<p> |
| 3830 |
Here’s a recipe where the first line number of quotes starts |
| 3831 |
repeatedly at “1”. |
| 3832 |
<span class="pre-in-pp"> |
| 3833 |
<running text> |
| 3834 |
.NUMBER_QUOTE_LINES |
| 3835 |
.NUMBER_LINES 1 |
| 3836 |
.QUOTE |
| 3837 |
<text of quote> |
| 3838 |
.QUOTE OFF |
| 3839 |
.NUMBER_LINES OFF |
| 3840 |
<further running text> |
| 3841 |
.NUMBER_LINES 1 |
| 3842 |
.QUOTE |
| 3843 |
<text of quote> |
| 3844 |
.QUOTE OFF |
| 3845 |
.NUMBER_LINES OFF |
| 3846 |
<further running text> |
| 3847 |
</span> |
| 3848 |
</p> |
| 3849 |
|
| 3850 |
<h5 id="number-quote-lines-gutter" class="docs" style="font-size: 87%">• Changing the line number gutter for QUOTEs and BLOCKQUOTEs</h5> |
| 3851 |
|
| 3852 |
<p> |
| 3853 |
Owing to groff’s restriction on accepting only the figure |
| 3854 |
space as the line number |
| 3855 |
<a href="definitions.html#gutter">gutter</a>’s |
| 3856 |
unit of measure, it is not possible for line numbers in quotes |
| 3857 |
or blockquotes to hang outside a document’s overall left |
| 3858 |
margin and be reliably flush with the line numbers of paragraph |
| 3859 |
text. Consequently, line numbers in quotes or blockquotes hang |
| 3860 |
to the left of the quote, separated by the currently active |
| 3861 |
gutter for NUMBER_LINES. |
| 3862 |
</p> |
| 3863 |
|
| 3864 |
<p> |
| 3865 |
If you’d like to change the line number gutter for quotes |
| 3866 |
or blockquotes, invoke <kbd>.NUMBER_QUOTE_LINES</kbd> or |
| 3867 |
<kbd>.NUMBER_BLOCKQUOTE_LINES</kbd> with a digit representing the |
| 3868 |
number of |
| 3869 |
<a href="definitions.html#figurespace">figure spaces</a> |
| 3870 |
you’d like between the line numbers and the quoted text, like this: |
| 3871 |
<br/> |
| 3872 |
<span class="pre-in-pp"> |
| 3873 |
.NUMBER_QUOTE_LINES 3 |
| 3874 |
</span> |
| 3875 |
With the above, line numbers in quotes (and only quotes) will have |
| 3876 |
a gutter of 3 figure spaces. |
| 3877 |
</p> |
| 3878 |
|
| 3879 |
<h5 id="number-quote-lines-silent" class="docs" style="font-size: 87%">• Silently increment line numbers during QUOTE and BLOCKQUOTE</h5> |
| 3880 |
|
| 3881 |
<p> |
| 3882 |
If you’ve asked mom not to line number quotes or blockquotes, |
| 3883 |
but would like line numbering to continue while they’re |
| 3884 |
being output (as opposed to mom’s default behaviour of |
| 3885 |
<i>suspending</i> incrementing of line numbers during the output of |
| 3886 |
quotes and blockquotes), invoke |
| 3887 |
<span class="pre-in-pp"> |
| 3888 |
.NUMBER_QUOTE_LINES SILENT |
| 3889 |
</span> |
| 3890 |
or |
| 3891 |
<span class="pre-in-pp"> |
| 3892 |
.NUMBER_BLOCKQUOTE_LINES SILENT |
| 3893 |
</span> |
| 3894 |
With these, mom continues to increment line numbers while quotes |
| 3895 |
or blockquotes are being output, but the line numbers won’t |
| 3896 |
appear in the output copy. |
| 3897 |
</p> |
| 3898 |
|
| 3899 |
<p> |
| 3900 |
Once having turned NUMBER_QUOTE_LINES or NUMBER_BLOCKQUOTE_LINES on, |
| 3901 |
you may disable them with |
| 3902 |
<span class="pre-in-pp"> |
| 3903 |
.NUMBER_QUOTE_LINES OFF |
| 3904 |
</span> |
| 3905 |
or |
| 3906 |
<span class="pre-in-pp"> |
| 3907 |
.NUMBER_BLOCKQUOTE_LINES OFF |
| 3908 |
</span> |
| 3909 |
</p> |
| 3910 |
|
| 3911 |
<div class="rule-short"><hr/></div> |
| 3912 |
|
| 3913 |
<!-- ==================================================================== --> |
| 3914 |
|
| 3915 |
<h2 id="footnote-intro" class="macro-group">Footnotes</h2> |
| 3916 |
|
| 3917 |
<ul> |
| 3918 |
<li><a href="#footnote-behaviour">Footnote behaviour</a> |
| 3919 |
<ul style="margin-left: -.5em;"> |
| 3920 |
<li><a href="#fn-and-punct">Footnote markers and punctuation in the running text</a></li> |
| 3921 |
</ul></li> |
| 3922 |
<li><a href="#footnote">Tag: FOOTNOTE</a></li> |
| 3923 |
<li><a href="#footnote-control">Footnote control macros and defaults</a></li> |
| 3924 |
</ul> |
| 3925 |
|
| 3926 |
<p> |
| 3927 |
For something so complex behind the scenes, footnotes are easy to use. |
| 3928 |
You just type, for example, |
| 3929 |
<br/> |
| 3930 |
<span id="footnote-example" class="pre-in-pp"> |
| 3931 |
...the doctrines of Identity as urged by Schelling\c |
| 3932 |
.FOOTNOTE |
| 3933 |
<footnote about who the hell is Schelling> |
| 3934 |
.FOOTNOTE OFF |
| 3935 |
were generally the points of discussion presenting the most |
| 3936 |
of beauty to the imaginative Morella. |
| 3937 |
</span> |
| 3938 |
and be done with it. |
| 3939 |
(Note the obligatory use of the <kbd>\c</kbd> |
| 3940 |
<a href="definitions.html#inlines">inline escape</a>, |
| 3941 |
required whenever your |
| 3942 |
<a href="#footnote-marker-style">FOOTNOTE_MARKER_STYLE</a> |
| 3943 |
is either <kbd>STAR</kbd> [star/dagger footnotes] or |
| 3944 |
<kbd>NUMBER</kbd> [superscript numbers].) |
| 3945 |
</p> |
| 3946 |
|
| 3947 |
<p> |
| 3948 |
After you invoke <kbd>.FOOTNOTE</kbd>, mom takes care of everything: |
| 3949 |
putting footnote markers in the body of the document, keeping track |
| 3950 |
of how many footnotes are on the page, identifying the footnotes |
| 3951 |
themselves appropriately, balancing them properly with the bottom |
| 3952 |
margin, deferring footnotes that don’t fit on the page... |
| 3953 |
Even if you’re using |
| 3954 |
<a href="docprocessing.html#columns">COLUMNS</a>, |
| 3955 |
mom knows what to do, and Does The Right Thing. |
| 3956 |
</p> |
| 3957 |
|
| 3958 |
<div class="box-tip"> |
| 3959 |
<p class="tip"> |
| 3960 |
<span class="note">Note:</span> |
| 3961 |
See |
| 3962 |
<a href="refer.html">refer.html</a> |
| 3963 |
for information on using footnotes with the <kbd>refer</kbd> |
| 3964 |
bibliographic database. |
| 3965 |
</p> |
| 3966 |
</div> |
| 3967 |
|
| 3968 |
<h3 id="footnote-behaviour" class="docs">Footnote behaviour</h3> |
| 3969 |
|
| 3970 |
<p> |
| 3971 |
Footnotes can be sly little beasts. If you’re writing a |
| 3972 |
document that’s footnote-heavy, you might want to read the |
| 3973 |
following. |
| 3974 |
</p> |
| 3975 |
|
| 3976 |
<p> |
| 3977 |
By default, mom marks footnotes with alternating stars (asterisks), |
| 3978 |
daggers, and double-daggers. The first footnote gets a star, the |
| 3979 |
second a dagger, the third a double-dagger, the fourth two stars, |
| 3980 |
the fifth two daggers, etc. If you prefer numbered footnotes, rest |
| 3981 |
assured mom is happy to oblige. |
| 3982 |
</p> |
| 3983 |
|
| 3984 |
<p> |
| 3985 |
A small amount of vertical whitespace and a short horizontal rule |
| 3986 |
separate footnotes from the document body. When |
| 3987 |
<a href="docprocessing.html#flex-vs-shim">shimming</a> |
| 3988 |
is enabled, the amount of whitespace |
| 3989 |
may vary slightly from page to page depending on the number of lines |
| 3990 |
in the footnotes. Mom tries for a nice balance between too little |
| 3991 |
whitespace and too much, but when push comes to shove, she’ll |
| 3992 |
usually opt for ample over cramped. The last lines of footnotes are |
| 3993 |
always flush with the document’s bottom margin. |
| 3994 |
</p> |
| 3995 |
|
| 3996 |
<p> |
| 3997 |
When |
| 3998 |
<a href="docprocessing.html#flex-vs-shim">flex-spacing</a> |
| 3999 |
is enabled, the distance between the last line of text and the |
| 4000 |
first footnote is always the same. |
| 4001 |
</p> |
| 4002 |
|
| 4003 |
<p> |
| 4004 |
If mom sees that a portion of a footnote cannot be fit on its page, |
| 4005 |
she carries that portion over to the next page. If an entire |
| 4006 |
footnote can’t be fit on its page (i.e., FOOTNOTE has been |
| 4007 |
called too close to the bottom), she defers the footnote to the next |
| 4008 |
page, but sets it with the appropriate marker from the previous |
| 4009 |
page. |
| 4010 |
</p> |
| 4011 |
|
| 4012 |
<p> |
| 4013 |
When footnotes occur within cited text, for example a |
| 4014 |
<a href="#quote">QUOTE</a> |
| 4015 |
or a |
| 4016 |
<a href="#blockquote">BLOCKQUOTE</a>, |
| 4017 |
mom will usually opt for deferring the footnote over to the next |
| 4018 |
page if it allows her to complete the cited text on one page. |
| 4019 |
</p> |
| 4020 |
|
| 4021 |
<p> |
| 4022 |
In the unfortunate happenstance that a deferred footnote is the |
| 4023 |
only footnote on its page (i.e., it’s marked in the document |
| 4024 |
body with a star) and the page it’s deferred to has its own |
| 4025 |
footnotes, mom separates the deferred footnote from the page’s |
| 4026 |
proper footnote(s) with a blank line. This avoids the confusion |
| 4027 |
that might result from readers seeing two footnote entries on |
| 4028 |
the same page identified by a single star (or the number 1 if |
| 4029 |
you’ve requested numbered footnotes that begin at 1 on every |
| 4030 |
page). The blank line makes it clear that the first footnote entry |
| 4031 |
belongs to the previous page. |
| 4032 |
</p> |
| 4033 |
|
| 4034 |
<p> |
| 4035 |
In the circumstance where a deferred footnote is not the only one |
| 4036 |
on its page, and is consequently marked by something other than |
| 4037 |
a single star, there’s no confusion and mom doesn’t |
| 4038 |
bother with the blank line. (By convention, the first footnote on |
| 4039 |
a page is always marked with a single star, so if readers see, say, |
| 4040 |
a dagger or double-dagger marking the first footnote entry, |
| 4041 |
they’ll know the entry belongs to the previous page). |
| 4042 |
</p> |
| 4043 |
|
| 4044 |
<p> |
| 4045 |
Very exceptionally, two footnotes may have to be deferred (e.g., one |
| 4046 |
occurs on the second to last line of a page, and another on the last |
| 4047 |
line). In such a circumstance, mom does not add |
| 4048 |
a blank after the second deferred footnote. If you’d like a blank |
| 4049 |
line separating both deferred footnotes from any footnotes proper to |
| 4050 |
the page the deferred ones were moved to, add the space manually by |
| 4051 |
putting a |
| 4052 |
<a href="typesetting.html#space"><kbd>.SPACE</kbd></a> |
| 4053 |
command at the end of the footnote text, before |
| 4054 |
<kbd>.FOOTNOTE OFF</kbd> (or <kbd>OFF</kbd>, <kbd>QUIT</kbd>, |
| 4055 |
<kbd>END</kbd>, <kbd>X</kbd>, etc). |
| 4056 |
</p> |
| 4057 |
|
| 4058 |
<p> |
| 4059 |
Obviously, deferred footnotes aren’t an issue if you request |
| 4060 |
numbered footnotes that increase incrementally throughout the whole |
| 4061 |
document—yet another convenience mom has thought of. |
| 4062 |
</p> |
| 4063 |
|
| 4064 |
<p> |
| 4065 |
While mom’s handling of footnotes is sophisticated, |
| 4066 |
and tries to take nearly every imaginable situation under which they |
| 4067 |
might occur into account, some situations are simply impossible from |
| 4068 |
a typographic standpoint. For example, if you have a |
| 4069 |
<a href="#head">HEAD</a> |
| 4070 |
near the bottom of a page and the page has some footnotes on it, mom |
| 4071 |
may simply not have room to set any text under the head (normally, |
| 4072 |
she insists on having room for at least one line of text beneath |
| 4073 |
a head). In such an instance, mom will either set the head, with |
| 4074 |
nothing under it but footnotes, or transfer the head to the next |
| 4075 |
page. Either way, you’ll have a gaping hole at the bottom |
| 4076 |
of the page. It’s a sort of typographic Catch-22, and can |
| 4077 |
only be resolved by you, the writer or formatter of the document, |
| 4078 |
adjusting the type on the offending page so as to circumvent the |
| 4079 |
problem. |
| 4080 |
</p> |
| 4081 |
|
| 4082 |
<h3 id="fn-and-punct" class="docs">Footnote markers and punctuation in the running text</h3> |
| 4083 |
|
| 4084 |
<ol style="margin-left: -1.25em;"> |
| 4085 |
<li><a href="#fn-and-punct-fill">“Fill” modes – JUSTIFY, or QUAD LEFT | CENTER | RIGHT</a></li> |
| 4086 |
<li><a href="#fn-and-punct-nofill">“No-fill” modes – LEFT, CENTER, RIGHT</a></li> |
| 4087 |
</ol> |
| 4088 |
|
| 4089 |
<h4 id="fn-and-punct-fill" class="docs">1. “Fill” modes – JUSTIFY, or QUAD LEFT | CENTER | RIGHT</h4> |
| 4090 |
|
| 4091 |
<p> |
| 4092 |
In |
| 4093 |
<a href="definitions.html#filled">fill</a> |
| 4094 |
modes, the correct way to enter the line after |
| 4095 |
<kbd>.FOOTNOTE OFF</kbd> is to input it as if it’s |
| 4096 |
literally a continuation of the input line you were entering before |
| 4097 |
you invoked <kbd>.FOOTNOTE</kbd>. Therefore, if necessary, the |
| 4098 |
input line may have to begin with space(s) or a punctuation mark, as |
| 4099 |
in the two following examples. |
| 4100 |
</p> |
| 4101 |
|
| 4102 |
<div id="examples-footnotes-1" class="examples-container" style="padding-bottom: 1em;"> |
| 4103 |
<div class="examples" style="margin-top: 0; margin-bottom: -.25em;">Example 1</div> |
| 4104 |
<span class="pre"> |
| 4105 |
A line of text,\c |
| 4106 |
.FOOTNOTE |
| 4107 |
A footnote line. |
| 4108 |
.FOOTNOTE OFF |
| 4109 |
broken up with a comma. |
| 4110 |
^ |
| 4111 |
(last line begins with a literal space) |
| 4112 |
</span> |
| 4113 |
</div> |
| 4114 |
|
| 4115 |
<div id="examples-footnotes-2" class="examples-container" style="margin-top: 1em; padding-bottom: 1em;"> |
| 4116 |
<div class="examples" style="margin-top: 0; margin-bottom: -.25em;">Example 2</div> |
| 4117 |
<span class="pre"> |
| 4118 |
A line of text\c |
| 4119 |
.FOOTNOTE |
| 4120 |
A footnote line. |
| 4121 |
.FOOTNOTE OFF |
| 4122 |
, broken up with a comma. |
| 4123 |
^ |
| 4124 |
(last line begins with a comma and a space) |
| 4125 |
</span> |
| 4126 |
</div> |
| 4127 |
|
| 4128 |
<p> |
| 4129 |
Example 1 produces, on output |
| 4130 |
<br/> |
| 4131 |
<span class="pre-in-pp"> |
| 4132 |
A line of text,* broken up with a comma. |
| 4133 |
</span> |
| 4134 |
Example 2 produces |
| 4135 |
<br/> |
| 4136 |
<span class="pre-in-pp"> |
| 4137 |
A line of text*, broken up with a comma. |
| 4138 |
</span> |
| 4139 |
Care must be taken, though, if the punctuation mark that begins the |
| 4140 |
line after <kbd>.FOOTNOTE OFF</kbd> is a period (dot). You |
| 4141 |
<b><i>must</i></b> begin such lines with <kbd>\&.</kbd>, like |
| 4142 |
this: |
| 4143 |
<br/> |
| 4144 |
<span class="pre-in-pp"> |
| 4145 |
...end of sentence\c |
| 4146 |
.FOOTNOTE |
| 4147 |
A footnote line. |
| 4148 |
.FOOTNOTE OFF |
| 4149 |
\&. A new sentence... |
| 4150 |
</span> |
| 4151 |
If you omit the <kbd>\&.</kbd>, the line will vanish! |
| 4152 |
</p> |
| 4153 |
|
| 4154 |
<div class="box-tip"> |
| 4155 |
<p class="tip"> |
| 4156 |
<span class="note">Note:</span> |
| 4157 |
The document element tags, |
| 4158 |
<a href="#epigraph">EPIGRAPH</a> |
| 4159 |
and |
| 4160 |
<a href="#blockquote">BLOCKQUOTE</a>, |
| 4161 |
imply a fill mode, therefore these instructions also apply when you |
| 4162 |
insert a footnote into epigraphs or blockquotes. |
| 4163 |
</p> |
| 4164 |
</div> |
| 4165 |
|
| 4166 |
<h4 id="fn-and-punct-nofill" class="docs">2. “No-fill” modes – LEFT, CENTER, RIGHT</h4> |
| 4167 |
|
| 4168 |
<p> |
| 4169 |
In |
| 4170 |
<a href="definitions.html#filled">no-fill</a> |
| 4171 |
modes, you must decide a) whether text on the <i>input</i> line |
| 4172 |
after <kbd>.FOOTNOTE OFF</kbd> is to be joined to the |
| 4173 |
<i>output</i> line before <kbd>.FOOTNOTE</kbd> was invoked, or b) |
| 4174 |
whether you want the <i>output</i> text to begin on a new line. |
| 4175 |
</p> |
| 4176 |
|
| 4177 |
<p> |
| 4178 |
In the first instance, simply follow the instructions, |
| 4179 |
<a href="#fn-and-punct-fill">above</a>, |
| 4180 |
for fill modes. |
| 4181 |
</p> |
| 4182 |
|
| 4183 |
<p> |
| 4184 |
In the second instance, you must explicitly tell mom that |
| 4185 |
you want input text after <kbd>.FOOTNOTE OFF</kbd> to |
| 4186 |
begin on a new output line. This is accomplished by passing |
| 4187 |
<kbd>.FOOTNOTE OFF</kbd> (or <kbd>OFF</kbd>, <kbd>QUIT</kbd>, |
| 4188 |
<kbd>END</kbd>, <kbd>X</kbd>, etc) an additional argument: |
| 4189 |
<kbd>BREAK</kbd> or <kbd>BR</kbd>. |
| 4190 |
</p> |
| 4191 |
|
| 4192 |
<p> |
| 4193 |
Study the two examples below to understand the difference. |
| 4194 |
</p> |
| 4195 |
|
| 4196 |
<div id="examples-footnotes-3" class="examples-container" style="padding-bottom: 1em;"> |
| 4197 |
<div class="examples" style="margin-top: 0; margin-bottom: -.25em;">Example 1</div> |
| 4198 |
<span class="pre"> |
| 4199 |
.LEFT |
| 4200 |
A line of text\c |
| 4201 |
.FOOTNOTE |
| 4202 |
A footnote line |
| 4203 |
.FOOTNOTE OFF |
| 4204 |
that carries on after the footnote. |
| 4205 |
</span> |
| 4206 |
</div> |
| 4207 |
|
| 4208 |
<div id="examples-footnotes-4" class="examples-container" style="margin-top: 1em; padding-bottom: 1em;"> |
| 4209 |
<div class="examples" style="margin-top: 0; margin-bottom: -.25em;">Example 2</div> |
| 4210 |
<span class="pre"> |
| 4211 |
.LEFT |
| 4212 |
A line of text\c |
| 4213 |
.FOOTNOTE |
| 4214 |
A footnote line |
| 4215 |
.FOOTNOTE OFF BREAK |
| 4216 |
that doesn’t carry on after the footnote. |
| 4217 |
</span> |
| 4218 |
</div> |
| 4219 |
|
| 4220 |
<p> |
| 4221 |
Example 1, on output, produces |
| 4222 |
<br/> |
| 4223 |
<span class="pre-in-pp"> |
| 4224 |
A line of text* that carries on after the footnote. |
| 4225 |
</span> |
| 4226 |
whereas Example 2 produces |
| 4227 |
<span class="pre-in-pp"> |
| 4228 |
A line of text* |
| 4229 |
that doesn’t carry on after the footnote. |
| 4230 |
</span> |
| 4231 |
The distinction becomes particularly important if you like to see |
| 4232 |
punctuation marks come <i>after</i> footnote markers. In no-fill |
| 4233 |
modes, that’s accomplished like this: |
| 4234 |
<br/> |
| 4235 |
<span class="pre-in-pp"> |
| 4236 |
.LEFT |
| 4237 |
A line of text\c |
| 4238 |
.FOOTNOTE |
| 4239 |
A footnote line |
| 4240 |
.FOOTNOTE OFF |
| 4241 |
, |
| 4242 |
broken up with a comma. |
| 4243 |
</span> |
| 4244 |
The output of the above looks like this: |
| 4245 |
<br/> |
| 4246 |
<span class="pre-in-pp"> |
| 4247 |
A line of text*, |
| 4248 |
broken up with a comma. |
| 4249 |
</span> |
| 4250 |
</p> |
| 4251 |
|
| 4252 |
<div class="box-tip"> |
| 4253 |
<p class="tip"> |
| 4254 |
<span class="note">Note:</span> |
| 4255 |
The document element tag, |
| 4256 |
<a href="#quote">QUOTE</a>, |
| 4257 |
implies a no-fill mode, therefore these instructions also apply when |
| 4258 |
you insert footnotes into quotes. |
| 4259 |
</p> |
| 4260 |
</div> |
| 4261 |
|
| 4262 |
<!-- -FOOTNOTE- --> |
| 4263 |
|
| 4264 |
<div class="macro-id-overline"> |
| 4265 |
<h3 id="footnote" class="macro-id">FOOTNOTE</h3> |
| 4266 |
</div> |
| 4267 |
|
| 4268 |
<div class="box-macro-args"> |
| 4269 |
Tag: FOOTNOTE <kbd class="macro-args"><toggle> [ BREAK | BR ] [ INDENT LEFT | RIGHT | BOTH <indent value> ]</kbd> |
| 4270 |
</div> |
| 4271 |
|
| 4272 |
<p class="requires"> |
| 4273 |
• <kbd><span style="font-style: normal"><indent value></span></kbd> requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4274 |
<br/> |
| 4275 |
See <span style="font-style: normal"><a href="#footnote-note">HYPER-IMPORTANT NOTE</a></span>. |
| 4276 |
</p> |
| 4277 |
|
| 4278 |
<p> |
| 4279 |
FOOTNOTE is a toggle macro, therefore invoking it on a line by |
| 4280 |
itself allows you to enter a footnote in the body of a document. |
| 4281 |
Invoking it with any argument other than <kbd>INDENT</kbd> (i.e. |
| 4282 |
<kbd>OFF</kbd>, <kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>...) |
| 4283 |
tells mom you’re finished. |
| 4284 |
</p> |
| 4285 |
|
| 4286 |
<p> |
| 4287 |
Footnotes are the only element of |
| 4288 |
<a href="definitions.html#running">running text</a> |
| 4289 |
that are not affected by the typesetting |
| 4290 |
<a href="typesetting.html#indents">indent macros</a>. |
| 4291 |
In the unlikely event that you want a page’s footnotes to |
| 4292 |
line up with a running indent, invoke <kbd>.FOOTNOTE</kbd> with |
| 4293 |
the <kbd>INDENT</kbd> argument and pass it an indent direction and |
| 4294 |
indent value. <kbd>L, R,</kbd> and <kbd>B</kbd> may be used in place |
| 4295 |
of <kbd>LEFT, RIGHT,</kbd> and <kbd>BOTH</kbd>. FOOTNOTE must be |
| 4296 |
invoked with <kbd>INDENT</kbd> for every footnote you want indented; |
| 4297 |
mom does not save any footnote indent information from invocation to |
| 4298 |
invocation. |
| 4299 |
</p> |
| 4300 |
|
| 4301 |
<div class="box-tip"> |
| 4302 |
<p class="tip"> |
| 4303 |
<span class="note">Note:</span> |
| 4304 |
If a footnote runs to more than one paragraph, do <i>not</i> begin |
| 4305 |
the footnote with the |
| 4306 |
<a href="#pp">PP</a> |
| 4307 |
tag. Use <kbd>.PP</kbd> only to introduce subsequent paragraphs. |
| 4308 |
</p> |
| 4309 |
</div> |
| 4310 |
|
| 4311 |
<div id="footnote-note" class="box-tip"> |
| 4312 |
<p class="tip-top"> |
| 4313 |
<span class="note">HYPER-IMPORTANT NOTE:</span> |
| 4314 |
The final word on the |
| 4315 |
<a href="definitions.html#inputline">input line</a> |
| 4316 |
that comes immediately before FOOTNOTE <i>must</i> terminate with a |
| 4317 |
<kbd><a href="typesetting.html#join">\c</a></kbd> |
| 4318 |
inline escape if your |
| 4319 |
<a href="#footnote-marker-style">FOOTNOTE_MARKER_STYLE</a> |
| 4320 |
is either <kbd>STAR</kbd> or <kbd>NUMBER</kbd>. See the |
| 4321 |
<a href="#footnote-example">footnote example</a> |
| 4322 |
above. |
| 4323 |
</p> |
| 4324 |
|
| 4325 |
<p> |
| 4326 |
Additionally, in |
| 4327 |
<a href="definitions.html#filled">fill</a> |
| 4328 |
modes |
| 4329 |
(<a href="typesetting.html#justify">JUSTIFY</a> |
| 4330 |
or |
| 4331 |
<a href="typesetting.html#quad">QUAD</a>), |
| 4332 |
the line <i>after</i> a <kbd>.FOOTNOTE OFF</kbd> should be |
| 4333 |
entered as if there were no interruption in the input text, i.e., |
| 4334 |
the line should begin with a literal space or punctuation mark (see |
| 4335 |
explanation and examples |
| 4336 |
<a href="#fn-and-punct">here</a>). |
| 4337 |
</p> |
| 4338 |
|
| 4339 |
<p> |
| 4340 |
In |
| 4341 |
<a href="definitions.html#filled">no-fill</a> |
| 4342 |
modes, the optional argument <kbd>BREAK</kbd> or <kbd>BR</kbd> may |
| 4343 |
be used after the <kbd>OFF</kbd> (or <kbd>OFF</kbd>, |
| 4344 |
<kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>, etc) argument to |
| 4345 |
instruct mom not to join the next input line to the previous output. |
| 4346 |
See |
| 4347 |
<a href="#fn-and-punct-nofill">here</a> |
| 4348 |
for a more complete explanation, with examples. |
| 4349 |
</p> |
| 4350 |
|
| 4351 |
<p class="tip-bottom"> |
| 4352 |
Do not use the <kbd>\c</kbd> inline escape if your |
| 4353 |
FOOTNOTE_MARKER_STYLE is <kbd>LINE</kbd>, or if you have disabled |
| 4354 |
footnote markers with |
| 4355 |
<kbd><a href="#footnote-markers">.FOOTNOTE_MARKERS OFF</a></kbd>. |
| 4356 |
In these instances, the line after <kbd>.FOOTNOTE OFF</kbd> |
| 4357 |
should be entered normally. |
| 4358 |
</p> |
| 4359 |
</div> |
| 4360 |
|
| 4361 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 4362 |
<h3 id="footnote-control" class="docs defaults">FOOTNOTE control macros and defaults</h3> |
| 4363 |
|
| 4364 |
<ol style="margin-top: .5em; padding-bottom: .5em;"> |
| 4365 |
<li><a href="#footnote-general">Family/font/size/colour/lead/quad</a></li> |
| 4366 |
<li><a href="#footnote-markers">Footnote markers</a> – on or off</li> |
| 4367 |
<li><a href="#footnote-marker-style">Footnote marker style</a> – star+dagger or numbered |
| 4368 |
<ul style="margin-left: -.5em; list-style-type: disc;"> |
| 4369 |
<li><a href="#footnote-number-placeholders">Left padding of footnote numbers</a></li> |
| 4370 |
</ul></li> |
| 4371 |
<li><a href="#footnotes-by-linenumber">Footnotes by line number</a> |
| 4372 |
<ul style="margin-left: -.5em; list-style-type: disc;"> |
| 4373 |
<li><a href="#footnote-linenumber-brackets">FOOTNOTE_LINENUMBER_BRACKETS</a></li> |
| 4374 |
<li><a href="#footnote-linenumber-separator">FOOTNOTE_LINENUMBER_SEPARATOR</a></li> |
| 4375 |
<li><a href="#footnotes-run-on">FOOTNOTES_RUN_ON</a> – line-numbered footnotes only</li> |
| 4376 |
</ul></li> |
| 4377 |
<li><a href="#reset-footnote-number">Reset footnote number</a> – set footnote marker number to 1</li> |
| 4378 |
<li><a href="#footnote-space">Inter-footnote spacing</a></li> |
| 4379 |
<li><a href="#footnote-rule">Footnote rule</a> – on or off</li> |
| 4380 |
<li><a href="#footnote-rule-length">Footnote rule length</a> – length of footnote separator rule</li> |
| 4381 |
<li><a href="#footnote-rule-weight">Footnote rule weight</a> – weight of footnote separator rule</li> |
| 4382 |
<li><a href="#footnote-rule-adj">Adjust vertical position of footnote separator rule</a></li> |
| 4383 |
</ol> |
| 4384 |
</div> |
| 4385 |
|
| 4386 |
<h4 id="footnote-general" class="docs" style="margin-top: -1.5em; margin-bottom: .5em;">1. Family/font/size/colour/lead/quad</h4> |
| 4387 |
|
| 4388 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 4389 |
<p class="defaults" style="padding-top: 6px;"> |
| 4390 |
See |
| 4391 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 4392 |
<br/> |
| 4393 |
The following FOOTNOTE control macros may also be |
| 4394 |
<a href="#grouping">grouped</a> |
| 4395 |
using FOOTNOTE_STYLE. |
| 4396 |
</p> |
| 4397 |
<span class="pre defaults"> |
| 4398 |
.FOOTNOTE_FAMILY default = prevailing document family; default is Times Roman |
| 4399 |
.FOOTNOTE_FONT default = roman |
| 4400 |
.FOOTNOTE_SIZE default = -2 (points) |
| 4401 |
.FOOTNOTE_COLOR default = black |
| 4402 |
.FOOTNOTE_AUTOLEAD default = 2 points (typeset); single-spaced (typewrite) |
| 4403 |
.FOOTNOTE_QUAD default = same as paragraphs |
| 4404 |
</span> |
| 4405 |
</div> |
| 4406 |
|
| 4407 |
<h4 id="footnote-markers" class="docs" style="margin-top: -1.25em;">2. Footnote markers – FOOTNOTE_MARKERS</h4> |
| 4408 |
|
| 4409 |
<p> |
| 4410 |
If you don’t want footnote markers in either the body of |
| 4411 |
the document or beside footnote entries themselves, toggle them |
| 4412 |
off with <kbd>.FOOTNOTE_MARKERS OFF</kbd> (or <kbd>OFF</kbd>, |
| 4413 |
<kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>...). This means, |
| 4414 |
of course, that you’ll have to roll your own. If you want |
| 4415 |
them back on, invoke <kbd>.FOOTNOTE_MARKERS</kbd> with no argument. |
| 4416 |
Footnote markers are on by default. |
| 4417 |
</p> |
| 4418 |
|
| 4419 |
<p> |
| 4420 |
If FOOTNOTE_MARKERS are disabled, do not use the <kbd>\c</kbd> |
| 4421 |
inline escape to terminate the line before <kbd>.FOOTNOTE</kbd>. |
| 4422 |
</p> |
| 4423 |
|
| 4424 |
<h4 id="footnote-marker-style" class="docs" style="margin-top: -.25em;">3. Footnote marker style – FOOTNOTE_MARKER_STYLE</h4> |
| 4425 |
|
| 4426 |
<p> |
| 4427 |
Mom gives you two choices of footnote marker style: star+dagger (see |
| 4428 |
<a href="#footnote-behaviour">footnote behaviour</a> |
| 4429 |
above), or numbered. |
| 4430 |
</p> |
| 4431 |
|
| 4432 |
<p> |
| 4433 |
<kbd>.FOOTNOTE_MARKER_STYLE STAR</kbd> gives you star+dagger (the |
| 4434 |
default). There is a limit of 10 footnotes per page with this |
| 4435 |
style. |
| 4436 |
</p> |
| 4437 |
|
| 4438 |
<p> |
| 4439 |
<kbd>.FOOTNOTE_MARKER_STYLE NUMBER</kbd> gives you superscript |
| 4440 |
numbers, both in the document body and in the footnote entries |
| 4441 |
themselves. By default, footnote numbers increase incrementally |
| 4442 |
(prev. footnote number + 1) throughout the whole document. You |
| 4443 |
can ask mom to start each page’s footnote numbers at 1 with |
| 4444 |
<kbd>.RESET_FOOTNOTE_NUMBER</kbd> |
| 4445 |
(<a href="#reset-footnote-number">see below</a>.) |
| 4446 |
</p> |
| 4447 |
|
| 4448 |
<p> |
| 4449 |
If your |
| 4450 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a> |
| 4451 |
is <kbd>TYPEWRITE</kbd> and you would prefer that the footnotes |
| 4452 |
themselves not use superscript numbers, you may pass |
| 4453 |
<kbd>.FOOTNOTE_MARKER_STYLE NUMBER</kbd> an additional argument: |
| 4454 |
<kbd>NO_SUPERSCRIPT</kbd>. While the marker in the text will still |
| 4455 |
be superscript, the footnotes themselves will be identified with |
| 4456 |
normal-sized, base aligned numbers, surrounded by parentheses. |
| 4457 |
</p> |
| 4458 |
|
| 4459 |
<h5 id="footnote-number-placeholders" class="docs">Left padding of footnote numbers</h5> |
| 4460 |
|
| 4461 |
<p> |
| 4462 |
When footnote numbering is enabled, in order to ensure that the |
| 4463 |
left margin of footnote text aligns regardless of the footnote |
| 4464 |
number, you sometimes have to pad the footnote numbers. This will |
| 4465 |
be the case any time the footnote numbers change from 9 to 10 on |
| 4466 |
the same page, or from 99 to 100. Consider this scenario: |
| 4467 |
<br/> |
| 4468 |
<span class="pre-in-pp"> |
| 4469 |
<sup>9</sup> Footnote text |
| 4470 |
<sup>10</sup> Footnote text |
| 4471 |
<sup>11</sup> Footnote text |
| 4472 |
</span> |
| 4473 |
As you can see, the left margins of the footnotes are not aligned. |
| 4474 |
</p> |
| 4475 |
|
| 4476 |
<p> |
| 4477 |
In order to correct this, use the macro |
| 4478 |
<kbd>.FOOTNOTE_NUMBER_PLACEHOLDERS</kbd>, which takes a single |
| 4479 |
argument: the number of placeholders in the longer digit. For |
| 4480 |
example, placed at an appropriate point in your input file, |
| 4481 |
<kbd>.FOOTNOTE_NUMBER_PLACEHOLDERS 2</kbd> causes the above |
| 4482 |
example to come out like this: |
| 4483 |
<br/> |
| 4484 |
<span class="pre-in-pp"> |
| 4485 |
<sup> 9</sup> Footnote text |
| 4486 |
<sup>10</sup> Footnote text |
| 4487 |
<sup>11</sup> Footnote text |
| 4488 |
</span> |
| 4489 |
Given the impossibility of knowing in advance when the number of |
| 4490 |
placeholders required for footnote numbers will change, you must |
| 4491 |
study your <i>output</i> file to determine where to insert this |
| 4492 |
macro into your <i>input</i> file. |
| 4493 |
</p> |
| 4494 |
|
| 4495 |
<p> |
| 4496 |
Obviously, mom does not provide a default for |
| 4497 |
<kbd>.FOOTNOTE_NUMBER_PLACEHOLDERS</kbd>. |
| 4498 |
</p> |
| 4499 |
|
| 4500 |
<div class="box-tip"> |
| 4501 |
<p class="tip"> |
| 4502 |
<span class="note">Note:</span> |
| 4503 |
<kbd>.FOOTNOTE_NUMBER_PLACEHOLDERS</kbd> affects both superscript |
| 4504 |
footnote numbers, and, in |
| 4505 |
<a href="docprocessing.html#printstyle">PRINTSTYLE TYPEWRITE</a>, |
| 4506 |
the normal, base-aligned numbers surrounded by parentheses that you |
| 4507 |
get with |
| 4508 |
<kbd>.FOOTNOTE_MARKER_STYLE NUMBER NO_SUPERSCRIPT</kbd>. |
| 4509 |
</p> |
| 4510 |
</div> |
| 4511 |
|
| 4512 |
<h4 id="footnotes-by-linenumber" class="docs" style="margin-top: -.25em;">4. Footnotes by line number – FOOTNOTE_MARKER_STYLE LINE</h4> |
| 4513 |
|
| 4514 |
<p> |
| 4515 |
FOOTNOTE_MARKER_STYLE with the argument, <kbd>LINE</kbd> lets you |
| 4516 |
have footnotes which are identified by line number, rather than by a |
| 4517 |
marker in the text. (Note that |
| 4518 |
<a href="#number-lines">NUMBER_LINES</a> |
| 4519 |
must be enabled in order to use this marker style.) |
| 4520 |
</p> |
| 4521 |
|
| 4522 |
<p> |
| 4523 |
With FOOTNOTE_MARKER_STYLE <kbd>LINE</kbd>, mom will identify |
| 4524 |
footnotes either by single line numbers, or line ranges. If |
| 4525 |
what you want is a single line number, you need only invoke |
| 4526 |
<kbd>.FOOTNOTE</kbd>, <i>without the terminating</i> <kbd>\c</kbd>, |
| 4527 |
at the appropriate place in running text. Input lines after the |
| 4528 |
footnote has been terminated (e.g. with |
| 4529 |
<kbd>.FOOTNOTE OFF</kbd>) are entered normally. |
| 4530 |
</p> |
| 4531 |
|
| 4532 |
<p> |
| 4533 |
If you want a range of line numbers (e.g. [5-11] ), |
| 4534 |
insert, directly into the first line of the range you want, the |
| 4535 |
<a href="definitions.html#inlines">inline escape</a>, |
| 4536 |
<kbd><span class="nobr">\*[FN_MARK]</span></kbd>. For the terminating line |
| 4537 |
number of the range, you need only invoke <kbd>.FOOTNOTE</kbd> |
| 4538 |
(again, without the terminating <kbd>\c</kbd>); mom is smart enough |
| 4539 |
to figure out that where <kbd>.FOOTNOTE</kbd> was invoked represents |
| 4540 |
the terminating line number. |
| 4541 |
</p> |
| 4542 |
|
| 4543 |
<p> |
| 4544 |
Range-numbered footnotes are always output on the page |
| 4545 |
where <kbd>.FOOTNOTE</kbd> was invoked, not the page where |
| 4546 |
<kbd><span class="nobr">\*[FN_MARK]</span></kbd> appears (subject, of course, to |
| 4547 |
the rules for footnotes that fall too close to the bottom of a page, |
| 4548 |
as outlined |
| 4549 |
<a href="#footnote-rules">here</a>). |
| 4550 |
</p> |
| 4551 |
|
| 4552 |
<p> |
| 4553 |
The behaviour of line-numbered footnotes can be controlled with the |
| 4554 |
macros: |
| 4555 |
<br/> |
| 4556 |
<span style="display: inline-block; margin-left: 2em; margin-top: .5em;"><a href="#footnote-linenumber-brackets">FOOTNOTE_LINENUMBER_BRACKETS</a></span> |
| 4557 |
<br/> |
| 4558 |
<span style="margin-left: 2em;"><a href="#footnote-linenumber-separator">FOOTNOTE_LINENUMBER_SEPARATOR</a></span> |
| 4559 |
<br/> |
| 4560 |
<span style="margin-left: 2em;"><a href="#footnotes-run-on">FOOTNOTES_RUN_ON</a></span> |
| 4561 |
</p> |
| 4562 |
|
| 4563 |
<div style="margin-left: 1.25em;"> |
| 4564 |
<h5 id="footnote-linenumber-brackets" class="docs" style="margin-top: -.25em;">• FOOTNOTE_LINENUMBER_BRACKETS</h5> |
| 4565 |
|
| 4566 |
<p style="margin-left: .5em;"> |
| 4567 |
Mom, by default, surrounds footnote line numbers with square |
| 4568 |
brackets. The style of the brackets may be changed with the macro |
| 4569 |
<br/> |
| 4570 |
<span class="pre-in-pp"> |
| 4571 |
.FOOTNOTE_LINENUMBER_BRACKETS |
| 4572 |
</span> |
| 4573 |
which takes one of three possible arguments: <kbd>PARENS</kbd> |
| 4574 |
(round brackets), <kbd>SQUARE</kbd> (the default) or |
| 4575 |
<kbd>BRACES</kbd> (curly braces). If you prefer a shortform, the |
| 4576 |
arguments, <kbd>(</kbd>, <kbd>[</kbd> or <kbd>{</kbd> may be used |
| 4577 |
instead. |
| 4578 |
</p> |
| 4579 |
|
| 4580 |
<p style="margin-left: .5em;">Thus, for example, either |
| 4581 |
<br/> |
| 4582 |
<span class="pre-in-pp"> |
| 4583 |
.FOOTNOTE_LINENUMBER_BRACKETS PARENS |
| 4584 |
</span> |
| 4585 |
or |
| 4586 |
<br/> |
| 4587 |
<span class="pre-in-pp"> |
| 4588 |
.FOOTNOTE_LINENUMBER_BRACKETS ( |
| 4589 |
</span> |
| 4590 |
will surround footnote line numbers with round brackets. |
| 4591 |
</p> |
| 4592 |
|
| 4593 |
<h5 id="footnote-linenumber-separator" class="docs" style="margin-top: -.25em;">• FOOTNOTE_LINENUMBER_SEPARATOR</h5> |
| 4594 |
|
| 4595 |
<p style="margin-left: .5em;"> |
| 4596 |
If you don’t want the numbers enclosed in brackets, you |
| 4597 |
may tell mom to use a “separator” instead. A common |
| 4598 |
separator would be the colon, but it can be anything you like. |
| 4599 |
The macro to do this is |
| 4600 |
<br/> |
| 4601 |
<span class="pre-in-pp"> |
| 4602 |
.FOOTNOTE_LINENUMBER_SEPARATOR |
| 4603 |
</span> |
| 4604 |
which takes, as its single argument, the separator you want. For |
| 4605 |
safety and consistency’s sake, always enclose the argument in |
| 4606 |
double-quotes. The separator can be composed of any valid groff |
| 4607 |
character, or any combination of characters. |
| 4608 |
</p> |
| 4609 |
|
| 4610 |
<p style="margin-left: .5em;"> |
| 4611 |
<b>A word of caution:</b> when using a separator, mom doesn’t |
| 4612 |
insert any space after the separator. Hence, if you want space |
| 4613 |
(you probably do), you must make the space part of the argument you |
| 4614 |
pass to FOOTNOTE_LINENUMBER_SEPARATOR. For example, to get a colon |
| 4615 |
separator with a space after it, you’d do |
| 4616 |
<br/> |
| 4617 |
<span class="pre-in-pp"> |
| 4618 |
.FOOTNOTE_LINENUMBER_SEPARATOR ": " |
| 4619 |
</span> |
| 4620 |
</p> |
| 4621 |
|
| 4622 |
<h5 id="footnotes-run-on" class="docs" style="margin-top: -1em;">• FOOTNOTES_RUN_ON</h5> |
| 4623 |
|
| 4624 |
<p style="margin-left: .5em;"> |
| 4625 |
Finally, if your footnote marker style is <kbd>LINE</kbd>, you may |
| 4626 |
instruct mom to do “run-on style” footnotes. Run-on |
| 4627 |
footnotes do not treat footnotes as discrete entities, i.e. each |
| 4628 |
beginning on a new line. Rather, each footnote is separated from |
| 4629 |
the footnote before it by horizontal space in the running line, so |
| 4630 |
that the footnotes on any given page form a continuous block, like |
| 4631 |
lines in a paragraph. |
| 4632 |
</p> |
| 4633 |
|
| 4634 |
<p style="margin-left: .5em;"> |
| 4635 |
The macro to get mom to run footnotes on is |
| 4636 |
<br/> |
| 4637 |
<span class="pre-in-pp"> |
| 4638 |
.FOOTNOTES_RUN_ON |
| 4639 |
</span> |
| 4640 |
Invoked by itself, it turns the feature on. Invoked with any other |
| 4641 |
argument (<kbd>OFF, NO</kbd>, etc.), it turns the feature off. |
| 4642 |
It is generally not a good idea to turn the feature on and off |
| 4643 |
during the course of a single document. If you do, mom will issue |
| 4644 |
a warning if there’s going to be a problem. However, it is |
| 4645 |
always perfectly safe to enable/disable the feature after |
| 4646 |
<a href="rectoverso.html#collate">COLLATE</a>. |
| 4647 |
</p> |
| 4648 |
</div> |
| 4649 |
|
| 4650 |
<h4 id="reset-footnote-number" class="docs" style="margin-top: -.25em;">5. Reset footnote number – RESET_FOOTNOTE_NUMBER</h4> |
| 4651 |
|
| 4652 |
<p> |
| 4653 |
<kbd>.RESET_FOOTNOTE_NUMBER</kbd>, by itself, resets footnote |
| 4654 |
numbering so that the next footnote you enter is numbered 1. |
| 4655 |
</p> |
| 4656 |
|
| 4657 |
<p> |
| 4658 |
<kbd>.RESET_FOOTNOTE_NUMBER PAGE</kbd> tells mom to start every |
| 4659 |
page’s footnote numbering at 1. |
| 4660 |
</p> |
| 4661 |
|
| 4662 |
<h4 id="footnote-space" class="docs" style="margin-top: -.25em;">6. Inter-footnote spacing – FOOTNOTE_SPACING</h4> |
| 4663 |
|
| 4664 |
<p> |
| 4665 |
If you’d like some space between footnotes, you can |
| 4666 |
have mom put it in for you by invoking <kbd>.FOOTNOTE_SPACING</kbd> |
| 4667 |
with an argument representing the amount of extra space you’d |
| 4668 |
like. The argument to FOOTNOTE_SPACING requires a |
| 4669 |
<a href="definitions.html#unitofmeasure">unit of measure</a>. |
| 4670 |
</p> |
| 4671 |
|
| 4672 |
<p> |
| 4673 |
In the following example, footnotes will be separated from each |
| 4674 |
other by 3 |
| 4675 |
<a href="definitions.html#picaspoints">points</a>. |
| 4676 |
<br/> |
| 4677 |
<span class="pre-in-pp"> |
| 4678 |
.FOOTNOTE_SPACING 3p |
| 4679 |
</span> |
| 4680 |
</p> |
| 4681 |
|
| 4682 |
<div class="box-tip"> |
| 4683 |
<p class="tip"> |
| 4684 |
<span class="note">Note:</span> |
| 4685 |
If you’re using footnotes for references generated from the |
| 4686 |
refer database (see |
| 4687 |
<a href="refer.html">refer.html</a>), |
| 4688 |
correct MLA style requires a full linespace between footnotes, which |
| 4689 |
you can accomplish with <kbd>.FOOTNOTE_SPACING 1v</kbd>. |
| 4690 |
</p> |
| 4691 |
</div> |
| 4692 |
|
| 4693 |
<h4 id="footnote-rule" class="docs" style="margin-top: -.25em;">7. Footnote rule – FOOTNOTE_RULE</h4> |
| 4694 |
|
| 4695 |
<p> |
| 4696 |
If you don’t want a footnote separator rule, toggle it |
| 4697 |
off with <kbd>.FOOTNOTE_RULE OFF</kbd> (or <kbd>END</kbd>, |
| 4698 |
<kbd>QUIT</kbd>, <kbd>X</kbd>...). Toggle it back on by invoking |
| 4699 |
<kbd>.FOOTNOTE_RULE</kbd> with no argument. The default is to print |
| 4700 |
the rule. |
| 4701 |
</p> |
| 4702 |
|
| 4703 |
<h4 id="footnote-rule-length" class="docs" style="margin-top: -.25em;">8. Footnote rule length – FOOTNOTE_RULE_LENGTH</h4> |
| 4704 |
|
| 4705 |
<p> |
| 4706 |
If you want to change the length of the footnote separator rule, |
| 4707 |
invoke <kbd>.FOOTNOTE_RULE_LENGTH</kbd> with a length, like this, |
| 4708 |
<br/> |
| 4709 |
<span class="pre-in-pp"> |
| 4710 |
.FOOTNOTE_RULE_LENGTH 1i |
| 4711 |
</span> |
| 4712 |
|
| 4713 |
which sets the length to 1 inch. Note that a |
| 4714 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4715 |
is required. The default is 4 |
| 4716 |
<a href="definitions.html#picaspoints">picas</a> |
| 4717 |
for both |
| 4718 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a>s. |
| 4719 |
</p> |
| 4720 |
|
| 4721 |
<h4 id="footnote-rule-weight" class="docs" style="margin-top: -.25em;">9. Footnote rule weight – FOOTNOTE_RULE_WEIGHT</h4> |
| 4722 |
|
| 4723 |
<p> |
| 4724 |
If you want to change the weight (“thickness”) of the |
| 4725 |
footnote separator rule, invoke <kbd>.FOOTNOTE_RULE_WEIGHT</kbd> |
| 4726 |
with the desired weight. The weight is measured in |
| 4727 |
<a href="definitions.html#picaspoints">points</a>; |
| 4728 |
however, do not append the |
| 4729 |
<a href="definitions.html#unitofmeasure">unit of measure</a>, |
| 4730 |
<kbd>p</kbd>, to the argument. |
| 4731 |
</p> |
| 4732 |
|
| 4733 |
<p> |
| 4734 |
Mom’s default footnote rule weight is 1/2 point. If |
| 4735 |
you’d like a 1-point rule instead,<br/> |
| 4736 |
<span class="pre-in-pp"> |
| 4737 |
.FOOTNOTE_RULE_WEIGHT 1 |
| 4738 |
</span> |
| 4739 |
is how you’d get it. |
| 4740 |
</p> |
| 4741 |
|
| 4742 |
<h4 id="footnote-rule-adj" class="docs" style="margin-top: -.25em;">10. Adjust vertical position of footnote separator rule – FOOTNOTE_RULE_ADJ</h4> |
| 4743 |
|
| 4744 |
<p> |
| 4745 |
The footnote separator rule is a rule whose bottom edge falls |
| 4746 |
on the |
| 4747 |
<a href="definitions.html#baseline">baseline</a> |
| 4748 |
(at the footnote |
| 4749 |
<a href="definitions.html#leading">leading</a>) |
| 4750 |
one line above the first line of a page’s footnotes. By default, |
| 4751 |
mom raises the rule 3 |
| 4752 |
<a href="definitions.html#picaspoints">points</a> |
| 4753 |
from the baseline so that the separator and the footnotes don’t |
| 4754 |
look jammed together. If you’d prefer a different vertical |
| 4755 |
adjustment, invoke <kbd>.FOOTNOTE_RULE_ADJ</kbd> with the |
| 4756 |
amount you’d like. For example |
| 4757 |
<br/> |
| 4758 |
<span class="pre-in-pp"> |
| 4759 |
.FOOTNOTE_RULE_ADJ 4.25p |
| 4760 |
</span> |
| 4761 |
raises the rule by 4-1/4 points. Note that you can only raise |
| 4762 |
the rule, not lower it. A |
| 4763 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4764 |
is required. |
| 4765 |
</p> |
| 4766 |
|
| 4767 |
<div class="box-tip"> |
| 4768 |
<p class="tip"> |
| 4769 |
<span class="note">Note:</span> |
| 4770 |
If your document |
| 4771 |
<a href="definitions.html#leading">leading</a> |
| 4772 |
is 2 |
| 4773 |
<a href="definitions.html#picaspoints">points</a> |
| 4774 |
or less (e.g your |
| 4775 |
<a href="definitions.html#ps">point size</a> |
| 4776 |
is 10 and your linespacing is 10, 11, or 12), lowering mom’s |
| 4777 |
default footnote rule adjustment will almost certainly give you |
| 4778 |
nicer looking results than leaving the adjustment at the default. |
| 4779 |
Furthermore, you can invoke <kbd>.FOOTNOTE_RULE_ADJ</kbd> on any |
| 4780 |
page in which footnotes appear, or in any column, so that the |
| 4781 |
placement of the footnote rule can be changed on-the-fly, should you |
| 4782 |
wish. |
| 4783 |
</p> |
| 4784 |
</div> |
| 4785 |
|
| 4786 |
<div class="rule-short"><hr/></div> |
| 4787 |
|
| 4788 |
<!-- ==================================================================== --> |
| 4789 |
|
| 4790 |
<h2 id="endnote-intro" class="macro-group">Endnotes</h2> |
| 4791 |
|
| 4792 |
<ul style="margin-left: -.5em;"> |
| 4793 |
<li><a href="#endnote-behaviour">Endnotes behaviour</a> |
| 4794 |
<ul style="margin-left: -.5em;"> |
| 4795 |
<li><a href="#endnote-columns">Endnotes and columnar documents</a></li> |
| 4796 |
</ul></li> |
| 4797 |
<li><a href="#endnote">Tag: ENDNOTE</a></li> |
| 4798 |
<li><a href="#endnotes">Macro: <b>ENDNOTES</b></a>—tell mom to output endnotes</li> |
| 4799 |
<li><a href="#endnote-control">ENDNOTES control macros and defaults</a></li> |
| 4800 |
</ul> |
| 4801 |
|
| 4802 |
<p> |
| 4803 |
Embedding endnotes into mom documents is accomplished the same way |
| 4804 |
as embedding |
| 4805 |
<a href="#footnote-intro">footnotes</a>. |
| 4806 |
The example below is identical to the one shown in the |
| 4807 |
<a href="#footnote-example">introduction to footnotes</a>, |
| 4808 |
except that <kbd>.FOOTNOTE</kbd> has been replaced with |
| 4809 |
<kbd>.ENDNOTE</kbd>. |
| 4810 |
</p> |
| 4811 |
|
| 4812 |
<div id="examples" class="examples-container" style="padding-bottom: 1em;"> |
| 4813 |
<div class="examples" style="margin-top: 0; margin-bottom: -.25em;">Example</div> |
| 4814 |
<span id="endnote-example" class="pre"> |
| 4815 |
...the doctrines of Identity as urged by Schelling\c |
| 4816 |
.ENDNOTE |
| 4817 |
<endnote about who the hell is Schelling> |
| 4818 |
.ENDNOTE OFF |
| 4819 |
were generally the points of discussion presenting the most |
| 4820 |
of beauty to the imaginative Morella. |
| 4821 |
</span> |
| 4822 |
</div> |
| 4823 |
|
| 4824 |
<p> |
| 4825 |
As with footnotes, note the obligatory use of the <kbd>\c</kbd> |
| 4826 |
<a href="definitions.html#inlines">inline escape</a> |
| 4827 |
when your |
| 4828 |
<a href="#endnote-marker-style">ENDNOTE_MARKER_STYLE</a> |
| 4829 |
is <kbd>NUMBER</kbd> or <kbd>SUPERSCRIPT</kbd> (both of which mark |
| 4830 |
endnotes references in |
| 4831 |
<a href="definitions.html#running">running text</a> |
| 4832 |
with superscript numbers). When the marker style is |
| 4833 |
<kbd>LINE</kbd>, you must <i>not</i> use the <kbd>\c</kbd> |
| 4834 |
escape. |
| 4835 |
</p> |
| 4836 |
|
| 4837 |
<p> |
| 4838 |
Endnotes differ from footnotes in two ways (other than the fact that |
| 4839 |
endnotes come at the end of a document whereas footnotes appear in |
| 4840 |
the body of the document): |
| 4841 |
</p> |
| 4842 |
|
| 4843 |
<ol style="margin-top: -.5em;"> |
| 4844 |
<li>When your ENDNOTE_MARKER_STYLE is <kbd>NUMBER</kbd> or |
| 4845 |
<kbd>SUPERSCRIPT</kbd>, endnotes are always numbered |
| 4846 |
incrementally, starting at “1”. |
| 4847 |
</li> |
| 4848 |
<li>Endnotes must be output explicitly; mom does not output |
| 4849 |
them for you. In |
| 4850 |
<a href="rectoverso.html#collate">collated</a> |
| 4851 |
documents, this allows you to choose whether you want the |
| 4852 |
endnotes to appear at the end of each chapter or article in a |
| 4853 |
document, or grouped together at the very end of the document. |
| 4854 |
</li> |
| 4855 |
</ol> |
| 4856 |
|
| 4857 |
<p> |
| 4858 |
Within endnotes, you may use the document element tags |
| 4859 |
<a href="#pp">PP</a>, |
| 4860 |
<a href="#quote">QUOTE</a> |
| 4861 |
and |
| 4862 |
<a href="#blockquote">BLOCKQUOTE</a>. |
| 4863 |
This provides the flexibility to create endnotes that run to several |
| 4864 |
paragraphs, as well as to embed cited text within endnotes. |
| 4865 |
</p> |
| 4866 |
|
| 4867 |
<p> |
| 4868 |
Should you wish to change the appearance of quotes or blockquotes |
| 4869 |
that appear within endnotes, you may do so with the |
| 4870 |
<a href="#quote-control">quote control macros</a> |
| 4871 |
or |
| 4872 |
<a href="#blockquote-control">blockquote control macros</a>. |
| 4873 |
However, you must make the changes <i>within</i> each endnote, |
| 4874 |
prior to invoking <kbd>.QUOTE</kbd> or <kbd>.BLOCKQUOTE</kbd>, |
| 4875 |
and undo them prior to terminating the endnote (i.e. before |
| 4876 |
<kbd>.ENDNOTE OFF</kbd>), otherwise the changes will affect |
| 4877 |
subsequent quotes and blockquotes that appear in the document body |
| 4878 |
as well. |
| 4879 |
</p> |
| 4880 |
|
| 4881 |
<div class="box-tip"> |
| 4882 |
<p class="tip"> |
| 4883 |
<span class="note">Note:</span> |
| 4884 |
See |
| 4885 |
<a href="refer.html">refer.html</a> |
| 4886 |
for information on using endnotes with the <kbd>refer</kbd> |
| 4887 |
bibliographic database. |
| 4888 |
</p> |
| 4889 |
</div> |
| 4890 |
|
| 4891 |
<h3 id="endnote-behaviour" class="docs">Endnotes behaviour</h3> |
| 4892 |
|
| 4893 |
<p> |
| 4894 |
When you output endnotes (with |
| 4895 |
<kbd><a href="#endnotes">.ENDNOTES</a></kbd>), |
| 4896 |
mom finishes processing the last page of your document, then breaks |
| 4897 |
to a new page for printing the endnotes. If the document type is |
| 4898 |
<kbd><a href="docprocessing.html#doctype">CHAPTER</a></kbd>, |
| 4899 |
the centre part of the |
| 4900 |
<a href="definitions.html#header">header</a> |
| 4901 |
(or footer), which, by default, contains a chapter number or title, |
| 4902 |
is removed. |
| 4903 |
</p> |
| 4904 |
|
| 4905 |
<p> |
| 4906 |
By default, mom starts the endnotes page with a bold, centred head, |
| 4907 |
“ENDNOTES”. Subsequently, for each section in a |
| 4908 |
<a href="rectoverso.html#collate-intro">collated</a> |
| 4909 |
document (e.g. chapters in a book), she identifies the section in bold |
| 4910 |
type, flush left and underscored, followed by one-half linespace. |
| 4911 |
Endnotes pertaining to the section are output underneath, identified |
| 4912 |
by superscript numbers. The text of the endnotes themselves is |
| 4913 |
indented to the right of the numbers. |
| 4914 |
</p> |
| 4915 |
|
| 4916 |
<div class="box-tip"> |
| 4917 |
<p class="tip"> |
| 4918 |
<span class="note">Note:</span> |
| 4919 |
The one-half linespace between section identifiers and the endnotes |
| 4920 |
themselves, plus the need to group identifiers and endnotes sensibly, |
| 4921 |
means that mom cannot guarantee perfectly aligned bottom margins. |
| 4922 |
This is an unavoidable consequence of the structure of endnotes. |
| 4923 |
</p> |
| 4924 |
</div> |
| 4925 |
|
| 4926 |
<p> |
| 4927 |
Of course, all the defaults, as well as the overall style of the |
| 4928 |
endnotes pages, can be changed with the |
| 4929 |
<a href="#endnote-control">endnote control macros</a>. |
| 4930 |
The attentive will notice that endnotes have an awful lot of control |
| 4931 |
macros. This is because endnotes are like a mini-document unto |
| 4932 |
themselves, and therefore need not be bound by the style parameters |
| 4933 |
of the body of the document. |
| 4934 |
</p> |
| 4935 |
|
| 4936 |
<h3 id="endnote-columns" class="docs">Endnotes and columnar documents</h3> |
| 4937 |
|
| 4938 |
<p> |
| 4939 |
If your document is set in columns (see |
| 4940 |
<a href="docprocessing.html#columns">COLUMNS</a>), |
| 4941 |
mom gives you the option to have endnotes appear in either |
| 4942 |
the column format or set to the full page width. See |
| 4943 |
<a href="#endnotes-no-columns">ENDNOTES_NO_COLUMNS</a>. |
| 4944 |
</p> |
| 4945 |
|
| 4946 |
<!-- -ENDNOTE- --> |
| 4947 |
|
| 4948 |
<div class="macro-id-overline"> |
| 4949 |
<h3 id="endnote" class="macro-id">ENDNOTE</h3> |
| 4950 |
</div> |
| 4951 |
|
| 4952 |
<div class="box-macro-args"> |
| 4953 |
Macro: <b>ENDNOTE</b> <kbd class="macro-args"><toggle> [ BREAK | BR ]</kbd> |
| 4954 |
</div> |
| 4955 |
<p class="requires"> |
| 4956 |
See <span style="font-style: normal"><a href="#endnote-note">HYPER-IMPORTANT NOTE</a></span> |
| 4957 |
</p> |
| 4958 |
|
| 4959 |
<p> |
| 4960 |
ENDNOTE is a toggle macro, therefore invoking it on a line by itself |
| 4961 |
allows you to enter an endnote in the body of a document. Invoking |
| 4962 |
it with any other argument (i.e. <kbd>OFF</kbd>, <kbd>QUIT</kbd>, |
| 4963 |
<kbd>END</kbd>, <kbd>X</kbd>...) tells mom that you’ve |
| 4964 |
finished the endnote. |
| 4965 |
</p> |
| 4966 |
|
| 4967 |
<div class="box-tip"> |
| 4968 |
<p class="tip"> |
| 4969 |
<span class="note">Note:</span> |
| 4970 |
If an endnote runs to more than one paragraph, do <i>not</i> begin |
| 4971 |
the endnote with the |
| 4972 |
<a href="#pp">PP</a> |
| 4973 |
tag. Use PP only to introduce subsequent paragraphs. |
| 4974 |
</p> |
| 4975 |
</div> |
| 4976 |
|
| 4977 |
<div id="endnote-note" class="box-tip"> |
| 4978 |
<p class="tip-top"> |
| 4979 |
<span class="note">HYPER-IMPORTANT NOTE:</span> |
| 4980 |
If your |
| 4981 |
<a href="#endnote-marker-style">ENDNOTE_MARKER_STYLE</a> |
| 4982 |
is <kbd>NUMBER</kbd> or <kbd>SUPERSCRIPT</kbd> (mom’s |
| 4983 |
default is <kbd>NUMBER</kbd> unless you have |
| 4984 |
<a href="refer.html#endnote-refs">ENDNOTE_REFS</a> |
| 4985 |
enabled, in which case it’s <kbd>SUPERSCRIPT</kbd>), the final word on the |
| 4986 |
<a href="definitions.html#inputline">input line</a> |
| 4987 |
that comes immediately before <kbd>.ENDNOTE</kbd> must terminate |
| 4988 |
with a |
| 4989 |
<a href="typesetting.html#join"><kbd>\c</kbd></a> |
| 4990 |
inline escape. See the |
| 4991 |
<a href="#endnote-example">endnote example</a> |
| 4992 |
above. |
| 4993 |
</p> |
| 4994 |
|
| 4995 |
<p> |
| 4996 |
Additionally, in |
| 4997 |
<a href="definitions.html#filled">fill</a> |
| 4998 |
modes |
| 4999 |
(<a href="typesetting.html#justify">JUSTIFY</a> |
| 5000 |
or |
| 5001 |
<a href="typesetting.html#quad">QUAD</a>, |
| 5002 |
the line after <kbd>.ENDNOTE OFF</kbd> should be |
| 5003 |
entered as if there were no interruption in the input text, i.e., |
| 5004 |
the line should begin with a literal space or punctuation mark (see |
| 5005 |
explanation and examples for footnotes, which apply equally to |
| 5006 |
endnotes, |
| 5007 |
<a href="#fn-and-punct">here</a>). |
| 5008 |
</p> |
| 5009 |
|
| 5010 |
<p> |
| 5011 |
In |
| 5012 |
<a href="definitions.html#filled">no-fill</a> |
| 5013 |
modes, the optional argument <kbd>BREAK</kbd> or <kbd>BR</kbd> may |
| 5014 |
be used after the <kbd>OFF</kbd> (or <kbd>OFF</kbd>, |
| 5015 |
<kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>, etc) argument to |
| 5016 |
instruct mom not to join the next input line to the previous output. |
| 5017 |
See |
| 5018 |
<a href="#fn-and-punct-nofill">here</a> |
| 5019 |
for a more complete explanation. The examples are for |
| 5020 |
<kbd>.FOOTNOTE</kbd>, but apply equally to <kbd>.ENDNOTE</kbd>. |
| 5021 |
</p> |
| 5022 |
|
| 5023 |
<p class="tip-bottom"> |
| 5024 |
If your ENDNOTE_MARKER_STYLE is LINE, do not use the <kbd>\c</kbd> |
| 5025 |
escape, and enter the line after <kbd>.ENDNOTE OFF</kbd> normally, |
| 5026 |
ie at your text editor’s left margin. |
| 5027 |
</p> |
| 5028 |
</div> |
| 5029 |
|
| 5030 |
<!-- -ENDNOTES- --> |
| 5031 |
|
| 5032 |
<div class="macro-id-overline"> |
| 5033 |
<h3 id="endnotes" class="macro-id">ENDNOTES</h3> |
| 5034 |
</div> |
| 5035 |
|
| 5036 |
<div class="box-macro-args"> |
| 5037 |
Macro: <b>ENDNOTES</b> |
| 5038 |
</div> |
| 5039 |
|
| 5040 |
<p> |
| 5041 |
Unlike footnotes, which mom automatically outputs at the bottom |
| 5042 |
of pages, endnotes must be explicitly output by you, the |
| 5043 |
user. ENDNOTES, by itself (i.e. without any argument), is the macro |
| 5044 |
to do this. |
| 5045 |
</p> |
| 5046 |
|
| 5047 |
<p> |
| 5048 |
Typically, you’ll use ENDNOTES at the end of a document. If |
| 5049 |
it’s a single (i.e. not collated) document, mom will print |
| 5050 |
the endnotes pertaining to it. If it’s a collated document, |
| 5051 |
mom will print all the endnotes contained within all sections of |
| 5052 |
the document (typically chapters), appropriately identified and |
| 5053 |
numbered. |
| 5054 |
</p> |
| 5055 |
|
| 5056 |
<p> |
| 5057 |
Should you wish to output the endnotes for each section of a |
| 5058 |
collated document at the ends of the sections (instead of at the |
| 5059 |
very end of the document), simply invoke <kbd>.ENDNOTES</kbd> |
| 5060 |
immediately prior to |
| 5061 |
<a href="rectoverso.html#collate">COLLATE</a>. |
| 5062 |
Mom will print the endnotes, identified and numbered appropriately, |
| 5063 |
on a separate page prior to starting the next section of the |
| 5064 |
document. Each subsequent invocation of <kbd>.ENDNOTES</kbd> |
| 5065 |
outputs only those endnotes that mom collected after the previous |
| 5066 |
invocation. |
| 5067 |
</p> |
| 5068 |
|
| 5069 |
<div class="defaults-container" style="background-color: #ded4bd; border: none;"> |
| 5070 |
<h3 id="endnote-control" class="docs defaults">ENDNOTES control macros and defaults</h3> |
| 5071 |
|
| 5072 |
<div class="box-important" style="width: 700px; margin: auto; background-color: #ded4bd;"> |
| 5073 |
<p class="tip-top" style="color: #000056;"> |
| 5074 |
<span class="important">Important:</span> |
| 5075 |
Endnotes control macros must always be invoked prior to the first |
| 5076 |
instance of |
| 5077 |
<a href="#endnote"><kbd>.ENDNOTE</kbd></a>. |
| 5078 |
</p> |
| 5079 |
|
| 5080 |
<p style="color: #000056; margin-top: -.5em;"> |
| 5081 |
When you embed endnotes in the body of a document, mom collects |
| 5082 |
<i>and processes</i> them for later outputting (when you invoke |
| 5083 |
<a href="#endnotes"><kbd>.ENDNOTES</kbd></a>). |
| 5084 |
By the time you do invoke <kbd |
| 5085 |
style="color: #000056;">.ENDNOTES</kbd>, it’s much too late to |
| 5086 |
change your mind about how you want them to look. |
| 5087 |
</p> |
| 5088 |
|
| 5089 |
<p class="tip-bottom" style="color: #000056; margin-top: -.5em;"> |
| 5090 |
My advice? If you’re planning to change the default |
| 5091 |
appearance of endnotes pages, set them up prior to |
| 5092 |
<a href="docprocessing.html#start">START</a>. |
| 5093 |
</p> |
| 5094 |
</div> |
| 5095 |
|
| 5096 |
<ol style="margin-top: .5em; padding-bottom: .5em;"> |
| 5097 |
<li><a href="#endnotes-general"><b>General endnotes style control</b></a> |
| 5098 |
<ul style="margin-left: -.5em;"> |
| 5099 |
<li><a href="#endnote-style">Base family/font/quad</a></li> |
| 5100 |
<li><a href="#endnote-pt-size">Base point size</a></li> |
| 5101 |
<li><a href="#endnote-lead">Leading</a></li> |
| 5102 |
<li><a href="#endnote-spacing">Spacing between endnotes</a></li> |
| 5103 |
<li><a href="#singlespace-endnotes">Singlespace endnotes (TYPEWRITE only)</a></li> |
| 5104 |
<li><a href="#endnote-para-indent">Paragraph indenting</a></li> |
| 5105 |
<li><a href="#endnote-para-space">Inter-paragraph spacing</a></li> |
| 5106 |
<li><a href="#endnotes-no-columns">Turning off column mode during endnotes output</a></li> |
| 5107 |
</ul></li> |
| 5108 |
<li><a href="#endnotes-pagination"><b>Pagination of endnotes</b></a> |
| 5109 |
<ul style="margin-left: -.5em;"> |
| 5110 |
<li><a href="#endnotes-pagenum-style">Page numbering style</a></li> |
| 5111 |
<li><a href="#endnotes-first-pagenumber">Setting the first page number of endnotes</a></li> |
| 5112 |
<li><a href="#endnotes-no-first-pagenum">Omitting a page number on the first page of endnotes</a></li> |
| 5113 |
<li><a href="#suspend-pagination">Suspending pagination during endnotes output</a></li> |
| 5114 |
</ul></li> |
| 5115 |
<li><a href="#endnotes-header-control"><b>Header/footer control</b></a> |
| 5116 |
<ul style="margin-left: -.5em;"> |
| 5117 |
<li><a href="#endnotes-modify-hdrftr">Modifying what goes in the endnotes header/footer</a></li> |
| 5118 |
<li><a href="#endnotes-hdrftr-center">Header/footer centre string when doctype is CHAPTER</a></li> |
| 5119 |
<li><a href="#endnotes-allows-headers">Allow headers on endnotes pages</a></li> |
| 5120 |
</ul></li> |
| 5121 |
<li><a href="#endnotes-header"><b>Endnotes header (first-page title) control</b></a> |
| 5122 |
<ul style="margin-left: -.5em;"> |
| 5123 |
<li><a href="#endnotes-header-string">Header string</a></li> |
| 5124 |
<li><a href="#endnotes-header-string-control">Header string control macros and defaults</a></li> |
| 5125 |
<li><a href="#endnotes-header-placement">Header string placement</a></li> |
| 5126 |
<li><a href="#endnotes-header-underscore">Header string underscoring</a></li> |
| 5127 |
<li><a href="#endnotes-header-caps">Header string capitalization</a></li> |
| 5128 |
</ul></li> |
| 5129 |
<li><a href="#endnotes-doc-title"><b>Endnotes document-identification string control</b></a> |
| 5130 |
<ul style="margin-left: -.5em;"> |
| 5131 |
<li><a href="#endnote-title">Document-identification string(s)</a></li> |
| 5132 |
<li><a href="#endnote-title-control">Document-identification string control macros and defaults</a></li> |
| 5133 |
</ul></li> |
| 5134 |
<li><a href="#endnotes-numbering"><b>Endnotes referencing style</b></a> |
| 5135 |
<ul style="margin-left: -.5em;"> |
| 5136 |
<li><a href="#endnote-marker-style">Endnote marker style</a> – by numbers in the text, or by line number |
| 5137 |
<ul style="margin-left: -.5em;"> |
| 5138 |
<li><a href="#endnote-linenumber-gap">Spacing between line-numbered endnotes and the endnote text</a></li> |
| 5139 |
<li><a href="#endnote-linenumber-brackets">Brackets around endnote line numbers</a></li> |
| 5140 |
<li><a href="#endnote-linenumber-separator">Separator after endnote line numbers instead of brackets</a></li> |
| 5141 |
</ul></li> |
| 5142 |
<li><a href="#endnote-number-control">Endnote numbering control macros and defaults</a></li> |
| 5143 |
<li><a href="#endnote-number-alignment">Endnote numbering alignment</a></li> |
| 5144 |
</ul></li> |
| 5145 |
</ol> |
| 5146 |
</div> |
| 5147 |
|
| 5148 |
<h4 id="endnotes-general" class="docs" style="margin-top: -1.5em; margin-bottom: .5em;">1. General endnotes page style control</h4> |
| 5149 |
|
| 5150 |
<h5 id="endnote-style" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">• Base family/font/quad</h5> |
| 5151 |
|
| 5152 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 5153 |
<p class="defaults" style="padding-top: 6px;"> |
| 5154 |
See |
| 5155 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 5156 |
<br/> |
| 5157 |
The following ENDNOTE control macros may also be |
| 5158 |
<a href="#grouping">grouped</a> |
| 5159 |
using ENDNOTE_STYLE. |
| 5160 |
</p> |
| 5161 |
<span class="pre defaults"> |
| 5162 |
.ENDNOTE_FAMILY default = prevailing document family; default is Times Roman |
| 5163 |
.ENDNOTE_FONT default = roman |
| 5164 |
.ENDNOTE_QUAD* default = justified |
| 5165 |
|
| 5166 |
*Note: ENDNOTE_QUAD must be set to either L (LEFT) or J (JUSTIFIED); |
| 5167 |
R (RIGHT) and C (CENTER) will not work. |
| 5168 |
</span> |
| 5169 |
</div> |
| 5170 |
|
| 5171 |
<!-- -ENDNOTE_PT_SIZE- --> |
| 5172 |
|
| 5173 |
<h5 id="endnote-pt-size" class="docs" style="margin-top: -1.5em; margin-bottom: .5em; margin-left: .5em;">• Base point size</h5> |
| 5174 |
|
| 5175 |
<div class="box-macro-args"> |
| 5176 |
Macro: <b>ENDNOTE_PT_SIZE</b> <kbd class="macro-args"><base type size of endnotes></kbd> |
| 5177 |
</div> |
| 5178 |
|
| 5179 |
<p> |
| 5180 |
Unlike most other control macros that deal with size of document |
| 5181 |
elements, ENDNOTE_PT_SIZE takes as its argument an absolute value, |
| 5182 |
relative to nothing. Therefore, the argument represents the size of |
| 5183 |
endnote type in |
| 5184 |
<a href="definitions.html#picaspoints">points</a>, |
| 5185 |
unless you append an alternative |
| 5186 |
<a href="definitions.html#unitofmeasure">unit of measure</a>. |
| 5187 |
For example, |
| 5188 |
<br/> |
| 5189 |
<span class="pre-in-pp"> |
| 5190 |
.ENDNOTE_PT_SIZE 12 |
| 5191 |
</span> |
| 5192 |
sets the base point size of type on the endnotes page to 12 |
| 5193 |
points, whereas |
| 5194 |
<br/> |
| 5195 |
<span class="pre-in-pp"> |
| 5196 |
.ENDNOTE_PT_SIZE .6i |
| 5197 |
</span> |
| 5198 |
sets the base point size of type on the endnotes page to 1/6 of an |
| 5199 |
inch. |
| 5200 |
</p> |
| 5201 |
|
| 5202 |
<p> |
| 5203 |
The type size set with ENDNOTE_PT_SIZE is the size of type used for |
| 5204 |
the text of the endnotes, and forms the basis from which the point |
| 5205 |
size of other endnote page elements is calculated. |
| 5206 |
</p> |
| 5207 |
|
| 5208 |
<p> |
| 5209 |
The default for |
| 5210 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a> |
| 5211 |
is 12.5 points (the same default size used in the body of the |
| 5212 |
document). |
| 5213 |
</p> |
| 5214 |
|
| 5215 |
<!-- -ENDNOTE_LEAD- --> |
| 5216 |
|
| 5217 |
<h5 id="endnote-lead" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Leading</h5> |
| 5218 |
|
| 5219 |
<div class="box-macro-args"> |
| 5220 |
Macro: <b>ENDNOTE_LEAD</b> <kbd class="macro-args"><base leading of endnotes> [ ADJUST ] </kbd> |
| 5221 |
</div> |
| 5222 |
|
| 5223 |
<p class="requires"> |
| 5224 |
• Does not require a <a href="definitions.html#unitofmeasure">unit of measure</a>; points is assumed |
| 5225 |
</p> |
| 5226 |
|
| 5227 |
<p> |
| 5228 |
Unlike most other control macros that deal with leading of document |
| 5229 |
elements, ENDNOTE_LEAD takes as its argument an absolute value, |
| 5230 |
relative to nothing. Therefore, the argument represents the |
| 5231 |
<a href="definitions.html#leading">leading</a> |
| 5232 |
of endnotes in |
| 5233 |
<a href="definitions.html#picaspoints">points</a> |
| 5234 |
unless you append an alternative |
| 5235 |
<a href="definitions.html#unitofmeasure">unit of measure</a>. |
| 5236 |
For example, |
| 5237 |
<br/> |
| 5238 |
<span class="pre-in-pp"> |
| 5239 |
.ENDNOTE_LEAD 14 |
| 5240 |
</span> |
| 5241 |
sets the base leading of type on the endnotes page to 14 |
| 5242 |
points, whereas |
| 5243 |
<br/> |
| 5244 |
<span class="pre-in-pp"> |
| 5245 |
.ENDNOTE_LEAD .5i |
| 5246 |
</span> |
| 5247 |
sets the base leading of type on the endnotes page to 1/2 inch. |
| 5248 |
</p> |
| 5249 |
|
| 5250 |
<p> |
| 5251 |
If you want the leading of endnotes adjusted to fill the page, pass |
| 5252 |
ENDNOTE_LEAD the optional argument |
| 5253 |
<kbd>ADJUST</kbd>. (See |
| 5254 |
<a href="docprocessing.html#doc-lead-adjust">DOC_LEAD_ADJUST</a> |
| 5255 |
for an explanation of leading adjustment.) |
| 5256 |
</p> |
| 5257 |
|
| 5258 |
<p> |
| 5259 |
The default for |
| 5260 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a> |
| 5261 |
is the prevailing document leading (16 by default), adjusted. |
| 5262 |
</p> |
| 5263 |
|
| 5264 |
<div class="box-tip"> |
| 5265 |
<p class="tip"> |
| 5266 |
<span class="note">Note:</span> |
| 5267 |
Even if you give mom a <kbd>.DOC_LEAD_ADJUST OFF</kbd> command, she |
| 5268 |
will still, by default, adjust endnote leading. You <i>must</i> |
| 5269 |
enter <kbd>.ENDNOTE_LEAD <lead></kbd> with no |
| 5270 |
<kbd>ADJUST</kbd> argument to disable this default behaviour. |
| 5271 |
</p> |
| 5272 |
</div> |
| 5273 |
|
| 5274 |
<!-- -ENDNOTE_SPACING- --> |
| 5275 |
|
| 5276 |
<h5 id="endnote-spacing" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Spacing between endnotes</h5> |
| 5277 |
|
| 5278 |
<div class="box-macro-args"> |
| 5279 |
Macro: <b>ENDNOTE_SPACING</b> <kbd class="macro-args"><space to insert between endnotes></kbd> |
| 5280 |
</div> |
| 5281 |
<p class="requires"> |
| 5282 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 5283 |
</p> |
| 5284 |
|
| 5285 |
<p> |
| 5286 |
If you’d like some whitespace between endnotes, just invoke |
| 5287 |
ENDNOTE_SPACING with the amount of space you want, e.g. |
| 5288 |
<br/> |
| 5289 |
<span class="pre-in-pp"> |
| 5290 |
.ENDNOTE_SPACING 6p |
| 5291 |
</span> |
| 5292 |
which inserts 6 points of lead between endnotes. Be aware, though, |
| 5293 |
that inserting space between endnotes means that the bottoms of |
| 5294 |
endnotes pages will most likely not align. |
| 5295 |
</p> |
| 5296 |
|
| 5297 |
<p> |
| 5298 |
Mom’s default is not to insert any whitespace between endnotes. |
| 5299 |
</p> |
| 5300 |
|
| 5301 |
<!-- -SINGLESPACE_ENDNOTES- --> |
| 5302 |
|
| 5303 |
<h5 id="singlespace-endnotes" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">• Singlespace endnotes (TYPEWRITE only)</h5> |
| 5304 |
|
| 5305 |
<div class="box-macro-args"> |
| 5306 |
Macro: <b>SINGLESPACE_ENDNOTES</b> <kbd class="macro-args"><toggle></kbd> |
| 5307 |
</div> |
| 5308 |
|
| 5309 |
<p> |
| 5310 |
If your |
| 5311 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a> |
| 5312 |
is <kbd>TYPEWRITE</kbd> and you use TYPEWRITE’s default |
| 5313 |
double-spacing, endnotes are double-spaced. If your document is |
| 5314 |
single-spaced, endnotes are single-spaced. |
| 5315 |
</p> |
| 5316 |
|
| 5317 |
<p> |
| 5318 |
If, for some reason, you’d prefer that endnotes be |
| 5319 |
single-spaced in an otherwise double-spaced document (including |
| 5320 |
double-spaced |
| 5321 |
<a href="rectoverso.html#collate">collated</a> |
| 5322 |
documents), invoke |
| 5323 |
<br/> |
| 5324 |
<span class="pre-in-pp"> |
| 5325 |
.SINGLESPACE_ENDNOTES |
| 5326 |
</span> |
| 5327 |
with no argument. And if, god help you, you want to change endnote |
| 5328 |
single-spacing back to double-spacing for different spacing of |
| 5329 |
endnotes output at the ends of separate documents in a collated |
| 5330 |
document, invoke <kbd>.SINGLESPACE_ENDNOTES</kbd> with any argument |
| 5331 |
(<kbd>OFF</kbd>, <kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>...). |
| 5332 |
</p> |
| 5333 |
|
| 5334 |
<!-- -ENDNOTE_PARA_INDENT- --> |
| 5335 |
|
| 5336 |
<h5 id="endnote-para-indent" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">• Paragraph indenting</h5> |
| 5337 |
|
| 5338 |
<div class="box-macro-args"> |
| 5339 |
Macro: <b>ENDNOTE_PARA_INDENT</b> <kbd class="macro-args"><amount to indent first line of paragraphs in endnotes></kbd> |
| 5340 |
</div> |
| 5341 |
|
| 5342 |
<p class="requires"> |
| 5343 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 5344 |
</p> |
| 5345 |
|
| 5346 |
<p> |
| 5347 |
ENDNOTE_PARA_INDENT works exactly the same way as |
| 5348 |
<a href="#para-indent">PARA_INDENT</a>, |
| 5349 |
except that the indent given is the amount by which to indent the |
| 5350 |
first lines of endnote paragraphs, not document body paragraphs. |
| 5351 |
</p> |
| 5352 |
|
| 5353 |
<p> |
| 5354 |
The default is 1.5 |
| 5355 |
<a href="definitions.html#em">ems</a> |
| 5356 |
for |
| 5357 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>; |
| 5358 |
1/2 inch for |
| 5359 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>. |
| 5360 |
</p> |
| 5361 |
|
| 5362 |
<div class="box-tip"> |
| 5363 |
<p class="tip"> |
| 5364 |
<span class="note">Note:</span> |
| 5365 |
The first line of the first paragraph of endnotes (the one attached |
| 5366 |
immediately to the identifying endnote number) is never indented. |
| 5367 |
Only subsequent paragraphs are affected by ENDNOTE_PARA_INDENT. |
| 5368 |
</p> |
| 5369 |
</div> |
| 5370 |
|
| 5371 |
<!-- -ENDNOTE_PARA_SPACE- --> |
| 5372 |
|
| 5373 |
<h5 id="endnote-para-space" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Inter-paragraph spacing</h5> |
| 5374 |
|
| 5375 |
<div class="box-macro-args"> |
| 5376 |
Macro: <b>ENDNOTE_PARA_SPACE</b> <kbd class="macro-args"><toggle></kbd> |
| 5377 |
</div> |
| 5378 |
|
| 5379 |
<p> |
| 5380 |
ENDNOTE_PARA_SPACE works exactly the same way as |
| 5381 |
<a href="#pp-space">PARA_SPACE</a>, |
| 5382 |
except that it inserts a blank line between endnote paragraphs, not |
| 5383 |
document body paragraphs. |
| 5384 |
</p> |
| 5385 |
|
| 5386 |
<p> |
| 5387 |
The default is not to insert a blank line between paragraphs in |
| 5388 |
endnotes. |
| 5389 |
</p> |
| 5390 |
|
| 5391 |
<!-- -ENDNOTES_NO_COLUMNS- --> |
| 5392 |
|
| 5393 |
<h5 id="endnotes-no-columns" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">• Turning off column mode during endnotes output</h5> |
| 5394 |
|
| 5395 |
<div class="box-macro-args"> |
| 5396 |
Macro: <b>ENDNOTES_NO_COLUMNS</b> <kbd class="macro-args"><toggle></kbd> |
| 5397 |
</div> |
| 5398 |
|
| 5399 |
<p> |
| 5400 |
By default, if your document is set in |
| 5401 |
<a href="docprocessing.html#columns">columns</a>, |
| 5402 |
mom sets the endnotes in columns, too. However, if your document |
| 5403 |
is set in columns and you’d like the endnotes not to be, |
| 5404 |
just invoke <kbd>.ENDNOTES_NO_COLUMNS</kbd> with no argument. |
| 5405 |
The endnotes pages will be set to the full page measure of your |
| 5406 |
document. |
| 5407 |
</p> |
| 5408 |
|
| 5409 |
<p> |
| 5410 |
If you output endnotes at the end of each document in a |
| 5411 |
<a href="rectoverso.html#collate">collated</a> |
| 5412 |
document set in columns, column mode will automatically be |
| 5413 |
reinstated for each document, even with ENDNOTES_NO_COLUMNS turned |
| 5414 |
on. In such circumstances, you must re-enable ENDNOTES_NO_COLUMNS |
| 5415 |
for each separate collated document. |
| 5416 |
</p> |
| 5417 |
|
| 5418 |
<h4 id="endnotes-pagination" class="docs" style="margin-bottom: .5em;">2. Pagination of endnotes</h4> |
| 5419 |
|
| 5420 |
<!-- -ENDNOTES_PAGENUM_STYLE- --> |
| 5421 |
|
| 5422 |
<h5 id="endnotes-pagenum-style" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">• Page numbering style</h5> |
| 5423 |
|
| 5424 |
<div class="box-macro-args"> |
| 5425 |
Macro: <b>ENDNOTES_PAGENUM_STYLE</b> <kbd class="macro-args">DIGIT | ROMAN | roman | ALPHA | alpha</kbd> |
| 5426 |
</div> |
| 5427 |
|
| 5428 |
<p> |
| 5429 |
Use this macro to set the page numbering style of endnotes pages. |
| 5430 |
The arguments are identical to those for |
| 5431 |
<a href="headfootpage.html#pagenum-style">PAGENUM_STYLE</a>. |
| 5432 |
The default is <kbd>digit</kbd>. You may want to change it to, say, |
| 5433 |
<kbd>alpha</kbd>, which you would do with |
| 5434 |
<br/> |
| 5435 |
<span class="pre-in-pp"> |
| 5436 |
.ENDNOTES_PAGENUM_STYLE alpha |
| 5437 |
</span> |
| 5438 |
</p> |
| 5439 |
|
| 5440 |
<!-- -ENDNOTES_FIRST_PAGENUMBER- --> |
| 5441 |
|
| 5442 |
<h5 id="endnotes-first-pagenumber" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Setting the first page number of endnotes</h5> |
| 5443 |
|
| 5444 |
<div class="box-macro-args"> |
| 5445 |
Macro: <b>ENDNOTES_FIRST_PAGENUMBER</b> <kbd class="macro-args"><page # that appears on page 1 of endnotes></kbd> |
| 5446 |
</div> |
| 5447 |
|
| 5448 |
<p> |
| 5449 |
Use this macro with caution. If all endnotes for several |
| 5450 |
<a href="rectoverso.html#collate">collated</a> |
| 5451 |
documents are to be output at once, i.e. not at the end of each |
| 5452 |
separate doc, ENDNOTES_FIRST_PAGENUMBER tells mom what page number |
| 5453 |
to put on the first page of the endnotes. |
| 5454 |
</p> |
| 5455 |
|
| 5456 |
<p> |
| 5457 |
However, if you set ENDNOTES_FIRST_PAGENUMBER in collated documents |
| 5458 |
in which the endnotes are output after each section (chapter, |
| 5459 |
article, etc), you have to reset every section’s first page |
| 5460 |
number after |
| 5461 |
<a href="rectoverso.html#collate">COLLATE</a> |
| 5462 |
and before |
| 5463 |
<a href="docprocessing.html#start">START</a> |
| 5464 |
with |
| 5465 |
<a href="headfootpage.html#pagenumber">PAGENUMBER</a>. |
| 5466 |
</p> |
| 5467 |
|
| 5468 |
<!-- -ENDNOTES_NO_FIRST_PAGENUN- --> |
| 5469 |
|
| 5470 |
<h5 id="endnotes-no-first-pagenum" class="docs" style="margin-top: -.25em; margin-bottom: .5em; margin-left: .5em;">• Omitting a page number on the first page of endnotes</h5> |
| 5471 |
|
| 5472 |
<div class="box-macro-args"> |
| 5473 |
Macro: <b>ENDNOTES_NO_FIRST_PAGENUM</b> <kbd class="macro-args"><toggle></kbd> |
| 5474 |
</div> |
| 5475 |
|
| 5476 |
<p> |
| 5477 |
This macro is for use only if |
| 5478 |
<a href="headfootpage.html#footers">FOOTERS</a> |
| 5479 |
are on. It tells |
| 5480 |
<a href="#endnotes">ENDNOTES</a> |
| 5481 |
not to print a page number on the first endnotes page. Mom’s |
| 5482 |
default is to print the page number. |
| 5483 |
</p> |
| 5484 |
|
| 5485 |
<!-- -SUSPEND_PAGINATION- --> |
| 5486 |
|
| 5487 |
<h5 id="suspend-pagination" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Suspending pagination during endnotes output</h5> |
| 5488 |
|
| 5489 |
<div class="box-macro-args" style="margin-bottom: 1em;"> |
| 5490 |
Macro: <b>SUSPEND_PAGINATION</b> |
| 5491 |
</div> |
| 5492 |
|
| 5493 |
<div class="box-macro-args"> |
| 5494 |
Macro: <b>RESTORE_PAGINATION</b> |
| 5495 |
</div> |
| 5496 |
|
| 5497 |
<p> |
| 5498 |
SUSPEND_PAGINATION doesn’t take an argument. Invoked |
| 5499 |
immediately prior to |
| 5500 |
<a href="#endnotes">ENDNOTES</a>, |
| 5501 |
it turns off endnotes pages pagination. Mom continues, however to |
| 5502 |
increment page numbers silently. |
| 5503 |
</p> |
| 5504 |
|
| 5505 |
<p> |
| 5506 |
To restore normal document pagination after endnotes, invoke |
| 5507 |
<kbd>.RESTORE_PAGINATION</kbd> (again, with no argument) immediately |
| 5508 |
after <kbd>.ENDNOTES</kbd>. |
| 5509 |
</p> |
| 5510 |
|
| 5511 |
<h4 id="endnotes-header-control" class="docs" style="margin-bottom: .5em;">3. Header/footer control</h4> |
| 5512 |
|
| 5513 |
<h5 id="endnotes-modify-hdrftr" class="docs" style="margin-top: 0; margin-bottom: -.75em; margin-left: .5em;">• Modifying what goes in the endnotes header/footer</h5> |
| 5514 |
|
| 5515 |
<p> |
| 5516 |
If you wish to modify what appears in the header/footer that appears |
| 5517 |
on endnotes page(s), make the changes before you invoke |
| 5518 |
<a href="#endnotes"><kbd>.ENDNOTES</kbd></a>, |
| 5519 |
not afterwards. |
| 5520 |
</p> |
| 5521 |
|
| 5522 |
<p> |
| 5523 |
Except in the case of |
| 5524 |
<a href="docprocessing.html#doctype">DOCTYPE <kbd>CHAPTER</kbd></a>, |
| 5525 |
mom prints the same header or footer used throughout the document |
| 5526 |
on the endnotes page(s). Chapters get treated differently in that, |
| 5527 |
by default, mom does not print the header/footer centre string |
| 5528 |
(normally the chapter number or chapter title.) In most cases, this |
| 5529 |
is what you want. However, should you not want mom to remove |
| 5530 |
the centre string from the endnotes page(s) headers/footers, invoke |
| 5531 |
<kbd><a href="#endnotes-hdrftr-center">.ENDNOTES_HEADER_CENTER</a></kbd> |
| 5532 |
with no argument. |
| 5533 |
</p> |
| 5534 |
|
| 5535 |
<p> |
| 5536 |
An important change you may want to make is to put the word |
| 5537 |
“Endnotes” in the header/footer centre position. To do |
| 5538 |
so, invoke |
| 5539 |
<br/> |
| 5540 |
<span class="pre-in-pp" style="margin-bottom: -1em;"> |
| 5541 |
.HEADER_CENTER "Endnotes" |
| 5542 |
</span> |
| 5543 |
or |
| 5544 |
<span class="pre-in-pp" style="margin-top: -.5em;"> |
| 5545 |
.FOOTER_CENTER "Endnotes" |
| 5546 |
</span> |
| 5547 |
prior to invoking <kbd>.ENDNOTES</kbd>. |
| 5548 |
</p> |
| 5549 |
|
| 5550 |
<div class="box-tip"> |
| 5551 |
<p class="tip"> |
| 5552 |
<span class="note">Note:</span> |
| 5553 |
If your |
| 5554 |
<a href="docprocessing.html#doctype">DOCTYPE</a> |
| 5555 |
is <kbd>CHAPTER</kbd>, you must also invoke |
| 5556 |
<a href="#endnotes-hdrftr-center">ENDNOTES_HEADER_CENTER</a> |
| 5557 |
for the ENDNOTES_HEADER_CENTER to appear. |
| 5558 |
</p> |
| 5559 |
</div> |
| 5560 |
|
| 5561 |
<h5 id="endnotes-hdrftr-center" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">• Header/footer centre string when doctype is CHAPTER</h5> |
| 5562 |
|
| 5563 |
<div class="box-macro-args"> |
| 5564 |
Macro: <b>ENDNOTES_HEADER_CENTER</b> <kbd class="macro-args">toggle</kbd> |
| 5565 |
</div> |
| 5566 |
|
| 5567 |
<p> |
| 5568 |
If your |
| 5569 |
<a href="docprocessing.html#doctype">DOCTYPE</a> |
| 5570 |
is <kbd>CHAPTER</kbd> and you want mom to include a centre |
| 5571 |
string in the headers/footers that appear on endnotes |
| 5572 |
pages, invoke <kbd>.ENDNOTES_HEADER_CENTER</kbd> (or |
| 5573 |
<kbd>.ENDNOTES_FOOTER_CENTER</kbd>) with no argument. Mom’s |
| 5574 |
default is not to print the centre string. |
| 5575 |
</p> |
| 5576 |
|
| 5577 |
<p> |
| 5578 |
If, for some reason, having enabled the header/footer centre string |
| 5579 |
on endnotes pages, you wish to disable it, invoke the same macro |
| 5580 |
with any argument (<kbd>OFF</kbd>, <kbd>QUIT</kbd>, <kbd>END</kbd>, |
| 5581 |
<kbd>X</kbd>...). </p> |
| 5582 |
|
| 5583 |
<h5 id="endnotes-allows-headers" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Allow headers on endnotes pages</h5> |
| 5584 |
|
| 5585 |
<div class="box-macro-args"> |
| 5586 |
Macro: <b>ENDNOTES_ALLOWS_HEADERS</b> <kbd class="macro-args"><none> | ALL</kbd> |
| 5587 |
</div> |
| 5588 |
|
| 5589 |
<p> |
| 5590 |
By default, if HEADERS are on, mom prints page headers on all |
| 5591 |
endnotes pages except the first. If you don’t want her to |
| 5592 |
print headers on endnotes pages, do |
| 5593 |
<br/> |
| 5594 |
<span class="pre-in-pp"> |
| 5595 |
.ENDNOTES_ALLOWS_HEADERS OFF |
| 5596 |
</span> |
| 5597 |
If you want headers on every page including the first, do |
| 5598 |
<br/> |
| 5599 |
<span class="pre-in-pp"> |
| 5600 |
.ENDNOTES_ALLOWS_HEADERS ALL |
| 5601 |
</span> |
| 5602 |
</p> |
| 5603 |
|
| 5604 |
<div class="box-tip"> |
| 5605 |
<p class="tip"> |
| 5606 |
<span class="note">Note:</span> |
| 5607 |
If FOOTERS are on, mom prints footers on every endnotes page. |
| 5608 |
This is a style convention. In mom, there is no such beast as |
| 5609 |
ENDNOTES_ALLOWS_FOOTERS OFF. |
| 5610 |
</p> |
| 5611 |
</div> |
| 5612 |
|
| 5613 |
<h4 id="endnotes-header" class="docs">4. Endnotes header (first-page title) control</h4> |
| 5614 |
|
| 5615 |
<!-- -ENDNOTES_HEADER_STRING- --> |
| 5616 |
|
| 5617 |
<h5 id="endnotes-header-string" class="docs" style="margin-top: 1em; margin-bottom: .5em; margin-left: .5em;">• Header (first-page title) string</h5> |
| 5618 |
|
| 5619 |
<div class="box-macro-args"> |
| 5620 |
Macro: <b>ENDNOTES_HEADER_STRING</b> <kbd class="macro-args">"<title to print at the top of endnotes>"</kbd> |
| 5621 |
</div> |
| 5622 |
|
| 5623 |
<p class="alias" style="margin-bottom: 0;"> |
| 5624 |
<i>Alias:</i> <b>ENDNOTE_STRING</b> (for compatibility with older documents) |
| 5625 |
</p> |
| 5626 |
|
| 5627 |
<p> |
| 5628 |
By default, mom prints the word “ENDNOTES” as a head |
| 5629 |
at the top of the first page of endnotes. If you want her to |
| 5630 |
print something else, invoke <kbd>.ENDNOTES_HEADER_STRING</kbd> |
| 5631 |
with the endnotes-page head you want, surrounded by double-quotes. |
| 5632 |
If you don’t want a head at the top of the first |
| 5633 |
endnotes-page, invoke <kbd>.ENDNOTES_HEADER_STRING</kbd> |
| 5634 |
with a blank argument (either two double-quotes side by |
| 5635 |
side—<kbd>""</kbd>—or no argument at all). |
| 5636 |
</p> |
| 5637 |
|
| 5638 |
<!-- -ENDNOTES_HEADER_CONTROL- --> |
| 5639 |
|
| 5640 |
<h5 id="endnotes-header-string-control" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Header (first-page title) control macros and defaults</h5> |
| 5641 |
|
| 5642 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 5643 |
<p class="defaults" style="padding-top: 6px;"> |
| 5644 |
See |
| 5645 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 5646 |
<br/> |
| 5647 |
The following ENDNOTES_HEADER control macros may also be |
| 5648 |
<a href="#grouping">grouped</a> |
| 5649 |
using ENDNOTES_HEADER_STYLE. |
| 5650 |
</p> |
| 5651 |
|
| 5652 |
<p style="margin-top: .5em; margin-bottom: 0; margin-left: .5em"> |
| 5653 |
Please note that “_HEADER_”, here, refers to the title |
| 5654 |
that appears at the top of the first endnotes page, not to the page |
| 5655 |
headers of subsequent endnotes pages. |
| 5656 |
<span class="pre defaults"> |
| 5657 |
.ENDNOTES_HEADER_FAMILY default = prevailing document family |
| 5658 |
.ENDNOTES_HEADER_FONT default = bold |
| 5659 |
.ENDNOTES_HEADER_SIZE* default = +1 |
| 5660 |
.ENDNOTES_HEADER_QUAD default = centred |
| 5661 |
.ENDNOTES_HEADER_COLOR default = black |
| 5662 |
|
| 5663 |
*Relative to the size of the endnotes text (set with ENDNOTE_PT_SIZE) |
| 5664 |
</span> |
| 5665 |
</p> |
| 5666 |
</div> |
| 5667 |
|
| 5668 |
<p style="margin-top: -2em"> |
| 5669 |
<b>Note:</b> <i>For compatibility with older documents, these macros are aliased |
| 5670 |
as</i> <kbd>.ENDNOTE_STRING_<SPEC></kbd>, e.g. <kbd>.ENDNOTE_STRING_FAMILY</kbd>. |
| 5671 |
</p> |
| 5672 |
|
| 5673 |
<!-- -ENDNOTES_HEADER_V_POS- --> |
| 5674 |
|
| 5675 |
<h5 id="endnotes-header-placement" class="docs" style="margin-top: -.25em; margin-bottom: .5em; margin-left: .5em;">• Header (first-page title) placement</h5> |
| 5676 |
|
| 5677 |
<div class="box-macro-args"> |
| 5678 |
Macro: <b>ENDNOTES_HEADER_V_POS</b> <kbd class="macro-args"><distance from top of page></kbd> |
| 5679 |
</div> |
| 5680 |
|
| 5681 |
<p class="requires"> |
| 5682 |
• Argument requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 5683 |
</p> |
| 5684 |
|
| 5685 |
<p class="alias" style="margin-top: -1em; margin-bottom: 0;"> |
| 5686 |
<i>Alias:</i> <b>ENDNOTE_STRING_ADVANCE</b> (for compatibility with older documents) |
| 5687 |
</p> |
| 5688 |
|
| 5689 |
<p> |
| 5690 |
By default, mom places the title (the docheader, as it were) of |
| 5691 |
endnotes pages (typically "ENDNOTES") on the same |
| 5692 |
<a href="definitions.html#baseline">baseline</a> |
| 5693 |
that is used for the start of |
| 5694 |
<a href="definitions.html#running">running text</a>. |
| 5695 |
If you’d prefer another location, higher or lower on the page |
| 5696 |
(thereby also raising or lowering the starting position of the |
| 5697 |
endnotes themselves), invoke <kbd>.ENDNOTES_HEADER_V_POS</kbd> with |
| 5698 |
an argument stating the distance from the top edge of the page at |
| 5699 |
which you’d like the title placed. |
| 5700 |
</p> |
| 5701 |
|
| 5702 |
<p> |
| 5703 |
The argument requires a unit of measure, so if you’d like the title |
| 5704 |
to appear 1-1/2 inches from the top edge of the page, you’d tell |
| 5705 |
mom about it like this: |
| 5706 |
<br/> |
| 5707 |
<span class="pre-in-pp"> |
| 5708 |
.ENDNOTES_HEADER_V_POS 1.5i |
| 5709 |
</span> |
| 5710 |
</p> |
| 5711 |
|
| 5712 |
<!-- -ENDNOTES_HEADER_UNDERSCORE- --> |
| 5713 |
|
| 5714 |
<h5 id="endnotes-header-underscore" class="docs" style="margin-top: -1em; margin-bottom: .5em; margin-left: .5em;">• Header (first-page title) underscoring</h5> |
| 5715 |
|
| 5716 |
<div class="box-macro-args"> |
| 5717 |
Macro: <b>ENDNOTES_HEADER_UNDERSCORE</b> <kbd class="macro-args">[DOUBLE] [<underscore weight> [<underscore gap> [<distance between double rules]]] | <none> | <anything></kbd> |
| 5718 |
</div> |
| 5719 |
|
| 5720 |
<p class="alias" style="margin-bottom: 0;"> |
| 5721 |
<i>Alias:</i> <b>ENDNOTES_HEADER_UNDERLINE</b>. |
| 5722 |
<i>(For compatibility with older documents, also |
| 5723 |
aliased as</i> <b>ENDNOTE_STRING_UNDERSCORE</b> <i>and</i> |
| 5724 |
<b>ENDNOTE_STRING_UNDERLINE</b>.) |
| 5725 |
</p> |
| 5726 |
|
| 5727 |
<p class="requires"> |
| 5728 |
• The argument |
| 5729 |
<span style="font-style: normal"><kbd><underscore weight></kbd></span> |
| 5730 |
must not have the |
| 5731 |
<a href="definitions.html#unitofmeasure">unit of measure</a>, |
| 5732 |
<span style="font-style: normal;"><kbd>p</kbd></span>, |
| 5733 |
appended to it; all other arguments require a unit of measure |
| 5734 |
</p> |
| 5735 |
|
| 5736 |
<p> |
| 5737 |
Invoked without an argument, <kbd>.ENDNOTES_HEADER_UNDERSCORE</kbd> |
| 5738 |
will place a single rule underneath the endnotes page title. Invoked |
| 5739 |
with the argument, <kbd>DOUBLE</kbd>, ENDNOTES_HEADER_UNDERSCORE will |
| 5740 |
double-underscore the title. Invoked with any other non-numeric |
| 5741 |
argument, (e.g. <kbd>OFF, NO, X</kbd>, etc.) the macro disables |
| 5742 |
underscoring of the title. |
| 5743 |
</p> |
| 5744 |
|
| 5745 |
<p> |
| 5746 |
In addition, you can use ENDNOTES_HEADER_UNDERSCORE to control the |
| 5747 |
weight of the underscore rule(s), the gap between the title and the |
| 5748 |
underscore, and, in the case of double-underscores, the distance |
| 5749 |
between the two rules. |
| 5750 |
</p> |
| 5751 |
|
| 5752 |
<p> |
| 5753 |
Some examples: |
| 5754 |
<br/> |
| 5755 |
<span class="pre-in-pp"> |
| 5756 |
.ENDNOTES_HEADER_UNDERSCORE 1 |
| 5757 |
- turn underscoring on; set the rule weight to 1 point |
| 5758 |
|
| 5759 |
.ENDNOTES_HEADER_UNDERSCORE 1 3p |
| 5760 |
- turn underscoring on; set the rule weight to 1 point; set |
| 5761 |
the gap between the title and the underscore to 3 points |
| 5762 |
|
| 5763 |
.ENDNOTES_HEADER_UNDERSCORE DOUBLE .75 3p |
| 5764 |
- turn double-underscoring on; set the rule weight to 3/4 of |
| 5765 |
a point; set the gap between the title and the upper |
| 5766 |
underscore to 3 points; leave the gap between the upper |
| 5767 |
and the lower underscore at the default |
| 5768 |
|
| 5769 |
.ENDNOTES_HEADER_UNDERSCORE DOUBLE 1.5 1.5p 1.5p |
| 5770 |
- turn double-underscoring on; set the rule weight to 1-1/2 |
| 5771 |
points; set the gap between the title and the upper |
| 5772 |
underscore to 1-1/2 points; set the gap between the upper |
| 5773 |
and the lower underscore to 1-1/2 points |
| 5774 |
</span> |
| 5775 |
Note, from the above, that in all instances, underscoring (single |
| 5776 |
or double) is enabled whenever ENDNOTES_HEADER_UNDERSCORE is used in |
| 5777 |
this way. |
| 5778 |
</p> |
| 5779 |
|
| 5780 |
<p> |
| 5781 |
By default, mom double-underscores the title if your |
| 5782 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a> |
| 5783 |
is <kbd>TYPEWRITE</kbd>. |
| 5784 |
</p> |
| 5785 |
|
| 5786 |
<!-- -ENDNOTES_HEADER_CAPS- --> |
| 5787 |
|
| 5788 |
<h5 id="endnotes-header-caps" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Header (first-page title) capitalization</h5> |
| 5789 |
|
| 5790 |
<div class="box-macro-args"> |
| 5791 |
Macro: <b>ENDNOTES_HEADER_CAPS</b> <kbd class="macro-args">toggle</kbd> |
| 5792 |
</div> |
| 5793 |
|
| 5794 |
<p class="alias" style="margin-bottom: 0;"> |
| 5795 |
<i>Alias:</i> <b>ENDNOTE_STRING_CAPS</b> (for compatibility with older documents) |
| 5796 |
</p> |
| 5797 |
|
| 5798 |
<p> |
| 5799 |
Invoked by itself, <kbd>.ENDNOTES_HEADER_CAPS</kbd> will |
| 5800 |
automatically capitalize the endnotes-page title. Invoked with any |
| 5801 |
other argument, the macro disables automatic capitalization of the |
| 5802 |
title. |
| 5803 |
</p> |
| 5804 |
|
| 5805 |
<p> |
| 5806 |
If you’re generating a table of contents, you may want the |
| 5807 |
endnotes pages title to be in caps, but the toc entry in caps/lower |
| 5808 |
case. If the argument to |
| 5809 |
<a href="#endnotes-header-string">ENDNOTES_HEADER_STRING</a> |
| 5810 |
is in caps/lower case and ENDNOTES_HEADER_CAPS is on, this is exactly |
| 5811 |
what will happen. |
| 5812 |
</p> |
| 5813 |
|
| 5814 |
<p> |
| 5815 |
Mom’s default is to capitalize the endnotes pages title string. |
| 5816 |
</p> |
| 5817 |
|
| 5818 |
<!-- -ENDNOTE_TITLE- --> |
| 5819 |
|
| 5820 |
<h4 id="endnotes-doc-title" class="docs" style="margin-top: -.25em;">5. Endnotes document-identification title control</h4> |
| 5821 |
|
| 5822 |
<h5 id="endnote-title" class="docs" style="margin-top: 1em; margin-bottom: .5em; margin-left: .5em;">• Document-identification title string(s)</h5> |
| 5823 |
|
| 5824 |
<div class="box-macro-args"> |
| 5825 |
Macro: <b>ENDNOTE_TITLE</b> <kbd class="macro-args">"<title to identify a document in endnotes>"</kbd> |
| 5826 |
</div> |
| 5827 |
|
| 5828 |
<p> |
| 5829 |
By default, mom identifies the document(s) to which endnotes belong |
| 5830 |
by the document title(s) given to the |
| 5831 |
<a href="docprocessing.html#title">TITLE</a> |
| 5832 |
macro. If you’d like her to identify the document(s) another |
| 5833 |
way, simply invoke <kbd>.ENDNOTE_TITLE</kbd> prior to |
| 5834 |
<a href="docprocessing.html#start">START</a> |
| 5835 |
with the identifying title you want, surrounded by double-quotes. |
| 5836 |
</p> |
| 5837 |
|
| 5838 |
<p> |
| 5839 |
If you don’t want any identifying title, invoke |
| 5840 |
<kbd>.ENDNOTE_TITLE</kbd> with a blank argument, either two |
| 5841 |
double-quotes side by side (<kbd>""</kbd>) or no argument |
| 5842 |
at all. This is particularly useful if you have a single (i.e. |
| 5843 |
non-collated) document and find having the document’s title |
| 5844 |
included in the endnotes redundant. |
| 5845 |
</p> |
| 5846 |
|
| 5847 |
<!-- -ENDNOTE_TITLE_CONTROL- --> |
| 5848 |
|
| 5849 |
<h5 id="endnote-title-control" class="docs" style="margin-top: .75em; margin-bottom: .5em; margin-left: .5em;">• Document-identification string control macros and defaults</h5> |
| 5850 |
|
| 5851 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 5852 |
<p class="defaults" style="padding-top: 6px;"> |
| 5853 |
See |
| 5854 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 5855 |
<br/> |
| 5856 |
The following ENDNOTE_TITLE_STYLE control macros may also be |
| 5857 |
<a href="#grouping">grouped</a> |
| 5858 |
using ENDNOTE_TITLE_STYLE_STYLE. |
| 5859 |
</p> |
| 5860 |
<span class="pre defaults"> |
| 5861 |
.ENDNOTE_TITLE_FAMILY default = prevailing document family; default is Times Roman |
| 5862 |
.ENDNOTE_TITLE_FONT default = bold |
| 5863 |
.ENDNOTE_TITLE_SIZE* default = 0 |
| 5864 |
.ENDNOTE_TITLE_COLOR default = black |
| 5865 |
.ENDNOTE_TITLE_QUAD default = left |
| 5866 |
.ENDNOTE_TITLE_CAPS |
| 5867 |
.ENDNOTE_TITLE_SMALLCAPS |
| 5868 |
.ENDNOTE_TITLE_UNDERSCORE default = single underscore |
| 5869 |
|
| 5870 |
*Relative to the size of the endnotes text (set with ENDNOTE_PT_SIZE) |
| 5871 |
</span> |
| 5872 |
</div> |
| 5873 |
|
| 5874 |
<!-- -ENDNOTE_NUMBERING- --> |
| 5875 |
|
| 5876 |
<h4 id="endnotes-numbering" class="docs" style="margin-top: -.25em;">6. Endnotes referencing style</h4> |
| 5877 |
|
| 5878 |
<h5 id="endnote-marker-style" class="docs" style="margin-top: 1em; margin-bottom: .5em; margin-left: .5em;">• Endnote marker style</h5> |
| 5879 |
|
| 5880 |
<div class="box-macro-args"> |
| 5881 |
Macro: <b>ENDNOTE_MARKER_STYLE</b> <kbd class="macro-args"><a href="#line">LINE</a> | <a href="#number">NUMBER</a> | <a href="#superscript">SUPERSCRIPT</a></kbd> |
| 5882 |
</div> |
| 5883 |
|
| 5884 |
<p id="line"> |
| 5885 |
<span style="display: block; margin-bottom: .25em;">• <i>Argument:</i> <kbd>LINE</kbd></span> |
| 5886 |
By default, mom places superscript numbers in |
| 5887 |
<a href="definitions.html#running">running text</a> |
| 5888 |
to identify endnotes. However, if you have |
| 5889 |
<a href="#number-lines">linenumbering</a> |
| 5890 |
turned on, you may instruct mom not to put superscript numbers in |
| 5891 |
the running text, but rather to reference endnotes by line number. |
| 5892 |
The command to do this is |
| 5893 |
<br/> |
| 5894 |
<span class="pre-in-pp"> |
| 5895 |
.ENDNOTE_MARKER_STYLE LINE |
| 5896 |
</span> |
| 5897 |
With ENDNOTE_MARKER_STYLE <kbd>LINE</kbd>, mom will identify |
| 5898 |
endnotes either by single line numbers or by line ranges. If |
| 5899 |
what you want is a single line number, you need only invoke |
| 5900 |
<kbd>.ENDNOTE</kbd> at the appropriate place in running |
| 5901 |
text <i>without the terminating</i> <kbd>\c</kbd>. Input lines |
| 5902 |
after the endnote has been terminated (e.g. with <kbd>.ENDNOTE |
| 5903 |
OFF</kbd>) must begin at the left margin. |
| 5904 |
</p> |
| 5905 |
|
| 5906 |
<p> |
| 5907 |
(Should you wish to revert to mom’s default behaviour of |
| 5908 |
placing a superscript number in the text to identify an endnote, |
| 5909 |
you can invoke <kbd>.ENDNOTE_MARKER_STYLE</kbd> with the argument, |
| 5910 |
<kbd>NUMBER</kbd>. It is not advisable to switch marker styles |
| 5911 |
within a single document, for aesthetic reasons, but there is |
| 5912 |
nothing to prevent you from doing so.) |
| 5913 |
</p> |
| 5914 |
|
| 5915 |
<p id="en-mark"> |
| 5916 |
If you want a range of line numbers (e.g. [5-11] ), |
| 5917 |
insert, directly into the first line of the range you want, the |
| 5918 |
<a href="definitions.html#inlines">inline escape</a>, |
| 5919 |
<kbd><span class="nobr">\*[EN-MARK]</span></kbd>. For the terminating line |
| 5920 |
number of the range, you need only invoke <kbd>.ENDNOTE</kbd> |
| 5921 |
(again, without the terminating <kbd>\c</kbd>). Mom is smart enough |
| 5922 |
to figure out that where <kbd>.ENDNOTE</kbd> is invoked represents |
| 5923 |
the terminating line number. |
| 5924 |
</p> |
| 5925 |
|
| 5926 |
<div id="endnote-linenumbers-note" class="box-tip"> |
| 5927 |
<p class="tip-top"> |
| 5928 |
<span class="note">Note:</span> |
| 5929 |
By default, mom reserves a fixed amount of space, equal to 8 |
| 5930 |
placeholders, for the linenumbers of linenumbered endnotes. Within |
| 5931 |
that space, the numbers are flush right with each other. The |
| 5932 |
reserved space is enough to print a range of linenumbers of the form |
| 5933 |
<kbd>[nnnn-nnnn]</kbd>, but may be more than you need. |
| 5934 |
</p> |
| 5935 |
|
| 5936 |
<p> |
| 5937 |
The goal with linenumbered endnotes is to ensure that the longest |
| 5938 |
linenumber or range of lines is flush with the left margin of the |
| 5939 |
page. Adjusting the reserved space is done with the macro |
| 5940 |
<a href="docelement.html#endnote-numbers-align">ENDNOTE_NUMBERS_ALIGN</a>, |
| 5941 |
and the rules for getting it right are simple. |
| 5942 |
</p> |
| 5943 |
|
| 5944 |
<p class="tip-bottom"> |
| 5945 |
If your document runs to less than 100 lines, invoke |
| 5946 |
<br/> |
| 5947 |
<span class="pre-in-pp"> |
| 5948 |
.ENDNOTE_NUMBERS_ALIGN RIGHT 0 |
| 5949 |
</span> |
| 5950 |
If your document has between 100 and 999 lines |
| 5951 |
<br/> |
| 5952 |
<span class="pre-in-pp"> |
| 5953 |
.ENDNOTE_NUMBERS_ALIGN RIGHT 1 |
| 5954 |
</span> |
| 5955 |
If your document has between 1000 and 9999 lines |
| 5956 |
<br/> |
| 5957 |
<span class="pre-in-pp"> |
| 5958 |
.ENDNOTE_NUMBERS_ALIGN RIGHT 2 |
| 5959 |
</span> |
| 5960 |
etc. |
| 5961 |
</p> |
| 5962 |
</div> |
| 5963 |
|
| 5964 |
<p id="number" style="margin-top: -.5em;"> |
| 5965 |
<span style="display: block; margin-bottom: .25em;">• <i>Argument:</i> <kbd>NUMBER</kbd></span> |
| 5966 |
With the argument <kbd>NUMBER</kbd>, mom places superscript numbers |
| 5967 |
in running text, but identifies endnotes in the endnotes section |
| 5968 |
of your document with normal-sized, base-aligned numbers. |
| 5969 |
</p> |
| 5970 |
|
| 5971 |
<p id="superscript" style="margin-top: -.5em;"> |
| 5972 |
<span style="display: block; margin-bottom: .25em;">• <i>Argument:</i> <kbd>SUPERSCRIPT</kbd></span> |
| 5973 |
With the argument <kbd>SUPERSCRIPT</kbd>, mom places superscript |
| 5974 |
numbers in running text, and identifies endnotes in the endnotes |
| 5975 |
section of your document with superscript numbers as well. This is |
| 5976 |
mom’s default. |
| 5977 |
</p> |
| 5978 |
|
| 5979 |
<div id="endnote-superscript-note" class="box-tip"> |
| 5980 |
<p class="tip-top"> |
| 5981 |
<span class="note">Note:</span> |
| 5982 |
By default, mom reserves a fixed amount of space, equal to 2 |
| 5983 |
placeholders, for the superscript numbers identifying endnotes in |
| 5984 |
the endnotes section of your document. Within that space, the |
| 5985 |
numbers are flush right with each other. |
| 5986 |
</p> |
| 5987 |
|
| 5988 |
<p class="tip-bottom"> |
| 5989 |
If you need less space (the total number of endnotes is less than 10) or |
| 5990 |
more (the total number of endnotes is greater than 99), use the |
| 5991 |
macro |
| 5992 |
<a href="docelement.html#endnote-numbers-align">ENDNOTE_NUMBERS_ALIGN</a>, |
| 5993 |
to set the desired amount of reserved space, e.g. |
| 5994 |
<br/> |
| 5995 |
<span class="pre-in-pp"> |
| 5996 |
.ENDNOTE_NUMBERS_ALIGN RIGHT 1 |
| 5997 |
</span> |
| 5998 |
or |
| 5999 |
<br/> |
| 6000 |
<span class="pre-in-pp"> |
| 6001 |
.ENDNOTE_NUMBERS_ALIGN RIGHT 3 |
| 6002 |
</span> |
| 6003 |
</p> |
| 6004 |
</div> |
| 6005 |
|
| 6006 |
<h5 id="endnote-linenumber-gap" class="docs" style="margin-bottom: .5em; margin-left: .5em;">• Spacing between line-numbered endnotes and the endnote text</h5> |
| 6007 |
|
| 6008 |
<div class="box-macro-args"> |
| 6009 |
Macro: <b>ENDNOTE_LINENUMBER_GAP</b> <kbd class="macro-args"><size of gap></kbd> |
| 6010 |
</div> |
| 6011 |
|
| 6012 |
<p class="requires"> |
| 6013 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 6014 |
</p> |
| 6015 |
|
| 6016 |
<p> |
| 6017 |
When your |
| 6018 |
<a href="#endnote-marker-style">ENDNOTE_MARKER_STYLE</a> |
| 6019 |
is <kbd>LINE</kbd>, mom, by default, inserts a space equal to |
| 6020 |
1/2-<a href="definitions.html#em">en</a> |
| 6021 |
between the linenumber and the text of an endnote. For aesthetic |
| 6022 |
reasons, you may want to change the size of the gap, which is done |
| 6023 |
with the macro ENDNOTE_LINENUMBER_GAP. |
| 6024 |
</p> |
| 6025 |
|
| 6026 |
<p> |
| 6027 |
ENDNOTE_LINENUMBER_GAP takes as its single argument the size |
| 6028 |
of the gap. The argument requires a |
| 6029 |
<a href="definitions.html#unitofmeasure">unit of measure</a>, |
| 6030 |
so, for example, to change the gap to 2 |
| 6031 |
<a href="definitions.html#picaspoints">picas</a>, |
| 6032 |
you’d do |
| 6033 |
<br/> |
| 6034 |
<span class="pre-in-pp"> |
| 6035 |
.ENDNOTE_LINENUMBER_GAP 2P |
| 6036 |
</span> |
| 6037 |
</p> |
| 6038 |
|
| 6039 |
<h5 id="endnote-linenumber-brackets" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Brackets around endnote line numbers</h5> |
| 6040 |
|
| 6041 |
<div class="box-macro-args"> |
| 6042 |
Macro: <b>ENDNOTE_LINENUMBER_BRACKETS</b> <kbd class="macro-args">PARENS | SQUARE | BRACES | ( | [ | {</kbd> |
| 6043 |
</div> |
| 6044 |
|
| 6045 |
<p> |
| 6046 |
By default, mom puts endnote line numbers inside square brackets. |
| 6047 |
The style of the brackets may be changed with the macro |
| 6048 |
ENDNOTE_LINENUMBER_BRACKETS, which takes one of three possible |
| 6049 |
arguments: <kbd>PARENS</kbd> (“round” brackets), |
| 6050 |
<kbd>SQUARE</kbd> (the default) or <kbd>BRACES</kbd> (curly braces). |
| 6051 |
If you prefer a shortform, the arguments, <kbd>(</kbd>, <kbd>[</kbd> |
| 6052 |
or <kbd>{</kbd> may be used instead. |
| 6053 |
</p> |
| 6054 |
|
| 6055 |
<h5 id="endnote-linenumber-separator" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">• Separator after endnote line numbers instead of brackets</h5> |
| 6056 |
|
| 6057 |
<div class="box-macro-args"> |
| 6058 |
Macro: <b>ENDNOTE_LINENUMBER_SEPARATOR</b> <kbd class="macro-args"><character></kbd> |
| 6059 |
</div> |
| 6060 |
|
| 6061 |
<p> |
| 6062 |
If you don’t want the numbers enclosed in brackets, you may tell |
| 6063 |
mom to use a separator instead. A common |
| 6064 |
separator would be the colon, but it can be anything you like. |
| 6065 |
</p> |
| 6066 |
|
| 6067 |
<p> |
| 6068 |
ENDNOTE_LINENUMBER_SEPARATOR takes as its single argument the |
| 6069 |
separator you want. (If the argument contains spaces, don’t |
| 6070 |
forget to enclose the argument in double-quotes.) The separator |
| 6071 |
can be composed of any valid groff character, or any combination of |
| 6072 |
characters. For example, to get a colon separator after the line |
| 6073 |
number in line-numbered endnotes, you’d do |
| 6074 |
<br/> |
| 6075 |
<span class="pre-in-pp"> |
| 6076 |
.ENDNOTE_LINENUMBER_SEPARATOR : |
| 6077 |
</span> |
| 6078 |
</p> |
| 6079 |
|
| 6080 |
<h5 id="endnote-number-control" class="docs" style="margin-top: -1em; margin-bottom: .5em; margin-left: .5em;">• Endnote numbering style control</h5> |
| 6081 |
|
| 6082 |
<div class="defaults-container" style="padding-bottom: 8px;"> |
| 6083 |
<p class="defaults" style="padding-top: 6px;"> |
| 6084 |
See |
| 6085 |
<a href="#control-macro-args">Arguments to the control macros</a>. |
| 6086 |
</p> |
| 6087 |
|
| 6088 |
<p class="defaults"> |
| 6089 |
Please note that the control macros for endnote numbering affect only |
| 6090 |
the numbers that appear on the endnotes pages themselves, not the |
| 6091 |
endnote numbers that appear in the body of a document. |
| 6092 |
</p> |
| 6093 |
<span class="pre defaults"> |
| 6094 |
Numbered endnotes |
| 6095 |
.ENDNOTE_NUMBER_FAMILY default = prevailing document family; default Times Roman |
| 6096 |
.ENDNOTE_NUMBER_FONT default = bold |
| 6097 |
.ENDNOTE_NUMBER_SIZE* default = 0 |
| 6098 |
Linenumbered endnotes |
| 6099 |
.ENDNOTE_LINENUMBER_FAMILY default = prevailing document family; default Times Roman |
| 6100 |
.ENDNOTE_LINENUMBER_FONT default = bold |
| 6101 |
.ENDNOTE_LINENUMBER_SIZE* default = 0 |
| 6102 |
|
| 6103 |
*Relative to the size of the endnotes text (set with ENDNOTE_PT_SIZE) |
| 6104 |
</span> |
| 6105 |
</div> |
| 6106 |
|
| 6107 |
<h5 id="endnote-number-alignment" class="docs" style="margin-top: -1.25em; margin-bottom: -.5em; margin-left: .5em;">• Endnote numbering alignment</h5> |
| 6108 |
|
| 6109 |
<p style="margin-top: .75em;"> |
| 6110 |
By default, when your |
| 6111 |
<a href="#endnote-marker-style">ENDNOTE_MARKER_STYLE</a> |
| 6112 |
is <kbd>NUMBER</kbd>, mom hangs the numbers on endnotes pages, |
| 6113 |
aligned right to two placeholders, producing this: |
| 6114 |
<br/> |
| 6115 |
<span id="endnote-numbering-alignment-example" class="pre-in-pp"> |
| 6116 |
9. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 6117 |
sed diam nonumy eirmod tempor invidunt ut labore et |
| 6118 |
dolore magna aliquyam erat, sed diam voluptua. |
| 6119 |
|
| 6120 |
10. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 6121 |
sed diam nonumy eirmod tempor invidunt ut labore et |
| 6122 |
dolore magna aliquyam erat, sed diam voluptua. |
| 6123 |
</span> |
| 6124 |
If you wish to change either the alignment or the number of |
| 6125 |
placeholders, the macro to use is ENDNOTE_NUMBERS_ALIGN. |
| 6126 |
</p> |
| 6127 |
|
| 6128 |
<!-- -ENDNOTE_NUMBERS_ALIGN- --> |
| 6129 |
|
| 6130 |
<div id="endnote-numbers-align" class="box-macro-args"> |
| 6131 |
Macro: <b>ENDNOTE_NUMBERS_ALIGN</b> <kbd class="macro-args">LEFT | RIGHT <number of placeholders></kbd> |
| 6132 |
</div> |
| 6133 |
|
| 6134 |
<p> |
| 6135 |
ENDNOTE_NUMBERS_ALIGN determines how endnote numbers are aligned. If you invoke |
| 6136 |
<br/> |
| 6137 |
<span class="pre-in-pp"> |
| 6138 |
.ENDNOTE_NUMBERS_ALIGN RIGHT 2 |
| 6139 |
</span> |
| 6140 |
the periods (dots) after the numbers will align, like this |
| 6141 |
<span class="pre-in-pp"> |
| 6142 |
9. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 6143 |
sed diam nonumy eirmod tempor invidunt ut labore et |
| 6144 |
dolore magna aliquyam erat, sed diam voluptua. |
| 6145 |
|
| 6146 |
10. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 6147 |
sed diam nonumy eirmod tempor invidunt ut labore et |
| 6148 |
dolore magna aliquyam erat, sed diam voluptua. |
| 6149 |
</span> |
| 6150 |
If you invoke |
| 6151 |
<span class="pre-in-pp"> |
| 6152 |
.ENDNOTE_NUMBERS_ALIGN LEFT 2 |
| 6153 |
</span> |
| 6154 |
the first digits of the numbers will line up flush left, like this |
| 6155 |
<span class="pre-in-pp"> |
| 6156 |
9. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 6157 |
sed diam nonumy eirmod tempor invidunt ut labore et |
| 6158 |
dolore magna aliquyam erat, sed diam voluptua. |
| 6159 |
|
| 6160 |
10. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, |
| 6161 |
sed diam nonumy eirmod tempor invidunt ut labore et |
| 6162 |
dolore magna aliquyam erat, sed diam voluptua. |
| 6163 |
</span> |
| 6164 |
The argument <kbd><number of placeholders></kbd> represents |
| 6165 |
the maximum size of the numbers, expressed as the number of |
| 6166 |
digits in the largest number. Numbers in the range 0-9 require |
| 6167 |
1 placeholder; in the range 10-99, 2 placeholders; in the range |
| 6168 |
100-999 3 placeholders, and so on. |
| 6169 |
</p> |
| 6170 |
|
| 6171 |
<p> |
| 6172 |
Therefore, if you have fewer than ten endnotes, |
| 6173 |
<br/> |
| 6174 |
<span class="pre-in-pp"> |
| 6175 |
.ENDNOTE_NUMBERS_ALIGN RIGHT 1 |
| 6176 |
</span> |
| 6177 |
would ensure proper right alignment of endnote numbers. |
| 6178 |
</p> |
| 6179 |
|
| 6180 |
<p> |
| 6181 |
Mom’s default for endnote number alignment is to align the |
| 6182 |
numbers right to two placeholders. |
| 6183 |
</p> |
| 6184 |
|
| 6185 |
<div class="box-tip"> |
| 6186 |
<p class="tip"> |
| 6187 |
<span class="note">Note:</span> |
| 6188 |
ENDNOTE_NUMBERS_ALIGN can also be used to establish the alignment |
| 6189 |
and number of placeholders when your |
| 6190 |
<a href="#endnote-marker-style">ENDNOTE_MARKER_STYLE</a> |
| 6191 |
is <kbd>SUPERSCRIPT</kbd>. Furthermore, it can be used to establish |
| 6192 |
the number of placeholders to reserve when your ENDNOTE_MARKER_STYLE |
| 6193 |
is <kbd>LINE</kbd>, even though, in such an instance, the numbers |
| 6194 |
themselves are always aligned right. See |
| 6195 |
<a href="#endnote-linenumbers-note">here</a> |
| 6196 |
for examples. |
| 6197 |
</p> |
| 6198 |
</div> |
| 6199 |
|
| 6200 |
<div class="rule-short"><hr/></div> |
| 6201 |
|
| 6202 |
<!-- ==================================================================== --> |
| 6203 |
|
| 6204 |
<h2 id="margin-notes-intro" class="macro-group">Margin notes</h2> |
| 6205 |
|
| 6206 |
<ul style="margin-left: -.5em;"> |
| 6207 |
<li><a href="#margin-notes-behaviour">Margin notes behaviour</a> |
| 6208 |
<ul style="margin-left: -.5em;"> |
| 6209 |
<li><a href="#margin-notes-vertical">Adjusting the vertical position of margin notes</a></li> |
| 6210 |
</ul></li> |
| 6211 |
<li><a href="#mn-init">Macro: <b>MN_INIT</b></a> – set margin notes parameters</li> |
| 6212 |
<li><a href="#mn">Tag: MN</a></li> |
| 6213 |
</ul> |
| 6214 |
|
| 6215 |
<p> |
| 6216 |
Margin notes are short annotations that appear in either the left |
| 6217 |
or right margin of a document. Sometimes they comment on the text. |
| 6218 |
Sometimes they assist in following the “flow” of a |
| 6219 |
document by summarizing the subject of a portion of text. Sometimes |
| 6220 |
they’re comments to yourself in a draft copy. |
| 6221 |
</p> |
| 6222 |
|
| 6223 |
<p> |
| 6224 |
The margin notes macros and routines in om.tmac (mom) are |
| 6225 |
“mommified” versions of the margin notes macros and |
| 6226 |
routines written by Werner Lemberg and patched by Gaius Mulley. |
| 6227 |
</p> |
| 6228 |
|
| 6229 |
<h3 id="margin-notes-behaviour" class="docs">Margin notes behaviour</h3> |
| 6230 |
|
| 6231 |
<p> |
| 6232 |
First things first: before you enter your first margin note, you |
| 6233 |
must “initialize” margin notes with |
| 6234 |
<a href="#mn-init">MN_INIT</a>. |
| 6235 |
MN_INIT sets up the style parameters for margin notes, including |
| 6236 |
things like |
| 6237 |
<a href="definitions.html#font">font</a>, |
| 6238 |
<a href="definitions.html#family">family</a> |
| 6239 |
and |
| 6240 |
<a href="definitions.html#leading">leading</a>. |
| 6241 |
MN_INIT may be called before or after |
| 6242 |
<a href="docprocessing.html#start">START</a>. |
| 6243 |
</p> |
| 6244 |
|
| 6245 |
<p> |
| 6246 |
After initializing margin notes, you create margin notes with the |
| 6247 |
<a href="#mn">MN</a> |
| 6248 |
macro. Based on the argument you pass MN, your margin note will go |
| 6249 |
in either the left or the right margin. |
| 6250 |
</p> |
| 6251 |
|
| 6252 |
<p> |
| 6253 |
Margin notes are tricky from a typographic standpoint with respect |
| 6254 |
to vertical placement. Since the leading of margin notes may differ |
| 6255 |
from that of |
| 6256 |
<a href="definitions.html#running">running text</a>, |
| 6257 |
it’s impossible for mom to guess whether to align |
| 6258 |
the first lines of margin notes with a document |
| 6259 |
<a href="definitions.html#baseline">baseline</a>, |
| 6260 |
whether to align the last lines of margin notes with a document |
| 6261 |
baseline, or whether to centre them, vertically, so that neither |
| 6262 |
first nor last line aligns with anything! |
| 6263 |
</p> |
| 6264 |
|
| 6265 |
<p> |
| 6266 |
Given this difficulty, mom always aligns the first line of any |
| 6267 |
margin note with a document baseline. If you want a different |
| 6268 |
behaviour, you must adjust the position(s) of margin notes yourself, |
| 6269 |
on a note by note basis. (See |
| 6270 |
<a href="#margin-notes-vertical">Adjusting the vertical position of margin notes</a>.) |
| 6271 |
</p> |
| 6272 |
|
| 6273 |
<p> |
| 6274 |
Generally speaking, mom tries to place margin notes at the point |
| 6275 |
where you invoke |
| 6276 |
<a href="#mn">MN</a>. |
| 6277 |
However, in the event that a margin note runs deep, she may not be |
| 6278 |
able to place a subsequent margin note exactly where you want. In |
| 6279 |
such an instance, mom will “shift” the margin note down |
| 6280 |
on the page, placing it one (margin note) linespace beneath the |
| 6281 |
previous margin note (plus whatever vertical space is required to |
| 6282 |
get the first line to line up with a baseline of running text). A |
| 6283 |
warning will be issued, letting you know this has happened, and |
| 6284 |
where. |
| 6285 |
</p> |
| 6286 |
|
| 6287 |
<p> |
| 6288 |
Sometimes, if a margin note has to be shifted down, there simply |
| 6289 |
isn’t enough room to start the margin note on the page on |
| 6290 |
which <kbd>.MN</kbd> is invoked. In that case, mom ignores the |
| 6291 |
margin note entirely and issues a warning, letting you know what |
| 6292 |
she’s done, and where. </p> |
| 6293 |
|
| 6294 |
<p> |
| 6295 |
In the event that a margin note, successfully begun on a page, runs |
| 6296 |
past your bottom margin (or the last line before footnotes begin), |
| 6297 |
the margin note will “flow” onto the next page. If |
| 6298 |
it is a “left” margin note, it will continue in the |
| 6299 |
left margin. If it is a “right” margin note, it will |
| 6300 |
continue in the right margin. |
| 6301 |
</p> |
| 6302 |
|
| 6303 |
<p> |
| 6304 |
If your document is being set in two columns, mom will sensibly and |
| 6305 |
automatically set all margin notes pertaining to the left column in |
| 6306 |
the left margin, and all margin notes pertaining to the right column |
| 6307 |
in the right margin, regardless of the “direction” |
| 6308 |
argument you give the MN tag. If you try to use MN in documents of |
| 6309 |
more than two columns, mom will ignore all margin notes, and issue |
| 6310 |
a warning for each. |
| 6311 |
</p> |
| 6312 |
|
| 6313 |
<h3 id="margin-notes-vertical" class="docs">Adjusting the vertical position of margin notes</h3> |
| 6314 |
|
| 6315 |
<p> |
| 6316 |
When the |
| 6317 |
<a href="definitions.html#term-leading">leading</a> |
| 6318 |
of margin notes differs from the leading used throughout a document, |
| 6319 |
you may want to adjust the vertical position of individual margin |
| 6320 |
notes. This is most often going to be the case with margin notes |
| 6321 |
that end near the bottom of the page, where you want the last line |
| 6322 |
of the margin note to line up with the last line of text on the |
| 6323 |
page. |
| 6324 |
</p> |
| 6325 |
|
| 6326 |
<p> |
| 6327 |
Adjustments to the vertical position of margin notes must be done |
| 6328 |
inside the margin note (i.e. after <kbd>.MN</kbd>), at the top, |
| 6329 |
before entering text. The commands to use are |
| 6330 |
<kbd>\!<a href="typesetting.html#ald">.ALD</a></kbd> |
| 6331 |
(to lower the margin note) and |
| 6332 |
<kbd>\!<a href="typesetting.html#rld">.RLD</a></kbd> |
| 6333 |
(to raise it). |
| 6334 |
|
| 6335 |
The <kbd>\!</kbd> must precede the macros, or they |
| 6336 |
won’t have any effect. |
| 6337 |
</p> |
| 6338 |
|
| 6339 |
<!-- -MN_INIT- --> |
| 6340 |
|
| 6341 |
<div class="macro-id-overline"> |
| 6342 |
<h3 id="mn-init" class="macro-id">MN_INIT</h3> |
| 6343 |
</div> |
| 6344 |
|
| 6345 |
<div class="box-macro-args"> |
| 6346 |
Macro: <b>MN_INIT</b> <kbd class="macro-args"><arguments> (see list)</kbd> |
| 6347 |
</div> |
| 6348 |
|
| 6349 |
<h4 style="margin-top: .75em; margin-left: .5em; font-style: normal; font-weight: bold: font-size: 105%; color: #6f614a;">Argument list:</h4> |
| 6350 |
|
| 6351 |
<span class="pre" style="margin-top: -1.5em; margin-left: .5em;"> |
| 6352 |
RAGGED | SYMMETRIC |
| 6353 |
<L_WIDTH> <value> |
| 6354 |
<R_WIDTH> <value> |
| 6355 |
<GUTTER> <value> |
| 6356 |
<FONTSTYLE> <value> |
| 6357 |
<SIZE> <value> |
| 6358 |
<LEAD> <value> |
| 6359 |
<COLOR> <value> |
| 6360 |
<HY> <value> |
| 6361 |
</span> |
| 6362 |
|
| 6363 |
<p style="margin-top: 1.25em;"> |
| 6364 |
Before you enter your first margin note, you must initialize |
| 6365 |
the style parameters associated with margin notes using MN_INIT. |
| 6366 |
If you forget to do so, mom will issue a warning and abort. |
| 6367 |
</p> |
| 6368 |
|
| 6369 |
<p> |
| 6370 |
The arguments may be entered in any order, and since the list is |
| 6371 |
long, use of the backslash character ( <kbd>\</kbd> ) to put each on |
| 6372 |
a separate line is recommended, e.g. |
| 6373 |
<br/> |
| 6374 |
<span class="pre-in-pp"> |
| 6375 |
.MN_INIT \ |
| 6376 |
SYMMETRIC \ |
| 6377 |
L_WIDTH 4P \ |
| 6378 |
SIZE 8 \ |
| 6379 |
LEAD 9 \ |
| 6380 |
HY 14 |
| 6381 |
</span> |
| 6382 |
All arguments are optional, but since mom requires you to run |
| 6383 |
MN_INIT before entering margin notes, you should, at a minimum, set |
| 6384 |
the <kbd>RAGGED</kbd> or <kbd>SYMMETRIC</kbd> parameter. |
| 6385 |
You will almost certainly want to set <kbd>L_WIDTH</kbd>, <kbd>R_WIDTH</kbd>, |
| 6386 |
<kbd>SIZE</kbd> and <kbd>LEAD</kbd> as well. |
| 6387 |
</p> |
| 6388 |
|
| 6389 |
<h4 class="docs arg-list"><kbd>RAGGED | SYMMETRIC</kbd></h4> |
| 6390 |
|
| 6391 |
<p> |
| 6392 |
If the argument <kbd>RAGGED</kbd> is given, both left and |
| 6393 |
right margin notes will be flush left. If the argument |
| 6394 |
<kbd>SYMMETRIC</kbd> is given, left margin notes will be set flush |
| 6395 |
<i>right</i>, and right margin notes flush <i>left</i>. The effect |
| 6396 |
is something like this: |
| 6397 |
<br/> |
| 6398 |
<span class="pre-in-pp"> |
| 6399 |
A left This is a meaningless batch A right |
| 6400 |
margin note of text whose sole purpose is margin note |
| 6401 |
with just to demonstrate how the sym- with just |
| 6402 |
a few words metric argument to MN sets left a few words |
| 6403 |
in it. and right margin notes. in it. |
| 6404 |
</span> |
| 6405 |
</p> |
| 6406 |
|
| 6407 |
<p> |
| 6408 |
If the argument is omitted, both left and right margin notes will |
| 6409 |
be set justified. (Justified is usually not a good idea, since the |
| 6410 |
narrow measure of margin notes makes pleasing justification a near |
| 6411 |
impossibility.) |
| 6412 |
</p> |
| 6413 |
|
| 6414 |
<h4 class="docs arg-list"><kbd>L_WIDTH <value></kbd></h4> |
| 6415 |
|
| 6416 |
<p> |
| 6417 |
The width of left margin notes. A |
| 6418 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 6419 |
must be appended directly onto the argument. The default is to set |
| 6420 |
left margin notes right out to the edge of the page, which is almost |
| 6421 |
certainly not what you want, so you should give a value for this |
| 6422 |
argument if using left margin notes. |
| 6423 |
</p> |
| 6424 |
|
| 6425 |
<h4 class="docs arg-list"><kbd>R_WIDTH <value></kbd></h4> |
| 6426 |
|
| 6427 |
<p> |
| 6428 |
The width of right margin notes. A |
| 6429 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 6430 |
must be appended directly onto the argument. The default is to |
| 6431 |
set right margin notes right out to the edge of the page, which is |
| 6432 |
almost certainly not what you want, so you should give a value for |
| 6433 |
this argument if using right margin notes. |
| 6434 |
</p> |
| 6435 |
|
| 6436 |
<h4 class="docs arg-list"><kbd>GUTTER <value></kbd></h4> |
| 6437 |
|
| 6438 |
<p> |
| 6439 |
The |
| 6440 |
<a href="definitions.html#gutter">gutter</a> |
| 6441 |
between margin notes and |
| 6442 |
<a href="definitions.html#running">running text</a>. |
| 6443 |
A |
| 6444 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 6445 |
must be appended directly onto the argument. The gutter applies to |
| 6446 |
both left and right margin notes. The default is 1 |
| 6447 |
<a href="definitions.html#em">em</a>. |
| 6448 |
</p> |
| 6449 |
|
| 6450 |
<h4 class="docs arg-list"><kbd>FONTSTYLE <value></kbd></h4> |
| 6451 |
|
| 6452 |
<p> |
| 6453 |
The family+font for margin notes. Yes, that’s right: the |
| 6454 |
family <i>plus</i> font combo. For example, if you want Times |
| 6455 |
Roman Medium, the argument must be <kbd>TR</kbd>. If you want Palatino |
| 6456 |
Medium Italic, the argument must be <kbd>PI</kbd>. The default is the same |
| 6457 |
family+font combo used for a document’s paragraph text. |
| 6458 |
</p> |
| 6459 |
|
| 6460 |
<h4 class="docs arg-list"><kbd>SIZE <value></kbd></h4> |
| 6461 |
|
| 6462 |
<p> |
| 6463 |
The point size of type for margin notes. There is no need to append a |
| 6464 |
<a href="definitions.html#unitofmeasure">unit of measure</a> |
| 6465 |
to the argument; |
| 6466 |
<a href="definitions.html#picaspoints">points</a> |
| 6467 |
is assumed (although there’s nothing preventing you from |
| 6468 |
appending an alternative unit of measure directly to the argument). |
| 6469 |
The default is for margin notes to use the same point size of type |
| 6470 |
as is used in document paragraphs. |
| 6471 |
</p> |
| 6472 |
|
| 6473 |
<h4 class="docs arg-list"><kbd>LEAD <value></kbd></h4> |
| 6474 |
|
| 6475 |
<p> |
| 6476 |
The |
| 6477 |
<a href="definitions.html#leading">leading</a> |
| 6478 |
of margin notes. <kbd><LEAD></kbd> takes |
| 6479 |
<a href="definitions.html#picaspoints">points</a> |
| 6480 |
as its unit of measure, so don’t tack a unit of measure onto |
| 6481 |
the end of the argument. The default lead is the same as paragraph |
| 6482 |
text (i.e. the document’s base leading). |
| 6483 |
</p> |
| 6484 |
|
| 6485 |
<h4 class="docs arg-list"><kbd>COLOR <value></kbd></h4> |
| 6486 |
|
| 6487 |
<p> |
| 6488 |
The colour of margin notes. The colour must be pre-initialized |
| 6489 |
with |
| 6490 |
<a href="color.html#newcolor">NEWCOLOR</a> |
| 6491 |
or |
| 6492 |
<a href="color.html#xcolor">XCOLOR</a>. |
| 6493 |
The default is black. |
| 6494 |
</p> |
| 6495 |
|
| 6496 |
<h4 class="docs arg-list"><kbd>HY <value></kbd></h4> |
| 6497 |
|
| 6498 |
<p> |
| 6499 |
<kbd><value></kbd> is a digit telling groff how you want margin |
| 6500 |
notes hyphenated. |
| 6501 |
<br/> |
| 6502 |
<span class="pre-in-pp"> |
| 6503 |
0 = do not hyphenate |
| 6504 |
1 = hyphenate without restrictions |
| 6505 |
2 = do not hyphenate the last word on the page |
| 6506 |
4 = do not hyphenate the last two characters of a word |
| 6507 |
8 = do not hyphenate the first two characters of a word |
| 6508 |
</span> |
| 6509 |
The values can be added together, so, for example, if you want |
| 6510 |
neither the first two nor the last two characters of words |
| 6511 |
hyphenated, the hyphenation-flag would be 12. The default value is |
| 6512 |
14 (i.e. 2+4+8). |
| 6513 |
</p> |
| 6514 |
|
| 6515 |
<!-- -MN- --> |
| 6516 |
|
| 6517 |
<div class="macro-id-overline"> |
| 6518 |
<h3 id="mn" class="macro-id">MN</h3> |
| 6519 |
</div> |
| 6520 |
|
| 6521 |
<div class="box-macro-args"> |
| 6522 |
Macro: <b>MN</b> <kbd class="macro-args">LEFT | RIGHT</kbd> |
| 6523 |
</div> |
| 6524 |
|
| 6525 |
<p> |
| 6526 |
Once you’ve initialized margin notes with |
| 6527 |
<kbd><a href="#mn-init">.MN_INIT</a></kbd>, |
| 6528 |
you can enter margin notes any time you like with <kbd>.MN</kbd>. |
| 6529 |
An argument of <kbd>LEFT</kbd> will set a left margin note. An |
| 6530 |
argument of <kbd>RIGHT</kbd> will set a right margin note. |
| 6531 |
</p> |
| 6532 |
|
| 6533 |
<p> |
| 6534 |
Any argument, such as <kbd>OFF</kbd> (or <kbd>OFF</kbd>, |
| 6535 |
<kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>, etc) exits the |
| 6536 |
current margin note. |
| 6537 |
</p> |
| 6538 |
|
| 6539 |
<div class="rule-short"><hr/></div> |
| 6540 |
|
| 6541 |
<!-- ==================================================================== --> |
| 6542 |
|
| 6543 |
<!-- -FINIS- --> |
| 6544 |
|
| 6545 |
<h2 id="finis-intro" class="macro-group">Document termination string</h2> |
| 6546 |
|
| 6547 |
<ul style="margin-left: -.5em;"> |
| 6548 |
<li><a href="#finis">Tag: FINIS</a></li> |
| 6549 |
<li><a href="#finis-control">FINIS control macros</a> |
| 6550 |
<ul style="margin-left: -1.25em;"> |
| 6551 |
<li><a href="#finis-string">Changing the FINIS string</a></li> |
| 6552 |
<li><a href="#finis-string-caps">Automatic capitalization of the FINIS string</a></li> |
| 6553 |
<li><a href="#finis-color">Changing the FINIS colour</a></li> |
| 6554 |
<li><a href="#finis-no-dashes">Removing the dashes around FINIS</a></li> |
| 6555 |
</ul></li> |
| 6556 |
</ul> |
| 6557 |
|
| 6558 |
<p> |
| 6559 |
The use of FINIS is optional. If you invoke it at the end of a |
| 6560 |
document (before |
| 6561 |
<kbd><a href="#endnotes">.ENDNOTES</a></kbd>, |
| 6562 |
<kbd><a href="refer.html#bibliography">.BIBLIOGRAPHY</a></kbd> |
| 6563 |
or |
| 6564 |
<kbd><a href="tables-of-contents.html#toc">.TOC</a></kbd>) |
| 6565 |
mom deposits the word, <b>END</b>, centred after a blank line, |
| 6566 |
beneath the last line of the document. <b>END</b> is enclosed |
| 6567 |
between |
| 6568 |
<a href="definitions.html#em">em-dashes</a>, |
| 6569 |
like this: |
| 6570 |
<br/> |
| 6571 |
<span class="pre-in-pp"> |
| 6572 |
...and they all lived happily ever after. |
| 6573 |
|
| 6574 |
— END — |
| 6575 |
</span> |
| 6576 |
If there is insufficient room for FINIS on the last page of a |
| 6577 |
document, mom will alert you on stderr. |
| 6578 |
</p> |
| 6579 |
|
| 6580 |
<p> |
| 6581 |
If you’re writing in a language other than English, you can |
| 6582 |
change what mom prints for END with the control macro |
| 6583 |
<a href="#finis-string">FINIS_STRING</a>. |
| 6584 |
</p> |
| 6585 |
|
| 6586 |
<div class="macro-id-overline"> |
| 6587 |
<h3 id="finis" class="macro-id">FINIS</h3> |
| 6588 |
</div> |
| 6589 |
|
| 6590 |
<div class="box-macro-args"> |
| 6591 |
Macro: <b>FINIS</b> |
| 6592 |
</div> |
| 6593 |
|
| 6594 |
<p> |
| 6595 |
The use of FINIS is optional, but if you use it, it should be the |
| 6596 |
last macro you invoke in a document before |
| 6597 |
<kbd><a href="#endnotes">.ENDNOTES</a></kbd>, |
| 6598 |
<kbd><a href="refer.html#bibliography">.BIBLIOGRAPHY</a></kbd> |
| 6599 |
or |
| 6600 |
<kbd><a href="tables-of-contents.html#toc">.TOC</a></kbd>. |
| 6601 |
See |
| 6602 |
<a href="#finis-intro">above</a> |
| 6603 |
for a description of how FINIS behaves. |
| 6604 |
</p> |
| 6605 |
|
| 6606 |
<div class="box-tip"> |
| 6607 |
<p class="tip"> |
| 6608 |
<span class="note">Note:</span> |
| 6609 |
If you don’t use FINIS, and you don’t want |
| 6610 |
<a href="definitions.html#footer">footers</a> |
| 6611 |
(if they’re on) or a page number at the bottom of the last |
| 6612 |
page of a document, you have to turn them off manually, as the last |
| 6613 |
two lines of your document file, like this: |
| 6614 |
<br/> |
| 6615 |
<span class="pre-in-pp"> |
| 6616 |
.FOOTERS OFF |
| 6617 |
.PAGINATE OFF |
| 6618 |
</span> |
| 6619 |
</p> |
| 6620 |
</div> |
| 6621 |
|
| 6622 |
<!-- -FINIS STRING- --> |
| 6623 |
|
| 6624 |
<h3 id="finis-control" class="docs" style="margin-bottom: -1em">Finis control macros</h3> |
| 6625 |
|
| 6626 |
<p> |
| 6627 |
Since FINIS is only used once in a document, it has few control |
| 6628 |
macros. It is expected that you will make changes to style |
| 6629 |
parameters such as family, font, and size with |
| 6630 |
<a href="definitions.html#inlines">inline escapes</a> |
| 6631 |
in the FINIS string itself (see below). |
| 6632 |
</p> |
| 6633 |
|
| 6634 |
<h4 id="finis-string" class="docs" style="margin-top: -.5em">Changing the FINIS string</h4> |
| 6635 |
|
| 6636 |
<p> |
| 6637 |
By default, FINIS prints the word, END, between |
| 6638 |
<a href="definitions.html#em">em-dashes</a>. |
| 6639 |
If you’d like mom to print something else between the dashes, |
| 6640 |
use the FINIS_STRING macro (anywhere in the document prior to |
| 6641 |
FINIS). |
| 6642 |
</p> |
| 6643 |
|
| 6644 |
<p> |
| 6645 |
For example, if your document’s in French, you’d do |
| 6646 |
<br/> |
| 6647 |
<span class="pre-in-pp"> |
| 6648 |
.FINIS_STRING "FIN" |
| 6649 |
</span> |
| 6650 |
Double-quotes must enclose the macro’s argument. |
| 6651 |
</p> |
| 6652 |
|
| 6653 |
<div class="box-tip"> |
| 6654 |
<p class="tip"> |
| 6655 |
<span class="note">Note:</span> |
| 6656 |
If you pass FINIS_STRING a blank string, |
| 6657 |
<br/> |
| 6658 |
<span class="pre-in-pp"> |
| 6659 |
.FINIS_STRING "" |
| 6660 |
</span> |
| 6661 |
mom will still print the em-dashes when you invoke |
| 6662 |
<kbd>.FINIS</kbd>. This, in effect, produces a short, centred |
| 6663 |
horizontal rule that terminates the document. (In |
| 6664 |
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>, |
| 6665 |
it’s a short, dashed line composed of four hyphens.) |
| 6666 |
</p> |
| 6667 |
</div> |
| 6668 |
|
| 6669 |
<!-- -FINIS STRING CAPS- --> |
| 6670 |
|
| 6671 |
<h4 id="finis-string-caps" class="docs">Automatic capitalization of the FINIS string</h4> |
| 6672 |
|
| 6673 |
<p> |
| 6674 |
By default, mom sets the string you pass to FINIS all-caps. |
| 6675 |
If you’d prefer that she not do so, but rather respect |
| 6676 |
the FINIS string exactly as you enter it, invoke the macro |
| 6677 |
<kbd>.FINIS_STRING_CAPS</kbd> with the <kbd>OFF</kbd> argument, like |
| 6678 |
this: |
| 6679 |
<br/> |
| 6680 |
<span class="pre-in-pp"> |
| 6681 |
.FINIS_STRING_CAPS OFF |
| 6682 |
</span> |
| 6683 |
<kbd>OFF</kbd>, above, could be anything, e.g. <kbd>NO</kbd> or |
| 6684 |
<kbd>X</kbd>. |
| 6685 |
</p> |
| 6686 |
|
| 6687 |
<!-- -FINIS COLOR- --> |
| 6688 |
|
| 6689 |
<h4 id="finis-color" class="docs">Changing the FINIS colour</h4> |
| 6690 |
|
| 6691 |
<p> |
| 6692 |
Invoking the control macro <kbd>.FINIS_COLOR</kbd> with a |
| 6693 |
pre-defined (or “initialized”) colour changes the colour |
| 6694 |
of both the FINIS string and the em-dashes that surround it. If you |
| 6695 |
use the |
| 6696 |
<a href="definitions.html#inline">inline escape</a>, |
| 6697 |
<a href="color.html#color-inline"><kbd><span class="nobr">\*[<colourname>]</span></kbd></a>, |
| 6698 |
in the argument passed to FINIS, only the text will be in the |
| 6699 |
new colour; the em-dashes will be in the default document colour |
| 6700 |
(usually black). |
| 6701 |
</p> |
| 6702 |
|
| 6703 |
<!-- -FINIS DASHES- --> |
| 6704 |
|
| 6705 |
<h4 id="finis-no-dashes" class="docs">Removing the dashes around FINIS</h4> |
| 6706 |
|
| 6707 |
<p> |
| 6708 |
If you don’t want the dashes around the FINIS string, you can |
| 6709 |
remove them with |
| 6710 |
<br/> |
| 6711 |
<span class="pre-in-pp"> |
| 6712 |
.FINIS_NO_DASHES |
| 6713 |
</span> |
| 6714 |
</p> |
| 6715 |
|
| 6716 |
<div class="rule-long"><hr/></div> |
| 6717 |
|
| 6718 |
<!-- Navigation links --> |
| 6719 |
<table style="width: 100%; margin-top: 12px;"> |
| 6720 |
<tr> |
| 6721 |
<td style="width: 33%;"><a href="toc.html">Back to Table of Contents</a></td> |
| 6722 |
<td style="width: 33%; text-align: center;"><a href="#top">Top</a></td> |
| 6723 |
<td style="width: 33%; text-align: right;"><a href="images.html#top">Next: Graphics, floats, and preprocessor support</a></td> |
| 6724 |
</tr> |
| 6725 |
</table> |
| 6726 |
|
| 6727 |
</div> |
| 6728 |
|
| 6729 |
<div class="bottom-spacer"><br/></div> |
| 6730 |
|
| 6731 |
</body> |
| 6732 |
</html> |