| 1 |
.\" -*- mode: text; coding: utf-8; -*- |
| 2 |
\# |
| 3 |
\# Copyright 2004-2020 Free Software Foundation, Inc. |
| 4 |
\# |
| 5 |
\# Copying and distribution of this file, with or without modification, |
| 6 |
\# are permitted in any medium without royalty provided the copyright |
| 7 |
\# notice and this notice are preserved. |
| 8 |
\# |
| 9 |
\# Most mom users rely on mom's document processing macros to format |
| 10 |
\# their work. The doc processing macros take care of all things |
| 11 |
\# typographic and are simple, clear and easy to learn. The kind of |
| 12 |
\# "by hand" typesetting this file demonstrates is geared towards |
| 13 |
\# professional typographers. Bear in mind, though, that the full |
| 14 |
\# power of mom's typesetting capabilities can be brought to bear on |
| 15 |
\# document processing as well. |
| 16 |
\# |
| 17 |
\# Basic page setup |
| 18 |
\# |
| 19 |
.PAGE 8.5i 11i 1i 1i 1i \" Page size, margins |
| 20 |
\# |
| 21 |
\# Basic type parameters |
| 22 |
\# |
| 23 |
.FAMILY T \" Times Roman family |
| 24 |
.FT B \" Bold font |
| 25 |
.PT_SIZE 12 \" Point size |
| 26 |
.LS 14 \" Leading (line spacing) |
| 27 |
.LEFT \" Set lines flush left, nofill mode |
| 28 |
\# |
| 29 |
\# Refinements |
| 30 |
\# |
| 31 |
.HY \" Hyphenate |
| 32 |
.KERN \" Automatic pairwise kerning |
| 33 |
.LIGATURES \" Automatic ligature generation |
| 34 |
.SMARTQUOTES \" Enable smartquotes |
| 35 |
.SS 0 \" No extra space between sentences |
| 36 |
\# |
| 37 |
.SP |1i-1v \" Advance 1 inch from top of paper to first baseline |
| 38 |
Example 1\*[BU 2]: |
| 39 |
.ALD .25v \" Advance an extra 1/4 linespace |
| 40 |
.UNDERSCORE 3.5p "T\*[BU 4]asting notes using padding, string tabs \ |
| 41 |
and multi-columns" |
| 42 |
\# |
| 43 |
.SP \" Add an extra line space |
| 44 |
\# |
| 45 |
.FAM H \" Helvetica family |
| 46 |
.PT_SIZE 10 |
| 47 |
.LS 11 \" New leading |
| 48 |
\# |
| 49 |
\# The following uses a combination of padding, string tabs, and the |
| 50 |
\# FWD escape to set up five tabs with 1-pica gutters stretched over |
| 51 |
\# the full line length. |
| 52 |
\# |
| 53 |
.SILENT \" Don't print the next line |
| 54 |
.PAD "\*[ST1]VIN#\*[ST1X]\*[FWD 1P]\*[ST2]ROBE#\*[ST2X]\ |
| 55 |
\*[FWD 1P]\*[ST3]NEZ#\*[ST3X]\*[FWD 1P]\*[ST4]BOUCHE#\*[ST4X]\ |
| 56 |
\*[FWD 1P]\*[ST5]COMMENTAIRES\*[ST5X]" |
| 57 |
.SILENT OFF \" Resume normal printing of text |
| 58 |
\# |
| 59 |
\# Now that the string tabs have been marked off, we "set" them. |
| 60 |
\# |
| 61 |
.ST 1 L \" First string tab flush left, nofill (line-for-line) mode |
| 62 |
.ST 2 L QUAD \" Remaining tabs are flush left/rag right, fill mode |
| 63 |
.ST 3 L QUAD |
| 64 |
.ST 4 L QUAD |
| 65 |
.ST 5 L QUAD |
| 66 |
\# |
| 67 |
.TAB 1 \" Call first tab |
| 68 |
.UNDERSCORE "VIN" |
| 69 |
.TN \" Move to next tab and stay on the same baseline |
| 70 |
.UNDERSCORE "ROBE" |
| 71 |
.TN \" Ibid |
| 72 |
.UNDERSCORE "NEZ" |
| 73 |
.TN \" Ibid |
| 74 |
.UNDERSCORE "BOUCHE" |
| 75 |
.TN \" Ibid |
| 76 |
.UNDERSCORE "COMMENTAIRES" |
| 77 |
.TQ \" Quit tabs |
| 78 |
\# |
| 79 |
.ALD 6p \" Advance an extra 6 points |
| 80 |
.FT R \" Change font to roman (medium) |
| 81 |
.MCO \" Turn multi-column mode on |
| 82 |
\# |
| 83 |
.TAB 1 \" Notice that this tab gets set line-for-line |
| 84 |
\*[IT]Peelee Island \" Set italic |
| 85 |
\*[PREV]Gewürztraminer \" Revert to former font (roman) |
| 86 |
2000 |
| 87 |
(Canada) |
| 88 |
.MCR \" Return to top of column |
| 89 |
.TAB 2 \" Call tab 2; in multi-column mode, don't use .TN |
| 90 |
Jaune pâle. |
| 91 |
.MCR |
| 92 |
.TB 3 \" Notice that from here on, we use the alias TB instead of TAB |
| 93 |
Frais, fruité, ci\%tronné, arômes fortes de lichee et de fruits |
| 94 |
tropicaux. |
| 95 |
.MCR |
| 96 |
.TB 4 |
| 97 |
Doux, fruité, bien équilibré avec une bonne acidité. |
| 98 |
.MCR |
| 99 |
.TB 5 |
| 100 |
Bon apéro. Servir avec des plats |
| 101 |
.RW .1 \" Reduce Whitespace between letters to tighten this line |
| 102 |
indiens ou \%chinois. |
| 103 |
.RW 0 \" Back to normal spacing between letters |
| 104 |
.BR |
| 105 |
Excellent rapport qualité/prix. |
| 106 |
.MCX 8p \" Multi-column mode off; advance an extra 8 points |
| 107 |
.MCO \" Re-invoke multi-columns for next wine description |
| 108 |
.TB 1 |
| 109 |
\*[IT]Carau Pujol |
| 110 |
\*[ROM]Tannat |
| 111 |
1995 |
| 112 |
(Uraguay) |
| 113 |
.MCR |
| 114 |
.TB 2 |
| 115 |
Rubis foncé, vio\%lacée, presque opaque. |
| 116 |
.MCR |
| 117 |
.TB 3 |
| 118 |
Belles arômes de fruits foncés (prunes, cerises noires, cassis). |
| 119 |
Odeurs tertiares de cuir, cèdre, violets, eucalyptus, avec une trace |
| 120 |
exotique de Band-Aid*\*[BU 12]. |
| 121 |
\# |
| 122 |
\# The \*[BU 12], above, pulls the period back so that it falls |
| 123 |
\# underneath the asterisk. \*[BP<n>] could have been used instead |
| 124 |
\# if you prefer to use points rather than kern units. |
| 125 |
\# |
| 126 |
.MCR |
| 127 |
.TB 4 |
| 128 |
Très rond, tannins mûres et veloutés, avec un long finis fruité et |
| 129 |
doucement alcoolique. |
| 130 |
.MCR |
| 131 |
.TB 5 |
| 132 |
Superbe\|! Une aubaine à ne pas manquer. Prêt à boire maintenant. |
| 133 |
.MCX 1v \" Multi-columns off; advance an extra linespace |
| 134 |
\# |
| 135 |
\# Now, an example of a hanging indent. This is excessively fussy |
| 136 |
\# from a typographic standpoint in that it hangs the asterisk outside |
| 137 |
\# the current left margin so that the text following it lines up with |
| 138 |
\# with the text in the tasting notes. Notice that in order to use a |
| 139 |
\# hanging indent, you must first set a left indent. |
| 140 |
\# |
| 141 |
.FT I \" Change font to italic |
| 142 |
.PT_SIZE -.5 \" Reduce point size by 1/2 point |
| 143 |
.LS -.5 \" Reduce leading by 1/2 point |
| 144 |
.JUSTIFY \" Set text justified |
| 145 |
\# |
| 146 |
\# Now, move the left margin back by the width of an asterisk plus 2 points... |
| 147 |
\# |
| 148 |
.L_MARGIN -(\w'*'+2p) |
| 149 |
\# |
| 150 |
\# ...and set a left indent equal to the width of an asterisk plus 2 points |
| 151 |
\# |
| 152 |
.IL \w'*'+2p |
| 153 |
\# |
| 154 |
\# Now, set the hanging indent equal to the left indent, effectively |
| 155 |
\# pulling the first line of the following text back to the new left |
| 156 |
\# margin. Subsequent output lines will be indented by the .IL |
| 157 |
\# amount. Notice that when using the \w inline escape, there's no |
| 158 |
\# need to append a unit of measure. |
| 159 |
\# |
| 160 |
.HI \w'*'+2p |
| 161 |
*\*[FWD 1p]The term "Band-Aid" means the slightly sweet, vaguely chemical |
| 162 |
smell associated with medical-grade plastics. It is often found in |
| 163 |
wines from terroirs in South America. Provided a wine has a sufficient |
| 164 |
concentration of fruit |
| 165 |
.RW .04 \" Tighten the next line slightly, so "lipstick" doesn't hyphenate. |
| 166 |
aromas and complex tertiary characteristics, Band-Aid is a Good Thing. |
| 167 |
Otherwise, it smells like cheap lipstick. |
| 168 |
.RW 0 \" Reset kerning to 0 |
| 169 |
\# |
| 170 |
\# Notice, above, that although the values for IL and HI are the width |
| 171 |
\# of an asterisk plus 2 points, when setting the first line of text |
| 172 |
\# (the one with the asterisk at the beginning), we put only 1 point of |
| 173 |
\# space after the *. This is to compensate for the fact that in the |
| 174 |
\# italic font, the letter T doesn't align visually with the rest of |
| 175 |
\# the text. As already noted, this is an extremely fussy example. :) |
| 176 |
\# |
| 177 |
.IQ CLEAR \" Cancel and clear stored indent values |
| 178 |
.L_MARGIN 1i \" Reset left margin to its original value. |
| 179 |
\# |
| 180 |
.ALD 2P \" Add 2-picas extra space before next example |
| 181 |
\# |
| 182 |
.FAM T |
| 183 |
.FT B |
| 184 |
.PT_SIZE 12 |
| 185 |
.LS 14 |
| 186 |
\# |
| 187 |
Example 2: |
| 188 |
.ALD .25v |
| 189 |
\# |
| 190 |
.COMMENT |
| 191 |
In the next line, because the string to be underscored must be |
| 192 |
enclosed in double-quotes, you can't use the double-quote character |
| 193 |
itself around the word "Massaging". We circumvent this by using the |
| 194 |
groff inline escapes \[lq] and \[rq] (leftquote and rightquote). |
| 195 |
.COMMENT OFF |
| 196 |
\# |
| 197 |
.UNDERSCORE 3.5p "\[lq]Massaging\[rq] \*[BCK 1p]a passage of rag right text" |
| 198 |
.SP \" Add an extra linespace |
| 199 |
\# |
| 200 |
.PT_SIZE 12.5 |
| 201 |
.LS 14 |
| 202 |
.PT_SIZE -1 \" Reduce point size by 1 point |
| 203 |
Passage using groff spacing defaults |
| 204 |
\# |
| 205 |
.ALD .5v \" Add an extra 1/2 line space |
| 206 |
\# |
| 207 |
.PT_SIZE +1 \" Restore point size |
| 208 |
.QUAD LEFT \" Set quad left, fill mode |
| 209 |
.IB 3P \" Indent 3 picas from both the left and right margins |
| 210 |
.FT R |
| 211 |
The thousand injuries of Fortunato I had borne as I best could; |
| 212 |
but when he ventured upon insult, I vowed revenge. You, who so well |
| 213 |
know the nature of my soul, will not suppose, however, that I gave |
| 214 |
utterance to a threat. \*[IT]At length\*[PREV] I would be |
| 215 |
avenged; this was a point definitively settled\[em]but the very |
| 216 |
definitiveness with which it was resolved, precluded the idea of |
| 217 |
risk. I must not only punish, but punish with impunity. A |
| 218 |
wrong is unredressed when retribution overtakes its redresser. |
| 219 |
It is equally unredressed when the avenger fails to make himself |
| 220 |
felt as such to him who has done the wrong. |
| 221 |
.ALD 6p |
| 222 |
\# |
| 223 |
\# The next line is set quad right, nofill mode, 1/2 point smaller |
| 224 |
\# than the preceding text (using the \*[SIZE <n>] inline escape. |
| 225 |
\# |
| 226 |
.RIGHT |
| 227 |
\*[SIZE -.5]\[em]Edgar Allen Poe, \*[IT]The Cask of Amontillado\*[PREV]\*[SIZE +.5] |
| 228 |
.SP \" Extra linespace |
| 229 |
.IBQ \" Disable "indent both" |
| 230 |
\# |
| 231 |
\# The passage above, while acceptable in a longer document, exhibits a |
| 232 |
\# few typographic flaws. The shape of the right margin rag exhibits |
| 233 |
\# a decidedly "rounded" appearance. The word "I" stands alone at the |
| 234 |
\# end of the third line. The space between the 1st and 2nd sentences |
| 235 |
\# ("...revenge. You...") is too large, owing to the letter "Y" that |
| 236 |
\# begins the 2nd sentence. The spacing between "A wrong..." (line 6) |
| 237 |
\# is equally too large because of the way "A" and "w" fit together. |
| 238 |
\# The em-dash before Edgar isn't vertically centered with the letter "E". |
| 239 |
\# And so on. The most important correction below is fixing the rag |
| 240 |
\# so that longer and shorter lines alternate. This is accomplished by |
| 241 |
\# manually breaking lines and then slightly lengthening and shortening |
| 242 |
\# them until a pleasing rag is achieved. The remainder of the little |
| 243 |
\# flaws are fixed with inline escapes. |
| 244 |
\# |
| 245 |
.FT B |
| 246 |
.PT_SIZE -1 |
| 247 |
.LEFT |
| 248 |
The same passage, \*[BU4]"massaged" |
| 249 |
\# |
| 250 |
.ALD .5v |
| 251 |
\# |
| 252 |
.FT R |
| 253 |
.PT_SIZE +1 |
| 254 |
.QUAD LEFT |
| 255 |
.HY OFF \" Turn automatic hyphenation off |
| 256 |
.BR_AT_LINE_KERN \" Automatically insert a line break (.BR) at each .RW and .EW |
| 257 |
.WS +1 \" Increase word space slightly |
| 258 |
.IB \" Turn "indent both" back on; values are the same as before |
| 259 |
\# |
| 260 |
The thousand injuries of Fortunato I had borne as I best could; |
| 261 |
but when he ventured upon insult, I \*[BU2]vowed revenge. |
| 262 |
\*[BU4]Y\*[BU6]ou, \*[BU4]who so \*[BU2]well know the nature |
| 263 |
.EW .2 |
| 264 |
of my soul, \*[BU2]will not suppose, however, that I gave utterance |
| 265 |
to a threat. \*[IT]At |
| 266 |
.EW .2 |
| 267 |
length\*[PREV] I would be avenged; this was a point definitively |
| 268 |
settled\[em]but the |
| 269 |
.EW .2 |
| 270 |
v\*[BU1]ery definitiveness with which it was resolved, precluded the |
| 271 |
idea of risk. |
| 272 |
.EW 0 |
| 273 |
I must not only punish, but punish with impunity. A \*[BCK 1p]wrong |
| 274 |
is unredressed |
| 275 |
.EW .1 |
| 276 |
when retribution overtakes its redresser. It is equally unredressed |
| 277 |
when the |
| 278 |
.RW .1 |
| 279 |
avenger fails to make himself felt as such to him \*[BU 2]who has |
| 280 |
done the wrong. |
| 281 |
.RW 0 \" Restore normal kerning |
| 282 |
.WS +0 \" Restore normal wordspacing |
| 283 |
.ALD 6p |
| 284 |
.PT_SIZE -.5 |
| 285 |
.RIGHT |
| 286 |
\*[UP 1.5p]\[em]\*[DOWN 1.5p]\*[BCK 1p]Edgar \*[BCK 1p]Allen Poe, \ |
| 287 |
\*[IT]The Cask of Amontillado\*[PREV] |
| 288 |
.IQ CLEAR \" Cancel and clear stored values of all indents |
| 289 |
\# |
| 290 |
.NEWPAGE \" Start a new page |
| 291 |
.T_MARGIN 1i \" Set top margin to 1i (approx. equivalent to .ALD 1i-1v above) |
| 292 |
\# |
| 293 |
.FAM T |
| 294 |
.FT B |
| 295 |
.PT_SIZE 12 |
| 296 |
.LS 14 |
| 297 |
.LEFT |
| 298 |
\# |
| 299 |
Example 3: |
| 300 |
.ALD .25v |
| 301 |
.UNDERSCORE 3.5p "A \*[BU2]recipe for enumerated lists using indents" |
| 302 |
.SP .5v \" Add an extra half line space |
| 303 |
.ie F NR .FAM N \" Load New Century Schoolbook family if available, |
| 304 |
.el .FAM T \" otherwise, use Times New Roman |
| 305 |
.FT R |
| 306 |
.PT_SIZE 11 |
| 307 |
.HY \" Turn hyphenation back on |
| 308 |
.JUSTIFY \" Justify text |
| 309 |
This example demonstrates the use of left and hanging indents for |
| 310 |
simple enumerated lists. Nested lists are possible, as the example |
| 311 |
shows; however, the more complex the nesting, the wiser it becomes |
| 312 |
to use (string) tabs, as seen in Example 4. |
| 313 |
.DBX .5 0 \n[.l]u 2P+9p \" Draw box; \n[.l]u means "the current line length" |
| 314 |
.IB 6p \" Indent from both left and right margins |
| 315 |
.ALD 14p |
| 316 |
\*[BD]Please note: mom\*[PREV] has macros that allow you to set |
| 317 |
enumerated lists automatically. These examples merely show hanging |
| 318 |
indents and string tabs in use. |
| 319 |
\# |
| 320 |
.ALD 9p |
| 321 |
.JUSTIFY \" Justify text |
| 322 |
.IL \w'\0.\0' \" Establish a left indent equal to 2 figure spaces plus a period. |
| 323 |
.HI \w'\0.\0' \" Establish a hanging indent equal to the left indent. |
| 324 |
.ALD 6p |
| 325 |
\# |
| 326 |
\# |
| 327 |
1.\0This is the first item in the list. N\*[BU2]otice how the first line |
| 328 |
"hangs" back from the remaining text, which is otherwise |
| 329 |
indented by the width of by two figure-spaces (digit-width |
| 330 |
spaces) and a period. |
| 331 |
.BR |
| 332 |
.HI \" Notice that HI doesn't require an argument once the value's set |
| 333 |
.ALD 6p |
| 334 |
2.\0This is the second item in the list. As with the above item, |
| 335 |
notice the use of the \*[BU8]\\0 escape sequence in the input |
| 336 |
text. It's there to ensure that the space after the number/period |
| 337 |
combination always remains the same (i.e. doesn't stretch when the |
| 338 |
line is justified). That way, the text of each item always lines up |
| 339 |
perfectly. |
| 340 |
\# |
| 341 |
.COMMENT |
| 342 |
Now we're going to set a bullet-point list, indented from the text |
| 343 |
above by 1 pica. IL arguments are always added to whatever value |
| 344 |
is in already effect for IL, hence all we have to do is tell mom to |
| 345 |
indent (from the current left indent) 1 pica plus the width of the |
| 346 |
bullet character, \[bu]. \*[FWD 3p] puts three points of space after |
| 347 |
the bullet so that the bullet and the text are visually separated. |
| 348 |
.COMMENT OFF |
| 349 |
\# |
| 350 |
\# |
| 351 |
.IL 1P+\w'\[bu]\*[FWD 3p]' |
| 352 |
\# |
| 353 |
\# Hanging indents are always relative to the current left indent. |
| 354 |
\# The additional 1-pica indent, above, already having been taken |
| 355 |
\# care of, we only want to hang the first lines of bullet list |
| 356 |
\# items back by the width of the bullet character plus its 3 extra |
| 357 |
\# points of space. |
| 358 |
\# |
| 359 |
.ALD 6p |
| 360 |
.HI \w'\[bu]\*[FWD 3p]' |
| 361 |
\*[DOWN 1p]\[bu]\*[UP 1p]\*[FWD 3p]This is the first line of a |
| 362 |
sublist with bullets. N\*[BU2]otice how the first line (the one |
| 363 |
with the bullet) is indented exactly one pica from the text of the |
| 364 |
list item above it, while the remaining lines align with the left |
| 365 |
indent we set above. |
| 366 |
.ALD 6p |
| 367 |
.HI |
| 368 |
\*[DOWN 1p]\[bu]\*[UP 1p]\*[FWD 3p]This is the second item of the |
| 369 |
sublist with bullets. \*[BU4]We could go on indefinitely, but let's |
| 370 |
go back to the top level (numbered) list... |
| 371 |
\# |
| 372 |
\# The easiest way to return to a previous indent value is by |
| 373 |
\# subtraction. The argument to IL, above, was 1P+\w'[bu]\*[FWD |
| 374 |
\# 3p]', so we just reverse it by putting a minus sign in front. |
| 375 |
\# The parentheses are required for groff to evaluate the expression |
| 376 |
\# properly. |
| 377 |
\# |
| 378 |
.IL -(1P+\w'\[bu]\*[FWD 3p]') |
| 379 |
.HI \w'\0.\0' \" Reset hanging indent for use with numbered items. |
| 380 |
.ALD 6p |
| 381 |
3.\0...and here we are. |
| 382 |
.IQ CLEAR \" Don't forget to cancel and/or clear indents! |
| 383 |
\# |
| 384 |
.FAM T |
| 385 |
.FT B |
| 386 |
.PT_SIZE 12 |
| 387 |
.LS 14 |
| 388 |
.LEFT |
| 389 |
.SP |
| 390 |
\# |
| 391 |
Example 4: |
| 392 |
.ALD .25v |
| 393 |
.UNDERSCORE 3.5p "A \*[BU 2]recipe for nested lists using string tabs" |
| 394 |
.SP .5v |
| 395 |
.ie F NR .FAM N |
| 396 |
.el .FAM T |
| 397 |
.FT R |
| 398 |
.PT_SIZE 11 |
| 399 |
.LS 13 |
| 400 |
.JUSTIFY |
| 401 |
Although setting up string tabs is a bit more complex than setting |
| 402 |
up indents, it's \*[BU 3]well worth the effort, especially for |
| 403 |
nested lists. |
| 404 |
.ALD 6p |
| 405 |
\# |
| 406 |
.COMMENT |
| 407 |
The PAD line, below, sets up two string tabs. The first (ST1) is |
| 408 |
exactly the length of two figure spaces and a period. The second |
| 409 |
(ST2) is simply "the remainder of the line." |
| 410 |
.COMMENT OFF |
| 411 |
\# |
| 412 |
.SILENT \" Don't print any of this |
| 413 |
.PAD "\*[ST1]\0.\0\*[ST1X]\*[ST2]#\*[ST2X]" |
| 414 |
.ST 1 L \" String tabs must be "set" after being marked off in a line |
| 415 |
.ST 2 J \" ST 1 will be set flush left, nofill; ST 2 will be justified. |
| 416 |
.SILENT OFF \" Restore printing |
| 417 |
\# |
| 418 |
.TB 1 |
| 419 |
1.\c |
| 420 |
.TN \" Use .TN so text stays on the same baseline |
| 421 |
This is the first item in the list. N\*[BU 2]otice how, just as in |
| 422 |
Example 3, the first line hangs back from the remaining text, which |
| 423 |
is otherwise |
| 424 |
indented. |
| 425 |
.ALD 6p |
| 426 |
.TB 1 |
| 427 |
2.\c |
| 428 |
.TN |
| 429 |
This is the second item in the list. N\*[BU 2]otice that when |
| 430 |
setting "lists" with tabs, there's no need to input the \*[BU 8]\\0 |
| 431 |
escape sequence after the number/period combination. |
| 432 |
\# |
| 433 |
.COMMENT |
| 434 |
Now, set up the indented bullet-point sublist. The PAD line |
| 435 |
says: move forward 12 points (1 pica), then mark off a string |
| 436 |
tab (ST3) that's the length of the bullet character; move forward |
| 437 |
another three points, then make the next string tab (ST4) the |
| 438 |
length of remainder of the line. |
| 439 |
.COMMENT OFF |
| 440 |
\# |
| 441 |
.SILENT |
| 442 |
.PAD "\*[FWD 12p]\*[ST3]\[bu]\*[ST3X]\*[FWD 3p]\*[ST4]#\*[ST4X]" |
| 443 |
.ST 3 L |
| 444 |
.ST 4 J |
| 445 |
.SILENT OFF |
| 446 |
.ALD 6p |
| 447 |
.TB 3 |
| 448 |
\*[DOWN 1p]\[bu]\*[UP 1p]\c |
| 449 |
.TN |
| 450 |
This is the first line of a sublist with bullets. N\*[BU2]otice |
| 451 |
how the bullets and the text line up exactly the same as in |
| 452 |
Example 3. |
| 453 |
.ALD 6p |
| 454 |
.TB 3 |
| 455 |
\*[DOWN 1p]\[bu]\*[UP 1p]\c |
| 456 |
.TN |
| 457 |
This is the second item of the sublist with bullets. For the fun of |
| 458 |
it, lets add in an |
| 459 |
.SPREAD |
| 460 |
en-dashed sub-sublist. |
| 461 |
.BR \" We're in fill mode right now, so you must terminate the line with BR |
| 462 |
\# |
| 463 |
.SILENT |
| 464 |
.PAD "\*[FWD 12p]\*[ST5]\[en]\*[ST5X]\*[FWD 4p]\*[ST6]#\*[ST6X]" |
| 465 |
.ST 5 L |
| 466 |
.ST 6 J |
| 467 |
.SILENT OFF |
| 468 |
.ALD 6p |
| 469 |
.TB 5 |
| 470 |
\*[UP .75p]\[en]\*[DOWN .75p]\c |
| 471 |
.TN |
| 472 |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam |
| 473 |
nonumy tempor invidunt ut labore et dolore magna aliquyam |
| 474 |
erat, sed diam voluptua. |
| 475 |
.ALD 6p |
| 476 |
.TB 5 |
| 477 |
\*[UP .75p]\[en]\*[DOWN .75p]\c |
| 478 |
.TN |
| 479 |
At \*[BU 3]vero eos et accusam et justo duo dolores et ea rebum. |
| 480 |
Stet clita kasd gubergren, no sea takimata sanctus est lorem ipsum |
| 481 |
dolor sit amet. |
| 482 |
.ALD 6p |
| 483 |
.TB 1 |
| 484 |
3.\c |
| 485 |
.TN |
| 486 |
And here we are, back at the top-level numbered list with a minimum |
| 487 |
of muss and fuss, |
| 488 |
.ALD 6p |
| 489 |
.TB 1 |
| 490 |
4.\c |
| 491 |
.TN |
| 492 |
Generally speaking, once you get the hang of string tabs and the |
| 493 |
\*[BD]PAD\*[PREV] macro, you'll find setting up complex indenting |
| 494 |
structures easier than with the indent macros. |
| 495 |
.TQ |
| 496 |
\# |
| 497 |
.NEWPAGE |
| 498 |
.FAM T |
| 499 |
.FT B |
| 500 |
.PT_SIZE 12 |
| 501 |
.LS 14 |
| 502 |
.RLD 2p |
| 503 |
.LEFT |
| 504 |
\# |
| 505 |
Example 5: |
| 506 |
.ALD .25v |
| 507 |
.UNDERSCORE 3.5p "Word spacing" |
| 508 |
.ALD 8p |
| 509 |
.ie F PR .FAM P \" Load Palatino family if available, |
| 510 |
.el .FAM T \" otherwise use Times New Roman |
| 511 |
.PT_SIZE 11 |
| 512 |
.LS 14 |
| 513 |
\# |
| 514 |
\# The "label" lines for the following are set in Helvetica |
| 515 |
\# bold, one point smaller than the examples themselves. This |
| 516 |
\# demonstrates the use of the groff inline escape \f[...] to change |
| 517 |
\# both family and font inline. It also shows using the mom inline |
| 518 |
\# \*S[...], which is an alternate form of the inline, \*[SIZE <n>] |
| 519 |
\# |
| 520 |
\f[HB]\*S[-1]Normal word spacing\*S[+1]\*[PREV] |
| 521 |
.FT R |
| 522 |
N\*[BU1]o\*[BU1]w \*[BU1]is the time for all good men to come to the aid of the party. |
| 523 |
.ALD 4p |
| 524 |
\f[HB]\*S[-1]Word spacing adjusted by \*[UP 1p]\*[BU3]+\*[DOWN 1p]\*[BU1]2\*S[+1]\*[PREV] |
| 525 |
.FT R |
| 526 |
.WS +2 |
| 527 |
N\*[BU1]o\*[BU1]w \*[BU1]is the time for all good men to come to the aid of the party. |
| 528 |
.WS DEFAULT |
| 529 |
.ALD 4p |
| 530 |
\f[HB]\*S[-1]Word spacing adjusted by \*[UP 1p]\*[BU3]+\*[DOWN 1p]4\*S[+1]\*[PREV] |
| 531 |
.FT R |
| 532 |
.WS +4 |
| 533 |
N\*[BU1]o\*[BU1]w \*[BU1]is the time for all good men to come to the aid of the party. |
| 534 |
.WS DEFAULT |
| 535 |
.ALD 4p |
| 536 |
\f[HB]\*S[-1]Word spacing adjusted by \*[UP 1p]\*[BU3]+\*[DOWN 1p]6\*S[+1]\*[PREV] |
| 537 |
.FT R |
| 538 |
.WS +6 |
| 539 |
N\*[BU1]o\*[BU1]w \*[BU1]is the time for all good men to come to the aid of the party. |
| 540 |
.WS DEFAULT |
| 541 |
.SP 1.5v |
| 542 |
\# |
| 543 |
.FAM T |
| 544 |
.FT B |
| 545 |
.PT_SIZE 12 |
| 546 |
.LS 14 |
| 547 |
\# |
| 548 |
.LEFT |
| 549 |
Example 6: |
| 550 |
.ALD .25v |
| 551 |
.UNDERSCORE 3.5p "Line kerning" |
| 552 |
.ALD 8p |
| 553 |
.ie F PR .FAM P |
| 554 |
.el .FAM T |
| 555 |
.FT R |
| 556 |
.PT_SIZE 11 |
| 557 |
.LS 15 |
| 558 |
\# |
| 559 |
\# Here, we set up some tabs so the examples can go into facing columns. |
| 560 |
\# |
| 561 |
.TAB_SET 1 0 19.5P L |
| 562 |
.TAB_SET 2 19.5P 19.5P L |
| 563 |
\# |
| 564 |
.MCO \" Turn multi-columns on |
| 565 |
.TB 1 |
| 566 |
\f[HB]\*S[-1]Unkerned line\*S[+1]\*[PREV] |
| 567 |
.FT R |
| 568 |
"But this is \*[IT]important!\/"\*[PREV]she exclaimed. |
| 569 |
.ALD 4p |
| 570 |
\f[HB]\*S[-1]Line "tightened" \[en] .RW .1\*S[+1]\*[PREV] |
| 571 |
.RW .1 |
| 572 |
"But this is \*[IT]important!\/"\*[PREV]she exclaimed. |
| 573 |
.ALD 4p |
| 574 |
\# |
| 575 |
\# In the next line, notice that because it uses a different family |
| 576 |
\# (Helvetica instead of Palatino), the RW macro doesn't affect it. |
| 577 |
\# |
| 578 |
\f[HB]\*S[-1]Line "tightened" \[en] .RW .2\*S[+1]\*[PREV] |
| 579 |
.RW .2 |
| 580 |
"But this is \*[IT]important!\/"\*[PREV]she exclaimed. |
| 581 |
.ALD 4p |
| 582 |
\f[HB]\*S[-1]Line "tightened" \[en] .RW .3\*S[+1]\*[PREV] |
| 583 |
.RW .3 |
| 584 |
"But this is \*[IT]important!\/"\*[PREV]she exclaimed. |
| 585 |
.MCR |
| 586 |
.TB 2 |
| 587 |
\f[HB]\*S[-1]Unkerned line\*S[+1]\*[PREV] |
| 588 |
"But this is \*[IT]important!\/"\*[PREV]she exclaimed. |
| 589 |
.ALD 4p |
| 590 |
\f[HB]\*S[-1]Line "loosened" \[en] .EW .1\*S[+1]\*[PREV] |
| 591 |
.EW .1 |
| 592 |
"But this is \*[IT]important!\/"\*[PREV]she exclaimed. |
| 593 |
.ALD 4p |
| 594 |
\f[HB]\*S[-1]Line "loosened" \[en] .EW .2\*S[+1]\*[PREV] |
| 595 |
.EW .2 |
| 596 |
"But this is \*[IT]important!\/"\*[PREV]she exclaimed. |
| 597 |
.ALD 4p |
| 598 |
\f[HB]\*S[-1]Line "loosened" \[en] .EW .3\*S[+1]\*[PREV] |
| 599 |
.EW .3 |
| 600 |
"But this is \*[IT]important!\/"\*[PREV]she exclaimed. |
| 601 |
.MCX 1.5v |
| 602 |
.EW 0 |
| 603 |
\# |
| 604 |
.FAM T |
| 605 |
.FT B |
| 606 |
.PT_SIZE 12 |
| 607 |
.LS 14 |
| 608 |
.LEFT |
| 609 |
\# |
| 610 |
Example 7: |
| 611 |
.ALD .25v |
| 612 |
.UNDERSCORE 3.5p "Cutaround using left\*[FU 2]/right indents, \ |
| 613 |
multi columns and a dropcap" |
| 614 |
.SP |
| 615 |
\# |
| 616 |
.FT R |
| 617 |
.PT_SIZE 11 |
| 618 |
.LS 12 |
| 619 |
.BR_AT_LINE_KERN OFF \" In justified text, it's best to have this OFF |
| 620 |
\# |
| 621 |
.TAB_SET 1 0 18.5P J |
| 622 |
.TAB_SET 2 20.5P 18.5P J |
| 623 |
.MCO |
| 624 |
.ALD 5P+9p |
| 625 |
\# |
| 626 |
\# The little picture of tux. |
| 627 |
\# |
| 628 |
.if '\*[.T]'pdf' .PDF_IMAGE penguin.pdf 81p 96p |
| 629 |
.if '\*[.T]'ps' .PSPIC penguin.ps 81p 96p |
| 630 |
.MCR |
| 631 |
.TAB 1 |
| 632 |
.XCOLOR red \" Initialize the X11 color, red |
| 633 |
.DROPCAP_COLOR red |
| 634 |
.DROPCAP_FONT B |
| 635 |
.DROPCAP L 3 COND 80 \" i.e. the letter L dropped 3 lines, condensed to 80% of its normal width |
| 636 |
.EW .2 |
| 637 |
orem ipsum dolor sit amet, consetetur sa\%dip\%scing elitr, sed diam |
| 638 |
nonumy eir\%mod tempor invidunt ut labore et dolore magna aliquyam |
| 639 |
erat, sed diam voluptua. |
| 640 |
.EW 0 |
| 641 |
.TI 1P |
| 642 |
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita |
| 643 |
kasd gubergren, no sea taki- |
| 644 |
.SPREAD \" Force justify preceding line before starting indent |
| 645 |
.IR 3.5P |
| 646 |
kimata sanctus est lorem ipsum dolor sit amet. Lorem ipsum dolor |
| 647 |
sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod |
| 648 |
tempor. |
| 649 |
.EW .2 |
| 650 |
.TI |
| 651 |
Invidunt ut labore et dolore magna ali\%qu\%yam erat, sed diam |
| 652 |
voluptua. At |
| 653 |
.EW 0 |
| 654 |
vero eos et accusam et justo duo dolores et ea rebum. |
| 655 |
.TI |
| 656 |
Stet clita kasd gubergren, no sea ta- |
| 657 |
.SPREAD \" Force justify preceding line before quitting indent |
| 658 |
.IRQ |
| 659 |
kimata sanctus est lorem ipsum dolor sit amet. Lorem ipsum dolor |
| 660 |
sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor |
| 661 |
in\%vi\%dunt ut labore et dolore magna aliquyam erat. Sed diam |
| 662 |
voluptua, at vero eos et accusam et justo duo |
| 663 |
.SPREAD |
| 664 |
.EW .3 |
| 665 |
dolores et ea rebum. Stet clita no kasd guber- |
| 666 |
.SPREAD |
| 667 |
.MCR |
| 668 |
.TB 2 |
| 669 |
gren, no sea takimata sanctus est lorem ipsum |
| 670 |
.EW 0 |
| 671 |
dolor sit amet. Consetetur sadipscing elitr, sed diam nonumy eirmod |
| 672 |
tempor invidunt ut labore et dolore. |
| 673 |
.TI |
| 674 |
Magna aliquyam erat, sed diam voluptua, at vero eos et accusam. Et |
| 675 |
justo duo dolores et ea |
| 676 |
.SPREAD |
| 677 |
.IL 3.5P |
| 678 |
rebum, stet clita kasd gubergren. No sea takimata sanctus est, |
| 679 |
lorem ipsum dolor sit amet. |
| 680 |
.TI |
| 681 |
Sit amet, consetetur sadipscing elitr, sed diam. Nonumy eirmod |
| 682 |
tempor in\%vi- |
| 683 |
.EW .3 |
| 684 |
dunt ut labore et dolore magna. Ali- |
| 685 |
.EW 0 |
| 686 |
quyam erat sed diam voluptua. At vero eos et accusam et justo duo |
| 687 |
dolores et ea rebum stet. |
| 688 |
.ILQ |
| 689 |
.TI |
| 690 |
Dolores et ea rebum stet clita kasd gubergren, no sea takimata |
| 691 |
sanctus. Sadipscing elitr sed diam, nonumy eirmod tempor, invidunt |
| 692 |
ut labore et dolore magna aliquyam erat. Sed diam voluptua, at vero |
| 693 |
eos et accusam et justo duo dolores et ea rebum. |
| 694 |
.\" Local Variables: |
| 695 |
.\" mode: nroff |
| 696 |
.\" End: |
| 697 |
.\" vim: filetype=groff: |