| 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 -- Definitions and Terms</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="using.html#top">Next: Using mom</a></td> |
| 38 |
</tr> |
| 39 |
</table> |
| 40 |
|
| 41 |
<h1 id="terms" class="docs">Definitions of terms used in this manual</h1> |
| 42 |
|
| 43 |
<p> |
| 44 |
I use a number of typesetting-specific and groff-specific terms |
| 45 |
throughout this documentation, as well as a few terms that apply |
| 46 |
to mom herself. To make life easier, I’ll explain |
| 47 |
them here. Refer back to this section should you encounter a word |
| 48 |
or concept you’re not familiar with. |
| 49 |
</p> |
| 50 |
|
| 51 |
<div class="rule-short" style="margin-top: 18px; margin-bottom: 28px;"><hr/></div> |
| 52 |
|
| 53 |
<div class="col-1-definitions"> |
| 54 |
<table class="definitions"> |
| 55 |
<tr><th class="definitions">Typesetting terms</th></tr> |
| 56 |
<tr> |
| 57 |
<td> |
| 58 |
<a href="#ascender">Ascender</a><br/> |
| 59 |
<a href="#baseline">Baseline</a><br/> |
| 60 |
<a href="#ballotbox">Ballot box</a><br/> |
| 61 |
<a href="#bullet">Bullet</a><br/> |
| 62 |
<a href="#capheight">Cap-height</a><br/> |
| 63 |
<a href="#descender">Descender</a><br/> |
| 64 |
<a href="#discretionaryhyphen">Discretionary hyphen</a><br/> |
| 65 |
<a href="#dropcap">Drop cap</a><br/> |
| 66 |
<a href="#em">Em/en</a><br/> |
| 67 |
<a href="#family">Family</a><br/> |
| 68 |
<a href="#figurespace">Figure space/Digit space</a><br/> |
| 69 |
<a href="#fixedwidthfont">Fixed width font</a><br/> |
| 70 |
<a href="#fixedwidthspace">Fixed width space</a><br/> |
| 71 |
<a href="#font">Font</a><br/> |
| 72 |
<a href="#force">Force justify</a><br/> |
| 73 |
<a href="#just">Justify/justification</a><br/> |
| 74 |
<a href="#gutter">Gutter</a><br/> |
| 75 |
<a href="#kern">Kerning</a><br/> |
| 76 |
<a href="#kernunit">Kern Units</a><br/> |
| 77 |
<a href="#leading">Lead/leading</a><br/> |
| 78 |
<a href="#leader">Leaders</a><br/> |
| 79 |
<a href="#ligatures">Ligature</a><br/> |
| 80 |
<a href="#picaspoints">Picas/Points</a><br/> |
| 81 |
<a href="#ps">Point Size</a><br/> |
| 82 |
<a href="#quad">Quad</a><br/> |
| 83 |
<a href="#rag">Rag</a><br/> |
| 84 |
<a href="#shape">Shape</a><br/> |
| 85 |
<a href="#solid">Solid/set solid</a><br/> |
| 86 |
<a href="#trackkerning">Track kerning/Line kerning</a><br/> |
| 87 |
<a href="#unbreakablespace">Unbreakable space</a><br/> |
| 88 |
<a href="#weight">Weight</a><br/> |
| 89 |
<a href="#wordspace">Word space</a><br/> |
| 90 |
<a href="#xheight">x-height</a><br/> |
| 91 |
</td> |
| 92 |
</tr> |
| 93 |
</table> |
| 94 |
</div> |
| 95 |
|
| 96 |
<div class="col-2-definitions"> |
| 97 |
<table class="definitions"> |
| 98 |
<tr><th class="definitions">Groff terms</th></tr> |
| 99 |
<tr> |
| 100 |
<td> |
| 101 |
<a href="#alias">Alias</a><br/> |
| 102 |
<a href="#arguments">Arguments</a><br/> |
| 103 |
<a href="#commentlines">Comment lines</a><br/> |
| 104 |
<a href="#controllines">Control Lines</a><br/> |
| 105 |
<a href="#filled">Filled lines</a><br/> |
| 106 |
<a href="#inlines">Inline escapes</a><br/> |
| 107 |
<a href="#inputline">Input line</a><br/> |
| 108 |
<a href="#macros">Macros</a><br/> |
| 109 |
<a href="#units">Machine units</a><br/> |
| 110 |
<a href="#numericargument">Numeric argument</a><br/> |
| 111 |
<a href="#outputline">Output line</a><br/> |
| 112 |
<a href="#primitives">Primitives</a><br/> |
| 113 |
<a href="#preprocessor">Pre-processor</a><br/> |
| 114 |
<a href="#stringargument">String Argument</a><br/> |
| 115 |
<a href="#unitofmeasure">Unit of measure</a><br/> |
| 116 |
<a href="#zerowidthcharacter">Zero-width character</a><br/> |
| 117 |
</td> |
| 118 |
</tr> |
| 119 |
</table> |
| 120 |
</div> |
| 121 |
|
| 122 |
<div class="col-3-definitions"> |
| 123 |
<table class="definitions"> |
| 124 |
<tr><th class="definitions">Mom terms</th></tr> |
| 125 |
<tr> |
| 126 |
<td> |
| 127 |
<a href="#baseline-grid">Baseline grid</a><br/> |
| 128 |
<a href="#blockquote">Blockquote</a><br/> |
| 129 |
<a href="#controlmacro">Control macro</a><br/> |
| 130 |
<a href="#docheader">Docheader</a><br/> |
| 131 |
<a href="#epigraph">Epigraph</a><br/> |
| 132 |
<a href="#float">Float</a><br/> |
| 133 |
<a href="#footer">Footer</a><br/> |
| 134 |
<a href="#head">Head</a><br/> |
| 135 |
<a href="#header">Header</a><br/> |
| 136 |
<a href="#linebreak">Linebreak</a><br/> |
| 137 |
<a href="#parahead">Paragraph head</a><br/> |
| 138 |
<a href="#pdflink">PDF link</a><br/> |
| 139 |
<a href="#pdfoutline">PDF outline</a><br/> |
| 140 |
<a href="#quote">Quote</a><br/> |
| 141 |
<a href="#running">Running text</a><br/> |
| 142 |
<a href="#toggle">Toggle</a><br/> |
| 143 |
</td> |
| 144 |
</tr> |
| 145 |
</table> |
| 146 |
</div> |
| 147 |
|
| 148 |
<h3 id="typesetting-terms" class="docs">Typesetting terms</h3> |
| 149 |
<dl> |
| 150 |
<dt id="ascender">Ascender</dt> |
| 151 |
<dd> |
| 152 |
The portion of a letter that extends above the bowl. For |
| 153 |
example, the letters a, c, and e have no ascenders. The letters |
| 154 |
b, d, and h do. |
| 155 |
</dd> |
| 156 |
|
| 157 |
<dt id="baseline">Baseline</dt> |
| 158 |
<dd> |
| 159 |
The imaginary line on which the bottoms of capital letters and |
| 160 |
the bowls of lower case letters rest. |
| 161 |
</dd> |
| 162 |
|
| 163 |
<dt id="ballotbox">Ballot box</dt> |
| 164 |
<dd> |
| 165 |
An unfilled square, usually |
| 166 |
<a href="#capheight">cap-height</a> |
| 167 |
in size, typically placed beside items in a checklist. |
| 168 |
</dd> |
| 169 |
|
| 170 |
<dt id="bullet">Bullet</dt> |
| 171 |
<dd> |
| 172 |
A small, filled circle typically found beside items or points in |
| 173 |
a list. |
| 174 |
</dd> |
| 175 |
|
| 176 |
<dt id="capheight">Cap-height</dt> |
| 177 |
<dd> |
| 178 |
The height of the tallest capital letter in a given |
| 179 |
<a href="#font">font</a> |
| 180 |
at the current |
| 181 |
<a href="#ps">point size</a>. |
| 182 |
</dd> |
| 183 |
|
| 184 |
<dt id="descender">Descender</dt> |
| 185 |
<dd> |
| 186 |
The portion of a letter that extends beneath the |
| 187 |
<a href="#baseline">baseline</a> |
| 188 |
(j, q, y are letters with descenders). |
| 189 |
</dd> |
| 190 |
|
| 191 |
<dt id="discretionaryhyphen">Discretionary hyphen</dt> |
| 192 |
<dd> |
| 193 |
A symbol inserted between two syllables of a word that indicates |
| 194 |
to a typesetting program the valid hyphenation points in the |
| 195 |
word. Normally, if hyphenation is turned on, groff knows where |
| 196 |
to hyphenate words. However, hyphenation being what it is |
| 197 |
(in English, at any rate), groff doesn’t always get it right. |
| 198 |
Discretionary hyphens make sure it does. In the event that the |
| 199 |
word doesn’t need to be hyphenated at all, groff leaves them |
| 200 |
alone. In groff, the discretionary hyphen is entered with |
| 201 |
<kbd>\%</kbd> (i.e. a backslash followed by the percent sign). |
| 202 |
</dd> |
| 203 |
|
| 204 |
<dt id="dropcap">Drop cap</dt> |
| 205 |
<dd> |
| 206 |
A large, usually upper-case letter that introduces the first |
| 207 |
paragraph of a document or section thereof. The top of the |
| 208 |
drop cap usually lines up with the top of the first line of the |
| 209 |
paragraph, and typically “drops” several lines lower. |
| 210 |
Text adjacent to the drop cap is indented to the right of the |
| 211 |
letter until the bottom of the drop cap is reached, at which |
| 212 |
point text reverts to the left margin. |
| 213 |
</dd> |
| 214 |
|
| 215 |
<dt id="em">Em/en</dt> |
| 216 |
<dd> |
| 217 |
An em is a relative measurement equal to the width of the |
| 218 |
letter M at a given |
| 219 |
<a href="#ps">point size</a> |
| 220 |
in a given |
| 221 |
<a href="#font">font</a>. |
| 222 |
Since most Ms are designed square, an em is usually (but |
| 223 |
sometimes erroneously) considered to be the same size as the |
| 224 |
current point size (i.e., if the point size of the type is 12, |
| 225 |
one em equals 12 points). An en is equal to the width of a |
| 226 |
letter N (historically 2/3 of an em, although groff treats an en |
| 227 |
as 1/2 of an em). Typically, ems and ens are used to measure |
| 228 |
indents, or to define the length of dashes (long hyphens). |
| 229 |
</dd> |
| 230 |
|
| 231 |
<dt id="family">Family</dt> |
| 232 |
<dd> |
| 233 |
The collective name by which a collection of |
| 234 |
<a href="#font">fonts</a> |
| 235 |
are known, e.g. Helvetica, Times Roman, Garamond. |
| 236 |
</dd> |
| 237 |
|
| 238 |
<dt id="figurespace">Figure space/Digit space</dt> |
| 239 |
<dd> |
| 240 |
A |
| 241 |
<a href="#fixedwidthspace">fixed width space</a> |
| 242 |
that has the width of one digit. Used for aligning numerals in, |
| 243 |
say, columns or numbered lists. In groff, the figure space is |
| 244 |
entered with <kbd>\0</kbd> (i.e. a backslash followed by a zero) |
| 245 |
</dd> |
| 246 |
|
| 247 |
<dt id="fixedwidthfont">Fixed-width font</dt> |
| 248 |
<dd> |
| 249 |
A family or font in which every character occupies exactly the |
| 250 |
same amount of horizontal space on the line. Courier is the |
| 251 |
best-known, if not the most elegant, fixed-width font. |
| 252 |
</dd> |
| 253 |
|
| 254 |
<dt id="fixedwidthspace">Fixed width space</dt> |
| 255 |
<dd> |
| 256 |
Equal to |
| 257 |
<a href="#wordspace">word space</a>, |
| 258 |
but does not expand or contract when text is |
| 259 |
<a href="#just">justified</a>. |
| 260 |
In groff, fixed width space is entered with |
| 261 |
<kbd>\<space></kbd> (i.e. a backslash followed by a space) |
| 262 |
</dd> |
| 263 |
|
| 264 |
<dt id="font">Font</dt> |
| 265 |
<dd> |
| 266 |
The specific |
| 267 |
<a href="#weight">weight</a> |
| 268 |
and |
| 269 |
<a href="#shape">shape</a> |
| 270 |
of type within a |
| 271 |
<a href="#family">family</a>, |
| 272 |
e.g. light, medium, bold (which are weights), and roman, italic, |
| 273 |
condensed (which are shapes). By default, groff knows of four |
| 274 |
fonts within its default set of families: R (medium roman), I |
| 275 |
(medium italic), B (bold roman) and BI (bold italic). |
| 276 |
Mom considerably extends this very basic list. |
| 277 |
</dd> |
| 278 |
|
| 279 |
<dt id="force">Force justify</dt> |
| 280 |
<dd> |
| 281 |
Sometimes, in |
| 282 |
<a href="#just">justified</a> |
| 283 |
text, a line needs to be broken short of the right margin. |
| 284 |
Force justifying means telling a typesetting program (like |
| 285 |
groff) that you want the line broken early AND that you want the |
| 286 |
line’s word spacing stretched to force the line flush with the |
| 287 |
right margin. |
| 288 |
</dd> |
| 289 |
|
| 290 |
<dt id="gutter">Gutter</dt> |
| 291 |
<dd> |
| 292 |
The vertical whitespace separating columns of type. |
| 293 |
</dd> |
| 294 |
|
| 295 |
<dt id="just">Justify/justification</dt> |
| 296 |
<dd> |
| 297 |
Lines of type are justified when they’re flush at both the left |
| 298 |
and right margins. Justification is the act of making both |
| 299 |
margins flush. Some people use the terms "left justified" and |
| 300 |
"right justified" to mean type where only the left (or right) |
| 301 |
margins align. I don’t. See |
| 302 |
<a href="#quad">quad</a>. |
| 303 |
</dd> |
| 304 |
|
| 305 |
<dt id="kern">Kerning</dt> |
| 306 |
<dd> |
| 307 |
Moving pairs of letters closer together to remove excess |
| 308 |
whitespace between them. In the days before phototypesetting, |
| 309 |
type was set from small, rectangular blocks of wood or metal, |
| 310 |
each block having exactly one letter. Because the edge of |
| 311 |
each block determined the edge of each letter, certain letter |
| 312 |
combinations (TA, for example) didn’t fit together well and had |
| 313 |
to be mortised by hand to bring them visually closer. Modern |
| 314 |
typesetting systems usually take care of kerning automatically, |
| 315 |
but they’re far from perfect. Professional typesetters still |
| 316 |
devote a lot of time to fitting letters and punctuation together |
| 317 |
properly. |
| 318 |
</dd> |
| 319 |
|
| 320 |
<dt id="kernunit">Kern Units</dt> |
| 321 |
<dd> |
| 322 |
A relative distance, which, by default, is equal to 1/36 of the |
| 323 |
current |
| 324 |
<a href="#ps">point size</a>. |
| 325 |
Used between individual letters for |
| 326 |
<a href="#kern">kerning</a>. |
| 327 |
Different typesetting systems use different values (1/54 is |
| 328 |
popular), and sometimes call kern units by a different name. |
| 329 |
It is possible to change the default size of the kern unit with the |
| 330 |
<a href="inlines.html#kernunit">KERN_UNIT</a> |
| 331 |
macro. |
| 332 |
</dd> |
| 333 |
|
| 334 |
<dt id="leading">Lead/leading</dt> |
| 335 |
<dd> |
| 336 |
The distance from the |
| 337 |
<a href="#baseline">baseline</a> |
| 338 |
of one line of type to the line of type immediately beneath |
| 339 |
it. Pronounced "ledding." Also called line spacing. Usually |
| 340 |
measured in |
| 341 |
<a href="#picaspoints">points</a>. |
| 342 |
|
| 343 |
<p> |
| 344 |
<em>In case you’re interested...</em> In previous centuries, |
| 345 |
lines of type were separated by thin strips of—you guessed |
| 346 |
it—lead. Lines of type that had no lead between them were said |
| 347 |
to be “set solid.” Once you began separating them with |
| 348 |
strips of lead, they were said to be “leaded”, and the |
| 349 |
spacing was expressed in terms of the number of |
| 350 |
<a href="#picaspoints">points</a> |
| 351 |
of lead. For this reason, “leading” and “line |
| 352 |
spacing” aren’t, historically speaking, synonymous. |
| 353 |
If type was set 10 on 12, for example, the leading was 2 |
| 354 |
points, not 12. Nowadays, however, the two terms are used |
| 355 |
interchangeably to mean the distance from baseline to baseline. |
| 356 |
</p> |
| 357 |
|
| 358 |
</dd> |
| 359 |
|
| 360 |
<dt id="leader">Leaders</dt> |
| 361 |
<dd> |
| 362 |
Single characters used to fill lines, usually to their end. So |
| 363 |
called because they “lead” the eye from one element |
| 364 |
of the page to another. For example, in the following (brief) |
| 365 |
Table of Contents, the periods (dots) are leaders. |
| 366 |
|
| 367 |
<span class="pre" style="margin-bottom: -2em;"> |
| 368 |
Foreword............... 2 |
| 369 |
Chapter 1.............. 5 |
| 370 |
Chapter 2.............. 38 |
| 371 |
Chapter 3.............. 60 |
| 372 |
</span> |
| 373 |
</dd> |
| 374 |
|
| 375 |
<dt id="ligatures">Ligature</dt> |
| 376 |
<dd> |
| 377 |
Ligatures are letters joined together to form a single |
| 378 |
character. The commonest are fi, fl, ff, ffi and ffl. Others |
| 379 |
are ae and oe. Occasionally, one sees an st ligature, but this |
| 380 |
is archaic and quite rare. |
| 381 |
</dd> |
| 382 |
|
| 383 |
<dt id="picaspoints">Picas/Points</dt> |
| 384 |
<dd> |
| 385 |
There are twelve points in a pica, and six picas in an inch |
| 386 |
(hence 72 points to the inch). In the same way that gem-dealers |
| 387 |
have always used their own system of measurement for weight |
| 388 |
(carats), typographers have always used their own system of |
| 389 |
measurement for type. |
| 390 |
</dd> |
| 391 |
|
| 392 |
<dt id="ps">Point Size</dt> |
| 393 |
<dd> |
| 394 |
The nominal size of type, measured in |
| 395 |
<a href="#picaspoints">points</a> |
| 396 |
from the bottom of the longest |
| 397 |
<a href="#descender">descender</a> |
| 398 |
to the top of the highest |
| 399 |
<a href="#ascender">ascender</a>. |
| 400 |
In reality, type is always fractionally smaller than its point |
| 401 |
size. |
| 402 |
</dd> |
| 403 |
|
| 404 |
<dt id="quad">Quad</dt> |
| 405 |
<dd> |
| 406 |
When only one margin of type is flush, lines of type are quadded |
| 407 |
in the direction of the flush margin. Therefore, quad left |
| 408 |
means the left margin is flush, the right isn’t. Quad right |
| 409 |
means the right margin is flush, the left isn’t. Quad centre |
| 410 |
means neither the left nor the right margin is flush; rather, |
| 411 |
lines of type are quadded on both sides so that type appears |
| 412 |
centred on the page. |
| 413 |
</dd> |
| 414 |
|
| 415 |
<dt id="rag">Rag</dt> |
| 416 |
<dd> |
| 417 |
Describes a margin that isn’t flush. Rag right means the right |
| 418 |
margin isn’t flush. Rag left means the left margin isn’t flush. |
| 419 |
The expression "flush left/rag right" is sometimes used to |
| 420 |
describe type that is |
| 421 |
<a href="#quad">quadded</a> |
| 422 |
left. |
| 423 |
</dd> |
| 424 |
|
| 425 |
<dt id="shape">Shape</dt> |
| 426 |
<dd> |
| 427 |
The degree of slant and/or the width of characters. |
| 428 |
(Technically speaking, this is not a proper typesetting term; |
| 429 |
however, it may help clarify some concepts presented in these |
| 430 |
documents.) |
| 431 |
|
| 432 |
<p> |
| 433 |
Some typical shapes are: |
| 434 |
</p> |
| 435 |
|
| 436 |
<ul style="margin-top: -.5em; margin-bottom: -.5em"> |
| 437 |
<li>Roman, which has no slant, and has letterforms of |
| 438 |
average width</li> |
| 439 |
<li>Italic, which is slanted, and has letterforms |
| 440 |
of average width</li> |
| 441 |
<li>Condensed, which has no slant, but has |
| 442 |
letterforms narrower than the average represented by Roman</li> |
| 443 |
<li>Condensed Italic, which is slanted, with letterforms narrower |
| 444 |
than average</li> |
| 445 |
</ul> |
| 446 |
|
| 447 |
<p> |
| 448 |
The term |
| 449 |
<a href="#font">font</a>, |
| 450 |
as it is used in these documents, refers to a combination of |
| 451 |
<a href="#weight">weight</a> |
| 452 |
and shape. |
| 453 |
</p> |
| 454 |
|
| 455 |
</dd> |
| 456 |
|
| 457 |
<dt id="solid">Solid/set solid</dt> |
| 458 |
<dd> |
| 459 |
When no |
| 460 |
<a href="#leading">lead</a> |
| 461 |
is added between lines of type (i.e., the |
| 462 |
<a href="#ps">point size</a> |
| 463 |
and linespacing are the same), the lines are said to be “set |
| 464 |
solid.” |
| 465 |
</dd> |
| 466 |
|
| 467 |
<dt id="trackkerning">Track kerning/Line kerning</dt> |
| 468 |
<dd> |
| 469 |
Sometimes, it’s advantageous to increase or decrease the amount |
| 470 |
of space between every letter in a line by an equal (usually |
| 471 |
small) amount, in order to fit more (or fewer) characters on the |
| 472 |
line. The correct term is letter spacing, but track kerning and |
| 473 |
line kerning (and sometimes, just "kerning") have come to mean |
| 474 |
the same thing. |
| 475 |
</dd> |
| 476 |
|
| 477 |
<dt id="unbreakablespace">Unbreakable space</dt> |
| 478 |
<dd> |
| 479 |
Equal to |
| 480 |
<a href="#wordspace">word space</a>, |
| 481 |
however words separated by an unbreakable space will always be |
| 482 |
kept together on the same line. Expands and contracts like word |
| 483 |
space. Useful for proper names, which one should, whenever |
| 484 |
possible, avoid splitting onto two lines. In groff, unbreakable |
| 485 |
space is entered with <kbd>\~</kbd> (i.e. a backslash followed by a |
| 486 |
tilde) |
| 487 |
</dd> |
| 488 |
|
| 489 |
<dt id="weight">Weight</dt> |
| 490 |
<dd> |
| 491 |
The thickness of the strokes of letterforms. Medium and Book |
| 492 |
have average thicknesses and are the weights used for most |
| 493 |
of the text in books, magazines, newspapers, etc. Light has |
| 494 |
strokes slightly thinner than Medium or Book, but is still |
| 495 |
acceptable for most text. Semibold, Bold, Heavy and Black all |
| 496 |
have strokes of increasing thickness, making them suitable for |
| 497 |
headings and the like. |
| 498 |
</dd> |
| 499 |
|
| 500 |
<dt id="wordspace">Word space</dt> |
| 501 |
<dd> |
| 502 |
The amount of whitespace between words. When text is |
| 503 |
<a href="#just">justified</a>, |
| 504 |
word space expands or contracts to make the margins flush. |
| 505 |
</dd> |
| 506 |
|
| 507 |
<dt id="xheight">x-height</dt> |
| 508 |
<dd> |
| 509 |
The height of a lower case letter x in a given font at a given |
| 510 |
point size. Generally used to mean the average height of the |
| 511 |
bowl of lower case letters. |
| 512 |
</dd> |
| 513 |
</dl> |
| 514 |
|
| 515 |
<h3 id="groff-terms" class="docs">Groff terms</h3> |
| 516 |
|
| 517 |
<dl> |
| 518 |
<dt id="alias">Alias</dt> |
| 519 |
<dd> |
| 520 |
A |
| 521 |
<a href="#macros">macro</a> |
| 522 |
invoked by a name different from its “official” |
| 523 |
name. For example, the official name of the macro to change |
| 524 |
<a href="#family">family</a> |
| 525 |
is <kbd>FAMILY</kbd>. Its alias is <kbd>FAM</kbd>. |
| 526 |
Aliases may be created for any macro (via the |
| 527 |
<a href="goodies.html#alias"><kbd>ALIAS</kbd></a> |
| 528 |
macro) provided the alias uses a name not already taken by the |
| 529 |
mom macros or one of the groff |
| 530 |
<a href="#primitives">primitives</a>. |
| 531 |
For a complete list of words or names you must not use, see the |
| 532 |
<a href="reserved.html#reserved">list of reserved words</a>. |
| 533 |
</dd> |
| 534 |
|
| 535 |
<dt id="arguments">Arguments</dt> |
| 536 |
<dd> |
| 537 |
Parameters or information needed by a |
| 538 |
<a href="#macros">macro</a> |
| 539 |
to do its job. For example, in the macro |
| 540 |
|
| 541 |
<span class="pre" style="margin-bottom: -2em;"> |
| 542 |
.PT_SIZE 12 |
| 543 |
</span> |
| 544 |
|
| 545 |
<kbd>12</kbd> is the argument. In the macro |
| 546 |
|
| 547 |
<span class="pre" style="margin-bottom: -2em;"> |
| 548 |
.QUAD LEFT |
| 549 |
</span> |
| 550 |
|
| 551 |
<kbd>LEFT</kbd> is the argument. Arguments are separated from |
| 552 |
macros by spaces. Some macros require several arguments; each |
| 553 |
is separated by a space. |
| 554 |
</dd> |
| 555 |
|
| 556 |
<dt id="commentlines">Comment Lines</dt> |
| 557 |
<dd> |
| 558 |
<a href="#inputline">Input lines</a> |
| 559 |
introduced with the comment character <kbd>\#</kbd> (i.e. a |
| 560 |
backslash followed by the pound sign). When processing output, |
| 561 |
groff silently ignores everything on a line that begins with the |
| 562 |
comment character. |
| 563 |
</dd> |
| 564 |
|
| 565 |
<dt id="controllines">Control Lines</dt> |
| 566 |
<dd> |
| 567 |
Instructions to groff that appear on a line by themselves, which |
| 568 |
means that “control lines” are either |
| 569 |
<a href="#macros">macros</a> |
| 570 |
or groff |
| 571 |
<a href="#primitives">primitives</a>. |
| 572 |
Control lines begin with a period or, occasionally, an apostrophe. |
| 573 |
</dd> |
| 574 |
|
| 575 |
<dt id="filled">Filled lines/fill mode</dt> |
| 576 |
<dd> |
| 577 |
Automatic |
| 578 |
<a href="#just">justification</a> |
| 579 |
or |
| 580 |
<a href="#quad">quadding</a>. |
| 581 |
In fill mode, the ends of lines as they appear in your text |
| 582 |
editor are ignored. Instead, words from adjoining |
| 583 |
<a href="#inputline">input lines</a> |
| 584 |
are added one at a time to the output line until no more words |
| 585 |
fit. Then, depending whether text is to be |
| 586 |
<a href="#just">justified</a> |
| 587 |
or |
| 588 |
<a href="#quad">quadded</a> |
| 589 |
(left, right, or centre), and depending on whether automatic |
| 590 |
hyphenation is turned on, groff attempts to hyphenate the last |
| 591 |
word, or, barring that, spreads and breaks the line (when |
| 592 |
justification is turned on) or breaks and quads the line (when |
| 593 |
quadding is turned on). |
| 594 |
|
| 595 |
<p id="no-fill"> |
| 596 |
Nofill mode (non-filled text) means that groff respects the ends |
| 597 |
of lines exactly as they appear in your text editor. |
| 598 |
</p> |
| 599 |
|
| 600 |
</dd> |
| 601 |
|
| 602 |
<dt id="inlines">Inline escapes</dt> |
| 603 |
<dd> |
| 604 |
Instructions issued to groff that appear as part of an |
| 605 |
<a href="#inputline">input line</a> |
| 606 |
(as opposed to |
| 607 |
<a href="#macros">macros</a>, |
| 608 |
which must appear on a line by themselves). Inline escapes are |
| 609 |
always introduced by the backslash character. For example, |
| 610 |
|
| 611 |
<span class="pre" style="margin-bottom: -2em;"> |
| 612 |
A line of text with the word T\*[BU 2]oronto in it |
| 613 |
</span> |
| 614 |
|
| 615 |
contains the inline escape <kbd>\*[BU 2]</kbd> (which means |
| 616 |
“move the letter ‘o’ 2 |
| 617 |
<a href="#kernunit">kern units</a> |
| 618 |
closer to the letter ‘T’”). |
| 619 |
|
| 620 |
<p style="margin-bottom: -2em;"> |
| 621 |
Mom’s inline escapes always take the form |
| 622 |
<kbd>\*[<ESCAPE>]</kbd>, where <kbd>ESCAPE</kbd> is |
| 623 |
composed of capital letters, sometimes followed immediately by a |
| 624 |
digit, sometimes followed by a space and a |
| 625 |
<a href="#numericargument">numeric argument</a>. |
| 626 |
Groff’s escapes begin with the backslash |
| 627 |
character but typically have no star and are in lower case. For |
| 628 |
example, the mom escapes to move forward 6 |
| 629 |
points on a line are either |
| 630 |
|
| 631 |
<span class="pre" style="margin-bottom: -2em;"> |
| 632 |
\*[FP6] or \*[FWD 6p] |
| 633 |
</span> |
| 634 |
|
| 635 |
while the groff escape for the same thing is |
| 636 |
|
| 637 |
<span class="pre" style="margin-bottom: -2em;"> |
| 638 |
\h’6p’ |
| 639 |
</span> |
| 640 |
</p> |
| 641 |
|
| 642 |
</dd> |
| 643 |
|
| 644 |
<dt id="inputline" style="margin-top: -1em;">Input line</dt> |
| 645 |
<dd> |
| 646 |
A line of text as it appears in your text editor. |
| 647 |
</dd> |
| 648 |
|
| 649 |
<dt id="macros">Macros</dt> |
| 650 |
<dd> |
| 651 |
Instructions embedded in a document that determine how groff |
| 652 |
processes the text for output. mom’s macros |
| 653 |
always begin with a period, on a line by themselves, and must |
| 654 |
be typed in capital letters. Typically, macros contain complex |
| 655 |
commands issued to groff—behind the scenes—via |
| 656 |
groff |
| 657 |
<a href="#primitives">primitives</a>. |
| 658 |
</dd> |
| 659 |
|
| 660 |
<dt id="units">Machine units</dt> |
| 661 |
<dd> |
| 662 |
A machine unit is 1/1000 of a |
| 663 |
<a href="#picaspoints">point</a> |
| 664 |
when the groff device is ps. (“ps” means |
| 665 |
“PostScript”—the default device for |
| 666 |
which groff prepares output, and the device for which |
| 667 |
mom was originally designed.) |
| 668 |
</dd> |
| 669 |
|
| 670 |
<dt id="numericargument">Numeric argument</dt> |
| 671 |
<dd> |
| 672 |
An |
| 673 |
<a href="#arguments">argument</a> |
| 674 |
that has the form of a digit. Numeric arguments can be built |
| 675 |
out of arithmetic expressions using +, -, *, and / for plus, |
| 676 |
minus, times, and divided-by respectively. If a numeric |
| 677 |
argument requires a |
| 678 |
<a href="#unitofmeasure">unit of measure</a>, |
| 679 |
a unit of measure must be appended to <em>every</em> digit in |
| 680 |
the argument. For example: |
| 681 |
|
| 682 |
<span class="pre" style="margin-bottom: -2em;"> |
| 683 |
.ALD 1i-1v |
| 684 |
</span> |
| 685 |
|
| 686 |
<div class="box-important" style="margin-right: 2.5em;"> |
| 687 |
<p class="tip"> |
| 688 |
<span class="important">IMPORTANT:</span> groff does not |
| 689 |
respect the order of operations, but rather evaluates |
| 690 |
arithmetic expressions from left to right. Parentheses must |
| 691 |
be used to circumvent this peculiarity. Not to worry, though. |
| 692 |
The likelihood of more than just the occasional plus or minus |
| 693 |
sign when using mom’s macros is slim. |
| 694 |
</p> |
| 695 |
</div> |
| 696 |
</dd> |
| 697 |
|
| 698 |
<dt id="outputline">Output line</dt> |
| 699 |
<dd> |
| 700 |
A line of text as it appears in output copy. |
| 701 |
</dd> |
| 702 |
|
| 703 |
<dt id="preprocessor">Pre-processor</dt> |
| 704 |
<dd> |
| 705 |
Pre-processors are used by groff to generate tables |
| 706 |
(<strong>tbl</strong>), diagrams (<strong>pic</strong>), graphs |
| 707 |
(<strong>grap</strong>), and equations (<strong>eqn</strong>). |
| 708 |
These pre-processors are fully supported by mom. In addition, |
| 709 |
the “refer” pre-processor is used to generate |
| 710 |
bibliographies and lists of cited works. The PDF_IMAGE macro, |
| 711 |
which allows insertion of graphics into a document, is not |
| 712 |
strictly a pre-processor but behaves similarly to tbl, pic, and |
| 713 |
eqn. |
| 714 |
</dd> |
| 715 |
|
| 716 |
<dt id="primitives">Primitives</dt> |
| 717 |
<dd> |
| 718 |
The lowercase instructions, introduced with a period, that groff |
| 719 |
uses as its native command language, and out of which macros |
| 720 |
are built. The majority of groff’s primitive requests are two |
| 721 |
letters long. |
| 722 |
</dd> |
| 723 |
|
| 724 |
<dt id="stringargument">String Argument</dt> |
| 725 |
<dd> |
| 726 |
Technically, any |
| 727 |
<a href="#arguments">argument</a> |
| 728 |
that is not numeric. In this documentation, string argument |
| 729 |
means an argument that requires the user to input text. For |
| 730 |
example, in the |
| 731 |
<a href="#macros">macro</a> |
| 732 |
|
| 733 |
<span class="pre" style="margin-bottom: -2em;"> |
| 734 |
.TITLE "My Pulitzer Novel" |
| 735 |
</span> |
| 736 |
|
| 737 |
<kbd>"My Pulitzer Novel"</kbd> is a string argument. |
| 738 |
|
| 739 |
<p> |
| 740 |
Because string arguments must be enclosed by double-quotes, you |
| 741 |
can’t use double-quotes as part of the string argument. If you |
| 742 |
need double-quotes to be part of a string argument, use the |
| 743 |
<a href="#inlines">inline escapes</a> |
| 744 |
<kbd>\(lq</kbd> and <kbd>\(rq</kbd> (leftquote and |
| 745 |
rightquote respectively) in place of the double-quote character |
| 746 |
(<kbd>"</kbd>). |
| 747 |
</p> |
| 748 |
|
| 749 |
</dd> |
| 750 |
|
| 751 |
<dt id="unitofmeasure">Unit of measure</dt> |
| 752 |
<dd> |
| 753 |
The single letter after a |
| 754 |
<a href="#numericargument">numeric argument</a> |
| 755 |
that tells mom what measurement scale the |
| 756 |
argument should use. Common valid units are: |
| 757 |
|
| 758 |
<span class="pre" style="margin-bottom: -2em;"> |
| 759 |
i (inches) |
| 760 |
p (points) |
| 761 |
P (Picas) |
| 762 |
c (centimetres) |
| 763 |
m (ems) |
| 764 |
n (ens) |
| 765 |
u (machine units) |
| 766 |
v (the current leading [line space]) |
| 767 |
</span> |
| 768 |
|
| 769 |
<p style="margin-top: -1em;"> |
| 770 |
Units of measure must come immediately after the numeric |
| 771 |
argument (i.e. with no space between the argument and the unit |
| 772 |
of measure), like this: |
| 773 |
|
| 774 |
<span class="pre" style="margin-bottom: -2em;"> |
| 775 |
.ALD 2v |
| 776 |
.LL 39P |
| 777 |
.IL 1i |
| 778 |
</span> |
| 779 |
|
| 780 |
The above example advances 2 line spaces and sets the line |
| 781 |
length to 39 picas with a left indent of 1 inch. |
| 782 |
</p> |
| 783 |
|
| 784 |
<div class="box-important" style="margin-right: 2.5em;"> |
| 785 |
<p class="tip"> |
| 786 |
<span class="important">IMPORTANT:</span> |
| 787 |
Most mom macros that set the size or measure of something must |
| 788 |
be given a unit of measure since most of the macros do not have |
| 789 |
default units of measure. There are a couple of exceptions, |
| 790 |
the most notable of which are <kbd>PT_SIZE</kbd> and |
| 791 |
<kbd class="bold">LS</kbd>. Both use |
| 792 |
<a href="#picaspoints">points</a> |
| 793 |
as the default unit of measure, which means you don’t have to |
| 794 |
append “p” to their argument. |
| 795 |
</p> |
| 796 |
</div> |
| 797 |
|
| 798 |
<p> |
| 799 |
You can enter decimal values for any unit of measure. Different |
| 800 |
units may be combined by adding them together (e.g. 1.5i+2m, |
| 801 |
which gives a measure of 1-1/2 inches plus 2 ems). |
| 802 |
</p> |
| 803 |
|
| 804 |
<div class="box-tip" style="margin-right: 2.5em;"> |
| 805 |
<p class="tip"> |
| 806 |
<span class="note">Note:</span> |
| 807 |
a pica is composed of 12 points, therefore 12.5 picas is 12 |
| 808 |
picas and 6 points, not 12 picas and 5 points. If you want 12 |
| 809 |
picas and 5 points, you have to enter the measure as 12P+5p. |
| 810 |
</p> |
| 811 |
</div> |
| 812 |
|
| 813 |
</dd> |
| 814 |
|
| 815 |
<dt id="zerowidthcharacter">Zero-width character</dt> |
| 816 |
<dd> |
| 817 |
The |
| 818 |
<a href="#inlines">inline escape</a> |
| 819 |
that allows you to print a literal period, apostrophe and, if |
| 820 |
<a href="#outputline">output lines</a> |
| 821 |
are |
| 822 |
<a href="#filled">filled</a>, |
| 823 |
a space that falls at the beginning of an |
| 824 |
<a href="#inputline">input line</a>. |
| 825 |
It looks like this: |
| 826 |
|
| 827 |
<span class="pre" style="margin-bottom: -2em;"> |
| 828 |
\& <span style="font-family: arial, sans-serif; font-weight: normal">(i.e. a backslash followed by an ampersand)</span> |
| 829 |
</span> |
| 830 |
|
| 831 |
Normally, groff interprets a period (or an apostrophe) at the |
| 832 |
beginning of an input line as meaning that what follows is a |
| 833 |
<a href="#controllines">control line</a>. |
| 834 |
In fill modes, groff treats a space at the beginning of an input |
| 835 |
line as meaning “start a new line and put a space at the |
| 836 |
beginning of it.” If you want groff to interpret periods |
| 837 |
and apostrophes at the beginning of input lines literally (i.e. |
| 838 |
to print them), or spaces at the beginning of input lines as just |
| 839 |
garden variety word spaces, you must start the line with the |
| 840 |
zero-width character. |
| 841 |
</dd> |
| 842 |
</dl> |
| 843 |
|
| 844 |
<h3 id="mom-terms" class="docs">Mom terms</h3> |
| 845 |
<dl> |
| 846 |
<dt id="baseline-grid">Baseline grid</dt> |
| 847 |
<dd> |
| 848 |
Virtual guide lines spaced according to the |
| 849 |
<a href="#leading">leading</a> |
| 850 |
established for running text. Adherence to the grid ensures that |
| 851 |
text fills the page completely to the bottom margin. Uncorrected |
| 852 |
deviations from the grid result in bottom margins that fall short. |
| 853 |
</dd> |
| 854 |
|
| 855 |
<dt id="controlmacro">Control macro</dt> |
| 856 |
<dd> |
| 857 |
Macros used in |
| 858 |
<a href="docprocessing.html#docprocessing">document processing</a> |
| 859 |
to control/alter the appearance of document elements (e.g. |
| 860 |
headings, quotes, footnotes, |
| 861 |
<a href="#header">headers</a>, |
| 862 |
etc.). |
| 863 |
</dd> |
| 864 |
|
| 865 |
<dt id="docheader">Document header/docheader</dt> |
| 866 |
<dd> |
| 867 |
Document information (title, subtitle, author, etc) output at |
| 868 |
the top of page one. |
| 869 |
</dd> |
| 870 |
|
| 871 |
<dt id="epigraph">Epigraph</dt> |
| 872 |
<dd> |
| 873 |
A short, usually cited passage that appears at the beginning of |
| 874 |
a chapter, story, or other document. |
| 875 |
</dd> |
| 876 |
|
| 877 |
<dt id="float">Float</dt> |
| 878 |
<dd> |
| 879 |
A float is material intended to be kept together as a block. |
| 880 |
Floated material that fits on a page in position is output on that |
| 881 |
page. Floats that do not fit in position are deferred to the top |
| 882 |
of the next page. |
| 883 |
</dd> |
| 884 |
|
| 885 |
<dt id="footer">Footer/page footer</dt> |
| 886 |
<dd> |
| 887 |
Document information (frequently author and title) output in |
| 888 |
the bottom margin of pages after page one. Not to be |
| 889 |
confused with footnotes, which are considered part of |
| 890 |
<a href="#running">running text</a>. |
| 891 |
</dd> |
| 892 |
|
| 893 |
<dt id="head">Heading</dt> |
| 894 |
<dd> |
| 895 |
The title used to identify a section of a document. Headings |
| 896 |
are hierarchic, corresponding to the notion of head, subhead, |
| 897 |
subsubhead, etc. |
| 898 |
</dd> |
| 899 |
|
| 900 |
<dt id="header">Header/page header</dt> |
| 901 |
<dd> |
| 902 |
Document information (frequently author and title) output in the |
| 903 |
top margin of pages after page one. |
| 904 |
|
| 905 |
<div class="box-tip" style="margin-right: 2.5em;"> |
| 906 |
<p class="tip"> |
| 907 |
<span class="note">Note:</span> In terms of content and style, |
| 908 |
headers and |
| 909 |
<a href="#footer">footers</a> |
| 910 |
are the same; they differ only in their placement on the page. |
| 911 |
In most places in this documentation, references to the content |
| 912 |
or style of headers applies equally to footers. |
| 913 |
</p> |
| 914 |
</div> |
| 915 |
|
| 916 |
</dd> |
| 917 |
|
| 918 |
<dt id="linebreak">Linebreak/author linebreak</dt> |
| 919 |
<dd> |
| 920 |
A gap in the vertical flow of |
| 921 |
<a href="#running">running text</a>, |
| 922 |
frequently set off by typographic symbols such as asterisks or |
| 923 |
daggers. Used to indicate a shift in the content of a document |
| 924 |
(e.g. a scene change in a short story). Also commonly called a |
| 925 |
scene break or a section break. |
| 926 |
</dd> |
| 927 |
|
| 928 |
<dt id="parahead">Paragraph head</dt> |
| 929 |
<dd> |
| 930 |
A heading joined to the body of a paragraph. |
| 931 |
</dd> |
| 932 |
|
| 933 |
<dt id="pdflink">PDF link</dt> |
| 934 |
<dd> |
| 935 |
A portion of text that, when clicked on in a PDF viewer, navigates |
| 936 |
to a bookmarked location in a document, generally but not |
| 937 |
exclusively a heading. It may also point to an external URL. |
| 938 |
PDF links are usually coloured to make them stand out from the |
| 939 |
surrounding text. |
| 940 |
</dd> |
| 941 |
|
| 942 |
<dt id="pdfoutline">PDF outline</dt> |
| 943 |
<dd> |
| 944 |
The hierarchically-arranged navigation outline provided by most PDF |
| 945 |
viewers (e.g. Okular, Evince), typically in a panel to the left of |
| 946 |
the document window, and usually labelled “Contents”. |
| 947 |
</dd> |
| 948 |
|
| 949 |
<dt id="quote">Quote</dt> |
| 950 |
<dd> |
| 951 |
A quote, to mom, is a line-for-line setting |
| 952 |
of quoted material (e.g. poetry, song lyrics, or a snippet of |
| 953 |
programming code). You don’t have to use |
| 954 |
<a href="typesetting.html#br"><kbd>BR</kbd></a> |
| 955 |
with quotes. |
| 956 |
</dd> |
| 957 |
|
| 958 |
<dt id="running">Running text</dt> |
| 959 |
<dd> |
| 960 |
In a document formatted with mom, running |
| 961 |
text means text that forms the body of the document, including |
| 962 |
elements such as headings. |
| 963 |
<a href="#docheader">Docheaders</a>, |
| 964 |
<a href="#header">headers</a>, |
| 965 |
<a href="#footer">footers</a> |
| 966 |
and page numbers are not part of running text. |
| 967 |
</dd> |
| 968 |
|
| 969 |
<dt id="toggle">Toggle</dt> |
| 970 |
<dd> |
| 971 |
A macro or tag that, when invoked without an argument, begins |
| 972 |
something or turns a feature on, and, when invoked with ANY |
| 973 |
argument, ends something or turns a feature off. See |
| 974 |
<a href="intro.html#toggle-example">Example 3</a> |
| 975 |
of the section |
| 976 |
<a href="intro.html#macro-args">How to read macro arguments</a>. |
| 977 |
</dd> |
| 978 |
</dl> |
| 979 |
|
| 980 |
<div class="rule-long"><hr/></div> |
| 981 |
|
| 982 |
<!-- Navigation links --> |
| 983 |
<table style="width: 100%;"> |
| 984 |
<tr> |
| 985 |
<td style="width: 33%;"><a href="toc.html">Back to Table of Contents</a></td> |
| 986 |
<td style="width: 33%; text-align: center;"><a href="#top">Top</a></td> |
| 987 |
<td style="width: 33%; text-align: right;"><a href="using.html#top">Next: Using mom</a></td> |
| 988 |
</tr> |
| 989 |
</table> |
| 990 |
|
| 991 |
</div> |
| 992 |
|
| 993 |
<div class="bottom-spacer"><br/></div> |
| 994 |
|
| 995 |
</body> |
| 996 |
</html> |