| 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 -- Typesetting Macros</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="goodies.html#top">Next: Goodies</a></td> |
| 38 |
</tr> |
| 39 |
</table> |
| 40 |
|
| 41 |
<h1 id="typesetting" class="docs">The typesetting macros</h1> |
| 42 |
|
| 43 |
<div id="typesetting-macros-mini-toc" class="mini-toc"> |
| 44 |
<div class="mini-toc-col-1"> |
| 45 |
<ul class="no-enumerator"> |
| 46 |
<li class="list-head"><a href="#typesetting-macros">Introduction</a></li> |
| 47 |
<li class="list-head"><a href="#page-setup-intro">Paper and page setup</a> |
| 48 |
<ul> |
| 49 |
<li class="item"><a href="#page-setup-note"><i>Important note on page dimensions & papersize</i></a></li> |
| 50 |
<li class="item"><a href="#index-page-setup">Macro list</a></li> |
| 51 |
</ul></li> |
| 52 |
<li class="list-head"><a href="#basic-params-intro">Basic typesetting parameters</a> |
| 53 |
<ul> |
| 54 |
<li class="item"><a href="#index-basic">Macro list</a></li> |
| 55 |
</ul></li> |
| 56 |
<li class="list-head"><a href="#justification-intro">Justification and quadding/ |
| 57 |
<br/> |
| 58 |
<span style="margin-left: 1em;">breaking and joining lines</span></a> |
| 59 |
<ul> |
| 60 |
<li class="item"><a href="#index-justification">Macro list</a></li> |
| 61 |
</ul></li> |
| 62 |
<li class="list-head"><a href="#refinements-intro">Typographic refinements</a> |
| 63 |
<ul> |
| 64 |
<li class="item"><a href="#index-refinements">Macro list</a></li> |
| 65 |
</ul></li> |
| 66 |
<li class="list-head"><a href="#modifications-intro">Type modifications (pseudo font styles)</a> |
| 67 |
<ul class="no-enumerator"> |
| 68 |
<li class="item"><a href="#index-modifications">Macro list</a></li> |
| 69 |
</ul></li> |
| 70 |
<li class="list-head"><a href="#aldrld-intro">Vertical movements</a> |
| 71 |
<ul class="no-enumerator"> |
| 72 |
<li class="item"><a href="#index-aldrld">Macro list</a> |
| 73 |
</li> |
| 74 |
</ul></li> |
| 75 |
</ul> |
| 76 |
</div> |
| 77 |
<div class="mini-toc-col-2"> |
| 78 |
<ul class="no-enumerator"> |
| 79 |
<li class="list-head"><a href="#tabs-intro">Tabs</a> |
| 80 |
<ul class="no-enumerator"> |
| 81 |
<li class="item"><a href="#typesetting-tabs">Typesetting tabs</a> |
| 82 |
<ul style="margin-left: -.5em;"> |
| 83 |
<li class="item" style="margin-left: -.5em; list-style-type: circle;"><a href="#typesetting-tabs-tut">Quickie tutorial on typesetting tabs</a></li> |
| 84 |
</ul></li> |
| 85 |
<li class="item"><a href="#string-tabs">String tabs</a> |
| 86 |
<ul style="margin-left: -.5em;"> |
| 87 |
<li class="item" style="margin-left: -.5em; list-style-type: circle;"><a href="#string-tabs-tut">Quickie tutorial on string tabs</a></li> |
| 88 |
</ul></li> |
| 89 |
<li class="item"><a href="#index-tabs">Macro list</a></li> |
| 90 |
</ul></li> |
| 91 |
<li class="list-head"><a href="#multicolumns-intro">Multiple columns</a> |
| 92 |
<ul class="no-enumerator"> |
| 93 |
<li class="item"><a href="#index-multicolumns">Macro list</a> |
| 94 |
</li> |
| 95 |
</ul></li> |
| 96 |
<li class="list-head"><a href="#indents-intro">Indents</a> |
| 97 |
<ul class="no-enumerator"> |
| 98 |
<li class="item"><a href="#indents-handling">How mom handles indents</a></li> |
| 99 |
<li class="item"><a href="#index-indents">Macro list</a> |
| 100 |
</li> |
| 101 |
</ul></li> |
| 102 |
<li class="list-head"><a href="goodies.html#goodies">Goodies</a> |
| 103 |
<ul class="no-enumerator"> |
| 104 |
<li class="item"><a href="goodies.html#goodies-macros">Macro list</a> |
| 105 |
</li> |
| 106 |
</ul></li> |
| 107 |
<li class="list-head"><a href="inlines.html#top">Inline escapes</a> |
| 108 |
<ul class="no-enumerator"> |
| 109 |
<li class="item"><a href="inlines.html#index-inlines">List of inline escapes</a> |
| 110 |
</li> |
| 111 |
</ul></li> |
| 112 |
<li class="list-head"><a href="color.html">Coloured text</a> |
| 113 |
<ul class="no-enumerator"> |
| 114 |
<li class="item"><a href="color.html#index-color">Macro list</a></li> |
| 115 |
</ul></li> |
| 116 |
</ul> |
| 117 |
</div> |
| 118 |
</div> |
| 119 |
|
| 120 |
<div class="rule-medium"><hr/></div> |
| 121 |
|
| 122 |
<h2 id="typesetting-intro" class="docs">Introduction</h2> |
| 123 |
|
| 124 |
<p> |
| 125 |
Mom’s typesetting macros provide access to groff’s |
| 126 |
typesetting capabilities. Aside from controlling basic type |
| 127 |
parameters (family, font, line length, point size, leading), |
| 128 |
mom’s macros fine-tune wordspacing, letterspacing, kerning, |
| 129 |
hyphenation, and so on. In addition, mom has true typesetting tabs, |
| 130 |
string tabs, multiple indent styles, line padding, and a batch of |
| 131 |
other goodies. |
| 132 |
</p> |
| 133 |
|
| 134 |
<p> |
| 135 |
In some cases, mom’s typesetting macros merely imitate groff |
| 136 |
primitives. In others, they approach typesetting concerns in |
| 137 |
conceptually new ways (for groff, at least). This should present |
| 138 |
no problem for newcomers to groff who are learning mom. Old groff |
| 139 |
hands should be careful. Just because it looks like a duck and |
| 140 |
walks like a duck does not, in this instance, mean that it is a |
| 141 |
duck. When using mom, stay away from groff primitives if mom |
| 142 |
provides a macro that accomplishes the same thing. |
| 143 |
</p> |
| 144 |
|
| 145 |
<p> |
| 146 |
Mom’s typesetting macros can be used as a standalone package, |
| 147 |
independent of the |
| 148 |
<a href="docprocessing.html#top">document processing macros</a>. |
| 149 |
With them, you can typeset on-the-fly. Book covers, your best |
| 150 |
friend’s résumé, a poster for a lost dog—none of these |
| 151 |
requires structured document processing (page headers, paragraphs, |
| 152 |
headings, footnotes, etc). What they do demand is precise control over |
| 153 |
every element on the page. The typesetting macros give you that |
| 154 |
control. |
| 155 |
</p> |
| 156 |
|
| 157 |
<div class="rule-short" style="margin-bottom: 24px;"><hr/></div> |
| 158 |
|
| 159 |
<!-- ==================================================================== --> |
| 160 |
|
| 161 |
<h2 id="page-setup-intro" class="macro-group">Paper and page setup: paper size & page margins</h2> |
| 162 |
|
| 163 |
<p> |
| 164 |
The page setup macros establish the physical dimensions of your page |
| 165 |
and the margins you want it to have. The |
| 166 |
<a href="#paper">PAPER</a> |
| 167 |
macro provides a shortcut for setting the page to the correct |
| 168 |
dimensions for a number of common paper sizes. The |
| 169 |
<a href="#page">PAGE</a> |
| 170 |
macro provides a convenient way of setting the page dimensions and |
| 171 |
some or all of the page margins with a single macro. |
| 172 |
</p> |
| 173 |
|
| 174 |
<div class="box-notes"> |
| 175 |
<h3 id="page-setup-note" class="docs notes">Important note on page dimensions and papersize</h3> |
| 176 |
|
| 177 |
<p style="margin-top: .5em;"> |
| 178 |
When mom files are processed with |
| 179 |
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>, |
| 180 |
which is recommended (see |
| 181 |
<a href="http://www.schaffter.ca/mom/pdf/mom-pdf.pdf"><span class="book-title">Producing PDFs with groff and mom</span></a>), |
| 182 |
page dimensions are automatically passed to groff, and you |
| 183 |
don’t have to worry about them. |
| 184 |
</p> |
| 185 |
|
| 186 |
<p> |
| 187 |
Mom documents processed directly with <strong>groff</strong>, or with |
| 188 |
<strong>pdfroff</strong>, or with <strong>pdfmom ‑Tps</strong>, require |
| 189 |
that the papersize be given on the command line as well if the |
| 190 |
papersize is different from the default on your system. You can |
| 191 |
verify—or change—the default papersize by inspecting the |
| 192 |
files |
| 193 |
<br/> |
| 194 |
<span class="pre-in-pp"> |
| 195 |
<path to groff>/font/devps/DESC |
| 196 |
</span> |
| 197 |
and |
| 198 |
<br/> |
| 199 |
<span class="pre-in-pp"> |
| 200 |
<path to groff>/font/devpdf/DESC |
| 201 |
</span> |
| 202 |
(See <strong>man papersize</strong> for list of valid papersize |
| 203 |
names, as well as for instructions on how to enter a non-standard |
| 204 |
size.) |
| 205 |
</p> |
| 206 |
|
| 207 |
<p> |
| 208 |
If you occasionally need to print on sheets that do not |
| 209 |
conform to your default papersize, you must, in addition |
| 210 |
to setting the page dimensions in your mom file, pass the |
| 211 |
<kbd>-P-p<papersize></kbd> option to <strong>groff</strong>, |
| 212 |
<strong>pdfroff</strong>, or <strong>pdfmom -Tps</strong>. |
| 213 |
</p> |
| 214 |
|
| 215 |
<p> |
| 216 |
For example, suppose your routine papersize is “letter”, |
| 217 |
and you need to print something on a legal-sized sheet. After |
| 218 |
telling mom about the legal-size sheet (with either |
| 219 |
<a href="#pagelength">PAGELENGTH</a> |
| 220 |
and |
| 221 |
<a href="#pagewidth">PAGEWIDTH</a> |
| 222 |
or |
| 223 |
<a href="#paper">PAPER</a>, |
| 224 |
or |
| 225 |
<a href="#page">PAGE</a>), |
| 226 |
you must include <kbd>-P-p<papersize></kbd> on whichever |
| 227 |
command line you use, e.g. |
| 228 |
<br/> |
| 229 |
<span class="pre-in-pp"> |
| 230 |
pdfmom -Tps -mom -P-plegal |
| 231 |
</span> |
| 232 |
Remember, though, that |
| 233 |
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>, |
| 234 |
with no <kbd>-Tps</kbd> option, is smart enough to know the |
| 235 |
papersize from the dimensions provided in your mom file. |
| 236 |
</p> |
| 237 |
|
| 238 |
<p class="tip-bottom"> |
| 239 |
Consult <kbd>man groff</kbd>, <kbd>man grops</kbd> and <kbd>man |
| 240 |
groff_font</kbd> for additional information concerning papersizes, |
| 241 |
as well as information on printing in “landscape” |
| 242 |
orientation. |
| 243 |
</p> |
| 244 |
</div> |
| 245 |
|
| 246 |
<div class="macro-list-container"> |
| 247 |
<h3 id="index-page-setup" class="macro-list">Paper and page setup macros</h3> |
| 248 |
|
| 249 |
<ul class="macro-list"> |
| 250 |
<li><a href="#pagewidth">PAGEWIDTH</a> – page width</li> |
| 251 |
<li><a href="#pagelength">PAGELENGTH</a> – page length</li> |
| 252 |
<li><a href="#paper">PAPER</a> – common paper sizes</li> |
| 253 |
<li><a href="#l-margin">L_MARGIN</a> – left margin</li> |
| 254 |
<li><a href="#r-margin">R_MARGIN</a> – right margin</li> |
| 255 |
<li><a href="#t-margin">T_MARGIN</a> – top margin</li> |
| 256 |
<li><a href="#b-margin">B_MARGIN</a> – bottom margin</li> |
| 257 |
<li><a href="#page">PAGE</a> – page dimensions and margins all in one fell swoop</li> |
| 258 |
<li><a href="#newpage">NEWPAGE</a> – start a new page</li> |
| 259 |
</ul> |
| 260 |
</div> |
| 261 |
|
| 262 |
<!-- -PAGEWIDTH- --> |
| 263 |
|
| 264 |
<div class="macro-id-overline"> |
| 265 |
<h3 id="pagewidth" class="macro-id">Page width</h3> |
| 266 |
</div> |
| 267 |
|
| 268 |
<div class="box-macro-args"> |
| 269 |
Macro: <b>PAGEWIDTH</b> <kbd class="macro-args"><width of printer sheet></kbd> |
| 270 |
</div> |
| 271 |
<p class="requires"> |
| 272 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 273 |
</p> |
| 274 |
|
| 275 |
<p> |
| 276 |
The argument to PAGEWIDTH is the width of your printer sheet. |
| 277 |
PAGEWIDTH requires a unit of measure. Decimal fractions are |
| 278 |
allowed. Hence, to tell mom that the width of your printer sheet is |
| 279 |
8-1/2 inches, you enter |
| 280 |
<br/> |
| 281 |
<span class="pre-in-pp"> |
| 282 |
.PAGEWIDTH 8.5i |
| 283 |
</span> |
| 284 |
Please read the |
| 285 |
<a href="#page-setup-note">Important note on page dimensions and papersize</a> |
| 286 |
for information on ensuring groff respects your PAGEWIDTH. |
| 287 |
</p> |
| 288 |
|
| 289 |
<!-- -PAGELENGTH- --> |
| 290 |
|
| 291 |
<div class="macro-id-overline"> |
| 292 |
<h3 id="pagelength" class="macro-id">Page length</h3> |
| 293 |
</div> |
| 294 |
|
| 295 |
<div class="box-macro-args"> |
| 296 |
Macro: <b>PAGELENGTH</b> <kbd class="macro-args"><length of printer sheet></kbd> |
| 297 |
</div> |
| 298 |
<p class="requires"> |
| 299 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 300 |
</p> |
| 301 |
|
| 302 |
<p> |
| 303 |
PAGELENGTH tells mom how long your printer sheet is. It works just |
| 304 |
like PAGEWIDTH. Therefore, to tell mom your printer sheet is 11 |
| 305 |
inches long, you enter |
| 306 |
<br/> |
| 307 |
<span class="pre-in-pp"> |
| 308 |
.PAGELENGTH 11i |
| 309 |
</span> |
| 310 |
Please read the |
| 311 |
<a href="#page-setup-note">Important note on page dimensions and papersize</a> |
| 312 |
for information on ensuring groff respects your PAGELENGTH. |
| 313 |
</p> |
| 314 |
|
| 315 |
<!-- -PAPER- --> |
| 316 |
|
| 317 |
<div class="macro-id-overline"> |
| 318 |
<h3 id="paper" class="macro-id">Paper</h3> |
| 319 |
</div> |
| 320 |
|
| 321 |
<div class="box-macro-args"> |
| 322 |
Macro: <b>PAPER</b> <kbd class="macro-args"><paper type> [ LANDSCAPE ]</kbd> |
| 323 |
</div> |
| 324 |
|
| 325 |
<p> |
| 326 |
PAPER provides a convenient way to set the dimensions for some |
| 327 |
common printer sheet sizes. <kbd><paper type></kbd> can |
| 328 |
be one of: |
| 329 |
<br/> |
| 330 |
<span class="pre-in-pp"> |
| 331 |
LETTER EXECUTIVE |
| 332 |
LEGAL 10x14 |
| 333 |
STATEMENT A3 |
| 334 |
TABLOID A4 |
| 335 |
LEDGER A5 |
| 336 |
FOLIO B4 |
| 337 |
QUARTO B5 |
| 338 |
</span> |
| 339 |
Say, for example, you have A4-sized sheets in your printer. It’s |
| 340 |
shorter (and easier) to enter |
| 341 |
<br/> |
| 342 |
<span class="pre-in-pp"> |
| 343 |
.PAPER A4 |
| 344 |
</span> |
| 345 |
than to remember the correct dimensions and enter |
| 346 |
<br/> |
| 347 |
<span class="pre-in-pp"> |
| 348 |
.PAGEWIDTH 595p |
| 349 |
.PAGELENGTH 842p |
| 350 |
</span> |
| 351 |
If you’d like landscape orientation for your paper type, |
| 352 |
pass PAPER the <kbd>LANDSCAPE</kbd> argument. |
| 353 |
</p> |
| 354 |
|
| 355 |
<p> |
| 356 |
Please read the |
| 357 |
<a href="#page-setup-note">Important note on page dimensions and papersize</a> |
| 358 |
for information on ensuring groff respects your PAPER size. |
| 359 |
</p> |
| 360 |
|
| 361 |
<div class="box-important"> |
| 362 |
<p class="tip"> |
| 363 |
<span class="important">Important:</span> If you need PAPER, |
| 364 |
it should always be placed at the very top of your file. |
| 365 |
</p> |
| 366 |
</div> |
| 367 |
|
| 368 |
<!-- -L_MARGIN- --> |
| 369 |
|
| 370 |
<div class="macro-id-overline"> |
| 371 |
<h3 id="l-margin" class="macro-id">Left margin</h3> |
| 372 |
</div> |
| 373 |
|
| 374 |
<div class="box-macro-args"> |
| 375 |
Macro: <b>L_MARGIN</b> <kbd class="macro-args"><left margin></kbd> |
| 376 |
</div> |
| 377 |
<p class="requires"> |
| 378 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 379 |
</p> |
| 380 |
|
| 381 |
<p> |
| 382 |
L_MARGIN establishes the distance from the left edge of the printer |
| 383 |
sheet at which you want your type to start. |
| 384 |
<a href="#il">Left indents</a> |
| 385 |
and |
| 386 |
<a href="#tabs">tabs</a> |
| 387 |
are calculated from the value you pass to L_MARGIN. |
| 388 |
If you use the macros |
| 389 |
<a href="#pagewidth">PAGEWIDTH</a> |
| 390 |
or |
| 391 |
<a href="#paper">PAPER</a> |
| 392 |
without setting L_MARGIN, mom automatically sets the left margin to |
| 393 |
1 inch. |
| 394 |
</p> |
| 395 |
|
| 396 |
<p> |
| 397 |
A unit of measure is required and decimal fractions are allowed. |
| 398 |
Therefore, to set the left margin at 3 picas (1/2 inch), you’d |
| 399 |
enter either |
| 400 |
<br/> |
| 401 |
<span class="pre-in-pp"> |
| 402 |
.L_MARGIN 3P |
| 403 |
</span> |
| 404 |
or |
| 405 |
<span class="pre-in-pp"> |
| 406 |
.L_MARGIN .5i |
| 407 |
</span> |
| 408 |
</p> |
| 409 |
|
| 410 |
<div class="box-tip"> |
| 411 |
<p class="tip"> |
| 412 |
<span class="note">Note:</span> L_MARGIN behaves in a special way |
| 413 |
when you’re using the |
| 414 |
<a href="docprocessing.html#docprocessing">document processing macros</a>. |
| 415 |
See |
| 416 |
<a href="docprocessing.html#behaviour">Typesetting macros during document processing</a> |
| 417 |
for an explanation. |
| 418 |
</p> |
| 419 |
</div> |
| 420 |
|
| 421 |
<!-- -R_MARGIN- --> |
| 422 |
|
| 423 |
<div class="macro-id-overline"> |
| 424 |
<h3 id="r-margin" class="macro-id">Right margin</h3> |
| 425 |
</div> |
| 426 |
|
| 427 |
<div class="box-macro-args"> |
| 428 |
Macro: <b>R_MARGIN</b> <kbd class="macro-args"><right margin></kbd> |
| 429 |
</div> |
| 430 |
<p class="requires"> |
| 431 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 432 |
</p> |
| 433 |
|
| 434 |
<div class="box-important"> |
| 435 |
<p class="tip"> |
| 436 |
<span class="important">IMPORTANT:</span> R_MARGIN, if used, must |
| 437 |
come after |
| 438 |
<a href="#paper">PAPER</a>, |
| 439 |
<a href="#pagewidth">PAGEWIDTH</a>, |
| 440 |
<a href="#l-margin">L_MARGIN</a> |
| 441 |
and/or |
| 442 |
<a href="#page">PAGE</a> |
| 443 |
(if a right margin isn’t given to PAGE). The reason is that |
| 444 |
R_MARGIN calculates line length from the overall page dimensions and |
| 445 |
the left margin. Mom can’t make the calculation if |
| 446 |
she doesn’t know the page width and the left margin. |
| 447 |
</p> |
| 448 |
</div> |
| 449 |
|
| 450 |
<p> |
| 451 |
R_MARGIN establishes the amount of space you want between the end |
| 452 |
of typeset lines and the right hand edge of the printer sheet. In |
| 453 |
other words, it sets the line length. R_MARGIN requires a unit of |
| 454 |
measure. Decimal fractions are allowed. |
| 455 |
</p> |
| 456 |
|
| 457 |
<p> |
| 458 |
The line length macro |
| 459 |
(<a href="#linelength">LL</a>) |
| 460 |
can be used in place of R_MARGIN. In either case, the last one |
| 461 |
invoked sets the line length. The choice of which to use is up |
| 462 |
to you. In some instances, you may find it easier to think of a |
| 463 |
section of type as having a right margin. In others, giving a line |
| 464 |
length may make more sense. |
| 465 |
</p> |
| 466 |
|
| 467 |
<p> |
| 468 |
For example, if you’re setting a page of type you know should |
| 469 |
have 6-pica margins left and right, it makes sense to enter a left |
| 470 |
and right margin, like this: |
| 471 |
<br/> |
| 472 |
<span class="pre-in-pp"> |
| 473 |
.L_MARGIN 6P |
| 474 |
.R_MARGIN 6P |
| 475 |
</span> |
| 476 |
That way, you don’t have to worry about calculating the line |
| 477 |
length. On the other hand, if you know the line length for a patch |
| 478 |
of type should be 17 picas and 3 points, entering the line length |
| 479 |
with LL is much easier than calculating the right margin, e.g. |
| 480 |
<br/> |
| 481 |
<span class="pre-in-pp"> |
| 482 |
.LL 17P+3p |
| 483 |
</span> |
| 484 |
If you use the macros |
| 485 |
<a href="#page">PAGE</a>, |
| 486 |
<a href="#pagewidth">PAGEWIDTH</a> |
| 487 |
or |
| 488 |
<a href="#paper">PAPER</a> |
| 489 |
without invoking <kbd>.R_MARGIN</kbd> afterwards, mom automatically |
| 490 |
sets R_MARGIN to 1 inch. If you set a line length after these |
| 491 |
macros (with |
| 492 |
<a href="#linelength">LL</a>), |
| 493 |
the line length calculated by R_MARGIN is, of course, overridden. |
| 494 |
</p> |
| 495 |
|
| 496 |
<div class="box-tip"> |
| 497 |
<p class="tip"> |
| 498 |
<span class="note">Note:</span> R_MARGIN behaves in a special way when you’re |
| 499 |
using the |
| 500 |
<a href="docprocessing.html#docprocessing">document processing macros</a>. |
| 501 |
See |
| 502 |
<a href="docprocessing.html#behaviour">Typesetting macros during document processing</a> |
| 503 |
for an explanation. |
| 504 |
</p> |
| 505 |
</div> |
| 506 |
|
| 507 |
<!-- -T_MARGIN- --> |
| 508 |
|
| 509 |
<div class="macro-id-overline"> |
| 510 |
<h3 id="t-margin" class="macro-id">Top margin</h3> |
| 511 |
</div> |
| 512 |
|
| 513 |
<div class="box-macro-args"> |
| 514 |
Macro: <b>T_MARGIN</b> <kbd class="macro-args"><top margin></kbd> |
| 515 |
</div> |
| 516 |
<p class="requires"> |
| 517 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 518 |
</p> |
| 519 |
|
| 520 |
<p> |
| 521 |
T_MARGIN establishes the distance from the top of the printer |
| 522 |
sheet at which you want your type to start. It requires a unit of |
| 523 |
measure, and decimal fractions are allowed. To set a top margin of |
| 524 |
2-1/2 centimetres, you’d enter |
| 525 |
<br/> |
| 526 |
<span class="pre-in-pp"> |
| 527 |
.T_MARGIN 2.5c |
| 528 |
</span> |
| 529 |
T_MARGIN calculates the vertical position of the first line of type |
| 530 |
on a page by treating the top edge of the printer sheet as a |
| 531 |
<a href="definitions.html#baseline">baseline</a>. Therefore, |
| 532 |
<br/> |
| 533 |
<span class="pre-in-pp"> |
| 534 |
.T_MARGIN 1.5i |
| 535 |
</span> |
| 536 |
puts the baseline of the first line of type 1-1/2 inches beneath the |
| 537 |
top of the page. |
| 538 |
</p> |
| 539 |
|
| 540 |
<div class="box-tip"> |
| 541 |
<p class="tip"> |
| 542 |
<span class="note">Note:</span> T_MARGIN means something slightly |
| 543 |
different when you’re using the |
| 544 |
<a href="docprocessing.html#docprocessing">document processing macros</a>. |
| 545 |
See |
| 546 |
<a href="docprocessing.html#tb-margins">Top and bottom margins in document processing</a> |
| 547 |
for an explanation. |
| 548 |
</p> |
| 549 |
</div> |
| 550 |
|
| 551 |
<div class="box-important"> |
| 552 |
<p class="tip"> |
| 553 |
<span class="important">IMPORTANT:</span> T_MARGIN does two |
| 554 |
things: it establishes the top margin for pages that come after |
| 555 |
it <i>and</i> it moves to that position on the current page. |
| 556 |
Therefore, T_MARGIN should only be used at the top of a file (prior |
| 557 |
to entering text) or after |
| 558 |
<a href="#newpage">NEWPAGE</a>, |
| 559 |
like this: |
| 560 |
<br/> |
| 561 |
<span class="pre-in-pp" style="margin-bottom: -1em;"> |
| 562 |
.NEWPAGE |
| 563 |
.T_MARGIN 6P |
| 564 |
<text> |
| 565 |
</span> |
| 566 |
</p> |
| 567 |
</div> |
| 568 |
|
| 569 |
<!-- -B_MARGIN- --> |
| 570 |
|
| 571 |
<div class="macro-id-overline"> |
| 572 |
<h3 id="b-margin" class="macro-id">Bottom margin</h3> |
| 573 |
</div> |
| 574 |
|
| 575 |
<div class="box-macro-args"> |
| 576 |
Macro: <b>B_MARGIN</b> <kbd class="macro-args"><bottom margin></kbd> |
| 577 |
</div> |
| 578 |
<p class="requires"> |
| 579 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 580 |
</p> |
| 581 |
|
| 582 |
<p> |
| 583 |
B_MARGIN sets a nominal position at the bottom of the page beyond |
| 584 |
which you don’t want your type to go. When the bottom margin |
| 585 |
is reached, mom starts a new page. B_MARGIN requires a unit of |
| 586 |
measure. Decimal fractions are allowed. To set a nominal bottom |
| 587 |
margin of 3/4 inch, enter |
| 588 |
<br/> |
| 589 |
<span class="pre-in-pp"> |
| 590 |
.B_MARGIN .75i |
| 591 |
</span> |
| 592 |
Obviously, if you haven’t spaced the type on your pages so |
| 593 |
that the last lines fall perfectly at the bottom margin, the margin |
| 594 |
will vary from page to page. Usually, but not always, the last line |
| 595 |
of type that fits on a page before the bottom margin causes mom to |
| 596 |
start a new page. |
| 597 |
</p> |
| 598 |
|
| 599 |
<p> |
| 600 |
Occasionally, owing to a peculiarity in groff, an extra line will |
| 601 |
fall below the nominal bottom margin. If you’re using the |
| 602 |
<a href="docprocessing.html#docprocessing">document processing macros</a>, |
| 603 |
this is unlikely to happen; the document processing macros are very |
| 604 |
hard-nosed about aligning bottom margins. |
| 605 |
</p> |
| 606 |
|
| 607 |
<div class="box-tip"> |
| 608 |
<p class="tip"> |
| 609 |
<span class="note">Note:</span> The meaning of B_MARGIN is slightly |
| 610 |
different when you’re using the document processing macros. |
| 611 |
See |
| 612 |
<a href="docprocessing.html#tb-margins">Top and bottom margins in document processing</a> |
| 613 |
for an explanation. |
| 614 |
</p> |
| 615 |
</div> |
| 616 |
|
| 617 |
<!-- -PAGE- --> |
| 618 |
|
| 619 |
<div class="macro-id-overline"> |
| 620 |
<h3 id="page" class="macro-id">Page</h3> |
| 621 |
</div> |
| 622 |
|
| 623 |
<div class="box-macro-args" style="overflow: auto;"> |
| 624 |
Macro: <b>PAGE</b> <kbd class="macro-args"><width> [ <length> [ <lm> [ <rm> [ <tm> [ <bm> ] ] ] ] ]</kbd> |
| 625 |
</div> |
| 626 |
<p class="requires"> |
| 627 |
• All arguments require a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 628 |
</p> |
| 629 |
|
| 630 |
<div class="box-important"> |
| 631 |
<p class="tip"> |
| 632 |
<span class="important">IMPORTANT:</span> If you’re using the |
| 633 |
<a href="docprocessing.html#docprocessing">document processing macros</a>, |
| 634 |
PAGE must come after |
| 635 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a>. |
| 636 |
Otherwise, it should go at the top of a document, prior to any |
| 637 |
text. And remember, when you’re using the document processing |
| 638 |
macros, top margin and bottom margin mean something slightly |
| 639 |
different than when you’re using just the typesetting macros |
| 640 |
(see |
| 641 |
<a href="docprocessing.html#tb-margins">Top and bottom margins in document processing</a>). |
| 642 |
</p> |
| 643 |
</div> |
| 644 |
|
| 645 |
<p> |
| 646 |
PAGE lets you establish paper dimensions and page margins with a |
| 647 |
single macro. The only required argument is page width. The rest |
| 648 |
are optional, but they must appear in order and you can’t |
| 649 |
skip over any. <kbd><lm>, <rm>, <tm></kbd>, and |
| 650 |
<kbd><bm></kbd> refer to the left, right, top and bottom |
| 651 |
margins respectively. |
| 652 |
</p> |
| 653 |
|
| 654 |
<p> |
| 655 |
Assuming your page dimensions are 11 inches by 17 inches, and |
| 656 |
that’s all you want to set, enter |
| 657 |
<br/> |
| 658 |
<span class="pre-in-pp"> |
| 659 |
.PAGE 11i 17i |
| 660 |
</span> |
| 661 |
If you want to set the left margin as well, say, at 1 inch, PAGE |
| 662 |
would look like this: |
| 663 |
<br/> |
| 664 |
<span class="pre-in-pp"> |
| 665 |
.PAGE 11i 17i 1i |
| 666 |
</span> |
| 667 |
Now suppose you also want to set the top margin, say, at 1-1/2 |
| 668 |
inches. <tm> comes after <rm> in the optional arguments, |
| 669 |
but you can’t skip over any arguments, therefore to set the |
| 670 |
top margin, you must also give a right margin. The PAGE macro would |
| 671 |
look like this: |
| 672 |
<br/> |
| 673 |
<span class="pre-in-pp"> |
| 674 |
.PAGE 11i 17i 1i 1i 1.5i |
| 675 |
| | |
| 676 |
required right---+ +---top margin |
| 677 |
margin |
| 678 |
</span> |
| 679 |
Clearly, PAGE is best used when you want a convenient way to tell |
| 680 |
mom just the dimensions of your printer sheet (width and length), or |
| 681 |
when you want to tell her everything about the page (dimensions and |
| 682 |
all the margins), for example |
| 683 |
<br/> |
| 684 |
<span class="pre-in-pp"> |
| 685 |
.PAGE 8.5i 11i 45p 45p 45p 45p |
| 686 |
</span> |
| 687 |
This sets up an 8-1/2 by 11 inch page with margins of 45 points |
| 688 |
(5/8-inch) all around. |
| 689 |
</p> |
| 690 |
|
| 691 |
<p> |
| 692 |
Additionally, if you are not using the |
| 693 |
<a href="docprecessing.html">document processing macros</a> |
| 694 |
and invoke PAGE with a top margin argument, any macro you invoke |
| 695 |
after PAGE will likely move the |
| 696 |
<a href="definitions.html#baseline">baseline</a> |
| 697 |
of the first line of text down by one linespace. To compensate, do |
| 698 |
<br/> |
| 699 |
<span class="pre-in-pp"> |
| 700 |
.RLD 1v |
| 701 |
</span> |
| 702 |
immediately before entering any text. |
| 703 |
</p> |
| 704 |
|
| 705 |
<p> |
| 706 |
Please read the |
| 707 |
<a href="#page-setup-note">Important note on page dimensions and papersize</a> |
| 708 |
for information on ensuring groff respects your PAGE dimensions and |
| 709 |
margins. |
| 710 |
</p> |
| 711 |
|
| 712 |
<!-- -NEWPAGE- --> |
| 713 |
|
| 714 |
<div class="macro-id-overline"> |
| 715 |
<h3 id="newpage" class="macro-id">Start a new page</h3> |
| 716 |
</div> |
| 717 |
|
| 718 |
<div class="box-macro-args"> |
| 719 |
Macro: <b>NEWPAGE</b> |
| 720 |
</div> |
| 721 |
|
| 722 |
<p> |
| 723 |
Whenever you want to start a new page, use NEWPAGE, by itself with |
| 724 |
no argument. Mom will finish up processing the current page and move |
| 725 |
you to the top of a new one (subject to the top margin set with |
| 726 |
<a href="#t-margin">T_MARGIN</a>). |
| 727 |
</p> |
| 728 |
|
| 729 |
<div class="rule-short" style="margin-bottom: 24px;"><hr/></div> |
| 730 |
|
| 731 |
<!-- ==================================================================== --> |
| 732 |
|
| 733 |
<h2 id="basic-params-intro" class="macro-group">Basic typesetting parameters</h2> |
| 734 |
|
| 735 |
<p> |
| 736 |
The basic typesetting parameter macros deal with fundamental |
| 737 |
requirements for setting type: family, font, point size, leading, |
| 738 |
and line length. |
| 739 |
</p> |
| 740 |
|
| 741 |
<p> |
| 742 |
If you’re using the typesetting macros only, the arguments |
| 743 |
passed to the basic parameter macros remain in effect until |
| 744 |
you change them. The document processing macros handle things |
| 745 |
differently. See |
| 746 |
<a href="docprocessing.html#behaviour">Typesetting macros during document processing</a> |
| 747 |
for an explanation. |
| 748 |
</p> |
| 749 |
|
| 750 |
<div id="index-basic" class="macro-list-container"> |
| 751 |
<h3 class="macro-list">Basic parameter macros</h3> |
| 752 |
<ul class="macro-list"> |
| 753 |
<li><a href="#family">FAMILY</a> – type family</li> |
| 754 |
<li><a href="#font">FT</a> – font</li> |
| 755 |
<li><a href="#fallback-font">FALLBACK_FONT</a> – for invalid fonts</li> |
| 756 |
<li><a href="#ps">PT_SIZE</a> – point size of type</li> |
| 757 |
<li><a href="#leading">LS</a> – line spacing/leading</li> |
| 758 |
<li><a href="#autolead">AUTOLEAD</a> – automatic line spacing</li> |
| 759 |
<li><a href="#linelength">LL</a> – line length</li> |
| 760 |
</ul> |
| 761 |
</div> |
| 762 |
|
| 763 |
<!-- -FAMILY- --> |
| 764 |
|
| 765 |
<div class="macro-id-overline"> |
| 766 |
<h3 id="family" class="macro-id">Type family</h3> |
| 767 |
</div> |
| 768 |
|
| 769 |
<div class="box-macro-args"> |
| 770 |
Macro: <b>FAMILY</b> <kbd class="macro-args"><family></kbd> |
| 771 |
</div> |
| 772 |
<p class="alias"> |
| 773 |
<i>Alias:</i> <b>FAM</b> |
| 774 |
</p> |
| 775 |
|
| 776 |
<p> |
| 777 |
FAMILY takes one argument: the name of the |
| 778 |
<a href="definitions.html#family">family</a> |
| 779 |
you want. Groff comes with a small set of basic families, each |
| 780 |
identified by a 1-, 2-or 3-letter mnemonic. The standard families |
| 781 |
are: |
| 782 |
<br/> |
| 783 |
<span class="pre-in-pp"> |
| 784 |
A = Avant Garde |
| 785 |
BM = Bookman |
| 786 |
H = Helvetica |
| 787 |
HN = Helvetica Narrow |
| 788 |
N = New Century Schoolbook |
| 789 |
P = Palatino |
| 790 |
T = Times Roman |
| 791 |
ZCM = Zapf Chancery |
| 792 |
</span> |
| 793 |
The argument you pass to FAMILY is the identifier at left, above. |
| 794 |
For example, if you want Helvetica, enter |
| 795 |
<br/> |
| 796 |
<span class="pre-in-pp"> |
| 797 |
.FAMILY H |
| 798 |
</span> |
| 799 |
</p> |
| 800 |
|
| 801 |
<div class="box-tip" style="margin-top: -1em;"> |
| 802 |
<p class="tip-top"> |
| 803 |
<span class="note">Note:</span> The font macro |
| 804 |
(<a href="#font">FT</a>) |
| 805 |
lets you specify both the type family and the desired font with |
| 806 |
a single macro. While this saves a few keystrokes, I recommend |
| 807 |
using FAMILY for family, and FT for font, except where doing |
| 808 |
so is genuinely inconvenient. <kbd>ZCM</kbd>, for example, |
| 809 |
only exists in one style: Italic (<kbd>I</kbd>). Therefore, |
| 810 |
<kbd>.FT ZCMI</kbd> makes more sense than setting the family to |
| 811 |
<kbd>ZCM</kbd>, then setting the font to <kbd>I</kbd>. |
| 812 |
</p> |
| 813 |
|
| 814 |
<p> |
| 815 |
Furthermore, if you need to access a character from groff's Zapf |
| 816 |
Dingbats font directly, use <kbd>.FT ZD</kbd> or the |
| 817 |
<a href="definitions.html#inlines">inline escape</a> |
| 818 |
<kbd>\f[ZD]</kbd>. Commonly-used dingbats are |
| 819 |
available without changing to the ZD font by using groff's |
| 820 |
pre-defined character escapes, e.g. <kbd>\[rh]</kbd> for a pointing |
| 821 |
right hand; see <kbd>man groff_char</kbd> for a complete list. |
| 822 |
Dingbats that have not been pre-defined must be accessed with the |
| 823 |
<kbd>\N</kbd> escape. For example, <kbd>\f[ZD]\N'37'</kbd> prints |
| 824 |
the (undefined) telephone dingbat. |
| 825 |
</p> |
| 826 |
|
| 827 |
<p id="fam-add-note" class="tip-bottom"> |
| 828 |
<span class="additional-note">Additional note:</span> |
| 829 |
If you are running a version of groff lower than 1.19.2, you must |
| 830 |
follow all FAMILY requests with a FT request, otherwise mom will set |
| 831 |
all type up to the next FT request in the |
| 832 |
<a href="#fallback-font">fallback font</a>. |
| 833 |
</p> |
| 834 |
</div> |
| 835 |
|
| 836 |
<p style="margin-top: -.5em;"> |
| 837 |
If you are running a version of groff greater than or |
| 838 |
equal to 1.19.2, when you invoke the FAMILY macro, mom |
| 839 |
“remembers” the font style (Roman, Italic, etc) |
| 840 |
currently in use (if the font style exists in the new family) and |
| 841 |
will continue to use the same font style in the new family. For |
| 842 |
example: |
| 843 |
<br/> |
| 844 |
<span class="pre-in-pp"> |
| 845 |
.FAMILY BM \" Bookman family |
| 846 |
.FT I \" Medium Italic |
| 847 |
<some text> \" Bookman Medium Italic |
| 848 |
.FAMILY H \" Helvetica family |
| 849 |
<more text> \" Helvetica Medium Italic |
| 850 |
</span> |
| 851 |
However, if the font style does not exist in the new family, mom |
| 852 |
will set all subsequent type in the |
| 853 |
<a href="#fallback-font">fallback font</a> |
| 854 |
(by default, Courier Medium Roman) until she encounters a |
| 855 |
<a href="#font">FT</a> |
| 856 |
request that’s valid for the family. For example, assuming |
| 857 |
you don’t have the font “Medium Condensed Roman” |
| 858 |
(mom extension “CD”) in the Helvetica family: |
| 859 |
<br/> |
| 860 |
<span class="pre-in-pp"> |
| 861 |
.FAMILY UN \" Univers family |
| 862 |
.FT CD \" Medium Condensed |
| 863 |
<some text> \" Univers Medium Condensed |
| 864 |
.FAMILY H \" Helvetica family |
| 865 |
<more text> \" Courier Medium Roman! |
| 866 |
</span> |
| 867 |
In the above example, you must follow |
| 868 |
<kbd>.FAMILY H</kbd> with a FT request |
| 869 |
that’s valid for Helvetica. |
| 870 |
</p> |
| 871 |
|
| 872 |
<p> |
| 873 |
Please see the Appendices, |
| 874 |
<a href="appendices.html#fonts">Adding fonts to groff</a>, |
| 875 |
for information on adding fonts and families to groff, as well as |
| 876 |
to see a list of the extensions mom provides to groff’s basic |
| 877 |
<b>R</b>, <b>I</b>, <b>B</b>, <b>BI</b> styles. |
| 878 |
</p> |
| 879 |
|
| 880 |
<div class="box-tip"> |
| 881 |
<p class="tip"> |
| 882 |
<span class="tip">Suggestion:</span> When adding |
| 883 |
families to groff, I recommend following the established standard |
| 884 |
for the naming families and fonts. For example, if you add the |
| 885 |
Garamond family, name the font files |
| 886 |
<br/> |
| 887 |
<span class="pre-in-pp"> |
| 888 |
GARAMONDR |
| 889 |
GARAMONDI |
| 890 |
GARAMONDB |
| 891 |
GARAMONDBI |
| 892 |
</span> |
| 893 |
GARAMOND then becomes a valid family name you can pass to FAMILY. |
| 894 |
(You could, of course, shorten GARAMOND to just G, or GD.) <b>R</b>, |
| 895 |
<b>I</b>, <b>B</b>, and <b>BI</b> after GARAMOND are the roman, |
| 896 |
italic, bold and bold-italic fonts respectively. |
| 897 |
</p> |
| 898 |
</div> |
| 899 |
|
| 900 |
<!-- -FT- --> |
| 901 |
|
| 902 |
<div class="macro-id-overline"> |
| 903 |
<h3 id="font" class="macro-id">FT</h3> |
| 904 |
</div> |
| 905 |
|
| 906 |
<div class="box-macro-args"> |
| 907 |
Macro: <b>FT</b> <kbd class="macro-args">R | I | B | BI | <any other valid font style></kbd> |
| 908 |
</div> |
| 909 |
<p class="alias"> |
| 910 |
<i>Alias:</i> <b>FONT</b> |
| 911 |
</p> |
| 912 |
|
| 913 |
<p> |
| 914 |
By default, groff permits FT to take one of four possible arguments |
| 915 |
specifying the desired font: |
| 916 |
<br/> |
| 917 |
<span class="pre-in-pp"> |
| 918 |
R = (Medium) Roman |
| 919 |
I = (Medium) Italic |
| 920 |
B = Bold (Roman) |
| 921 |
BI = Bold Italic |
| 922 |
</span> |
| 923 |
For example, if your |
| 924 |
<a href="definitions.html#family">family</a> |
| 925 |
is Helvetica, entering |
| 926 |
<br/> |
| 927 |
<span class="pre-in-pp"> |
| 928 |
.FT B |
| 929 |
</span> |
| 930 |
will give you the Helvetica bold |
| 931 |
<a href="definitions.html#font">font</a>. |
| 932 |
If your family were Palatino, you’d get the Palatino bold |
| 933 |
font. |
| 934 |
</p> |
| 935 |
|
| 936 |
<p> |
| 937 |
Mom considerably extends the range of arguments you can pass to FT, |
| 938 |
making it more convenient to add and access fonts of differing |
| 939 |
<a href="definitions.html#weight">weights</a> |
| 940 |
and |
| 941 |
<a href="definitions.html#shape">shapes</a> |
| 942 |
within the same family. Have a look |
| 943 |
<a href="appendices.html#style-extensions">here</a> |
| 944 |
for a list of the weight/style arguments mom allows. Be aware, |
| 945 |
though, that you must have the fonts, correctly installed and named, |
| 946 |
in order to use the arguments. (See |
| 947 |
<a href="appendices.html#fonts">Adding fonts to groff</a> |
| 948 |
for instructions and information.) Please also read the |
| 949 |
<a href="#fam-add-note">Additional note</a> |
| 950 |
found in the description of the FAMILY macro. |
| 951 |
</p> |
| 952 |
|
| 953 |
<p> |
| 954 |
How mom reacts to an invalid argument to FT depends on which version |
| 955 |
of groff you’re using. If your groff version is greater than |
| 956 |
or equal to 1.19.2, mom will issue a warning and, depending on how |
| 957 |
you’ve set up the |
| 958 |
<a href="#fallback-font">fallback font</a>, |
| 959 |
either continue processing using the fallback font, or abort |
| 960 |
(allowing you to correct the problem). If your groff version is |
| 961 |
less than 1.19.2, mom will silently continue processing, using |
| 962 |
either the fallback font or the font that was in effect prior to the |
| 963 |
invalid FT call. |
| 964 |
</p> |
| 965 |
|
| 966 |
<p> |
| 967 |
FT will also accept, as an argument, a full family+font name. For |
| 968 |
example, |
| 969 |
<br/> |
| 970 |
<span class="pre-in-pp"> |
| 971 |
.FT HB |
| 972 |
</span> |
| 973 |
will set subsequent type in Helvetica Bold. However, I strongly |
| 974 |
recommend keeping family and font separate except where doing so is |
| 975 |
genuinely inconvenient. |
| 976 |
</p> |
| 977 |
|
| 978 |
<p> |
| 979 |
For inline control of fonts, see |
| 980 |
<a href="inlines.html#inline-fonts-mom">Inline Escapes, font control</a>. |
| 981 |
</p> |
| 982 |
|
| 983 |
|
| 984 |
<!-- -FALLBACK_FONT- --> |
| 985 |
|
| 986 |
<div class="macro-id-overline"> |
| 987 |
<h3 id="fallback-font" class="macro-id">Fallback font</h3> |
| 988 |
</div> |
| 989 |
|
| 990 |
<div class="box-macro-args"> |
| 991 |
Macro: <b>FALLBACK_FONT</b> <kbd class="macro-args"><fallback font> [ ABORT | WARN ]</kbd> |
| 992 |
</div> |
| 993 |
|
| 994 |
<p> |
| 995 |
In the event that you pass an invalid argument to |
| 996 |
<a href="#font">.FAMILY</a> |
| 997 |
(i.e. a non-existent family), mom, by default, uses the fallback |
| 998 |
font, Courier Medium Roman (CR), in order to continue processing |
| 999 |
your file. |
| 1000 |
</p> |
| 1001 |
|
| 1002 |
<p> |
| 1003 |
If you’d prefer another fallback font, pass FALLBACK_FONT the |
| 1004 |
full family+font name of the font you’d like. For example, if |
| 1005 |
you’d rather the fallback font were Times Roman Medium Roman, |
| 1006 |
<br/> |
| 1007 |
<span class="pre-in-pp"> |
| 1008 |
.FALLBACK_FONT TR |
| 1009 |
</span> |
| 1010 |
would do the trick. |
| 1011 |
</p> |
| 1012 |
|
| 1013 |
<p> |
| 1014 |
Mom issues a warning whenever a font style set with |
| 1015 |
<a href="#font">FT</a> |
| 1016 |
does not exist, either because you haven’t registered the |
| 1017 |
style (see |
| 1018 |
<a href="appendices.html#register-style">here</a> |
| 1019 |
for instructions on registering styles), or because the font style |
| 1020 |
does not exist in the current family set with |
| 1021 |
<a href="#family">FAMILY</a>. |
| 1022 |
By default, mom then aborts, which allows you to correct the |
| 1023 |
problem. |
| 1024 |
</p> |
| 1025 |
|
| 1026 |
<p> |
| 1027 |
If you’d prefer that mom not abort on non-existent fonts, |
| 1028 |
but rather continue processing using a fallback font, you can pass |
| 1029 |
FALLBACK_FONT the argument <kbd>WARN</kbd>, either by itself, or in |
| 1030 |
conjunction with your chosen fallback font. |
| 1031 |
</p> |
| 1032 |
|
| 1033 |
<p> |
| 1034 |
Some examples of invoking FALLBACK_FONT: |
| 1035 |
</p> |
| 1036 |
|
| 1037 |
<ul class="no-enumerator" style="margin-left: -1em;"> |
| 1038 |
<li style="margin-top: -.5em;"> |
| 1039 |
<kbd>.FALLBACK_FONT WARN</kbd> |
| 1040 |
<br/> |
| 1041 |
mom will issue a warning whenever you try to access a non-existent |
| 1042 |
font but will continue processing your file with the default |
| 1043 |
fallback font, Courier Medium Roman. |
| 1044 |
<br/> |
| 1045 |
</li> |
| 1046 |
<li style="margin-top: .5em;"> |
| 1047 |
<kbd>.FALLBACK_FONT TR WARN</kbd> |
| 1048 |
<br/> |
| 1049 |
mom will issue a warning whenever you try to access a non-existent |
| 1050 |
font but will continue processing your file with a fallback font of |
| 1051 |
Times Roman Medium Roman; additionally, “TR” will be |
| 1052 |
the fallback font whenever you try to access a family that does not |
| 1053 |
exist. |
| 1054 |
</li> |
| 1055 |
<li style="margin-top: .5em;"> |
| 1056 |
<kbd>.FALLBACK_FONT TR ABORT</kbd> |
| 1057 |
<br/> |
| 1058 |
mom will abort whenever you try to access a non-existent font, and |
| 1059 |
will use the fallback font “TR” whenever you try to |
| 1060 |
access a family that does not exist. |
| 1061 |
</li> |
| 1062 |
</ul> |
| 1063 |
|
| 1064 |
<p> |
| 1065 |
If, for some reason, you want to revert to ABORT, just enter |
| 1066 |
<kbd>.FALLBACK_FONT ABORT</kbd> and mom will once again abort |
| 1067 |
on font errors. |
| 1068 |
</p> |
| 1069 |
|
| 1070 |
<!-- -PT_SIZE- --> |
| 1071 |
|
| 1072 |
<div class="macro-id-overline"> |
| 1073 |
<h3 id="ps" class="macro-id">Point size of type</h3> |
| 1074 |
</div> |
| 1075 |
|
| 1076 |
<div class="box-macro-args"> |
| 1077 |
Macro: <b>PT_SIZE</b> <kbd class="macro-args"><size of type in points></kbd> |
| 1078 |
</div> |
| 1079 |
<p class="requires"> |
| 1080 |
• Does not require a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 1081 |
</p> |
| 1082 |
|
| 1083 |
<p> |
| 1084 |
PT_SIZE (Point Size) takes one argument: the size of type in points. |
| 1085 |
Unlike most other macros that establish the size or measure of |
| 1086 |
something, PT_SIZE does not require that you supply a unit of |
| 1087 |
measure since it’s a near universal convention that type size |
| 1088 |
is measured in points. Therefore, to change the type size to, say, |
| 1089 |
11 points, enter |
| 1090 |
<br/> |
| 1091 |
<span class="pre-in-pp"> |
| 1092 |
.PT_SIZE 11 |
| 1093 |
</span> |
| 1094 |
Point sizes may be fractional (e.g. 10.25 or 12.5). |
| 1095 |
</p> |
| 1096 |
|
| 1097 |
<p> |
| 1098 |
If you invoke PT_SIZE without an argument, it reverts to its former |
| 1099 |
value. For example, if your point size is 10 and you change it to |
| 1100 |
12 with <kbd>.PT_SIZE 12</kbd>, entering <kbd>.PT_SIZE</kbd> |
| 1101 |
(i.e. without an argument) resets the point size to 10. |
| 1102 |
</p> |
| 1103 |
|
| 1104 |
<p> |
| 1105 |
You can prepend a plus or a minus sign to the argument to PT_SIZE, |
| 1106 |
in which case the point size will be changed by + or - the original |
| 1107 |
value. For example, if the point size is 12, and you want 14, you |
| 1108 |
can do |
| 1109 |
<br/> |
| 1110 |
<span class="pre-in-pp"> |
| 1111 |
.PT_SIZE +2 |
| 1112 |
</span> |
| 1113 |
then later reset it to 12 with |
| 1114 |
<span class="pre-in-pp"> |
| 1115 |
.PT_SIZE -2 |
| 1116 |
</span> |
| 1117 |
or, more simply, just |
| 1118 |
<span class="pre-in-pp"> |
| 1119 |
.PT_SIZE |
| 1120 |
</span> |
| 1121 |
The size of type can also be changed inline. See |
| 1122 |
<a href="inlines.html#inline-size-mom">Inline Escapes, changing point size</a>. |
| 1123 |
</p> |
| 1124 |
|
| 1125 |
<!-- -LS- --> |
| 1126 |
|
| 1127 |
<div class="macro-id-overline"> |
| 1128 |
<h3 id="leading" class="macro-id">Line spacing / leading</h3> |
| 1129 |
</div> |
| 1130 |
|
| 1131 |
<div class="box-macro-args"> |
| 1132 |
Macro: <b>LS</b> <kbd class="macro-args"><distance between lines></kbd> |
| 1133 |
</div> |
| 1134 |
<p class="requires"> |
| 1135 |
• Does not require a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 1136 |
</p> |
| 1137 |
|
| 1138 |
<p> |
| 1139 |
LS (Line Space) takes one argument: the distance you want, typically |
| 1140 |
in points, from baseline to baseline of type. The argument may be |
| 1141 |
fractional (e.g. 12.25 or 14.5). Like PT_SIZE, LS does not require |
| 1142 |
a unit of measure, since |
| 1143 |
<a href="definitions.html#leading">leading</a> |
| 1144 |
is most often given in points. Therefore, to set the linespace to |
| 1145 |
14 points, you would enter |
| 1146 |
<br/> |
| 1147 |
<span class="pre-in-pp"> |
| 1148 |
.LS 14 |
| 1149 |
</span> |
| 1150 |
However, if you wish, you may specify a unit of measure by appending |
| 1151 |
it directly to the argument passed to LS. For example, if you want |
| 1152 |
a linespace of 1/4 of an inch, enter |
| 1153 |
<br/> |
| 1154 |
<span class="pre-in-pp"> |
| 1155 |
.LS .25i |
| 1156 |
</span> |
| 1157 |
You can prepend a plus or a minus sign to the argument to LS, in |
| 1158 |
which case the line spacing will be changed by + or - the original |
| 1159 |
value. For example, if the line spacing is 14 points, and you want |
| 1160 |
17 points, you can do |
| 1161 |
<br/> |
| 1162 |
<span class="pre-in-pp"> |
| 1163 |
.LS +3 |
| 1164 |
</span> |
| 1165 |
then later reset it to 14 points with |
| 1166 |
<br/> |
| 1167 |
<span class="pre-in-pp"> |
| 1168 |
.LS -3 |
| 1169 |
</span> |
| 1170 |
</p> |
| 1171 |
|
| 1172 |
<div class="box-tip"> |
| 1173 |
<p class="tip"> |
| 1174 |
<span class="experts">Experts:</span> LS should not be confused with |
| 1175 |
the groff primitive <kbd>.ls</kbd>. LS acts like |
| 1176 |
<kbd>.vs</kbd>. mom does not provide a macro analogous to |
| 1177 |
<kbd>.ls</kbd>. |
| 1178 |
</p> |
| 1179 |
</div> |
| 1180 |
|
| 1181 |
<!-- -AUTOLEAD- --> |
| 1182 |
|
| 1183 |
<div class="macro-id-overline"> |
| 1184 |
<h3 id="autolead" class="macro-id">Automatic line spacing</h3> |
| 1185 |
</div> |
| 1186 |
|
| 1187 |
<div class="box-macro-args"> |
| 1188 |
Macro: <b>AUTOLEAD</b> <kbd class="macro-args"><amount of automatic leading> [FACTOR]</kbd> |
| 1189 |
</div> |
| 1190 |
<p class="requires"> |
| 1191 |
• Does not require a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 1192 |
<br/> |
| 1193 |
(Please see |
| 1194 |
<a href="docprocessing.html#autolead">here</a> |
| 1195 |
for information on using |
| 1196 |
<span style="font-style: normal">AUTOLEAD</span> during document |
| 1197 |
processing.) |
| 1198 |
</p> |
| 1199 |
|
| 1200 |
<p> |
| 1201 |
Without the <kbd>FACTOR</kbd> argument, AUTOLEAD calculates the |
| 1202 |
linespace for you by adding its argument to the current point size |
| 1203 |
of type. All subsequent |
| 1204 |
<a href="#ps">PT_SIZE</a> |
| 1205 |
requests automatically update the linespacing by the autolead amount. |
| 1206 |
</p> |
| 1207 |
|
| 1208 |
<p> |
| 1209 |
Used in this way, AUTOLEAD does not require a unit of measure; |
| 1210 |
points is assumed. However, you may use an alternate unit of |
| 1211 |
measure by appending it to the argument. The argument may be a |
| 1212 |
decimal fraction (e.g. .5 or 2.75). |
| 1213 |
</p> |
| 1214 |
|
| 1215 |
<p> |
| 1216 |
As an example, if your current point size of type is 12, entering |
| 1217 |
<br/> |
| 1218 |
<span class="pre-in-pp"> |
| 1219 |
.AUTOLEAD 2 |
| 1220 |
</span> |
| 1221 |
changes the linespace to 14 points, regardless any linespacing |
| 1222 |
already in effect. From here on, every change to the size of type |
| 1223 |
(with PT_SIZE, not |
| 1224 |
<a href="definitions.html#inlines">inline</a>) |
| 1225 |
changes the linespace as well. If you decrease the type size to 9 |
| 1226 |
points, the leading decreases to 11 points. If you increase the |
| 1227 |
type size to 16 points, the leading increases to 18 points. |
| 1228 |
</p> |
| 1229 |
|
| 1230 |
<p> |
| 1231 |
Automatic updating of the linespacing continues until you enter a |
| 1232 |
“manual” line space value with |
| 1233 |
<a href="#leading">LS</a>. |
| 1234 |
</p> |
| 1235 |
|
| 1236 |
<div class="box-tip"> |
| 1237 |
<p class="tip"> |
| 1238 |
<span class="experts">Experts:</span> Please note that the groff |
| 1239 |
<a href="definitions.html#primitives">primitives</a>, |
| 1240 |
<kbd>.vs</kbd> and <kbd>.ps</kbd>, are unaffected by, and have no |
| 1241 |
effect, on AUTOLEAD. |
| 1242 |
</p> |
| 1243 |
</div> |
| 1244 |
|
| 1245 |
<p> |
| 1246 |
If you give AUTOLEAD the optional FACTOR argument, AUTOLEAD |
| 1247 |
calculates the line space as a factor of the |
| 1248 |
<a href="definitions.html#numericargument">numeric argument</a> |
| 1249 |
you gave AUTOLEAD. For example, if your point size is 12, |
| 1250 |
<br/> |
| 1251 |
<span class="pre-in-pp"> |
| 1252 |
.AUTOLEAD 1.125 FACTOR |
| 1253 |
</span> |
| 1254 |
sets the leading at 13.5 points. If you change the point size to |
| 1255 |
14, the leading automatically changes to 15.75 (14 x 1.125). |
| 1256 |
</p> |
| 1257 |
|
| 1258 |
<div class="box-tip"> |
| 1259 |
<p class="tip"> |
| 1260 |
<span class="note">Note:</span> There’s no need to prepend a |
| 1261 |
plus sign |
| 1262 |
(<kbd>+</kbd>) |
| 1263 |
to AUTOLEAD’s argument, although you may do so if you wish. |
| 1264 |
</p> |
| 1265 |
</div> |
| 1266 |
|
| 1267 |
<!-- -LL- --> |
| 1268 |
|
| 1269 |
<div class="macro-id-overline"> |
| 1270 |
<h3 id="linelength" class="macro-id">Line length</h3> |
| 1271 |
</div> |
| 1272 |
|
| 1273 |
<div class="box-macro-args"> |
| 1274 |
Macro: <b>LL</b> <kbd class="macro-args"><line length></kbd> |
| 1275 |
</div> |
| 1276 |
<p class="requires"> |
| 1277 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 1278 |
</p> |
| 1279 |
|
| 1280 |
<p> |
| 1281 |
LL (Line Length) takes one argument: the distance from the left |
| 1282 |
margin of the page to the maximum allowable point on the right at |
| 1283 |
which groff should place type. The line length, in other words, as |
| 1284 |
the macro suggests. |
| 1285 |
</p> |
| 1286 |
|
| 1287 |
<p> |
| 1288 |
LL requires a unit of measure. Therefore, to set the line length to |
| 1289 |
39 picas, you would enter |
| 1290 |
<br/> |
| 1291 |
<span class="pre-in-pp"> |
| 1292 |
.LL 39P |
| 1293 |
</span> |
| 1294 |
As with other macros that require a unit of measure, the argument to |
| 1295 |
LL may be fractional. For example, |
| 1296 |
<br/> |
| 1297 |
<span class="pre-in-pp"> |
| 1298 |
.LL 4.5i |
| 1299 |
</span> |
| 1300 |
sets the line length to 4-1/2 inches. |
| 1301 |
</p> |
| 1302 |
|
| 1303 |
<p> |
| 1304 |
Additionally, you may express a new line length relative to the |
| 1305 |
current line length by prepending a plus or minus sign to the |
| 1306 |
argument. Thus, if you wanted to increase the line length by 3 |
| 1307 |
<a href="definitions.html#picaspoints">points</a>, you could |
| 1308 |
do |
| 1309 |
<br/> |
| 1310 |
<span class="pre-in-pp"> |
| 1311 |
.LL +3p |
| 1312 |
</span> |
| 1313 |
This is especially handy when you want to “hang” |
| 1314 |
punctuation outside the right margin since you can pass |
| 1315 |
groff’s |
| 1316 |
<a href="inlines.html#inline-stringwidth-groff"><kbd>\w</kbd></a> |
| 1317 |
escape as the argument to LL, like this: |
| 1318 |
<br/> |
| 1319 |
<span class="pre-in-pp"> |
| 1320 |
.LL +\w'.'u |
| 1321 |
</span> |
| 1322 |
The above example increases the current line length by the width of |
| 1323 |
a period. Notice that you must append the |
| 1324 |
<a href="definitions.html#unitofmeasure">unit of measure</a>, |
| 1325 |
<b>u</b>, to the escape since LL requires a unit of measure. |
| 1326 |
</p> |
| 1327 |
|
| 1328 |
<div class="box-tip"> |
| 1329 |
<p class="tip"> |
| 1330 |
<span class="note">Note:</span> The right margin macro |
| 1331 |
<a href="#r-margin">(R_MARGIN)</a> |
| 1332 |
can also be used to set line length. |
| 1333 |
</p> |
| 1334 |
</div> |
| 1335 |
|
| 1336 |
<div class="rule-short"><hr/></div> |
| 1337 |
|
| 1338 |
<!-- ==================================================================== --> |
| 1339 |
|
| 1340 |
<h2 id="justification-intro" class="macro-group">Justification and quadding/breaking and joining lines</h2> |
| 1341 |
|
| 1342 |
<p> |
| 1343 |
The justification and quadding macros deal with how type aligns |
| 1344 |
along the left and right margins. In a nutshell, type either aligns |
| 1345 |
at the left margin, at the right margin, at both margins, or at |
| 1346 |
neither margin (centred). |
| 1347 |
</p> |
| 1348 |
|
| 1349 |
<p> |
| 1350 |
These macros also determine whether or not |
| 1351 |
<a href="definitions.html#inputline">input lines</a> |
| 1352 |
are joined and |
| 1353 |
<a href="definitions.html#filled">filled</a> |
| 1354 |
during output. |
| 1355 |
</p> |
| 1356 |
|
| 1357 |
<p> |
| 1358 |
Additionally, macros that deal with how to break |
| 1359 |
<a href="definitions.html#outputline">output lines</a> |
| 1360 |
are covered in this section, as is the |
| 1361 |
<a href="definitions.html#inlines">inline escape</a> |
| 1362 |
for joining input lines. |
| 1363 |
</p> |
| 1364 |
|
| 1365 |
<p> |
| 1366 |
You may encounter some words here that are unfamiliar. Refer to |
| 1367 |
<a href="definitions.html#typesetting">Typesetting terms</a> |
| 1368 |
and |
| 1369 |
<a href="definitions.html#groff">Groff terms</a> |
| 1370 |
for an explanation. |
| 1371 |
</p> |
| 1372 |
|
| 1373 |
<div id="index-justification" class="macro-list-container"> |
| 1374 |
<h3 class="macro-list">Justification and quadding/breaking and joining lines macros</h3> |
| 1375 |
<ul class="macro-list"> |
| 1376 |
<li>Fill modes |
| 1377 |
<ul style="list-style-type: none; margin-left: -1em;"> |
| 1378 |
<li><a href="#justify">JUSTIFY</a> – set lines justified</li> |
| 1379 |
<li><a href="#quad">QUAD</a> – set filled lines flush left, right or centred</li> |
| 1380 |
</ul></li> |
| 1381 |
<li>Nofill modes |
| 1382 |
<ul style="list-style-type: none; margin-left: -1em;"> |
| 1383 |
<li><a href="#lrc">LEFT</a> – set non-filled lines flush left</li> |
| 1384 |
<li><a href="#lrc">RIGHT</a> – set non-filled lines flush right</li> |
| 1385 |
<li><a href="#lrc">CENTER</a> – set non-filled lines centred</li> |
| 1386 |
</ul></li> |
| 1387 |
<li>Breaking lines |
| 1388 |
<ul style="list-style-type: none; margin-left: -1em;"> |
| 1389 |
<li><a href="#br">BR</a> – manually break an output line</li> |
| 1390 |
<li><a href="#el">EL</a> – break a line without advancing to the next output line</li> |
| 1391 |
<li><a href="#space">SPACE</a> – break a line and add space before the next output line</li> |
| 1392 |
<li><a href="#spread">SPREAD</a> – break and force-justify an output line</li> |
| 1393 |
</ul></li> |
| 1394 |
<li>Joining input lines in <a href="definitions.html#filled">nofill mode</a> |
| 1395 |
<ul style="list-style-type: none; margin-left: -1em;"> |
| 1396 |
<li><a href="#join">\c</a> inline escape</li> |
| 1397 |
</ul></li> |
| 1398 |
</ul> |
| 1399 |
</div> |
| 1400 |
|
| 1401 |
<!-- -JUSTIFY- --> |
| 1402 |
|
| 1403 |
<div class="macro-id-overline"> |
| 1404 |
<h3 id="justify" class="macro-id">Justify lines</h3> |
| 1405 |
</div> |
| 1406 |
|
| 1407 |
<div class="box-macro-args"> |
| 1408 |
Macro: <b>JUSTIFY</b> |
| 1409 |
</div> |
| 1410 |
|
| 1411 |
<p class="requires"> |
| 1412 |
(See |
| 1413 |
<a href="definitions.html#filled">fill mode</a> |
| 1414 |
for a definition of the difference between “fill” and |
| 1415 |
“no-fill” modes.) |
| 1416 |
</p> |
| 1417 |
|
| 1418 |
<p> |
| 1419 |
JUSTIFY doesn’t take an argument. |
| 1420 |
<a href="definitions.html#inputline">Input lines</a> |
| 1421 |
after JUSTIFY are |
| 1422 |
<a href="definitions.html#filled">filled</a> |
| 1423 |
and |
| 1424 |
<a href="definitions.html#just">justified</a> |
| 1425 |
upon output. |
| 1426 |
</p> |
| 1427 |
|
| 1428 |
<p> |
| 1429 |
To break lines and prevent them from being filled and justified, use |
| 1430 |
the |
| 1431 |
<a href="#br">BR</a> |
| 1432 |
macro. |
| 1433 |
</p> |
| 1434 |
|
| 1435 |
<!-- -QUAD- --> |
| 1436 |
|
| 1437 |
<div class="macro-id-overline"> |
| 1438 |
<h3 id="quad" class="macro-id">Quad lines left, right, or centre</h3> |
| 1439 |
</div> |
| 1440 |
|
| 1441 |
<div class="box-macro-args"> |
| 1442 |
Macro: <b>QUAD</b> <kbd class="macro-args">L | LEFT | R | RIGHT | C | CENTER | J | JUSTIFY</kbd> |
| 1443 |
</div> |
| 1444 |
|
| 1445 |
<p class="alias" style="margin-bottom: 0;"> |
| 1446 |
<i>Alias:</i> <b>FILL</b> |
| 1447 |
</p> |
| 1448 |
|
| 1449 |
<p class="requires">(See |
| 1450 |
<a href="definitions.html#filled">fill mode</a> |
| 1451 |
for a definition of the difference between “fill” and |
| 1452 |
“no-fill” modes.) |
| 1453 |
</p> |
| 1454 |
|
| 1455 |
<p> |
| 1456 |
QUAD takes one argument: the direction in which lines should be |
| 1457 |
<a href="definitions.html#quad">quadded</a>. |
| 1458 |
<a href="definitions.html#inputline">Input lines</a> |
| 1459 |
after QUAD are |
| 1460 |
<a href="definitions.html#filled">filled</a> |
| 1461 |
upon output. |
| 1462 |
</p> |
| 1463 |
|
| 1464 |
<p> |
| 1465 |
If <kbd>L</kbd> or <kbd>LEFT</kbd>, type is set flush along the left |
| 1466 |
margin. |
| 1467 |
</p> |
| 1468 |
|
| 1469 |
<p> |
| 1470 |
If <kbd>R</kbd> or <kbd>RIGHT</kbd>, type is set flush along the |
| 1471 |
right margin. |
| 1472 |
</p> |
| 1473 |
|
| 1474 |
<p> |
| 1475 |
If <kbd>C</kbd> or <kbd>CENTER</kbd> type is set centred on the |
| 1476 |
current line length. |
| 1477 |
</p> |
| 1478 |
|
| 1479 |
<p> |
| 1480 |
<kbd>J</kbd> and <kbd>JUSTIFY</kbd> justify text, and are |
| 1481 |
included as a convenience only. Obviously, if text is |
| 1482 |
justified, it isn’t quadded. <kbd>.QUAD J</kbd> and |
| 1483 |
<kbd>.QUAD JUSTIFY</kbd> have exactly the same effect as |
| 1484 |
<a href="#justify">JUSTIFY</a>. |
| 1485 |
</p> |
| 1486 |
|
| 1487 |
<p> |
| 1488 |
To break lines and prevent them from being filled, use the |
| 1489 |
<a href="#br">BR</a> |
| 1490 |
macro. |
| 1491 |
</p> |
| 1492 |
|
| 1493 |
<!-- -LEFT, RIGHT, CENTER- --> |
| 1494 |
|
| 1495 |
<div class="macro-id-overline"> |
| 1496 |
<h3 id="lrc" class="macro-id">Set lines flush left, right or centered in no-fill mode</h3> |
| 1497 |
</div> |
| 1498 |
|
| 1499 |
<div class="box-macro-args"> |
| 1500 |
Macro: <b>LEFT</b> |
| 1501 |
<br/> |
| 1502 |
Macro: <b>RIGHT</b> |
| 1503 |
<br/> |
| 1504 |
Macro: <b>CENTER</b> (alias CENTRE) |
| 1505 |
</div> |
| 1506 |
|
| 1507 |
<p class="requires"> |
| 1508 |
(See |
| 1509 |
<a href="definitions.html#filled">no-fill mode</a> |
| 1510 |
for a definition of the difference between “fill” and |
| 1511 |
“no-fill” modes.) |
| 1512 |
</p> |
| 1513 |
|
| 1514 |
<p> |
| 1515 |
LEFT, RIGHT, and CENTER let you enter text on a line for line basis |
| 1516 |
without having to use the |
| 1517 |
<a href="#br">BR</a> |
| 1518 |
macro after each line. Consider the following: |
| 1519 |
<br/> |
| 1520 |
<span class="pre-in-pp"> |
| 1521 |
.QUAD LEFT |
| 1522 |
So runs my dream, but what am I? |
| 1523 |
.BR |
| 1524 |
An infant crying in the night |
| 1525 |
.BR |
| 1526 |
An infant crying for the light |
| 1527 |
.BR |
| 1528 |
And with no language but a cry. |
| 1529 |
.BR |
| 1530 |
</span> |
| 1531 |
Because text after <kbd>.QUAD LEFT</kbd> is |
| 1532 |
<a href="definitions.html#filled">filled</a>, |
| 1533 |
you have to use the |
| 1534 |
<a href="#br">BR</a> |
| 1535 |
macro to prevent the lines from running together. Not only is this |
| 1536 |
annoying to type, it’s awkward to read in a text editor. Much |
| 1537 |
better to do |
| 1538 |
<br/> |
| 1539 |
<span class="pre-in-pp"> |
| 1540 |
.LEFT |
| 1541 |
So runs my dream, but what am I? |
| 1542 |
An infant crying in the night |
| 1543 |
An infant crying for the light |
| 1544 |
And with no language but a cry. |
| 1545 |
</span> |
| 1546 |
</p> |
| 1547 |
|
| 1548 |
<div class="box-important" style="margin-top: -.5em;"> |
| 1549 |
<p class="tip"> |
| 1550 |
<span class="important">IMPORTANT:</span> Because LEFT, |
| 1551 |
RIGHT, and CENTER are nofill modes, groff does not always respect the |
| 1552 |
current line length. |
| 1553 |
<a href="definitions.html#inputline">Input lines</a> |
| 1554 |
that run long may exceed it, or get broken in undesirable ways. |
| 1555 |
Therefore, when using these three macros, you should preview your |
| 1556 |
work to ensure that all lines fit as expected. |
| 1557 |
</p> |
| 1558 |
</div> |
| 1559 |
|
| 1560 |
<!-- -BR- --> |
| 1561 |
|
| 1562 |
<div class="macro-id-overline"> |
| 1563 |
<h3 id="br" class="macro-id">Manually break lines</h3> |
| 1564 |
</div> |
| 1565 |
|
| 1566 |
<div class="box-macro-args"> |
| 1567 |
Macro: <b>BR</b> |
| 1568 |
</div> |
| 1569 |
|
| 1570 |
<p> |
| 1571 |
When using |
| 1572 |
<a href="#justify">JUSTIFY</a> |
| 1573 |
or |
| 1574 |
<a href="#quad">QUAD</a>, |
| 1575 |
BR tells mom about partial lines that you want broken (as opposed to |
| 1576 |
<a href="definitions.html#filled">filled</a>). |
| 1577 |
Any partial |
| 1578 |
<a href="definitions.html#outputline">output line</a> |
| 1579 |
that immediately precedes BR will be |
| 1580 |
<a href="definitions.html#quad">quadded</a> |
| 1581 |
in the direction of the current quad, or set flush left if text is |
| 1582 |
<a href="definitions.html#just">justified</a>. |
| 1583 |
</p> |
| 1584 |
|
| 1585 |
<p> |
| 1586 |
Most of the time, you won’t need the BR macro. In fill modes, |
| 1587 |
mom tries to be sensible about where breaks are needed. If the |
| 1588 |
nature of a macro is such that under most circumstances you’d |
| 1589 |
expect a break, mom puts it in herself. Equally, in macros where a |
| 1590 |
break isn’t normally desirable, no break occurs. This means |
| 1591 |
text files don’t get cluttered with annoying BR’s. |
| 1592 |
</p> |
| 1593 |
|
| 1594 |
<div class="box-tip"> |
| 1595 |
<p class="tip-top"> |
| 1596 |
<span class="note">Note:</span> Lines of text in |
| 1597 |
<a href="definitions.html#filled">nofill mode</a> |
| 1598 |
never require a BR. Furthermore, in nofill mode, ALL macros cause a |
| 1599 |
break. If a break is not desired, use the |
| 1600 |
<a href="#join"><kbd>\c</kbd></a> |
| 1601 |
<a href="definitions.html#inlines">inline escape</a>. |
| 1602 |
</p> |
| 1603 |
|
| 1604 |
<p class="tip-bottom" style="margin-top: -1em"> |
| 1605 |
<span class="experts">Experts:</span> BR is an alias for |
| 1606 |
<kbd>.br</kbd>. You can use either, or mix |
| 1607 |
’n’ match with impunity. |
| 1608 |
</p> |
| 1609 |
</div> |
| 1610 |
|
| 1611 |
<!-- -EL- --> |
| 1612 |
|
| 1613 |
<div class="macro-id-overline"> |
| 1614 |
<h3 id="el" class="macro-id">Manually break a line without advancing on the page</h3> |
| 1615 |
</div> |
| 1616 |
|
| 1617 |
<div class="box-macro-args"> |
| 1618 |
Macro: <b>EL</b> |
| 1619 |
</div> |
| 1620 |
|
| 1621 |
<p class="requires"> |
| 1622 |
In nofill modes |
| 1623 |
<span style="font-style: normal;"> |
| 1624 |
(<a href="#left">LEFT</a>, |
| 1625 |
<a href="#right">RIGHT</a>, |
| 1626 |
<a href="#center">CENTER</a>) |
| 1627 |
</span> |
| 1628 |
you must terminate the line input preceding |
| 1629 |
<span style="font-style: normal;">EL</span> |
| 1630 |
with the |
| 1631 |
<span style="font-style: normal;"> |
| 1632 |
<kbd>\c</kbd> inline escape. |
| 1633 |
</span> |
| 1634 |
</p> |
| 1635 |
|
| 1636 |
<p style="margin-top: -.5em"> |
| 1637 |
<i><b>Suggestion:</b> If you find remembering whether to put in the</i> |
| 1638 |
<kbd>\c</kbd> |
| 1639 |
<i>bothersome, you may prefer to use the</i> |
| 1640 |
<a href="definitions.html#inlines">inline escape</a> |
| 1641 |
<i>alternative to</i> EL, |
| 1642 |
<a href="inlines.html#b"><kbd><span class="nobr">\*[B]</span></kbd></a>, |
| 1643 |
<i>which works consistently regardless of the fill mode. |
| 1644 |
</i>EL <i>does not work after the</i> |
| 1645 |
<a href="goodies.html#pad">PAD</a> |
| 1646 |
<i>macro. See</i> |
| 1647 |
<a href="goodies.html#nobreak"><kbd>.PAD NOBREAK</kbd></a> |
| 1648 |
<i>for the way around this.</i> |
| 1649 |
</p> |
| 1650 |
|
| 1651 |
<p id="el-example"> |
| 1652 |
EL (“<span style="text-decoration: underline;">E</span>nd <span style="text-decoration: underline;">L</span>ine”) |
| 1653 |
is conceptually equivalent to the notion of a carriage return with |
| 1654 |
no linefeed. Its function is simple: it breaks a line without |
| 1655 |
advancing on the page. As an example of where you might use it, |
| 1656 |
imagine that you’re working from marked-up copy. The markup |
| 1657 |
indicates 24 points of space between two given lines, but the |
| 1658 |
prevailing line spacing is 12.5 points. You may find it more |
| 1659 |
convenient to break the first line with EL and instruct mom to |
| 1660 |
advance 24 points to the next line instead of calculating the lead |
| 1661 |
that needs to be added to 12.5 to get 24. To demonstrate: |
| 1662 |
<br/> |
| 1663 |
<span class="pre-in-pp"> |
| 1664 |
.LEFT |
| 1665 |
.LS 12.5 |
| 1666 |
A line of text.\c |
| 1667 |
.EL |
| 1668 |
.ALD 24p |
| 1669 |
The next line of text. |
| 1670 |
</span> |
| 1671 |
may be more intuitive than |
| 1672 |
<br/> |
| 1673 |
<span class="pre-in-pp"> |
| 1674 |
.LEFT |
| 1675 |
.LS 12.5 |
| 1676 |
A line of text. |
| 1677 |
.ALD 11.5p |
| 1678 |
The next line of text. |
| 1679 |
</span> |
| 1680 |
The first example has the further advantage that should you wish to |
| 1681 |
change the prevailing line space but keep the 24 points lead, you |
| 1682 |
don’t have to recalculate the extra space. |
| 1683 |
</p> |
| 1684 |
|
| 1685 |
<p> |
| 1686 |
ALD in the above examples stands for |
| 1687 |
“<span style="text-decoration: underline;">A</span>dvance |
| 1688 |
<span style="text-decoration: underline;">L</span>ea<span style="text-decoration: underline;">D</span>”, |
| 1689 |
which is covered in the section |
| 1690 |
<a href="#aldrld-intro">Vertical movements</a>. |
| 1691 |
</p> |
| 1692 |
|
| 1693 |
<!-- -SP- --> |
| 1694 |
|
| 1695 |
<div class="macro-id-overline"> |
| 1696 |
<h3 id="space" class="macro-id">Break lines and add space between</h3> |
| 1697 |
</div> |
| 1698 |
|
| 1699 |
<div class="box-macro-args"> |
| 1700 |
Macro: <b>SPACE</b> <kbd class="macro-args">[<space to add between lines>]</kbd> |
| 1701 |
</div> |
| 1702 |
<p class="alias"> |
| 1703 |
<i>Alias:</i> <b>SP</b> |
| 1704 |
</p> |
| 1705 |
|
| 1706 |
<p> |
| 1707 |
SPACE breaks a line, just like |
| 1708 |
<a href="#br">BR</a>, |
| 1709 |
then adds space after the line. With no argument, it adds an extra |
| 1710 |
line space. If you pass it a numeric argument without supplying a |
| 1711 |
<a href="definitions.html#unitofmeasure">unit of measure</a>, |
| 1712 |
it advances that number of extra line spaces. For example: |
| 1713 |
<br/> |
| 1714 |
<span class="pre-in-pp"> |
| 1715 |
.SPACE |
| 1716 |
</span> |
| 1717 |
breaks the line then adds an extra linespace, whereas |
| 1718 |
<br/> |
| 1719 |
<span class="pre-in-pp"> |
| 1720 |
.SPACE 2 |
| 1721 |
</span> |
| 1722 |
breaks the line and adds two extra linespaces. |
| 1723 |
</p> |
| 1724 |
|
| 1725 |
<p> |
| 1726 |
If you supply a unit of measure, SPACE breaks the line and advances |
| 1727 |
the specified vertical distance, as in |
| 1728 |
<br/> |
| 1729 |
<span class="pre-in-pp"> |
| 1730 |
.SPACE 6p |
| 1731 |
</span> |
| 1732 |
which breaks the line and advances six points further. |
| 1733 |
</p> |
| 1734 |
|
| 1735 |
<div class="box-tip"> |
| 1736 |
<p class="tip-top"> |
| 1737 |
<span class="tip">Tip:</span> SPACE and |
| 1738 |
<a href="#ald">ALD</a> |
| 1739 |
can be used interchangeably (<kbd>.SPACE 6p</kbd> and |
| 1740 |
<kbd>.ALD 6p</kbd> are equivalent). However, ALD without an |
| 1741 |
argument does nothing, whereas SPACE without an argument adds an |
| 1742 |
extra line space. I recommend using SPACE when you want an extra |
| 1743 |
line space (or multiple thereof), and ALD whenever you want some |
| 1744 |
other value of space after a line. |
| 1745 |
</p> |
| 1746 |
|
| 1747 |
<p> |
| 1748 |
<span class="experts">Experts:</span> SPACE is an alias of |
| 1749 |
<kbd>.sp</kbd>. You can use either, or mix ’n’ match |
| 1750 |
with impunity. Because SPACE aliases <kbd>.sp</kbd>, it may be used |
| 1751 |
with groff’s absolute position modifier |
| 1752 |
“<kbd>|</kbd>” (the pipe |
| 1753 |
character) to move to a specified vertical location on the page. |
| 1754 |
Consult |
| 1755 |
<span class="pre-in-pp"> |
| 1756 |
info groff “Manipulating Spacing” |
| 1757 |
</span> |
| 1758 |
or, more simply, |
| 1759 |
<span class="pre-in-pp"> |
| 1760 |
info groff sp. |
| 1761 |
</span> |
| 1762 |
</p> |
| 1763 |
</div> |
| 1764 |
|
| 1765 |
<!-- -SPREAD- --> |
| 1766 |
|
| 1767 |
<div class="macro-id-overline"> |
| 1768 |
<h3 id="spread" class="macro-id">Break and force justify (spread) lines</h3> |
| 1769 |
</div> |
| 1770 |
|
| 1771 |
<div class="box-macro-args"> |
| 1772 |
Macro: <b>SPREAD</b> |
| 1773 |
</div> |
| 1774 |
|
| 1775 |
<p> |
| 1776 |
Sometimes, you need to break a line of |
| 1777 |
<a href="definitions.html#just">justified</a> |
| 1778 |
text and have it come out fully justified, not |
| 1779 |
<a href="definitions.html#quad">quadded</a> |
| 1780 |
left the way it would be with the |
| 1781 |
<a href="#br">BR</a> |
| 1782 |
macro. An example of where you’d do this would be when you |
| 1783 |
want to prevent a word at the end of a line from being hyphenated |
| 1784 |
(say, a proper name). SPREAD is the macro that lets you break the |
| 1785 |
line and have it came out fully justified. |
| 1786 |
</p> |
| 1787 |
|
| 1788 |
<div class="box-tip"> |
| 1789 |
<p class="tip"> |
| 1790 |
<span class="experts">Experts:</span> SPREAD is an alias for |
| 1791 |
<kbd>.brp</kbd> You can use either, or mix ’n’ match |
| 1792 |
with impunity. |
| 1793 |
</p> |
| 1794 |
</div> |
| 1795 |
|
| 1796 |
<!-- -JOIN- --> |
| 1797 |
|
| 1798 |
<div class="macro-id-overline"> |
| 1799 |
<h3 id="join" class="macro-id">Join input lines</h3> |
| 1800 |
</div> |
| 1801 |
|
| 1802 |
<div class="box-macro-args"> |
| 1803 |
Inline: <kbd class="macro-args">\c</kbd> |
| 1804 |
</div> |
| 1805 |
|
| 1806 |
<p> |
| 1807 |
Sometimes, especially when in one of the |
| 1808 |
<a href="definitions.html#filled">nofill modes</a>, |
| 1809 |
a macro will cause a break where you don’t want one. In order |
| 1810 |
to prevent this from happening (in other words, to join |
| 1811 |
<a href="definitions.html#inputline">input lines</a> |
| 1812 |
together, forming one |
| 1813 |
<a href="definitions.html#outputline">output line</a>), |
| 1814 |
use the groff |
| 1815 |
<a href="definitions.html#inlines">inline escape</a> |
| 1816 |
<kbd>\c</kbd> at the end of each input line to be |
| 1817 |
joined to another, like this: |
| 1818 |
<br/> |
| 1819 |
<span class="pre-in-pp"> |
| 1820 |
.LEFT |
| 1821 |
.FAMILY T |
| 1822 |
.FT R |
| 1823 |
Some lines of text to be \c |
| 1824 |
.FAMILY H |
| 1825 |
.FT B |
| 1826 |
joined \c |
| 1827 |
.FAMILY T |
| 1828 |
.FT R |
| 1829 |
together. |
| 1830 |
</span> |
| 1831 |
Upon output, the lines will be joined together to read |
| 1832 |
<br/> |
| 1833 |
<span class="pre-in-pp"> |
| 1834 |
Some lines of text to be joined together. |
| 1835 |
</span> |
| 1836 |
with the word “joined” in Helvetica bold. Note the |
| 1837 |
spaces before <kbd>\c</kbd>. Without them, the last three words of |
| 1838 |
the output line would read |
| 1839 |
<br/> |
| 1840 |
<span class="pre-in-pp"> |
| 1841 |
bejoinedtogether |
| 1842 |
</span> |
| 1843 |
Please also note that had the example been in one of the |
| 1844 |
<a href="definitions.html#filled">fill modes</a>, |
| 1845 |
there’d have been no need for the <kbd>\c</kbd>. |
| 1846 |
</p> |
| 1847 |
|
| 1848 |
<div class="box-tip"> |
| 1849 |
<p class="tip"> |
| 1850 |
<b>Addendum:</b> The example, above, is designed to demonstrate the |
| 1851 |
use of <kbd>\c</kbd>. An easier and more intuitive way |
| 1852 |
to accomplish the family/font change in the example would be with |
| 1853 |
the groff |
| 1854 |
<a href="definitions.html#inlines">inline escape</a>, |
| 1855 |
<kbd><a href="inlines.html#inline-fonts-groff">\f</a></kbd>, |
| 1856 |
like this: |
| 1857 |
<br/> |
| 1858 |
<span class="pre-in-pp" style="padding-bottom: 0px;"> |
| 1859 |
Some lines of text to be \f[HB]joined\*[PREV] together. |
| 1860 |
</span> |
| 1861 |
</p> |
| 1862 |
</div> |
| 1863 |
|
| 1864 |
<div class="rule-short" style="margin-bottom: 24px;"><hr/></div> |
| 1865 |
|
| 1866 |
<!-- ==================================================================== --> |
| 1867 |
|
| 1868 |
<h2 id="refinements-intro" class="macro-group">Typographic refinements</h2> |
| 1869 |
|
| 1870 |
<p> |
| 1871 |
The macros in this section help you tweak groff’s behaviour, |
| 1872 |
ensuring that your documents look typographically professional. |
| 1873 |
</p> |
| 1874 |
|
| 1875 |
<div id="index-refinements" class="macro-list-container"> |
| 1876 |
<h3 class="macro-list">Typographic refinements macros</h3> |
| 1877 |
|
| 1878 |
<ul class="macro-list"> |
| 1879 |
<li>Word and sentence spacing |
| 1880 |
<ul style="list-style-type: none; margin-left: -1em;"> |
| 1881 |
<li><a href="#ws">WS</a> – word spacing</li> |
| 1882 |
<li><a href="#ss">SS</a> – sentence space</li> |
| 1883 |
</ul></li> |
| 1884 |
<li>Letter spacing (track kerning) |
| 1885 |
<ul style="list-style-type: none; margin-left: -1em;"> |
| 1886 |
<li><a href="#rw">RW</a> – reduce whitespace</li> |
| 1887 |
<li><a href="#ew">EW</a> – expand whitespace</li> |
| 1888 |
<li><a href="#br-at-line-kern">BR_AT_LINE_KERN</a></li> |
| 1889 |
</ul></li> |
| 1890 |
<li>Hyphenation |
| 1891 |
<ul style="list-style-type: none; margin-left: -1em;"> |
| 1892 |
<li><a href="#hy">HY</a> – turn auto hyphenation on/off, or set specific hyphenation parameters</li> |
| 1893 |
<li><a href="#hy-set">HY_SET</a> – set all hyphenation parameters</li> |
| 1894 |
</ul></li> |
| 1895 |
<li>Automatic kerning and ligatures |
| 1896 |
<ul style="list-style-type: none; margin-left: -1em;"> |
| 1897 |
<li><a href="#kern">KERN</a> – turn automatic pairwise kerning on or off</li> |
| 1898 |
<li><a href="#ligatures">LIGATURES</a> – turn automatic generation of ligatures on or off</li> |
| 1899 |
</ul></li> |
| 1900 |
</ul> |
| 1901 |
</div> |
| 1902 |
|
| 1903 |
<!-- -WS- --> |
| 1904 |
|
| 1905 |
<div class="macro-id-overline"> |
| 1906 |
<h3 id="ws" class="macro-id">Word spacing</h3> |
| 1907 |
</div> |
| 1908 |
|
| 1909 |
<div class="box-macro-args"> |
| 1910 |
Macro: <b>WS</b> <kbd class="macro-args"><+|-wordspace> | DEFAULT</kbd> |
| 1911 |
</div> |
| 1912 |
|
| 1913 |
<p> |
| 1914 |
WS (Word Space) increases or decreases the amount of space between |
| 1915 |
words. In |
| 1916 |
<a href="definitions.html#filled">nofill modes</a>, |
| 1917 |
or if |
| 1918 |
<a href="#quad">QUAD</a> |
| 1919 |
is in effect, the space between words is fixed. Therefore, if you |
| 1920 |
change the word spacing with WS, the change applies uniformly to the |
| 1921 |
space between every word on every line. However, when text is |
| 1922 |
<a href="definitions.html#just">justified</a>, |
| 1923 |
the space between words varies from line to line (in order to |
| 1924 |
justify the text). Consequently, the change you make with WS |
| 1925 |
represents the minimum (and ideal) space groff will try to put |
| 1926 |
between words before deciding whether to hyphenate a final word or |
| 1927 |
to stretch the word spacing. |
| 1928 |
</p> |
| 1929 |
|
| 1930 |
<p> |
| 1931 |
Word space is relative to point size. Generally, in/decreasing the |
| 1932 |
word space by a value of 1 or 2 produces a difference that in many |
| 1933 |
cases is scarcely visible. In/decreasing by a value between 3 and 5 |
| 1934 |
produces a subtle but noticeable difference. In/decreasing by a |
| 1935 |
value greater than 6 is almost always apparent. You should preview |
| 1936 |
your work to assess the effect of WS. |
| 1937 |
</p> |
| 1938 |
|
| 1939 |
<p id="ws-usage"> |
| 1940 |
WS takes as its argument a whole number preceded by a plus or minus |
| 1941 |
sign. Therefore, to decrease the word space slightly, you might |
| 1942 |
enter |
| 1943 |
<br/> |
| 1944 |
<span class="pre-in-pp"> |
| 1945 |
.WS -2 |
| 1946 |
</span> |
| 1947 |
To increase it by a noticeable amount, you might enter |
| 1948 |
<br/> |
| 1949 |
<span class="pre-in-pp"> |
| 1950 |
.WS +6 |
| 1951 |
</span> |
| 1952 |
You can reset the word spacing to its previous value by switching |
| 1953 |
the plus or minus sign, like this: |
| 1954 |
<br/> |
| 1955 |
<span class="pre-in-pp"> |
| 1956 |
.WS +2 |
| 1957 |
A line of text |
| 1958 |
.WS -2 |
| 1959 |
</span> |
| 1960 |
The <kbd>.WS -2</kbd> undoes the effect of |
| 1961 |
<kbd>.WS +2</kbd>. You can also reset WS to its groff default |
| 1962 |
by entering |
| 1963 |
<br/> |
| 1964 |
<span class="pre-in-pp"> |
| 1965 |
.WS DEFAULT |
| 1966 |
</span> |
| 1967 |
This can be particularly useful if you’ve been playing around |
| 1968 |
with plus and minus values, and can’t remember by how much to |
| 1969 |
in/decrease the word space to get it back to normal. |
| 1970 |
</p> |
| 1971 |
|
| 1972 |
<!-- -SS- --> |
| 1973 |
|
| 1974 |
<div class="macro-id-overline"> |
| 1975 |
<h3 id="ss" class="macro-id">Sentence space</h3> |
| 1976 |
</div> |
| 1977 |
|
| 1978 |
<div class="box-macro-args"> |
| 1979 |
Macro: <b>SS</b> <kbd class="macro-args"><+sentence space> | 0 | DEFAULT</kbd> |
| 1980 |
</div> |
| 1981 |
|
| 1982 |
<p> |
| 1983 |
SS (Sentence Space) tells groff how to treat double spaces it |
| 1984 |
encounters between sentences in |
| 1985 |
<a href="definitions.html#inputline">input lines</a>. |
| 1986 |
If you use SS, input sentences with two spaces after them <i>and</i> |
| 1987 |
input sentences that fall at the end of input lines all receive a |
| 1988 |
normal word space plus an additional amount of space whose size is |
| 1989 |
determined by the + value passed as an argument to SS. Thus, |
| 1990 |
<br/> |
| 1991 |
<span class="pre-in-pp"> |
| 1992 |
.SS +2 |
| 1993 |
</span> |
| 1994 |
means that input sentences with two spaces after them receive a |
| 1995 |
normal word space PLUS the +2 value passed to SS. |
| 1996 |
</p> |
| 1997 |
|
| 1998 |
<p> |
| 1999 |
Like |
| 2000 |
<a href="#ws">WS</a>, |
| 2001 |
increasing the sentence space by a value of 1 or 2 produces a |
| 2002 |
difference that in many cases is scarcely visible. Increasing by a |
| 2003 |
value of 5 or so produces a subtle but noticeable difference (i.e., |
| 2004 |
the space between double-spaced input sentences will be slightly |
| 2005 |
but visibly greater than the space between words). Increasing by a |
| 2006 |
value greater than 10 is always apparent. You should preview your |
| 2007 |
work to assess the effect of SS. |
| 2008 |
</p> |
| 2009 |
|
| 2010 |
<p> |
| 2011 |
There’s an additional argument you can pass SS: the number |
| 2012 |
zero (without the plus sign). It’s the argument you’ll |
| 2013 |
use most often. Typeset copy should never have two spaces between |
| 2014 |
sentences, and the "zero" argument tells groff to give the extra |
| 2015 |
spaces no space at all (effectively removing them). Therefore, if |
| 2016 |
you double-space your sentences (as you should when writing in a |
| 2017 |
text editor), get in the habit of putting |
| 2018 |
<br/> |
| 2019 |
<span class="pre-in-pp"> |
| 2020 |
.SS 0 |
| 2021 |
</span> |
| 2022 |
at the top of your files. |
| 2023 |
</p> |
| 2024 |
|
| 2025 |
<p> |
| 2026 |
If you do use SS for something other than ensuring that you |
| 2027 |
don’t get unwanted sentence spaces in output copy, you can set |
| 2028 |
or reset the sentence space to the groff default (the same width |
| 2029 |
as a word space, i.e., double-spaced input sentences will appear |
| 2030 |
double-spaced on output as well) with |
| 2031 |
<br/> |
| 2032 |
<span class="pre-in-pp"> |
| 2033 |
.SS DEFAULT |
| 2034 |
</span> |
| 2035 |
If you’re using the |
| 2036 |
<a href="docprocessing.html">document processing macros</a> |
| 2037 |
and your |
| 2038 |
<a href="docprocessing.html#printstyle">PRINTSTYLE</a> |
| 2039 |
is <kbd>TYPEWRITE</kbd>, <kbd>.SS DEFAULT</kbd> is the |
| 2040 |
default, because you do want double spaces between sentences in copy |
| 2041 |
that imitates the look of a typewritten document. |
| 2042 |
</p> |
| 2043 |
|
| 2044 |
<div class="box-important"> |
| 2045 |
<p class="tip"> |
| 2046 |
<span class="important">IMPORTANT:</span> SS with an argument other |
| 2047 |
than <kbd>0</kbd> (zero) should only be used if you’re of |
| 2048 |
the old (and wise) school of typists that puts two spaces between |
| 2049 |
sentences. If you ignore this advice and use SS when you habitually |
| 2050 |
put only one space between sentences, you risk producing output |
| 2051 |
where the space between sentences is not equal. |
| 2052 |
</p> |
| 2053 |
</div> |
| 2054 |
|
| 2055 |
<!-- -HY- --> |
| 2056 |
|
| 2057 |
<div class="macro-id-overline"> |
| 2058 |
<h3 id="hy" class="macro-id">Automatic hyphenation control</h3> |
| 2059 |
</div> |
| 2060 |
|
| 2061 |
<div class="box-macro-args"> |
| 2062 |
Macro: <b>HY</b> <kbd class="macro-args">LINES <max. number of consecutive hyphenated lines></kbd> |
| 2063 |
<br/> |
| 2064 |
Macro: <b>HY</b> <kbd class="macro-args">MARGIN <size of hyphenation margin></kbd> |
| 2065 |
<br/> |
| 2066 |
Macro: <b>HY</b> <kbd class="macro-args">SPACE <extra interword spacing to prevent hyphenation></kbd> |
| 2067 |
<br/> |
| 2068 |
Macro: <b>HY</b> <kbd class="macro-args">DEFAULT</kbd> |
| 2069 |
<br/> |
| 2070 |
Macro: <b>HY</b> <kbd class="macro-args">toggle</kbd> |
| 2071 |
</div> |
| 2072 |
<p class="alias"> |
| 2073 |
<i>Aliases:</i> <b>HYPHENATE, HYPHENATION</b> |
| 2074 |
</p> |
| 2075 |
|
| 2076 |
<p> |
| 2077 |
HY, as you can see, can be invoked with a number of arguments. In |
| 2078 |
all cases, the aliases HYPHENATE or HYPHENATION can be used in place |
| 2079 |
of HY. To aid in understanding the various arguments you can pass |
| 2080 |
to HY, I’ve broken them down into separate sections. |
| 2081 |
</p> |
| 2082 |
|
| 2083 |
<h3 class="docs">1. HY</h3> |
| 2084 |
|
| 2085 |
<p> |
| 2086 |
HY by itself (i.e. with no argument) simply turns automatic |
| 2087 |
hyphenation on. Any argument other than LINES, MARGIN, SPACE, or |
| 2088 |
DEFAULT, turns automatic hyphenation off. For example, as explained |
| 2089 |
in |
| 2090 |
<a href="intro.html#macro-args">How to read macro arguments</a>, |
| 2091 |
you could turn HY off by entering |
| 2092 |
<br/> |
| 2093 |
<span class="pre-in-pp"> |
| 2094 |
.HY OFF |
| 2095 |
</span> |
| 2096 |
or |
| 2097 |
<span class="pre-in-pp"> |
| 2098 |
.HY X |
| 2099 |
</span> |
| 2100 |
or |
| 2101 |
<span class="pre-in-pp"> |
| 2102 |
.HY END |
| 2103 |
</span> |
| 2104 |
A subsequent call to HY restores hyphenation with the parameters for |
| 2105 |
LINES, MARGIN, or SPACE that were formerly in effect (see below). |
| 2106 |
</p> |
| 2107 |
|
| 2108 |
<p> |
| 2109 |
HY observes the following default hyphenation rules: |
| 2110 |
</p> |
| 2111 |
<ul style="margin-top: -.5em; margin-left: 18px;"> |
| 2112 |
<li>Last lines (i.e. ones that will spring a trap—typically |
| 2113 |
the last line on a page) will not be hyphenated. |
| 2114 |
</li> |
| 2115 |
<li>The first and last two characters of a word are never |
| 2116 |
split off. |
| 2117 |
</li> |
| 2118 |
</ul> |
| 2119 |
|
| 2120 |
<h3 class="docs numbered">2. HY LINES</h3> |
| 2121 |
|
| 2122 |
<p> |
| 2123 |
HY LINES sets the maximum number of consecutive hyphenated lines |
| 2124 |
that will appear in output copy. 2 is a very good choice, and |
| 2125 |
you’d set it with |
| 2126 |
<br/> |
| 2127 |
<span class="pre-in-pp"> |
| 2128 |
.HY LINES 2 |
| 2129 |
</span> |
| 2130 |
By default, when you turn automatic hyphenation on, there is no |
| 2131 |
limit to the number of consecutive hyphenated lines. |
| 2132 |
</p> |
| 2133 |
|
| 2134 |
<div class="box-tip"> |
| 2135 |
<p class="tip"> |
| 2136 |
<span class="note">Note:</span> |
| 2137 |
<a href="definitions.html#discretionaryhyphen">Discretionary hyphens</a> |
| 2138 |
count when groff is figuring out how many lines to hyphenate; |
| 2139 |
explicit hyphens (i.e. the actual hyphen character) do not. |
| 2140 |
</p> |
| 2141 |
</div> |
| 2142 |
|
| 2143 |
<h3 class="docs numbered">3. HY MARGIN</h3> |
| 2144 |
|
| 2145 |
<p> |
| 2146 |
HY MARGIN sets the amount of room allowed at the end of a line |
| 2147 |
before hyphenation is tripped (e.g., if there’s only 6 points |
| 2148 |
left at the end of a line, groff won’t try to hyphenate the |
| 2149 |
next word). HY MARGIN only applies if you’re using |
| 2150 |
<a href="#quad">QUAD</a>, |
| 2151 |
and is really only useful if you’re using QUAD LEFT. |
| 2152 |
</p> |
| 2153 |
|
| 2154 |
<p> |
| 2155 |
As an example, if you don’t want groff to hyphenate words |
| 2156 |
when there’s only 18 points of space left at the end of a |
| 2157 |
left-quadded line, you’d enter |
| 2158 |
<br/> |
| 2159 |
<span class="pre-in-pp" style="margin-bottom: -1em"> |
| 2160 |
.HY MARGIN 18p |
| 2161 |
</span> |
| 2162 |
</p> |
| 2163 |
|
| 2164 |
<div class="box-tip"> |
| 2165 |
<p class="tip"> |
| 2166 |
<span class="note">Note:</span> The numeric argument after HY |
| 2167 |
MARGIN requires a |
| 2168 |
<a href="definitions.html#unitofmeasure">unit of measure</a>. |
| 2169 |
</p> |
| 2170 |
</div> |
| 2171 |
|
| 2172 |
<h3 class="docs numbered">4. HY SPACE</h3> |
| 2173 |
|
| 2174 |
<p> |
| 2175 |
HY SPACE sets an amount of extra interword space that groff will |
| 2176 |
try to put between words on a line in order to <i>prevent</i> |
| 2177 |
hyphenation. HY SPACE applies only to |
| 2178 |
<a href="definitions.html#just">justified lines</a>. |
| 2179 |
Generally speaking, you’ll want this value to be quite small, |
| 2180 |
since too big a value will result in lines with gaping holes between |
| 2181 |
the words. A reasonable value might be half a point, or one point, |
| 2182 |
which you’d set with |
| 2183 |
<br/> |
| 2184 |
<span class="pre-in-pp"> |
| 2185 |
.HY SPACE .5p |
| 2186 |
</span> |
| 2187 |
or |
| 2188 |
<span class="pre-in-pp" style="margin-bottom: -1em"> |
| 2189 |
.HY SPACE 1p |
| 2190 |
</span> |
| 2191 |
</p> |
| 2192 |
|
| 2193 |
<div class="box-tip"> |
| 2194 |
<p class="tip"> |
| 2195 |
<span class="note">Note:</span> The numeric argument after HY SPACE |
| 2196 |
requires a |
| 2197 |
<a href="definitions.html#unitofmeasure">unit of measure</a>. |
| 2198 |
</p> |
| 2199 |
</div> |
| 2200 |
|
| 2201 |
<h3 class="docs numbered">5. HY DEFAULT</h3> |
| 2202 |
|
| 2203 |
<p> |
| 2204 |
HY DEFAULT resets automatic hyphenation to its default behaviour, |
| 2205 |
cancelling any changes made with HY <kbd>LINES</kbd>, HY |
| 2206 |
<kbd>MARGIN</kbd>, and/or HY <kbd>SPACE</kbd>. |
| 2207 |
</p> |
| 2208 |
|
| 2209 |
<div class="box-notes"> |
| 2210 |
<h3 id="hyphenation-thoughts" class="docs notes">Thoughts on hyphenation in general</h3> |
| 2211 |
|
| 2212 |
<p style="margin-top: .5em"> |
| 2213 |
Hyphenation is a necessary evil. If it can be avoided, it |
| 2214 |
should be. If it can’t be, it should occur infrequently. |
| 2215 |
That’s the reason for the number of parameters you can set |
| 2216 |
with HY. |
| 2217 |
</p> |
| 2218 |
|
| 2219 |
<p class="tip-bottom"> |
| 2220 |
Furthermore, hyphenation in |
| 2221 |
<a href="definitions.html#rag">rag</a> |
| 2222 |
copy requires a great deal of attention. At best, it should be |
| 2223 |
avoided completely by individually adjusting the number of words |
| 2224 |
on consecutive lines to achieve a pleasing, natural-looking rag. |
| 2225 |
Since such adjustments are often too fussy for document processing, |
| 2226 |
I recommend playing around with HY MARGIN a bit if your copy looks |
| 2227 |
hyphen-heavy. |
| 2228 |
</p> |
| 2229 |
</div> |
| 2230 |
|
| 2231 |
<!-- -HY_SET- --> |
| 2232 |
|
| 2233 |
<div class="macro-id-overline"> |
| 2234 |
<h3 id="hy-set" class="macro-id">Set hyphenation parameters all at once</h3> |
| 2235 |
</div> |
| 2236 |
|
| 2237 |
<div class="box-macro-args"> |
| 2238 |
Macro: <b>HY_SET</b> <kbd class="macro-args"><lines> [ <margin> [ <space> ] ]</kbd> |
| 2239 |
</div> |
| 2240 |
|
| 2241 |
<p class="alias"> |
| 2242 |
<i>Alias:</i> <b>HYSET</b> |
| 2243 |
</p> |
| 2244 |
|
| 2245 |
<p> |
| 2246 |
HY_SET lets you set the parameters for hyphenation |
| 2247 |
with a single macro. <kbd><lines>,</kbd> |
| 2248 |
<kbd><margin></kbd>, and |
| 2249 |
<kbd><space></kbd> correspond to the numeric |
| 2250 |
values required by <kbd>LINES</kbd>, |
| 2251 |
<kbd>MARGIN</kbd>, and <kbd>SPACE</kbd> as described |
| 2252 |
<a href="#hy">above</a>. |
| 2253 |
</p> |
| 2254 |
|
| 2255 |
<p> |
| 2256 |
To set just the maximum number of consecutive hyphenated lines, |
| 2257 |
you’d enter |
| 2258 |
<br/> |
| 2259 |
<span class="pre-in-pp"> |
| 2260 |
.HY_SET 2 |
| 2261 |
</span> |
| 2262 |
If you wanted the same number of maximum consecutive hyphenated |
| 2263 |
lines and a hyphenation margin for use with |
| 2264 |
<a href="definitions.html#rag">rag</a> |
| 2265 |
copy, |
| 2266 |
<br/> |
| 2267 |
<span class="pre-in-pp"> |
| 2268 |
.HY_SET 2 36p |
| 2269 |
</span> |
| 2270 |
would set the hyphenation margin to 36 points. |
| 2271 |
</p> |
| 2272 |
|
| 2273 |
<p> |
| 2274 |
If you wanted the same number of maximum consecutive hyphenated |
| 2275 |
lines and a hyphenation space of 2 points for use with |
| 2276 |
<a href="definitions.html#just">justified</a> |
| 2277 |
copy, |
| 2278 |
<br/> |
| 2279 |
<span class="pre-in-pp"> |
| 2280 |
.HYSET 2 0 2p |
| 2281 |
</span> |
| 2282 |
is how you’d do it. |
| 2283 |
</p> |
| 2284 |
|
| 2285 |
<!-- -RW- --> |
| 2286 |
|
| 2287 |
<div class="macro-id-overline"> |
| 2288 |
<h3 id="rw" class="macro-id">Reduce whitespace</h3> |
| 2289 |
</div> |
| 2290 |
|
| 2291 |
<div class="box-macro-args"> |
| 2292 |
Macro: <b>RW</b> <kbd class="macro-args"><amount of whitespace reduction between letters></kbd> |
| 2293 |
</div> |
| 2294 |
|
| 2295 |
<p> |
| 2296 |
RW (<span style="text-decoration: underline;">R</span>educe <span style="text-decoration: underline;">W</span>hitespace) |
| 2297 |
and its corresponding macro |
| 2298 |
EW (<span style="text-decoration: underline;">E</span>xpand <span style="text-decoration: underline;">W</span>hitespace), |
| 2299 |
allow you to tighten (or loosen) |
| 2300 |
<a href="definitions.html#outputline">output lines</a> |
| 2301 |
by uniformly reducing or expanding the space between characters. |
| 2302 |
This is particularly useful when you want to squeeze or stretch |
| 2303 |
lines on a narrow measure. |
| 2304 |
</p> |
| 2305 |
|
| 2306 |
<p> |
| 2307 |
The value passed to RW may be a whole number or a decimal fraction. |
| 2308 |
Since a value of 1 produces a noticeable reduction in the space |
| 2309 |
between letters at text sizes, you’ll most likely use small |
| 2310 |
decimal values when tightening lines. For example, |
| 2311 |
<br/> |
| 2312 |
<span class="pre-in-pp"> |
| 2313 |
.RW .1 |
| 2314 |
</span> |
| 2315 |
or |
| 2316 |
<span class="pre-in-pp"> |
| 2317 |
.RW .2 |
| 2318 |
</span> |
| 2319 |
may be just enough to squeeze an extra character or two on a line |
| 2320 |
without the change in letter spacing being obvious. I highly |
| 2321 |
recommend previewing your work to assess the effect of RW. |
| 2322 |
</p> |
| 2323 |
|
| 2324 |
<div class="box-tip"> |
| 2325 |
<p class="tip"> |
| 2326 |
<span class="note">Note:</span> By default, RW does not deposit a |
| 2327 |
<a href="#br">break</a> |
| 2328 |
when it’s invoked if you’re in one of the |
| 2329 |
<a href="definitions.html#fill">fill</a> |
| 2330 |
modes (i.e. |
| 2331 |
<a href="#quad">QUAD</a> |
| 2332 |
L, R, C, J, or |
| 2333 |
<a href="#justify">JUSTIFY</a>). |
| 2334 |
If you want |
| 2335 |
RW to break at the ends of the previous |
| 2336 |
<a href="definitions.html#inputline">input lines</a> |
| 2337 |
while you’re in a fill mode, tell mom |
| 2338 |
that’s what you want by invoking |
| 2339 |
<kbd><a href="#br-at-line-kern">.BR_AT_LINE_KERN</a></kbd>. |
| 2340 |
</p> |
| 2341 |
</div> |
| 2342 |
|
| 2343 |
<div class="box-important"> |
| 2344 |
<p class="tip"> |
| 2345 |
<span class="important">IMPORTANT:</span> |
| 2346 |
RW (and its complement, EW, see below) only affects the current |
| 2347 |
font, and remains in effect for that font every time it’s |
| 2348 |
called, hence it must be reset to zero to cancel its effect |
| 2349 |
(<kbd>.RW 0</kbd>). |
| 2350 |
</p> |
| 2351 |
</div> |
| 2352 |
|
| 2353 |
<!-- -EW- --> |
| 2354 |
|
| 2355 |
<div class="macro-id-overline"> |
| 2356 |
<h3 id="ew" class="macro-id">Expand whitespace</h3> |
| 2357 |
</div> |
| 2358 |
|
| 2359 |
<div class="box-macro-args"> |
| 2360 |
Macro: <b>EW</b> <kbd class="macro-args"><amount of whitespace expansion between letters></kbd> |
| 2361 |
</div> |
| 2362 |
|
| 2363 |
<p> |
| 2364 |
EW (<span style="text-decoration: underline;">E</span>xpand <span style="text-decoration: underline;">W</span>hitespace) |
| 2365 |
expands the amount of whitespace between letters, effectively |
| 2366 |
“loosening” lines of type. |
| 2367 |
</p> |
| 2368 |
|
| 2369 |
<p> |
| 2370 |
The value passed to EW may be a whole number or a decimal fraction. |
| 2371 |
Since a value of 1 produces a noticeable expansion in the space |
| 2372 |
between letters at text sizes, you’ll most likely use small |
| 2373 |
decimal values when loosening lines. For example, |
| 2374 |
<br/> |
| 2375 |
<span class="pre-in-pp"> |
| 2376 |
.EW .1 |
| 2377 |
</span> |
| 2378 |
or |
| 2379 |
<span class="pre-in-pp"> |
| 2380 |
.EW .2 |
| 2381 |
</span> |
| 2382 |
may be just enough to open up a line without the change in letter |
| 2383 |
spacing being obvious. I highly recommend previewing your work to |
| 2384 |
assess the effect of EW. |
| 2385 |
</p> |
| 2386 |
|
| 2387 |
<div class="box-tip"> |
| 2388 |
<p class="tip"> |
| 2389 |
<span class="note">Note:</span> By default, EW does not deposit a |
| 2390 |
<a href="#br">break</a> |
| 2391 |
when it’s invoked if you’re in one of the |
| 2392 |
<a href="definitions.html#fill">fill</a> |
| 2393 |
modes (i.e. |
| 2394 |
<a href="#quad">QUAD</a> |
| 2395 |
L, R, C, J, or |
| 2396 |
<a href="#justify">JUSTIFY</a>). |
| 2397 |
If you want |
| 2398 |
EW to break at the ends of the previous |
| 2399 |
<a href="definitions.html#inputline">input lines</a> |
| 2400 |
while you’re in a fill mode, tell mom that’s what you |
| 2401 |
want by invoking the |
| 2402 |
<kbd><a href="#br-at-line-kern">.BR_AT_LINE_KERN</a></kbd> |
| 2403 |
toggle macro. |
| 2404 |
</p> |
| 2405 |
</div> |
| 2406 |
|
| 2407 |
<div class="box-important"> |
| 2408 |
<p class="tip"> |
| 2409 |
<span class="important">IMPORTANT:</span> |
| 2410 |
EW (and its complement, RW, see above) only affects the current |
| 2411 |
font, and remains in effect for that font every time it’s |
| 2412 |
called, hence it must be reset to zero to cancel its effect |
| 2413 |
(<kbd>.RW 0</kbd>). |
| 2414 |
</p> |
| 2415 |
</div> |
| 2416 |
|
| 2417 |
<!-- -BR_AT_LINE_KERN- --> |
| 2418 |
|
| 2419 |
<div class="macro-id-overline"> |
| 2420 |
<h3 id="br-at-line-kern" class="macro-id">Break before line kerning</h3> |
| 2421 |
</div> |
| 2422 |
|
| 2423 |
<div class="box-macro-args"> |
| 2424 |
Macro: <b>BR_AT_LINE_KERN</b> <kbd class="macro-args">toggle</kbd> |
| 2425 |
</div> |
| 2426 |
|
| 2427 |
<p> |
| 2428 |
By default, in |
| 2429 |
<a href="definitions.html#filled">fill</a> |
| 2430 |
modes (i.e. |
| 2431 |
<a href="#quad">QUAD</a> |
| 2432 |
L, R, C, J, or |
| 2433 |
<a href="#justify">JUSTIFY</a>) |
| 2434 |
mom does not break |
| 2435 |
<a href="definitions.html#inputline">input lines</a> |
| 2436 |
when you invoke |
| 2437 |
<a href="#rw">RW</a> |
| 2438 |
or |
| 2439 |
<a href="#ew">EW</a>. |
| 2440 |
If you’d like her to break input lines prior to RW or EW, |
| 2441 |
invoke <kbd>.BR_AT_INPUT_LINE</kbd> without any argument. To |
| 2442 |
disable the breaks, invoke <kbd>.BR_AT_INPUT_LINE</kbd> with any |
| 2443 |
argument (<kbd>OFF</kbd>, <kbd>QUIT</kbd>, <kbd>END</kbd>, |
| 2444 |
<kbd>X</kbd>...), like this |
| 2445 |
<br/> |
| 2446 |
<span class="pre-in-pp"> |
| 2447 |
.BR_AT_LINE_KERN OFF |
| 2448 |
</span> |
| 2449 |
or |
| 2450 |
<span class="pre-in-pp"> |
| 2451 |
.BR_AT_LINE_KERN X |
| 2452 |
</span> |
| 2453 |
With QUAD L, R, or C, mom simply breaks the line. With QUAD J (or |
| 2454 |
just JUSTIFY, which is the same thing), she breaks and |
| 2455 |
<a href="definitions.html#force">force justifies</a> |
| 2456 |
the line prior to <kbd>.EW</kbd> or <kbd>.RW</kbd>. |
| 2457 |
</p> |
| 2458 |
|
| 2459 |
<!-- -KERN- --> |
| 2460 |
|
| 2461 |
<div class="macro-id-overline"> |
| 2462 |
<h3 id="kern" class="macro-id">Automatic kerning</h3> |
| 2463 |
</div> |
| 2464 |
|
| 2465 |
<div class="box-macro-args"> |
| 2466 |
Macro: <b>KERN</b> <kbd class="macro-args">toggle</kbd> |
| 2467 |
</div> |
| 2468 |
|
| 2469 |
<p> |
| 2470 |
By itself (i.e. with no argument), KERN turns automatic pairwise |
| 2471 |
<a href="definitions.html#kern">kerning</a> |
| 2472 |
on. With any argument (e.g. <kbd>OFF</kbd>, <kbd>Q</kbd>, |
| 2473 |
<kbd>X</kbd>), pairwise kerning is turned off. |
| 2474 |
</p> |
| 2475 |
|
| 2476 |
<p> |
| 2477 |
Kerning of individual character pairs can be controlled with the two |
| 2478 |
<a href="definitions.html#inlines">inline escapes</a> |
| 2479 |
<br/> |
| 2480 |
<kbd>\*[BU <n>]</kbd> and |
| 2481 |
<kbd>\*[FU <n>]</kbd>. See |
| 2482 |
<a href="inlines.html#inline-kerning-mom">Inline Escapes, kerning</a>. |
| 2483 |
</p> |
| 2484 |
|
| 2485 |
<!-- -LIGATURES- --> |
| 2486 |
|
| 2487 |
<div class="macro-id-overline"> |
| 2488 |
<h3 id="ligatures" class="macro-id">Automatic ligature generation</h3> |
| 2489 |
</div> |
| 2490 |
|
| 2491 |
<div class="box-macro-args"> |
| 2492 |
Macro: <b>LIGATURES</b> <kbd class="macro-args">toggle</kbd> |
| 2493 |
</div> |
| 2494 |
<p class="alias"> |
| 2495 |
<i>Alias:</i> <b>LIG</b> |
| 2496 |
</p> |
| 2497 |
|
| 2498 |
<p> |
| 2499 |
Provided your current font has |
| 2500 |
<a href="definitions.html#ligatures">ligatures</a>, |
| 2501 |
LIGATURES, by itself, turns on automatic generation of ligatures. |
| 2502 |
When automatic ligature generation is on, simply typing the letters |
| 2503 |
of a ligature combination will produce the correct ligature upon |
| 2504 |
output. For example, if you type the word “finally”, |
| 2505 |
the fi combination will be output as an fi ligature. Generally |
| 2506 |
speaking, ligatures are A Good Thing, hence mom has them on by |
| 2507 |
default. |
| 2508 |
</p> |
| 2509 |
|
| 2510 |
<p> |
| 2511 |
LIGATURES with any argument turns automatic ligature generation off. |
| 2512 |
</p> |
| 2513 |
|
| 2514 |
<div class="box-tip"> |
| 2515 |
<p class="tip"> |
| 2516 |
<span class="note">Note:</span> Not all fonts support ligatures. |
| 2517 |
</p> |
| 2518 |
</div> |
| 2519 |
|
| 2520 |
<div class="rule-short"><hr/></div> |
| 2521 |
|
| 2522 |
<!-- ==================================================================== --> |
| 2523 |
|
| 2524 |
<h2 id="modifications-intro" class="macro-group">Type modifications (pseudo font styles)</h2> |
| 2525 |
|
| 2526 |
<p> |
| 2527 |
It sometimes happens that a |
| 2528 |
<a href="definitions.html#family">family</a> |
| 2529 |
doesn’t contain all the fonts you need. You might, for |
| 2530 |
example, be missing an italic font, or a bold font. Or you might |
| 2531 |
not be able to get your hands on the condensed version. That’s |
| 2532 |
where these macros and inline escapes come in. With them, you |
| 2533 |
can fake the fonts you’re missing. A word of caution, |
| 2534 |
though: “faked” fonts are just that—faked. You |
| 2535 |
should only use them as a last resort, and then only sparingly. A |
| 2536 |
word or two or a line or two in a faked font will pass unnoticed; |
| 2537 |
large patches of type in a faked font look typographically cheap. |
| 2538 |
</p> |
| 2539 |
|
| 2540 |
<div id="index-modifications" class="macro-list-container"> |
| 2541 |
<h3 class="macro-list">Type modifications macros</h3> |
| 2542 |
|
| 2543 |
<ul class="macro-list"> |
| 2544 |
<li>Pseudo italic |
| 2545 |
<ul style="list-style: none; margin-left: -1em;"> |
| 2546 |
<li><a href="#setslant">SETSLANT</a> – degree of pseudo-italicizing</li> |
| 2547 |
<li><a href="#slant-inline">\*[SLANT]</a> – inline escape for pseudo-italicizing type</li> |
| 2548 |
</ul></li> |
| 2549 |
<li>Pseudo bold |
| 2550 |
<ul style="list-style: none; margin-left: -1em;"> |
| 2551 |
<li><a href="#setbolder">SETBOLDER</a> – amount of emboldening</li> |
| 2552 |
<li><a href="#bolder-inline">\*[BOLDER]</a> – inline escape for emboldening type</li> |
| 2553 |
</ul></li> |
| 2554 |
<li>Pseudo condensed |
| 2555 |
<ul style="list-style: none; margin-left: -1em;"> |
| 2556 |
<li><a href="#condense">CONDENSE</a> – percentage for pseudo-condensed type</li> |
| 2557 |
<li><a href="#cond-inline">\*[COND]</a> – inline escape for pseudo-condensed type</li> |
| 2558 |
</ul></li> |
| 2559 |
<li>Pseudo extended |
| 2560 |
<ul style="list-style: none; margin-left: -1em;"> |
| 2561 |
<li><a href="#extend">EXTEND</a> – percentage for pseudo-extended type</li> |
| 2562 |
<li><a href="#ext-inline">\*[EXT]</a> – inline escape for pseudo-extending</li> |
| 2563 |
</ul></li> |
| 2564 |
<li>Smallcaps |
| 2565 |
<ul style="list-style: none; margin-left: -1em;"> |
| 2566 |
<li><a href="#smallcaps">SMALLCAPS</a> – enable smallcaps</li> |
| 2567 |
<li><a href="#smallcaps-style">SMALLCAPS_STYLE</a> – size, weight, and width of smallcaps</li> |
| 2568 |
</ul></li> |
| 2569 |
</ul> |
| 2570 |
</div> |
| 2571 |
|
| 2572 |
<!-- -SETSLANT- --> |
| 2573 |
|
| 2574 |
<div class="macro-id-overline"> |
| 2575 |
<h3 id="setslant" class="macro-id">Set degree of slant for pseudo-italicizing</h3> |
| 2576 |
</div> |
| 2577 |
|
| 2578 |
<div class="box-macro-args"> |
| 2579 |
Macro: <b>SETSLANT</b> <kbd class="macro-args"><degrees to slant type> | RESET</kbd> |
| 2580 |
</div> |
| 2581 |
|
| 2582 |
<p> |
| 2583 |
Pseudo-italicizing of type is accomplished by slanting a roman font |
| 2584 |
a certain number of degrees to the right. SETSLANT lets you fix the |
| 2585 |
number of degrees. Mom’s default is 15, which produces an |
| 2586 |
acceptable approximation of an italic font. If you want another |
| 2587 |
value—say, 13 degrees—you’d set it by entering |
| 2588 |
<br/> |
| 2589 |
<span class="pre-in-pp"> |
| 2590 |
.SETSLANT 13 |
| 2591 |
</span> |
| 2592 |
If you change the degree of slant and later want to set it back to |
| 2593 |
the mom default, do |
| 2594 |
<br/> |
| 2595 |
<span class="pre-in-pp"> |
| 2596 |
.SETSLANT RESET |
| 2597 |
</span> |
| 2598 |
</p> |
| 2599 |
|
| 2600 |
<div class="box-tip"> |
| 2601 |
<p class="tip"> |
| 2602 |
<span class="note">Note:</span> By itself, SETSLANT will not start |
| 2603 |
pseudo-italicizing type; it merely tells mom what degree of slant |
| 2604 |
you want. To start pseudo-italicizing, use the |
| 2605 |
<a href="definitions.html#inlines">inline escape</a> |
| 2606 |
<kbd>\*[SLANT]</kbd>. |
| 2607 |
</p> |
| 2608 |
</div> |
| 2609 |
|
| 2610 |
<!-- -\*[SLANT]- --> |
| 2611 |
|
| 2612 |
<div class="macro-id-overline"> |
| 2613 |
<h3 id="slant-inline" class="macro-id">Pseudo italic on/off</h3> |
| 2614 |
</div> |
| 2615 |
|
| 2616 |
<div class="box-macro-args"> |
| 2617 |
Inline: <kbd class="macro-args">\*[SLANT]</kbd> |
| 2618 |
<br/> |
| 2619 |
Inline: <kbd class="macro-args">\*[SLANTX</kbd>] |
| 2620 |
</div> |
| 2621 |
|
| 2622 |
<p> |
| 2623 |
<kbd class="macro-args">\*[SLANT]</kbd> begins pseudo-italicizing. <kbd class="macro-args"><span class="nobr">\*[SLANTX]</span></kbd> turns |
| 2624 |
the feature off. Both are <a href="definitions.html#inlines">inline |
| 2625 |
escapes</a>, |
| 2626 |
therefore they should not appear as separate lines, but rather be |
| 2627 |
embedded in text lines, like this: |
| 2628 |
<br/> |
| 2629 |
<span class="pre-in-pp"> |
| 2630 |
Not \*[SLANT]everything\*[SLANTX] is as it seems. |
| 2631 |
</span> |
| 2632 |
Alternatively, if you wanted the whole line pseudo-italicized, |
| 2633 |
you’d do |
| 2634 |
<br/> |
| 2635 |
<span class="pre-in-pp"> |
| 2636 |
\*[SLANT]Not everything is as it seems.\*[SLANTX] |
| 2637 |
</span> |
| 2638 |
Once <kbd><span class="nobr">\*[SLANT]</span></kbd> is invoked, it remains in |
| 2639 |
effect until turned off. |
| 2640 |
</p> |
| 2641 |
|
| 2642 |
<div class="box-tip" style="margin-top: .5em;"> |
| 2643 |
<p class="tip"> |
| 2644 |
<span class="note">Note:</span> If you’re using the |
| 2645 |
<a href="docprocessing.html#docprocessing">document processing macros</a> |
| 2646 |
with |
| 2647 |
<a href="docprocessing.html#printstyle">PRINTSTYLE TYPEWRITE</a>, |
| 2648 |
mom underlines pseudo-italics by default. To change this behaviour, |
| 2649 |
use the special macro |
| 2650 |
<a href="docprocessing.html#typewrite-control">SLANT_MEANS_SLANT</a>. |
| 2651 |
</p> |
| 2652 |
</div> |
| 2653 |
|
| 2654 |
<!-- -SETBOLDER- --> |
| 2655 |
|
| 2656 |
<div class="macro-id-overline"> |
| 2657 |
<h3 id="setbolder" class="macro-id">Set amount of emboldening</h3> |
| 2658 |
</div> |
| 2659 |
|
| 2660 |
<div class="box-macro-args"> |
| 2661 |
Macro: <b>SETBOLDER</b> <kbd class="macro-args"><amount of emboldening, in machine units> | RESET</kbd> |
| 2662 |
</div> |
| 2663 |
|
| 2664 |
<p> |
| 2665 |
Emboldening of type is accomplished by printing characters twice; |
| 2666 |
the second printing is slightly offset from the first, effectively |
| 2667 |
“thickening” the character. SETBOLDER lets you set the |
| 2668 |
number of |
| 2669 |
<a href="definitions.html#units">machine units</a> |
| 2670 |
for the offset. Mom’s default is 700 units, which produces an |
| 2671 |
acceptable approximation of a bold font. If you want another |
| 2672 |
value—say, 500 units—you’d set it by entering |
| 2673 |
<br/> |
| 2674 |
<span class="pre-in-pp"> |
| 2675 |
.SETBOLDER 500 |
| 2676 |
</span> |
| 2677 |
If you change the emboldening offset and later want to set it back |
| 2678 |
to the mom default, do |
| 2679 |
<br/> |
| 2680 |
<span class="pre-in-pp"> |
| 2681 |
.SETBOLDER RESET |
| 2682 |
</span> |
| 2683 |
</p> |
| 2684 |
|
| 2685 |
<div class="box-tip"> |
| 2686 |
<p class="tip"> |
| 2687 |
<span class="note">Note:</span> By itself, SETBOLDER will not start |
| 2688 |
emboldening type; it merely tells mom what you want the emboldening |
| 2689 |
offset to be. To start emboldening, use the |
| 2690 |
<a href="definitions.html#inlines">inline escape</a> |
| 2691 |
<kbd><span class="nobr">\*[BOLDER]</span></kbd>. |
| 2692 |
</p> |
| 2693 |
</div> |
| 2694 |
|
| 2695 |
<!-- -\*[BOLDER]- --> |
| 2696 |
|
| 2697 |
<div class="macro-id-overline"> |
| 2698 |
<h3 id="bolder-inline" class="macro-id">Emboldening on/off</h3> |
| 2699 |
</div> |
| 2700 |
|
| 2701 |
<div class="box-macro-args"> |
| 2702 |
Inline: <kbd class="macro-args">\*[BOLDER]</kbd> |
| 2703 |
<br/> |
| 2704 |
Inline: <kbd class="macro-args">\*[BOLDERX]</kbd> |
| 2705 |
</div> |
| 2706 |
|
| 2707 |
<p> |
| 2708 |
<kbd class="macro-args">\*[BOLDER]</kbd> begins emboldening type. |
| 2709 |
<kbd class="macro-args"><span class="nobr">\*[BOLDERX]</span></kbd> turns the |
| 2710 |
feature off. Both are |
| 2711 |
<a href="definitions.html#inlines">inline escapes</a>, |
| 2712 |
therefore they should not appear as separate lines, but rather be |
| 2713 |
embedded in text lines, like this: |
| 2714 |
<br/> |
| 2715 |
<span class="pre-in-pp"> |
| 2716 |
Not \*[BOLDER]everything\*[BOLDERX] is as it seems. |
| 2717 |
</span> |
| 2718 |
Alternatively, if you wanted the whole line emboldened, |
| 2719 |
you’d do |
| 2720 |
<br/> |
| 2721 |
<span class="pre-in-pp"> |
| 2722 |
\*[BOLDER]Not everything is as it seems.\*[BOLDERX] |
| 2723 |
</span> |
| 2724 |
Once <kbd><span class="nobr">\*[BOLDER]</span></kbd> is invoked, it remains in |
| 2725 |
effect until turned off. |
| 2726 |
</p> |
| 2727 |
|
| 2728 |
<div class="box-tip"> |
| 2729 |
<p class="tip"> |
| 2730 |
<span class="note">Note:</span> If you’re using the |
| 2731 |
<a href="docprocessing.html#docprocessing">document processing macros</a> |
| 2732 |
with |
| 2733 |
<a href="docprocessing.html#printstyle">PRINTSTYLE TYPEWRITE</a>, |
| 2734 |
mom ignores <kbd>\*[BOLDER]</kbd> requests. |
| 2735 |
</p> |
| 2736 |
</div> |
| 2737 |
|
| 2738 |
<!-- -CONDENSE- --> |
| 2739 |
|
| 2740 |
<div class="macro-id-overline"> |
| 2741 |
<h3 id="condense" class="macro-id">Set percentage for pseudo-condensed type</h3> |
| 2742 |
</div> |
| 2743 |
|
| 2744 |
<div class="box-macro-args"> |
| 2745 |
Macro: <b>CONDENSE</b> <kbd class="macro-args"><pseudo-condense percentage></kbd> |
| 2746 |
</div> |
| 2747 |
|
| 2748 |
<p> |
| 2749 |
Pseudo-condensing of type is accomplished by reducing the width of |
| 2750 |
characters at a given point size without reducing their height, |
| 2751 |
effectively narrowing them so they look like condensed type. |
| 2752 |
CONDENSE tells mom what percentage of the normal character width you |
| 2753 |
want the characters to be condensed. |
| 2754 |
</p> |
| 2755 |
|
| 2756 |
<p> |
| 2757 |
Mom has no default value for CONDENSE, therefore you must set it |
| 2758 |
before using the |
| 2759 |
<a href="definitions.html#inlines">inline escape</a> |
| 2760 |
<kbd><a href="#cond-inline"><span class="nobr">\*[COND]</span></a></kbd>. |
| 2761 |
80 percent of the normal character width is a good value, and |
| 2762 |
you’d set it like this: |
| 2763 |
<br/> |
| 2764 |
<span class="pre-in-pp"> |
| 2765 |
.CONDENSE 80 |
| 2766 |
</span> |
| 2767 |
</p> |
| 2768 |
|
| 2769 |
<div class="box-tip"> |
| 2770 |
<p class="tip-top"> |
| 2771 |
<span class="note">Note:</span> By itself, CONDENSE will not start |
| 2772 |
pseudo-condensing type; it merely tells mom what percentage of the |
| 2773 |
normal character width you want characters to be condensed. To |
| 2774 |
start pseudo-condensing, use the |
| 2775 |
<a href="definitions.html#inlines">inline escape</a> |
| 2776 |
<kbd><span class="nobr">\*[COND]</span></kbd>. |
| 2777 |
</p> |
| 2778 |
|
| 2779 |
<p class="tip-bottom"> |
| 2780 |
<span class="additional-note">Additional note:</span> Make sure that |
| 2781 |
pseudo-condensing is off (with |
| 2782 |
<kbd><a href="#cond-inline"><span class="nobr">\*[CONDX]</span></a></kbd>) |
| 2783 |
before making any changes to the pseudo-condense percentage |
| 2784 |
with CONDENSE. |
| 2785 |
</p> |
| 2786 |
</div> |
| 2787 |
|
| 2788 |
<!-- -\*[COND]- --> |
| 2789 |
|
| 2790 |
<div class="macro-id-overline"> |
| 2791 |
<h3 id="cond-inline" class="macro-id">Pseudo-condensing on/off</h3> |
| 2792 |
</div> |
| 2793 |
|
| 2794 |
<div class="box-macro-args"> |
| 2795 |
Inline: <kbd class="macro-args">\*[COND]</kbd> |
| 2796 |
<br/> |
| 2797 |
Inline: <kbd class="macro-args">\*[CONDX]</kbd> |
| 2798 |
</div> |
| 2799 |
|
| 2800 |
<p> |
| 2801 |
<kbd>\*[COND]</kbd> begins pseudo-condensing type. |
| 2802 |
<kbd><span class="nobr">\*[CONDX]</span></kbd> turns the feature off. Both are |
| 2803 |
<a href="definitions.html#inlines">inline escapes</a>, |
| 2804 |
therefore they should not appear as separate lines, but rather be |
| 2805 |
embedded in text lines, like this: |
| 2806 |
<br/> |
| 2807 |
<span class="pre-in-pp"> |
| 2808 |
\*[COND]Not everything is as it seems.\*[CONDX] |
| 2809 |
</span> |
| 2810 |
<kbd><span class="nobr">\*[COND]</span></kbd> remains in effect until you turn it |
| 2811 |
off with <kbd><span class="nobr">\*[CONDX]</span></kbd>. |
| 2812 |
</p> |
| 2813 |
|
| 2814 |
<div class="box-important"> |
| 2815 |
<p class="tip"> |
| 2816 |
<span class="important">IMPORTANT:</span> You must turn |
| 2817 |
<kbd><span class="nobr">\*[COND]</span></kbd> off before making any changes to |
| 2818 |
the point size of your type, either via the |
| 2819 |
<a href="#ps">PT_SIZE</a> |
| 2820 |
macro or with the <kbd>\s</kbd> inline escape. If you wish |
| 2821 |
the new point size to be pseudo-condensed, simply re-invoke |
| 2822 |
<kbd><span class="nobr">\*[COND]</span></kbd> afterwards. Equally, |
| 2823 |
<kbd><span class="nobr">\*[COND]</span></kbd> must be turned off before changing |
| 2824 |
the condense percentage with |
| 2825 |
<kbd><a href="#condense">.CONDENSE</a></kbd>. |
| 2826 |
</p> |
| 2827 |
</div> |
| 2828 |
|
| 2829 |
<div class="box-tip"> |
| 2830 |
<p class="tip"> |
| 2831 |
<span class="note">Note:</span> If you’re using the |
| 2832 |
<a href="docprocessing.html#docprocessing">document processing macros</a> |
| 2833 |
with |
| 2834 |
<a href="docprocessing.html#printstyle">PRINTSTYLE TYPEWRITE</a>, |
| 2835 |
mom ignores <kbd>\*[COND]</kbd> requests. |
| 2836 |
</p> |
| 2837 |
</div> |
| 2838 |
|
| 2839 |
<!-- -EXTEND- --> |
| 2840 |
|
| 2841 |
<div class="macro-id-overline"> |
| 2842 |
<h3 id="extend" class="macro-id">Set percentage for pseudo-extended type</h3> |
| 2843 |
</div> |
| 2844 |
|
| 2845 |
<div class="box-macro-args"> |
| 2846 |
Macro: <b>EXTEND</b> <kbd class="macro-args"><pseudo-extend percentage></kbd> |
| 2847 |
</div> |
| 2848 |
|
| 2849 |
<p> |
| 2850 |
Pseudo-extending of type is accomplished by increasing the width of |
| 2851 |
characters at a given point size without increasing their height, |
| 2852 |
effectively widening them so they look like extended type. EXTEND |
| 2853 |
tells mom what percentage of the normal character width you want the |
| 2854 |
characters to be extended. |
| 2855 |
</p> |
| 2856 |
|
| 2857 |
<p> |
| 2858 |
Mom has no default value for EXTEND, therefore you must set it |
| 2859 |
before using the |
| 2860 |
<a href="definitions.html#inlines">inline escape</a> |
| 2861 |
<kbd><a href="#ext-inline"><span class="nobr">\*[EXT]</span></a></kbd>. 120% of |
| 2862 |
the normal character width is a good value, and you’d set it |
| 2863 |
like this: |
| 2864 |
<br/> |
| 2865 |
<span class="pre-in-pp"> |
| 2866 |
.EXTEND 120 |
| 2867 |
</span> |
| 2868 |
</p> |
| 2869 |
|
| 2870 |
<div class="box-tip"> |
| 2871 |
<p class="tip-top"> |
| 2872 |
<span class="note">Note:</span> By itself, EXTEND will not start |
| 2873 |
pseudo-extending type; it merely tells mom what percentage of the |
| 2874 |
normal character width you want characters to be extended. To start |
| 2875 |
pseudo-extending, use the |
| 2876 |
<a href="definitions.html#inlines">inline escape</a> |
| 2877 |
<kbd><span class="nobr">\*[EXT]</span></kbd>. |
| 2878 |
</p> |
| 2879 |
|
| 2880 |
<p class="tip-bottom"> |
| 2881 |
<span class="additional-note">Additional note:</span> Make sure that |
| 2882 |
pseudo-extending is off (with |
| 2883 |
<a href="#ext-inline"><kbd>\*[EXTX]</kbd></a>) |
| 2884 |
before making any changes to the pseudo-extend percentage |
| 2885 |
with EXTEND. |
| 2886 |
</p> |
| 2887 |
</div> |
| 2888 |
|
| 2889 |
<!-- -\*[EXT]- --> |
| 2890 |
|
| 2891 |
<div class="macro-id-overline"> |
| 2892 |
<h3 id="ext-inline" class="macro-id">Pseudo-extending on/off</h3> |
| 2893 |
</div> |
| 2894 |
|
| 2895 |
<div class="box-macro-args"> |
| 2896 |
Inline: <kbd class="macro-args">\*[EXT]</kbd> |
| 2897 |
<br/> |
| 2898 |
Inline: <kbd class="macro-args">\*[EXTX]</kbd> |
| 2899 |
</div> |
| 2900 |
|
| 2901 |
<p> |
| 2902 |
<kbd>\*[EXT]</kbd> begins pseudo-extending type. |
| 2903 |
<kbd><span class="nobr">\*[EXTX]</span></kbd> turns the feature off. Both are |
| 2904 |
<a href="definitions.html#inlines">inline escapes</a>, |
| 2905 |
therefore they should not appear as separate lines, but rather be |
| 2906 |
embedded in text lines, like this: |
| 2907 |
<br/> |
| 2908 |
<span class="pre-in-pp"> |
| 2909 |
\*[EXT]Not everything is as it seems.\*[EXTX] |
| 2910 |
</span> |
| 2911 |
<kbd>\*[EXT]</kbd> remains in effect until you turn it off with |
| 2912 |
<kbd><span class="nobr">\*[EXTX]</span></kbd>. |
| 2913 |
</p> <div class="box-important"> <p class="tip"> |
| 2914 |
<span class="important">IMPORTANT:</span> You must turn |
| 2915 |
<kbd><span class="nobr">\*[EXT]</span></kbd> off before making any changes to the |
| 2916 |
point size of your type, either via the |
| 2917 |
<a href="#ps">PT_SIZE</a> |
| 2918 |
macro or with the <kbd>\s</kbd> inline escape. If you wish |
| 2919 |
the new point size to be pseudo-extended, simply re-invoke |
| 2920 |
<kbd><span class="nobr">\*[EXT]</span></kbd> afterwards. Equally, |
| 2921 |
<kbd><span class="nobr">\*[EXT]</span></kbd> must be turned off before changing |
| 2922 |
the extend percentage with |
| 2923 |
<a href="#extend">EXTEND</a>. |
| 2924 |
</p> |
| 2925 |
</div> |
| 2926 |
<div class="box-tip"> |
| 2927 |
<p class="tip"> |
| 2928 |
<span class="note">Note:</span> If you’re using the |
| 2929 |
<a href="docprocessing.html#docprocessing">document processing macros</a> |
| 2930 |
with |
| 2931 |
<a href="docprocessing.html#printstyle">PRINTSTYLE TYPEWRITE</a>, |
| 2932 |
mom ignores <kbd><span class="nobr">\*[EXT]</span></kbd> requests. |
| 2933 |
</p> |
| 2934 |
</div> |
| 2935 |
|
| 2936 |
<!-- SMALLCAPS --> |
| 2937 |
|
| 2938 |
<div class="macro-id-overline"> |
| 2939 |
<h3 id="smallcaps" class="macro-id">Smallcaps</h3> |
| 2940 |
</div> |
| 2941 |
|
| 2942 |
<div class="box-macro-args"> |
| 2943 |
Macro: <b>SMALLCAPS</b> <kbd class="macro-args"><toggle></kbd> |
| 2944 |
</div> |
| 2945 |
|
| 2946 |
<p> |
| 2947 |
To begin setting type in pseudo-smallcaps, simply invoke |
| 2948 |
<kbd>.SMALLCAPS</kbd>. When you no longer want them, invoke |
| 2949 |
<kbd>SMALLCAPS OFF</kbd> (or <kbd>END</kbd>, <kbd>STOP</kbd>, |
| 2950 |
<kbd>DONE</kbd>, etc). If you are currently in a |
| 2951 |
<a href="definitions.html#filled">no-fill mode</a>, |
| 2952 |
(i.e. |
| 2953 |
<a href="#lrc">LEFT</a>, |
| 2954 |
<a href="#lrc">CENTER</a>, |
| 2955 |
or |
| 2956 |
<a href="#lrc">RIGHT</a>) |
| 2957 |
and you want the smallcaps to continue on the same line, |
| 2958 |
append a <kbd>\c</kbd> to the line, like this |
| 2959 |
<br/> |
| 2960 |
<span class="pre-in-pp"> |
| 2961 |
A line of type\c |
| 2962 |
.SMALLCAPS |
| 2963 |
with a few words in smallcaps. |
| 2964 |
.SMALLCAPS OFF |
| 2965 |
</span> |
| 2966 |
The line preceding <kbd>.SMALLCAPS OFF</kbd> should also have a |
| 2967 |
<kbd>\c</kbd> appended to it if you wish it to continue unbroken. |
| 2968 |
</p> |
| 2969 |
|
| 2970 |
<div class="box-tip"> |
| 2971 |
<p class="tip-top"> |
| 2972 |
<span class="note">Note:</span> |
| 2973 |
SMALLCAPS does not have an inline equivalent to |
| 2974 |
<a href="inlines.html#uc-lc"> |
| 2975 |
<span class="nobr"><kbd>\*[UC]</kbd> / <kbd>\*[LC]</kbd></span> |
| 2976 |
</a>. |
| 2977 |
Furthermore, if you’re using the |
| 2978 |
<a href="docprocessing.html#docprocessing">document processing macros</a> |
| 2979 |
with |
| 2980 |
<a href="docprocessing.html#printstyle">PRINTSTYLE TYPEWRITE</a>, |
| 2981 |
mom ignores SMALLCAPS. |
| 2982 |
</p> |
| 2983 |
|
| 2984 |
<p class="tip-bottom"> |
| 2985 |
Additionally, be aware that no automatic |
| 2986 |
<a href="definitions.html#kern">kerning</a> |
| 2987 |
takes place while pseudo-smallcaps are in effect. |
| 2988 |
</p> |
| 2989 |
</div> |
| 2990 |
|
| 2991 |
<div class="macro-id-overline"> |
| 2992 |
<h3 id="smallcaps-style" class="macro-id">Set size, weight, and width of smallcaps</h3> |
| 2993 |
</div> |
| 2994 |
|
| 2995 |
<div class="box-macro-args"> |
| 2996 |
Macro: <b>SMALLCAPS_STYLE</b> <kbd class="macro-args">SIZE <percentage> WEIGHT_ADJ <percentage> EXTEND <percentage></kbd> |
| 2997 |
</div> |
| 2998 |
|
| 2999 |
<p> |
| 3000 |
True smallcaps are not a font effect, but, like designer cuts of |
| 3001 |
bold, condensed, and extended, actual fonts provided with some |
| 3002 |
families. It is highly recommended that you acquire real smallcaps |
| 3003 |
fonts rather than relying on mom’s pseudo version. |
| 3004 |
</p> |
| 3005 |
|
| 3006 |
<p> |
| 3007 |
To achieve a reasonable facsimile of designer-cut smallcaps fonts, |
| 3008 |
mom needs to know the percentage of regular caps at a given point |
| 3009 |
size by which to reduce the small caps. To make adjustments for |
| 3010 |
the difference in weight and width of the smaller caps, she also |
| 3011 |
needs to know by how much to embolden (“fatten”) the |
| 3012 |
smallcaps, and by how much to increase their width. |
| 3013 |
</p> |
| 3014 |
|
| 3015 |
<p> |
| 3016 |
All three arguments to SMALLCAPS_STYLE reflect a |
| 3017 |
percentage of the point size in effect when |
| 3018 |
<a href="#smallcaps">SMALLCAPS</a> |
| 3019 |
is invoked. Mom’s defaults for pseudo-smallcaps are: |
| 3020 |
<br/> |
| 3021 |
<span class="pre-in-pp"> |
| 3022 |
SIZE = 74% |
| 3023 |
WEIGHT_ADJ = .3% |
| 3024 |
EXTEND = 5% |
| 3025 |
</span> |
| 3026 |
To change any or all of the defaults, you might enter |
| 3027 |
<br/> |
| 3028 |
<span class="pre-in-pp"> |
| 3029 |
.SMALLCAPS_STYLE SIZE 80 WEIGHT_ADJ .25 EXTEND 3 |
| 3030 |
</span> |
| 3031 |
or, more readably, |
| 3032 |
<br/> |
| 3033 |
<span class="pre-in-pp"> |
| 3034 |
.SMALLCAPS_STYLE \ |
| 3035 |
SIZE 80 \ |
| 3036 |
WEIGHT_ADJ .25 \ |
| 3037 |
EXTEND 3 |
| 3038 |
</span> |
| 3039 |
Note that you do not have to give SMALLCAPS_STYLE all three |
| 3040 |
arguments, and that the arguments may be entered in any order. Any |
| 3041 |
arguments you omit will remain at their former value. |
| 3042 |
</p> |
| 3043 |
|
| 3044 |
<div class="rule-short" style="margin-bottom: 24px;"><hr/></div> |
| 3045 |
|
| 3046 |
<!-- ==================================================================== --> |
| 3047 |
|
| 3048 |
<h2 id="aldrld-intro" class="macro-group">Vertical movements</h2> |
| 3049 |
|
| 3050 |
The two macros in this section allow you to move down or up on the |
| 3051 |
page relative to the current |
| 3052 |
<a href="definitions.html#baseline">baseline</a>. |
| 3053 |
|
| 3054 |
<div id="index-aldrld" class="macro-list-container"> |
| 3055 |
<h3 class="macro-list">Vertical movements macros</h3> |
| 3056 |
<ul class="macro-list"> |
| 3057 |
<li><a href="#ald">ALD</a> – Advance Lead</li> |
| 3058 |
<li><a href="#rld">RLD</a> – Reverse Lead</li> |
| 3059 |
<li>(see also <a href="#space">SPACE</a>)</li> |
| 3060 |
</ul> |
| 3061 |
</div> |
| 3062 |
|
| 3063 |
<!-- -ALD- --> |
| 3064 |
|
| 3065 |
<div class="macro-id-overline"> |
| 3066 |
<h3 id="ald" class="macro-id">Advance Lead (move downward)</h3> |
| 3067 |
</div> |
| 3068 |
|
| 3069 |
<div class="box-macro-args"> |
| 3070 |
Macro: <b>ALD</b> <kbd class="macro-args"><distance to move downward></kbd> |
| 3071 |
</div> |
| 3072 |
<p class="requires"> |
| 3073 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3074 |
</p> |
| 3075 |
|
| 3076 |
<p> |
| 3077 |
ALD takes one argument: the distance to move downward on the page |
| 3078 |
relative to the current vertical position. |
| 3079 |
</p> |
| 3080 |
|
| 3081 |
<p> |
| 3082 |
ALD causes a line break, which means the argument is added to the |
| 3083 |
current |
| 3084 |
<a href="definitions.html#leading">leading</a>. |
| 3085 |
For example, if your current leading is 12 points, a line of type |
| 3086 |
after <kbd>.ALD 6p</kbd> will be 18 points distant from the previous |
| 3087 |
line. |
| 3088 |
</p> |
| 3089 |
|
| 3090 |
<p> |
| 3091 |
If you wish to advance the argument's distance <i>from the |
| 3092 |
current baseline,</i> it should be preceded by |
| 3093 |
<a href="#el">EL</a>. |
| 3094 |
For example, |
| 3095 |
<br/> |
| 3096 |
<span class="pre-in-pp"> |
| 3097 |
.LEFT |
| 3098 |
.LS 12 |
| 3099 |
First line. |
| 3100 |
Second line.\c |
| 3101 |
.EL |
| 3102 |
.ALD 15p |
| 3103 |
Third line. |
| 3104 |
</span> |
| 3105 |
would place the third line exactly 15 points beneath the second. |
| 3106 |
</p> |
| 3107 |
|
| 3108 |
<p> |
| 3109 |
ALD requires a unit of measure. Decimal fractions are allowed, and |
| 3110 |
values may be combined. Therefore, to move down on the page by 1/4 |
| 3111 |
of an inch, you could enter either |
| 3112 |
<br/> |
| 3113 |
<span class="pre-in-pp"> |
| 3114 |
.ALD .25i |
| 3115 |
</span> |
| 3116 |
or |
| 3117 |
<br/> |
| 3118 |
<span class="pre-in-pp"> |
| 3119 |
.ALD 1P+6p |
| 3120 |
</span> |
| 3121 |
As the mnemonic |
| 3122 |
(<span style="text-decoration: underline;">A</span>dvance <span style="text-decoration: underline;">L</span>ea<span style="text-decoration: underline;">D</span>) |
| 3123 |
suggests, you’ll most often use ALD with |
| 3124 |
<a href="definitions.html#picaspoints">points</a> |
| 3125 |
of lead. |
| 3126 |
</p> |
| 3127 |
|
| 3128 |
<div class="box-tip"> |
| 3129 |
<p class="tip"> |
| 3130 |
<span class="note">Note:</span> if you want to use ALD at the top |
| 3131 |
of a page (i.e. to advance to the starting position of type on a |
| 3132 |
page), combine the value you want with <kbd>-1v</kbd> (minus one |
| 3133 |
line space), like this: |
| 3134 |
<br/> |
| 3135 |
<span class="pre-in-pp"> |
| 3136 |
.ALD 1i-1v |
| 3137 |
</span> |
| 3138 |
At the top of a page, this will advance one inch from the top edge |
| 3139 |
of the paper. Without the -1v, the same command would advance one |
| 3140 |
inch from the top of the page plus the distance of one line space. |
| 3141 |
</p> |
| 3142 |
</div> |
| 3143 |
|
| 3144 |
<!-- -RLD- --> |
| 3145 |
|
| 3146 |
<div class="macro-id-overline"> |
| 3147 |
<h3 id="rld" class="macro-id">Reverse Lead (move upward)</h3> |
| 3148 |
</div> |
| 3149 |
|
| 3150 |
<div class="box-macro-args"> |
| 3151 |
Macro: <b>RLD</b> <kbd class="macro-args"><distance to move upward></kbd> |
| 3152 |
</div> |
| 3153 |
<p class="requires"> |
| 3154 |
• Requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3155 |
</p> |
| 3156 |
|
| 3157 |
<p> |
| 3158 |
RLD takes one argument: the distance to move upward on the page |
| 3159 |
relative to the current vertical position. |
| 3160 |
</p> |
| 3161 |
|
| 3162 |
<p> |
| 3163 |
RLD causes a line break, which means the argument is subtracted from |
| 3164 |
the current |
| 3165 |
<a href="definitions.html#leading">leading</a>. |
| 3166 |
For example, if your current leading is 12 points, a line of type |
| 3167 |
after <kbd>.RLD 6p</kbd> will be 6 points distant from the previous |
| 3168 |
line. |
| 3169 |
</p> |
| 3170 |
|
| 3171 |
<p> |
| 3172 |
If you wish to move upward <i>from the current baseline</i> by the |
| 3173 |
argument's distance, RLD should be preceded by |
| 3174 |
<a href="#el">EL</a>. |
| 3175 |
For example, |
| 3176 |
<br/> |
| 3177 |
<span class="pre-in-pp"> |
| 3178 |
.LEFT |
| 3179 |
.LS 18 |
| 3180 |
First line. |
| 3181 |
Second line.\c |
| 3182 |
.EL |
| 3183 |
.RLD 3p |
| 3184 |
Third line. |
| 3185 |
</span> |
| 3186 |
would raise the third line by 3 points relative to the baseline of |
| 3187 |
the second line. Put another way, if the <kbd>.RLD</kbd> in the |
| 3188 |
example were 18p, the third line would fall on the same baseline as |
| 3189 |
the second. |
| 3190 |
</p> |
| 3191 |
|
| 3192 |
<p> |
| 3193 |
RLD requires a unit of measure. Decimal fractions are allowed, and |
| 3194 |
values may be combined. Therefore, to move up on the page by 1/4 of |
| 3195 |
an inch, you could enter either |
| 3196 |
<br/> |
| 3197 |
<span class="pre-in-pp"> |
| 3198 |
.RLD .25i |
| 3199 |
</span> |
| 3200 |
or |
| 3201 |
<span class="pre-in-pp"> |
| 3202 |
.RLD 1P+6p |
| 3203 |
</span> |
| 3204 |
As the mnemonic |
| 3205 |
(<span style="text-decoration: underline;">R</span>everse <span style="text-decoration: underline;">L</span>ea<span style="text-decoration: underline;">D</span>) |
| 3206 |
suggests, you’ll most often use RLD with |
| 3207 |
<a href="definitions.html#picaspoints">points</a> |
| 3208 |
of lead. |
| 3209 |
</p> |
| 3210 |
|
| 3211 |
<div class="rule-short" style="margin-bottom: 24px;"><hr/></div> |
| 3212 |
|
| 3213 |
<!-- ==================================================================== --> |
| 3214 |
|
| 3215 |
<h2 id="tabs-intro" class="macro-group">Tabs</h2> |
| 3216 |
|
| 3217 |
<p> |
| 3218 |
Mom provides two different kinds of tab setup: typesetting tabs |
| 3219 |
and string tabs. Neither one has anything to do with the tab key |
| 3220 |
on your keyboard, and both are utterly divorced from groff’s |
| 3221 |
notion of tabs. I recommend reading this section carefully in order |
| 3222 |
to understand how mom handles tabs. |
| 3223 |
</p> |
| 3224 |
|
| 3225 |
<div class="box-tip"> |
| 3226 |
<p class="tip"> |
| 3227 |
<span class="note">Note:</span> see the section |
| 3228 |
<a href="docprocessing.html#behaviour">Typesetting macros during document processing</a> |
| 3229 |
for reassuring information on the use of tabs during |
| 3230 |
<a href="docprocessing.html#docprocessing">document processing</a>. |
| 3231 |
</p> |
| 3232 |
</div> |
| 3233 |
|
| 3234 |
<h3 id="typesetting-tabs" class="docs">Typesetting tabs</h3> |
| 3235 |
|
| 3236 |
<p> |
| 3237 |
Typesetting tabs are defined by both an indent from the left margin |
| 3238 |
and a line length. This is quite different from typewriter-style |
| 3239 |
tab stops (the groff norm) that only define the left indent. In |
| 3240 |
conjunction with the |
| 3241 |
<a href="#multicolumns-intro">multi-column macros</a>, |
| 3242 |
typesetting tabs significantly facilitate tabular and columnar work. |
| 3243 |
</p> |
| 3244 |
|
| 3245 |
<p> |
| 3246 |
Typesetting tabs are created with the |
| 3247 |
<a href="#tab-set">TAB_SET</a> |
| 3248 |
macro. TAB_SET identifies the tab (by number), establishes its left |
| 3249 |
indent and line length, and optionally sets a quad direction and |
| 3250 |
fill mode. After tabs have been created with TAB_SET, they can be |
| 3251 |
called at any time with the |
| 3252 |
<a href="#tab">TAB</a> |
| 3253 |
macro. |
| 3254 |
</p> |
| 3255 |
|
| 3256 |
<div class="examples-container"> |
| 3257 |
<h3 id="typesetting-tabs-tut" class="docs notes">Quickie tutorial on typesetting tabs</h3> |
| 3258 |
|
| 3259 |
<p style="margin-top: .5em;"> |
| 3260 |
Say you want to set up three tabs to produce an employee evaluation |
| 3261 |
that looks something like this: |
| 3262 |
</p> |
| 3263 |
|
| 3264 |
<div class="box-code" style="padding-bottom: 0;"> |
| 3265 |
<span id="typsetting-tabs-sample" class="pre-in-pp" style="color: #302419"> |
| 3266 |
CRITERION EVALUATION COMMENTS |
| 3267 |
|
| 3268 |
Service Good Many clients specifically request |
| 3269 |
support from Joe by name. |
| 3270 |
|
| 3271 |
Punctuality Satisfactory Tends to arrive after 8:00am, but |
| 3272 |
often works through lunch hour. |
| 3273 |
|
| 3274 |
Team spirit Needs work Persistently gives higher priority |
| 3275 |
to helping clients than respecting |
| 3276 |
organizational hierarchy. |
| 3277 |
</span> |
| 3278 |
</div> |
| 3279 |
|
| 3280 |
<p> |
| 3281 |
You want the first tab, CRITERION, |
| 3282 |
</p> |
| 3283 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 3284 |
<li>to begin at the left margin of the page – i.e. no indent</li> |
| 3285 |
<li>to have a line length of 5 picas</li> |
| 3286 |
<li>to be set flush left</li> |
| 3287 |
</ul> |
| 3288 |
|
| 3289 |
<p> |
| 3290 |
Tabs must be numbered, and each has to be set up with a separate |
| 3291 |
<a href="#tab-set">TAB_SET</a> |
| 3292 |
line. Therefore, to set up tab 1, you enter |
| 3293 |
<br/> |
| 3294 |
<span class="pre-in-pp"> |
| 3295 |
.TAB_SET 1 0 5P L |
| 3296 |
| | | | |
| 3297 |
tab #--+ | | +--direction |
| 3298 |
| | |
| 3299 |
indent--+ +--length |
| 3300 |
</span> |
| 3301 |
You want the second tab, EVALUATION, |
| 3302 |
</p> |
| 3303 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 3304 |
<li>to begin 8 picas from the left margin</li> |
| 3305 |
<li>to have a length of 9 picas</li> |
| 3306 |
<li>to be set centered</li> |
| 3307 |
</ul> |
| 3308 |
|
| 3309 |
<p> |
| 3310 |
You set it up like this: |
| 3311 |
<br/> |
| 3312 |
<span class="pre-in-pp"> |
| 3313 |
.TAB_SET 2 8P 9P C |
| 3314 |
| | | | |
| 3315 |
tab #--+ | | +--direction |
| 3316 |
| | |
| 3317 |
indent--+ +--length |
| 3318 |
</span> |
| 3319 |
You want the third tab, COMMENTS, |
| 3320 |
</p> |
| 3321 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 3322 |
<li>to begin 19 picas from the left margin</li> |
| 3323 |
<li>to have a length of 17 picas</li> |
| 3324 |
<li>to be set flush left, <a href="definitions.html#filled">filled</a></li> |
| 3325 |
</ul> |
| 3326 |
|
| 3327 |
<p> |
| 3328 |
The setup looks like this: |
| 3329 |
<br/> |
| 3330 |
<span class="pre-in-pp"> |
| 3331 |
.TAB_SET 3 19P 17P L QUAD |
| 3332 |
| | | | | |
| 3333 |
| | | | +--fill output lines |
| 3334 |
| | | | |
| 3335 |
tab #--+ | | +--direction |
| 3336 |
| | |
| 3337 |
indent--+ +--length |
| 3338 |
</span> |
| 3339 |
Once the tabs are set up, you can call them in one of two ways: |
| 3340 |
</p> |
| 3341 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 3342 |
<li>with <kbd><a href="#tab">.TAB</a></kbd> (passing the tab |
| 3343 |
number as an argument), which breaks the current line, |
| 3344 |
advances one linespace and calls the tab.</li> |
| 3345 |
<li>with <kbd><a href="#tn">.TN</a></kbd> (Tab Next), which keeps |
| 3346 |
you on the current line and moves over to the next |
| 3347 |
tab in sequence (i.e. from 1 to 2, 2 to 3, etc.), or, more |
| 3348 |
conveniently, with the |
| 3349 |
<kbd><a href="#tn">\*[TB+]</a></kbd> |
| 3350 |
<a href="definitions.html#inlines">inline escape</a></li> |
| 3351 |
</ul> |
| 3352 |
|
| 3353 |
<p> |
| 3354 |
To exit from tabs and restore your original left margin, line |
| 3355 |
length, quad direction and fill mode, use |
| 3356 |
<kbd><a href="#tq">.TQ</a></kbd> |
| 3357 |
(Tab Quit). |
| 3358 |
</p> |
| 3359 |
|
| 3360 |
<p> |
| 3361 |
Here’s how the input for our sample employee evaluation looks |
| 3362 |
(with some introductory parameters): |
| 3363 |
</p> |
| 3364 |
|
| 3365 |
<div class="examples" style="margin-bottom: 0px;">Code:</div> |
| 3366 |
<div class="box-code" style="height: 324px; padding-bottom: 18px; overflow: auto;"> |
| 3367 |
<span class="pre-in-pp"> |
| 3368 |
.PAGE 8.5i 11i 1i 1i 1i |
| 3369 |
.FAMILY T |
| 3370 |
.FT R |
| 3371 |
.PT_SIZE 14 |
| 3372 |
.LS 16 |
| 3373 |
.QUAD LEFT |
| 3374 |
.KERN |
| 3375 |
.HY OFF |
| 3376 |
.SS 0 |
| 3377 |
.TAB_SET 1 0 5P L |
| 3378 |
.TAB_SET 2 8P 9P C |
| 3379 |
.TAB_SET 3 19P 17P L QUAD |
| 3380 |
.TAB 1 |
| 3381 |
CRITERION\*[TB+] |
| 3382 |
EVALUATION\*[TB+] |
| 3383 |
COMMENTS |
| 3384 |
.SP |
| 3385 |
.TAB 1 |
| 3386 |
Service\*[TB+] |
| 3387 |
Good\*[TB+] |
| 3388 |
Many clients specifically request support from Joe by name. |
| 3389 |
.SP |
| 3390 |
.TAB 1 |
| 3391 |
Punctuality\*[TB+] |
| 3392 |
Satisfactory\*[TB+] |
| 3393 |
Tends to arrive after 8:00am, but often works through lunch hour. |
| 3394 |
.SP |
| 3395 |
.TAB 1 |
| 3396 |
Team spirit\*[TB+] |
| 3397 |
Needs work\*[TB+] |
| 3398 |
Persistently gives higher priority to helping clients |
| 3399 |
than respecting organizational hierarchy. |
| 3400 |
.TQ |
| 3401 |
</span> |
| 3402 |
</div> |
| 3403 |
|
| 3404 |
<p> |
| 3405 |
Try setting this up and processing it with |
| 3406 |
<br/> |
| 3407 |
<span class="pre-in-pp"> |
| 3408 |
pdfmom filename.mom > filename.pdf |
| 3409 |
</span> |
| 3410 |
then previewing the .pdf file. Notice how <kbd>.TN</kbd> |
| 3411 |
simply moves over to the next tab, while the combination |
| 3412 |
<kbd>.SP/.TAB 1</kbd> breaks the line, advances by one extra |
| 3413 |
linespace, and calls the first tab. |
| 3414 |
</p> |
| 3415 |
|
| 3416 |
<p> |
| 3417 |
Notice, too, how the <kbd>QUAD</kbd> argument passed to tab 3 means |
| 3418 |
you don’t have to worry about the length of |
| 3419 |
<a href="definitions.html#inputline">input lines</a>; |
| 3420 |
mom |
| 3421 |
<a href="definitions.html#filled">fills</a> |
| 3422 |
the tab and sets the type flush left. |
| 3423 |
</p> |
| 3424 |
</div> |
| 3425 |
|
| 3426 |
<h3 id="string-tabs" class="docs">String tabs (autotabs)</h3> |
| 3427 |
|
| 3428 |
<p> |
| 3429 |
String tabs let you mark off tab positions with |
| 3430 |
<a href="definitions.html#inlines">inline escapes</a> |
| 3431 |
embedded in |
| 3432 |
<a href="definitions.html#inputline">input lines</a>. |
| 3433 |
Left indents and line lengths are calculated from the beginning and |
| 3434 |
end positions of the marks. This is especially useful when tab |
| 3435 |
indents and lengths need to be determined from the text that goes in |
| 3436 |
each tab. |
| 3437 |
</p> |
| 3438 |
|
| 3439 |
<p> |
| 3440 |
Setting up string tabs is a two-step procedure. First, you enter an |
| 3441 |
input line in which you mark off where you want tabs to begin and |
| 3442 |
end. (This is often best done in conjunction with the |
| 3443 |
<a href="goodies.html#silent">SILENT</a> |
| 3444 |
macro.) |
| 3445 |
</p> |
| 3446 |
|
| 3447 |
<p> |
| 3448 |
Next, you invoke the |
| 3449 |
<a href="#st">ST</a> |
| 3450 |
macro for every string tab you defined, and optionally pass quad and |
| 3451 |
fill information to it. That done, string tabs are called with the |
| 3452 |
<a href="#tab">TAB</a> |
| 3453 |
macro, just like typesetting tabs. |
| 3454 |
</p> |
| 3455 |
|
| 3456 |
<p> |
| 3457 |
In combination with the |
| 3458 |
<a href="goodies.html#pad">PAD</a> |
| 3459 |
macro and the groff inline escape |
| 3460 |
<kbd><a href="inlines.html#inline-horizontal-groff">\h</a></kbd> |
| 3461 |
(move horizontally across the page) or mom’s |
| 3462 |
<kbd><a href="inlines.html#inline-horizontal-mom">\*[FWD <distance>]</a></kbd> |
| 3463 |
(move forward) inline, string tabs provide tremendous flexibility in |
| 3464 |
setting up complex tab structures. |
| 3465 |
</p> |
| 3466 |
|
| 3467 |
<div class="examples-container"> |
| 3468 |
<h3 id="string-tabs-tut" class="docs notes">Quickie tutorial on string tabs</h3> |
| 3469 |
<p style="margin-top: .5em;"> |
| 3470 |
Say you want to set up tabs for the |
| 3471 |
<a href="#typsetting-tabs-sample">employee evaluation form</a> |
| 3472 |
used as an example in the |
| 3473 |
<a href="#typesetting-tabs-tut">typesetting tabs tutorial</a>. |
| 3474 |
This time, though, you want to play around with the point size of |
| 3475 |
type, so you can’t know exactly how long the tabs will be or |
| 3476 |
where they should start. All you know is |
| 3477 |
</p> |
| 3478 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 3479 |
<li>CRITERION is the longest line in tab 1</li> |
| 3480 |
<li>EVALUATION is the longest line in tab 2</li> |
| 3481 |
<li>tab 3 should extend to the current right margin</li> |
| 3482 |
<li>you want a 1 pica gutter between each tab</li> |
| 3483 |
</ul> |
| 3484 |
|
| 3485 |
<p> |
| 3486 |
This is an ideal job for string tabs. |
| 3487 |
</p> |
| 3488 |
|
| 3489 |
<p> |
| 3490 |
The first thing you need for string tabs is an |
| 3491 |
<a href="definitions.html#inputline">input line</a> |
| 3492 |
with tab positions marked on it. Tabs are marked with the |
| 3493 |
<a href="definitions.html#inlines">inline escapes</a> |
| 3494 |
<a href="#inline-st"><kbd><span class="nobr">\*[ST<n>]</span></kbd></a> |
| 3495 |
and |
| 3496 |
<a href="#inline-st"><kbd><span class="nobr">\*[ST<n>X]</span></kbd></a>, |
| 3497 |
where <kbd><n></kbd> |
| 3498 |
is the number you want the tab to have. (In this example, we |
| 3499 |
enclose the input line with the |
| 3500 |
<a href="goodies.html#silent">SILENT</a> |
| 3501 |
macro so the line doesn’t print. We also use the |
| 3502 |
<a href="goodies.html#pad">PAD</a> |
| 3503 |
macro to permit defining tab 3 as simply “the amount of space |
| 3504 |
remaining on the input line.”) |
| 3505 |
</p> |
| 3506 |
|
| 3507 |
<p> |
| 3508 |
The setup looks like this: |
| 3509 |
</p> |
| 3510 |
|
| 3511 |
<div class="examples" style="margin-bottom: 0px;">Code:</div> |
| 3512 |
|
| 3513 |
<div class="box-code"> |
| 3514 |
<span class="pre-in-pp"> |
| 3515 |
.SILENT |
| 3516 |
.PAD "\*[ST1]CRITERION\*[ST1X]\*[FWD 12p]\*[ST2]EVALUATION\*[ST2X]\*[FWD 12p]\*[ST3]#\*[ST3X]" |
| 3517 |
.SILENT OFF |
| 3518 |
</span> |
| 3519 |
</div> |
| 3520 |
|
| 3521 |
<p> |
| 3522 |
The long line after <kbd>.PAD</kbd> looks scary, but |
| 3523 |
it isn’t really. Here’s what it means when broken down |
| 3524 |
into its component parts: |
| 3525 |
</p> |
| 3526 |
<ul style="margin-bottom: -1em;"> |
| 3527 |
<li>The longest line in tab 1 is “CRITERION”, so we |
| 3528 |
enclose CRITERION with begin/end markers for string tab 1: |
| 3529 |
<br/> |
| 3530 |
<span class="pre-in-pp" style="margin-bottom: -.25em;"> |
| 3531 |
\*[ST1]CRITERION\*[ST1X] |
| 3532 |
</span> |
| 3533 |
</li> |
| 3534 |
<li>We want a 1 pica (12 points) gutter between tab 1 and 2, |
| 3535 |
so we insert 12 points of space with <span class="nobr">\*[FWD 12p]:</span> |
| 3536 |
<br/> |
| 3537 |
<span class="pre-in-pp" style="margin-bottom: -.25em;"> |
| 3538 |
\*[FWD 12p] |
| 3539 |
</span> |
| 3540 |
</li> |
| 3541 |
<li>The longest line in tab 2 is “EVALUATION”, so |
| 3542 |
we enclose EVALUATION with begin/end markers for string |
| 3543 |
tab 2: |
| 3544 |
<span class="pre-in-pp" style="margin-bottom: -.25em;"> |
| 3545 |
\*[ST2]EVALUATION\*[ST2X] |
| 3546 |
</span> |
| 3547 |
</li> |
| 3548 |
<li>We want 1 pica (12 points) between tab 2 and 3, so we |
| 3549 |
insert it with: |
| 3550 |
<br/> |
| 3551 |
<span class="pre-in-pp" style="margin-bottom: -.25em;"> |
| 3552 |
\*[FWD 12p] |
| 3553 |
</span> |
| 3554 |
</li> |
| 3555 |
<li>We want tab 3 to be as long as whatever space remains on |
| 3556 |
the current line length, so we enclose the |
| 3557 |
<a href="goodies.html#pad-marker">pad marker</a> |
| 3558 |
(#) with begin/end markers for string tab 3: |
| 3559 |
<span class="pre-in-pp"> |
| 3560 |
\*[ST3]#\*[ST3X] |
| 3561 |
</span> |
| 3562 |
</li> |
| 3563 |
</ul> |
| 3564 |
|
| 3565 |
<p> |
| 3566 |
The tabs are now defined, but they require |
| 3567 |
<a href="definitions.html#quad">quad direction</a> |
| 3568 |
and |
| 3569 |
<a href="definitions.html#filled">fill</a> |
| 3570 |
information. For each string tab defined above, enter a separate |
| 3571 |
<kbd><a href="#st">.ST</a></kbd> |
| 3572 |
line, like this: |
| 3573 |
<br/> |
| 3574 |
<span class="pre-in-pp"> |
| 3575 |
.ST 1 L |
| 3576 |
.ST 2 L |
| 3577 |
.ST 3 L QUAD |
| 3578 |
| | | |
| 3579 |
| | +--fill output lines |
| 3580 |
| | |
| 3581 |
tab #--+ +--direction |
| 3582 |
</span> |
| 3583 |
From here on in, you call the tabs with |
| 3584 |
<kbd><a href="#tab">.TAB</a></kbd>, |
| 3585 |
<kbd><a href="#tn">.TN</a></kbd>, |
| 3586 |
or |
| 3587 |
<a href="#tn"><kbd><span class="nobr">\*[TB+]</span></kbd></a> |
| 3588 |
just like typesetting tabs (see |
| 3589 |
<a href="#typesetting-tabs-tut">typesetting tabs tutorial</a>). |
| 3590 |
</p> |
| 3591 |
|
| 3592 |
<p> |
| 3593 |
Here’s the complete setup and entry for the sample employee |
| 3594 |
evaluation form utilizing string tabs. |
| 3595 |
</p> |
| 3596 |
|
| 3597 |
<div class="examples" style="margin-bottom: 0px;">Code:</div> |
| 3598 |
<div class="box-code" style="height: 324px; padding-bottom: 18px; overflow: scroll;"> |
| 3599 |
<span class="pre-in-pp"> |
| 3600 |
.PAGE 8.5i 11i 1i 1i 1i |
| 3601 |
.FAMILY T |
| 3602 |
.FT R |
| 3603 |
.PT_SIZE 14 |
| 3604 |
.LS 16 |
| 3605 |
.QUAD LEFT |
| 3606 |
.KERN |
| 3607 |
.HY OFF |
| 3608 |
.SS 0 |
| 3609 |
.SILENT |
| 3610 |
.PAD "\*[ST1]CRITERION\*[ST1X]\*[FWD 12p]\*[ST2]EVALUATION\*[ST2X]\*[FWD 12p]\*[ST3]#\*[ST3X]" |
| 3611 |
.SILENT OFF |
| 3612 |
.ST 1 L |
| 3613 |
.ST 2 L |
| 3614 |
.ST 3 L QUAD |
| 3615 |
.TAB 1 |
| 3616 |
CRITERION\*[TB+] |
| 3617 |
EVALUATION\*[TB+] |
| 3618 |
COMMENTS |
| 3619 |
.SP |
| 3620 |
.TAB 1 |
| 3621 |
Service\*[TB+] |
| 3622 |
Good\*[TB+] |
| 3623 |
Many clients specifically request support from Joe by name. |
| 3624 |
.SP |
| 3625 |
.TAB 1 |
| 3626 |
Punctuality\*[TB+] |
| 3627 |
Satisfactory\*[TB+] |
| 3628 |
Tends to arrive after 8:00am, but often works through lunch hour. |
| 3629 |
.SP |
| 3630 |
.TAB 1 |
| 3631 |
Team spirit\*[TB+] |
| 3632 |
Needs work\*[TB+] |
| 3633 |
Persistently gives higher priority to helping clients |
| 3634 |
than respecting organizational hierarchy. |
| 3635 |
.TQ |
| 3636 |
</span> |
| 3637 |
</div> |
| 3638 |
|
| 3639 |
<p> |
| 3640 |
Try setting this up and processing it with |
| 3641 |
<br/> |
| 3642 |
<span class="pre-in-pp"> |
| 3643 |
pdfmom filename.mom > filename.pdf |
| 3644 |
</span> |
| 3645 |
and previewing the .pdf file. |
| 3646 |
</p> |
| 3647 |
|
| 3648 |
<p> |
| 3649 |
Now, change the point size of the above sample to 12 and preview it |
| 3650 |
again. You’ll see that the tab structure remains identical |
| 3651 |
(tab 1=CRITERION, tab 2=EVALUATION, tab 3=space remaining, and the |
| 3652 |
gutter between tabs is still 1 pica), while the position and length |
| 3653 |
of the tabs have altered because of the new point size. |
| 3654 |
</p> |
| 3655 |
|
| 3656 |
<p> |
| 3657 |
Now try increasing the gutters to 2 picas |
| 3658 |
(<kbd><span class="nobr">\*[FWD 24p]</span></kbd> or |
| 3659 |
<kbd><span class="nobr">\*[FWD 2P]</span></kbd> instead of |
| 3660 |
<kbd><span class="nobr">\*[FWD 12p]</span></kbd>). Preview the file again, |
| 3661 |
and notice how the tab structure remains the same, but the gutters |
| 3662 |
are wider. |
| 3663 |
</p> |
| 3664 |
</div> |
| 3665 |
|
| 3666 |
<div id="index-tabs" class="macro-list-container"> |
| 3667 |
<h3 class="macro-list">Tabs macros</h3> |
| 3668 |
|
| 3669 |
<ul class="macro-list"> |
| 3670 |
<li><a href="#tab-set">TAB_SET</a> – create typesetting tabs</li> |
| 3671 |
<li><a href="#inline-st">\*[ST]...\*[STX]</a> – inline escapes for marking String Tabs</li> |
| 3672 |
<li><a href="#st">ST</a> – set String Tabs</li> |
| 3673 |
<li><a href="#tab">TAB</a> – call tabs</li> |
| 3674 |
<li><a href="#tn">TN</a> – Tab Next; call next tab in sequence</li> |
| 3675 |
<li><a href="#tn">\*[TB+]</a> – inline escape to call next tab in sequence</li> |
| 3676 |
<li><a href="#tq">TQ</a> – Tab Quit</li> |
| 3677 |
</ul> |
| 3678 |
|
| 3679 |
</div> |
| 3680 |
|
| 3681 |
<!-- -TAB_SET- --> |
| 3682 |
|
| 3683 |
<div class="macro-id-overline"> |
| 3684 |
<h3 id="tab-set" class="macro-id">Set up typesetting tabs</h3> |
| 3685 |
</div> |
| 3686 |
|
| 3687 |
<div class="box-macro-args"> |
| 3688 |
Macro: <b>TAB_SET</b> <kbd class="macro-args"><tab number> <indent> <length> L | R | C | J [ QUAD ]</kbd> |
| 3689 |
</div> |
| 3690 |
<p class="requires"> |
| 3691 |
• <kbd style="font-style: normal;"><indent></kbd> and <kbd style="font-style: normal;"><length></kbd> require a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 3692 |
</p> |
| 3693 |
|
| 3694 |
<p style="margin-bottom: -.5em;"> |
| 3695 |
TAB_SET creates typesetting tabs that later can be called with |
| 3696 |
<kbd><a href="#tab">.TAB</a></kbd>. |
| 3697 |
Typesetting tabs are numbered, and defined by an indent, a length, |
| 3698 |
and a quad direction, hence TAB_SET has four required arguments: |
| 3699 |
</p> |
| 3700 |
<ul style="margin-top: .5em; margin-bottom: -.5em;"> |
| 3701 |
<li>a tab number</li> |
| 3702 |
<li>an indent (measured from the left margin of the page, |
| 3703 |
or, if you’re already in a tab, from the left margin of the tab)</li> |
| 3704 |
<li>a length</li> |
| 3705 |
<li>a direction</li> |
| 3706 |
</ul> |
| 3707 |
|
| 3708 |
<p> |
| 3709 |
To set up a centred tab 6 picas long and 9 points from the left |
| 3710 |
margin, you’d enter |
| 3711 |
<br/> |
| 3712 |
<span class="pre-in-pp"> |
| 3713 |
.TAB_SET 1 9p 6P C |
| 3714 |
</span> |
| 3715 |
The tab number in the above (”1”) is simply an |
| 3716 |
identifier. It could have been 4, or 17, or 296. There’s no |
| 3717 |
need to set up tabs in numerical sequence. |
| 3718 |
</p> |
| 3719 |
|
| 3720 |
<p> |
| 3721 |
By default, tabs are in |
| 3722 |
<a href="definitions.html#filled">nofill</a> |
| 3723 |
mode, meaning you can enter text in tabs on a line-for-line basis |
| 3724 |
without having to use the |
| 3725 |
<a href="#br">BR</a> |
| 3726 |
macro. If you want a tab to be |
| 3727 |
<a href="definitions.html#filled">filled</a>, |
| 3728 |
pass the optional argument <kbd>QUAD</kbd>, |
| 3729 |
which will make the tab behave as if you’d entered |
| 3730 |
<kbd class="bold">.QUAD L | R | C</kbd>. |
| 3731 |
</p> |
| 3732 |
|
| 3733 |
<p> |
| 3734 |
For |
| 3735 |
<a href="definitions.html#just">justified</a> |
| 3736 |
tabs, simply pass the argument J (without the QUAD argument), like |
| 3737 |
this: |
| 3738 |
<br/> |
| 3739 |
<span class="pre-in-pp"> |
| 3740 |
.TAB 1 9p 6P J |
| 3741 |
</span> |
| 3742 |
Once tabs are set, they can be called at any time with the |
| 3743 |
<a href="#tab">TAB <n></a> |
| 3744 |
macro, where <n> is the number of the desired tab. |
| 3745 |
</p> |
| 3746 |
|
| 3747 |
<p> |
| 3748 |
You can set up any number of typesetting tabs. However, be aware |
| 3749 |
that |
| 3750 |
<a href="#string-tabs">string tabs</a> |
| 3751 |
are also called with TAB <n>, so be careful that you |
| 3752 |
don’t set up a typesetting tab numbered, say, 4, when you |
| 3753 |
already have a string tab numbered 4. Every tab, typesetting or |
| 3754 |
string, must have a unique numeric identifier. |
| 3755 |
</p> |
| 3756 |
|
| 3757 |
<div class="box-tip"> |
| 3758 |
<p class="tip"> |
| 3759 |
<span class="note">Note:</span> If you use TAB_SET while |
| 3760 |
you’re currently inside a tab, the indent argument is the |
| 3761 |
distance from the tab’s left margin, not the left margin of |
| 3762 |
the page. Therefore, you should exit tabs (with |
| 3763 |
<kbd><a href="#tq">.TQ</a></kbd>) |
| 3764 |
before creating new tabs (unless, of course, you want to set up a |
| 3765 |
tab structure within the confines of an existing tab). |
| 3766 |
</p> |
| 3767 |
</div> |
| 3768 |
|
| 3769 |
<div class="box-important"> |
| 3770 |
<p class="tip"> |
| 3771 |
<span class="important">IMPORTANT:</span> Turn all indents off (see |
| 3772 |
<a href="#indents-intro">Indents</a>) |
| 3773 |
before setting up tabs with TAB_SET, or mom may get confused. |
| 3774 |
</p> |
| 3775 |
</div> |
| 3776 |
|
| 3777 |
<!-- -INLINE_ST- --> |
| 3778 |
|
| 3779 |
<div class="macro-id-overline"> |
| 3780 |
<h3 id="inline-st" class="macro-id">Mark positions of string tabs</h3> |
| 3781 |
</div> |
| 3782 |
|
| 3783 |
<div class="box-macro-args"> |
| 3784 |
Inlines: <kbd class="macro-args">\*[ST<number>]...\*[ST<number>X]</kbd> |
| 3785 |
</div> |
| 3786 |
|
| 3787 |
<p class="requires"> |
| 3788 |
The <a href="definitions.html#quad">quad</a> |
| 3789 |
direction must be |
| 3790 |
<span style="font-style: normal">LEFT</span> |
| 3791 |
or |
| 3792 |
<span style="font-style: normal">JUSTIFY</span> |
| 3793 |
(see |
| 3794 |
<a href="#quad"><span style="font-style: normal">QUAD</span></a> |
| 3795 |
and |
| 3796 |
<a href="#justify"><span style="font-style: normal">JUSTIFY</span></a>) |
| 3797 |
or the |
| 3798 |
<a href="definitions.html#filled">no-fill mode</a> |
| 3799 |
set to |
| 3800 |
<a href="#lrc"><span style="font-style: normal">LEFT</span></a> |
| 3801 |
in order for these inlines to function properly. Please see |
| 3802 |
<a href="#important1"><span style="font-style: normal">IMPORTANT</span></a>, |
| 3803 |
below. |
| 3804 |
</p> |
| 3805 |
|
| 3806 |
<p> |
| 3807 |
String tabs need to be marked off with |
| 3808 |
<a href="definitions.html#inlines">inline escapes</a> |
| 3809 |
before being set up with the |
| 3810 |
<a href="#st">ST</a> |
| 3811 |
macro. Any input line may contain string tab markers. <kbd |
| 3812 |
class="bold"><number></kbd>, above, means the numeric |
| 3813 |
identifier of the tab. The following shows a sample input line with |
| 3814 |
string tab markers. |
| 3815 |
<br/> |
| 3816 |
<span class="pre-in-pp"> |
| 3817 |
\*[ST1]Now is the time\*[ST1X] for all \*[ST2]good men\*ST2X] to come to the aid of the party. |
| 3818 |
</span> |
| 3819 |
String tab 1 begins at the start of the line and ends after the word |
| 3820 |
“time”. String tab 2 starts at “good” and |
| 3821 |
ends after “men”. Inline escapes (e.g. font or point |
| 3822 |
size changes, or horizontal movements, including |
| 3823 |
<a href="goodies.html#pad">padding</a>) |
| 3824 |
are taken into account when mom determines the position and length |
| 3825 |
of string tabs. |
| 3826 |
</p> |
| 3827 |
|
| 3828 |
<p> |
| 3829 |
Up to nineteen string tabs may be marked (not necessarily all on the |
| 3830 |
same line, of course), and they must be numbered between 1 and 19. |
| 3831 |
</p> |
| 3832 |
|
| 3833 |
<p> |
| 3834 |
Once string tabs have been marked in input lines, they have to be |
| 3835 |
“set” with |
| 3836 |
<kbd><a href="#st">.ST</a></kbd>, |
| 3837 |
after which they may be called, by number, with |
| 3838 |
<kbd><a href="#tab">.TAB</a></kbd>. |
| 3839 |
</p> |
| 3840 |
|
| 3841 |
<div class="box-tip"> |
| 3842 |
<p class="tip"> |
| 3843 |
<span class="note">Note:</span> Lines with string tabs marked off |
| 3844 |
in them are normal input lines, i.e., they get printed, just like |
| 3845 |
any input line. If you want to set up string tabs without the line |
| 3846 |
printing, use the |
| 3847 |
<a href="goodies.html#silent">SILENT</a> |
| 3848 |
macro. |
| 3849 |
</p> |
| 3850 |
</div> |
| 3851 |
|
| 3852 |
<div class="box-important"> |
| 3853 |
<p class="tip-top"> |
| 3854 |
<span id="important1" class="important">IMPORTANT:</span> |
| 3855 |
Owing to the way groff processes |
| 3856 |
<a href="definitions.html#inputline">input lines</a> |
| 3857 |
and turns them into |
| 3858 |
<a href="definitions.html#outputline">output lines</a>, |
| 3859 |
it is not possible for mom to “guess” the correct |
| 3860 |
starting position of string tabs marked off in lines that are |
| 3861 |
centered or set flush right. |
| 3862 |
</p> |
| 3863 |
|
| 3864 |
<p> |
| 3865 |
Equally, she cannot guess the starting position if a line is fully |
| 3866 |
justified and broken with |
| 3867 |
<a href="#spread">SPREAD</a>. |
| 3868 |
</p> |
| 3869 |
|
| 3870 |
<p> |
| 3871 |
In other words, in order to use string tabs, |
| 3872 |
<a href="#lrc">LEFT</a> |
| 3873 |
must be active, or, if |
| 3874 |
<a href="#quad">QUAD LEFT</a> |
| 3875 |
or |
| 3876 |
<a href="#justify">JUSTIFY</a> |
| 3877 |
are active, the line on which the string tabs are marked must be |
| 3878 |
broken “manually” with |
| 3879 |
<kbd><a href="#br">.BR</a></kbd> |
| 3880 |
(but not |
| 3881 |
<kbd><a href="#spread">.SPREAD</a></kbd>). |
| 3882 |
</p> |
| 3883 |
|
| 3884 |
<p class="tip-bottom"> |
| 3885 |
To circumvent this behaviour, I recommend using the |
| 3886 |
<a href="goodies.html#pad">PAD</a> |
| 3887 |
to set up string tabs in centered or flush right lines. Say, for |
| 3888 |
example, you want to use a string tab to underscore the text of a |
| 3889 |
centered line with a rule. Rather than this, |
| 3890 |
<br/> |
| 3891 |
<span class="pre-in-pp"> |
| 3892 |
.CENTER |
| 3893 |
\*[ST1]A line of text\*[ST1X]\c |
| 3894 |
.EL |
| 3895 |
.ST 1 |
| 3896 |
.TAB 1 |
| 3897 |
.PT_SIZE 24 |
| 3898 |
.ALD 3p |
| 3899 |
\*[RULE] |
| 3900 |
.RLD 3p |
| 3901 |
.TQ |
| 3902 |
</span> |
| 3903 |
you should do: |
| 3904 |
<br/> |
| 3905 |
<span class="pre-in-pp"> |
| 3906 |
.QUAD CENTER |
| 3907 |
.PAD "#\*[ST1]A line of text\*[ST1X]#" |
| 3908 |
.EL |
| 3909 |
.ST 1 |
| 3910 |
.TAB 1 |
| 3911 |
.PT_SIZE 24 |
| 3912 |
.ALD 3p |
| 3913 |
\*[RULE] \" Note that you can’t use \*[UP ] or \*[DOWN] with \*[RULE] |
| 3914 |
.RLD 3p |
| 3915 |
.TQ |
| 3916 |
</span> |
| 3917 |
</p> |
| 3918 |
</div> |
| 3919 |
|
| 3920 |
<!-- -ST- --> |
| 3921 |
|
| 3922 |
<div class="macro-id-overline"> |
| 3923 |
<h3 id="st" class="macro-id">Set string tabs</h3> |
| 3924 |
</div> |
| 3925 |
|
| 3926 |
<div class="box-macro-args"> |
| 3927 |
Macro: <b>ST</b> <kbd class="macro-args"><tab number> L | R | C | J [ QUAD ]</kbd> |
| 3928 |
</div> |
| 3929 |
|
| 3930 |
<p> |
| 3931 |
After string tabs have been marked off on an input line (see |
| 3932 |
<a href="#inline-st"><kbd><span class="nobr">\*[ST]...\*[STX]</span></kbd></a>), |
| 3933 |
you need to “set” them by giving them a direction and, |
| 3934 |
optionally, the <kbd>QUAD</kbd> argument. In this respect, ST is |
| 3935 |
like |
| 3936 |
<a href="#tab-set">TAB_SET</a> |
| 3937 |
except that you don’t have to give ST an indent or a |
| 3938 |
line length (that’s already taken care of, inline, by |
| 3939 |
<kbd><span class="nobr">\*[ST]...\*[STX]</span></kbd>). If you want string tab 1 |
| 3940 |
to be left, enter |
| 3941 |
<br/> |
| 3942 |
<span class="pre-in-pp"> |
| 3943 |
.ST 1 L |
| 3944 |
</span> |
| 3945 |
If you want it to be left and |
| 3946 |
<a href="definitions.html#filled">filled</a>, enter |
| 3947 |
<br/> |
| 3948 |
<span class="pre-in-pp"> |
| 3949 |
.ST 1 L QUAD |
| 3950 |
</span> |
| 3951 |
If you want it to be justified, enter |
| 3952 |
<br/> |
| 3953 |
<span class="pre-in-pp"> |
| 3954 |
.ST 1 J |
| 3955 |
</span> |
| 3956 |
See the |
| 3957 |
<a href="#string-tabs-tut">Quickie tutorial on string tabs</a> |
| 3958 |
for a full explanation of setting up string tabs. |
| 3959 |
</p> |
| 3960 |
|
| 3961 |
<!-- -TAB- --> |
| 3962 |
|
| 3963 |
<div class="macro-id-overline"> |
| 3964 |
<h3 id="tab" class="macro-id">Call tabs</h3> |
| 3965 |
</div> |
| 3966 |
|
| 3967 |
<div class="box-macro-args"> |
| 3968 |
Macro: <b>TAB</b> <kbd class="macro-args"><tab number></kbd> |
| 3969 |
</div> |
| 3970 |
<p class="alias"> |
| 3971 |
<i>Alias:</i> <b>TB</b> |
| 3972 |
</p> |
| 3973 |
|
| 3974 |
<p> |
| 3975 |
After tabs have been defined (either with |
| 3976 |
<a href="#tab-set">TAB_SET</a> |
| 3977 |
or |
| 3978 |
<a href="#st">ST</a>), |
| 3979 |
TAB moves to whatever tab number you pass it as an argument. For |
| 3980 |
example, |
| 3981 |
<br/> |
| 3982 |
<span class="pre-in-pp"> |
| 3983 |
.TAB 3 |
| 3984 |
</span> |
| 3985 |
moves you to tab 3. |
| 3986 |
</p> |
| 3987 |
|
| 3988 |
<div id="note-tn" class="box-tip"> |
| 3989 |
<p class="tip-top"> |
| 3990 |
<span class="note">Note:</span> TAB breaks the line preceding it and |
| 3991 |
advances 1 linespace. Hence, |
| 3992 |
<br/> |
| 3993 |
<span class="pre-in-pp"> |
| 3994 |
.TAB 1 |
| 3995 |
A line of text in tab 1. |
| 3996 |
.TAB 2 |
| 3997 |
A line of text in tab 2. |
| 3998 |
</span> |
| 3999 |
produces, on output |
| 4000 |
<br/> |
| 4001 |
<span class="pre-in-pp"> |
| 4002 |
A line of text in tab 1. |
| 4003 |
A line of text in tab 2. |
| 4004 |
</span> |
| 4005 |
If you want the tabs to line up, use |
| 4006 |
<a href="#tn">TN</a> |
| 4007 |
(Tab Next) |
| 4008 |
or, more conveniently, the inline escape |
| 4009 |
<a href="#tn"><span class="nobr">\*[TB+]</span></a>: |
| 4010 |
<br/> |
| 4011 |
<span class="pre-in-pp"> |
| 4012 |
.TAB 1 |
| 4013 |
A line of text in tab 1.\*[TB+] |
| 4014 |
A line of text in tab 2. |
| 4015 |
</span> |
| 4016 |
which produces |
| 4017 |
<br/> |
| 4018 |
<span class="pre-in-pp"> |
| 4019 |
A line of text in tab 1. A line of text in tab 2. |
| 4020 |
</span> |
| 4021 |
If the text in your tabs runs to several lines, and you want the |
| 4022 |
first lines of each tab to align, you must use the |
| 4023 |
<a href="#multicolumns-intro">multi-column</a> macros. |
| 4024 |
</p> |
| 4025 |
|
| 4026 |
<p id="tab-add-note" class="tip-bottom"> |
| 4027 |
<span class="additional-note">Additional note:</span> Any indents |
| 4028 |
in effect prior to calling a tab are automatically turned off by |
| 4029 |
TAB. If you were happily zipping down the page with a left indent |
| 4030 |
of 2 picas turned on, and you call a tab whose indent from the left |
| 4031 |
margin is 6 picas, your new distance from the left margin will be 6 |
| 4032 |
picas, not 6 picas plus the 2 pica indent. |
| 4033 |
</p> |
| 4034 |
</div> |
| 4035 |
|
| 4036 |
<!-- -TN- --> |
| 4037 |
|
| 4038 |
<div class="macro-id-overline"> |
| 4039 |
<h3 id="tn" class="macro-id">Tab Next</h3> |
| 4040 |
</div> |
| 4041 |
|
| 4042 |
<div class="box-macro-args"> |
| 4043 |
Macro: <b>TN</b> |
| 4044 |
<br/>Inline escape: <b>\*[TB+]</b> |
| 4045 |
</div> |
| 4046 |
|
| 4047 |
<p> |
| 4048 |
TN moves over to the next tab in numeric sequence (tab n+1) without |
| 4049 |
advancing on the page. See the |
| 4050 |
<a href="#note-tn">NOTE</a> |
| 4051 |
in the description of the TAB macro for an example of how TN works. |
| 4052 |
</p> |
| 4053 |
|
| 4054 |
<p> |
| 4055 |
In tabs that aren’t given the <kbd class="normal">QUAD</kbd> |
| 4056 |
argument when they’re set up with |
| 4057 |
<a href="#tab-set" class="normal">TAB SET</a> |
| 4058 |
or |
| 4059 |
<a href="#st" class="normal">ST</a>, |
| 4060 |
you must terminate the line preceding <kbd class="normal">.TN</kbd> |
| 4061 |
with the <kbd class="normal">\c</kbd> inline escape. Conversely, |
| 4062 |
if you did give a <kbd>QUAD</kbd> argument to TAB_SET or ST, the |
| 4063 |
<kbd>\c</kbd> must not be used. |
| 4064 |
</p> |
| 4065 |
|
| 4066 |
<p> |
| 4067 |
If you find remembering whether to put in the |
| 4068 |
<kbd class="normal">\c</kbd> bothersome, you may prefer to use the |
| 4069 |
<a href="definitions.html#inlines" class="normal">inline escape</a> |
| 4070 |
alternative to |
| 4071 |
<kbd class="normal">.TN</kbd>, |
| 4072 |
<a href="inlines.html#tb-plus-mom"><kbd class="normal"><span class="nobr">\*[TB+]</span></kbd></a>, |
| 4073 |
which works consistently regardless of the fill mode. |
| 4074 |
</p> |
| 4075 |
|
| 4076 |
<div id="tn-note" class="box-tip"> |
| 4077 |
<p class="tip"> |
| 4078 |
<span class="note">Note:</span> You must put text in the |
| 4079 |
<a href="definitions.html#inputline">input line</a> |
| 4080 |
immediately after TN. Stacking of TN’s is not |
| 4081 |
allowed. In other words, you cannot do |
| 4082 |
<br/> |
| 4083 |
<span class="pre-in-pp"> |
| 4084 |
.TAB 1 |
| 4085 |
Some text\c |
| 4086 |
.TN |
| 4087 |
Some more text\c |
| 4088 |
.TN |
| 4089 |
.TN |
| 4090 |
Yet more text |
| 4091 |
</span> |
| 4092 |
The above example, assuming tabs numbered from 1 to 4, should be entered |
| 4093 |
<br/> |
| 4094 |
<span class="pre-in-pp"> |
| 4095 |
.TAB 1 |
| 4096 |
Some text\c |
| 4097 |
.TN |
| 4098 |
Some more text\c |
| 4099 |
.TN |
| 4100 |
\&\c |
| 4101 |
.TN |
| 4102 |
Yet more text |
| 4103 |
</span> |
| 4104 |
|
| 4105 |
<kbd>\&</kbd> is a zero-width, non-printing character that groff |
| 4106 |
recognizes as valid input, hence meets the requirement for input |
| 4107 |
text following <kbd>.TN</kbd>. |
| 4108 |
</p> |
| 4109 |
</div> |
| 4110 |
|
| 4111 |
<!-- -TQ- --> |
| 4112 |
|
| 4113 |
<div class="macro-id-overline"> |
| 4114 |
<h3 id="tq" class="macro-id">Tab Quit</h3> |
| 4115 |
</div> |
| 4116 |
|
| 4117 |
<div class="box-macro-args"> |
| 4118 |
Macro: <b>TQ</b> |
| 4119 |
</div> |
| 4120 |
|
| 4121 |
<p> |
| 4122 |
TQ takes you out of whatever tab you were in, advances 1 linespace, |
| 4123 |
and restores the left margin, line length, quad direction and |
| 4124 |
<a href="definitions.html#filled">fill mode</a> |
| 4125 |
that were in effect prior to invoking any tabs. |
| 4126 |
</p> |
| 4127 |
|
| 4128 |
<div class="rule-short" style="margin-bottom: 24px;"><hr/></div> |
| 4129 |
|
| 4130 |
<!-- ==================================================================== --> |
| 4131 |
|
| 4132 |
<h2 id="multicolumns-intro" class="macro-group">Multiple columns</h2> |
| 4133 |
|
| 4134 |
<p> |
| 4135 |
Tabs are not by nature columnar, which is to say that if the text |
| 4136 |
inside a tab runs to several lines, calling another tab does not |
| 4137 |
automatically move to the |
| 4138 |
<a href="definitions.html#baseline">baseline</a> |
| 4139 |
of the first line in the previous tab. To demonstrate: |
| 4140 |
<br/> |
| 4141 |
<span class="pre-in-pp"> |
| 4142 |
.TAB 1 |
| 4143 |
Carrots |
| 4144 |
Potatoes |
| 4145 |
Broccoli |
| 4146 |
.TAB 2 |
| 4147 |
$1.99/5 lbs |
| 4148 |
$0.25/lb |
| 4149 |
$0.99/bunch |
| 4150 |
</span> |
| 4151 |
produces, on output |
| 4152 |
<br/> |
| 4153 |
<span class="pre-in-pp"> |
| 4154 |
Carrots |
| 4155 |
Potatoes |
| 4156 |
Broccoli |
| 4157 |
$1.99/5 lbs |
| 4158 |
$0.25/lb |
| 4159 |
$0.99/bunch |
| 4160 |
</span> |
| 4161 |
The multi-column macros allow you to set tabs in columnar fashion, |
| 4162 |
rather than line by line. When you invoke multi-column mode (with |
| 4163 |
<kbd><a href="#mco">.MCO</a></kbd> – |
| 4164 |
<span style="text-decoration: underline">M</span>ulti-<span style="text-decoration: underline">C</span>olumn <span style="text-decoration: underline">O</span>n), |
| 4165 |
mom saves the position of the current baseline. |
| 4166 |
<kbd><a href="#mcr">.MCR</a></kbd> |
| 4167 |
(<span style="text-decoration: underline">M</span>ulti-<span style="text-decoration: underline">C</span>olumn <span style="text-decoration: underline">R</span>eturn) |
| 4168 |
at any point while multi-columns are on returns you to the saved |
| 4169 |
position. Exiting multi-columns |
| 4170 |
(<kbd><a href="#mcx">.MCX</a></kbd> – |
| 4171 |
<span style="text-decoration: underline">M</span>ulti-<span style="text-decoration: underline">C</span>olumn e<span style="text-decoration: underline">X</span>it) |
| 4172 |
quits the current tab (if you’re in one) and moves you to the |
| 4173 |
bottom of the longest column. (Note that you do not have to use |
| 4174 |
multi-columns in conjunction with tabs.) |
| 4175 |
</p> |
| 4176 |
|
| 4177 |
<p> |
| 4178 |
Using our example above, but setting it in multi-column mode, |
| 4179 |
<br/> |
| 4180 |
<span class="pre-in-pp"> |
| 4181 |
.MCO |
| 4182 |
.TAB 1 |
| 4183 |
Carrots |
| 4184 |
Potatoes |
| 4185 |
Broccoli |
| 4186 |
.MCR |
| 4187 |
.TAB 2 |
| 4188 |
$1.99/5 lbs |
| 4189 |
$0.25/lb |
| 4190 |
$0.99/bunch |
| 4191 |
.MCX |
| 4192 |
</span> |
| 4193 |
produces |
| 4194 |
<br/> |
| 4195 |
<span class="pre-in-pp"> |
| 4196 |
Carrots $1.99/5 lbs |
| 4197 |
Potatoes $0.25/lb |
| 4198 |
Broccoli $0.99/bunch |
| 4199 |
</span> |
| 4200 |
</p> |
| 4201 |
|
| 4202 |
<div class="box-tip"> |
| 4203 |
<p class="tip"> |
| 4204 |
<span class="note">Note:</span> Do not confuse MCO with |
| 4205 |
the |
| 4206 |
<a href="docprocessing.html#columns">COLUMNS</a> |
| 4207 |
macro in the |
| 4208 |
<a href="docprocessing.html#docprocessing">document processing macros</a>. |
| 4209 |
</p> |
| 4210 |
</div> |
| 4211 |
|
| 4212 |
<div class="box-tip"> |
| 4213 |
<p class="tip"> |
| 4214 |
<span class="note">Additional Note:</span> |
| 4215 |
Do not use multi-columns with |
| 4216 |
<a href="docprocessing.html#slide">DOCTYPE SLIDES</a> |
| 4217 |
because MCX uses the lowest line on the page to determine column |
| 4218 |
depth. Owing to the fact that both headers and footers are printed |
| 4219 |
prior to slides receiving text, MCX will always go to the |
| 4220 |
footer position. If you need functionality similar to MCO/MCX, use |
| 4221 |
the groff requests <kbd>.mk</kbd> and <kbd>.rt</kbd>. See |
| 4222 |
<kbd>info groff mk</kbd>. |
| 4223 |
</p> |
| 4224 |
</div> |
| 4225 |
|
| 4226 |
<div id="index-multicolumns" class="macro-list-container"> |
| 4227 |
<h3 class="macro-list">Multi-columns macros</h3> |
| 4228 |
|
| 4229 |
<ul class="macro-list"> |
| 4230 |
<li><a href="#mco">MCO</a> – begin multi-column setting</li> |
| 4231 |
<li><a href="#mcr">MCR</a> – return to top of column</li> |
| 4232 |
<li><a href="#mcx">MCX</a> – exit multi-columns</li> |
| 4233 |
</ul> |
| 4234 |
</div> |
| 4235 |
|
| 4236 |
<!-- -MCO- --> |
| 4237 |
|
| 4238 |
<div class="macro-id-overline"> |
| 4239 |
<h3 id="mco" class="macro-id">Begin multi-column setting</h3> |
| 4240 |
</div> |
| 4241 |
|
| 4242 |
<div class="box-macro-args"> |
| 4243 |
Macro: <b>MCO</b> |
| 4244 |
</div> |
| 4245 |
|
| 4246 |
<p> |
| 4247 |
MCO (<span style="text-decoration: underline;">M</span>ulti-<span style="text-decoration: underline;">C</span>olumn <span style="text-decoration: underline;">O</span>n) is the macro you use to begin multi-column |
| 4248 |
setting. It marks the current |
| 4249 |
<a href="definitions.html#baseline">baseline</a> |
| 4250 |
as the top of your columns, for use later with |
| 4251 |
<a href="#mcr">MCR</a>. |
| 4252 |
See the |
| 4253 |
<a href="#multicolumns-intro">introduction to columns</a> |
| 4254 |
for an explanation of multi-columns and some sample |
| 4255 |
input. |
| 4256 |
</p> |
| 4257 |
|
| 4258 |
<div class="box-tip"> |
| 4259 |
<p class="tip"> |
| 4260 |
<span class="note">Note:</span> Do not confuse MCO with |
| 4261 |
the |
| 4262 |
<a href="docprocessing.html#columns">COLUMNS</a> |
| 4263 |
macro in the |
| 4264 |
<a href="docprocessing.html#docprocessing">document processing macros</a>. |
| 4265 |
</p> |
| 4266 |
</div> |
| 4267 |
|
| 4268 |
<!-- -MCR- --> |
| 4269 |
|
| 4270 |
<div class="macro-id-overline"> |
| 4271 |
<h3 id="mcr" class="macro-id">Return to top of column</h3> |
| 4272 |
</div> |
| 4273 |
|
| 4274 |
<div class="box-macro-args"> |
| 4275 |
Macro: <b>MCR</b> |
| 4276 |
</div> |
| 4277 |
|
| 4278 |
<p> |
| 4279 |
Once you’ve turned multi-columns on (with |
| 4280 |
<kbd><a href="#mco">.MCO</a></kbd>), |
| 4281 |
<kbd>.MCR</kbd>, at any time, returns you to the top of |
| 4282 |
your columns. |
| 4283 |
</p> |
| 4284 |
|
| 4285 |
<!-- -MCX- --> |
| 4286 |
|
| 4287 |
<div class="macro-id-overline"> |
| 4288 |
<h3 id="mcx" class="macro-id">Exit multi-columns</h3> |
| 4289 |
</div> |
| 4290 |
|
| 4291 |
<div class="box-macro-args"> |
| 4292 |
Macro: <b>MCX</b> <kbd class="macro-args">[ <distance to advance below longest column> ]</kbd> |
| 4293 |
</div> |
| 4294 |
<p class="requires"> |
| 4295 |
• Optional argument requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4296 |
</p> |
| 4297 |
|
| 4298 |
<p> |
| 4299 |
MCX takes you out of any tab you were in (by silently invoking |
| 4300 |
<kbd><a href="#tq">.TQ</a></kbd>) |
| 4301 |
and advances to the bottom of the longest column. |
| 4302 |
</p> |
| 4303 |
|
| 4304 |
<p> |
| 4305 |
Without an argument, MCX advances 1 linespace below the longest |
| 4306 |
column. Linespace, in this instance, is the |
| 4307 |
<a href="definitions.html#leading">leading</a> |
| 4308 |
in effect at the moment MCX is invoked. |
| 4309 |
</p> |
| 4310 |
|
| 4311 |
<p> |
| 4312 |
If you pass the <kbd><distance></kbd> argument to MCX, it |
| 4313 |
advances 1 linespace below the longest column (see above) PLUS the |
| 4314 |
distance specified by the argument. The argument requires a unit |
| 4315 |
of measure; therefore, to advance an extra 6 points below where MCX |
| 4316 |
would normally place you, you’d enter |
| 4317 |
<br/> |
| 4318 |
<span class="pre-in-pp"> |
| 4319 |
.MCX 6p |
| 4320 |
</span> |
| 4321 |
</p> |
| 4322 |
|
| 4323 |
<div class="box-tip"> |
| 4324 |
<p class="tip"> |
| 4325 |
<span class="note">Note:</span> If you wish to advance a precise |
| 4326 |
distance below the |
| 4327 |
<a href="definitions.html#baseline">baseline</a> |
| 4328 |
of the longest column, use MCX with an argument of 0 (zero; no unit |
| 4329 |
of measure required) in conjunction with the |
| 4330 |
<a href="#ald">ALD</a> |
| 4331 |
macro, like this: |
| 4332 |
<br/> |
| 4333 |
<span class="pre-in-pp" style="margin-bottom: -12px;"> |
| 4334 |
.MCX 0 |
| 4335 |
.ALD 24p |
| 4336 |
</span> |
| 4337 |
</p> |
| 4338 |
</div> |
| 4339 |
|
| 4340 |
<p> |
| 4341 |
The above advances to precisely 24 points below the baseline |
| 4342 |
of the longest column. |
| 4343 |
</p> |
| 4344 |
|
| 4345 |
<div class="rule-short" style="margin-bottom: 24px;"><hr/></div> |
| 4346 |
|
| 4347 |
<!-- ==================================================================== --> |
| 4348 |
|
| 4349 |
<h2 id="indents-intro" class="macro-group">Indents</h2> |
| 4350 |
|
| 4351 |
<p> |
| 4352 |
With mom’s indents, you can indent from the left, the right, |
| 4353 |
or both margins. In addition, mom provides temporary left indents |
| 4354 |
(i.e., only one line is indented, as at the start of a paragraph) |
| 4355 |
and “hanging” left indents (the reverse of a temporary |
| 4356 |
indent; the first line isn’t indented, subsequent lines are). |
| 4357 |
</p> |
| 4358 |
|
| 4359 |
<h3 id="indents-handling" class="docs">How mom handles indents</h3> |
| 4360 |
|
| 4361 |
<p> |
| 4362 |
Mom provides five kinds of indents: left, right, both, temporary, |
| 4363 |
and hanging. Each is invoked by its own name: |
| 4364 |
</p> |
| 4365 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 4366 |
<li>IL – Indent Left</li> |
| 4367 |
<li>IR – Indent Right</li> |
| 4368 |
<li>IB – Indent Both</li> |
| 4369 |
<li>HI – Hanging Indent</li> |
| 4370 |
<li>TI – Temporary Indent</li> |
| 4371 |
</ul> |
| 4372 |
|
| 4373 |
<p> |
| 4374 |
In addition, there are four macros to control exiting from |
| 4375 |
indents: |
| 4376 |
</p> |
| 4377 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 4378 |
<li>IQ – quit all active indents</li> |
| 4379 |
<li>ILX – exit indent style left</li> |
| 4380 |
<li>IRX – exit indent style right</li> |
| 4381 |
<li>IBX – exit indent style both</li> |
| 4382 |
</ul> |
| 4383 |
|
| 4384 |
<p> |
| 4385 |
This section deals exclusively with IL, IR, and IB. For an |
| 4386 |
explanation of hanging and temporary indents—how they work and |
| 4387 |
how to use them—see |
| 4388 |
<a href="#hi">Hanging indents</a> |
| 4389 |
and |
| 4390 |
<a href="#ti">Temporary indents</a>. |
| 4391 |
</p> |
| 4392 |
|
| 4393 |
<p> |
| 4394 |
The first time you invoke any of mom’s indents, you must |
| 4395 |
supply a measure. For example, |
| 4396 |
<br/> |
| 4397 |
<span class="pre-in-pp"> |
| 4398 |
.IL 2P |
| 4399 |
</span> |
| 4400 |
indents text 2 picas from the left margin (or current tab indent). |
| 4401 |
</p> |
| 4402 |
|
| 4403 |
<p> |
| 4404 |
When you want to exit the above indent, use either |
| 4405 |
<br/> |
| 4406 |
<span class="pre-in-pp" style="margin-bottom: -1em;"> |
| 4407 |
.IQ |
| 4408 |
</span> |
| 4409 |
or |
| 4410 |
<span class="pre-in-pp" style="margin-top: -.5em;"> |
| 4411 |
.ILX |
| 4412 |
</span> |
| 4413 |
The next time you want the same indent, invoke it without the |
| 4414 |
argument, like this: |
| 4415 |
<br/> |
| 4416 |
<span class="pre-in-pp"> |
| 4417 |
.IL |
| 4418 |
</span> |
| 4419 |
As you can see, once you’ve supplied a measure to an indent |
| 4420 |
macro, mom stores the value, obviating the need to repeat it on |
| 4421 |
subsequent invocations. And mom doesn’t just store the |
| 4422 |
measure—she hangs on to it tenaciously. Arguments passed to |
| 4423 |
IL, IR, and IB are additive. Consider the following: |
| 4424 |
<br/> |
| 4425 |
<span class="pre-in-pp"> |
| 4426 |
.LL 20P |
| 4427 |
.IR 2P \"Indent right by 2 picas |
| 4428 |
A first block of text... |
| 4429 |
... |
| 4430 |
... |
| 4431 |
.IQ \"Turn indent off |
| 4432 |
A second block of text... |
| 4433 |
... |
| 4434 |
... |
| 4435 |
.IR 2P \"Indent right by an additional 2 picas (i.e. 4 picas) |
| 4436 |
A third block of text... |
| 4437 |
... |
| 4438 |
... |
| 4439 |
</span> |
| 4440 |
The first block of text is right indented by 2 picas (i.e. the line |
| 4441 |
length is shortened by 2 picas to 18 picas). The second block of |
| 4442 |
text, after IQ, is, as you’d expect, set to the full measure. |
| 4443 |
The third block of text—the one to pay attention to—is |
| 4444 |
not right indented by 2 picas, but rather by 4 picas. Mom adds |
| 4445 |
the value of arguments to IL, IR, and IB to whatever value is already |
| 4446 |
in effect. |
| 4447 |
</p> |
| 4448 |
|
| 4449 |
<p> |
| 4450 |
If you wanted the third block of text in the example above to be |
| 4451 |
right indented by just 2 picas (the original measure given to IR), |
| 4452 |
you would enter <kbd>.IR</kbd> without an argument. |
| 4453 |
</p> |
| 4454 |
|
| 4455 |
<p> |
| 4456 |
Because indent arguments are additive, putting a minus sign in front |
| 4457 |
of the argument can be used to subtract from the current value. |
| 4458 |
In the following example, the first line is indented 18 points, |
| 4459 |
the second is indented 36 points (18 + 18), and the third is again |
| 4460 |
indented 18 points (36 - 18). |
| 4461 |
<br/> |
| 4462 |
<span class="pre-in-pp"> |
| 4463 |
.IL 18p \"Indent left by 18 points = 18 points |
| 4464 |
Now is the time |
| 4465 |
.IL 18p \"Indent left by 18 points more = 36 points |
| 4466 |
for all good men to come |
| 4467 |
.IL -18p \"Indent left by 18 points less = 18 points |
| 4468 |
to the aid of the party. |
| 4469 |
</span> |
| 4470 |
Sometimes, you may want to clear out the stored indent |
| 4471 |
values—let mom start indenting with a clean slate, as it |
| 4472 |
were. Giving the optional argument <kbd>CLEAR</kbd> to any of the |
| 4473 |
“indent quit” macros resets them to zero. |
| 4474 |
</p> |
| 4475 |
<ul style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 4476 |
<li>IQ CLEAR – quit and clear all indents</li> |
| 4477 |
<li>ILX CLEAR – quit and clear indent style left</li> |
| 4478 |
<li>IRX CLEAR – quit and clear indent style right</li> |
| 4479 |
<li>IBX CLEAR – quit and clear indent style both</li> |
| 4480 |
</ul> |
| 4481 |
|
| 4482 |
<p> |
| 4483 |
Indent styles may be combined and manipulated separately. You |
| 4484 |
could, for example, have a left indent of 4 picas and a right indent |
| 4485 |
of 6 picas and control each separately, as in the following example. |
| 4486 |
<br/> |
| 4487 |
<span class="pre-in-pp"> |
| 4488 |
.IL 4P \"Indent left 4 picas |
| 4489 |
.IR 6P \"Indent right 6 picas |
| 4490 |
Some text |
| 4491 |
.IRX \"Turn off the right indent only |
| 4492 |
More text \"Text is still indented 4 picas left |
| 4493 |
</span> |
| 4494 |
If, at <kbd>.IRX</kbd>, you wanted the text afterwards to have no |
| 4495 |
indents (either left or right), you would enter <kbd>.IQ</kbd>, |
| 4496 |
which exits all indent styles at once. |
| 4497 |
</p> |
| 4498 |
|
| 4499 |
<p> |
| 4500 |
A word of advice: Indents are best used only when you have a |
| 4501 |
compelling reason not to change the current left margin or line |
| 4502 |
length. In many instances where indents might seem expedient, |
| 4503 |
it’s better to use tabs, or actually change the left margin |
| 4504 |
or the line length. Mom’s indenting macros are flexible and |
| 4505 |
powerful, but easy to get tangled up in. |
| 4506 |
</p> |
| 4507 |
|
| 4508 |
<div class="box-tip"> |
| 4509 |
<p class="tip"> |
| 4510 |
<span class="note">Note:</span> see the section |
| 4511 |
<a href="docprocessing.html#behaviour">Typesetting macros during document processing</a> |
| 4512 |
for information and advice on using indents with the |
| 4513 |
<a href="docprocessing.html#docprocessing">document processing macros</a>. |
| 4514 |
</p> |
| 4515 |
</div> |
| 4516 |
|
| 4517 |
<div id="index-indents" class="macro-list-container"> |
| 4518 |
<h3 class="macro-list">Indents macros</h3> |
| 4519 |
|
| 4520 |
<ul class="macro-list"> |
| 4521 |
<li><a href="#il">IL</a> – Indent left</li> |
| 4522 |
<li><a href="#ir">IR</a> – Indent right</li> |
| 4523 |
<li><a href="#ib">IB</a> – Indent both</li> |
| 4524 |
<li><a href="#ti">TI</a> – Temporary indent, left</li> |
| 4525 |
<li><a href="#hi">HI</a> – Hanging Indent |
| 4526 |
<ul style="margin-left: -.5em; list-style-type: disc;"> |
| 4527 |
<li><a href="#num-lists">Recipe: a numbered list using hanging indents</a></li> |
| 4528 |
</ul></li> |
| 4529 |
<li><a href="#iq">IQ</a> – Quit indents, all</li> |
| 4530 |
<li><a href="#iq">ILX</a> – Exit indent style left</li> |
| 4531 |
<li><a href="#iq">IRX</a> – Exit indent style right</li> |
| 4532 |
<li><a href="#iq">IBX</a> – Exit indent style both</li> |
| 4533 |
</ul> |
| 4534 |
</div> |
| 4535 |
|
| 4536 |
<!-- -IL- --> |
| 4537 |
|
| 4538 |
<div class="macro-id-overline"> |
| 4539 |
<h3 id="il" class="macro-id">Indent left</h3> |
| 4540 |
</div> |
| 4541 |
|
| 4542 |
<div class="box-macro-args"> |
| 4543 |
Macro: <b>IL</b> <kbd class="macro-args">[ <measure> ]</kbd> |
| 4544 |
</div> |
| 4545 |
<p class="requires"> |
| 4546 |
• The optional argument requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4547 |
</p> |
| 4548 |
|
| 4549 |
<p> |
| 4550 |
IL indents text from the left margin of the page, or if you’re |
| 4551 |
in a tab, from the left edge of the tab. Once IL is on, the left |
| 4552 |
indent is applied uniformly to every subsequent line of text, even |
| 4553 |
if you change the line length. |
| 4554 |
</p> |
| 4555 |
|
| 4556 |
<p> |
| 4557 |
The first time you invoke <kbd>.IL</kbd>, you must give it a |
| 4558 |
measure. Subsequent invocations with a measure add to the previous |
| 4559 |
measure. A minus sign may be prepended to the argument to subtract |
| 4560 |
from the current measure. The |
| 4561 |
<kbd><a href="inlines.html#inline-stringwidth-groff">\w</a></kbd> |
| 4562 |
<a href="definitions.html#inlines">inline escape</a> |
| 4563 |
may be used to specify a text-dependent measure, in which case no |
| 4564 |
unit of measure is required. For example, |
| 4565 |
<br/> |
| 4566 |
<span class="pre-in-pp"> |
| 4567 |
.IL \w'margarine' |
| 4568 |
</span> |
| 4569 |
indents text by the width of the word “margarine”. |
| 4570 |
</p> |
| 4571 |
|
| 4572 |
<p> |
| 4573 |
With no argument, IL after an ILX indents by its last active value. See the |
| 4574 |
<a href="#indents-handling">explanation of how mom handles indents</a> |
| 4575 |
for more details. |
| 4576 |
</p> |
| 4577 |
|
| 4578 |
<div class="box-tip"> |
| 4579 |
<p class="tip-top"> |
| 4580 |
<span class="note">Note:</span> Calling a tab (with |
| 4581 |
<kbd><a href="#tab">.TAB <n></a></kbd>) |
| 4582 |
automatically cancels any active indents. |
| 4583 |
</p> |
| 4584 |
|
| 4585 |
<p class="tip-bottom"> |
| 4586 |
<span class="additional-note">Additional note:</span> Invoking IL |
| 4587 |
automatically turns off IB. |
| 4588 |
</p> |
| 4589 |
</div> |
| 4590 |
|
| 4591 |
<!-- -IR- --> |
| 4592 |
|
| 4593 |
<div class="macro-id-overline"> |
| 4594 |
<h3 id="ir" class="macro-id">Indent right</h3> |
| 4595 |
</div> |
| 4596 |
|
| 4597 |
<div class="box-macro-args"> |
| 4598 |
Macro: <b>IR</b> <kbd class="macro-args">[ <measure> ]</kbd> |
| 4599 |
</div> |
| 4600 |
<p class="requires"> |
| 4601 |
• The optional argument requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4602 |
</p> |
| 4603 |
|
| 4604 |
<p> |
| 4605 |
IR indents text from the right margin of the page, or if |
| 4606 |
you’re in a tab, from the end of the tab. |
| 4607 |
</p> |
| 4608 |
|
| 4609 |
<p> |
| 4610 |
The first time you invoke <kbd>.IR</kbd>, you must give it a |
| 4611 |
measure. Subsequent invocations with a measure add to the previous |
| 4612 |
indent measure. A minus sign may be prepended to the argument to |
| 4613 |
subtract from the current indent measure. The |
| 4614 |
<kbd><a href="inlines.html#inline-stringwidth-groff">\w</a></kbd> |
| 4615 |
<a href="definitions.html#inlines">inline escape</a> |
| 4616 |
may be used to specify a text-dependent measure, in which case no |
| 4617 |
unit of measure is required. For example, <br/> |
| 4618 |
<span class="pre-in-pp"> |
| 4619 |
.IR \w'jello' |
| 4620 |
</span> |
| 4621 |
indents text by the width of the word “jello”. |
| 4622 |
</p> |
| 4623 |
|
| 4624 |
<p> |
| 4625 |
With no argument, IR after an IRX indents by its last active value. See the |
| 4626 |
<a href="#indents-handling">explanation of how mom handles indents</a> |
| 4627 |
for more details. |
| 4628 |
</p> |
| 4629 |
|
| 4630 |
<div class="box-tip"> |
| 4631 |
<p class="tip-top"> |
| 4632 |
<span class="note">Note:</span> Calling a tab (with |
| 4633 |
<kbd><a href="#tab">.TAB <n></a></kbd>) |
| 4634 |
automatically cancels any active indents. |
| 4635 |
</p> |
| 4636 |
|
| 4637 |
<p class="tip-bottom"> |
| 4638 |
<span class="additional-note">Additional note:</span> Invoking IR |
| 4639 |
automatically turns off IB. |
| 4640 |
</p> |
| 4641 |
</div> |
| 4642 |
|
| 4643 |
<!-- -IB- --> |
| 4644 |
|
| 4645 |
<div class="macro-id-overline"> |
| 4646 |
<h3 id="ib" class="macro-id">Indent both</h3> |
| 4647 |
</div> |
| 4648 |
|
| 4649 |
<div class="box-macro-args"> |
| 4650 |
Macro: <b>IB</b> <kbd class="macro-args">[ <indent-1> <indent-2> ]</kbd> |
| 4651 |
</div> |
| 4652 |
<p class="requires"> |
| 4653 |
• The optional arguments require a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4654 |
</p> |
| 4655 |
|
| 4656 |
<p> |
| 4657 |
IB allows you to set or invoke a left and a right indent at the same |
| 4658 |
time. |
| 4659 |
</p> |
| 4660 |
|
| 4661 |
<p> |
| 4662 |
If you supply only an <kbd>indent-1</kbd> argument, the argument is |
| 4663 |
the amount to indent from both the left and right margins. If you |
| 4664 |
give both <kbd>indent-1</kbd> and <kbd>indent-2</kbd>, the first is |
| 4665 |
the indent from the left margin and the second is the indent from |
| 4666 |
the right margin. |
| 4667 |
</p> |
| 4668 |
|
| 4669 |
<p> |
| 4670 |
As with IL and IR, the measures are added to the values previously |
| 4671 |
passed to the macro. Hence, if you wish to change just one of the |
| 4672 |
values, you must give an argument of zero to the other. (A word of |
| 4673 |
advice: If you need to manipulate left and right indents separately, |
| 4674 |
use a combination of IL and IR instead of IB. You’ll save |
| 4675 |
yourself a lot of grief.) |
| 4676 |
</p> |
| 4677 |
|
| 4678 |
<p> |
| 4679 |
A minus sign may be prepended to the arguments to subtract from |
| 4680 |
their current values. The |
| 4681 |
<a href="inlines.html#inline-stringwidth-groff"><kbd>\w</kbd></a> |
| 4682 |
<a href="definitions.html#inlines">inline escape</a> |
| 4683 |
may be used to specify text-dependent measures, in which case no |
| 4684 |
unit of measure is required. For example, |
| 4685 |
<br/> |
| 4686 |
<span class="pre-in-pp"> |
| 4687 |
.IB \w’margarine’ \w'jello' |
| 4688 |
</span> |
| 4689 |
left indents text by the width of the word “margarine” |
| 4690 |
and right indents by the width of “jello”. |
| 4691 |
</p> |
| 4692 |
|
| 4693 |
<p> |
| 4694 |
Like IL and IR, IB with no argument after an IBX indents by its |
| 4695 |
last active values. See the |
| 4696 |
<a href="#indents-handling">explanation of how mom handles indents</a> |
| 4697 |
for more details. |
| 4698 |
</p> |
| 4699 |
|
| 4700 |
<div class="box-tip"> |
| 4701 |
<p class="tip-top"> |
| 4702 |
<span class="note">Note:</span> Calling a tab (with |
| 4703 |
<a href="#tab"><kbd>.TAB <n></kbd></a>) |
| 4704 |
automatically cancels any active indents. |
| 4705 |
</p> |
| 4706 |
|
| 4707 |
<p class="tip-bottom"> |
| 4708 |
<span class="additional-note">Additional note:</span> Invoking IB |
| 4709 |
automatically turns off IL and IR. |
| 4710 |
</p> |
| 4711 |
</div> |
| 4712 |
|
| 4713 |
<!-- -TI- --> |
| 4714 |
|
| 4715 |
<div class="macro-id-overline"> |
| 4716 |
<h3 id="ti" class="macro-id">Temporary (left) indent</h3> |
| 4717 |
</div> |
| 4718 |
|
| 4719 |
<div class="box-macro-args"> |
| 4720 |
Macro: <b>TI</b> <kbd class="macro-args">[ <measure> ]</kbd> |
| 4721 |
</div> |
| 4722 |
<p class="requires"> |
| 4723 |
• The optional argument requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4724 |
</p> |
| 4725 |
|
| 4726 |
<p> |
| 4727 |
A temporary indent is one that applies only to the first line of |
| 4728 |
text that comes after it. Its chief use is indenting the first line |
| 4729 |
of paragraphs. (Mom’s |
| 4730 |
<a href="docelement.html#pp">PP</a> |
| 4731 |
macro, for example, uses a temporary indent.) |
| 4732 |
</p> |
| 4733 |
|
| 4734 |
<p> |
| 4735 |
The first time you invoke <kbd>.TI</kbd>, you must give |
| 4736 |
it a measure. If you want to indent the first line of a paragraph |
| 4737 |
by, say, 2 |
| 4738 |
<a href="definitions.html#em">ems</a>, |
| 4739 |
do |
| 4740 |
<br/> |
| 4741 |
<span class="pre-in-pp"> |
| 4742 |
.TI 2m |
| 4743 |
</span> |
| 4744 |
Subsequent invocations of TI do not require you to supply a measure; |
| 4745 |
mom keeps track of the last measure you gave it. |
| 4746 |
</p> |
| 4747 |
|
| 4748 |
<p> |
| 4749 |
Because temporary indents are temporary, there’s no need to |
| 4750 |
turn them off. |
| 4751 |
</p> |
| 4752 |
|
| 4753 |
<div class="box-important"> |
| 4754 |
<p class="tip"> |
| 4755 |
<span class="important">IMPORTANT:</span> Unlike IL, IR, and IB, |
| 4756 |
measures given to TI are <i>not</i> additive. In the following |
| 4757 |
example, the second <kbd>.TI 2P</kbd> is exactly 2 picas. |
| 4758 |
<br/> |
| 4759 |
<span class="pre-in-pp" style="margin-bottom: -18px;"> |
| 4760 |
.TI 1P |
| 4761 |
The beginning of a paragraph... |
| 4762 |
.TI 2P |
| 4763 |
The beginning of another paragraph... |
| 4764 |
</span> |
| 4765 |
</p> |
| 4766 |
</div> |
| 4767 |
|
| 4768 |
<!-- -HI- --> |
| 4769 |
|
| 4770 |
<div class="macro-id-overline"> |
| 4771 |
<h3 id="hi" class="macro-id">Hanging indent</h3> |
| 4772 |
</div> |
| 4773 |
|
| 4774 |
<div class="box-macro-args"> |
| 4775 |
Macro: <b>HI</b> <kbd class="macro-args">[ <measure> ]</kbd> |
| 4776 |
</div> |
| 4777 |
<p class="requires"> |
| 4778 |
• The optional argument requires a <a href="definitions.html#unitofmeasure">unit of measure</a> |
| 4779 |
</p> |
| 4780 |
|
| 4781 |
<p> |
| 4782 |
A hanging indent looks like this: |
| 4783 |
<br/> |
| 4784 |
<span class="pre-in-pp"> |
| 4785 |
The thousand injuries of Fortunato I had borne as best I |
| 4786 |
could, but when he ventured upon insult, I vowed |
| 4787 |
revenge. You who so well know the nature of my soul |
| 4788 |
will not suppose, however, that I gave utterance to a |
| 4789 |
threat, at length I would be avenged... |
| 4790 |
</span> |
| 4791 |
The first line of text “hangs” outside the left margin. |
| 4792 |
</p> |
| 4793 |
|
| 4794 |
<p> |
| 4795 |
In order to use hanging indents, you must first have a left indent |
| 4796 |
active (set with either |
| 4797 |
<kbd><a href="#il">.IL</a></kbd> |
| 4798 |
or |
| 4799 |
<kbd><a href="#ib">.IB</a></kbd>). |
| 4800 |
Mom will not hang text outside the left margin set with |
| 4801 |
<kbd><a href="#l-margin">.L_MARGIN</a></kbd> |
| 4802 |
or outside the left margin of a tab. |
| 4803 |
</p> |
| 4804 |
|
| 4805 |
<p> |
| 4806 |
The first time you invoke <kbd>.HI</kbd>, you must give |
| 4807 |
it a measure. If you want the first line of a paragraph to hang by, |
| 4808 |
say, 1 pica, do |
| 4809 |
<br/> |
| 4810 |
<span class="pre-in-pp"> |
| 4811 |
.IL 1P |
| 4812 |
.HI 1P |
| 4813 |
</span> |
| 4814 |
Subsequent invocations of HI do not require you to supply a measure; |
| 4815 |
mom keeps track of the last measure you gave it. |
| 4816 |
</p> |
| 4817 |
|
| 4818 |
<p> |
| 4819 |
Generally speaking, you should invoke HI immediately prior to the |
| 4820 |
line you want hung (i.e. without any intervening |
| 4821 |
<a href="definitions.html#controllines">control lines</a>). |
| 4822 |
And because hanging indents affect only one line, there’s no |
| 4823 |
need to turn them off. |
| 4824 |
</p> |
| 4825 |
|
| 4826 |
<div class="box-important"> |
| 4827 |
<p class="tip"> |
| 4828 |
<span class="important">IMPORTANT:</span> Unlike IL, IR, and IB, |
| 4829 |
measures given to HI are NOT additive. Each time you pass a measure |
| 4830 |
to HI, the measure is treated literally. |
| 4831 |
</p> |
| 4832 |
</div> |
| 4833 |
|
| 4834 |
<h4 id="num-lists" class="macro-id">Recipe: A numbered list using hanging indents</h4> |
| 4835 |
|
| 4836 |
<div class="box-tip" style="margin-top: -.5em; margin-bottom: -.5em;"> |
| 4837 |
<p class="tip"> |
| 4838 |
<span class="note">Note:</span> mom has macros for setting lists (see |
| 4839 |
<a href="docelement.html#list-intro">Nested lists</a>). |
| 4840 |
This recipe exists to demonstrate the use of hanging indents only. |
| 4841 |
</p> |
| 4842 |
</div> |
| 4843 |
|
| 4844 |
<p style="margin-top: 1.5em;"> |
| 4845 |
<span class="pre-in-pp"> |
| 4846 |
.PAGE 8.5i 11i 1i 1i 1i 1i |
| 4847 |
.FAMILY T |
| 4848 |
.FT R |
| 4849 |
.PT_SIZE 12 |
| 4850 |
.LS 14 |
| 4851 |
.JUSTIFY |
| 4852 |
.KERN |
| 4853 |
.SS 0 |
| 4854 |
.IL \w'\0\0.' |
| 4855 |
.HI \w'\0\0.' |
| 4856 |
1.\0The most important point to be considered is whether the |
| 4857 |
answer to the meaning of Life, the Universe, and Everything |
| 4858 |
really is 42. We have no-one’s word on the subject except |
| 4859 |
Mr. Adams’. |
| 4860 |
.HI |
| 4861 |
2.\0If the answer to the meaning of Life, the Universe, |
| 4862 |
and Everything is indeed 42, what impact does this have on |
| 4863 |
the politics of representation? 42 is, after all not a |
| 4864 |
prime number. Are we to infer that prime numbers don’t |
| 4865 |
deserve equal rights and equal access in the universe? |
| 4866 |
.HI |
| 4867 |
3.\0If 42 is deemed non-exclusionary, how do we present it |
| 4868 |
as the answer and, at the same time, forestall debate on its |
| 4869 |
exclusionary implications? |
| 4870 |
</span> |
| 4871 |
First, we invoke a left indent with a measure equal to the width of |
| 4872 |
2 |
| 4873 |
<a href="definitions.html#figurespace">figures spaces</a> |
| 4874 |
plus a period (using the |
| 4875 |
<a href="inlines.html#inline-stringwidth-groff"><kbd>\w</kbd></a> |
| 4876 |
inline escape). At this point, the left indent is active; text |
| 4877 |
afterwards would normally be indented. However, we invoke a |
| 4878 |
hanging indent of exactly the same width, which hangs the first |
| 4879 |
line (and first line only!) to the left of the indent by the |
| 4880 |
same distance (in this case, that means “out to the left |
| 4881 |
margin”). Because we begin the first line with a number, |
| 4882 |
a period, and a figure space, the actual text (“The most |
| 4883 |
important point...”) starts at exactly the same spot as the |
| 4884 |
indented lines that follow. |
| 4885 |
</p> |
| 4886 |
|
| 4887 |
<p> |
| 4888 |
Notice that subsequent invocations of <kbd>.HI</kbd> don’t |
| 4889 |
require a measure to be given. |
| 4890 |
</p> |
| 4891 |
|
| 4892 |
<p> |
| 4893 |
Paste the example above into a file and preview it with |
| 4894 |
<br/> |
| 4895 |
<span class="pre-in-pp"> |
| 4896 |
pdfmom filename.mom > filename.pdf |
| 4897 |
</span> |
| 4898 |
to see hanging indents in action. |
| 4899 |
</p> |
| 4900 |
|
| 4901 |
<!-- -IX- --> |
| 4902 |
|
| 4903 |
<div class="macro-id-overline"> |
| 4904 |
<h3 id="iq" class="macro-id">Quitting indents</h3> |
| 4905 |
</div> |
| 4906 |
|
| 4907 |
<div class="box-macro-args"> |
| 4908 |
Macro: <b>IQ</b> <kbd class="macro-args">[ CLEAR ]</kbd> (quit any/all indents — see IMPORTANT NOTE) |
| 4909 |
</div> |
| 4910 |
<br/> |
| 4911 |
|
| 4912 |
Macro: <b>ILX</b> <kbd class="macro-args">[ CLEAR ]</kbd> (exit Indent Left) |
| 4913 |
<br/> |
| 4914 |
|
| 4915 |
Macro: <b>IRX</b> <kbd class="macro-args">[ CLEAR ]</kbd> (exit Indent Right) |
| 4916 |
<br/> |
| 4917 |
|
| 4918 |
Macro: <b>IBX</b> <kbd class="macro-args">[ CLEAR ]</kbd> (exit Indent Both) |
| 4919 |
|
| 4920 |
<div class="box-important"> |
| 4921 |
<p class="tip-top"> |
| 4922 |
<span class="important">IMPORTANT NOTE:</span> The original macro |
| 4923 |
for quitting all indents was IX. This usage has been deprecated in |
| 4924 |
favour of IQ. IX will continue to behave as before, but mom will |
| 4925 |
issue a warning to stderr indicating that you should update your |
| 4926 |
documents. |
| 4927 |
</p> |
| 4928 |
|
| 4929 |
<p class="tip-bottom"> |
| 4930 |
As a consequence of this change, ILX, IRX and IBX may now also be |
| 4931 |
invoked as ILQ, IRQ and IBQ. Both forms are acceptable. |
| 4932 |
</p> |
| 4933 |
</div> |
| 4934 |
|
| 4935 |
<p> |
| 4936 |
Without an argument, the macros to quit indents merely restore your |
| 4937 |
original margins and line length. The measures stored in the indent |
| 4938 |
macros themselves are saved so you can call them again without |
| 4939 |
having to supply a measure. |
| 4940 |
</p> |
| 4941 |
|
| 4942 |
<p> |
| 4943 |
If you pass these macros the optional argument <kbd>CLEAR</kbd>, |
| 4944 |
they not only restore your original left margin and line length, but |
| 4945 |
also clear any values associated with a particular indent style. |
| 4946 |
The next time you need an indent of the same style, you have to |
| 4947 |
supply a measure again. |
| 4948 |
</p> |
| 4949 |
|
| 4950 |
<p> |
| 4951 |
<kbd>.IQ CLEAR</kbd>, as you’d suspect, |
| 4952 |
quits and clears the values for all indent styles at once. |
| 4953 |
</p> |
| 4954 |
|
| 4955 |
<div class="rule-long"><hr/></div> |
| 4956 |
|
| 4957 |
<!-- Navigation links --> |
| 4958 |
<table style="width: 100%; margin-top: 12px;"> |
| 4959 |
<tr> |
| 4960 |
<td style="width: 33%;"><a href="toc.html">Back to Table of Contents</a></td> |
| 4961 |
<td style="width: 33%; text-align: center;"><a href="#top">Top</a></td> |
| 4962 |
<td style="width: 33%; text-align: right;"><a href="goodies.html#top">Next: Goodies</a></td> |
| 4963 |
</tr> |
| 4964 |
</table> |
| 4965 |
|
| 4966 |
</div> |
| 4967 |
|
| 4968 |
<div class="bottom-spacer"><br/></div> |
| 4969 |
|
| 4970 |
</body> |
| 4971 |
</html> |