summaryrefslogtreecommitdiff
path: root/contrib/mom/momdoc/refer.html
blob: 1abfab767ae5ac89024dac84fc84696a91be3834 (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
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is part of groff, the GNU roff type-setting system.

Copyright (C) 2004, 2005, 2006, 2009, 2010,
2011, 2012, 2013 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 the
Invariant Sections being this comment section, 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 -- Document processing, bibliographies and references</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="letters.html#top">Next: Writing letters</a></td>
</tr>
</table>

<h1 class="docs">Bibliographies and references</h1>

<div style="width: 75%; margin: auto;">
<ul class="no-enumerator">
  <li><a href="#intro-ref">Introduction to bibliographies and references</a></li>
  <li><a href="#tutorial-ref">Tutorial on <kbd>refer</kbd> usage with mom</a>
  <ul style="margin-left: -.5em; list-style-type: disc;">
    <li><a href="#db-ref">Create a <kbd>refer</kbd> database</a></li>
    <li><a href="#rcommands-ref">Insert a <kbd>refer</kbd> block</a></li>
    <li><a href="#placement-ref">Tell mom where you want your references (if footnotes or endnotes)</a></li>
    <li><a href="#accessing-ref">Accessing references in the database</a></li>
    <li><a href="#fn-en-recipe">Entering footnote/endnote references</a></li>
    <li><a href="#parenthetical">Parenthetical insertions</a></li>
    <li><a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</h4></a></li>
    <li><a href="#bibliography-recipe">Generating a comprehensive bibliography</a></li>
    <li><a href="#invoking-ref">Invoking groff with mom and <kbd>refer</kbd></a></li>
  </ul></li>
  <li><a href="#mla">MLA (Modern Language Association) style</a>
  <ul style="margin-left: -.5em; list-style-type: disc;">
    <li><a href="#ref-styles">Types of references (endnote, footnote, or embedded in text)</a></li>
    <li><a href="#parenthetical">Inserting parenthetical references into the text</a></li>
  </ul></li>
  <li><a href="#database">The <kbd>refer</kbd> database</a>
  <ul style="margin-left: -.5em; list-style-type: disc;">
    <li><a href="#database-intro">Introduction</a></li>
    <li><a href="#database-rules">Rules</a></li>
    <li><a href="#fields-quick">Quick guide to field identifiers (%A for author, %T for title, etc)</a></li> 
    <li><a href="#fields-specifics">Field identifiers: specifics, usage and examples</a>
    <ul style="margin-left: -.5em; list-style-type: square;">
      <li><a href="#ibid">avoiding ibid, idem and their ilk</a></li>
    </ul></li> 
  </ul></li>
  <li><a href="#index-ref">The bibliography and reference macros</a>
  <ul style="margin-left: -.5em; list-style-type: disc;">
    <li><a href="#biblio-control">Bibliography control macros and defaults</a></li>
  </ul></li>
</ul>
</div>

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

<h2 id="intro-ref" class="docs">Introduction to bibliographies and references</h2>

<p>
Mom provides the ability to format and generate bibliographies, as
well as footnote or endnote references, in MLA (Modern Language
Association) style.  She accomplishes this by working in conjunction
with a special groff program called <kbd>refer</kbd>.
</p>

<p>
<kbd>Refer</kbd> requires first that you create a database of works
that will be cited in your documents.  Once that&#8217;s done, special
macros let you briefly key in references to entries in the database
and have mom format them with respect to order, punctuation and
italicization in footnotes, endnotes, or a full bibliography.
</p>

<p>
<kbd>Refer</kbd> has been around for a long time.  It&#8217;s
powerful and has many, many features.  Unfortunately, the manpage
(<kbd>man&nbsp;refer</kbd>), while complete and accurate, is
dense and not a good introduction.  (It&#8217;s a classic manpage
Catch-22: the manpage is useful only after you know how to use the
program.)
</p>

<p>
In order to get mom users up and running with <kbd>refer</kbd>,
this section of mom&#8217;s documentation focuses exclusively, in a
recipe-like manner, on what you need to know to use <kbd>refer</kbd>
satisfactorily in conjunction with mom.  The instructions are not to
be taken as a manual on full <kbd>refer</kbd> usage.
</p>

<p>
If you&#8217;re already a <kbd>refer</kbd> user, the information
herein will be useful for adapting your current <kbd>refer</kbd>
usage to mom&#8217;s way of doing things.  If you&#8217;ve never
used <kbd>refer</kbd>, the information is essential, and, in many
cases, may be all you need.
</p>

<p>
I encourage anyone interested in what MLA style looks
like&mdash;and, by extension, how your bibliographies and references
will look after mom formats them&mdash;to check out
<br/>
<span class="pre-in-pp">
  http://www.aresearchguide.com/12biblio.html
</span>
or any other website or reference book on MLA style.
</p>

<div class="rule-short" style="margin-top: 1em;"><hr/></div>

<div class="examples-container" style="margin-top: 1.5em; margin-bottom: 1.5em;">
<h3 id="tutorial-ref" class="docs">Tutorial on refer usage with mom</h3>
<ol style="margin-top: 1em; margin-bottom: -.5em;">
  <li><a href="#db-ref">Create a <kbd>refer</kbd> database</a>
  <ul style="margin-left: -.5em; list-style-type: disc;">
    <li><a href="#example-refer-database">example <kbd>refer</kbd> database</a></li>
  </ul></li>
  <li><a href="#rcommands-ref">Insert a <kbd>refer</kbd> block</a>
  <ul style="margin-left: -.5em; list-style-type: disc;">
    <li><a href="#fn-en-block">refer block for footnotes/endnotes</a></li>
    <li><a href="#in-text-block">refer block for parenthetical insertions into running text</a></li>
    <li><a href="#bibliography-block">refer block for comprehensive bibliographies (reading lists)</a></li>
  </ul></li>
  <li><a href="#placement-ref">Tell mom where you want your references (if footnotes or endnotes)</a></li>
  <li><a href="#accessing-ref">Accessing references in the database</a></li>
  <li><a href="#fn-en-recipe">Entering footnote/endnote references</a></li>
  <li><a href="#parenthetical-insertions">Parenthetical insertions</a></li>
  <li><a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</a></li>
  <li><a href="#bibliography-recipe">Generating a comprehensive bibliography</a></li>
  <li><a href="#invoking-ref">Invoking groff with mom and <kbd>refer</kbd></a></li>
</ol>

<h4 id="db-ref" class="docs">1. Create a refer database</h4>

<p>
The first step in using <kbd>refer</kbd> with mom is creating a
database.  The database is a text file containing entries for the
works you will be citing.  You may set up separate databases for
individual documents, or create a large database that can be
accessed by many documents.
</p>

<p>
Entries (&#8220;records&#8221; in refer-speak) in the database
are separated from each other by a single, blank line.  The records
themselves are composed of single lines (&#8220;fields&#8221;) with
no blank lines between them.  Each field begins with a percent
sign and a single letter (the &quot;field identifier&quot;)
eg <kbd>%A</kbd> or <kbd>%T</kbd>.  The letter identifies
what part of a bibliographic entry the field refers to: Author,
Title, Publisher, Date, etc.  After the field identifier comes
a single space, followed by the information appropriate to
field.
</p>

<!-- Add rules for punctuation and italics -->

<p>
Here&#8217;s an example database containing two records so you can
visualize what the above paragraph says.
</p>

<div id="example-refer-database" class="examples" style="margin-top: -.5em;">Example <kbd>refer</kbd> database</div>
<div class="examples-container" style="padding-bottom: 1em;">
<span class="pre">
%A Terry Pratchett
%A Neil Gaiman
%T Good Omens
%C London
%I Gollancz
%D 1990

%A Peter Schaffter
%T The Schumann Proof
%C Toronto
%I RendezVous Press
%D 2004
</span>
</div>

<p>
The order in which you enter fields doesn&#8217;t matter.
<kbd>Refer</kbd> will re-arrange them for you.
</p>

<h4 id="rcommands-ref" class="docs">2. Insert a refer block</h4>

<p>
Having set up your database, you now need to put some
<kbd>refer</kbd>-specific commands in your mom file.
</p>

<p>
<kbd>Refer</kbd> commands are introduced by a single line
containing <kbd>.R1</kbd>, and concluded with a single line
containing <kbd>.R2</kbd>.  What goes between the <kbd>.R1</kbd>
and <kbd>.R2</kbd> lines is called a &#8220;refer block&#8221;.
<kbd>Refer</kbd> commands in a refer block should be entered one per
line, in lowercase letters, <i>with no initial period</i> (dot).
The actual commands depend on whether you want your references
</p>
<ul>
<li>in footnotes/endnotes</li>
<li>parenthetically inserted (in abbreviated form) into running text,
referring to a works-cited list (bibliography)</li>
<li>to generate a comprehensive bibliography (a reading list)</li>
</ul>

<h5 id="fn-en-block" class="docs" style="font-size: 90%; margin-top: .25em;">Refer block for footnotes/endnotes</h5>

<p style="margin-top: .5em;">
If you want footnote or endnote references, place this block at
the <i>top</i> of your mom file.
</p>

<div id="refer-block1" class="examples" style="margin-top: -.5em;">
<div class="examples-container" style="padding-bottom: 1em;">
<span class="pre">
.R1
no-label-in-text
no-label-in-reference
join-authors " and " ", " ", and "
database &lt;full path to database&gt;
.R2
</span>
</div>
</div>
<p style="margin-top: .5em; font-size: 95%; line-height: 120%;">
<kbd>&lt;full&nbsp;path&nbsp;to&nbsp;the&nbsp;database&gt;</kbd>
means the full path including the filename, eg
<kbd>/home/user/refer/my-database-file</kbd>.
</p>

<h5 id="in-text-block" class="docs" style="font-size: 90%; margin-top: .25em;">Refer block for parenthetical insertions into running text</h5>

<p style="margin-top: .5em;">
If you want short, parenthetical insertions into running text,
referring to works cited in a bibliography, place this block at
the <i>top</i> of your mom file.
</p>

<div id="refer-block2" class="examples" style="margin-top: -.5em;">
<div class="examples-container" style="padding-bottom: 1em;">
<span class="pre">
.R1
label "(A.n|Q)"
bracket-label " (" ")" ", "
join-authors ", and " ", " ", and "
move-punctuation
reverse A1
sort A1Q1T1B1E1
database &lt;full path to database&gt;
.R2
</span>
</div>
</div>
<p style="margin-top: .5em; font-size: 95%; line-height: 120%;">
<kbd>&lt;full&nbsp;path&nbsp;to&nbsp;the&nbsp;database&gt;</kbd>
means the full path including the filename, eg
<kbd>/home/user/refer/my-database-file</kbd>.
</p>

<h5 id="bibliography-block" class="docs" style="font-size: 90%; margin-top: .25em;">Refer block for comprehensive bibliographies</h5>

<p style="margin-top: .5em;">
If you want to output an entire <kbd>refer</kbd> database, or
generate a comprehensive bibliography (a reading list) from a
database, place this block at the <i>bottom</i> of your mom file,
either prior to or immediately after invoking
<a href="#bibliography">BIBLIOGRAPHY</a>.
</p>

<div id="refer-block2" class="examples" style="margin-top: -.5em;">
<div class="examples-container" style="padding-bottom: 1em;">
<span class="pre">
.R1
no-label-in-text
no-label-in-reference
join-authors ", and " ", " ", and "
sort A1Q1T1B1E1
reverse A1
database &lt;full path to database&gt;
.R2
</span>
</div>
</div>

<p style="margin-top: .5em; font-size: 95%; line-height: 120%;">
<kbd>&lt;full&nbsp;path&nbsp;to&nbsp;the&nbsp;database&gt;</kbd>
means the full path including the filename, eg
<kbd>/home/user/refer/my-database</kbd>.
</p>

<h4 id="placement-ref" class="docs">3. Tell mom where you want your references</h4>

<p>
If you want references in footnotes, issue the instruction
<br/>
<span class="pre-in-pp">
  .FOOTNOTE_REFS
</span>
anywhere before the first citation in your file.  Footnote markers
will be inserted into the text, and the bibliographic information
for the citation will appear as a footnote.
</p>

<p>
If you want references in endnotes, issue the instruction
<br/>
<span class="pre-in-pp">
  .ENDNOTE_REFS
</span>
anywhere before the first citation in your file.  Endnote markers
will be inserted into the text, and the bibliographic information
for the citation will appear as an endnote entry.
</p>

<p>
Note that if you want references parenthetically inserted
into running text, referring to entries in a works-cited list
(bibliography) that <kbd>mom</kbd> and <kbd>refer</kbd> assemble
automatically, no special instructions are required.  See
<a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</a>
for how to output the collected references.
</p>

<p>
For outputting an entire <kbd>refer</kbd> database, or
generating a comprehensive reading list from a database, see the
macro,
<a href="#bibliography">BIBLIOGRAPHY</a>.
</p>

<h4 id="accessing-ref" class="docs">4. Accessing references in the database</h4>

<p>
References are accessed by putting keywords from the desired database
record between two special <kbd>refer</kbd> commands:
<br/>
<span class="pre-in-pp">
  .[
</span>
and
<br/>
<span class="pre-in-pp">
  .]
</span>
Keywords are any word, or set of words, that identify a database
record unambiguously.  Thus, if you have only one database record for
the author Ray Bradbury, 
<br/>
<span class="pre-in-pp">
  .[
  bradbury
  .]
</span>
is sufficient.  However, if your database contains several records
for books by Bradbury, say, <i>Fahrenheit 451</i> and <i>The
Martian Chronicles</i>,
&#8220;<kbd>bradbury&nbsp;451</kbd>&#8221; and
&#8220;<kbd>bradbury&nbsp;martian</kbd>&#8221; would identify the two records unambiguously.
</p>

<p>
A special database field identifier, <kbd>%K</kbd>, lets you create
unique keywords for database records to help clear up any ambiguity.
</p>

<p>
Notice that you don&#8217;t have to worry about capitalization when
entering keywords.
</p>

<h4 id="fn-en-recipe" class="docs">5. Entering footnote/endnote references</h4> 

<p>
Depending on which you have issued, a
<kbd><a href="#footnote-refs">.FOOTNOTE_REFS</a></kbd>
or an
<kbd><a href="#endnote-refs">.ENDNOTE_REFS</a></kbd>
command, entering references is done like this:
<br/>
<span class="pre-in-pp">
  .REF
  .[
  keyword(s)
  .]
  .REF
</span>
If FOOTNOTE_REFS is in effect, the reference between the first
and second <kbd>.REF</kbd> will be treated as a footnote.  If
ENDNOTE_REFS, it will be treated as an endnote.  Endnote references
must be explicitly output with
<a href="docelement.html#ENDNOTES">ENDNOTES</a>
at the end of your file, before
<a href="tables-of-contents.html#TOC">TOC</a>.
</p>

<div class="box-important">
<p class="tip">
<span class="important">Important:</span>
REF behaves identically to
<a href="docelement.html#footnote">FOOTNOTE</a>
and
<a href="docelement.html#endnote">ENDNOTE</a>
with respect to the use of the <kbd>\c</kbd> inline escape.  Please
read the
<a href="docelement.html#footnote-note">HYPER IMPORTANT NOTE</a>
found in the document entry for FOOTNOTE (which also applies to
ENDNOTE).
</p>
</div>

<h4 id="parenthetical-insertions" class="docs">6. Parenthetical insertions</h4>

<p>
See
<a href="#parenthetical">Inserting parenthetical references into
text</a>.
</p>

<h4 id="bibliography-from-embedded" class="docs">7. Generating a bibliography from parenthetical insertions</h4>

<p>
To generate a bibliography from works cited by parenthetical
insertions in the text, put this at the end of your document, before
<kbd><a href="tables-of-contest.html#TOC">.TOC</a></kbd>.
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY
  .[
  $LIST$
  .]
  .BIBLIOGRAPHY OFF
</span>
</p>

<h4 id="bibliography-recipe" class="docs">8. Generating a comprehensive bibliography</h4>

<p>
You can also generate a comprehensive bibliography, which is to say a
bibliography containing more works than are actually cited (a
&#8220;reading list&#8221;), by placing references between
<kbd><a href="#bibliography">.BIBLIOGRAPHY</a></kbd>
and
<kbd><a href="#bibliography">.BIBLIOGRAPHY&nbsp;OFF</a></kbd>.
Once you have input the desired references, insert
<br/>
<span class="pre-in-pp">
  .[
  $LIST$
  .]
</span>
and follow it with <kbd>.BIBLIOGRAPHY&nbsp;OFF</kbd>.  Study the
example below if you&#8217;re having trouble visualizing this.
</p>

<div id="example-bibliography" class="examples" style="margin-top: -.5em;">Example bibliography</div>
<div class="examples-container" style="padding-bottom: 1em;">
<span class="pre">
.BIBLIOGRAPHY
.R1
no-label-in-text
no-label-in-reference
join-authors ", and " ", " ", and "
sort A1Q1T1B1E1
reverse A1
database &lt;full path to database&gt;
.R2
.[
bradbury
.]
.[
pratchett
.]
.[
$LIST$
.]
.BIBLIOGRAPHY OFF
</span>
</div>

<p>
Alternatively, you can output an entire database as a
bibliography.  Do the following at the end of your document, before
<kbd><a href="tables-of-contest.html#TOC">.TOC</a></kbd>.
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY
  .R1
  no-label-in-text
  no-label-in-reference
  join-authors ", and " ", " ", and "
  sort A1Q1T1B1E1
  reverse A1
  bibliography &lt;full path to database&gt;
  .R2
  .BIBLIOGRAPHY OFF
</span>
</p>

<h4 id="invoking-ref" class="docs">9. Invoking groff with mom and refer</h4>

<p>
So, now you&#8217;ve got a document formatted properly to use
references processed with <kbd>refer</kbd>, what do you do to output
the document?
</p>

<p>
It&#8217;s simple.  Instead of invoking groff with just the
<kbd>-mom</kbd> option, as explained
<a href="using.html#using-saving">here</a>,
invoke groff with the <kbd>-R</kbd> option as well, like this:
<br/>
<span class="pre-in-pp">
  groff -R -mom &lt;filename&gt; ...
</span>
</p>
</div>

<div class="rule-medium" style="margin-top: 1em;"><hr/></div>

<h2 id="mla" class="docs">MLA (Modern Language Association) style</h2>

<h3 id="ref-styles" class="docs">Types of references (endnote, footnote, or embedded in text)</h3>

<p>
MLA allows for three types of references, or referencing styles:
</p>
<ul style="margin-top: -.5em;">
  <li>short, parenthetical references in the text, linked to a
      works-cited list (bibliography) at the end of the document</li>
  <li>footnote references</li>
  <li>endnote references</li>
</ul>

<p style="margin-top: -.5em;">
There are significant differences between the way footnote/endnote
references should be formatted, and the formatting style of
bibliographies.  One example is that footnote/endnote references
should have their first lines indented, whereas bibliographic
references should have their second lines indented.  Fortunately,
with mom, there&#8217;s no need to concern yourself with the differences;
they&#8217;re taken care of automatically.
</p>

<p>
In terms of inserting references into your documents,
footnote/endnote references are input in a manner similar to
entering any other kind of
<a href="docelement.html#footnote-into">footnote</a>
or
<a href="docelement.html#endnote-into">endnote</a>.
Parenthetical references, however, need to be handled differently.
See the next section.
</p>

<h3 id="parenthetical" class="docs">Inserting parenthetical references into the text</h3>

<p>
MLA style prefers restricting the information in parenthetical
references to the barest minimum needed to identify works
in the works-cited list (the bibliography).  Typically, a
parenthetical insertion is just the author&#8217;s last name
followed by the page number of the cited work (if only one work by
that author is cited), or by the author, a shortened title of the
work, and the page number (if more than one work is cited).
</p>

<p>
This necessitates a slightly fiddly way of entering parenthetical
references, though not by any means difficult or hard to make sense
of.
</p>

<p>
The <kbd>refer</kbd> block suggested
<a href="#refer-block2">here</a>
for parenthetical references prints only the author&#8217;s
last name from the database record identified by your keywords
(the <kbd>label</kbd> command), surrounded by parentheses (the
<kbd>bracket-label</kbd> command).  Therefore, assuming you are
citing Ray Bradbury&#8217;s <i>The Martian Chronicles</i>, and it is
the only work by Bradbury mentioned in the text,
<br/>
<span class="pre-in-pp">
  ...end of sentence.
  .[
  martian chronicles
  .]
  A new sentence...
</span>
will insert &#8220;<span style="font-family: times; font-size: 105%; font-weight: bold">...end of sentence (Bradbury). A new sentence...</span>&#8221; into the text.
<i>The Martian Chronicles</i> will be added
to the works-cited list generated at the end of the document if it
is not already present as the result of an earlier reference.
</p>

<p>
If you need a page number to identify where in <i>The Martian
Chronicles</i> to find a specific quote
<br/>
<span class="pre-in-pp">
  "...aluminum roaches and iron crickets."
  .[
  [ martian chronicles
  .] 168)
  A new sentence...
</span>
results in &#8220;<span style="font-family: times; font-size: 105%; font-weight: bold">&#8220;...aluminum roaches and iron crickets.&#8221; (Bradbury 168)  A new sentence...</span>&#8221;
(which is excruciatingly correct MLA style).  The
&#8220;<kbd>[</kbd>&#8221; before <kbd>martian&nbsp;chronicles</kbd> tells
refer to print the opening parenthesis; any text immediately
following the &#8220;<kbd>.]</kbd>&#8221;, including spaces,
<i>replaces</i> the closing parenthesis.  (Notice that you have to
add the closing parenthesis yourself after the page number.)
</p>

<p>
If your document cites more than one work by Bradbury and you need
a title and page number in addition to the author's name in the
inline reference,
<br/>
<span class="pre-in-pp">
  "...aluminum roaches and iron crickets."
  .[
  [ bradbury martian
  .], \fIChronicles\fP 168)
  A new sentence...
</span>
will produce &#8220;<span style="font-family: times; font-size: 105%; font-weight: bold">&#8220;...aluminum roaches and iron crickets.&#8221; (Bradbury, <i>Chronicles</i> 168) A new sentence...</span>&#8221;.
</p>

<div class="examples-container" style="margin-top: 1.5em; margin-bottom: 1.5em;">
<h3 id="tutorial-ref" class="docs">The <span style="text-transform: none">&#8216;label&#8217;<span style="text-transform: uppercase"> and <span style="text-transform: none">&#8216;bracket-label&#8217;<span style="text-transform: uppercase"> commands</h3>

<p>
The <kbd>label</kbd> and <kbd>bracket-label</kbd> commands in
the refer block allow you to customize what information goes
into parenthetical references, and how they should be formatted.
<kbd>label</kbd> dictates which fields from the database record
to print and how to punctuate them. <kbd>bracket-label</kbd>
controls the bracketing style.  Users are encouraged to consult
<kbd>man&nbsp;refer</kbd> for usage.
</p>

<p>
Here&#8217;s an example of how to set up APA-style references, which
require the author and date of publication, optionally with a page
number or range of pages.
<br/>
<span class="pre-in-pp">
  .R1
  label "(A.n|Q) ', ' D.y"
  bracket-label " (" ")" ", "
  join-authors ", and " ", " ", and "
  move-punctuation
  reverse A1
  sort A1Q1T1B1E1
  database /home/peter/Groff-mom/Testing/Refer/refer-database
  .R2
</span>
Assuming a reference to a work by Ursula Leguin published in 1980
<br/>
<span class="pre-in-pp">
  .[
  leguin
  .]
</span>
produces
<span style="font-family: times; font-size: 105%; font-weight: bold">
(Leguin, 1980)
</span>.
If a page number is also required
<br/>
<span class="pre-in-pp">
  .[
  [ leguin
  .], p. 73)
</span>
produces
<span style="font-family: times; font-size: 105%; font-weight: bold">(Leguin, 1980, p. 73)</span>.
</p>
</div>

<div class="rule-medium" style="margin-top: 1em;"><hr/></div>

<h2 id="database" class="docs">The refer database</h2>

<h3 id="database-intro" class="docs">Introduction</h3>

<p style="margin-top: .5em;">
The heart and soul of <kbd>refer</kbd> is the bibliographic
database.  Knowing how to create records (ie. the entries for works
cited in a document) is largely a question matching data (author,
title, publisher, etc) with the correct field identifier.  For
example, if you&#8217;re citing from a scholarly journal, you need to know
that <kbd>%J</kbd> is the field identifier for journal names and
<kbd>%N</kbd> is the field identifier for the journal number.  Use
the
<a href="#fields-quick">Quick list of field identifiers</a>
as your guide.
</p>

<h3 id="database-rules" class="docs">The rules</h3>

<p style="margin-top: .5em;">
Entering the data correctly is also important.  Fortunately, there
are very few rules, and those there are make sense.  In a nutshell:
</p>
<ul style="margin-top: -.5em;">
  <li>enter the data in each field in natural order; author John Smith is
      &#8220;John Smith&#8221;, editor Jane Doe is &#8220;Jane Doe&#8221;</li>
  <li>capitalize all proper nouns and words in titles as you expect
      to see them; otherwise, use lowercase</li>
  <li>use no terminating punctuation unless required; typically,
      required punctuation is the period after a shortform
      (&#8220;ed.&#8221; or &#8220;eds.&#8221;, &#8220;Jr.&#8221;,
      etc) or a question mark or exclamation mark at the end of a
      title</li>
  <li>if part of a field needs to be set off in single-quotes, use
      <kbd>\[oq]</kbd> and <kbd>\[cq]</kbd> (openquote, closequote) rather than the
      single-quote (or apostrophe) character on your keyboard</li>
  <li>if part of a field needs to be forced into italics, use the
      escapes <kbd>\*[IT]</kbd> and <kbd>\*[PREV]</kbd>; if the italicized
      portion concludes the field, omit <kbd>\*[PREV]</kbd></li>
  <li>if you require characters with accents, ligatures or special
      symbols, use groff&#8217;s &#8220;named&#8221; glyphs (eg.
      <kbd>\['e]</kbd> for <kbd>é</kbd>); a full list can be found in
      <kbd>man groff_char</kbd></li>
</ul>

<h3 id="fields-quick" class="docs" style="margin-top: 1.25em; margin-bottom: .5em;">Quick guide to field identifiers <span style="text-transform: none;">(click on any that are links for more information)</span></h3>

<div class="examples-container" style="padding-bottom: 1em;">
<span class="pre">
<a class="quick" href="#A">%A</a> author           &ndash; records may contain multiple authors,
                      one per line
<a class="quick" href="#Q">%Q</a> non-human author &ndash; corporate author, eg. National Geographic;
                      may also be used for exceptional reference types
<a class="quick" href="#m">%m</a> multiple authors &ndash; whenever "et al." is desirable
<a class="quick" href="#i">%i</a> idem             &ndash; multiple works by the same author
<a class="quick" href="#p">%p</a> post-author      &ndash; post-author information (eg appendix,
                      foreword, letter)
%T title            &ndash; primary title (of a book) or the
                      title of an article (within a scholarly
                      journal or a magazine)
%B book title       &ndash; when %T contains the title of an article;
<a class="quick" href="#q">%q</a> force quote      &ndash; force a title into double-quotes
%t reprint title    &ndash; if different from a work's original title
%b main author      &ndash; when citing a preface, foreword,
                      introduction, or afterword, the author of
                      the complete original work
<a class="quick" href="#E">%E</a> editor           &ndash; records may contain multiple editors,
                      one per line
<a class="quick" href="#l">%l</a> translator       &ndash; if more than one translator, all the
                      names
%r translator       &ndash; if tr. and ed. are one in the same
    and editor
%M magazine or      &ndash; when %T contains the title of an article
    newspaper
%J journal          &ndash; when %T contains the title of an article
%e edition          &ndash; number or name of an edition
                      (eg Second, 2nd, Collector's, etc.)
%S series           &ndash; series name of books or journals
%V volume           &ndash; volume number (of books)
%N journal number   &ndash; journal or magazine number
%R report number    &ndash; technical report number
%G gov&#8217;t.           &ndash; government ordering number
<a class="quick" href="#O">%O</a> other            &ndash; information or which there is no appropriate
                      field letter
<a class="quick" href="#C">%C</a> city             &ndash; city of publication
%I publisher        &ndash; publisher
%D date             &ndash; publication date
<a class="quick" href="#d">%d</a> original        
   publication date &ndash; if different from date of publication
<a class="quick" href="#P">%P</a> page(s)          &ndash; page number or range
<a class="quick" href="#n">%n</a> annotation       &ndash; annotation to the reference
%s site name        &ndash; for internet references, the website name
%c content          &ndash; for internet references, the source of
                      the material (eg. Web or Email); for websites,
                      the content, if unclear
%o organization     &ndash; for internet sites, the organization, group
                      or sponsor of the site
%a access date      &ndash; for internet sites, the date of access
%u URL              &ndash; for internet sites, the full URL
<a class="quick" href="#K">%K</a> keywords         &ndash; words that help clear up ambiguities in
                      the database
</span>
</div>

<h3 id="fields-specifics" class="docs">Field identifiers: specifics, usage and examples</h3>

<h4 id="A" class="docs fields">%A &ndash; author field</h4>

<p>
For multiple authors, enter each in a separate <kbd>%A</kbd>
field in the order in which they should appear.  If the author on
the title page is the editor (say, a book of short stories edited by
Ray Bradbury), add <kbd>, ed.</kbd> to the end of the
<kbd>%A</kbd> field, like this:
<br/>
<span class="pre-in-pp">
  %A Ray Bradbury, ed.
</span>
Do not use the <kbd>%E</kbd> field in these instances.  If the work
has several such editors, enter each in a separate <kbd>%A</kbd>
field, as for multiple authors, and add <kbd>, eds.</kbd> to the
last one, like this:
<br/>
<span class="pre-in-pp">
  %A Jane Dearborne
  %A Bill Parsons, eds.
</span>
</p>

<h4 id="Q" class="docs fields">%Q &ndash; exceptional entries</h4>

<p>
Sometimes, a work has no author or title information, for example a
book review in a newspaper.  In such cases, use <kbd>%Q</kbd>, like
this:
<br/>
<span class="pre-in-pp">
  %Q Rev. of \*[IT]Mean Streets Omnibus\*[PREV], ed. Raymond Hammett
  %M Times Literary Supplement
  %D 7 July 1972
</span>
</p>

<h4 id="m" class="docs fields">%m &ndash; multiple authors (et al.)</h4>

<p>
Whenever it&#8217;s desirable to abbreviate a list of authors with
&#8220;et al.&#8221; enter it in the <kbd>%m field</kbd>, like this:
<br/>
<span class="pre-in-pp">
  %A Paul Lauter
  %A Doug Scofield
  %m et al.
</span>
</p>

<h4 id="i" class="docs fields">%i &ndash; idem</h4>

<p>
Whenever there are several works by the same author, fill out the
<kbd>%A</kbd> field with the author&#8217;s name and follow it with the
<kbd>%i idem</kbd>, like this:
<br/>
<span class="pre-in-pp">
  %A Jonathon Schmidt
  %i idem
</span>
Per MLA style, the author&#8217;s name will be replaced by a long dash.
</p>

<p>
If it&#8217;s necessary to state the role the author served (say,
editor or translator), fill out the <kbd>%i</kbd> field with the
information minus <kbd>idem</kbd>, like this:
<br/>
<span class="pre-in-pp">
  %A Ray Bradbury
  %i ed.
  %T Timeless Stories for Today and Tomorrow
</span>
</p>

<h4 id="p" class="docs fields">%p &ndash; post-author information</h4>

<p>
When citing from a preface, foreword, introduction, afterword or
appendix, MLA requires that the information come between the
author&#8217;s name and the work&#8217;s title, like this:
<br/>
<span class="pre-in-pp">
  %A Martin Packham, Jr.
  %p appendix
  %T Why the West was Won
</span>
Do not capitalize the first word in the <kbd>%p</kbd> field unless
it is a proper noun.
</p>

<h4 id="q" class="docs fields">%q &ndash; force title into double-quotes</h4>

<p>
Occasionally, you may not be able to use <kbd>%T</kbd> for the
title because doing so will cause it to come out in italics when
double-quotes are called for.  An example of this is when citing
from a dissertation.  Use <kbd>%q</kbd> to get around the problem,
like this:
<br/>
<span class="pre-in-pp">
  %A Carol Sakala
  %q Maternity Care Policy in the United States
  %O diss., Boston U, 1993
</span>
</p>

<h4 id="E" class="docs fields">%E &ndash; editor</h4>

<p>
Use this only if the author and the editor are not one in the same,
eg
<br/>
<span class="pre-in-pp">
  %A Geoffrey Chaucer
  %T The Works of Geoffrey Chaucer
  %E F. W. Robinson
</span>
</p>

<h4 id="l" class="docs fields">%l &ndash; translator</h4>

<p>
If there is more than one translator, enter all the names, with
appropriate conjunctions and punctuation, like this:
<br/>
<span class="pre-in-pp">
  %A Feodor Dostoevsky
  %T Crime and Punishment
  %l Jessie Coulson, Marjorie Benton, and George Bigian
</span>
</p>

<h4 id="O" class="docs fields">%O &ndash; other</h4>

<p>
Occasionally, MLA requires additional information after the title
but before the publication data (city/publisher/date), for instance,
the number of volumes in a series, or the fact that the work cited
is a dissertation.  Here are two examples:
<br/>
<span class="pre-in-pp">
  %A Arthur M. Schlesinger
  %T History of U.S. Political Parties
  %O 4 vols.
  %C New York
  %I Chelsea
  %D 1973

  %A Carol Sakala
  %q Maternity Care Policy in the United States
  %O diss., Boston U, 1993
</span>
Do not capitalize the first word of the <kbd>%O</kbd> field unless
it is a proper noun.
</p>

<p>
Generally, consider <kbd>%O</kbd> a catch-all for information that
does not match the criterion of any existing field identifier.
</p>

<h4 id="C" class="docs fields">%C &ndash; city</h4>

<p>
Normally, <kbd>%C</kbd> takes the name of the city of publication,
and that&#8217;s all.  In the case of a republished book, if new material
has been added, put such information in the <kbd>%C</kbd>
field, like this:
<br/>
<span class="pre-in-pp">
  %A Theodore Dreiser
  %T Sister Carrie
  %d 1900
  %C Introd. E. L. Doctorow, New York
</span>
</p>

<h4 id="d" class="docs fields">%d &ndash; original date of publication</h4>

<p>
Normally, all that is required in the <kbd>%d</kbd> field is the
original date of publication.  However, if supplementary original
publication data is desired, include it in the field, like this:
<br/>
<span class="pre-in-pp">
  %A Kazuo Ishiguro
  %T The Remains of the Day
  %d London: Faber, 1989
  %D New York
  %I Knopf
  %D 1990
</span>
</p>

<h4 id="K" class="docs fields">%K &ndash; keywords</h4>

<p>
<kbd>Refer</kbd> hates ambiguity, and complains when encountering
it.  Ambiguities result from the duplication of any word in more
than one database record when that word is used to identify a
reference in your input file.  Use <kbd>%K</kbd> to create unique
keywords found nowhere else in the database.
</p>

<p>
Imagine, for example, that your database contains records for
Ray Bradbury&#8217;s <i>The Illustrated Man</i>, another record for
<i>The Illustrated Bradbury</i> and a third for <i>Bradbury,
Illustrated</i>.  <kbd>%K</kbd> can be used to clear up any
ambiguities by assigning a unique word to each record, for example
<kbd>%K ill-man</kbd> for the first, <kbd>%K ill-brad</kbd> for the
second, and <kbd>%K brad-ill</kbd> for the third.
</p>

<h4 id="P" class="docs fields">%P &ndash; pages</h4>

<p>
When citing page numbers, which is often the case with footnotes
and endnotes, it is not necessary to put the numbers in the database
records.  The <kbd>%P</kbd> field can be added underneath the
keyword(s) in the <kbd>.[</kbd> / <kbd>.]</kbd> entries in your
input file, allowing you to recycle database records.  For example,
<br/>
<span class="pre-in-pp">
  %A Frye
  %T Anatomy
  %K frye-anat
</span>
could be your short record for Northrop Frye&#8217;s <i>The Anatomy of
Criticism</i>.  Any time you wanted to cite a particular page or
range of pages from that work in a footnote or endnote, you can
put
<br/>
<span class="pre-in-pp">
  .REF
  .[
  frye-anat
  %P 67-8
  .]
  .REF
</span>
in your input file, and have it show up with the correct page(s).
</p>

<h4 id="n" class="docs fields">%n &ndash; annotations</h4>

<p>
Annotations come at the very end of references.  Capitalize all
words that require it, including, for bibliographic references (but not
for footnotes/endnotes) the first.
</p>

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

<div class="macro-list-container">
<h3 id="index-ref" class="macro-list">The bibliography and reference macros</h3>
<ul class="macro-list">
  <li><a href="#ref">REF</a> &ndash; begin/end a <kbd>refer</kbd> reference that will go in a footnote or endnote</li>
  <li><a href="#footnote-refs">FOOTNOTE_REFS</a> &ndash; instruct mom to put REFs in footnotes</li>
  <li><a href="#endnote-refs">ENDNOTE_REFS</a> &ndash; instruct mom to put REFs in endnotes</li>
  <li><a href="#indent-refs">INDENT_REFS</a> &ndash; manage indenting of references, per MLA standards</li>
  <li><a href="#hyphenate-refs">HYPHENATE_REFS</a> &ndash; enable/disable hyphenation of references</li>
  <li><a href="#bibliography">BIBLIOGRAPHY</a> &ndash; begin a bibliography</li>
  <li><a href="#bibliography-type">BIBLIOGRAPHY_TYPE</a> &ndash; plain, or numbered list bibliography</li>
  <li><a href="#biblio-control">Bibliography control macros and defaults</a></li>
</ul>
</div>

<!-- -REF- -->

<div class="macro-id-overline">
<h3 id="ref" class="macro-id">Begin/end a reference that goes in a footnote or endnote</h3>
</div>

<div class="box-macro-args">
Macro: <b>REF</b>
</div>

<p>
The macro, REF, tells mom that what follows is
<kbd>refer</kbd>-specific, a keyword-identified reference to a
<kbd>refer</kbd> database record.  Depending on whether you&#8217;ve issued
a
<kbd><a href="#footnote-refs">.FOOTNOTE_REFS</a></kbd>
or
<kbd><a href="#endnote-refs">.ENDNOTE_REFS</a></kbd>
instruction, the reference will be formatted and placed in a
footnote, or collected for output in the endnotes.  Parenthetical
insertion of references into the text do not require
<kbd>.REF</kbd> (see
<a href="#parenthetical">Inserting parenthetical references into the text</a>.)
</p>

<p>
Before you use REF, you must create a <kbd>refer</kbd> block
containing <kbd>refer</kbd> commands (see
<a href="#rcommands-ref">Required refer commands</a>
in the tutorial, above).
</p>

<p>
REF usage always looks like this:
<br/>
<span class="pre-in-pp">
  .REF
  .[
  keyword(s)
  .]
  .REF
</span>
Notice that REF &#8220;brackets&#8221; the <kbd>refer</kbd> instructions,
and never takes an argument.
</p>

<p>
What REF really is is a convenience.  One could, for example, put a
reference in a footnote by doing
<br/>
<span class="pre-in-pp">
  .FOOTNOTE
  .[
  keyword(s)
  .]
  .FOOTNOTE OFF
</span>
However, if you have a lot of references going into footnotes (or
endnotes), it&#8217;s much shorter to type <kbd>.REF/.REF</kbd>
than <kbd>.FOOTNOTE/.FOOTNOTE OFF</kbd>.  It also helps you
distinguish&mdash;visually, in your input file&mdash;between
footnotes (or endnotes) which are references, and footnotes (or
endnotes) which are explanatory, or expand on the text.
</p>

<div class="box-tip">
<p class="tip-top">
<span class="note">Note:</span>
If you&#8217;re using REF to put references in footnotes and your
footnotes need to be indented, you may (indeed, should) pass REF the
same arguments used to indent footnotes.  See
<a href="docelement.html#footnote">FOOTNOTE</a>.
</p>

<p class="tip-bottom">
<span class="additional-note">Additional note:</span>
REF behaves identically to
<a href="docelement.html#footnote">FOOTNOTE</a>
or
<a href="docelement.html#footnote">ENDNOTE</a>,
so please read the HYPER IMPORTANT NOTE found in the document entry
for
<a href="docelement.html#footnote-note">FOOTNOTE</a>
and/or
<a href="docelement.html#endnote-note">ENDNOTE</a>
for instructions on correct entry of text preceding and following REF.
</p>
</div>

<!-- -FOOTNOTE_REFS- -->


<div class="macro-id-overline">
<h3 id="footnote-refs" class="macro-id">Instruct mom to put references in footnotes</h3>
</div>

<div class="box-macro-args">
Macro: <b>FOOTNOTE_REFS</b>
</div>

<p>
FOOTNOTE_REFS is an instruction to
<a href="#ref">REF</a>,
saying, &#8220;put all subsequent references bracketed by the REF
macro into footnotes.&#8221; You invoke it by itself, with no
argument.
</p>

<p>
When FOOTNOTE_REFS is in effect, regular footnotes, (ie
those introduced with <kbd>.FOOTNOTE</kbd> and terminated with
<kbd>.FOOTNOTE OFF</kbd>) continue to behave normally.
</p>

<p>
You may switch between FOOTNOTE_REFS and
<a href="#endnote-refs">ENDNOTE_REFS</a>
at any time.
</p>

<p>
By default, FOOTNOTE_REFS sets the
<a href="docelement.html#footnote-marker-style">FOOTNOTE_MARKER_STYLE</a>
to <kbd>NUMBER</kbd> (ie superscript numbers).  You may change
change that if you wish by invoking FOOTNOTE_MARKER_STYLE, with the
argument you want after FOOTNOTE_REFS.
</p>

<p>
If you have a lot of footnote references, and are identifying
footnotes by line number rather than by markers in the text, you may
want to enable
<a href="docelement.html#footnotes-run-on">FOOTNOTES_RUN_ON</a>
in conjunctions with FOOTNOTE_REFS.
</p>

<!-- -ENDNOTE_REFS- -->

<div class="macro-id-overline">
<h3 id="endnote-refs" class="macro-id">Instruct mom to put references in endnotes</h3>
</div>

<div class="box-macro-args">
Macro: <b>ENDNOTE_REFS</b>
</div>

<p>
ENDNOTE_REFS is an instruction to
<a href="#ref">REF</a>,
saying, &#8220;add all subsequent references bracketed by the REF
macro to endnotes.&#8221; You invoke it by itself, with no argument.
</p>

<p>
When ENDNOTE_REFS is in effect, mom continues to format regular
endnotes, (ie those introduced with <kbd>.ENDNOTE</kbd> and
terminated with <kbd>.ENDNOTE OFF</kbd>) in the normal way.
</p>

<p>
You may switch between ENDNOTE_REFS and
<a href="#footnote-refs">FOOTNOTE_REFS</a>
at any time.
</p>

<!-- -INDENT_REFS- -->

<div class="macro-id-overline">
<h3 id="indent-refs" class="macro-id">Manage indenting of references, per MLA standards</h3>
</div>

<div class="box-macro-args">
Macro: <b>INDENT_REFS</b> <kbd class="macro-args">FOOTNOTE | ENDNOTE | BIBLIO &lt;indent&gt; </kbd>
</div>

<p class="requires">
&bull;&nbsp;<kbd style="font-style: normal;">&lt;indent&gt;</kbd> requires a <a href="definitions.html#unitofmeasure">unit of measure</a>
</p>

<p>
MLA-style requires that footnote or endnote references should
have their first lines indented, whereas bibliographic references
should have their second and subsequent lines indented.  Thus, if
you invoke INDENT_REFS with a first argument of <kbd>FOOTNOTE</kbd>
or <kbd>ENDNOTE</kbd>, the value you give to
<kbd>&lt;indent&gt;</kbd> sets the indent of the first line for
those types of references; if you invoke it with <kbd>BIBLIO</kbd>,
the value you give <kbd>&lt;indent&gt;</kbd> sets the indent of
second and subsequent lines in bibliographies.
</p>

<p>
By default, the indent for all three types of references is 1/2-inch
for
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>
and 2
<a href="definitions.html#em">ems</a>
for
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>.
</p>

<p>
If you&#8217;d like to change the indent for footnote, endnote or
bibliography references, just invoke <kbd>.INDENT_REFS</kbd> with
a first argument saying which one you want the indent changed for, and
a second argument saying what you&#8217;d like the indent to be.
For example, if you want the second-line indent of references on a
bibliography page to be 3
<a href="definitions.html#picas-points">picas</a>,
<br/>
<span class="pre-in-pp">
  .INDENT_REFS BIBLIO 3P
</span>
is how you&#8217;d set it up.
</p>

<div class="box-tip">
<p class="tip-top">
<span class="tip">Tip:</span>
If you are identifying endnotes by line number
(<a href="docelement.html#endnote-marker-style">ENDNOTE_MARKER_STYLE&nbsp;<kbd>LINE</kbd></a>)
and have instructed mom to put references bracketed by
<kbd><a href="#ref">.REF</a></kbd>
into endnotes (with
<a href="#endnote-refs">ENDNOTE_REFS</a>),
you will almost certainly want to adjust the second-line indent for
references in endnotes, owing to the way mom formats line-numbered
endnotes.  Study the output of such documents to see whether an
indent adjustment is required.
</p>

<p>
The same advice applies to references in endnotes when you have enabled
<br/>
<span class="pre-in-pp">
  <a href="docelement.html#endnote-numbers-align-left">.ENDNOTE_NUMBERS_ALIGN_LEFT</a>
</span>
in favour of mom&#8217;s default, which is to align them right.
Study the output to determine what size of second-line indent works
best.
</p>

<p class="tip-bottom">
<i>(Frankly, endnote references formatted in MLA-style combined with
left-aligned endnote numbers is a no-win situation, and so is best
avoided.  Wherever you set the indent, you&#8217;ll end up with the
endnote numbers appearing to hang into the left margin, so you might
as well have them hang, as is the case with
<kbd style="font-style: normal;">.ENDNOTE_NUMBERS_ALIGN_RIGHT</kbd>.</i>&nbsp;&nbsp;&ndash;&nbsp;Ed.)
</p>
</div>

<!-- -HYPHENATE_REFS- -->

<div class="macro-id-overline">
<h3 id="hyphenate-refs" class="macro-id">Enable/disable hyphenation of references</h3>
</div>

<div class="box-macro-args">
Macro: <b>HYPHENATE_REFS</b> <kbd class="macro-args">&lt;toggle&gt;</kbd>
</div>

<p>
If you have hyphenation turned on for a document (see
<a href="typesetting.html#hy">HY</a>),
and in most cases you probably do, mom will hyphenate references
bracketed by the
<a href="#ref">REF</a>
macro.  Since references typically contain quite a lot of proper
names, which shouldn&#8217;t be hyphenated, you may want to disable
hyphenation for references.
</p>

<p>
HYPHENATE_REFS is a toggle macro; invoking it by itself will turn
automatic hyphenation of REF-bracketed references on (the default).
Invoking it with any other argument (<kbd>OFF, NO, X</kbd>, etc.)
will disable automatic hyphenation for references bracketed by REF.
</p>

<p>
An alternative to turning reference hyphenation off is to prepend
to selected proper names in your <kbd>refer</kbd> database
the groff
<a href="definitions.html#discretionaryhyphen">discretionary hyphen</a>
character, <kbd>\%</kbd>.  (See
<a href="#ref-disc-hy">here</a>
in the tutorial for an example.)
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
References embedded in the body of a document are considered part of
<a href="definitions.html#running">running text</a>,
and are hyphenated (or not) according to whether hyphenation is
turned on or off for running text.  Therefore, if you want to
disable hyphenation for such references, you must do so temporarily,
with
<a href="typesetting.html#hy">HY</a>,
like this:
<br/>
<span class="pre-in-pp">
  .HY OFF
  .[
  keyword(s)
  .]
  .HY
</span>
Alternatively, sprinkle your database fields liberally with
<kbd>\%</kbd>.
</p>
</div>

<!-- -BIBLIOGRAPHY- -->

<div class="macro-id-overline">
<h3 id="bibliography" class="macro-id">Begin a bibliography</h3>
</div>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY</b> <kbd class="marco-args">toggle</kbd>
</div>

<p>
To append a bibliography to your document, whether of references
inserted parenthetically into text or a comprehensive reading list
derived from a large <kbd>refer</kbd> database, all you need
do is invoke <kbd>.BIBLIOGRAPHY</kbd>. <kbd>.BIBLIOGRAPHY</kbd>
breaks to a new page, prints the title (BIBLIOGRAPHY by default, but
that can be changed), and awaits <kbd>refer</kbd> instructions.  How
to create bibliographies is covered in the tutorial section,
<a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</a>
and
<a href="#bibliography-recipe">Generating a comprehensive bibliography</a>.
When all the required data has been entered, type
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY OFF
</span>
to complete the bibliography.
</p>

<p>
See the
<a href="#biblio-control">Bibliography control macros and defaults</a>
for macros to tweak, design and control the appearance of
bibliography pages.
</p>

<!-- -BIBLIOGRAPHY_TYPE- -->

<div class="macro-id-overline">
<h3 id="bibliography-type" class="macro-id">Plain, or numbered list bibliography</h3>
</div>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_TYPE</b> <kbd class="macro-args">PLAIN | LIST [ &lt;list separator&gt; ] [ &lt;list prefix&gt; ]</kbd>
</div>

<p>
Mom offers two styles of bibliography output: plain, or numbered
list style.  With the argument, <kbd>PLAIN</kbd>, bibliography entries are output
with no enumerators.  With the argument, <kbd>LIST</kbd>, each entry is numbered.
</p>

<p>
The two optional arguments, <kbd>&lt;list&nbsp;separator&gt;</kbd>
and <kbd>&lt;list&nbsp;prefix&gt;</kbd> have the same meaning as the
equivalent arguments to
<a href="docelement.html#list">LIST</a>
(ie <kbd>&lt;separator&gt;</kbd> and <kbd>&lt;prefix&gt;</kbd>).
</p>

<p>
You may enter the BIBLIOGRAPHY_TYPE either before or after
<kbd>.BIBLIOGRAPHY</kbd>.  It must, however, always come before the
any <kbd>refer</kbd> commands.  See
<a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</a>
and
<a href="#bibliography-recipe">Generating a comprehensive bibliography</a>.
</p>

<p>
Mom&#8217;s default BIBLIOGRAPHY_TYPE is PLAIN.
</p>

<!-- -BIBLIO_CONTROL- -->

<div class="defaults-container" style="background-color: #ded4bd; border: none;">
<h3 id="biblio-control" class="docs defaults">Bibliography control macros and defaults</h3> 

<p style="margin-top: .25em; margin-left: 9px;">
Mom processes bibliography pages in a manner very similar to the
way she processes endnotes pages.  The bibliography page control
macros, therefore, behave in the same way as their endnotes pages
equivalents.
</p>

<ol style="margin-top: -.5em; padding-bottom: .5em;">
  <li><a href="#biblio-general"><b>General bibliography style control</b></a>
  <ul style="margin-left: -.5em;">
    <li><a href="#biblio-style">Base family/font/quad</a></li>
    <li><a href="#biblio-pt-size">Base point size</a></li>
    <li><a href="#biblio-lead">Leading</a></li>
    <li><a href="#biblio-spacing">Adjust the space between bibliography entries</a></li>
    <li><a href="#singlespace-biblio">Singlespace bibliographies (for TYPEWRITE only)</a></li>
    <li><a href="#biblio-no-columns">Turning off column mode during bibliography output</a></li>
  </ul></li>
  <li><a href="#biblio-pagination"><b>Pagination of bibliographies</b></a>
  <ul style="margin-left: -.5em;">
    <li><a href="#biblio-pagenum-style">Page numbering style</a></li>
    <li><a href="#biblio-first-pagenumber">Setting the first page number of bibliographies</a></li>
    <li><a href="#biblio-no-first-pagenum">Omitting a page number on the first page of bibliographies</a></li>
    <li><a href="#suspend-pagination">Suspending pagination during bibliography output</a></li>
  </ul></li>
  <li><a href="#biblio-header-control"><b>Header/footer control</b></a>
  <ul style="margin-left: -.5em;">
    <li><a href="#biblio-modify-hdrftr">Modifying what goes in bibliography headers/footers</a></li>
    <li><a href="#biblio-hdrftr-center">Header/footer centre string when doctype is CHAPTER</a></li>
    <li><a href="#biblio-allows-headers">Allow headers on bibliography pages</a></li>
  </ul></li>
  <li><a href="#biblio-main-title"><b>Bibliography first-page title control</b></a>
  <ul>
    <li><a href="#biblio-string">Title string</a></li>
    <li><a href="#biblio-string-control">Title string control macros and defaults</a></li>
    <li><a href="#biblio-string-placement">Title string placement</a></li>
    <li><a href="#biblio-string-underline">Title string underscoring</a></li>
    <li><a href="#biblio-string-caps">Title string capitalization</a></li>
  </ul></li>
</ol>
</div>

<h4 id="biblio-general" class="docs" style="margin-top: -1.5em; margin-bottom: .5em;">1. General bibliography page style control</h4>

<h5 id="biblio-style" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Base family/font/quad</h5>

<div class="defaults-container" style="padding-bottom: 8px;">
<p class="defaults" style="padding-top: 6px;">
See
<a href="#control-macro-args">Arguments to the control macros</a>.
</p>
<span class="pre defaults">
.BIBLIOGRAPHY_FAMILY    default = prevailing document family; default is Times Roman
.BIBLIOGRAPHY_FONT      default = roman
.BIBLIOGRAPHY_QUAD*     default = justified

*Note: BIBLIOGRAPHY_QUAD must be set to either L (LEFT) or J (JUSTIFIED);
 R (RIGHT) and C (CENTER) will not work.
</span>
</div>

<!-- -BIBLIO_PT_SIZE- -->

<h5 id="biblio-pt-size" class="docs" style="margin-top: -1.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Base point size</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_PT_SIZE</b> <kbd class="macro-args">&lt;base type size of bibliography&gt;</kbd>
</div>

<p>
Unlike most other control macros that deal with size of document
elements, BIBLIOGRAPHY_PT_SIZE takes as its argument an absolute
value, relative to nothing.  Therefore, the argument represents the
size of bibliography type in
<a href="definitions.html#picaspoints">points</a>,
unless you append an alternative
<a href="definitions.html#unitofmeasure">unit of measure</a>.
For example,
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_PT_SIZE 12
</span>
sets the base point size of type on the bibliography page to 12
points, whereas
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_PT_SIZE .6i
</span>
sets the base point size of type on the bibliography page to 1/6 of an
inch.
</p>

<p>
The type size set with BIBLIOGRAPHY_PT_SIZE is the size of type used
for the text of the bibliographies, and forms the basis from which
the point size of other bibliography page elements is calculated.
</p>

<p>
The default for
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>
is 12.5 points (the same default size used in the body of the
document).
</p>

<!-- -BIBLIO_LEAD- -->

<h5 id="biblio-lead" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Leading</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_LEAD</b> <kbd class="macro-args">&lt;base leading of bibliographies&gt; [ ADJUST ]</kbd>
</div>

<p class="requires">
&bull;&nbsp;Does not require a <a href="definitions.html#unitofmeasure">unit of measure</a>; points is assumed
</p>

<p>
Unlike most other control macros that deal with leading of document
elements, BIBLIOGRAPHY_LEAD takes as its argument an absolute value,
relative to nothing.  Therefore, the argument represents the
<a href="definitions.html#leading">leading</a>
of bibliographies in
<a href="definitions.html#picaspoints">points</a>
unless you append an alternative
<a href="definitions.html#unitofmeasure">unit of measure</a>.
For example,
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_LEAD 14
</span>
sets the base leading of type on the bibliography page to 14
points, whereas
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_LEAD .5i
</span>
sets the base leading of type on the bibliography page to 1/2 inch.
</p>

<p>
If you want the leading of bibliographies adjusted to fill the page,
pass BIBLIOGRAPHY_LEAD the optional argument,
<kbd>ADJUST</kbd>.  (See
<a href="docprocessing.html#doc-lead-adjust">DOC_LEAD_ADJUST</a>
for an explanation of leading adjustment.)
</p>

<p>
The default for
<a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>
is the prevailing document lead (16 by default), adjusted.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
Even if you give mom a <kbd>.DOC_LEAD_ADJUST&nbsp;OFF</kbd> command,
she will still, by default, adjust bibliography leading.  You
<i>must</i> enter <kbd>BIBLIOGRAPHY_LEAD&nbsp;&lt;lead&gt;</kbd>
with no <kbd>ADJUST</kbd> argument to disable this default
behaviour.
</p>
</div>

<!-- -BIBLIO_SPACING- -->

<h5 id="biblio-spacing" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Adjust the space between bibliography entries</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_SPACING</b> <kbd class="macro-args">&lt;amount of space&gt; </kbd>
</div>

<p class="requires">
&bull;&nbsp;Requires a <a href="definitions.html#unitofmeasure">unit of measure</a>
</p>

<p>
By default, mom inserts no space between bibliography entries.
If you&#8217;d prefer she add some, instruct her to do so with
BIBLIOGRAPHY_SPACING.  Say, for example, you want a half a linespace
between entries,
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_SPACING .5v
</span>
would do the trick.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
As with endnotes pages, inserting space between bibliography entries
will most likely result in hanging bottom margins.
</p>
</div>

<!-- -SINGLESPACE_BIBLIO- -->

<h5 id="singlespace-biblio" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Singlespace bibliography (TYPEWRITE only)</h5>

<div class="box-macro-args">
Macro: <b>SINGLESPACE_BIBLIOGRAPHY</b> <kbd class="macro-args">&lt;toggle&gt;</kbd>
</div>

<p>
If your 
<a href="docprocessing.html#printstyle">PRINTSTYLE</a>
is <kbd>TYPEWRITE</kbd> and you use TYPEWRITE&#8217;s default
double-spacing, bibliographies are double-spaced.  If your document
is single-spaced, bibliographies are single-spaced.
</p>

<p>
If, for some reason, you&#8217;d prefer that bibliographies be
single-spaced in an otherwise double-spaced document (including
double-spaced
<a href="rectoverso.html#collate">collated</a>
documents), invoke <kbd>.SINGLESPACE_BIBLIOGRAPHY</kbd> with with no
argument.
</p>

<!-- -BIBLIO_NO_COLUMNS- -->

<h5 id="biblio-no-columns" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Turning off column mode during bibliography output</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_NO_COLUMNS</b> <kbd class="macro-args">&lt;toggle&gt;</kbd>
</div>

<p>
By default, if your document is set in
<a href="docprocessing.html#columns">columns</a>,
mom sets the bibliographies in columns, too.  However, if your
document is set in columns and you&#8217;d like the bibliographies
not to be, just invoke <kbd>.BIBLIOGRAPHY_NO_COLUMNS</kbd> with
no argument.  The bibliography pages will be set to the full page
measure of your document.
</p>

<p>
If you output bibliographies at the end of each document in a
<a href="rectoverso.html#collate">collated</a>
document set in columns, column mode will automatically be
reinstated for each document, even with BIBLIOGRAPHY_NO_COLUMNS
turned on.  In such circumstances, you must re-enable
ENDNOTES_NO_COLUMNS for each separate collated document.
</p>

<h4 id="biblio-pagination" class="docs" style="margin-bottom: .5em;">2. Pagination of bibliographies</h4>

<!-- -BIBLIO_PAGENUM_STYLE- -->

<h5 id="biblio-pagenum-style" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Page numbering style</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_PAGENUM_STYLE</b> <kbd class="macro-args">DIGIT | ROMAN | roman | ALPHA | alpha</kbd>
</div>

<p>
Use this macro to set the page numbering style of bibliography
pages.  The arguments are identical to those for
<a href="headfootpage.html#pagenum-style">PAGENUM_STYLE</a>.
The default is <kbd>digit</kbd>.  You may want to change it to, say,
<kbd>alpha</kbd>, which you would do with
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_PAGENUM_STYLE alpha
</span>
</p>

<!-- -BIBLIO_FIRST_PAGENUMBER- -->

<h5 id="biblio-first-pagenumber" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Setting the first page number of bibliographies</h5>

<div class="box-macro-args">
Macro: <b>BIBILOGRAPHY_FIRST_PAGENUMBER</b> <kbd class="macro-args">&lt;page # that appears on page 1 of bibliographies&gt;</kbd>
</div>

<p>
Use this macro with caution.  If the bibliography for a
<a href="rectoverso.html#collate">collated</a>
document is to be output at the document&#8217;s end,
BIBLIOGRAPHY_FIRST_PAGENUMBER tells mom what page number to put on
the first page of the bibliography.
</p>

<p>
However, if you&#8217;re outputting a bibliography at the end of each
section (chapter, article, etc) of a collated document,
you have to reset every section&#8217;s first page number after
<a href="rectoverso.html#collate">COLLATE</a>
and before
<a href="docprocessing.html#start">START</a>.
</p>

<!-- -BIBLIO_NO_FIRST_PAGENUN- -->

<h5 id="biblio-no-first-pagenum" class="docs" style="margin-top: -.25em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Omitting a page number on the first page of bibliographies</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_NO_FIRST_PAGENUM</b> <kbd class="macro-args">&lt;toggle&gt;</kbd>
</div>

<p>
This macro is for use only if
<a href="headfootpage.html#footers">FOOTERS</a>
are on.  It tells
<kbd><a href="#bibliography">BIBLIOGRAPHY</a></kbd>
not to print a page number on the first bibliography page.
Mom&#8217;s default is to print the page number.
</p>

<!-- -SUSPEND_PAGINATION- -->

<h5 id="suspend-pagination" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Suspending pagination during bibliography output</h5>

<div class="box-macro-args" style="margin-bottom: 1em;">
Macro: <b>SUSPEND_PAGINATION</b>
</div>

<div class="box-macro-args">
Macro: <b>RESTORE_PAGINATION</b>
</div>

<p>
SUSPEND_PAGINATION doesn&#8217;t take an argument.  Invoked
immediately prior to
<kbd><a href="#bibliography">BIBLIOGRAPHY</a></kbd>,
it turns off pagination for the duration of the bibliography.  Mom
continues, however to increment page numbers silently.
</p>

<p>
To restore normal document pagination after bibliographies, invoke
<kbd>.RESTORE_PAGINATION</kbd> (again, with no argument) immediately
after you&#8217;ve finished with your bibliography.
</p>

<h4 id="biblio-header-control" class="docs" style="margin-bottom: .5em;">3. Header/footer control</h4>

<h5 id="biblio-modify-hdrftr" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Modifying what goes in the bibliography header/footer</h5>

<p>
If you wish to modify what appears in the header/footer that appears
on bibliography pages, make the changes before you invoke
<a href="#bibliography"><kbd>.BIBLIOGRAPHY</kbd></a>,
not afterwards.
</p>

<p>
Except in the case of
<a href="docprocessing.html#doctype">DOCTYPE <kbd>CHAPTER</kbd></a>,
mom prints the same header or footer used throughout the document
on bibliography pages.  Chapters get treated differently in that,
by default, mom does not print the header/footer centre string
(normally the chapter number or chapter title.)  In most cases, this
is what you want.  However, should you not want mom to remove the
centre string from the bibliography pages headers/footers, invoke
<kbd><a href="#bibliography-hdrftr-center">.BIBLIOGRAPHY_HEADER_CENTER</a></kbd>
with no argument. 
</p>

<p>
An important change you may want to make is to put the word
&#8220;Bibliography&#8221; in the header/footer centre position.  To
do so, invoke
<br/>
<span class="pre-in-pp" style="margin-bottom: -1em;">
  .HEADER_CENTER "Endnotes"
</span>
or
<span class="pre-in-pp" style="margin-top: -.5em;">
  .FOOTER_CENTER "Endnotes"
</span>
prior to invoking <kbd>.BIBLIOGRAPHY</kbd>.
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
If your
<a href="docprocessing.html#doctype">DOCTYPE</a>
is <kbd>CHAPTER</kbd>, you must also invoke
<a href="#endnotes-hdrftr-center">BIBLIOGRAPHY_HEADER_CENTER</a>
for the BIBLIOGRAPHY_HEADER_CENTER to appear.
</p>
</div>

<h5 id="biblio-hdrftr-center" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Header/footer centre string when doctype is CHAPTER</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_HEADER_CENTER</b> <kbd class="macro-args">toggle</kbd>
</div>

<p>
If your
<a href="docprocessing.html#doctype">DOCTYPE</a>
is <kbd>CHAPTER</kbd> and you want mom to include a centre
string in the headers/footers that appear on bibliography
pages, invoke <kbd>.BIBLIOGRAPHY_HEADER_CENTER</kbd> (or
<kbd>.BIBLIOGRAPHY_FOOTER_CENTER</kbd>) with no argument.
Mom&#8217;s default is NOT to print the centre string.
</p>

<p>
If, for some reason, having enabled the header/footer centre string
on bibliography pages, you wish to disable it, invoke the same macro
with any argument (<kbd>OFF, QUIT, Q, X</kbd>...).
</p>

<h5 id="biblio-allows-headers" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Allow headers on bibliography pages</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_ALLOWS_HEADERS</b> <kbd class="macro-args">&lt;none&gt; | ALL</kbd>
</div>

<p>
By default, if HEADERS are on, mom prints page headers on all
bibliography pages except the first.  If you don&#8217;t want her to
print headers on bibliography pages, do
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_ALLOWS_HEADERS OFF
</span>
If you want headers on every page including the first, do
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_ALLOWS_HEADERS ALL
</span>
</p>

<div class="box-tip">
<p class="tip">
<span class="note">Note:</span>
If FOOTERS are on, mom prints footers on every bibliography page.
This is a style convention.  In mom, there is no such beast as
BIBLIOGRAPHY_ALLOWS_FOOTERS OFF.
</p>
</div>

<h4 id="biblio-main-title" class="docs">4. Bibliography first-page title control</h4>

<!-- -BIBLIO_STRING- -->

<h5 id="biblio-string" class="docs" style="margin-top: 1em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Title string</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_STRING</b> <kbd class="macro-args">&quot;&lt;title to print at the top of bibliography pages&gt;&quot;</kbd>
</div>

<p>
By default, mom prints the word &#8220;BIBLIOGRAPHY&#8221; as a title
at the top of the first page of a bibliography.  If you want her to
print something else, invoke <kbd>.BIBLIOGRAPHY_STRING</kbd> with
the title you want, surrounded by double-quotes.
</p>

<p>
If you don&#8217;t want a title at the top of the first bibliography
page, invoke <kbd>.BIBLIOGRAPHY_STRING</kbd> with a blank argument
(either two double-quotes side by
side&mdash;<kbd>&quot;&quot;</kbd>&mdash;or no argument at all).
</p>

<!-- -BIBLIO_STRING_CONTROL- -->

<h5 id="biblio-string-control" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Title string control macros and defaults</h5>

<div class="defaults-container" style="padding-bottom: 8px;">
<p class="defaults" style="padding-top: 6px;">
See
<a href="#control-macro-args">Arguments to the control macros</a>.
</p>
<span class="pre defaults">
.BIBLIOGRAPHY_STRING_FAMILY  default = prevailing document family; default is Times Roman
.BIBLIOGRAPHY_STRING_FONT    default = bold
.BIBLIOGRAPHY_STRING_SIZE*   default = +1
.BIBLIOGRAPHY_STRING_QUAD    default = centred

*Relative to the size of the bibliography text (set with BIBLIOGRAPHY_PT_SIZE)
</span>
</div>

<!-- -BIBLIOGRAPHY_STRING_ADVANCE- -->

<h5 id="biblio-string-placement" class="docs" style="margin-top: -1em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Title string placement</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_STRING_ADVANCE</b> <kbd class="macro-args">&lt;distance from top of page&gt;</kbd>
</div>

<p class="requires">
&bull;&nbsp;Argument requires a <a href="definitions.html#unitofmeasure">unit of measure</a>
</p>

<p>
By default, mom places the title (the docheader, as it were) of
bibliographies (typically "BIBLIOGRAPHY") on the same
<a href="definitions.html#baseline">baseline</a>
that is used for the start of
<a href="definitions.html#running">running text</a>.
If you&#8217;d prefer another location, higher or lower on the page
(thereby also raising or lowering the starting position of the
bibliography itself), invoke <kbd>.BIBLIOGRAPHY_STRING_ADVANCE</kbd>
with an argument stating the distance from the top edge of the page
at which you&#8217;d like the title placed.
</p>

<p>
The argument requires a unit of measure, so if you&#8217;d like the title
to appear 1-1/2 inches from the top edge of the page, you&#8217;d tell
mom about it like this:
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_STRING_ADVANCE 1.5i
</span>
</p>

<!-- -BIBLIO_STRING_UNDERLINE- -->

<h5 id="biblio-string-underline" class="docs" style="margin-top: -1em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Title string underscoring</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_STRING_UNDERSCORE</b> <kbd class="macro-args">[DOUBLE] [&lt;underline weight&gt; [&lt;underline gap&gt; [&lt;distance between double rules]]] | &lt;none&gt; | &lt;anything&gt;</kbd>
</div>

<p class="alias" style="margin-bottom: 0;">
<i>Alias:</i> <b>BIBLIOGRAPHY_STRING_UNDERLINE</b>
</p>

<p class="requires">
&bull;&nbsp;The argument
<span style="font-style: normal"><kbd>&lt;underscore weight&gt;</kbd></span>
must not have the
<a href="definitions.html#unitofmeasure">unit of measure</a>,
<span style="font-style: normal;"><kbd>p</kbd></span>, appended to it
</p>

<p>
Invoked without an argument,
<kbd>.BIBLIOGRAPHY_STRING_UNDERSCORE</kbd> will place a single rule
underneath the bibliography&#8217;s first-page title.  Invoked with the
argument, <kbd>DOUBLE</kbd>, BIBLIOGRAPHY_STRING_UNDERSCORE will
double-underscore the title.  Invoked with any other non-numeric
argument, (eg <kbd>OFF, NO, X</kbd>, etc.) the macro disables
underlining of the title.
</p>

<p>
In addition, you can use BIBLIOGRAPHY_STRING_UNDERSCORE to control
the weight of the underscore rule(s), the gap between the title and
the underscore, and, in the case of double-underscores, the distance
between the two rules.
</p>

<p>
Some examples:
<br/>
<span class="pre-in-pp">
  .BIBLIOGRAPHY_STRING_UNDERLINE 1
      - turn underlining on; set the rule weight to 1 point

  .BIBLIOGRAPHY_STRING_UNDERLINE 1 3p
      - turn underlining on; set the rule weight to 1 point; set
        the gap between the string and the underline to 3 points
  
  .BIBLIOGRAPHY_STRING_UNDERLINE DOUBLE .75 3p
      - turn double-underlining on; set the rule weight to 3/4 of
        a point; set the gap between the string and the upper
        underline to 3 points; leave the gap between the upper
        and the lower underline at the default
  
  .BIBLIOGRAPHY_STRING_UNDERLINE DOUBLE 1.5 1.5p 1.5p
      - turn double-underlining on; set the rule weight to 1-1/2
        points; set the gap between the string and the upper
        underline to 1-1/2 points; set the gap between the upper
        and the lower underline to 1-1/2 points
</span>
Note, from the above, that in all instances, underscoring (single or
double) is enabled whenever BIBLIOGRAPHY_STRING_UNDERSCORE is used
in this way.
</p>

<p>
Mom&#8217;s default is to double-underscore the title with 1/2-point
rules placed 2 points apart and 2 points below the baseline of the
title.
</p>

<!-- -BIBLIO_STRING_CAPS- -->

<h5 id="biblio-string-caps" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Title string capitalization</h5>

<div class="box-macro-args">
Macro: <b>BIBLIOGRAPHY_STRING_CAPS</b> <kbd class="macro-args">toggle</kbd>
</div>

<p>
Invoked by itself, <kbd>.BIBLIOGRAPHY_STRING_CAPS</kbd> will
automatically capitalize the bibliography first-page title.  Invoked
with any other argument, the macro disables automatic capitalization
of the title.
</p>

<p>
If you&#8217;re generating a table of contents, you may want the
bibliography first-page title to be in caps, but the toc entry in
caps/lower case.  If the argument to
<kbd><a href="#bibliography-string">BIBLIOGRAPHY_STRING</a></kbd>
is in caps/lower case and BIBLIOGRAPHY_STRING_CAPS is
on, this is exactly what will happen.
</p>

<p>
Mom&#8217;s default is to capitalize the bibliography first-page
title.
</p>

<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: 33%; text-align: center;"><a href="#top">Top</a></td>
  <td style="width: 33%; text-align: right;"><a href="letters.html">Next: Writing letters</a></td>
</tr>
</table>

</div>

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

</body>
</html>
<!-- vim: fileencoding=utf-8: nomodified: -->