summaryrefslogtreecommitdiff
path: root/man/groff.man
blob: 2b79604a5a94a538f365eb5b035acc6c0edc106f (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
.\" st                        -*- nroff -*-
.ig
groff.7

This file is part of groff, the GNU roff type-setting system.

Copyright (C) 2000, 2001 Free Software Foundation, Inc.
written by Bernd Warken <bwarken@mayn.de>

Last update: 17 May 2000

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with the
Invariant Sections being this .ig-section and AUTHOR, 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.
..
.
.\" --------------------------------------------------------------------
.\" Setup
.\" --------------------------------------------------------------------
.
.if n \{\
.  mso tty-char.tmac
.  ftr CR R
.  ftr CI I
.  ftr CB B
.\}
.
.if '\*[.T]'dvi' \{\
.  ftr CB CW
.\}
.
.\" a comment macro which does nothing
.de c
..
.
.\" a tab string
.ds t "\t
.
.eo
.
.c text lines in macro definitions or bracketed sections \{...\}
.de text
.  if 1 \&\$*\&
..
.
.de option
.  ds @tmp@ \f(CB\$1\fP
.  shift 1
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.als shellcommand option
.
.c --------- characters ---------
.
.de character
.  ds @tmp@ \f(CB\$1\fP
.  shift
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de 'char
.  ds @tmp@ \(oq\f(CB\$1\fP\(cq
.  shift
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de ''char
.  ds @tmp@ \(lq\f(CB\$1\fP\(rq
.  shift
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.c --------- requests ---------
.
.c request synopsis
.de REQ
.  ds @tmp@ \&\$1
.  shift 1
.  IP "\f(CB\&\*[@tmp@] \fP\f(CI\&\$*\fP" 10n
.  rm @tmp@
..
.
.de request
.  ds @tmp@ \f(CB\$1\fP
.  shift 1
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.c --------- macro or function arguments ---------
.
.de argument
.  ds @tmp@ \f(CI\$1\fP
.  shift 1
.  while (\n[.$] >= 2) \{\
.    as @tmp@ \/\f(CR\$1\fP\f(CI\,\$2\fP
.    shift 2
.  \}
.  if \n[.$] .as @tmp@ \/\f(CR\$1\fP
.  text \*[@tmp@]
.  rm @tmp@
..
.
.c argument followed by a numerical expression
.de argterm
.  ds @tmp@ \f(CI\$1\fP\|\f(CR\$2\fP
.  shift 2
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.c --------- numerical elements ---------
.
.de number
.  ds @tmp@ \f(CR\$1\fP
.  shift 1
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de prefixednumber
.  ds @tmp@ \&\$1\ \f(CR\$2\fP
.  shift 2
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.als scaleindicator request
.
.de scalednumber
.  ds @tmp@ \f(CR\$1\fP\f(CB\$2\fP
.  shift 2
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de operator
.  ds @tmp@ \(oq\f(CB\$1\fP\(cq
.  shift
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.c --------- escape sequences ---------
.
.de esc[arg]
.  ds @tmp@ \f(CB\(rs\$1[\fP\f(CI\$2\fP\f(CB]\fP
.  shift 2
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de esc(arg
.  ds @tmp@ \f(CB\(rs\$1(\fP\f(CI\$2\fP
.  shift 2
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de escarg
.  ds @tmp@ \f(CB\(rs\$1\fP\f(CI\$2\fP
.  shift 2
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de esc[]
.  ds @tmp@ \f(CB\(rs[\fP\f(CI\$1\fP\f(CB]\fP
.  shift
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de esc(
.  ds @tmp@ \f(CB\(rs(\fP\f(CI\$1\fP
.  shift
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de esc
.  ds @tmp@ \f(CB\(rs\$1\fP
.  shift
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de (esc
.  ds @tmp@ \f(CB\(rs(\$1\fP
.  shift
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.de [esc]
.  ds @tmp@ \f(CB\(rs[\$1]\fP
.  shift
.  text \*[@tmp@]\$*
.  rm @tmp@
..
.
.c escape sequence synopsis
.de ESC
.  ds @tmp@ \&\$1
.  shift 1
.  IP "\f(CB\(rs\&\*[@tmp@]\fP\f(CI\&\$*\fP"
.  rm @tmp@
..
.
.c synopsis for escape sequences with a long name
.de ESC[]
.  ds @arg1@ \&\$1
.  ds @arg2@ \&\$2
.  shift 2
.  IP "\f(CB\(rs\&\*[@arg1@][\fP\f(CI\&\*[@arg2@]\fP\f(CB]\&\$*\fP"
.  rm @arg1@
.  rm @arg2@
..
.
.c synopsis escape sequence with quoted argument
.  de ESCq
.  ds @tmp@ \&\$1
.  shift 1
.  IP "\f(CB\(rs\&\*[@tmp@]\(cq\fP\f(CI\h'-0.2m'\$*\/\fP\f(CB\(cq\fP"
.  rm @tmp@
..
.
.c synopsis for 2-escapes (special characters)
.de ESc
.  ds @tmp@ \$1
.  TP 14n
.  text \f(CB\(rs(\&\*[@tmp@]\ \ \ \fP\fR\(\*[@tmp@]\fP
.  shift 1
.  text \$*.
.  rm @tmp@
..
.
.c --------- registers ---------
.
.c synopsis for registers
.de REG
.  TP 10n
.  text \&\f(CR\(rsn[\fP\f(CB\$1\fP\f(CR]\fP
.  shift 1
.if \n[.$] \&\$*
..
.
.als register request
.
.c --------- warnings ---------
.
.als warning request
.
.c description of warnings
.de Warning
.  ne (2v + 1)
.  TP 12n
.  text \f(CB\$1\fP
.  text \f(CI\$2\fP
.  br
..
.
.ec
.
.\" --------------------------------------------------------------------
.\" Title
.\" --------------------------------------------------------------------
.
.TH GROFF @MAN7EXT@ "@MDATE@" "Groff Version @VERSION@"
.SH NAME
groff \- a short reference for the GNU roff language
.
.\" --------------------------------------------------------------------
.SH DESCRIPTION
.\" --------------------------------------------------------------------
.I groff
stands for
.I GNU roff
and is the free implementation of the roff type-setting system.
See
.BR roff (@MAN7EXT@)
for a survey and the background of the groff system.
.LP
This document gives only short descriptions of the predefined roff
language elements as used in groff.
Both the classical features and the groff extensions are provided.
.LP
Historically, the
.I roff language
was called
.IR troff .
.I groff
is compatible with the classical system and provides proper extensions.
So in GNU, the terms
.IR roff ,
.IR troff ,
and
.I groff language
could be used as synonyms.
However
.I troff
slightly tends to refer more to the classical aspects, whereas
.I groff
emphasizes the GNU extensions, and
.I roff
is the general term for the language.
.LP
This file is only a short version of the complete documentation that is
found in the
.I groff
.BR info (1)
file, which contains more detailed, actual, and concise information.
.LP
The general syntax for writing groff documents is relatively easy, but
writing extensions to the roff language can be a bit harder.
.LP
The roff language is line-oriented.
There are only two kinds of lines, control lines and text lines.
The control lines start with a control character, by default a period
.''char .
or a single quote
.''char ' ;
all other lines are text lines.
.LP
.B Control lines
represent commands, optionally with arguments.
They have the following syntax.
The leading control character can be followed by a command name;
arguments, if any, are separated by blanks from the command name and
among themselves, for example,
.RS
.LP
\&\.command_name arg1 arg2
.RE
.LP
For indentation, any number of space or tab characters can be inserted
between the leading control character and the command name, but the control
character must be on the first position of the line.
.LP
.B Text lines
represent the parts that will be printed.
They can be modified by escape sequences, which are recognized by a
leading backslash
.'char \(rs .
These are in-line or even in-word formatting elements or functions.
Some of these take arguments separated by single quotes
.''char ' ,
others are regulated by a length encoding introduced by an open
parenthesis
.'char (
or enclosed in brackets
.'char [
and
.'char ] .
.LP
The roff language provides flexible instruments for writing language
extension, such as macros.
When interpreting macro definitions, the roff system enters a special
operating mode, called the
.BR "copy mode" .
.LP
The copy mode behavior can be quite tricky, but there are some rules
that ensure a safe usage.
.IP 1.
Printable backslashes must be denoted as
.esc e .
To be more precise,
.esc e
represents the current escape character.
To get a backslash glyph, use
.esc (rs .
.IP 2.
Double all backslashes.
.IP 3.
Begin all text lines with the special non-spacing character
.esc & .
.LP
This does not produce the most efficient code, but it should work as a
first measure.
For better strategies, see the groff info file and
.BR groff_tmac (@MAN5EXT@).
.LP
Reading roff source files is easier, just reduce all double backslashes
to a single one in all macro definitions.
.
.\" --------------------------------------------------------------------
.SH "GROFF ELEMENTS"
.\" --------------------------------------------------------------------
The roff language elements add formatting information to a text file.
The fundamental elements are predefined commands and variables that make
roff a full-blown programming language.
.LP
There are two kinds of roff commands, possibly with arguments.
.B Requests
are written on a line of their own starting with a dot
.'char .
or a
.''char ' ,
whereas
.B Escape sequences
are in-line functions and in-word formatting elements starting with a
backslash
.'char \(rs .
.LP
The user can define her own formatting commands using the
.request .de
request.  These commands are called
.BR macros ,
but they are used exactly like requests.  Macro packages are pre-defined 
sets of macros written in the groff language.
A user's possibilities to create escape sequences herself is very
limited, only special characters can be mapped.
.LP
The groff language provides several kinds of variables with
different interfaces.
There are pre-defined variables, but the user can define her own
variables as well.
.LP
.B String
variables store character sequences.
They are set with the
.request .ds
request and retrieved by the
.esc *
escape sequences.
.LP
.B Register
variables can store numerical values, numbers with a scale unit, and
occasionally string-like objects.
They are set with the
.request .nr
request and retrieved by the
.esc n
escape sequences.
.LP
.B Environments
allow the user to temporarily store global formatting parameters like
line length, font size, etc. for later reuse.
This is done by the
.request .ev
request.
.LP
.B Fonts
are identified either by a name or by an internal number.
The current font is chosen by the
.request .ft
request or by the
.esc f
escape sequences.
Each device has special fonts, but the following fonts are available for 
all devices.
.B R
is the standard font Roman.
.B B
is its
.B bold
counterpart.
The
.I italic
font is called
.B I
is everywhere available, but on text devices, it is displayed as an
underlined Roman font.
For the graphical output devices, there exist constant-width pendants of
these font,
.BR CR ,
.BR CI ,
and
.BR CB .
On text devices, all characters have a constant width anyway.
.LP
Moreover, there are some advanced roff elements.
A
.B diversion
stores information into a macro for later usage.
A
.B trap
is a positional condition like a certain number of lines from page top
or in a diversion or in the input.
Some action can be prescribed to be run automatically when the condition
is met.
.LP
More detailed information can be found in the groff info file.
.
.\" --------------------------------------------------------------------
.SH "CONTROL CHARACTERS"
.\" --------------------------------------------------------------------
There is a small set of characters that have a special controlling task
in certain conditions.
.TP
.character .
A dot is only special at the beginning of a line or after the
condition in the requests
.request .if ,
.request .ie ,
.request .el ,
and
.request .while .
There it is the control character that introduces a request (or macro).
The special behavior can be delayed by using the
.esc .
escape.
By using the 
.request .cc
request, the control character can be set to a different character,
making the dot
.'char .
a non-special character.
.IP ""
In all other positions, it just means a dot character.
In text paragraphs, it is advantageous to start each sentence at a line
of its own.
.TP
.character '
The single quote has two controlling tasks.  At the beginning of a line
and in the conditional requests it is the non-breaking control
character.
That means that it introduces a request like the dot, but with the
additional property that this request doesn't cause a linebreak.
By using the 
.request .c2
request, the non-break control character can be set to a different
character.
.IP ""
As a second task, it is the most commonly used argument separator in
some functional escape sequences (but any pair of characters not part
of the argument will work).
In all other positions, it denotes the single quote or apostrophe
character.
Groff provides a printable representation with the
.esc (cq
escape sequence.
.TP
.character \(dq
The double quote is used to enclose arguments in requests and macros.  In
the
.request .ds
and
.request .as
requests, a leading double quote in the argument will be stripped off,
making everything else afterwards the string to be defined (enabling leading
whitespace).
The escaped double quote
.esc \(dq
introduces a comment.
Otherwise, it is not special.
Groff provides a printable representation with the
.esc (dq
escape sequence.
.TP
.character \(rs
The backslash usually introduces an escape sequence (this can be
changed with the
.request ec
request).
A printed version of the escape character is the
.esc e
escape; a backslash glyph can be obtained by
.esc (rs .
.TP
.character (
The open parenthesis is only special in escape sequences when
introducing an escape name or argument consisting of exactly two
characters.
In groff, this behavior can be replaced by the \f(CB[]\fP construct.
.TP
.character [
The opening bracket is only special in groff escape sequences; there it
is used to introduce a long escape name or long escape argument.
Otherwise, it is non-special, e.g. in macro calls.
.TP
.character ]
The closing bracket is only special in groff escape sequences; there it
terminates a long escape name or long escape argument.
Otherwise, it is non-special.
.TP
\f(CIspace\fP
Space characters are only functional characters.  They separate the
arguments in requests or macros, and the words in text lines.
They are subject to groff's horizontal spacing calculations.
To get a defined space width, escape sequences like
.'char "\(rs\ "
(this is the escape character followed by a space),
.esc | ,
.esc ^ ,
or
.esc h
should be used.
.IP \f(CInewline\fP
In text paragraphs, newlines mostly behave like space characters.
Continuation lines can be specified by an escaped newline, i.e., by
specifying a backslash
.'char \(rs
as the last character of a line.
.IP \f(CItab\fP
If a tab character occurs during text the interpreter makes a horizontal 
jump to the next pre-defined tab position.
There is a sophisticated interface for handling tab positions.
.
.\" --------------------------------------------------------------------
.SH "NUMERICAL EXPRESSIONS"
.\" --------------------------------------------------------------------
A
.B numerical value
is a signed or unsigned integer or float with or without an appended
scale indicator.
A
.B scale indicator
is a one-character abbreviation for a unit of measurement.
A number followed by a scale indicator signifies a size value.
By default, numerical values do not have a scale indicator, i.e., they are
normal numbers.
.LP
The roff language defines the following scale indicators.
.LP
.na
.nh
.TS
center, tab(@);
LfCB Lw(4i).
c@Centimeter
i@Inch
P@Pica\ \(eq\ 1/6\ inch
p@Point\ \(eq\ 1/72\ inch
m@T{
Em\ \(eq\ \fRthe font size in points (width of letter `\f(CRm\fR')
T}
M@100th \fRof an \f(CREm
n@En\ \(eq\ Em/2
u@\fRBasic unit for actual output device
v@\fRVertical line space in basic units
z@T{
scaled point\ \(eq\ 1/\f(CIsizescale\fR of a point (defined in
font \fIDESC\fP file)
T}
.TE
.LP
.ad
.hy
.B Numerical expressions
are combinations of the numerical values defined above with
the arithmetical operators
.operator + ,
.operator \- ,
.operator * ,
.operator / ,
.operator %
.RI ( modulo ),
the comparative operators
.operator ==
(this is the same as
.operator = ),
.operator <= ,
.operator >= ,
.operator < ,
.operator > ,
the logical operators
.operator &
.RI ( and ),
.operator :
.RI ( or ),
.operator !
.RI ( not ),
and the parentheses
.operator (
and
.operator ) .
.LP
Moreover,
.I groff
added the following operators for numerical expressions:
.LP
.na
.nh
.TS
center, tab(@);
LfCB Lw(4i).
e1\f(CB>?\fPe2@The maximum of \f(CIe1\fP and \f(CIe2\fP.
e1\f(CB<?\fPe2@The minimum of \f(CIe1\fP and \f(CIe2\fP.
\f(CB(\fPc\f(CB;\fPe\f(CB)@T{
Evaluate \f(CIe\fP using \f(CIc\fP as the default scaling
indicator.
T}
.TE
.LP
.ad
.hy
For details see the groff info file.
.
.\" --------------------------------------------------------------------
.SH CONDITIONS
.\" --------------------------------------------------------------------
.B Conditions
occur in tests raised by the
.request .if ,
.request .ie ,
and the
.request .while
requests.
The following table characterizes the different types of conditions.
.LP
.na
.nh
.TS
center, tab(@);
LfCB Lw(4i).
\f(CIN\fP@T{
A numerical expression \f(CIN\fP yields true if its value
is\ \f(CR>0\fP.
T}
!\f(CIN\fP@T{
True if the value of \f(CIN\fP is\ \f(CR\(<=0\fP.
T}
\&'\f(CIs1\fP'\f(CIs2\fP'@T{
True if string\ \f(CIs1\fP is identical to string\ \f(CIs2\fP.
T}
!'\f(CIs1\fP'\f(CIs2\fP'@T{
True if string\ \f(CIs1\fP is not identical to string\ \f(CIs2\fP.
T}
c\f(CIch@T{
True if there is a character\ \f(CIch\fP available.
T}
d\f(CIname@T{
True if there is a string, macro, diversion, or request
called \f(CIname\fP.
T}
e@Current page number is even.
o@Current page number is odd.
n@Formatter is \fBnroff\fP.
r\f(CIreg@T{
True if there is a register named \f(CIreg\fP.
T}
t@Formatter is \fBtroff\fR.
.TE
.LP
.ad
.hy
.
.\" --------------------------------------------------------------------
.SH REQUESTS
.\" --------------------------------------------------------------------
This section provides a short reference for the predefined requests.
In groff, request and macro names can be arbitrarily long.
No bracketing or marking of long names is needed.
.LP
Most requests take one or more arguments.
The arguments are separated by space characters (no tabs!); there is no
inherent limit for their length or number.
An argument can be enclosed by a pair of double quotes: This is very handy
if an argument contains space characters, e.g.,
.argument "\(dqarg\ with\ space\(dq"
denotes a single argument.
.LP
Some requests have optional arguments with a different behaviour.
Not all of these details are outlined here.
Refer to the groff info file for all details.
.LP
In the following request specifications, most argument names were chosen
to be descriptive.
Only the following denotations need clarification.
.LP
.na
.nh
.TS
center, tab(@);
LfCI Lw(4i).
c@denotes a single character.
font@T{
a font either specified as a font name or a font number.
T}
anything@T{
all characters up to the end of the line or within \f(CB\(rs{\fP
and \f(CB\(rs}\fP.
T}
n@T{
is a numerical expression that evaluates to an integer value.
T}
N@T{
is an arbitrary numerical expression, signed or unsigned.
T}
\(+-N@T{
has three meanings depending on its sign, described below.
T}
.TE
.LP
.ad
.hy
If an expression defined as
.argument \(+-N
starts with a
.operator +
sign the resulting value of the expression will be added to an already
existing value inherent to the related request, e.g. adding to a number
register.
If the expression starts with a
.operator -
the value of the expression will be subtracted from the request value.
.LP
Without a sign,
.argument N
replaces the existing value directly.
To assign a negative number either prepend\ \c
.number 0
or enclose the negative number in parentheses.
.
.\" --------------------------------------------------------------------
.SS "REQUEST SHORT REFERENCE"
.\" --------------------------------------------------------------------
.PD 0
.
.REQ .
Empty line, ignored.  Useful for structuring documents.
.
.REQ .\(rs\(dq anything
Complete line is a comment.
.
.REQ .ab string
Print
.argument string
on standard error, exit program.
.
.REQ .ad
Begin line adjustment for output lines in current adjust mode.
.
.REQ .ad c
Start line adjustment in mode
.argument c
(\f(CIc\fP\f(CR\|\^\(eq\|l,r,b,n\fP).
.
.REQ .af register c
Assign format
.argument c
to
.argument register
(\f(CIc\fP\f(CR\|\^\(eq\|l,i,I,a,A\fP).
.
.REQ .aln alias register
Create alias name for
.argument register .
.
.REQ .als alias object
Create alias name for request, string, macro, or diversion
.argument object .
.
.REQ .am macro
Append to
.argument macro
until
.request ..
is called.
.
.REQ .am macro end
Append to
.argument macro
until
.request .end
is called.
.
.REQ .am1 macro
Same as
.request .am
but with compatibility mode switched off during macro expansion.
.
.REQ .am1 macro end
Same as
.request .am
but with compatibility mode switched off during macro expansion.
.
.REQ .as stringvar anything
Append
.argument anything
to
.argument stringvar .
.
.REQ .asciify diversion
Unformat ASCII characters, spaces, and some escape sequences in
.argument diversion .
.
.REQ .backtrace
Print a backtrace of the input on stderr.
.
.REQ .bd font N
Embolden
.argument font
by
.argterm N -1
units.
.
.REQ .bd S font N
Embolden Special Font
.argument S
when current font is
.argument font .
.
.REQ .blm
Unset the blank line macro.
.
.REQ .blm macro
Set the blank line macro to
.argument macro .
.
.REQ .box
End current diversion.
.
.REQ .box macro
Divert to
.argument macro ,
omitting a partially filled line.
.
.REQ .boxa
End current diversion.
.
.REQ .boxa macro
Divert and append to
.argument macro ,
omitting a partially filled line.
.
.REQ .bp
Eject current page and begin new page.
.
.REQ .bp \(+-N
Eject current page; next page number
.argument \(+-N .
.
.REQ .br
Line break.
.
.REQ .brp
Break and spread output line.
Same as
.esc p .
.
.REQ .break
Break out of a while loop.
.
.REQ .c2
Reset no-break control character to
.''char ' .
.
.REQ .c2 c
Set no-break control character to
.argument c .
.
.REQ .cc
Reset control character to
.'char . .
.
.REQ .cc c
Set control character to
.argument c .
.
.REQ .ce
Center the next input line.
.
.REQ .ce N
Center following
.argument N
input lines.
.
.REQ .cf filename
Copy contents of file
.argument filename
unprocessed to stdout or to the diversion.
.
.REQ .cflags mode c1 c2 ...
Treat characters
.argument c1 ,
.argument c2 ,
.argument ...
according to
.argument mode
number.
.
.REQ .ch trap N
Change
.argument trap
location
to
.argument N .
.
.REQ .char c anything
Define character
.argument c
to string
.argument anything .
.
.REQ .chop object
Chop the last character off macro, string, or diversion
.argument object .
.
.REQ .close stream
Close the
.argument stream .
.
.REQ .continue
Finish the current iteration of a while loop.
.
.REQ .cp
Enable compatibility mode.
.
.REQ .cp N
If
.I N
is zero disable compatibility mode, otherwise enable it.
.
.REQ .cs font N M
Set constant character width mode for
.argument font
to
.argterm N /36
ems with em
.argument M .
.
.REQ .cu N
Continuous underline in nroff, like
.request .ul
in troff.
.
.REQ .da
End current diversion.
.
.REQ .da macro
Divert and append to
.argument macro .
.
.REQ .de macro
Define or redefine
.argument macro
until
.request ..
is called.
.
.REQ .de macro end
Define or redefine
.argument macro
until
.request .end
is called.
.
.REQ .de1 macro
Same as
.request .de
but with compatibility mode switched off during macro expansion.
.
.REQ .de1 macro end
Same as
.request .de
but with compatibility mode switched off during macro expansion.
.
.REQ .dei macro
Define or redefine a macro whose name is contained in the string register
.argument macro
until
.request ..
is called.
.
.REQ .dei macro end
Define or redefine a macro indirectly.
.argument macro
and
.argument end
are string registers whose contents are interpolated for the macro name
and the end macro, respectively.
.
.REQ .di
End current diversion.
.
.REQ .di macro
Divert to
.argument macro .
.
.REQ .do name
Interpret
.request .name
with compatibility mode disabled.
.
.REQ .ds stringvar anything
Set
.argument stringvar
to
.argument anything .
.
.REQ .dt N trap
Set diversion trap to position
.argument N
(default scale indicator\ \c
.scaleindicator v ).
.
.REQ .ec
Reset escape character to
.'char \(rs .
.
.REQ .ec c
Set escape character to
.argument c .
.
.REQ .ecr
Restore escape character saved with
.request .ecs .
.
.REQ .ecs
Save current escape character.
.
.REQ .el anything
Else part for if-else (\c
.argument .ie )
request.
.
.REQ .em macro
The
.argument macro
will be run after the end of input.
.
.REQ .eo
Turn off escape character mechanism.
.
.REQ .ev
Switch to previous environment.
.
.REQ .ev env
Push down environment number or name
.argument env
and switch to it.
.
.REQ .evc env
Copy the contents of environment
.argument env
to the current environment.
No pushing or popping.
.
.REQ .ex
Exit from roff processing.
.
.REQ .fam
Return to previous font family.
.
.REQ .fam name
Set the current font family to
.argument name .
.
.REQ .fc
Disable field mechanism.
.
.REQ .fc a
Set field delimiter to
.argument a
and pad character to space.
.REQ .fc a b
Set field delimiter to
.argument a
and pad character to
.argument b .
.
.REQ .fi
Fill output lines.
.
.REQ .fl
Flush output buffer.
.
.REQ .fp n font
Mount
.argument font
on position
.argument n .
.
.REQ .fp n internal external
Mount font with long
.argument external
name to short
.argument internal
name on position
.argument n .
.
.REQ .fspecial font s1 s2...
When the current font is
.argument font ,
then the fonts
.argument s1 ,
.argument s2 ,
.argument ...
will be special.
.
.REQ .ft
Return to previous font.
Same as
.request \(rsfP .
.REQ .ft font
Change to font name or number
.argument font ;
same as
.esc[arg] f font
escape sequence.
.
.REQ .ftr font1 font2
Translate
.argument font1
to
.argument font2 .
.
.REQ .hc
Remove additional hyphenation indicator character.
.
.REQ .hc c
Set up additional hyphenation indicator character\ \c
.argument c .
.
.REQ .hcode c1 code1 c2 code2 ...
Set the hyphenation code of character
.argument c1
to
.argument code1 ,
that of
.argument c2
to
.argument code2 ,
etc.
.
.REQ .hla lang
Set the current hyphenation language to
.argument lang .
.
.REQ .hlm n
Set the maximum number of consecutive hyphenated lines to
.argument n .
.
.REQ .hpf file
Read hyphenation patterns from
.argument file .
.
.REQ .hw words
List of
.argument words
with exceptional hyphenation.
.
.REQ .hy N
Switch to hyphenation mode
.argument N .
.
.REQ .hym n
Set the hyphenation margin to
.argument n
(default scale indicator\ \c
.scaleindicator m ).
.
.REQ .hys n
Set the hyphenation space to
.argument n .
.
.REQ .ie cond anything
If
.argument cond
then
.argument anything
else goto
.request .el .
.
.REQ .if cond anything
If
.argument cond
then
.argument anything ;
otherwise do nothing.
.
.REQ .ig
Ignore text until
.request ..
is called.
.
.REQ .ig end
Ignore text until
.request .end .
.
.REQ .in
Change to previous indent value.
.
.REQ .in \(+-N
Change indent according to
.argument \(+-N
(default scale indicator\ \c
.scaleindicator m ).
.
.REQ .it N trap
Set an input-line count trap at position
.argument N .
.
.REQ .kern
Enable pairwise kerning.
.
.REQ .kern n
If
.argument n
is zero, disable pairwise kerning, otherwise enable it.
.
.REQ .lc
Remove leader repetition character.
.
.REQ .lc c
Set leader repetition character to\ \c
.argument c .
.
.REQ .length register anything
Write the length of the string
.argument anything
in
.argument register .
.
.REQ .linetabs
Enable line-tabs mode (i.e., calculate tab positions relative to output
line).
.
.REQ .linetabs n
If
.argument n
is zero, disable line-tabs mode, otherwise enable it.
.
.REQ .lf N file
Set input line number to
.argument N
and filename to
.argument file .
.
.REQ .lg N
Ligature mode on if
.argterm N >0 .
.
.REQ .ll
Change to previous line length.
.
.REQ .ll \(+-N
Set line length according to
.argument \(+-N
(default size
.scalednumber 6.5 i ,
default scale indicator\ \c
.scaleindicator m ).
.
.REQ .ls
Change to the previous value of additional intra-line skip.
.
.REQ .ls N
Set additional intra-line skip value to
.argument N ,
i.e.,
.argterm N -1
blank lines are inserted after each text output line.
.
.REQ .lt \(+-N
Length of title (default scale indicator\ \c
.scaleindicator m ).
.
.REQ .mc
Margin character off.
.
.REQ .mc c
Print character
.argument c
after each text line at actual distance from right margin.
.
.REQ .mc c N
Set margin character to
.argument c
and distance to
.argument N
from right margin (default scale indicator\ \c
.scaleindicator m ).
.
.REQ .mk register
Mark current vertical position in
.argument register .
.
.REQ .mso file
The same as the .so request except that
.I file
is searched in the tmac directories.
.
.REQ .na
No output-line adjusting.
.
.REQ .ne
Need a one-line vertical space.
.
.REQ .ne N
Need
.argument N
vertical space (default scale indicator\ \c
.scaleindicator v ).
.
.REQ .nf
No filling or adjusting of output-lines.
.
.REQ .nh
No hyphenation.
.
.REQ .nm
Number mode off.
.
.REQ .nm \(+-N M S I
In line number mode, set number, multiple, spacing, and indent.
.
.REQ .nn
Do not number next line.
.
.REQ .nn N
Do not number next
.argument N
lines.
.
.REQ .nop anything
Always execute
.argument anything .
.
.REQ .nr register \(+-N M
Define or modify
.argument register
using
.argument \(+-N
with auto-increment
.argument M .
.
.REQ .nroff
Make the built-in condition
.B n
true and
.B t
false.
.
.REQ .ns
Turn no-space mode on.
.
.REQ .nx filename
Next file.
.
.REQ .open stream filename
Open
.register filename
for writing and associate the stream named
.register stream
with it.
.
.REQ .opena stream filename
Like
.request .open
but append to it.
.
.REQ .os
Output vertical distance that was saved by the
.request .sv
request.
.
.REQ .pc
Reset page number character to\ \c
.'char % .
.
.REQ .pc c
Page number character.
.
.REQ .pi program
Pipe output to
.argument program
(nroff only).
.
.REQ .pl
Set page length to default
.scalednumber 11 i .
The current page length is stored in
.register .p .
.
.REQ .pl \(+-N
Change page length to
.argument \(+-N
(default scale indicator\ \c
.scaleindicator v ).
.
.REQ .pm
Print macro names and sizes (number of blocks of 128 bytes).
.
.REQ ".pm t"
Print only total of sizes of macros (number of 128 bytes blocks).
.
.REQ .pn \(+-N
Next page number
.argument N .
.
.REQ .pnr
Print the names and contents of all currently defined number registers
on stderr.
.
.REQ .po
Change to previous page offset.  The current page offset is available in
.register .o .
.
.REQ .po \(+-N
Page offset
.argument N .
.
.REQ .ps
Return to previous point-size.
.REQ .ps \(+-N
Point size; same as
.esc[arg] s \(+-N .
.
.REQ .psbb filename
Get the bounding box of a PostScript image
.argument filename .
.
.REQ .pso command
This behaves like the
.request .so
request except that input comes from the standard output of
.argument command .
.
.REQ .ptr
Print the names and positions of all traps (not including input line
traps and diversion traps) on stderr.
.
.REQ .rchar c1 c2...
Remove the definitions of characters
.argument c1 ,
.argument c2 ,
.argument ...
.
.REQ .rd prompt
Read insertion.
.
.REQ .return
Return from a macro.
.
.REQ .rj n
Right justify the next
.argument n
input lines.
.
.REQ .rm name
Remove request, macro, or string
.argument name .
.
.REQ .rn old new
Rename request, macro, or string
.argument old
to
.argument new .
.
.REQ .rnn reg1 reg2
Rename register
.argument reg1
to
.argument reg2 .
.
.REQ .rr register
Remove
.argument register .
.
.REQ .rs
Restore spacing; turn no-space mode off.
.
.REQ .rt \(+-N
Return
.I (upward only)
to marked vertical place (default scale indicator\ \c
.scaleindicator v ).
.
.REQ .shc
Reset soft hyphen character to
.esc (hy .
.
.REQ .shc c
Set the soft hyphen character to
.argument c .
.
.REQ .shift n
In a macro, shift the arguments by
.argument n \ \c
positions.
.
.REQ .so filename
Include source file.
.
.REQ .sp
Skip one line vertically.
.
.REQ .sp N
Space vertical distance
.argument N
up or down according to sign of
.argument N
(default scaling indicator\ \c
.scaleindicator v ).
.
.REQ .special s1 s2 ...
Fonts
.argument s1 ,
.argument s2 ,
etc. are special and will be searched for characters not in the current font.
.
.REQ .ss N
Space-character size set to
.argument N /12
of the spacewidth in the current font.
.
.REQ .ss N M
Space-character size set to
.argterm N /12
and sentence space size set to
.argterm M /12
of the spacewidth in the current font (\f(CR\(eq1/3 em\fP).
.
.REQ .sty n style
Associate
.argument style
with font position
.argument n .
.
.REQ .substring register n1 n2
Replace the string in
.argument register
with the substring defined by the indices
.argument n1
and
.argument n2 .
.
.REQ .sv
Save
.scalednumber 1 v
of vertical space.
.
.REQ .sv N
Save the vertical distance
.argument N
for later output with
.request .os
request.
.
.REQ .sy command-line
Execute program
.argument command-line .
.
.REQ ".ta T" N
Set tabs after every position that is a multiple of
.argument N
(default scaling indicator\ \c
.scaleindicator m ).
.REQ .ta n1 n2 ... nn \f(CBT\fP r1 r2 ... rn
Set tabs at positions
.argument n1 ,
.argument n2 ,
\&...,
.argument nn ,
then set tabs at
.argument nn + r1 ,
.argument nn + r2 ,
\&...,
.argument nn + rn ,
then at
.argument nn + rn + r1 ,
.argument nn + rn + r2 ,
\&...,
.argument nn + rn + rn ,
and so on.
.
.\".REQ .tar
.\"Restore internally saved tab positions.
.\".
.\".REQ .tas
.\"Save tab positions internally.
.
.REQ .tc
Remove tab repition character.
.REQ .tc c
Set tab repetition character to\ \c
.argument c .
.
.REQ .ti \(+-N
Temporary indent next line (default scaling indicator\ \c
.scaleindicator m ).
.
.REQ .tkf font s1 n1 s2 n2
Enable track kerning for
.argument font .
.
.REQ .tl \f(CB\(cq\fPleft\f(CB\(cq\fPcenter\f(CB\(cq\fPright\f(CB\(cq\fP
Three-part title.
.
.REQ .tm anything
Print
.argument anything
on terminal (UNIX standard message output).
.
.REQ .tm1 anything
Print
.argument anything
on terminal (UNIX standard message output), allowing leading whitespace if
.argument anything
starts with
.character \(dq
(which will be stripped off).
.
.REQ .tmc anything
Similar to
.request .tm1
without emitting a final newline.
.
.REQ .tr abcd....
Translate
.argument a
to
.argument b ,
.argument c
to
.argument d ,
etc. on output.
.
.REQ .trf filename
Transparently output the contents of file
.argument filename .
.
.REQ .trnt abcd....
This is the same as the
.request .tr
request except that the translations do not apply to text that is
transparently throughput into a diversion with
.esc ! .
.
.REQ .troff
Make the built-in condition
.B t
true and
.B n
false.
.
.REQ .uf font
Underline font set to
.argument font
(to be switched to by
.request .ul ).
.
.REQ .ul N
Underline (italicize in troff)
.argument N
input lines.
.
.REQ .unformat diversion
Unformat space characters and tabs, preserving font information in
.argument diversion .
.REQ .vpt n
Enable vertical position traps if
.argument n
is non-zero, disable them otherwise.
.
.REQ .vs
Change to previous vertical base line spacing.
.
.REQ .vs N
Set vertical base line spacing to
.argument N .
Default value is
.scalednumber 12 p .
.
.REQ .warn n
Set warnings code to
.argument n .
.
.REQ .wh N trap
Set location trap; negative means from page bottom.
.
.REQ .while cond anything
While condition
.argument cond
is true, accept
.argument anything
as input.
.
.REQ .write stream anything
Write
.argument anything
to the stream named
.argument stream .
.
.PD
.LP
Besides these standard groff requests, there might be further macro
calls.
They can originate from a macro package (see
.BR roff (@MAN7EXT@)
for an overview) or from a preprocessor.
.LP
Preprocessor macros are easy to be recognized.  They enclose their code
into a pair of characteristic macros.
.LP
.TS
box, center, tab (@);
c | c | c
CfCB | CfCB | CfCB.
preprocessor@start macro@ end macro
=
eqn@.PS@.PE
grap@.G1@.G2
grn@.GS@.GE
pic@.PS@.PE
refer@.R1@.R2
soelim@\fInone@\fInone
tbl@.TS@.TE
.TE
.LP
.
.\" --------------------------------------------------------------------
.SH "ESCAPE SEQUENCES"
.\" --------------------------------------------------------------------
.
Escape sequences are in-line language elements usually introduced by
a backslash
.'char \(rs
and followed by an escape name and sometimes by a required argument.
Input processing is continued directly after the escaped character or
the argument resp. without an intervening separation character.
So there must be a way to determine the end of the escape name and the end
of the argument.
.LP
This is done by enclosing names (escape name and arguments consisting of
a variable name) by a pair of brackets
.esc[] name
and constant arguments (number expressions and characters) by apostrophes
(ASCII 0x27) like
.IR \(cqconstant\(cq .
.LP
There are abbreviations for short names.
Two character escape names can be specified by an opening parenthesis like
.esc( xy
without a closing counterpart.
And all one-character names different from the special characters
.'char [
and
.'char (
can even be specified without a marker in the form
.esc \fP\f(CIc .
.LP
Constant arguments of length
.number 1
can omit the marker apostrophes, too, but there is no two-character
analogue.
.LP
While 1-character escape sequences are mainly used for in-line functions
and system related tasks, the 2-letter names following the
.esc( ""
construct are used for special characters predefined by the roff system.
Names with more than two characters
.esc[] name
mostly denote user defined named characters (see the
.request .char
request).
.
.\" --------------------------------------------------------------------
.SS "SINGLE CHARACTER ESCAPES"
.\" --------------------------------------------------------------------
.
.PD 0
.
.\" --------- comments ---------
.
.ESC \(dq
Beginning of a comment.
Everything up to the end of the line is ignored.
.
.ESC #
Everything up to and including the next newline is ignored.
This is interpreted in copy mode.
This is like
.esc \(dq
except the ignoring of the terminating newline.
.
.\" --------- strings ---------
.
.ESC * s
The string stored in the string variable with 1-character name
.argument s .
.
.ESC *( st
The string stored in the string variable with 2-character name
.argument st .
.
.ESC[] * stringvar
The string stored in the string variable with arbitrary length name
.argument stringvar .
.
.\" --------- macro arguments ---------
.
.ESC $0
The name by which the current macro was invoked.  The
.request .als
request can make a macro have more than one name.
.
.ESC $ x
Macro argument with 1-place number
.argument x ,
where
.argument x
is a digit between 1 and 9.
.
.ESC $( xy
Macro argument with 2-digit number
.argument xy .
.
.ESC[] $ nexp
Macro argument with number
.argument nexp ,
where
.argument nexp
is a numerical expression evaluating to an integer \(>=1.
.
.ESC $*
In a macro, the concatenation of all the arguments separated by spaces.
.
.ESC $@
In a macro, the concatenation of all the arguments with each surrounded
by double quotes, and separated by spaces.
.
.\" --------- escaped characters ---------
.
.ESC \(rs
reduces to a single backslash; useful to delay its interpretation as
escape character in copy mode.
For a printable backslash, use
.esc e .
.
.ESC \(cq
The acute accent \(aa; same as
.esc( aa .
Unescaped: apostrophe, right quotation mark, single quote (ASCII 0x27).
.
.ESC `
The grave accent \(ga; same as
.esc( ga .
Unescaped: left quote, backquote (ASCII 0x60).
.
.ESC \-
The \- sign in the current font.
.
.ESC .
An uninterpreted dot (period), even at start of line.
.
.ESC %
Default optional hyphenation character.
.
.ESC !
Transparent line indicator.
.
.ESC ? anything\fB?\fP
In a diversion, this will transparently embed
.argument anything
in the diversion.
.argument anything
is read in copy mode.
See also the escape sequences
.esc !
and
.esc ? .
.
.
.\" --------- spacing ---------
.
.ESC \& space
Unpaddable space-size space character (no line break).
.
.ESC 0
Digit width.
.
.ESC |
1/6\ em narrow space character; zero width in nroff.
.
.ESC ^
1/12\ em half-narrow space character; zero width in nroff.
.
.ESC &
Non-printable, zero width character.
.
.ESC )
Like
.esc &
except that it behaves like a character declared with the cflags
request to be transparent for the purposes of end of sentence
recognition.
.
.ESC /
Increases the width of the preceding character so that the spacing
between that character and the following character will be correct if
the following character is a roman character.
.
.ESC ,
Modifies the spacing of the following character so that the spacing
between that character and the preceding character will correct if the
preceding character is a roman character.
.
.ESC ~
Unbreakable space that stretches like a normal inter-word space when a
line is adjusted.
.
.ESC :
Inserts a zero-width break point (similar to
.esc %
but without a soft hyphen character).
.
.ESC \& newline
Ignored newline, for continuation lines.
.
.\" --------- structuring ---------
.
.ESC {
Begin conditional input.
.
.ESC }
End conditional input.
.
.\" --------- longer escape names ---------
.
.ESC ( st
The special character with 2-character name
.argument st ,
see section
.BR "SPECIAL CHARACTERS" .
.
.ESC[] \& name
The named character with arbitrary length name
.argument name .
.
.\" --------- alphabetical escapes ---------
.
.ESC a
Non-interpreted leader character.
.
.ESCq A anything
If
.argument anything
is acceptable as a name of a string, macro, diversion, register,
environment or font it expands to
.number 1 ,
and
.number 0
otherwise.
.
.ESCq b abc...
Bracket building function.
.
.ESCq B anything
If
.argument anything
is acceptable as a valid numeric expression it expands to
.number 1 ,
and
.number 0
otherwise.
.
.ESC c
Interrupt text processing.
.
.ESCq C char
The character called
.argument char ;
same as
.esc[] char ,
but compatible to other roff versions.
.
.ESC d
Forward (down) 1/2 em vertical unit (1/2 line in nroff).
.
.ESCq D charseq
Draw a graphical element defined by the characters in
.argument charseq ;
see groff info file for details.
.
.ESC e
Printable version of the current escape character.
.
.ESC E
Equivalent to an escape character, but is not interpreted in copy-mode.
.
.ESC f F
Change to font with 1-character name or 1-digit number
.argument F .
.
.ESC f( fo
Change to font with 2-characer name or 2-digit number
.argument fo .
.
.ESC[] f font
Change to font with arbitrary length name or number expression
.argument font .
.
.ESC[] g reg
Return format of register with name
.argument reg
suitable for
.request .af .
Alternative forms
.esc(arg g xy
and
.escarg g x .
.
.ESCq h N
Local horizontal motion; move right
.argument N
(left if negative).
.
.ESCq H N
Set height of current font to
.argument N .
.
.ESC[] k reg
Mark horizontal input place in register with arbitrary length name
.argument reg .
Alternative forms
.esc(arg k xy
and
.escarg k x .
.
.ESCq l Nc
Horizontal line drawing function (optionally using character
.argument c ).
.
.ESCq L Nc
Vertical line drawing function (optionally using character
.argument c ).
.
.ESC n r
The numerical value stored in the register variable with the 1-character
name
.argument r .
.
.ESC n( re
The numerical value stored in the register variable with the 2-character
name
.argument re .
.
.ESC[] n reg
The numerical value stored in the register variable with arbitrary
lenght name
.argument reg .
.
.ESCq N n
Typeset the character with code
.argument n
in the current font, no special fonts are searched.  Useful for adding
characters to a font using the
.request .char
request.
.
.ESCq o abc...
Overstrike characters
.argument a ,
.argument b ,
.argument c ,
etc.
.
.ESC p
Break and spread output line.
.
.ESC r
Reverse 1\ em vertical motion (reverse line in nroff).
.
.ESCq R name \(+-n
The same as
.request .nr
.argument name
.argument \(+-n .
.
.ESC[] s \(+-N
Set the point size to
.I N
scaled points.  Note the alternative forms
.BI \(rss \(+- [ N ]\c
,
.BI \(rss' \(+-N '\c
,
.BI \(rss \(+- ' N '\c
,
.esc(arg s \(+-xy ,
.BI \(rss \(+- ( xy\c
,
.escarg s \(+-x .
Same as
.request .ps
request.
.
.ESCq S N
Slant output
.argument N
degrees.
.
.ESC t
Non-interpreted horizontal tab.
.
.ESC u
Reverse (up) 1/2 em vertical motion (1/2 line in nroff).
.
.ESCq v N
Local vertical motion; move down
.argument N
(up if negative).
.
.ESC[] V env
The contents of the environment variable
.argument env .
Alternative forms
.esc(arg V xy
and
.escarg V x .
.
.ESCq w string
The width of the character sequence
.argument string .
.
.ESCq x N
Extra line-space function (negative before, positive after).
.
.ESCq X string
Output
.argument string
as device control function.
.
.ESC[] Y name
Output string variable or macro
.argument name
uninterpreted as device control function.
Alternative forms
.esc(arg Y xy
and
.escarg Y x .
.
.ESC z c
Print
.argument c
with zero width (without spacing).
.
.ESCq Z anything
Print
.argument anything
and then restore the horizontal and vertical position;
.argument anything
may not contain tabs or leaders.
.PD
.LP
The escape sequences
.esc e ,
.esc . ,
.esc \(dq ,
.esc $ ,
.esc * ,
.esc a ,
.esc n ,
.esc t ,
.esc g ,
and
.escarg \& newline
are interpreted in copy mode.
.LP
Escape sequences starting with
.esc (
or
.esc [
do not represent single character escape sequences, but introduce escape
names with two or more characters.
.LP
If a backslash is followed by a character that does not constitute a
defined escape sequence the backslash is silently ignored and the
character maps to itself.
.
.\" --------------------------------------------------------------------
.SS "SPECIAL CHARACTERS"
.\" --------------------------------------------------------------------
Common special characters are predefined by escape sequences of the form
.(esc \fP\f(CIxy
with characters
.argument x
and
.argument y .
Some of these exist in the usual font while most of them are only
available in the special font.  Below you'll find a selection of the most
important glyphs; a complete list can be found in
.BR groff_char (@MAN7EXT@).
.RS
.LP
.PD 0
.
.ESc bu Bullet sign
.ESc co Copyright
.ESc ct Cent
.ESc dd Double dagger
.ESc de Degree
.ESc dg Dagger
.ESc em Em-dash
.ESc hy Hyphen
.ESc rg Registered sign
.ESc sc Section sign
.ESc ul Underline character
.ESc == Identical
.ESc >= Larger or equal
.ESc <= Less or equal
.ESc != Not equal
.ESc -> Right arrow
.ESc <- Left arrow
.ESc +- Plus-minus sign
.PD
.RE
.
.\" --------------------------------------------------------------------
.SH REGISTERS
.\" --------------------------------------------------------------------
Registers are variables that store a value.
In groff, most registers store numerical values (see section
.B NUMERICAL EXPRESSIONS
above), but some can also hold a string value.
.LP
Each register is given a name.
Arbitrary registers can be defined and set with the request
.request .nr
.argument register .
.LP
The value stored in a register can be retrieved by the escape sequences
introduced by
.esc n .
.LP
Most useful are predefined registers.
In the following the notation
.argument name
is used to refer to a register called
.register name
to make clear that we speak about registers.
Please keep in mind that the
.esc en[]
decoration is not part of the register name.
.
.\" --------------------------------------------------------------------
.SS "READ-ONLY REGISTERS"
.\" --------------------------------------------------------------------
The following registers have predefined values that should not be
modified by the user (usually, registers starting with a dot a read-only).
Mostly, they provide information on the current settings or store results
from request calls.
.LP
.PD 0
.REG .$ Number of arguments in the current macro.
.REG .a
Post-line extra line-space most recently utilized using
.escarg x 'N' .
.REG .A
Set to
.number 1
in
.B troff
if option
.B \-A
is used; always
.number 1
in
.BR nroff .
.REG .c Current input line number.
.REG .C 1 if compatibility mode is in effect, 0 otherwise.
.REG .cdp
The depth of the last character added to the current environment.
It is positive if the character extends below the baseline.
.REG .ce
The number of lines remaining to be centered, as set by the
.request .ce
request.
.REG .cht
The height of the last character added to the current environment.
It is positive if the character extends above the baseline.
.REG .csk
The skew of the last character added to the current environment.
The skew of a character is how far to the right of the center of a character
the center of an accent over that character should be placed.
.REG .d
Current vertical place in current diversion; equal to register
.register nl .
.REG .ev The name or number of the current environment (string-valued).
.REG .f Current font number.
.REG .fam  The current font family (string-valued).
.REG .fp The number of the next free font position.
.REG .g
Always 1 in GNU troff.
Macros should use it to test if running under groff.
.REG .h Text base-line high-water mark on current page or diversion.
.REG .H Available horizontal resolution in basic units.
.REG .hla
The current hyphenation language as set by the
.B .hla
request.
.REG .hlc
The number of immediately preceding consecutive hyphenated lines.
.REG .hlm
The maximum allowed number of consecutive hyphenated lines, as set by
the
.request .hlm
request.
.REG .hy
The current hyphenation flags (as set by the
.request .hy
request).
.REG .hym
The current hyphenation margin (as set by the
.request .hym
request).
.REG .hys
The current hyphenation space (as set by the
.request .hys
request).
.REG .i Current ident.
.REG .in The indent that applies to the current output line.
.REG .int
Positive if last output line contains
.esc c .
.REG .kern
.number 1
if pairwise kerning is enabled,
.number 0
otherwise.
.REG .l Current line length.
.REG .lg
The current ligature mode (as set by the
.request .lg
request).
.REG .linetabs
The current line-tabs mode (as set by the
.request .linetabs
request).
.REG .ll The line length that applies to the current output line.
.REG .lt
The title length (as set by the
.request .lt
request).
.REG .n Length of text portion on previous output line.
.REG .ne
The amount of space that was needed in the last
.request .ne
request that caused a trap to be sprung.
Useful in conjunction with
.register .trunc .
.REG .ns
.number 1
if in no-space mode,
.number 0
otherwise.
.REG .o Current page offset.
.REG .p Current page length.
.REG .pn
The number of the next page: either the value set by a
.request .pn
request, or the number of the current page plus\ 1.
.REG .ps The current pointsize in scaled points.
.REG .psr The last-requested pointsize in scaled points.
.REG .rj
The number of lines to be right-justified as set by the rj request.
.REG .s Current point size as a decimal fraction.
.REG .sr
The last requested pointsize in points as a decimal fraction
(string-valued).
.REG .t Distance to the next trap.
.REG .T
Set to
.number 1
if option
.B \-T
is used.
.REG .tabs
A string representation of the current tab settings suitable for use as
an argument to the
.request .ta
request.
.REG .trunc
The amount of vertical space truncated by the most recently sprung
vertical position trap, or, if the trap was sprung by a
.request .ne
request, minus the amount of vertical motion produced by
.request .ne .
request.
In other words, at the point a trap is sprung, it represents the difference
of what the vertical position would have been but for the trap, and what the
vertical position actually is.
Useful in conjunction with the
.register .ne
register.
.REG .ss
The value of the parameters set by the first argument of the
.request .ss
request.
.REG .sss
The value of the parameters set by the second argument of the
.request .ss
request.
.REG .u Equal to 1 bin fill mode and 0 in nofill mode.
.REG .v Current vertical line spacing.
.REG .V Available vertical resolution in basic units.
.REG .vpt
.number 1
if vertical position traps are enabled,
.number 0
otherwise.
.REG .w Width of previous character.
.REG .warn
The sum of the number codes of the currently enabled warnings.
.REG .x The major version number.
.REG .y The minor version number.
.REG .Y The revision number of groff.
.REG .z Name of current diversion.
.PD
.
.\" --------------------------------------------------------------------
.SS "WRITABLE REGISTERS"
.\" --------------------------------------------------------------------
The following registers can be read and written by the user.
They have predefined default values, but these can be modified for
customizing a document.
.LP
.PD 0
.REG % Current page number.
.REG c. Current input line number.
.REG ct Character type (set by width function
.esc w ).
.REG dl Maximal width of last completed diversion.
.REG dn Height of last completed diversion.
.REG dw Current day of week (1-7).
.REG dy Current day of month (1-31).
.REG hp Current horizontal position at input line.
.REG llx
Lower left x-coordinate (in PostScript units) of a given PostScript
image (set by
.request .psbb ).
.REG lly
Lower left y-coordinate (in PostScript units) of a given PostScript
image (set by
.request .psbb ).
.REG ln Output line number.
.REG mo Current month (1-12).
.REG nl Vertical position of last printed text base-line.
.REG rsb Like
.register sb ,
but takes account of the heights and depths of characters.
.REG rst
Like
.register st ,
but takes account of the heights and depths of characters.
.REG sb
Depth of string below base line (generated by width function
.esc w ).
.REG skw
Right skip width from the center of the last character in the
.esc w
argument.
.REG slimit
If greater than 0, the maximum number of objects on the input stack.
If \(<=0 there is no limit, i.e., recursion can continue until virtual
memory is exhausted.
.REG ssc
The amount of horizontal space (possibly negative) that should be added
to the last character before a subscript (generated by width function
.esc w ).
.REG st
Height of string above base line (generated by width function
.esc w ).
.REG systat
The return value of the
.I system()
function executed by the last
.request .sy
request.
.REG urx
Upper right x-coordinate (in PostScript units) of a given PostScript
image (set by
.request .psbb ).
.REG ury
Upper right y-coordinate (in PostScript units) of a given PostScript
image (set by
.request .psbb ).
.REG year The current year (year 2000 compliant).
.REG yr
Current year minus 1900.  For Y2K compliance use register
.register year
instead.
.PD
.
.\" --------------------------------------------------------------------
.SH WARNINGS
.\" --------------------------------------------------------------------
Each warning generated by groff is identified by a name and a code
number.  The codes are powers of 2 to allow bit-encoding with a single
integer.  There are also names that can be used to refer to groups of
warnings.
.LP
The name associated with a warning is used by the
.option \-w
and
.option \-W
options;
the number code is used by the
.request .warn
request and by the
.esc[arg] n warn
register.
.LP
.PD 0
.Warning all group
All warnings except
.warning di ,
.warning mac
and
.warning reg .
Intended to cover all warnings with traditional macro packages.
.Warning break 4
In fill mode, lines which could not be broken so that their length was
less than the line length.  This is enabled by default.
.Warning char 1
Non-existent characters.  This is enabled by default.
.Warning delim 8
Missing or mismatched closing delimiters.
.Warning di 256
Use of
.request .di
or
.request .da
without an argument when there is no current diversion.
.Warning el 16
Use of the
.request .el
request with no matching
.request .ie
request.
.Warning escape 32768
Unrecognized escape sequence.  Then the escape character is ignored.
.Warning font 131072
Non-existent fonts.  This is enabled by default.
.Warning ig 262144
Illegal escapes in text ignored with the
.request \.ig
request.  These are conditions that are errors when they occur outside
of ignored text.
.Warning mac 512
Use of undefined strings, macros, and diversions.  Automatically handled
as empty.  Usually, only one warning per name.
.Warning missing 8192
Request that is missing non-optional arguments.
.Warning input 16384
Illegal input character.
.Warning number 2
Invalid numeric expressions.  This is enabled by default.
.Warning range 64
Out of range arguments.
.Warning reg 1024
Use of undefined number register.  Automatically defined as having
value 0.  Usually, only one warning per name.
.Warning right-brace 4096
Use of
.esc }
where a number was expected.
.Warning scale 32
Meaningless scaling indicators.
.Warning space 65536
Missing space between a request or macro and its argument.  Then no
macro is automatically defined.  This is enabled by default.  This
warning will never occur in compatibility mode.
.Warning syntax 128
Dubious syntax in numeric expressions.
.Warning tab 2048
Inappropriate use of a tab character (either in an unquoted macro
argument or where a number was expected).
.Warning w group
All warnings.
.PD
.LP
.TS
tab(@), box, expand;
c c c | c  c  c | c  c  c
R RI CB | R RI CB | R RI CB.
Bit@Code@Warning@Bit@Code@Warning@Bit@Code@Warning
_
0@1@char@8@256@di@16@65536@space
1@2@number@9@512@mac@17@131072@font
2@4@break@10@1024@reg@18@262144@ig
3@8@delim@11@2048@tab
4@16@el@12@4096@right-brace
5@32@scale@13@8192@missing
6@64@range@14@16384@input
7@128@syntax@15@32768@escape
.TE
.LP
.
.\" --------------------------------------------------------------------
.SH COMPATIBILITY
.\" --------------------------------------------------------------------
.I groff
provides a
.B compatibility mode
that allows to process roff code written for classical
.troff
or for other implementations of roff in a consistent way.
.LP
Compatibility mode can be turned on with the
.option \-C
command line option, and turned on or off with the
.request .cp
request.  The number register
.esc(arg n .C
is
.number 1
if compatibility mode is on,
.number 0
otherwise.
.LP
This became necessary because the GNU concept for long names causes some
incompatibilities.
.I Classical troff
will interpret
.IP
.B
\&.dsabcd
.LP
as defining a string
.B ab
with contents
.BR cd .
Normally,
.I groff
will interpret this as a call of a macro named
.request dsabcd .
.LP
Also
.I classical troff
will interpret
.esc *[
or
.esc n[
as references to a string or number register called
.register [ .
In
.I GNU native
.IR mode ,
however, this will normally be interpreted as the start of a long name.
.LP
In
.I compatibility
.IR mode ,
groff will interpret these things in the traditional way, but long names
are not recognized.
.LP
On the other hand, groff in
.I GNU native mode
does not allow to use the escape sequences
.esc e ,
.esc | ,
.esc ^ ,
.esc & ,
.esc } ,
.esc { ,
.esc "\ " (space),
.esc ' ,
.esc ` ,
.esc - ,
.esc _ ,
.esc ! ,
.esc % ,
and
.esc c
in names of strings, macros, diversions, number registers, fonts or
environments, whereas
.I classical troff
does.  The
.esc A
escape sequence can be helpful in avoiding these escape sequences in
names.
.LP
Fractional pointsizes cause one noteworthy incompatibility.
In
.I classical
.IR troff ,
the
.request .ps
request ignores scale indicators and so
.RS
.LP
.B .ps\ 10u
.RE
.LP
will set the pointsize to 10 points, whereas in groff native mode the
pointsize will be set to 10 scaled points.
.LP
In
.I groff
mode, there is a fundamental difference between unformatted input
characters, and formatted output characters.
Everything that affects how an output character will be output is stored
with the character; once an output character has been constructed it is
unaffected by any subsequent requests that are executed, including the
.request .bd ,
.request .cs ,
.request .tkf ,
.request .tr ,
or
.request .fp
requests.
.LP
Normally output characters are constructed from input characters at the
moment immediately before the character is added to the current output
line.
Macros, diversions and strings are all, in fact, the same type of object;
they contain lists of input characters and output characters in any
combination.
.LP
An output character does not behave like an input character for the
purposes of macro processing; it does not inherit any of the special
properties that the input character from which it was constructed might
have had.
The following example will make things clearer.
.LP
.RS
.nf
.ft B
\&.di x
\(rs\(rs\(rs\(rs
\&.br
\&.di
\&.x
.ft
.fi
.RE
.LP
In
.I GNU mode
this will be printed as
.esc \(rs .
So each pair of input backslashes
.'char \(rs\(rs
is turned into a single output backslash
.'char \(rs
and the resulting output backslashes are not interpreted as escape
characters when they are reread.
.LP
.I Classical troff
would interpret them as escape characters when they were reread and
would end up printing a single backslash
.'char \(rs .
.LP
The correct way to get a printable
.'char \(rs
is to use the
.esc e
escape sequence.  This will always print a single instance of the
current escape character, regardless of whether or not it is used in a
diversion.  It will also work in both GNU mode and compatibility mode.
.LP
To store an escape sequence in a diversion that will be interpreted when
the diversion is reread, either the traditional
.esc !
transparent output facility or the
new
.esc ?
escape sequence can be used.
.
.\" --------------------------------------------------------------------
.SH BUGS
.\" --------------------------------------------------------------------
At the moment, the documentation of the groff system is in a state of
change and evolution.  It is possible that there are small
inconsistencies between different documents temporarily.
.LP
The
.B WARNINGS
section belongs to
.BR troff (@MAN1EXT@).
.
.\" --------------------------------------------------------------------
.SH AUTHOR
.\" --------------------------------------------------------------------
This document is part of groff, the GNU roff distribution.  It was
written by Bernd Warken <bwarken@mayn.de>.
.LP
It is distributed under the terms of the FDL (GNU Free Documentation
License) version 1.1 or later.  You should have received a copy of the
FDL on your system, it is also available on-line under
.RS
.LP
.IR http://www.gnu.org/copyleft/fdl.html .
.RE
.LP
Formerly, the extensions of the groff language were kept in the manual
page
.BR troff (@MAN1EXT@).
This document contains the essential parts of that documentation, but
the gory details are found in the groff info file.
.
.\" --------------------------------------------------------------------
.SH "SEE ALSO"
.\" --------------------------------------------------------------------
The main source of information for the groff language is the
.B groff
.BR info (1)
file.
.LP
For a survey of roff and the groff system and further documentation
pointers see
.BR roff (@MAN7EXT@).
.LP
The formatter programs are described in
.BR groff (@MAN1EXT@)
and
.BR troff (@MAN1EXT@);
a complete of all predefined glyph names can be found in
.BR groff_char (@MAN7EXT@).
.LP
The classical
.I troff
documentation is available on-line at
.RS
.LP
.I http://cm.bell-labs.com/cm/cs/cstr.html
.RE
and
.RS
.IR http://www.kohala.com/start/troff/ .