summaryrefslogtreecommitdiffstats
path: root/contrib/mom/momdoc/images.html
blob: dc1837fc14fcb8469c49ad932a24a989dde64beb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is part of groff, the GNU roff type-setting system.

Copyright (C) 2004-2020 Free Software Foundation, Inc.
Written by Peter Schaffter (peter@schaffter.ca).

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts.

A copy of the Free Documentation License is included as a file called
FDL in the main directory of the groff source package.
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  <title>Mom -- Graphics, floats, and preprocessor support</title>
  <link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>

<body style="background-color: #f5faff;">

<!-- ==================================================================== -->

<div id="top" class="page">

<!-- Navigation links -->
<table style="width: 100%;">
<tr>
  <td><a href="toc.html">Back to Table of Contents</a></td>
  <td style="text-align: right;"><a href="headfootpage.html#top">Next: Page headers/footers, pagination</a></td>
</tr>
</table>

<h1 class="docs">Graphics, floats, and preprocessor support</h1>

<div style="width: 80%; margin: auto;">
<ul class="no-enumerator" style="margin-left: -1em;">
  <li><a href="#images-intro">Inserting images and graphics</a>
  <ul>
    <li><a href="#converting">Image conversion and file processing</a>
    <ul style="margin-left: -1em">
      <li><a href="#pdf">PDF</a></li>
      <li><a href="#eps">EPS</a></li>
    </ul></li>
    <li><a href="#pdf-image">The PDF_IMAGE macro</a>
    <ul style="margin-left: -1em">
      <li><a href="#pdf-image-frame">PDF_IMAGE_FRAME</a>&mdash;set parameters for image frames</li>
    </ul></li>
    <li><a href="#pspic">The PSPIC macro</a></li>
  </ul></li>
  <li><a href="#floats-intro">Floats</a>
  <ul>
    <li><a href="#float">The FLOAT macro</a></li>
    <li><a href="#float-label-caption">Labelling and captioning floats</a>
		<ul style="margin-left: -1em">
		<li><a href="#label">LABEL</a></li>
		<li><a href="#caption">CAPTION</a></li>
		</ul></li>
  </ul></li>
  <li><a href="#preprocessor-support">Preprocessor support</a>
  <ul>
    <li><a href="#tbl">tbl</a>
    <ul style="margin-left: -1em;">
      <li><a href="#ts-te">.TS / .TH / .TE macros and arguments</a></li>
    </ul></li>
    <li><a href="#eqn">eqn</a>
      <ul style="margin-left: -1em;">
        <li><a href="#eq-en">.EQ / .EN macros and arguments</a></li>
      </ul></li>
    <li><a href="#pic">pic</a>
    <ul style="margin-left: -1em;">
      <li><a href="#ps-pe">.PS / .PE macros and arguments</a></li>
      <li><a href="#pic-text-style">PIC_TEXT_STYLE</a>&mdash;set parameters for text in diagrams</li>
    </ul></li>
    <li><a href="#grap">grap</a></li>
    <li><a href="#refer">refer</a></li>
  </ul></li>
  <li><a href="#captions-and-labels">Captions and labels</a>
    <ul>
      <li><a href="#autolabel">AUTOLABEL</a></li>
      <li><a href="#set-autolabel">SET_AUTOLABEL</a></li>
      <li><a href="#caption-after-label">CAPTION_AFTER_LABEL</a></li>
      <li><a href="#captions-labels-sources">CAPTIONS / LABELS / SOURCES</a>&mdash;set parameters for each</li>
      <li><a href="#mla">MLA</a></li>
    </ul></li>
  <li><a href="#lists-of">Lists of Figures, Tables, and Equations</a>
    <ul>
      <li><a href="#lists-placement">Placement of Lists</a></li>
      <li><a href="#lists-macros">Macros to generate Lists</a></li>
      <li><a href="#formatting-lists">Formatting and style parameters for Lists</a>
      <ul style="margin-left: -1em">
        <li><a href="#lists-style">LISTS_STYLE</a></li>
      </ul></li>
  </ul></li>
  <li><a href="#box-intro">Shaded backgrounds and frames (boxes)</a>
    <ul>
      <li><a href="#box-intro">Introduction and description</a></li>
      <li><a href="#box">The BOX macro</a></li>
      <li><a href="#box-notes">Additional notes on box usage and behaviour</a>
        <ul>
         <li><a href="#qbef">QUOTE, BLOCKQUOTE, EPIGRAPH, FLOAT</a></li>
         <li><a href="#code">CODE</a></li>
         <li><a href="#quotes">Description of boxed BLOCKQUOTEs and EPIGRAPHs</a>
         <ul style="margin-left: -1em; list-style: disc;">
           <li><a href="#leftover">Leftover box syndrome</a></li>
         </ul></li>
         <li><a href="#slides">Slides</a></li>
         <li><a href="#footnotes">Footnotes</a></li>
        </ul></li>
      <li><a href="#page-color-intro">Page colour</a></li>
    </ul>
  </li>
</ul>
</div>

<div class="rule-medium"><hr/></div>

<h2 id="images-intro" class="docs">Inserting images and graphics</h2>

<p>
In order to include images in mom documents, the images must be in
either PDF (.pdf) or EPS (.eps) format.  Each format requires its own
macro, but both take the same arguments, and in the same order.
</p>

<p>
Please note that there are differences in the way the files
containing PDF and EPS images must be processed, hence documents may
not contain a mix.
</p>

<h3 id="converting" class="docs">Image conversion and file processing</h3>

<p>
When your image files are not in PDF or EPS format&mdash;jpgs,
for example&mdash;you must convert them before including them in
a mom document.  Any utility for converting images may used.  The
ImageMagick suite of programmes, present on most GNU/Linux
systems, contains <b>convert</b>, which is simple and effective.
</p>

<h4 id="pdf" class="docs">PDF</h4>

<p>
Assuming a jpg image, conversion to PDF is done like this:
<br/>
<span class="pre-in-pp">
  convert &lt;image&gt;.jpg &lt;image&gt;.pdf
</span>
Any image type supported by <b>convert</b> may be converted this
way.
</p>

<p>
Mom files containing PDF images must be processed using
groff&#8217;s pdf driver.  Use of
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>
is strongly recommended, which natively invokes the pdf driver.
<br/>
<span class="pre-in-pp">
  pdfmom doc.mom &gt; doc.pdf
</span>
</p>

<h4 id="eps" class="docs">EPS</h4>

<p>
Assuming a jpg image, conversion to EPS is done like this:
<br/>
<span class="pre-in-pp">
  convert &lt;image&gt;.jpg &lt;image&gt;.eps
</span>
Any image type supported by <b>convert</b> may be converted this
way.  There have been reports of trouble with PostScript level 2
images, so don&#8217;t save your images in this format.
</p>

<p>
Mom files containing EPS images must be processed using
groff&#8217;s postscript driver.  Use of
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>,
which can be told to use the postscript driver, is strongly
recommended.
<br/>
<span class="pre-in-pp">
  pdfmom -Tps doc.mom &gt; doc.pdf
</span>
</p>

<!-- -PDF_IMAGE- -->

<div class="macro-id-overline">
<h3 id="pdf-image" class= "macro-id">PDF_IMAGE</h3>
</div>

<div class="box-macro-args">
Macro: <b>PDF_IMAGE</b> \
<br/>
<kbd class="macro-args">[ -L | -C | -R | -I &lt;indent&gt; ] \
<br/>
&lt;pdf image file&gt; &lt;width&gt; &lt;height&gt; [ SCALE &lt;factor&gt; ] \
<br/>
[ ADJUST +|-&lt;vertical adjustment&gt; ] [ NO_SHIM ] [ NO_FLEX ] \
<br/>
[ FRAME ] \
<br/>
[ CAPTION "&lt;caption&gt;" ] [ SHORT_CAPTION "&lt;short caption&gt;" ] \
<br/>
[ LABEL "&lt;label&gt;" ] [ TARGET "&lt;name&gt;" ]</kbd>
</div>
<p class="requires">
&bull;&nbsp;<span style="font-style: normal">
<kbd>&lt;indent&gt;</kbd>,
<kbd>&lt;width&gt;</kbd>,
<kbd>&lt;height&gt;</kbd></span>
and
<span style="font-style: normal">
<kbd>&lt;vertical adjustment&gt;</kbd></span>
require a
<a href="definitions.html#unitofmeasure">unit of measure</a>
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
Mom files with embedded PDF images must be processed with
pdfmom&nbsp;doc.mom&nbsp;&gt;&nbsp;doc.pdf.  Arguments may be broken
into several lines using the &#8220;line-continued&#8221; backslash
(<b>\</b>), as shown above.
</p>
</div>

<p>
Unlike
<a href="#pspic">PSPIC</a>,
which it resembles, PDF_IMAGE requires that the pdf image&#8217;s
dimensions (the bounding box,
<a href="#bounding-box">see below</a>)
be supplied each time it&#8217;s called.
</p>

<p>
The first optional argument tells mom how to align the image
horizontally, with <kbd>-L</kbd>, <kbd>-C</kbd>, and <kbd>-R</kbd>
standing for left, centre and right respectively.  If you need more
precise placement, the <kbd>-I</kbd> argument allows you to give an
indent from the left margin.  Thus, to indent a PDF image 6
<a href="definitions.html#picaspoints">picas</a>
from the left margin
<br/>
<span class="pre-in-pp">
  .PDF_IMAGE -I 6P &lt;remaining arguments&gt;
</span>
If you omit the first argument, the image will be centred.
</p>

<p>
<kbd>&lt;pdf image&gt;</kbd> must be in PDF format, with a .pdf
extension.  If it is not, mom will abort with a message.  See
<a href="#pdf">here</a>
for instructions on converting image formats to PDF.
</p>

<p id="bounding-box">
<kbd>&lt;width&gt;</kbd> and <kbd>&lt;height&gt;</kbd> are the
dimensions of the image&#8217;s bounding box.  The most reliable way
of getting the bounding box is with the utility, <strong>pdfinfo</strong>:
<br/>
<span class="pre-in-pp">
  pdfinfo &lt;image.pdf&gt; | grep "Page *size"
</span>
This will spit out a line that looks like this:
<br/>
<span class="pre-in-pp">
  Page size:      width x height pts
</span>
<kbd>pts</kbd> means
<a href="definitions.html#picaspoints">points</a>,
therefore the unit of measure appended to <kbd>&lt;width&gt;</kbd>
and <kbd>&lt;height&gt;</kbd> must be <kbd>p</kbd>.
</p>

<p>
The remaining arguments are optional and may be entered in any
order, although it&#8217;s best to put <kbd>CAPTION</kbd>,
<kbd>SHORT_CAPTION</kbd>, and <kbd>LABEL</kbd> last.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">SCALE</h5>

<p>
<kbd>SCALE</kbd> allows you to scale the image by
<kbd>&lt;factor&gt;</kbd>.  The factor is a percentage of the
image&#8217;s original dimensions, thus <kbd>SCALE&nbsp;50</kbd>
scales the image to 50 percent of its original size.  No percent
sign or unit of measure should be appended.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">ADJUST</h5>

<p>
<kbd>ADJUST</kbd> lets you raise (<kbd>-</kbd>) or lower
(<kbd>+</kbd>) the image
<span style="font-style: italic">within the space allotted for it</span>
by the amount you specify.  This is useful for achieving good
optical centering between surrounding blocks of type.  A unit of
measure is required.
</p>

<div class="box-tip">
<p class="tip-top">
<span class="note">Tip:</span>
You may sometimes find that a PDF_IMAGE at the bottom of a page
doesn&#8217;t sit flush on the bottom margin, however attempts to lower it
by adding space beforehand result in it being deferred to the next
page.
</p>

<p class="tip-bottom">
The solution is to introduce <i>negative</i> space before the image
so that it displays on the page, then lower it to the bottom margin
with PDF_IMAGE&#8217;s ADJUST argument.
</p>
</div>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_SHIM</h5>

<p>
<kbd>NO_SHIM</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">shimming</a>
after an image, which she will do automatically when shimming is
enabled, which it is by default.  Shimming ensures that running text
after the image falls properly on the page&#8217;s
<a href="definitions.html#baseline-grid">baseline grid</a>,
but can result in slightly unequal spacing above and below
(correctable with the <kbd>ADJUST</kbd> argument).
<kbd>NO_SHIM</kbd> is useful when you have several images on the
page and there are visible differences in the spacing beneath them
as a result of shimming.  To ensure a flush bottom margin, the last
image on the page should be shimmed, i.e. should not be given the
<kbd>NO_SHIM</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_FLEX</h5>

<p>
<kbd>NO_FLEX</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">flex-spacing</a>
after an image, which she will do automatically when flex-spacing is
enabled. <kbd>NO_FLEX</kbd> is useful when you have several images
on the page and you want to distribute excess vertical
whitespace on the page amongst other flex-spacing points on the
page.  If there are no others, the final image should be
flex-spaced, i.e. not given the <kbd>NO_FLEX</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">FRAME</h5>

<p>
<kbd>FRAME</kbd> instructs mom to put a frame around the image.
Parameters for the frame are set with
<a href="#pdf-image-frame">PDF_IMAGE_FRAME</a>.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">CAPTION</h5>

<p>
<kbd>CAPTION</kbd> allows you to give the image a caption.  By
default, the caption appears above the image, but may be attached to
the label that appears beneath the image.  See
<a href="#caption-after-label">CAPTION_AFTER_LABEL</a>
in
<a href="#captions-and-labels">Captions and labels</a>.
The text of the caption must be surrounded by double-quotes.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">SHORT_CAPTION</h5>

<p>
<kbd>SHORT_CAPTION</kbd> allows you to trim long captions for
inclusion in the List of Figures.  The text you supply, surrounded
by double-quotes, is what will appear in the List.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">LABEL</h5>

<p>
<kbd>LABEL</kbd>, if given, appears beneath the image.  The text you
supply, surrounded by double-quotes, is how the image is labelled
in both the document proper and the List of Figures.  Mom provides
an auto-labelling facility for images (see
<a href="#autolabel">AUTOLABEL</a>),
which, if enabled, overrides the <kbd>LABEL</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">TARGET</h5>

<p>
<kbd>TARGET</kbd> followed by a unique name surrounded by
double-quotes creates a PDF target for the image so that it may be
linked to from other places in the file (with PDF_LINK; see
<a href="version-2.html#mom-pdf">Producing PDFs with groff and mom</a>).
</p>

<p>
<b><i>Please note:</i></b> The following functionality is available
only with groff 1.22.4 or later.
</p>

<p>
When
<a href="#autolabel">autolabelling</a>
is enabled and the document is processed with
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>,
the target name can be used to generate the target&#8217;s label
number in running text if it is entered as a groff string, i.e. of the
form <kbd><span class="nobr">\*[name]</span></kbd>.  For example, if you create
a target named &#8220;foo&#8221; for a pdf image whose autolabel
number would be 3, entering
<br/>
<span class="pre-in-pp">
  See
  .PDF_LINK foo "Figure \*[foo]"
</span>
anywhere in running text would result in a pdf link that reads
&#8220;Figure 3&#8221;.  If chapter numbers are being prefixed to
labels, the same string in, say, chapter 5 would produce the pdf
link &#8220;Figure 5.3&#8221;.
</p>

<div class="box-tip">
<p class="tip-top">
<span class="note">Note: Version 2.0-c change</span>
<br/>
Mom now treats all pdf images identically to
<a href="#floats-intro">floats</a>,
which is to say that if an image doesn&#8217;t fit on the output
page, she will defer it to the top of the next page while continuing
to process
<a href="definitions.html#running">running text</a>.
<kbd>ADJUST</kbd> is ignored whenever an image is the first to be
deferred, except when moving from column to column on the same page,
when the image may need to be optically adjusted.  Subsequent images
that do not fit, if any, are output in order immediately after the
first.
</p>

<p class="tip-bottom">
Prior to 2.0-c, it was recommended that images be wrapped inside
<a href="#float">FLOAT</a>,
but this is now no longer required, and should, in fact, be avoided.
</p>
</div>

<!-- -PDF_IMAGE_FRAME- -->

<div class="macro-id-overline">
<h3 id="pdf-image-frame" class= "macro-id">PDF_IMAGE_FRAME</h3>
</div>

<div class="box-macro-args">
Macro: <b>PDF_IMAGE_FRAME</b> <kbd class="macro-args">&lt;inset amount&gt; &lt;rule weight&gt; &lt;color&gt;</kbd>
</div>
<p class="requires">
&bull;&nbsp;<span style="font-style: normal"><kbd>&lt;inset amount&gt;</kbd></span>
requires a
<a href="definitions.html#unitofmeasure">unit of measure</a>;
conversely,
<span style="font-style: normal"><kbd>&lt;rule weight&gt;</kbd></span>
must not have a unit of measure appended
</p>

<p>
PDF_IMAGE_FRAME establishes the parameters for subsequent invocations of
<a href="#pdf-image">PDF_IMAGE</a>
when the <kbd>FRAME</kbd> argument is given.  Arguments must appear
in order, and any you wish left at the current value should be
entered as two adjacent double-quotes.  So, for example,
<br/>
<span class="pre-in-pp">
  .PDF_IMAGE_FRAME "" "" blue
</span>
leaves the inset value and rule weight at their current value and
changes the frame colour to blue.
</p>

<p>
Frames are drawn <span class="italic">outside</span> the image at
its requested dimensions inclusive of scaling.  Colours must be
pre-initialized with
<a href="color.html#xcolor">XCOLOR</a>
or
<a href="color.html#newcolor">NEWCOLOR</a>.
</p>

<p>
The default inset is 6 <a
href="definitions.html#picaspoints">points</a>, the default rule
weight is .5 (points), and the default colour is black.
</p>

<!-- -PSPIC- -->

<div class="macro-id-overline">
<h3 id="pspic" class= "macro-id">PSPIC</h3>
</div>

<div class="box-macro-args">
Macro: <b>PSPIC</b> <kbd class="macro-args">[ -L | -R | -I &lt;n&gt; ] &lt;file&gt; [ width [ height ] ]</kbd>
</div>

<p>
PSPIC is not actually part of mom, but rather a macro included with
every groff installation. <kbd>man groff_tmac</kbd> contains the
documentation for PSPIC, but I&#8217;ll repeat it here with a few
modifications for clarity.
</p>

<div class="examples-container">
<h3 id="groff-tmac" class="docs" style="margin-top: .5em;">From <span style="text-transform: none">groff_tmac</span></h3>
<p style="margin-top: .5em; margin-bottom: .5em;">
<kbd>&lt;file&gt;</kbd> is the name of the file containing the
image; <kbd>width</kbd> and <kbd>height</kbd> give the desired
width and height of the image as you wish it to appear within the
document.  The width and height arguments may have
<a href="definitions.html#unitofmeasure">units of measure</a>
attached; the default unit of measure is <kbd>i</kbd>.  PSPIC will
scale the graphic uniformly in the x and y directions so that
it is no more than <kbd>width</kbd> wide and <kbd>height</kbd>
high.  By default, the graphic will be horizontally centred.  The
<kbd>-L</kbd> and <kbd>-R</kbd> options cause the graphic to be
left-aligned and right-aligned, respectively.  The <kbd>-I</kbd>
option causes the graphic to be indented by <kbd>&lt;n&gt;</kbd>;
the default unit of measure is <kbd>m</kbd>
(<a href="definitions.html#em">ems</a>).
</p>
</div>

<p>
It is not necessary to pass PSPIC the <kbd>&lt;width&gt;</kbd>
and <kbd>&lt;height&gt;</kbd> arguments unless you are scaling
the image, in which case you will most likely need the original
dimensions of the EPS image&#8217;s bounding box.  These can be
found with
<br/>
<span class="pre-in-pp">
 gs -q -dBATCH -dNOPAUSE -sDEVICE=bbox &lt;image file&gt;.pdf 2&gt;&amp;1 \
 | grep "%%BoundingBox" | cut -d " " -f4,5
</span>
The two digits returned are in
<a href="definitions.html#picaspoints">points</a>,
therefore the
<a href="definitions.html#unitofmeasure">unit of measure</a>
<kbd>p</kbd> must be appended to them.
</p>

<p>
Because PSPIC lacks the <kbd>ADJUST</kbd> option offered by
<a href="#pdf-image">PDF_IMAGE</a>
a certain amount of manual tweaking of the vertical placement of the
image will probably be required, typically by using the
<a href="typesetting.html#ald">ALD</a>
and
<a href="typesetting.html#rld">RLD</a>
macros.  Wrapping the image in a
<a href="#float">float</a>
and using FLOAT&#8217;s <kbd>ADJUST</kbd> option can also be used to
correct optical centering.
</p>

<p>
Additionally, non-floated EPS images
will almost certainly disrupt the baseline placement of
<a href="definitions.html#running">running text</a>.
In order to get mom back on track after inserting a non-floated
<kbd>.PSPIC</kbd> image, insert the
<a href="docprocessing.html#shim">SHIM</a>
or
<a href="docprocessing.html#flex">FLEX</a>
macro afterwards, depending on the
<a href="docprocessing.html#vertical-whitespace-management">vertical whitespace management</a>
strategy in effect, so that the bottom margin of running text falls
where it should.
</p>

<p>
Remember that mom files with embedded EPS images must be processed
with
<br/>
<span class="pre-in-pp">
 pdfmom -Tps doc.mom &gt; doc.pdf
</span>
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Please note:</span>
<kbd>PSPIC</kbd> does not support
<a href="autolabel">autolabelling</a>,
labels, captions, or inclusion in the List of Figures.  If you wish
this functionality,
<a href="#converting">convert your images to pdf</a>
and use
<a href="#pdf-image">PDF_IMAGE</a>
instead, then process the file with
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>
(without the <kbd>-Tps</kbd> option).
</p>
</div>
<div class="rule-medium"><hr/></div>

<h2 id="floats-intro" class="docs">Introduction to floats</h2>

<p>
Non-textual insertions in a document (tables, for example) sometimes
do not fit on the output page of a PDF or PostScript document at
the place they&#8217;re inserted in the input file.  It&#8217;s
necessary, therefore, to defer them to the next page while carrying
on with
<a href="definitions.html#running">running text</a>.
</p>

<p>
Whenever you need this functionality, mom provides the FLOAT macro.
</p>

<p>
Floats are usually used for images and graphics, but can contain
anything you like, including text.  Whatever&#8217;s in the
float will be kept together as a block, output immediately if
there&#8217;s room, or deferred to the top of the next output page
when there isn&#8217;t; running text continues to the bottom of the
previous page without interruption.
</p>

<p>
In the case of a float that doesn&#8217;t fit being followed by
one that does, both are deferred and output one after the other.
Note that this represents a change from versions 2.1-b_1 and earlier
where the second float was output in position and the first was
deferred.
</p>

<p>
A key distinction between a float and a
<a href="docelement.html#quote">QUOTE</a>
or
<a href="docelement.html#blockquote">BLOCKQUOTE</a>
is that while a float keeps everything together and defers output if
necessary, quotes and blockquotes are output immediately, and may
start on one page and finish on the next.
</p>

<p>
Floats always begin in
<a href="definitions.html#filled">no-fill mode</a>.
Text entered immediately after FLOAT will be set line-for-line
unless a
<a href="typesetting.html#justify">JUSTIFY</a>
or
<a href="typesetting.html#quad">QUAD&nbsp;L|R|C</a>
precedes it.  Alternatively, any macro that sets a quad direction
may be used, e.g.
<a href="docelement.html#pp">PP</a>.
</p>

<p>
Floats always deposit a break before they begin, which means the
line beforehand will not be
<a href="definitions.html#filled">filled</a>.
Floats, therefore, cannot be inserted in the middle of a paragraph
without studying the output file and determining where to break or
<a href="typesetting.html#spread">spread</a>
the line before the float.  Furthermore, if you want a float between
paragraphs, the float should come before <kbd>.PP</kbd>, like this:
<br/>
<span class="pre-in-pp">
  .FLOAT
  ...
  .FLOAT OFF
  .PP
</span>
not
<br/>
<span class="pre-in-pp">
  .PP
  .FLOAT
  ...
  .FLOAT OFF
</span>
</p>

<p id="float-spacing">
Floats begin on the baseline immediately below the running text
preceding them.  No additional whitespace surrounds them, above or
below.  Running text below a float is, however,
<a href="docprocessing.html#shim">shimmed</a>
or
<a href="docprocessing.html#flex">flex-spaced</a>,
depending on the
<a href="docprocessing.html#vertical-whitespace-management">vertical whitespace management</a>
strategy in effect.  This behaviour can be disabled for individual
floats with <kbd>NO_SHIM</kbd> or <kbd>NO_FLEX</kbd>.
</p>

<p>
If you&#8217;d like more space around a float, you must add it
manually, for example with 
<a href="typesetting.html#ald">ALD</a>
or
<a href="typesetting.html#space">SPACE</a>.
</p>

<!-- -FLOAT- -->

<div class="macro-id-overline">
<h3 id="float" class= "macro-id">FLOAT</h3>
</div>

<div class="box-macro-args">
Macro: <b>FLOAT</b> <kbd class="macro-args">&lt;arguments&gt; | &lt;anything&gt;
<br/>
Arguments:
<br/>
[ ADJUST +|-&lt;amount&gt; ] \
<br/>
[ FORCE ] \
<br/>
[ SPAN ] \
<br/>
[ INDENT &lt;value&gt; ] \
<br/>
[ CENTER ] \
<br/>
[ RIGHT ] \
<br/>
[ NO_SHIM] \
<br/>
[ NO_FLEX ] \
<br/>
[ TARGET "&lt;name&gt;" ]</kbd>
<br/>
</div>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
FLOAT is intended for use with the document processing macros only.
</p>
</div>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
As a general rule, avoid consecutive floats that have no intervening
<a href="definitions.html#running">running text</a>.
Rather, wrap all the material into a single float.
</p>
</div>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
Deferred floats are output with the left indent that was in effect
when they were input.  If you do not want this behaviour, disable
the indent prior to inputting the float and re-enable it afterward.
</p>
</div>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
Mom treats <b>pic</b> pre-processor directives and pdf images as
floats so it is not necessary to wrap them inside FLOAT unless
additional material is included in what is floated.
</p>
</div>

<p style="margin-top: -.5em">
To begin a float, simply invoke <kbd>.FLOAT</kbd> and follow it with
whatever you want the float to contain.  When you&#8217;re done,
invoke <kbd>.FLOAT&nbsp;OFF</kbd> (or <kbd>OFF</kbd>,
<kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>, etc).
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">ADJUST</h5>

<p>
The optional <kbd>ADJUST</kbd> argument tells mom to raise
(<kbd>+</kbd>) or lower (<kbd>-</kbd>) the float <i>within
the space allotted to it</i> by the specified amount.
<kbd>&lt;amount&gt;</kbd> must have a
<a href="definitions.html#unitofmeasure">unit of measure</a>
appended.  <kbd>ADJUST</kbd> gives you precise control over
the vertical centering of floats, allowing you to compensate for
unequal spacing that may result from the automatic
<a href="docprocessing.html#shim">shimming</a>
or
<a href="docprocessing.html#flex">flex-spacing</a>
floats.
</p>

<p>
<kbd>ADJUST</kbd> is ignored for the first float deferred to
a following page but respected for subsequent deferred floats
output immediately afterwards.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">FORCE</h5>

<p>
The <kbd>FORCE</kbd> argument instructs mom to output the float
exactly where it occurs in the input file.  With <kbd>FORCE</kbd>,
mom immediately breaks to a new page to output the float if it does
not fit on the current page.  While this is somewhat contrary to the
notion of floats (i.e. that running text should continue to fill the
page), there are circumstances where it may be desirable.
</p>

<p>
If you need to force a page break after completion of a float that
has been deferred to a subsequent page, insert <kbd>\!.bp</kbd>
immediately before terminating the float.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">SPAN</h5>

<p>
The <kbd>SPAN</kbd> argument tells mom that a float, if deferred,
may carry onto multiple pages.  Please note that <kbd>SPAN</kbd> may
not be used for floats containing a boxed table; mom will abort with
a warning should this occur.  Unboxed tables, on the other hand, are
acceptable within floats that are given the <kbd>SPAN</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">INDENT</h5>

<p>
<kbd>INDENT</kbd> allows you to indent a float from the left margin
by a specified value.  The value must have a
(<a href="definitions.html#unitofmeasure">unit of measure</a>
appended to it.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">CENTER</h5>

<p>
<kbd>CENTER</kbd> instructs mom to center a float if it is not
already centered by default.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">RIGHT</h5>

<p>
<kbd>RIGHT</kbd> instructs mom to place a float at the right of the
page; the longest line in the float will be flush with the
page&#8217;s right margin.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_SHIM</h5>

<p>
<kbd>NO_SHIM</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">shimming</a>
after a float, which she will do automatically when shimming is
enabled, which it is by default.  Shimming ensures that running text
after the float falls properly on the page&#8217;s
<a href="definitions.html#baseline-grid">baseline grid</a>,
but can result in slightly unequal spacing above and below
(correctable with the <kbd>ADJUST</kbd> argument).
<kbd>NO_SHIM</kbd> is useful when you have several floats on the
page and there are visible differences in the spacing beneath them
as a result of shimming.  To ensure a flush bottom margin, the last
float on the page should be shimmed, i.e. should not be given the
<kbd>NO_SHIM</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_FLEX</h5>

<p>
<kbd>NO_FLEX</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">flex-spacing</a>
after a float, which she will do automatically when flex-spacing is
enabled. <kbd>NO_FLEX</kbd> is useful when you have several floats
on the page and you want to distribute excess vertical
whitespace on the page amongst other flex-spacing points on the
page.  If there are no others, the final float should be
flex-spaced, i.e. not given the <kbd>NO_FLEX</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">TARGET</h5>

<p>
<kbd>TARGET</kbd> followed by a unique name surrounded by
double-quotes creates a PDF target for the float so that it may be
linked to from other places in the file (with PDF_LINK; see
<a href="version-2.html#mom-pdf">Producing PDFs with groff and mom</a>).
</p>

<p>
Floats cannot be autolabelled, so unlike pdf images and
pre-processor material, the target name cannot be used as a string
to generate the target&#8217;s label number in running text.  Label
numbers for floats must be entered explicitly running text, however
they may be entered symbolically in the argument to
<a href="#label">LABEL</a>.
See
<a href="#reserved-label-strings">Reserved variables for
labels</a>.
</p>


<div class="box-tip">
<p class="tip-top">
<span class="note">Note:</span>
Floats use
<a href="definitions.html#filled">no-fill mode</a>,
with each input line beginning at the left margin.  If this is not
what you want, you must specify the preferred horizontal alignment
<i>within the float</i> (e.g.
<a href="typesetting.html#lrc">CENTER</a>
or
<a href="typesetting.html#lrc">RIGHT</a>).
</p>

<p class="tip-bottom">
Furthermore, if you want text
<a href="definitions.html#filled">filled</a>,
you must specify
<a href="typesetting.html#quad"><kbd>.QUAD&nbsp;L|R|C</kbd></a>
or
<a href="typesetting.html#justify"><kbd>.JUSTIFY</kbd></a>&mdash;again,
within the float.
</p>
</div>

<h2 id="float-label-caption" class="docs">Labelling and captioning floats</h2>

<p>
Labelling and captioning of tables (<b>tbl</b>), equations
(<b>eq</b>), diagrams (<b>pic</b>) and pdf images
(<a href="#pdf-image">PDF_IMAGE</a>)
are handled by the macros that initiate them, regardless of whether
they&#8217;re wrapped inside a float.  However, since a float may
contain any valid input, it is sometimes necessary to add a label
and/or caption to the float itself.
</p>

<div class="box-tip">
<p class="tip">
<span class="important">Important:</span>
Always use the native labelling/captioning facilities for
preprocessor output and pdf images rather than labelling the
containing float, if any.
</p>
</div>

<p>
The macros to label and caption floats are
<a href="#label">LABEL</a>
and
<a href="#caption">CAPTION</a>.
If a label or caption is to appear above the float, the appropriate
macro is entered immediately after
<a href="#float">FLOAT</a>.
If a label or caption is to appear beneath the float, the appropriate
macro is entered immediately before ending the float with
<kbd>FLOAT&nbsp;OFF</kbd>.
</p>

<p>
If a label and caption are to be joined, the <b>LABEL</b> macro is
used to enter both by passing the <kbd>CAPTION</kbd> argument to
<kbd>LABEL</kbd>.
</p>

<p>
It is impossible for mom to know the contents of a float, so
floats cannot be autolabelled.  Each label must be entered
explicitly.  Mom does, however, provide a way to enter both
chapter numbers and incrementing label numbers
<a href="#reserved-label-strings">symbolically</a>,
easing the burden of keeping the numbering scheme intact as
labelled floats are added to or subtracted from a document.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Tip:</span>
<a href="docelement.html#blockquote">QUOTE</a>
and
<a href="docelement.html#blockquote">BLOCKQUOTE</a>
may also be labelled and captioned using <b>LABEL</b> and
<b>CAPTION</b>.
</p>
</div>

<h4 class="docs">Spacing</h4>

<p>
If a float has a caption at the top, the caption is whitespaced
1/4 linespace from running text and the float itself begins
an additional 1/4 linespace below the caption.  If the float has
no corresponding label at the bottom, the float observes the
bottom-spacing rules for all floats, namely that no extra space is
added other than
<a href="docprocessing.html#shim">shimming</a>
or
<a href="docprocessing.html#shim-vs-flex">flex-spacing</a>,
depending on the
<a href="docprocessing.html#vertical-whitespace-management">vertical whitespace management</a>
in effect.
</p>

<p>
If a float has a label at the bottom but no caption at the top, the
float begins exactly where started, i.e. with no extra whitespace
between running text and the float.  The label (and attached
caption, if any) are whitespaced 1/4 linespace below the float,
with an additional 1/4 linespace underneath <i>plus</i> shimming or
flex-spacing.
</p>

<p>
Labelled/captioned quotes and blockquotes inside floats treat the
labels/captions as part of the quote so the spacing above and
below the whole float block is what you&#8217;d expect from quotes
normally, while the spacing between the label/caption and the quote
is 1/4 linespace.
</p>

<div class="macro-id-overline">
<h3 id="label" class="macro-id">LABEL</h3>
</div>

<div class="box-macro-args">
Macro: <b>LABEL</b>
<kbd class="macro-args">"&lt;label&gt;" [ CAPTION "&lt;caption&gt;" ] [ SHORT_CAPTION ] \
<br/>
[ TO_LIST FIGURES | TABLES | EQUATIONS ]</kbd>
</div>

<p>
The placement of a float&#8217;s label depends on where you put it
inside the float.
</p>

<p>
If you want a label at the top, put <kbd>LABEL</kbd> immediately
underneath
<a href="#float">FLOAT</a>
and follow it with the text of the label surrounded by double-quotes:
<br/>
<span class="pre-in-pp">
  .FLOAT
  .LABEL "Fig. 1"
</span>
If you want a label at the bottom, put <kbd>LABEL</kbd> immediately
before ending the float:
<br/>
<span class="pre-in-pp">
  .FLOAT
  &lt;contents of float&gt;
  .LABEL "Fig. 1"
  .FLOAT OFF
</span>
</p>

<h3  id="reserved-label-strings" class="docs" style="text-transform: none">Reserved variables for labels</h3>

<p>
Mom reserves strings you may use when entering
label text after the <kbd>LABEL</kbd> argument.
<kbd><span class="nobr">\*[chapter]</span></kbd> holds the current chapter
or major section number. <kbd><span class="nobr">\*[fig-label]</span></kbd>,
<kbd><span class="nobr">\*[tbl-label]</span></kbd>, and
<kbd><span class="nobr">\*[eqn-label]</span></kbd> increment the label number of
the appropriate label type by one, and are initially set to zero
after each invocation of
<a href="docprocessing.html#start">START</a>
when the
<a href="docprocessing.html#doctype">DOCTYPE</a>
is <kbd>CHAPTER</kbd>.  Thus, in every chapter requiring numbered
float labels, you can enter
<br/>
<span class="pre-in-pp">
  .LABEL "Fig. \*[chapter].\*[fig-label]. TO_LIST FIGURES
</span>
which, assuming the third autolabelled float of Chapter 2, will
produce <kbd>Fig. 2.3.</kbd>
</p>

<p>
If your <b>DOCTYPE</b> is <kbd>DEFAULT</kbd> or <kbd>NAMED</kbd>,
you must reset <kbd><span class="nobr">\*[&lt;type&gt;-label]</span></kbd> after
each
<a href="docprocessing.html#collate">COLLATE</a>
by entering
<br/>
<span class="pre-in-pp">
  .AUTOLABEL_&lt;list type&gt;
</span>
before <kbd>.START</kbd>.
</p>

<p>
If
<a href="#autolabel">autolabelling</a>
is enabled, e.g. <kbd>.AUTOLABEL_IMAGES</kbd> (List
of Figures) or <kbd>.AUTOLABEL_PIC</kbd> (also List of Figures),
the prefix is stripped from the label when it appears in
the List.  Thus, if you have invoked <kbd>.AUTOLABEL_PIC</kbd>,
<br/>
<span class="pre-in-pp">
  .LABEL "Fig. 1.1."
   CAPTION "Caption for label \
   TO_LIST FIGURES
</span>
or
<br/>
<span class="pre-in-pp">
  .LABEL "Fig. \*[chapter].\*[label]." \
   CAPTION "Caption for label \
   TO_LIST FIGURES
</span>
will appear in the List of Figures as &#8220;1.1.&nbsp;&nbsp;Caption for
label&#8221;.
</p>

<h3 class="docs">CAPTION</h3>

<p>
If you&#8217;d like a caption attached to the label, pass
<kbd>LABEL</kbd> the optional argument <kbd>CAPTION</kbd> followed
by the text of the caption as a single string surrounded by
double-quotes:
<br/>
<span class="pre-in-pp">
  .FLOAT
  &lt;contents of float&gt;
  .LABEL "Fig. 1" CAPTION "Caption for Fig. 1"
  .FLOAT OFF
</span>
Note that the
<a href="#caption">CAPTION</a>
macro by itself permits entering several strings, each output on
a line by itself, whereas the <kbd>CAPTION</kbd> argument to
<kbd>LABEL</kbd> accepts only a single string.
</p>

<h3 class="docs">SHORT_CAPTION</h3>

<p>
If your caption runs long and you&#8217;re including the
float in a &#8220;List of ...&#8221;, (see
<a href="#list-of">TO_LIST</a>, below)
<kbd>SHORT_CAPTION</kbd> tells
mom how you&#8217;d like the caption to appear in the List.
</p>

<h3 class="docs">TO_LIST</h3>

<p>
The optional argument <kbd>TO_LIST</kbd> tells mom to add the
float&#8217;s label and attached caption, if present, to the specified
<a href="#lists-of">list</a>,
which may be one of <kbd>FIGURES</kbd>, <kbd>TABLES</kbd>, or
<kbd>EQUATIONS</kbd>.
</p>

<p>
If, for some reason, you want only the caption appended to the List,
give <kbd>\&amp;</kbd> as the first argument to LABEL, followed by
<kbd>CAPTION&nbsp;&#8220;caption&#8221;</kbd>:
<br/>
<span class="pre-in-pp">
  .LABEL \&amp; \
  CAPTION "caption"
</span>
</p>

<div class="box-tip">
<p class="tip-top">
<span class="note">Tip:</span>
<kbd>TO_LIST</kbd> can be used to handle situations where labelled
floats need to go to a uniquely named &#8220;List of ...&#8221;.
</p>

<p class="tip-bottom">
Suppose, for example, your document contains figures (e.g.
<b>pic</b> output or pdf-images) and tables, and you need a
&#8220;List of Examples&#8221; for floats labelled &#8220;Example
n.n&#8221;.  By changing the default title string for
<a href="#lists-macros">LIST_OF_EQUATIONS</a>
to &#8220;List of Examples&#8221;, you may include the float in your
List of Examples with
<br/>
<span class="pre-in-pp">
  .TO_FIGURES EQUATIONS
</span>
</p>
</div>

<div class="macro-id-overline">
<h3 id="caption" class="macro-id">CAPTION</h3>
</div>

<div class="box-macro-args">
Macro: <b>CAPTION</b>
<kbd class="macro-args">"&lt;caption&gt;" \
<br/>
[ "&lt;additional line&gt;" [ "&lt;additional line&gt;"... ] ] \
<br/>
[ TO_LIST FIGURES | TABLES | EQUATIONS ]</kbd>
</div>

<p>
The placement of a float&#8217;s caption depends on where you put it
inside the float.
</p>

<p>
If you want a caption at the top, put <kbd>CAPTION</kbd> immediately
underneath
<a href="#float">FLOAT</a>
and follow it with the text of the caption surrounded by double-quotes:
<br/>
<span class="pre-in-pp">
  .FLOAT
  .CAPTION "Caption at top of float"
</span>
<b>CAPTION</b> can take multiple string arguments, allowing for
captions that run to several lines.  There is a caveat: the strings
are not automatically broken into individual lines.  You must
provide strings that include literal breaks or spaces:
<br/>
<span class="pre-in-pp">
  .FLOAT
  .CAPTION "Caption" ".BR" "at top" ".BR" "of float"
</span>
or, easier to read:
<br/>
<span class="pre-in-pp">
  .FLOAT
  .CAPTION "Caption" \
  ".BR" \
  "at top" \
  ".BR" \
  "of float"
</span>
If you want a caption at the bottom, put <kbd>CAPTION</kbd> immediately
before ending the float:
<br/>
<span class="pre-in-pp">
  .FLOAT
  &lt;contents of float&gt;
  .CAPTION "Caption at bottom of float"
  .FLOAT OFF
</span>
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
If you want a caption attached to a label, do not use
<b>CAPTION</b> by itself.  Rather, invoke
<a href="#label"><kbd>.LABEL</kbd></a>
with the <kbd>CAPTION</kbd> argument.
</p>
</div>

<div class="rule-medium"><hr/></div>

<h2 id="preprocessor-support" class="docs">Preprocessor support</h2>

<p>
Mom offers full support for the <b>eqn</b> (equations), <b>pic</b>
(diagrams), <b>grap</b> (graphs), <b>tbl</b> (tables) and
<b>refer</b> (bibliographies/citations) preprocessors, including
captions, labelling, autolabelling, and inclusion in the Lists of
Equations, Figures, and Tables.
</p>

<p>
Other than <b>refer</b>, which is discussed at length in the <a
href="refer.html">Bibliographies and references</a> section, it is
beyond the scope of this documentation to cover full preprocessor
usage.  Consult the manpages <b>eqn(1)</b>, <b>pic(1)</b>,
<b>grap(1)</b> and <b>tbl(1)</b> for instructions.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Version 2.0-c changes</span>
<br/>
Preprocessor support has been revised and expanded as of version 2.0-c.
Please read the following sections thoroughly and update any
documents created with versions prior to 2.0-c as necessary.
</p>
</div>

<h3 id="tbl" class="docs">tbl support</h3>

<p>
Mom documents can include tables generated with the groff
preprocessor <b>tbl</b>.  If you are unfamiliar with <b>tbl</b>, I
recommend downloading a copy of
<a href="http://plan9.bell-labs.com/10thEdMan/tbl.pdf">Tbl - A Program to Format Tables</a>,
which, in addition to providing a thorough introduction, contains
some fine examples.  If you use <b>tbl</b>, you must pass groff or
pdfmom the <b>-t</b> flag when you process the file.
</p>

<p>
Tables formatted with <kbd>tbl</kbd> begin with the macro
<kbd>.TS</kbd> (<b>T</b>able <b>S</b>tart) and end with
<kbd>.TE</kbd> (<b>T</b>able <b>E</b>nd).  Depending on where you
want your tables output in a document, you may need to wrap
your <kbd>tbl</kbd> code inside a
<a href="#floats-intro">float</a>,
or pass the <kbd>H</kbd> argument to <kbd>.TS</kbd>.
</p>

<p>
If you put <kbd>tbl</kbd> code inside a float, the table will be
output immediately if it fits on the page, or deferred to the top
of the next page if it doesn&#8217;t.  If you prefer a table to
begin where you say and span over to the next page, or if you know
for certain a boxed table will run to multiple pages, simply pass the
<kbd>H</kbd> argument to <kbd>.TS</kbd>, along with a corresponding
<a href="#th"><kbd>TH</kbd></a>
and do not wrap the table inside a float.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
If you create a boxed table that will span several pages, do not
wrap the table inside a float.  Boxed, multipage tables and FLOAT
should be considered mutually exclusive.  This restriction is
imposed by the <kbd>tbl</kbd> preprocessor itself, not groff or
mom.  Unboxed tables that span several pages, however, are
acceptable within FLOAT.
</p>
</div>

<h4 id="tbl-placement" class="docs">tbl placement in mom docs</h4>

<p>
If you use <kbd>.TS</kbd> without the <kbd>H</kbd> argument (and
therefore no <kbd>.TH</kbd>), tables that fit on the page are output
in position.  If there is not enough room to output the table,
<kbd>tbl</kbd> will abort with message instructing you to use
<kbd>.TS H/.TH</kbd>.  Given that <kbd>.TS</kbd> without <kbd>H</kbd>
may sometimes fail, it is advisable to begin all <b>tbl</b> blocks
with <kbd>.TS H</kbd>.
</p>

<p>
If you give <kbd>.TS</kbd> the <kbd>H</kbd> argument (with a
corresponding <kbd>.TH</kbd>), tables will be output in position and
span as many pages as necessary to complete output.  A table header
will be printed at the top of each page&#8217;s table output.  In the
event that there is not enough room to print the table header and
at least one row of table data near the bottom of a page, mom will
break to a new page before beginning table output, leaving a gap
in
<a href="definitions.html#running">running text</a>.
</p>

<p>
Boxed tables inside
<a href="#floats-intro">floats</a>
are output in position if they fit on the page.  If not, they are
deferred to the top of the next page without a break in running
text.  Boxed tables within floats may not, however, span multiple
pages; mom will abort with a message should a boxed table in a float
run longer than the page.
</p>

<p>
Unboxed tables inside floats may span multiple pages provided the
<kbd>SPAN</kbd> argument has been given to
<a href="#float">FLOAT</a>.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
The vertical spacing around unfloated tables may appear slightly
unequal, especially if there are several tables on the page.  This
is a result of the
<a href="docprocessing.html#shim">shimming</a>
or
<a href="docprocessing.html#flex">flex-spacing</a>
that mom applies automatically after each table, depending on which
<a href="docprocessing.html#vertical-whitespace-management">vertical whitespace management</a>
is in effect.  You may
disable shimming or flex-spacing with
<a href="docprocessing.html#no-shim">NO_SHIM</a>
or
<a href="docprocessing.html#no-flex">NO_FLEX</a>,
or by passing the <kbd>NO_SHIM</kbd> or <kbd>NO_FLEX</kbd> argument
to <kbd>.TS</kbd>.  In either case, you will still likely want to
adjust the spacing around with table with the <kbd>ADJUST</kbd>
argument to <kbd>.TS</kbd>.  Tables inside floats should be adjusted
with the <kbd>ADJUST</kbd> argument to
<a href="#float">FLOAT</a>,
not the <kbd>ADJUST</kbd> argument to <kbd>.TS</kbd>.
</p>
</div>

<div class="macro-id-overline">
<h3 id="ts-te" class= "macro-id">.TS / .TH / .TE</h3>
</div>

<div class="box-macro-args">
Macro: <a href="#ts"><b>TS</b></a>
<kbd class="macro-args"><br/>
Arguments:
<br/>
&nbsp;&nbsp;[ H ]
<br/>
&nbsp;&nbsp;[ BOXED ]
<br/>
&nbsp;&nbsp;[ CENTER ]
<br/>
&nbsp;&nbsp;[ NEEDS ]
<br/>
&nbsp;&nbsp;[ ADJUST +|-&lt;vertical adjustment&gt;]</kbd>
<span style="font-size: 95%">
(<a href="definitions.html#unitofmeasure">unit of measure</a>
required)
</span>
<kbd class="macro-args"><br/>
&nbsp;&nbsp;[ NO_SHIM ]
<br/>
&nbsp;&nbsp;[ NO_FLEX ]
<br/>
&nbsp;&nbsp;[ CAPTION "&lt;caption&gt;" ]
<br/>
&nbsp;&nbsp;[ SHORT_CAPTION "&lt;short caption&gt;" ]
<br/>
&nbsp;&nbsp;[ LABEL "&lt;label&gt;" ]
<br/>
&nbsp;&nbsp;[ TARGET "&lt;name&gt;" ]
</kbd>
<br/>
Macro: <a href="#th"><b>TH</b></a> <kbd class="macro-args">(optional, only if .TS H)</kbd>
<br/>
Macro: <a href="#te"><b>TE</b></a> <kbd class="macro-args">[ SOURCE "&lt;text of table source&gt;" ]</kbd>
</div>

<p>
Tables to be formatted with <kbd>tbl</kbd> begin with the macro
<kbd>.TS</kbd> and end with <kbd>.TE</kbd>.  Global <kbd>tbl</kbd>
options (&#8220;flags&#8221;), formatting, and data (per
<kbd>tbl(1)</kbd>) come between the two macros.
<br/>
<span class="pre-in-pp">
  .TS
  &lt;tbl options, formatting, and data&gt;
  .TE
</span>
Tables may be wrapped inside a
<a href="#float-intro">float</a>,
in which case, the entire table will be output on the current page
if it fits, or deferred to the next page if it doesn&#8217;t.
<br/>
<span class="pre-in-pp">
  .FLOAT
  .TS
  &lt;tbl options, formatting, and data&gt;
  .TE
  .FLOAT OFF
</span>
</p>

<div class="macro-id-overline">
<h4 id="ts" class="docs" style="font-size: 100%; margin-top: .5em">The .TS macro</h4>
</div>

<div class="box-tip">
<p class="tip">
<span class="note">Note: Version 2.0-c change</span>
<br/>
2.0-c introduces revisions to the handling of labels and/or
captions, which, along with <kbd>NO_SHIM</kbd>, must now be given
as arguments to <kbd>.TS</kbd> rather than <kbd>.TE</kbd>, as was
the case formerly.  Please read this section carefully if you have
documents containing tables as they may need to be updated.
</p>
</div>

<div class="box-important" style="margin-top: 1em">
<p class="tip">
<span class="important">IMPORTANT:</span>
All arguments to <b>TS</b> must appear on the same line as
<kbd>.TS</kbd>.  Do not attempt to break them up with the
&#8220;line-continued&#8221; backslash.  You may want to set your
text editor to &#8220;wrap&#8221; mode in order to see all your
arguments.  This annoyance stems from the preprocessor mechanism
itself, not groff or mom.
</p>
</div>

<p>
The <b>TS</b> macro must be invoked before entering a <kbd>tbl</kbd>
block.  You may give as many or as few of its arguments as required,
in any order, although it is advisable to put <kbd>CAPTION</kbd>,
<kbd>SHORT_CAPTION</kbd>, and/or <kbd>LABEL</kbd> last.
</p>

<h5 id="h" class="docs" style="margin-top: 1em; text-transform: none">H</h5>

<p>
With the <b>H</b> argument, a table will span as many pages as
necessary, with or without a running header.  The placement of the
corresponding
<a href="#th"><kbd>.TH</kbd></a>,
which is required whenever the <b>H</b> argument is given,
determines what, if anything, goes in the header.  Compare the
following:
<span class="pre-in-pp">
  .TS H                   .TS H
  c s s                   c s s
  c s s                   c s s
  c c c                   c c c
  n n n.                  n n n. 
  Percent Increase        .TH
  2002-2012               Percent Increase
  .TH                     2002-2012
  &lt;tbl data&gt;              &lt;tbl data&gt;
  .TE                     .TE
</span>
The first example will create a table that spans multiple
pages if necessary, with a running header (&#8220;Percent
Increase&nbsp;/&nbsp;2002-2012&#8221;) for that table appearing at
the top of each page until the table ends.  The second example,
equally, may run to several pages, but without the running header.
See
<a href="#th"><b>TH</b></a>
for an explanation of <kbd>.TH</kbd> placement.
</p>

<div id="h-tip" class="box-tip">
<p class="tip">
<span class="note">Tip:</span>
Generally speaking, it&#8217;s a good idea to get into the habit
of using <kbd>.TS H</kbd> all the time, since there are no
circumstances under which it fails, whereas <kbd>.TS</kbd> without
<kbd>H</kbd> will fail on tables that exceed the page length.
</p>
</div>

<h5 class="docs" style="margin-top: 1em; text-transform: none">BOXED</h5>

<p>
If a table is to be boxed (i.e., <kbd>tbl</kbd> is given the flags
<kbd>'box'</kbd> or <kbd>'allbox'</kbd>) you must pass the argument
<kbd>BOXED</kbd> to <kbd>.TS</kbd>, as in this example:
<br/>
<span class="pre-in-pp">
  .TS BOXED
  allbox;
  c s s
  c c c
  n n n.
  &lt;tbl data&gt;
  .TE
</span>
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">CENTER</h5>

<p>
If a table is to be centered on the page, (i.e., <kbd>tbl</kbd> is
given the <kbd>'center'</kbd> flag), you must pass the argument
<kbd>CENTER</kbd> to <kbd>.TS</kbd>, as in this example, which
creates a (possibly) multipage boxed table, centered on the page,
with a running header.
<span class="pre-in-pp">
  .TS H BOXED CENTER
  allbox center;
  c s s
  c s s
  c c c
  n n n.
  Percent Increase
  2002-2012
  .TH
  &lt;tbl data&gt;
  .TE
</span>
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NEEDS</h5>

<p>
If a table is not inside a float and you pass <kbd>.TS </kbd> the
<kbd>H</kbd> argument (which you should; see the tip
<a href="#h-tip">here</a>),
mom begins output immediately where the table occurs in the
input file <i>if there is enough room on the output page for the
table header plus at least one row of table data</i>.  If there
isn&#8217;t enough room, mom breaks to a new page before beginning
the table, leaving a gap in
<a href="definitions.html#running">running text</a>
at the bottom of the previous page.  If, for aesthetic reasons,
you would prefer that mom require more than one row of table data
beneath the header near the bottom of a page, you may increase the
number with the <kbd>NEEDS</kbd> argument, followed by the desired
number of rows.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">ADJUST</h5>

<p>
<kbd>ADJUST</kbd> lets you raise (<kbd>-</kbd>) or lower
(<kbd>+</kbd>) the table
<span style="font-style: italic">within the space allotted for it</span>
by the amount you specify.  This is useful for achieving good
optical centering between surrounding blocks of type.  A unit of
measure is required.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_SHIM</h5>

<p>
<kbd>NO_SHIM</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">shimming</a>
after a table, which she will do automatically when shimming is
enabled, which it is by default.  Shimming ensures that running text
after the table falls properly on the page&#8217;s
<a href="definitions.html#baseline-grid">baseline grid</a>,
but can result in slightly unequal spacing above and below
(correctable with the <kbd>ADJUST</kbd> argument).
<kbd>NO_SHIM</kbd> is useful when you have several tables on the
page and there are visible differences in the spacing beneath them
as a result of shimming.  To ensure a flush bottom margin, the last
table on the page should be shimmed, i.e. should not be given the
<kbd>NO_SHIM</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_FLEX</h5>

<p>
<kbd>NO_FLEX</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">flex-spacing</a>
after a table, which she will do automatically when flex-spacing is
enabled. <kbd>NO_FLEX</kbd> is useful when you have several tables
on the page and you want to distribute excess vertical
whitespace on the page amongst other flex-spacing points on the
page.  If there are no others, the final table should be
flex-spaced, i.e. not given the <kbd>NO_FLEX</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">CAPTION</h5>

<p>
<kbd>CAPTION</kbd> allows you to give the table a caption.  By
default, the caption appears above the table, but may be attached to
the label that appears beneath the table.  See
<a href="#caption-after-label">CAPTION_AFTER_LABEL</a>
in
<a href="#captions-and-labels">Captions and labels</a>.
The text of the caption must be surrounded by double-quotes.
</p>

<p>
Please note that if your table has a caption, you must invoke
<kbd>TS</kbd> with the <kbd>H</kbd> flag, which also entails the use
of
<a href="#th">TH</a>.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">SHORT_CAPTION</h5>

<p>
<kbd>SHORT_CAPTION</kbd> allows you to trim long captions for
inclusion in the List of Tables.  The text you supply, surrounded
by double-quotes, is what will appear in the List.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">LABEL</h5>

<p>
<kbd>LABEL</kbd>, if given, appears beneath the table.  The text you
supply, surrounded by double-quotes, is how the table is labelled
in both the document proper and the List of Tables.  Mom provides
an auto-labelling facility for tables (see
<a href="#autolabel">AUTOLABEL</a>),
which, if enabled, overrides the <kbd>LABEL</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">TARGET</h5>

<p>
<kbd>TARGET</kbd> followed by a unique name surrounded by
double-quotes creates a PDF target for the table so that it may be
linked to from other places in the file (with PDF_LINK; see
<a href="version-2.html#mom-pdf">Producing PDFs with groff and mom</a>).
</p>

<p>
<b><i>Please note:</i></b> The following functionality is available
only with groff 1.22.4 or later.
</p>

<p>
When
<a href="#autolabel">autolabelling</a>
is enabled and the document is processed with
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>,
the target name can be used to generate the target&#8217;s label
number in running text if it is entered as a groff string, i.e. of
the form <kbd><span class="nobr">\*[name]</span></kbd>.  For example, if you
create a target called &#8220;foo&#8221; for a table whose autolabel
number would be 3, entering
<br/>
<span class="pre-in-pp">
  See
  .PDF_LINK foo "Table \*[foo]"
</span>
anywhere in running text would result in a pdf link that reads
&#8220;Table 3&#8221;.  If chapter numbers are being prefixed to
labels, the same string in, say, chapter 5 would produce the pdf
link &#8220;Table 5.3&#8221;.  
</p>

<div class="macro-id-overline">
<h4 id="th" class="docs" style="font-size: 100%; margin-top: .5em">The .TH macro</h4>
</div>

<p>
The <b>TH</b> macro (<b>T</b>able <b>H</b>eader), which is required
when you begin a table with <kbd>.TS H</kbd>, allows you to
determine what goes in a table&#8217;s running header if it spans
multiple pages.  Placing <kbd>.TH</kbd> under the first row of
<kbd>tbl</kbd> data makes the first row the header.  If placed under
the second row, the first and second rows form the header, and so
on.
</p>

<p>
As there are sometimes reasons to run <kbd>.TS H</kbd> when
you don&#8217;t, in fact, want a running header (e.g. when
your table has a caption), you can suppress it by placing
<kbd>.TH</kbd> immediately underneath your <kbd>tbl</kbd> formatting
specifications, the last line of which always ends with a period
(see <kbd>tbl(1)</kbd>).
</p>

<p>
See the
<kbd><a href="#h">H</a></kbd>
argument to <kbd>.TS</kbd> for examples demonstrating <kbd>.TH</kbd>
placement.
</p>

<div class="macro-id-overline">
<h4 id="te" class="docs" style="font-size: 100%; margin-top: .5em">The .TE macro</h4>
</div>

<p>
<kbd>tbl</kbd> blocks must be terminated with <kbd>.TE</kbd>,
which, as of version 2.0-c, takes a single, optional argument,
<kbd>SOURCE</kbd>.  (Formerly, <kbd>TE</kbd> took a label/caption
argument along with arguments controlling placement.)  The argument
is followed by the text of the table&#8217;s source, surrounded by
double-quotes.  The SOURCE argument may only be used if
<a href="#mla">MLA</a>
(Modern Language Association) style is enabled.
</p>

<div class="rule-medium"><hr/></div>

<h3 id="pic" class="docs">pic support</h3>

<p>
Mom documents can include diagrams generated with the groff
preprocessor <b>pic</b>.  If you are unfamiliar with <b>pic</b>, I
recommend downloading a copy of
<a href="http://www.kohala.com/start/troff/gpic.raymond.ps">Making Pictures with GNU PIC</a>
which provides a thorough introduction and contains many examples.
If you use <b>pic</b>, you must pass groff or pdfmom the <b>-p</b>
flag when you process the file.

</p>

<p>
Diagrams created with <kbd>pic</kbd> begin with the macro
<kbd>.PS</kbd> (<b>P</b>ic <b>S</b>tart) and end with
<kbd>.PE</kbd> (<b>P</b>ic <b>E</b>nd).  Everything between them is
interpreted by the preprocessor as pic instructions.  Please note:
<i>Making Pictures with GNU PIC</i> says that <kbd>.PF</kbd> can
also be used to terminate a pic diagram, but this is not supported
by mom.
</p>

<p>
Pic diagrams are always centered.  Note that this represents a
change from version 2.0-b of mom, where centering diagrams required
passing <kbd>-mpic</kbd> to <b>groff</b> or
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>
on the command line.
</p>

<p>
In addition, mom treats <b>pic</b> diagrams identically to
<a href="#floats-intro">floats</a>,
which is to say that if a diagram doesn&#8217;t fit on the output
page, she will defer it to the top of the next page while continuing
to process
<a href="definitions.html#running">running text</a>.
<kbd>ADJUST</kbd> is ignored whenever a diagram is deferred, except
when moving from column to column on the same page, when the diagram
may need to be optically adjusted.  Subsequent diagrams that do not
fit, if any, are output in order immediately after the first.
</p>

<p>
Lastly, if your diagrams contain text, you may set all the type
parameters for the text (family, font, size, leading) separately
from the <b>pic</b> block with the macro
<a href="#pic-text-style">PIC_TEXT_STYLE</a>.
If you need to change the type parameters within the block
on-the-fly, you must use <b>pic</b>&#8217;s native facilities for
doing so.
</p>

<div class="macro-id-overline">
<h3 id="ps-pe" class= "macro-id">.PS / .PE</h3>
</div>

<div class="box-macro-args">
Macro: <b>PS</b>
<kbd class="macro-args">
<br/>
Arguments: [ &lt;width&gt;&nbsp;&lt;height&gt; ]
<kbd class="macro-args">
<br/>
&nbsp;&nbsp;[ LEFT ]</kbd>
<br/>
&nbsp;&nbsp;[ ADJUST +|-&lt;vertical adjustment&gt;]</kbd>
<span style="font-size: 95%">
(<a href="definitions.html#unitofmeasure">unit of measure</a>
required)
</span>
<kbd class="macro-args"><br/>
&nbsp;&nbsp;[ NO_SHIM ]
<br/>
&nbsp;&nbsp;[ NO_FLEX ]
<br/>
&nbsp;&nbsp;[ CAPTION "&lt;caption&gt;" ]
<br/>
&nbsp;&nbsp;[ SHORT_CAPTION "&lt;short caption&gt;" ]
<br/>
&nbsp;&nbsp;[ LABEL "&lt;label&gt;" ]
<br/>
&nbsp;&nbsp;[ TARGET "&lt;name&gt;" ]
</kbd>
<br/>
Macro: <b>PE</b> <span style="font-size: 95%">(no arguments; ends
the <b>pic</b> block)</span>
</div>

<div class="box-important" style="margin-top: 1.5em">
<p class="tip">
<span class="important">IMPORTANT:</span>
All arguments to <b>PS</b> must appear on the same line as
<kbd>.PS</kbd>.  Do not attempt to break them up with the
&#8220;line-continued&#8221; backslash.  You may want to set your
text editor to &#8220;wrap&#8221; mode in order to see all your
arguments.  This annoyance stems from the preprocessor mechanism
itself, not groff or mom.
</p>
</div>

<h5 class="docs" style="margin-top: 1em; text-transform: none">'width' and 'height'</h5>

<p>
The <kbd>width</kbd> and <kbd>height</kbd> arguments to
<kbd>.PS</kbd> are idiosyncratic owing to the preprocessor itself.
Both are optional and both expect a value in inches, so neither
argument should have a
(<a href="definitions.html#unitofmeasure">unit of measure</a>
appended.
</p>

<p>
If the <kbd>width</kbd> argument is supplied, the diagram, but
not any text it contains, is scaled to the given width.  If a
literal width argument of <kbd>0</kbd> (zero) is given and a
<kbd>height</kbd> argument is supplied, the diagram, but not any
text it contains, will be scaled to the requested height.  In the
case of two non-zero arguments being given, only the height scaling
is applied.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">LEFT</h5>

<p>
By default, pic diagrams are centred on the page.  If you would
prefer them to be flush left, pass <kbd>PS</kbd> the <kbd>LEFT</kbd>
argument.
</p>
<h5 class="docs" style="margin-top: 1em; text-transform: none">ADJUST</h5>

<p>
<kbd>ADJUST</kbd> lets you raise (<kbd>-</kbd>) or lower
(<kbd>+</kbd>) a diagram
<span style="font-style: italic">within the space allotted for it</span>
by the amount you specify.  This is useful for achieving good
optical centering between surrounding blocks of type.  A unit of
measure is required.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_SHIM</h5>

<p>
<kbd>NO_SHIM</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">shimming</a>
after a <b>pic</b> diagram, which she will do automatically when
shimming is enabled, which it is by default.  Shimming ensures that
running text after the diagram falls properly on the page&#8217;s
<a href="definitions.html#baseline-grid">baseline grid</a>,
but can result in slightly unequal spacing above and below
(correctable with the <kbd>ADJUST</kbd> argument).
<kbd>NO_SHIM</kbd> is useful when you have several diagrams on the
page and there are visible differences in the spacing beneath them
as a result of shimming.  To ensure a flush bottom margin, the last
diagram on the page should be shimmed, i.e. should not be given the
<kbd>NO_SHIM</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_FLEX</h5>

<p>
<kbd>NO_FLEX</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">flex-spacing</a>
after a <b>pic</b> diagram, which she will do automatically when
flex-spacing is enabled. <kbd>NO_FLEX</kbd> is useful when you
have several diagrams on the page and you want to distribute excess
vertical whitespace on the page amongst other flex-spacing points
on the page.  If there are no others, the final diagram should be
flex-spaced, i.e. not given the <kbd>NO_FLEX</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">CAPTION</h5>

<p>
<kbd>CAPTION</kbd> allows you to give the diagram a caption.  By
default, the caption appears above the diagram, but may be attached to
the label that appears beneath it.  See
<a href="#caption-after-label">CAPTION_AFTER_LABEL</a>
in
<a href="#captions-and-labels">Captions and labels</a>.
The text of the caption must be surrounded by double-quotes.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">SHORT_CAPTION</h5>

<p>
<kbd>SHORT_CAPTION</kbd> allows you to trim long captions for
inclusion in the List of Figures.  The text you supply, surrounded
by double-quotes, is what will appear in the List.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">LABEL</h5>

<p>
<kbd>LABEL</kbd>, if given, appears beneath the diagram.  The text you
supply, surrounded by double-quotes, is how the diagram is labelled
in both the document proper and the List of Figures.  Mom provides
an auto-labelling facility for diagrams (see
<a href="#autolabel">AUTOLABEL</a>),
which, if enabled, overrides the <kbd>LABEL</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">TARGET</h5>

<p>
<kbd>TARGET</kbd> followed by a unique name surrounded by
double-quotes creates a PDF target for the diagram so that it may be
linked to from other places in the file (with PDF_LINK; see
<a href="version-2.html#mom-pdf">Producing PDFs with groff and mom</a>).
</p>

<p>
<b><i>Please note:</i></b> The following functionality is available
only with groff 1.22.4 or later.
</p>

<p>
When
<a href="#autolabel">autolabelling</a>
is enabled and the document is processed with
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>,
the target name can be used to generate the target&#8217;s label
number in running text if it is entered as a groff string, i.e. of
the form <kbd><span class="nobr">\*[name]</span></kbd>.  For example, if you
create a target called &#8220;foo&#8221; for a diagram whose
autolabel number would be 3, entering
<br/>
<span class="pre-in-pp">
  See
  .PDF_LINK foo "Figure \*[foo]"
</span>
anywhere in running text would result in a pdf link that reads
&#8220;Figure 3&#8221;.  If chapter numbers are being prefixed to
labels, the same string in, say, chapter 5 would produce the pdf
link &#8220;Figure 5.3&#8221;.
</p>

<!-- PIC_TEXT_STYLE -->

<div class="macro-id-overline">
<h3 id="pic-text-style" class= "macro-id">PIC_TEXT_STYLE</h3>
</div>

<div class="box-macro-args">
Macro: <b>PIC_TEXT_STYLE</b> \
<br/>
<kbd class="macro-args">
&nbsp;&nbsp;[ FAMILY ] "&lt;family&gt;" \
<br/>
&nbsp;&nbsp;[ FONT ] "&lt;font&gt;" \
<br/>
&nbsp;&nbsp;[ SIZE ] "+|-&lt;size&gt;" \
<br/>
&nbsp;&nbsp;[ AUTOLEAD ] "&lt;value&gt;"
</kbd>
</div>

<p>
Diagrams drawn with <b>pic</b> may contain text, and groff
<a href="inlines.html#intro-inlines">inline escapes</a>
may be used to alter the text parameters.  A problem that arises
from so doing is that, in many cases, it clutters up the <b>pic</b>
code unnecessarily.
</p>

<p>
PIC_TEXT_STYLE lets you establish the type parameters for text
inside a <b>pic</b> block all at once in cases where so doing 
improves the readability of your mom source files.
</p>

<p>
The arguments to PIC_TEXT_STYLE behave identically to the arguments
to other control macros, explained
<a href="docelement.html#control-macro-args">here</a>.
They may be given in any order, and you may use as many or as few as
you like.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
Text within <b>pic</b> diagrams does not scale when you provide a
scaling argument to <kbd>.PS</kbd>.  This is a limitation of the
preprocessor itself, not groff or mom.
</p>
</div>

<div class="rule-medium"><hr/></div>

<h3 id="grap" class="docs">grap support</h3>

<p>
Grap is a <b>pic</b> preprocessor for creating graphs.  Grap
usage is covered in the <kbd>grap(1)</kbd> manpage.  Its mom
implementation is the same as for <b>pic</b> except that instead of
enclosing directives between
<a href="#ps-pe">.PS&nbsp;/&nbsp;.PE</a>,
they are enclosed between <b>.G1/.G2</b>.  If you use <b>grap</b>,
you must pass groff or pdfmom the <b>-G</b> flag when you process
the file.

</p>

<p>
<b>.G1</b> takes all the same arguments as
<a href="#ps-pe">PS</a>
with one exception: the argument <b>GRAP</b> must always be given to
<b>.G1</b>.  So, for example, a skeleton grap block raised 2 points
and with a caption would be entered:
<br/>
<span class="pre-in-pp">
  .G1 GRAP ADJUST +2p CAPTION "Graph caption"
  &lt;grap directives&gt;
  .G2
</span>

</p>

<div class="rule-medium"><hr/></div>

<h3 id="eqn" class="docs">eqn support</h3>

<p>
Support for <b>eqn</b> is provided via extensions to the standard
<kbd>.EQ/.EN</kbd> macros. <kbd>eqn</kbd> usage itself is beyond
the scope of this documentation, but is covered in the manpage
<kbd>eqn(1)</kbd>.  You can also download a copy of Ted
Harding&#8217;s
<a href="http://lists.gnu.org/archive/html/groff/2013-10/pdfTyBN2VWR1c.pdf">
A Guide to Typesetting Mathematics Using GNU eqn
</a>,
which contains useful examples.  If you use <b>eqn</b>, you must give groff or
pdfmom the <b>-e</b> flag.

</p>

<div class="macro-id-overline">
<h3 id="eq-en" class= "macro-id">.EQ / .EN</h3>
</div>

<div class="box-macro-args">
Macro: <a href="#eq"><b>EQ</b></a>
<br/>
<kbd class="macro-args">Arguments:
<br/>
&nbsp;&nbsp;[ -L | -C | -I &lt;indent&gt; ]</kbd>
<span style="font-size: 95%">
(<a href="definitions.html#unitofmeasure">unit of measure</a>
required)
</span>
<kbd class="macro-args"><br/>
&nbsp;&nbsp;[ ADJUST +|-&lt;vertical adjustment&gt;]</kbd>
<span style="font-size: 95%">
(<a href="definitions.html#unitofmeasure">unit of measure</a>
required)
</span>
<kbd class="macro-args"><br/>
&nbsp;&nbsp;[ NO_SHIM ]
<br/>
&nbsp;&nbsp;[ NO_FLEX ]
<br/>
&nbsp;&nbsp;[ CAPTION "&lt;caption&gt;" ]
<br/>
&nbsp;&nbsp;[ LABEL "&lt;label&gt;" ]
<br/>
&nbsp;&nbsp;[ SHIFT_LABEL +|-&lt;vertical adjustment&gt; ]
<br/>
&nbsp;&nbsp;[ SHORT_CAPTION "&lt;short caption&gt;" ]
<br/>
&nbsp;&nbsp;[ TARGET "&lt;name&gt;" ]
<br/>
&nbsp;&nbsp;[ CONTINUED | CONT | ... ]</kbd>
</div>

<div class="box-tip">
<p class="tip">
<span class="note">Note: Version 2.0-c change</span>
<br/>
2.0-c introduces revisions to <b>EQ</b>, including the addition
of a dash (<kbd>-</kbd>) to the positioning arguments
(<kbd>-L</kbd>, <kbd>-C</kbd>, and <kbd>-I</kbd>) and the removal of a
default value for <kbd>-I</kbd>.  Other changes include passing all
options to <kbd>.EQ</kbd> (including the label) such that
<kbd>.EN</kbd> takes only a single, optional argument saying whether
the equation is to be continued at the next invocation of
<kbd>.EQ</kbd>.  Please read this section carefully if you have
documents containing equations as they may need to be updated.
</p>
</div>

<div class="box-important" style="margin-top: 1em">
<p class="tip">
<span class="important">IMPORTANT:</span>
All arguments to <b>EQ</b> must appear on the same line as
<kbd>.EQ</kbd>.  Do not attempt to break them up with the
&#8220;line-continued&#8221; backslash.  You may want to set your
text editor to &#8220;wrap&#8221; mode in order to see all your
arguments.  This annoyance stems from the preprocessor mechanism
itself, not groff or mom.
</p>
</div>

<div class="macro-id-overline" style="margin-top: .5em">
<h4 id="eq" class="docs" style="font-size: 100%; margin-top: .5em">The .EQ macro</h4>
</div>

<p>
Equations to be set with <b>eqn</b> begin with <kbd>.EQ</kbd>,
followed by <b>eqn</b> code.  Equations are centered by default,
but may be set flush left or indented from the left margin
if <kbd>-L</kbd> or <kbd>-I</kbd> are passed as arguments to
<kbd>.EQ</kbd>.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">ADJUST</h5>

<p>
<kbd>ADJUST</kbd> lets you raise (<kbd>-</kbd>) or lower
(<kbd>+</kbd>) an equation
<span style="font-style: italic">within the space allotted for it</span>
by the amount you specify.  This is useful for achieving good
optical centering between surrounding blocks of type.  A unit of
measure is required.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_SHIM</h5>

<p>
<kbd>NO_SHIM</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">shimming</a>
after an equation, which she will do automatically when shimming is
enabled, which it is by default.  Shimming ensures that running text
after the equation falls properly on the page&#8217;s
<a href="definitions.html#baseline-grid">baseline grid</a>,
but can result in slightly unequal spacing above and
below (correctable with the <kbd>ADJUST</kbd> argument).
<kbd>NO_SHIM</kbd> is useful when you have several equations on the
page and there are visible differences in the spacing beneath them
as a result of shimming.  To ensure a flush bottom margin, the last
equation on the page should be shimmed, i.e. should not be given the
<kbd>NO_SHIM</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">NO_FLEX</h5>

<p>
<kbd>NO_FLEX</kbd> instructs mom not to apply
<a href="docprocessing.html#shim-vs-flex">flex-spacing</a>
after an equation, which she will do automatically when flex-spacing
is enabled. <kbd>NO_FLEX</kbd> is useful when you have several
equations on the page and you want to distribute excess vertical
whitespace on the page amongst other flex-spacing points on
the page.  If there are no others, the final equation should be
flex-spaced, i.e. not given the <kbd>NO_FLEX</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">CAPTION</h5>

<p>
<kbd>CAPTION</kbd> allows you to give the equation a caption.  
Equation captions always appear beneath the equation.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">SHORT_CAPTION</h5>

<p>
<kbd>SHORT_CAPTION</kbd> allows you to trim long captions for
inclusion in the List of Equations.  The text you supply, surrounded
by double-quotes, is what will appear in the List.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">LABEL</h5>

<p>
<kbd>LABEL</kbd>, if given, appears on the same baseline as the last line of the
equation, flush with the left or right margin, depending on the
equation&#8217;s horizontal position.  The text you supply, surrounded by
double-quotes, is how
the equation is labelled in both the document proper and the List of
Equations.  Mom provides an auto-labelling facility for equations (see
<a href="#autolabel">AUTOLABEL</a>),
which, if enabled, overrides the <kbd>LABEL</kbd> argument.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">SHIFT_LABEL</h5>

<p>
<kbd>SHIFT_LABEL</kbd> allows you to raise (<kbd>-</kbd>) or lower
(<kbd>+</kbd>) the equation label.  It&#8217;s primary use is to
center equation labels vertically on the equation rather than flush
with the last line.  Assuming a three-line equation,
<kbd>.EQ&nbsp;SHIFT_LABEL&nbsp;-1v</kbd> would raise the label by
one line, thus centering it vertically on the equation.
</p>

<h5 class="docs" style="margin-top: 1em; text-transform: none">TARGET</h5>

<p>
<kbd>TARGET</kbd> followed by a unique name surrounded by
double-quotes creates a PDF target for the equation so that it may
be linked to from other places in the file (with PDF_LINK; see
<a href="version-2.html#mom-pdf">Producing PDFs with groff and mom</a>).
</p>

<p>
<b><i>Please note:</i></b> The following functionality is available
only with groff 1.22.4 or later.
</p>

<p>
When
<a href="#autolabel">autolabelling</a>
is enabled and the document is processed with
<a href="using.html#pdfmom" style="font-weight: bold">pdfmom</a>,
the target name can be used to generate the target&#8217;s label
number in running text if it is entered as a groff string, i.e. of
the form <kbd><span class="nobr">\*[name]</span></kbd>.  For example, if you
create a target called &#8220;foo&#8221; for an equation whose
autolabel number would be 3, entering
<br/>
<span class="pre-in-pp">
  See
  .PDF_LINK foo "Equation \*[foo]"
</span>
anywhere in running text would result in a pdf link that reads
&#8220;Equation 3&#8221;.  If chapter numbers are being prefixed to
labels, the same string in, say, chapter 5 would produce the pdf
link &#8220;Equation 5.3&#8221;.
</p>


<div class="macro-id-overline" style="margin-top: .5em">
<h4 id="en" class="docs" style="font-size: 100%; margin-top: .5em">The .EN macro</h4>
</div>

<p>
A block of <b>eqn</b> code is terminated with <kbd>.EN</kbd>.
</p>

<p>
If an equation needs to span multiple lines, possibly aligned
with <b>eqn</b>&#8217;s <kbd>'mark'</kbd> and <kbd>'lineup'</kbd>
directives, separate invocations of <kbd><span class="nobr">.EQ/.EN</span></kbd>
are required for each line, and the optional argument,
<kbd>CONTINUED</kbd> (or <kbd>CONT</kbd>, or <kbd>...</kbd> [three
dots, an ellipsis]), must be passed to <kbd>.EN</kbd>.
</p>

<p>
If <kbd>-L</kbd> or <kbd>-I</kbd> is given to the first
<kbd>.EQ</kbd> of a multi-line equation, they remain in effect
until an <kbd>.EN</kbd> without the <kbd>CONTINUED</kbd> argument
is reached.
</p>

<p>
Mom does not treat equations as floats, therefore it is possible to
begin an equation on one page and terminate it on the next.  If you
wish to keep all lines of an equation together, you must wrap the
equation, including all invocations of <kbd>.EQ/.EN</kbd>, inside
a
<a href="#floats-intro">float</a>.
</p>

<div class="rule-medium"><hr/></div>

<h3 id="refer" class="docs">refer support</h3>

<p>
<b>refer</b> support is covered in the section
<a href="refer.html">Bibliographies and references</a>.
</p>

<div class="rule-medium"><hr/></div>

<h2 id="captions-and-labels" class="docs">Captions and labels</h2>

<ul>
  <li><a href="#autolabel">AUTOLABEL</a></li>
  <li><a href="#caption-after-label">CAPTION_AFTER_LABEL</a></li>
  <li><a href="#mla">MLA</a>&mdash;MLA-style captioning and labelling</li>
  <li><a href="#captions-labels-sources">Set style parameters for captions, labels, and sources</a></li>
</ul>

<p>
Mom includes facilities for adding captions and labels to figures,
tables, equations, and pdf images, including auto-labelling.  If
Lists of Figures, Tables, and Equations are desired, captions (if
any) and labels (if any) are collected and output in the Lists with
the appropriate page number.
</p>

<p>
The distinction between a caption and a label is that labels are
identifiers, e.g. &#8220;Fig. 1&#8221; or &#8220;Table 3&#8221;,
while captions are descriptive or informative.  For most types of
writing, it is usual to provide both.
</p>

<p>
By default, mom sets captions above figures (i.e. <b>pic</b> output and
pdf images) and tables.  This behaviour may be modified with the
macro
<a href="#caption-after-label">CAPTION_AFTER_LABEL</a>.
Equations always have their captions set underneath.  All aspects of
the text style for captions may be set with the macro
<a href="#captions-labels-sources">CAPTIONS</a>.
</p>

<p>
Labels for tables are set underneath the table unless the
<a href="#mla">MLA</a>
macro has been invoked, in which case the label and caption appear
above the table, per MLA style, and the source for the table, if
any, appears underneath.  Labels for figures are set underneath.
Equation labels, by default, are set on the same baseline as the
last line of the equation.  Like captions, all aspects of text style
for labels may be established with a single macro
<a href="#labels">LABELS</a>.
Furthermore, mom can autolabel figures, tables, and equations, with
or without a prefixed chapter number.
</p>

<div class="macro-id-overline">
<h3 id="autolabel" class="macro-id">Autolabel</h3>
</div>

<div class="box-macro-args">
Macro: <b>AUTOLABEL_EQUATIONS</b>
<br/>
Macro: <b>AUTOLABEL_IMAGES</b>
<br/>
Macro: <b>AUTOLABEL_PIC</b>
<br/>
Macro: <b>AUTOLABEL_TABLES</b>
<br/>
<kbd class="macro-args">Arguments:
<br/>
[ PREFIX "&lt;string&gt;"] [ SUFFIX "&lt;string&gt;"] [ PREFIX_CHAPTER [ &lt;n&gt; ] ]
</kbd>
</div>

<p>
<b>AUTOLABEL_&lt;type&gt;</b> takes care of labelling &lt;type&gt; by
identifying each with a separate, incrementing numeric scheme, which
is also collected for output in Lists of Figures, Equations, and
Tables.
</p>

<p>
Autolabelling may be disabled on-the-fly by giving any argument
other than <kbd>PREFIX</kbd>, <kbd>SUFFIX</kbd>, or
<kbd>PREFIX_CHAPTER</kbd> to the appropriate macro.  For example,
<br/>
<span class="pre-in-pp">
  .AUTOLABEL_IMAGES NO
</span>
would disable autolabelling of images.
</p>

<h4 class="docs" style="margin-top: -.5em">Prefixes and suffixes</h4>

<p>
By default, when <b>AUTOLABEL</b> is enabled, the label numbers are
prefixed, and, in the case of equations, suffixed, with strings such
that they appear for tables as &#8220;Table&nbsp;&lt;n&gt;&#8221;, for
<b>pic</b> diagrams and pdf images as &#8220;Fig.&nbsp;&lt;n&gt;&#8221;,
and for equations as &#8220;Eq.&nbsp;(&lt;n&gt;)&#8221;.
</p>

<p>
You can use <kbd>PREFIX&nbsp;&lt;"string"&gt;</kbd> to change what
comes before the automatic numbering.  For example, if you are
including musical excerpts in your document, MLA style requires that
they be labelled &#8220;Ex.&nbsp;&lt;n&gt;&#8221;.  Since musical
excerpts are likely to be scanned images (in pdf format, don&#8217;t
forget), you have to change the prefix string for pdf images:
<br/>
<span class="pre-in-pp">
  .AUTOLABEL_IMAGES \
   PREFIX "Ex. " \
   SUFFIX ""
</span>
If you need a suffix after the automatic numbering, use
<kbd>SUFFIX&nbsp;&lt;"string"&gt;</kbd>, like this:
<br/>
<span class="pre-in-pp">
  .AUTOLABEL_IMAGES \
   PREFIX "(Fig. " \
   SUFFIX ")"
</span>
Note from the above that both arguments, <kbd>PREFIX</kbd> and
<kbd>SUFFIX</kbd>, are required should you want either.  Two
adjacent double-quotes leaves the string blank.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
In automatically formatted
<a href="#lists-macros">&#8220;Lists of ...&#8221;</a>,
label number prefixes are stripped when autolabelling is enabled.
</p>
</div>

<h4 class="docs" style="margin-top: -.5em">Prefixing chapter numbers</h4>

<p>
If you would like mom to prefix chapter numbers to the label,
pass <kbd>AUTOLABEL_&lt;type&gt;</kbd> the argument
<kbd>PREFIX_CHAPTER</kbd>.
</p>

<p>
If for some reason you need to specify the chapter number,
you may do so by passing the number as an argument to
<kbd>PREFIX_CHAPTER</kbd>.  Subsequent chapters or major sections
will increment by one as expected.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
For the purposes of labelling, mom treats
<a href="docprocessing.html#doctype">DOCTYPE&nbsp;DEFAULT</a>
as if it were <b>DOCTYPE&nbsp;CHAPTER</b>, hence, with
<kbd>PREFIX_CHAPTER</kbd>, each collated <b>DEFAULT</b>
doctype&#8217;s prefixed &#8220;chapter&#8221; number is
incremented and the label number itself reset to &#8220;1&#8221;.
If you do not supply the <kbd>PREFIX_CHAPTER</kbd> argument, the
label number is <i>not</i> reset automatically.  To reset it, invoke
<kbd>.AUTOLABEL_&lt;type&gt;</kbd> after each
<a href="docprocessing.html#collate">COLLATE</a>.
</p>
</div>

<div id="set-autolabel" class="box-macro-args" style="margin-top: .5em">
Macro: <b>SET_AUTOLABEL</b> <kbd class="macro-args">FIG | TBL | PIC | EQN &lt;n&gt;</kbd>
</div>

<p>
You may sometimes need to set or reset the autolabel number for a
particular type of pre-processor or for PDF images.  This is likely
to occur if you are using
<a href="#float">FLOAT</a>
in conjunction with the <kbd>TO_LIST</kbd> argument.
</p>

<p>
For example, if your document has Figures (PDF images, pic diagrams)
and you want your tables to be labelled as Figures as well, you have
to wrap the tables inside a float and label the float manually as
&#8220;Fig.&nbsp;n&#8221;, sending it to the List of Figures with
<kbd>TO_LIST FIGURES</kbd>.
</p>

<p>
Mom does not autolabel floats or assign them automatically
to a list, so she doesn&#8217;t know you&#8217;ve interrupted the
auto-incrementing label numbers.  Use SET_AUTOLABEL get her back on
track.  The number you give as an argument after telling her which
kind of label number to set is the one you want to appear next.
<br/>
<span class="pre-in-pp">
  .SET_AUTOLABEL FIG 6
</span>
means the next autolabelled Figure will be &#8220;Fig. 6.&#8221;
</p>

<div class="macro-id-overline">
<h3 id="caption-after-label" class="macro-id">Captions after labels</h3>
</div>

<div class="box-macro-args" style="margin-top: .5em">
Macro: <b>CAPTION_AFTER_LABEL</b> <kbd class="macro-args">IMG | PIC | TBL | ALL [ &lt;anything&gt; ]</kbd>
</div>

<p>
By default, mom sets captions above figures (<b>pic</b> output
and pdf images) and tables; labels are always underneath.
</p>

<p>
<kbd>.CAPTION_AFTER_LABEL</kbd>, with one of the required arguments,
instructs mom to attach captions directly to the appropriate
labels, beginning on the same line.  Any argument after the first
disables this behaviour, restoring caption placement to mom&#8217;s
default.  For example,
<br/>
<span class="pre-in-pp">
  .CAPTION_AFTER_LABEL ALL
</span>
would enable captions after labels globally, while a subsequent
<br/>
<span class="pre-in-pp">
  .CAPTION_AFTER_LABEL IMG OFF
</span>
would disable captions after labels for pdf images only.
<kbd>OFF</kbd> can be anything you like (<kbd>X</kbd>,
<kbd>NO</kbd>, etc).
</p>

<p>
If
<a href="#mla">MLA</a>
is enabled, there&#8217;s no need to invoke
<kbd>CAPTION_AFTER_LABEL</kbd> as this is implied.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
A separate invocation of <kbd>.CAPTION_AFTER_LABEL</kbd> is required
for each one of the required first arguments.  You cannot, for
example, do
<br/>
<span class="pre-in-pp">
  .CAPTION_AFTER_LABEL IMG TBL
</span>
Rather, you must do
<br/>
<span class="pre-in-pp">
  .CAPTION_AFTER_LABEL IMG
  .CAPTION_AFTER_LABEL TBL
</span>
</p>
</div>

<div class="macro-id-overline">
<h3 id="mla" class="macro-id">MLA-style captioning and labelling</h3>
</div>

<div class="box-macro-args" style="margin-top: .5em">
Macro: <b>MLA</b> <kbd class="macro-args"> [ &lt;anything&gt; ]</kbd>
</div>

<p>
Modern Language Association style dictates that captions should
always go after labels.  Furthermore, labels and captions for tables
should go <i>above</i> the tables, with the source for the table, if
any, underneath.
</p>

<p>
Invoking <kbd>.MLA</kbd> by itself takes care of these details.  If
you need to disable MLA-style captioning and labelling mid-document,
<kbd>.MLA&nbsp;OFF</kbd> does the trick. <kbd>OFF</kbd> can be
anything you like (<kbd>X</kbd>, <kbd>NO</kbd>, etc).
</p>

<div class="macro-id-overline" style="margin-top: 1em">
<h3 id="captions-labels-sources" class="macro-id">Style parameters for captions, labels and sources</h3>
</div>

<div class="box-macro-args" style="margin-top: .5em">
Macro: <b>CAPTIONS</b> <kbd class="macro-args">EQN | IMG | PIC | TBL | FLOATING | ALL</kbd>
<br/>
Macro: <b>LABELS</b> <kbd class="macro-args">EQN | IMG | PIC | TBL | FLOATING | ALL</kbd>
<br/>
Macro: <b>SOURCES</b> <kbd class="macro-args">TBL</kbd>
<br/>
<kbd class="macro-args">Style arguments:
<br/>
&nbsp;&nbsp;FAMILY &lt;family&gt; \
<br/>
&nbsp;&nbsp;FONT &lt;font&gt; \
<br/>
&nbsp;&nbsp;SIZE +|-&lt;size&gt; \
<br/>
&nbsp;&nbsp;AUTOLEAD &lt;value&gt; \
<br/>
&nbsp;&nbsp;COLOR &lt;color&gt; \
<br/>
&nbsp;&nbsp;QUAD LEFT | CENTER | RIGHT [ ON_LL ] \
<br/>
&nbsp;&nbsp;INDENT &lt;indent&gt; \
<br/>
&nbsp;&nbsp;ADJUST +|-&lt;vertical adjustment&gt;
</kbd>
</div>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
Arguments may be broken into several lines using the
&#8220;line-continued&#8221; backslash (<b>\</b>), as shown above.
</p>
</div>

<div class="box-tip">
<p class="tip">
<span class="note">Additional note:</span>
Mom&#8217;s default style for labels, captions, and sources is
the same as the style used for running text, with two exceptions:
labels are set in bold, except for eqn which is roman medium, and
the autolead value for all three is &#8220;2&#8221;, effectively
tightening the lead.  Furthermore, they are quadded left (except
eqn, which is quadded right.)
</p>
</div>

<p>
With the exception of <kbd>ADJUST</kbd> and <kbd>QUAD</kbd> (which
requires a bit of explanation), the style arguments to <kbd>CAPTIONS</kbd>,
<kbd>LABELS</kbd>, and <kbd>SOURCES</kbd> (which is only available
for tables) behave identically to the 
<a href="docelement.html#control-macro-args">arguments to control macros</a>.
</p>

<p>
The first, required argument after <kbd>CAPTIONS</kbd>,
<kbd>LABELS</kbd>, or <kbd>SOURCES</kbd> indicates the preprocessor
type for which you are setting the parameters.  (For convenience
PDF_IMAGE&mdash;argument <kbd>IMG</kbd>&mdash;is here treated as a
preprocessor.)  <kbd>FLOATING</kbd> sets the style for the macros
<a href="#caption">CAPTION</a>
and
<a href="#label">LABEL</a>,
which are used to label floats, quotes, and blockquotes.
</p>

<p>
An argument of <kbd>ALL</kbd> sets a unified style for all
preprocessors, floats, quotes, and blockquotes.  If the
<kbd>ALL</kbd> argument is given, arguments to subsequent
invocations of <kbd>CAPTIONS</kbd>, <kbd>LABELS</kbd>, or
<kbd>SOURCES</kbd> overwrite only the explicitly named style
parameters.
</p>

<h4 class="docs">QUAD &mdash; quadding of labels, captions, and sources</h4>

<h5 class="docs" style="text-transform: none">&bull;&nbsp;pic, tbl, pdf images</h5>

<p>
By default, figures (<b>pic</b> output and pdf images) and tables
have their captions and labels set quad left.  Sources (for
tables) are also set quad left.  Equations have their labels
set quad right, and their captions centered.
</p>

<p>
Regardless of the quad direction, captions, labels and sources
are set on the width of the figure, table, or pdf image
unless you pass the optional <kbd>ON_LL</kbd> argument to
<kbd><span class="nobr">QUAD&nbsp;&lt;direction&gt;</span></kbd>, in which case
the prevailing document line length is used instead.
</p>

<h5 class="docs" style="text-transform: none">&bull;&nbsp;eqn</h5>

<p>
Equations behave differently.  By default, equation labels are
set flush right with the page&#8217;s right margin regardless of
equation positioning, which is, again by default, centered.  If the
equation is positioned left, the label will appear at the right
margin regardless of the direction you give to <kbd>QUAD</kbd>.  If
the equation is indented with the
<kbd><span class="nobr">-I&nbsp;&lt;indent&gt;</span></kbd> option, a quad
direction of <kbd>LEFT</kbd> is observed, but may overprint the last
line of the equation.
</p>

<p>
Note that there is no <kbd>CENTER</kbd> option for equation labels,
and that captions are always quadded over the prevailing document
line length.
</p>

<h5 class="docs" style="text-transform: none">&bull;&nbsp;quotes and blockquotes</h5>

<p>
Floating labels attached to <b>QUOTE</b>s are quadded on the
prevailing document line length, and require the <kbd>INDENT</kbd>
argument if you want to align them with the left and/or right edges
the quote.
</p>

<p>
Floating labels attached to <b>BLOCKQUOTE</b>s are always quadded on
the indent and line length of the blockquote.
</p>

<h5 class="docs" style="text-transform: none">&bull;&nbsp;floats</h5>

<p>
Floating labels and captions attached to <b>FLOAT</b>s are always
quadded over the prevailing document line length, and require the
<kbd>INDENT</kbd> argument if you want to align them with the left
and/or right edges of the float&#8217;s contents.
</p>

<h4 class="docs">INDENT</h4>

<p>
The <kbd>INDENT</kbd> argument may only be used if the label
or caption type is <kbd>FLOATING</kbd>, and only applies to
<b>FLOAT</b>s and <b>QUOTE</b>s, not <b>BLOCKQUOTE</b>s.
</p>

<p>
It is not possible for mom to know the width of a float before
setting a label or caption attached to a float.  She therefore sets
it on the prevailing document line length.  While this isn&#8217;t
much of an issue when the label or caption quad is <b>CENTER</b>,
you may want to adjust the horizontal positioning when the quad is
<b>LEFT</b> or <b>RIGHT</b>.
</p>

<p>
<kbd>INDENT</kbd>, with a numeric value to which a
<a href="definitions.html#unitofmeasure">unit of measure</a>
is appended, allows you to indent a floating label or caption so
it lines up with the left edge of a <b>FLOAT</b> or <b>QUOTE</b>.
<kbd>INDENT&nbsp;RIGHT</kbd> (with a value) allows you to shorten the
line length to the appropriate width.  If you need both a left and
right indent, invoke <kbd>LABELS</kbd> or <kbd>CAPTIONS</kbd> twice,
one instance containing <kbd>INDENT&nbsp;&lt;indent&gt;</kbd> and
the other <kbd>INDENT&nbsp;RIGHT&nbsp;&lt;indent&gt;</kbd>.
</p>

<h4 class="docs">ADJUST</h4>

<p>
The <kbd>ADJUST</kbd> argument allows you to add(<kbd>+</kbd>) or
subtract (<kbd>-</kbd>) vertical space between labels and captions
and the output to which they are attached.  The argument requires a
<a href="definitions.html#unitofmeasure">unit of measure</a>.
For example, if you find that table labels are a bit too close to
the table itself,
<br/>
<span class="pre-in-pp">
  .LABELS TBL ADJUST +3p
</span>
would put three extra points of space between the bottoms of tables
and the labels that appear beneath them.
</p>

<h2 id="lists-of" class="docs">Lists of Figures, Tables, and Equations</h2>

<p>
Besides a
<a href="tables-of-contents.html">Table of Contents</a>,
mom can generate Lists of Figures, Tables, and Equations.  Labels
and captions are collected and concatenated, and output in lists
with the appropriate page number, just like a Table of Contents.
Including such lists in a document is as simple as adding whichever
you need of
<br/>
<span class="pre-in-pp">
  .LIST_OF_FIGURES
  .LIST_OF_EQUATIONS
  .LIST_OF_TABLES
</span>
to the end of your input file.
</p>

<p>
Also like the Table of Contents, entries in the Lists&#8217; output
are clickable PDF links when a document is viewed at the screen.
</p>

<h3 id="lists-placement" class="docs">Placement of Lists</h3>

<p>
Lists normally appear after the Table of Contents, and continue
the page numbering scheme used for it.  By default, the Table of
Contents begins on roman-numeral page &#8220;i&#8221;.
</p>

<p>
If you are using mom&#8217;s
<a href="tables-of-contents.html#auto-relocate-toc">AUTO_RELOCATE_TOC</a>
feature, you have two options for placement of the Lists within the
document.  If you want the Lists shifted to the top of the document
along with the Table of Contents, invoke the Lists macros <i>after</i>
<a href="tables-of-contents.html#toc"><kbd>.TOC</kbd></a>.
If you prefer to have the Lists at the end of the document, invoke
the Lists macros <i>before</i> <kbd>.TOC</kbd>.
</p>

<p>
Lists shifted with the Table of Contents do not appear in the Table
of Contents itself, but do appear as clickable links in the PDF
outline typically available in the left panel of most PDF viewers.
Lists that are not shifted with the Table of Contents appear in both
the Table of Contents itself and the PDF outline.
</p>

<div class="macro-id-overline" style="margin-top: 1em">
<h3 id="lists-macros" class="macro-id">Macros to generate Lists</h3>
</div>

<div class="box-macro-args" style="margin-top: .5em">
Macro: <b>LIST_OF_EQUATIONS</b>
<br/>
Macro: <b>LIST_OF_FIGURES</b>
<br/>
Macro: <b>LIST_OF_TABLES</b>
<br/>
<kbd class="macro-args">Arguments:
<br/>
&nbsp;&nbsp;[ TITLE_STRING "&lt;string&gt;" ] [ START_PAGENUM &lt;page number&gt; ]
</kbd>
</div>

<p>
The first optional argument to the <kbd>LIST_OF_&lt;type&gt;</kbd>
macros allows you to change the title that appears at the top of the
page.  This is useful not only for internationalization, or to meet
the requirements of various style guides, but is also useful
for, say, documents containing musical examples, which, per
MLA-style, should be labelled &#8220;Example &#8221; or
&#8220;Ex. &#8221;.  When it comes time to output the List of
Figures (to which musical examples, usually scanned pdf images, belong),
<br/>
<span class="pre-in-pp">
  LIST_OF_FIGURES TITLE_STRING "List of Examples"
</span>
ensures that the title of the List is correct.
</p>

<p>
The second optional argument allows you to give a starting page
number for a list in cases where mom&#8217;s pagination scheme does
not provide the List with the starting page number you want.
</p>
<h3 id="formatting-lists" class="docs">Formatting and style parameters for Lists</h3>

<p>
Like the Table of Contents, nearly every aspect of Lists can be
designed independently of a document&#8217;s overall style.  By
default, Lists follow the formatting and style parameters of the
Table of Contents, both mom&#8217;s defaults and any changes you may
have made to the Table of Contents.
</p>

<p>
If you wish to make changes to any aspect of Lists formatting
or styling, the macro <kbd>LISTS_STYLE</kbd> provides all the
tools necessary.  It is unlikely that you&#8217;ll want the
formatting of the various list types to differ one from the other,
so <kbd>LISTS_STYLE</kbd> applies to all Lists.  In the event that
you do need to change some aspect of the formatting for different
list types, simply invoke <kbd>LISTS_STYLE</kbd> immediately prior
to each list whose formatting needs to be changed.
</p>

<div class="macro-id-overline" style="margin-top: 1em">
<h3 id="lists-style" class="macro-id">Lists style</h3>
</div>

<div class="box-macro-args" style="margin-top: .5em">
Macro: <b>LISTS_STYLE</b> <kbd class="macro-args">
<br/>
Arguments:
<br/>
&nbsp;&nbsp;FAMILY &lt;family&gt; \
<br/>
&nbsp;&nbsp;FONT &lt;font&gt; \
<br/>
&nbsp;&nbsp;PT_SIZE &lt;size&gt; \
<br/>
&nbsp;&nbsp;LEAD &lt;leading&gt; \
<br/>
&nbsp;&nbsp;TITLE_FAMILY &lt;family&gt; \
<br/>
&nbsp;&nbsp;TITLE_FONT &lt;font&gt; \
<br/>
&nbsp;&nbsp;TITLE_SIZE +|-&lt;size&gt; \
<br/>
&nbsp;&nbsp;TITLE_QUAD LEFT | CENTER | RIGHT \
<br/>
&nbsp;&nbsp;TOC_HEADER_UNDERSCORE default = none
<br/>
&nbsp;&nbsp;TITLE_COLOR &lt;color&gt; \
<br/>
&nbsp;&nbsp;PN_FAMILY &lt;family&gt; \
<br/>
&nbsp;&nbsp;PN_FONT &lt;font&gt; \
<br/>
&nbsp;&nbsp;PN_SIZE +|-&lt;size&gt; \
<br/>
&nbsp;&nbsp;EQN_PN_PADDING &lt;placeholders&gt; \
<br/>
&nbsp;&nbsp;FIG_PN_PADDING &lt;placeholders&gt; \
<br/>
&nbsp;&nbsp;TBL_PN_PADDING &lt;placeholders&gt; \
<br/>
&nbsp;&nbsp;PAGENUM_STYLE DIGIT | ROMAN | roman | ALPHA | alpha \
<br/>
&nbsp;&nbsp;NO_PAGINATION
</kbd>
</div>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
Arguments may be broken into several lines using the
&#8220;line-continued&#8221; backslash (<b>\</b>), as shown above.
</p>
</div>

<p>
<kbd>FAMILY</kbd> is the family for the entirety of Lists pages.
</p>

<p>
<kbd>FONT</kbd> is the font for the entirety of Lists pages.
</p>

<p>
<kbd>PT_SIZE</kbd> is the base point size for the entirety of Lists
pages.
</p>

<p>
<kbd>LEAD</kbd> is the base leading for the entirety of Lists pages.
</p>

<p>
<kbd>TITLE_FAMILY</kbd> is the family for the Lists titles if you
want it different from the family otherwise used for the Lists
pages.
</p>

<p>
<kbd>TITLE_FONT</kbd> is the font for the Lists titles if you want
it different from the font otherwise used for the Lists pages.
</p>

<p>
<kbd>TITLE_SIZE</kbd> tells mom by how much to increase
(<kbd>+</kbd>) or decrease (<kbd>-</kbd>) the point size of the
titles relative to the overall point size of Lists pages.
</p>

<p>
<kbd>TITLE_QUAD</kbd> tells mom how to position the title
horizontally.
</p>

<p>
<kbd>TITLE_COLOR</kbd> sets the colour for the titles.  The colour
must be pre-initialized with
<a href="color.html#newcolor">NEWCOLOR</a>
or
<a href="color.html#xcolor">XCOLOR</a>.
</p>

<p>
<kbd>PN_FAMILY</kbd> sets the family for entry pagenumbers.
</p>

<p>
<kbd>PN_FONT</kbd> sets the font for entry pagenumbers.
</p>

<p>
<kbd>PN_SIZE</kbd> tells mom by how much to increase (<kbd>+</kbd>)
or decrease (<kbd>-</kbd>) the point size of entry pagenumbers
relative to the overall point size of Lists pages.
</p>

<p>
<kbd>EQN_PN_PADDING</kbd>, <kbd>FIG_PN_PADDING</kbd>, and
<kbd>TBL_PN_PADDING</kbd> tells mom how many placeholders to reserve
for the entry pagenumbers in their respective Lists.  If, for example,
a document with both tables and figures runs to over a hundred
pages, but there are no tables after page 99,
<br/>
<span class="pre-in-pp">
  LISTS_STYLE FIG_PN_PADDING 3
  LISTS_STYLE TBL_PN_PADDING 2
</span>
would prevent an unneeded, reserved placeholder from putting too
much space between the leader and the entry pagenumber in the List of
Tables.
</p>

<p>
The padding in effect, unless you change it, is whatever was set for
the Tables of Contents; mom&#8217;s default is &#8220;3&#8221;.
</p>

<p>
<kbd>PAGENUM_STYLE</kbd> tells mom which pagination format to use
for the page numbers of the Lists pages themselves.  By default,
since Lists observe what is in effect for the Table of Contents, the
pagination format is &#8220;roman&#8221;.  Please note that the
starting page number for any of the Lists is given as an argument to
the
<a href="#lists-of">LISTS_0F_&lt;type&gt;</a>
macro.
</p>

<p>
<kbd>NO_PAGINATION</kbd> disables pagination of Lists pages.
</p>

<h2 id="box-intro" class="docs">Shaded backgrounds and frames (boxes)</h2>

<p>
Mom lets you add shaded backgrounds and frames to text and other
material.  For convenience, she calls backgrounds and frames
&#8220;boxes.&#8221; Entire passages may be boxed, or individual
document elements like headings, quotes, or pre-processor output.
Furthermore, boxes may be nested.
</p>

<p>
Boxes start on the baseline where the boxed material would have
started were it not for the box, subject to minor aesthetic
corrections mom takes the liberty of making.
</p>

<p>
Boxes extend from the current left margin to the current right
margin, respecting any active left and/or right indents.  There are
two exceptions,
<a href="docelement.html#epigraph">EPIGRAPH BLOCK</a>
and
<a href="docelement.html#blockquote">BLOCKQUOTE</a>,
which are discussed
<a href="#quotes">here</a>.
</p>

<p>
After a box is started, active left and right indents are
cleared.  The box&#8217;s inset determines the new left and right
margins.  Indents set inside a box are relative to the inset.
When a box is stopped, formerly active left and right indents
are restored.
</p>
 
<p>
Frames are drawn from the perimeter inward.  The inset is
relative to the inner edge of the frame.
</p>

<p>
If a box (including the bottom inset) can complete on a page, it
does, even if there is no further room for type.  This may, on
occasion, result in slight deviations from normal bottom margin
alignment.
</p>

<p>
Boxes span pages whenever the boxed material continues on the next
page.  Spanning boxes extend fully to the bottom margin of the page
on which they begin, leaving a slightly larger inset at the bottom
than around the other sides.
</p>

<p>
When there is not enough room to set at least one line of type
inside a box, mom defers starting the box until the next page,
leaving a gap.
</p>

<p>
Boxed material is not
<a href="docprocessing.html#shim-vs-flex">shimmed</a>
or
<a href="docprocessing.html#shim-vs-flex">flexed</a>.
If either was active prior to the box, it is restored when the box
ends and mom automatically shims or flexes whatever comes next.
</p>

<div class="box-tip">
<p class="tip">
<span class="important">NOTE:</span>
Shaded backgrounds and frames are not available when your
<a href="docprocessing.html#printstyle">PRINTSTYLE</a>
is <kbd>TYPEWRITE</kbd> or when
<a href="docprocessing.html#columns">COLUMNS</a> are enabled.
</p>
</div>

<div class="macro-id-overline">
<h3 id="box" class= "macro-id">BOX</h3>
</div>

<div id="box-macro" class="box-macro-args" style="margin-top: .5em">
Macro: <b>BOX</b> <kbd class="macro-args"> [ &lt;arguments&gt; ] | &lt;anything&gt;
<br/>
Arguments:
<br/>
[ SHADED &lt;color&gt; | OUTLINED &lt;colour&gt; ] \
<br/>
[ INSET &lt;dist&gt; ] \
<br/>
[ WEIGHT &lt;wt&gt; ] \
<br/>
[ ADJUST +|-&lt;amount&gt; ] \
<br/>
[ EQN | PIC | GRAP | IMG ]
</kbd>
</div>

<p>
Without arguments, BOX begins a shaded grey background.
The material inside is inset by one
<a href="definitions.html#picaspoints">pica</a>.
Any other type of box requires at a minimum either
<kbd>SHADED</kbd> or <kbd>OUTLINED</kbd>.  In the case of boxes
that are to contain pdf images or pre-processor material for
<a href="#eqn">eqn</a>,
<a href="#pic">pic</a>,
or
<a href="#grap">grap</a>,
<kbd>IMG</kbd>, <kbd>EQN</kbd>, <kbd>PIC</kbd>, or <kbd>GRAP</kbd>
must also be given.  Note that
<a href="#tbl">tbl</a>
does not have this requirement.
</p>

<p>
BOX is a
<a href="definitions.html#toggle">toggle macro</a>,
so any argument other than one in the list completes the box
(<kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>, etc).
</p>

<p>
Boxes should be started inside toggle macros like
<a href="docelement.html#quote">QUOTE</a>
or
<a href="#float">FLOAT</a>
just after the macro is called, and terminated just before toggling
the macro off (unless you wish the box to enclose further material).
</p>

<p>
Non-toggle macros like
<a href="docelement.html#heading">HEADING</a>
or
<a href="docelement.html#pp">PP</a>
require that the box be started beforehand.  Boxed pre-processor
material must be fully enclosed by BOX&nbsp;/&nbsp;BOX&nbsp;OFF, as
in this recipe for a one-off boxed pic diagram:
<span class="pre-in-pp">
.BOX
.PS
&lt;pic commands&gt;
.PE
.BOX OFF
</span>
Arguments to BOX are not sticky.  Each time you invoke BOX, you
must invoke it with arguments unless you want mom&#8217;s default grey
background.  If all or several boxes in a document require the same
arguments, create a macro at the top of the input file that calls
BOX with the arguments you want, e.g.
<span class="pre-in-pp">
&nbsp;&nbsp;.de PINK_BOX
&nbsp;&nbsp;.BOX \
&nbsp;&nbsp;&nbsp;&nbsp;SHADED pink \
&nbsp;&nbsp;&nbsp;&nbsp;OUTLINED darkred \
&nbsp;&nbsp;&nbsp;&nbsp;WEIGHT 1p \
&nbsp;&nbsp;&nbsp;&nbsp;INSET 9p
&nbsp;&nbsp;..
</span>
<kbd>.PINK_BOX</kbd> may then be used instead of <kbd>.BOX</kbd> any
time you want a box with those arguments.
</p>

<h3 class="docs">SHADED | OUTLINED</h3>

<p>
<kbd>SHADED</kbd> or <kbd>OUTLINED</kbd> are required.  Both may
be given, resulting in a shaded background with a frame, and both
require a colour, e.g.
<span class="pre-in-pp">
&nbsp;&nbsp;.BOX SHADED blue OUTLINED black
</span>
The colour may be
</p>

<ul style="margin-top: -1em;">
  <li>an xcolor name</li>
  <li>a colour initialized with
      <a href="color.html#newcolor">NEWCOLOR</a>
      or
      <a href="color.html#xcolor">XCOLOR</a>
  </li>
  <li>an RGB hexadecimal string beginning with (e.g. #FF0000)</li>
</ul>

<p>
Note that without <kbd>SHADED</kbd>, the above would simply draw a
black frame.
</p>

<h3 class="docs">WEIGHT</h3>

<p>
Mom&#8217;s default weight for <kbd>OUTLINED</kbd> is 1/2
<a href="definitions.html#picaspoints">point</a>.
If you&#8217;d like to change it, give <kbd>WEIGHT</kbd> the desired
value with a unit of measure appended, typically points, e.g.
<span class="pre-in-pp">
&nbsp;&nbsp;.BOX OUTLINED black WEIGHT 1p
</span>
</p>

<h3 class="docs">INSET</h3>

<p>
Mom&#8217;s default inset for boxes is one
<a href="definitions.html#picaspoints">pica</a>
on all sides.  If you&#8217;d like a larger or smaller inset, give
<kbd>INSET</kbd> the distance you want with a unit of measure
appended, e.g.
<span class="pre-in-pp">
&nbsp;&nbsp;.BOX SHADED pink INSET 2m
</span>
</p>

<h3 class="docs">ADJUST</h3>

<p>
If you are not happy with the starting position of a box, you can
change it by giving <kbd>ADJUST</kbd> the distance you want it
raised (-) or lowered (+) with a unit of measure appended.  For
example, to lower a box three points,
<span class="pre-in-pp">
&nbsp;&nbsp;.BOX OUTLINED black ADJUST +3p
</span>
To raise it,
<span class="pre-in-pp">
&nbsp;&nbsp;.BOX OUTLINED black ADJUST -3p
</span>
</p>

<h3 class="docs">PIC / GRAP / EQN / IMG</h3>

<p>
The <kbd>PIC</kbd> argument must be given to BOX if the box contains
any
<a href="#pic">pic</a>
diagrams.  Likewise, graphs made with
<a href="#grap">grap</a>,
equations made with
<a href="#eqn">eqn</a>,
and
<a href="#pdf-image">pdf images</a>
require a corresponding <kbd>GRAP</kbd>, <kbd>EQN</kbd>, or
<kbd>IMG</kbd> argument.
</p>

<p>
If you&#8217;re boxing a single diagram, graph, or pdf image, wrap
it in a float, like this:
<span class="pre-in-pp">
&nbsp;&nbsp;.FLOAT
&nbsp;&nbsp;.BOX PIC &lt;other parameters&gt;
&nbsp;&nbsp;.PS
&nbsp;&nbsp;&lt;pic input&gt;
&nbsp;&nbsp;.PE
&nbsp;&nbsp;.BOX OFF
&nbsp;&nbsp;.FLOAT OFF
</span>
Notice that in the case of pdf images, pic, and grap, this
represents a change from the norm, where the use of FLOAT may be
destructive and is discouraged.
</p>

<h2 id="box-notes" class="docs">Additional notes on BOX usage and behaviour</h2>

<h3 id="qbef" class="docs">QUOTE, BLOCKQUOTE, EPIGRAPH, FLOAT</h3>

<p>
<a href="docelement.html#quote">QUOTE</a>,
<a href="docelement.html#blockquote">BLOCKQUOTE</a>,
<a href="docelement.html#epigraph">EPIGRAPH</a>,
and
<a href="images.html#float">FLOAT</a>
require that boxes be started <i>after</i> they are
invoked and stopped just before they are toggled off:
<span class="pre-in-pp">
&nbsp;&nbsp;.QUOTE
&nbsp;&nbsp;.BOX &lt;parameters&gt;
&nbsp;&nbsp;Text of quote
&nbsp;&nbsp;.BOX OFF
&nbsp;&nbsp;.QUOTE OFF
</span>
</p>

<h3 id="code" class="docs">CODE</h3>

<p>
If you&#8217;re boxing 
<a href="docelement.html#code">CODE</a>
that&#8217;s wrapped inside
<a href="docelement.html#quote">QUOTE</a>,
as described
<a href="docelement.html#quote-code">here</a>,
set the quote indent to &#8220;0&#8221; with
<span class="pre-in-pp">
&nbsp;&nbsp;.QUOTE_STYLE INDENT 0
</span>
so that the box&#8217;s leftmost inset is respected.  
</p>

<p>
Here&#8217;s a recipe for setting boxed code with an 18-point inset:
<span class="pre-in-pp">
&nbsp;&nbsp;.QUOTE_STYLE INDENT 0
&nbsp;&nbsp;.QUOTE
&nbsp;&nbsp;.CODE
&nbsp;&nbsp;.BOX INSET 18p
&nbsp;&nbsp;Hello, world.
&nbsp;&nbsp;.BOX OFF
&nbsp;&nbsp;.QUOTE OFF
</span>
Note that CODE, wrapped inside QUOTE, does not require a corresponding CODE OFF.
</p>

<h4 id="quotes" class="docs">Description of boxed BLOCKQUOTES and EPIGRAPH BLOCKS</h4>

<p>
When you box a BLOCKQUOTE, or an EPIGRAPH with the <kbd>BLOCK</kbd>
argument, the box is centred on the page and is only as wide as the
blockquote or epigraph plus the box&#8217;s inset.
</p>

<p>
QUOTE and EPIGRAPH (without the <kbd>BLOCK</kbd> argument), on the
other hand, set the box fully to the left and right margins.
</p>

<h4 id="leftover" class="docs">Leftover box syndrome</h4>

<p>
Boxed quotes and blockquotes sometimes exhibit leftover box
syndrome, where the page after a fully terminated boxed quote or
blockquote begins with an empty bit of box.  Equally, you may
sometimes see the lower edge of a quote&#8217;s or
blockquote&#8217;s box falling slightly below the page&#8217;s
bottom margin.
</p>

<p>
The solution in both situations is to use the <kbd>ADJUST</kbd>
argument to raise or lower the box&#8217;s starting position.
Leftover box syndrome is usually fixed by raising the box slightly.
When the box runs too deep, lowering it is generally recommended,
although this will result in a widowed line at the top of the next
page.  In either case, some experimentation is necessary.
</p>

<h3 id="slides" class="docs">SLIDES</h3>

<p>
On a slide with no pauses, boxes behave as they do in printed
documents.
</p>

<p>
When a slide contains pauses, only the material up to the first
pause is boxed.  As subsequent material is revealed, the box changes
location, moving down to surround each new item.  This behaviour
persists until the box is stopped, making it useful for highlighting
material as it is revealed.
</p>

<h3 id="footnotes" class="docs">Footnotes</h3>

<p>
You don&#8217;t have to worry about boxes encroaching on footnotes.
Mom makes sure they don&#8217;t.
</p>

<h2 id="page-color-intro" class="docs">Page colour</h2>

<p>
Mom lets you change the page (&#8220;paper&#8221;) colour
from white to anything you like.  While this has limited application
in printed documents, it can be effective in
<a href="docprocessing.html#slides">slide presentations</a>.
</p>

<div class="macro-id-overline">
<h3 id="page-color" class= "macro-id">PAGE_COLOR</h3>
</div>

<div id="page-color-macro" class="box-macro-args" style="margin-top: .5em">
Macro: <b>PAGE_COLOR</b> <kbd class="macro-args"> &lt;color&gt; | OFF | off</kbd>
</div>
<p class="requires" style="font-style: normal">
<i>Aliased as</i> <kbd>PAGE_COLOUR</kbd>, <kbd>SLIDE_COLOR</kbd>,
<i>and</i> <kbd>SLIDE_COLOUR</kbd>.
</p>

<p>
When you invoke PAGE_COLOR with a <kbd>color</kbd> argument, the
current and subsequent pages turn the colour you request.  If
more than one instance of PAGE_COLOR appears before a page break,
including <kbd>PAGE_COLOR OFF</kbd>, only the last applies.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
Unlike other
<a href="definitions.html#toggle">toggle macros</a>,
PAGE_COLOR requires the use of <kbd>OFF</kbd> or <kbd>off</kbd>
to terminate it rather than an arbitrary string (<kbd>OFF</kbd>,
<kbd>QUIT</kbd>, <kbd>END</kbd>, <kbd>X</kbd>, etc).
</p>
</div>

<div class="rule-long"><hr/></div>

<!-- Navigation links -->
<table style="width: 100%; margin-top: 12px;">
<tr>
  <td style="width: 33%;"><a href="toc.html">Back to Table of Contents</a></td>
  <td style="width: 20%; text-align: center;"><a href="#top">Top</a></td>
  <td style="width: 46%; text-align: right;"><a href="headfootpage.html">Next: Page headers/footers, pagination</a></td>
</tr>
</table>

</div>

<div class="bottom-spacer"><br/></div>

</body>
</html>