Debian Codegraph @

contrib/mom/momdoc/refer.html

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 This file is part of groff, the GNU roff type-setting system.
4
5 Copyright (C) 2004-2020 Free Software Foundation, Inc.
6 Written by Peter Schaffter ([email protected]).
7
8 Permission is granted to copy, distribute and/or modify this document
9 under the terms of the GNU Free Documentation License, Version 1.3 or
10 any later version published by the Free Software Foundation; with no
11 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
12 Texts.
13
14 A copy of the Free Documentation License is included as a file called
15 FDL in the main directory of the groff source package.
16 -->
17
18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
19 <html xmlns="http://www.w3.org/1999/xhtml">
20
21 <head>
22 <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
23 <title>Mom -- Document processing, bibliographies and references</title>
24 <link rel="stylesheet" type="text/css" href="stylesheet.css" />
25 </head>
26
27 <body style="background-color: #f5faff;">
28
29 <!-- ==================================================================== -->
30
31 <div id="top" class="page">
32
33 <!-- Navigation links -->
34 <table style="width: 100%;">
35 <tr>
36 <td><a href="toc.html">Back to Table of Contents</a></td>
37 <td style="text-align: right;"><a href="letters.html#top">Next: Writing letters</a></td>
38 </tr>
39 </table>
40
41 <h1 class="docs">Bibliographies and references</h1>
42
43 <div style="width: 75%; margin: auto;">
44 <ul class="no-enumerator">
45 <li><a href="#intro-ref">Introduction to bibliographies and references</a></li>
46 <li><a href="#tutorial-ref">Tutorial on <kbd>refer</kbd> usage with mom</a>
47 <ul style="margin-left: -.5em; list-style-type: disc;">
48 <li><a href="#db-ref">Create a <kbd>refer</kbd> database</a></li>
49 <li><a href="#rcommands-ref">Insert a <kbd>refer</kbd> block</a></li>
50 <li><a href="#placement-ref">Tell mom where you want your references (if footnotes or endnotes)</a></li>
51 <li><a href="#accessing-ref">Accessing references in the database</a></li>
52 <li><a href="#fn-en-recipe">Entering footnote/endnote references</a></li>
53 <li><a href="#parenthetical">Parenthetical insertions</a></li>
54 <li><a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</a></li>
55 <li><a href="#bibliography-recipe">Generating a comprehensive bibliography</a></li>
56 <li><a href="#invoking-ref">Invoking groff with mom and <kbd>refer</kbd></a></li>
57 </ul></li>
58 <li><a href="#mla">MLA (Modern Language Association) style</a>
59 <ul style="margin-left: -.5em; list-style-type: disc;">
60 <li><a href="#ref-styles">Types of references (endnote, footnote, or embedded in text)</a></li>
61 <li><a href="#parenthetical">Inserting parenthetical references into the text</a></li>
62 </ul></li>
63 <li><a href="#database">The <kbd>refer</kbd> database</a>
64 <ul style="margin-left: -.5em; list-style-type: disc;">
65 <li><a href="#database-intro">Introduction</a></li>
66 <li><a href="#database-rules">Rules</a></li>
67 <li><a href="#fields-quick">Quick guide to field identifiers (%A for author, %T for title, etc)</a></li>
68 <li><a href="#fields-specifics">Field identifiers: specifics, usage and examples</a></li>
69 </ul></li>
70 <li><a href="#index-ref">The bibliography and reference macros</a>
71 <ul style="margin-left: -.5em; list-style-type: disc;">
72 <li><a href="#biblio-control">Bibliography control macros and defaults</a></li>
73 </ul></li>
74 </ul>
75 </div>
76
77 <div class="rule-medium"><hr/></div>
78
79 <h2 id="intro-ref" class="docs">Introduction to bibliographies and references</h2>
80
81 <p>
82 Mom provides the ability to format and generate bibliographies, as
83 well as footnote or endnote references, in MLA (Modern Language
84 Association) style. She accomplishes this by working in conjunction
85 with a special groff program called <kbd>refer</kbd>.
86 </p>
87
88 <p>
89 <kbd>Refer</kbd> requires first that you create a database of works
90 that will be cited in your documents. Once that&#8217;s done, special
91 macros let you briefly key in references to entries in the database
92 and have mom format them with respect to order, punctuation and
93 italicization in footnotes, endnotes, or a full bibliography.
94 </p>
95
96 <p>
97 <kbd>Refer</kbd> has been around for a long time. It&#8217;s
98 powerful and has many, many features. Unfortunately, the manpage
99 (<kbd>man&nbsp;refer</kbd>), while complete and accurate, is
100 dense and not a good introduction. (It&#8217;s a classic manpage
101 Catch-22: the manpage is useful only after you know how to use the
102 program.)
103 </p>
104
105 <p>
106 In order to get mom users up and running with <kbd>refer</kbd>,
107 this section of mom&#8217;s documentation focuses exclusively, in a
108 recipe-like manner, on what you need to know to use <kbd>refer</kbd>
109 satisfactorily in conjunction with mom. The instructions are not to
110 be taken as a manual on full <kbd>refer</kbd> usage.
111 </p>
112
113 <p>
114 If you&#8217;re already a <kbd>refer</kbd> user, the information
115 herein will be useful for adapting your current <kbd>refer</kbd>
116 usage to mom&#8217;s way of doing things. If you&#8217;ve never
117 used <kbd>refer</kbd>, the information is essential, and, in many
118 cases, may be all you need.
119 </p>
120
121 <p>
122 I encourage anyone interested in what MLA style looks
123 like&mdash;and, by extension, how your bibliographies and references
124 will look after mom formats them&mdash;to check out
125 <br/>
126 <span class="pre-in-pp">
127 <a href="http://www.aresearchguide.com/12biblio.html">http://www.aresearchguide.com/12biblio.html</a>
128 </span>
129 or any other website or reference book on MLA style.
130 </p>
131
132 <div class="rule-short" style="margin-top: 1em;"><hr/></div>
133
134 <div class="examples-container" style="margin-top: 1.5em; margin-bottom: 1.5em;">
135 <h3 id="tutorial-ref" class="docs">Tutorial on refer usage with mom</h3>
136 <ol style="margin-top: 1em; margin-bottom: -.5em;">
137 <li><a href="#db-ref">Create a <kbd>refer</kbd> database</a>
138 <ul style="margin-left: -.5em; list-style-type: disc;">
139 <li><a href="#example-refer-database">example <kbd>refer</kbd> database</a></li>
140 </ul></li>
141 <li><a href="#rcommands-ref">Insert a <kbd>refer</kbd> block</a>
142 <ul style="margin-left: -.5em; list-style-type: disc;">
143 <li><a href="#fn-en-block">refer block for footnotes/endnotes</a></li>
144 <li><a href="#in-text-block">refer block for parenthetical insertions into running text</a></li>
145 <li><a href="#bibliography-block">refer block for comprehensive bibliographies (reading lists)</a></li>
146 </ul></li>
147 <li><a href="#placement-ref">Tell mom where you want your references (if footnotes or endnotes)</a></li>
148 <li><a href="#accessing-ref">Accessing references in the database</a></li>
149 <li><a href="#fn-en-recipe">Entering footnote/endnote references</a></li>
150 <li><a href="#parenthetical-insertions">Parenthetical insertions</a></li>
151 <li><a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</a></li>
152 <li><a href="#bibliography-recipe">Generating a comprehensive bibliography</a></li>
153 <li><a href="#invoking-ref">Invoking groff with mom and <kbd>refer</kbd></a></li>
154 </ol>
155
156 <h4 id="db-ref" class="docs">1. Create a refer database</h4>
157
158 <p>
159 The first step in using <kbd>refer</kbd> with mom is creating a
160 database. The database is a text file containing entries for the
161 works you will be citing. You may set up separate databases for
162 individual documents, or create a large database that can be
163 accessed by many documents.
164 </p>
165
166 <p>
167 Entries (&#8220;records&#8221; in refer-speak) in the database
168 are separated from each other by a single, blank line. The records
169 themselves are composed of single lines (&#8220;fields&#8221;) with
170 no blank lines between them. Each field begins with a percent
171 sign and a single letter (the &quot;field identifier&quot;)
172 e.g. <kbd>%A</kbd> or <kbd>%T</kbd>. The letter identifies
173 what part of a bibliographic entry the field refers to: Author,
174 Title, Publisher, Date, etc. After the field identifier comes
175 a single space, followed by the information appropriate to
176 field.
177 </p>
178
179 <!-- Add rules for punctuation and italics -->
180
181 <p>
182 Here&#8217;s an example database containing two records so you can
183 visualize what the above paragraph says.
184 </p>
185
186 <div id="example-refer-database" class="examples" style="margin-top: -.5em;">Example <kbd>refer</kbd> database</div>
187 <div class="examples-container" style="padding-bottom: 1em;">
188 <span class="pre">
189 %A Terry Pratchett
190 %A Neil Gaiman
191 %T Good Omens
192 %C London
193 %I Gollancz
194 %D 1990
195
196 %A Peter Schaffter
197 %T The Schumann Proof
198 %C Toronto
199 %I RendezVous Press
200 %D 2004
201 </span>
202 </div>
203
204 <p>
205 The order in which you enter fields doesn&#8217;t matter.
206 <kbd>Refer</kbd> will re-arrange them for you.
207 </p>
208
209 <h4 id="rcommands-ref" class="docs">2. Insert a refer block</h4>
210
211 <p>
212 Having set up your database, you now need to put some
213 <kbd>refer</kbd>-specific commands in your mom file.
214 </p>
215
216 <p>
217 <kbd>Refer</kbd> commands are introduced by a single line
218 containing <kbd>.R1</kbd>, and concluded with a single line
219 containing <kbd>.R2</kbd>. What goes between the <kbd>.R1</kbd>
220 and <kbd>.R2</kbd> lines is called a &#8220;refer block&#8221;.
221 <kbd>Refer</kbd> commands in a refer block should be entered one per
222 line, in lowercase letters, <i>with no initial period</i> (dot).
223 The actual commands depend on whether you want your references
224 </p>
225 <ul>
226 <li>in footnotes/endnotes</li>
227 <li>parenthetically inserted (in abbreviated form) into running text,
228 referring to a works-cited list (bibliography)</li>
229 <li>to generate a comprehensive bibliography (a reading list)</li>
230 </ul>
231
232 <h5 id="fn-en-block" class="docs" style="font-size: 90%; margin-top: .25em;">Refer block for footnotes/endnotes</h5>
233
234 <p style="margin-top: .5em;">
235 If you want footnote or endnote references, place this block at
236 the <i>top</i> of your mom file.
237 </p>
238
239 <div id="refer-block1" class="examples" style="margin-top: -.5em;">
240 <div class="examples-container" style="padding-bottom: 1em;">
241 <span class="pre">
242 .R1
243 no-label-in-text
244 no-label-in-reference
245 join-authors " and " ", " ", and "
246 database &lt;full path to database&gt;
247 .R2
248 </span>
249 </div>
250 </div>
251 <p style="margin-top: .5em; font-size: 95%; line-height: 120%;">
252 <kbd>&lt;full&nbsp;path&nbsp;to&nbsp;the&nbsp;database&gt;</kbd>
253 means the full path including the filename, e.g.
254 <kbd>/home/user/refer/my-database-file</kbd>.
255 </p>
256
257 <h5 id="in-text-block" class="docs" style="font-size: 90%; margin-top: .25em;">Refer block for parenthetical insertions into running text</h5>
258
259 <p style="margin-top: .5em;">
260 If you want short, parenthetical insertions into running text,
261 referring to works cited in a bibliography, place this block at
262 the <i>top</i> of your mom file.
263 </p>
264
265 <div id="refer-block2" class="examples" style="margin-top: -.5em;">
266 <div class="examples-container" style="padding-bottom: 1em;">
267 <span class="pre">
268 .R1
269 label "(A.n|Q)"
270 bracket-label " (" ")" ", "
271 join-authors ", and " ", " ", and "
272 move-punctuation
273 reverse A1
274 sort A1Q1T1B1E1
275 database &lt;full path to database&gt;
276 .R2
277 </span>
278 </div>
279 </div>
280 <p style="margin-top: .5em; font-size: 95%; line-height: 120%;">
281 <kbd>&lt;full&nbsp;path&nbsp;to&nbsp;the&nbsp;database&gt;</kbd>
282 means the full path including the filename, e.g.
283 <kbd>/home/user/refer/my-database-file</kbd>.
284 </p>
285
286 <h5 id="bibliography-block" class="docs" style="font-size: 90%; margin-top: .25em;">Refer block for comprehensive bibliographies</h5>
287
288 <p style="margin-top: .5em;">
289 If you want to output an entire <kbd>refer</kbd> database, or
290 generate a comprehensive bibliography (a reading list) from a
291 database, place this block at the <i>bottom</i> of your mom file,
292 either prior to or immediately after invoking
293 <a href="#bibliography">BIBLIOGRAPHY</a>.
294 </p>
295
296 <div id="refer-block3" class="examples" style="margin-top: -.5em;">
297 <div class="examples-container" style="padding-bottom: 1em;">
298 <span class="pre">
299 .R1
300 no-label-in-text
301 no-label-in-reference
302 join-authors ", and " ", " ", and "
303 sort A1Q1T1B1E1
304 reverse A1
305 database &lt;full path to database&gt;
306 .R2
307 </span>
308 </div>
309 </div>
310
311 <p style="margin-top: .5em; font-size: 95%; line-height: 120%;">
312 <kbd>&lt;full&nbsp;path&nbsp;to&nbsp;the&nbsp;database&gt;</kbd>
313 means the full path including the filename, e.g.
314 <kbd>/home/user/refer/my-database</kbd>.
315 </p>
316
317 <h4 id="placement-ref" class="docs">3. Tell mom where you want your references</h4>
318
319 <p>
320 If you want references in footnotes, issue the instruction
321 <br/>
322 <span class="pre-in-pp">
323 .FOOTNOTE_REFS
324 </span>
325 anywhere before the first citation in your file. Footnote markers
326 will be inserted into the text, and the bibliographic information
327 for the citation will appear as a footnote.
328 </p>
329
330 <p>
331 If you want references in endnotes, issue the instruction
332 <br/>
333 <span class="pre-in-pp">
334 .ENDNOTE_REFS
335 </span>
336 anywhere before the first citation in your file. Endnote markers
337 will be inserted into the text, and the bibliographic information
338 for the citation will appear as an endnote entry.
339 </p>
340
341 <p>
342 Note that if you want references parenthetically inserted
343 into running text, referring to entries in a works-cited list
344 (bibliography) that <kbd>mom</kbd> and <kbd>refer</kbd> assemble
345 automatically, no special instructions are required. See
346 <a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</a>
347 for how to output the collected references.
348 </p>
349
350 <p>
351 For outputting an entire <kbd>refer</kbd> database, or
352 generating a comprehensive reading list from a database, see the
353 macro
354 <a href="#bibliography">BIBLIOGRAPHY</a>.
355 </p>
356
357 <h4 id="accessing-ref" class="docs">4. Accessing references in the database</h4>
358
359 <p>
360 References are accessed by putting keywords from the desired database
361 record between two special <kbd>refer</kbd> commands:
362 <br/>
363 <span class="pre-in-pp">
364 .[
365 </span>
366 and
367 <br/>
368 <span class="pre-in-pp">
369 .]
370 </span>
371 Keywords are any word, or set of words, that identify a database
372 record unambiguously. Thus, if you have only one database record for
373 the author Ray Bradbury,
374 <br/>
375 <span class="pre-in-pp">
376 .[
377 bradbury
378 .]
379 </span>
380 is sufficient. However, if your database contains several records
381 for books by Bradbury, say, <i>Fahrenheit 451</i> and <i>The
382 Martian Chronicles</i>,
383 &#8220;<kbd>bradbury&nbsp;451</kbd>&#8221; and
384 &#8220;<kbd>bradbury&nbsp;martian</kbd>&#8221; would identify the two records unambiguously.
385 </p>
386
387 <p>
388 A special database field identifier, <kbd>%K</kbd>, lets you create
389 unique keywords for database records to help clear up any ambiguity.
390 </p>
391
392 <p>
393 Notice that you don&#8217;t have to worry about capitalization when
394 entering keywords.
395 </p>
396
397 <h4 id="fn-en-recipe" class="docs">5. Entering footnote/endnote references</h4>
398
399 <p>
400 Depending on which you have issued, a
401 <kbd><a href="#footnote-refs">.FOOTNOTE_REFS</a></kbd>
402 or an
403 <kbd><a href="#endnote-refs">.ENDNOTE_REFS</a></kbd>
404 command, entering references is done like this:
405 <br/>
406 <span class="pre-in-pp">
407 .REF
408 .[
409 keyword(s)
410 .]
411 .REF
412 </span>
413 If FOOTNOTE_REFS is in effect, the reference between the first
414 and second <kbd>.REF</kbd> will be treated as a footnote. If
415 ENDNOTE_REFS, it will be treated as an endnote. Endnote references
416 must be explicitly output with
417 <a href="docelement.html#ENDNOTES">ENDNOTES</a>
418 at the end of your file, before
419 <a href="tables-of-contents.html#TOC">TOC</a>.
420 </p>
421
422 <div class="box-important">
423 <p class="tip">
424 <span class="important">Important:</span>
425 REF behaves identically to
426 <a href="docelement.html#footnote">FOOTNOTE</a>
427 and
428 <a href="docelement.html#endnote">ENDNOTE</a>
429 with respect to the use of the <kbd>\c</kbd> inline escape. Please
430 read the
431 <a href="docelement.html#footnote-note">HYPER IMPORTANT NOTE</a>
432 found in the document entry for FOOTNOTE (which also applies to
433 ENDNOTE).
434 </p>
435 </div>
436
437 <h4 id="parenthetical-insertions" class="docs">6. Parenthetical insertions</h4>
438
439 <p>
440 See
441 <a href="#parenthetical">Inserting parenthetical references into
442 text</a>.
443 </p>
444
445 <h4 id="bibliography-from-embedded" class="docs">7. Generating a bibliography from parenthetical insertions</h4>
446
447 <p>
448 To generate a bibliography from works cited by parenthetical
449 insertions in the text, put this at the end of your document, before
450 <kbd><a href="tables-of-contest.html#TOC">.TOC</a></kbd>.
451 <br/>
452 <span class="pre-in-pp">
453 .BIBLIOGRAPHY
454 .[
455 $LIST$
456 .]
457 .BIBLIOGRAPHY OFF
458 </span>
459 </p>
460
461 <h4 id="bibliography-recipe" class="docs">8. Generating a comprehensive bibliography</h4>
462
463 <p>
464 You can also generate a comprehensive bibliography, which is to say a
465 bibliography containing more works than are actually cited (a
466 &#8220;reading list&#8221;), by placing references between
467 <kbd><a href="#bibliography">.BIBLIOGRAPHY</a></kbd>
468 and
469 <kbd><a href="#bibliography">.BIBLIOGRAPHY&nbsp;OFF</a></kbd>.
470 Once you have input the desired references, insert
471 <br/>
472 <span class="pre-in-pp">
473 .[
474 $LIST$
475 .]
476 </span>
477 and follow it with <kbd>.BIBLIOGRAPHY&nbsp;OFF</kbd>. Study the
478 example below if you&#8217;re having trouble visualizing this.
479 </p>
480
481 <div id="example-bibliography" class="examples" style="margin-top: -.5em;">Example bibliography</div>
482 <div class="examples-container" style="padding-bottom: 1em;">
483 <span class="pre">
484 .BIBLIOGRAPHY
485 .R1
486 no-label-in-text
487 no-label-in-reference
488 join-authors ", and " ", " ", and "
489 sort A1Q1T1B1E1
490 reverse A1
491 database &lt;full path to database&gt;
492 .R2
493 .[
494 bradbury
495 .]
496 .[
497 pratchett
498 .]
499 .[
500 $LIST$
501 .]
502 .BIBLIOGRAPHY OFF
503 </span>
504 </div>
505
506 <p>
507 Alternatively, you can output an entire database as a
508 bibliography. Do the following at the end of your document, before
509 <kbd><a href="tables-of-contest.html#TOC">.TOC</a></kbd>.
510 <br/>
511 <span class="pre-in-pp">
512 .BIBLIOGRAPHY
513 .R1
514 no-label-in-text
515 no-label-in-reference
516 join-authors ", and " ", " ", and "
517 sort A1Q1T1B1E1
518 reverse A1
519 bibliography &lt;full path to database&gt;
520 .R2
521 .BIBLIOGRAPHY OFF
522 </span>
523 </p>
524
525 <h4 id="invoking-ref" class="docs">9. Invoking groff with mom and refer</h4>
526
527 <p>
528 So, now you&#8217;ve got a document formatted properly to use
529 references processed with <kbd>refer</kbd>, what do you do to output
530 the document?
531 </p>
532
533 <p>
534 It&#8217;s simple. Pass the <kbd>-R</kbd> flag to pdfmom or groff,
535 like this:
536 <br/>
537 <span class="pre-in-pp">
538 pdfmom -R &lt;filename&gt; ...
539 </span>
540 </p>
541 </div>
542
543 <div class="rule-medium" style="margin-top: 1em;"><hr/></div>
544
545 <h2 id="mla" class="docs">MLA (Modern Language Association) style</h2>
546
547 <h3 id="ref-styles" class="docs">Types of references (endnote, footnote, or embedded in text)</h3>
548
549 <p>
550 MLA allows for three types of references, or referencing styles:
551 </p>
552 <ul style="margin-top: -.5em;">
553 <li>short, parenthetical references in the text, linked to a
554 works-cited list (bibliography) at the end of the document</li>
555 <li>footnote references</li>
556 <li>endnote references</li>
557 </ul>
558
559 <p style="margin-top: -.5em;">
560 There are significant differences between the way footnote/endnote
561 references should be formatted, and the formatting style of
562 bibliographies. One example is that footnote/endnote references
563 should have their first lines indented, whereas bibliographic
564 references should have their second lines indented. Fortunately,
565 with mom, there&#8217;s no need to concern yourself with the differences;
566 they&#8217;re taken care of automatically.
567 </p>
568
569 <p>
570 In terms of inserting references into your documents,
571 footnote/endnote references are input in a manner similar to
572 entering any other kind of
573 <a href="docelement.html#footnote-into">footnote</a>
574 or
575 <a href="docelement.html#endnote-into">endnote</a>.
576 Parenthetical references, however, need to be handled differently.
577 See the next section.
578 </p>
579
580 <h3 id="parenthetical" class="docs">Inserting parenthetical references into the text</h3>
581
582 <p>
583 MLA style prefers restricting the information in parenthetical
584 references to the barest minimum needed to identify works
585 in the works-cited list (the bibliography). Typically, a
586 parenthetical insertion is just the author&#8217;s last name
587 followed by the page number of the cited work (if only one work by
588 that author is cited), or by the author, a shortened title of the
589 work, and the page number (if more than one work is cited).
590 </p>
591
592 <p>
593 This necessitates a slightly fiddly way of entering parenthetical
594 references, though not by any means difficult or hard to make sense
595 of.
596 </p>
597
598 <p>
599 The <kbd>refer</kbd> block suggested
600 <a href="#refer-block2">here</a>
601 for parenthetical references prints only the author&#8217;s
602 last name from the database record identified by your keywords
603 (the <kbd>label</kbd> command), surrounded by parentheses (the
604 <kbd>bracket-label</kbd> command). Therefore, assuming you are
605 citing Ray Bradbury&#8217;s <i>The Martian Chronicles</i>, and it is
606 the only work by Bradbury mentioned in the text,
607 <br/>
608 <span class="pre-in-pp">
609 ...end of sentence.
610 .[
611 martian chronicles
612 .]
613 A new sentence...
614 </span>
615 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.
616 <i>The Martian Chronicles</i> will be added
617 to the works-cited list generated at the end of the document if it
618 is not already present as the result of an earlier reference.
619 </p>
620
621 <p>
622 If you need a page number to identify where in <i>The Martian
623 Chronicles</i> to find a specific quote
624 <br/>
625 <span class="pre-in-pp">
626 "...aluminum roaches and iron crickets."
627 .[
628 [ martian chronicles
629 .] 168)
630 A new sentence...
631 </span>
632 results in <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;
633 (which is excruciatingly correct MLA style). The
634 &#8220;<kbd>[</kbd>&#8221; before <kbd>martian&nbsp;chronicles</kbd> tells
635 refer to print the opening parenthesis; any text immediately
636 following the &#8220;<kbd>.]</kbd>&#8221;, including spaces,
637 <i>replaces</i> the closing parenthesis. (Notice that you have to
638 add the closing parenthesis yourself after the page number.)
639 </p>
640
641 <p>
642 If your document cites more than one work by Bradbury and you need
643 a title and page number in addition to the author&#8217;s name in
644 the inline reference,
645 <br/>
646 <span class="pre-in-pp">
647 "...aluminum roaches and iron crickets."
648 .[
649 [ bradbury martian
650 .], \fIChronicles\fP 168)
651 A new sentence...
652 </span>
653 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;.
654 </p>
655
656 <div class="examples-container" style="margin-top: 1.5em; margin-bottom: 1.5em;">
657 <h3 class="docs">The <span style="text-transform: none">&#8216;label&#8217;</span><span style="text-transform: uppercase"> and</span> <span style="text-transform: none">&#8216;bracket-label&#8217;</span><span style="text-transform: uppercase"> commands</span></h3>
658
659 <p>
660 The <kbd>label</kbd> and <kbd>bracket-label</kbd> commands in
661 the refer block allow you to customize what information goes
662 into parenthetical references, and how they should be formatted.
663 <kbd>label</kbd> dictates which fields from the database record
664 to print and how to punctuate them. <kbd>bracket-label</kbd>
665 controls the bracketing style. Users are encouraged to consult
666 <kbd>man&nbsp;refer</kbd> for usage.
667 </p>
668
669 <p>
670 Here&#8217;s an example of how to set up APA-style references, which
671 require the author and date of publication, optionally with a page
672 number or range of pages.
673 <br/>
674 <span class="pre-in-pp">
675 .R1
676 label "(A.n|Q) ', ' D.y"
677 bracket-label " (" ")" ", "
678 join-authors ", and " ", " ", and "
679 move-punctuation
680 reverse A1
681 sort A1Q1T1B1E1
682 database /home/peter/Groff-mom/Testing/Refer/refer-database
683 .R2
684 </span>
685 Assuming a reference to a work by Ursula Leguin published in 1980
686 <br/>
687 <span class="pre-in-pp">
688 .[
689 leguin
690 .]
691 </span>
692 produces
693 <span style="font-family: times; font-size: 105%; font-weight: bold">
694 (Leguin, 1980)
695 </span>.
696 If a page number is also required
697 <br/>
698 <span class="pre-in-pp">
699 .[
700 [ leguin
701 .], p. 73)
702 </span>
703 produces
704 <span style="font-family: times; font-size: 105%; font-weight: bold">(Leguin, 1980, p. 73)</span>.
705 </p>
706 </div>
707
708 <div class="rule-medium" style="margin-top: 1em;"><hr/></div>
709
710 <h2 id="database" class="docs">The refer database</h2>
711
712 <h3 id="database-intro" class="docs">Introduction</h3>
713
714 <p style="margin-top: .5em;">
715 The heart and soul of <kbd>refer</kbd> is the bibliographic
716 database. Knowing how to create records (i.e. the entries for works
717 cited in a document) is largely a question matching data (author,
718 title, publisher, etc) with the correct field identifier. For
719 example, if you&#8217;re citing from a scholarly journal, you need to know
720 that <kbd>%J</kbd> is the field identifier for journal names and
721 <kbd>%N</kbd> is the field identifier for the journal number. Use
722 the
723 <a href="#fields-quick">Quick list of field identifiers</a>
724 as your guide.
725 </p>
726
727 <h3 id="database-rules" class="docs">The rules</h3>
728
729 <p style="margin-top: .5em;">
730 Entering the data correctly is also important. Fortunately, there
731 are very few rules, and those there are make sense. In a nutshell:
732 </p>
733 <ul style="margin-top: -.5em;">
734 <li>enter the data in each field in natural order; author John Smith is
735 &#8220;John Smith&#8221;, editor Jane Doe is &#8220;Jane Doe&#8221;</li>
736 <li>capitalize all proper nouns and words in titles as you expect
737 to see them; otherwise, use lowercase</li>
738 <li>use no terminating punctuation unless required; typically,
739 required punctuation is the period after a shortform
740 (&#8220;ed.&#8221; or &#8220;eds.&#8221;, &#8220;Jr.&#8221;,
741 etc) or a question mark or exclamation mark at the end of a
742 title</li>
743 <li>if part of a field needs to be set off in single-quotes, use
744 <kbd>\[oq]</kbd> and <kbd>\[cq]</kbd> (openquote, closequote) rather than the
745 single-quote (or apostrophe) character on your keyboard</li>
746 <li>if part of a field needs to be forced into italics, use the
747 escapes <kbd><span class="nobr">\*[IT]</span></kbd> and
748 <kbd><span class="nobr">\*[PREV]</span></kbd>; if the italicized portion
749 concludes the field, omit <kbd><span class="nobr">\*[PREV]</span></kbd></li>
750 <li>if you require characters with accents, ligatures or special
751 symbols, use groff&#8217;s &#8220;named&#8221; glyphs (e.g.
752 <kbd>\['e]</kbd> for <kbd>é</kbd>); a full list can be found in
753 <kbd>man groff_char</kbd></li>
754 </ul>
755
756 <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>
757
758 <div class="examples-container" style="padding-bottom: 1em;">
759 <span class="pre">
760 <a class="quick" href="#A">%A</a> author &ndash; records may contain multiple authors,
761 one per line
762 <a class="quick" href="#Q">%Q</a> non-human author &ndash; corporate author, e.g. National Geographic;
763 may also be used for exceptional reference types
764 <a class="quick" href="#m">%m</a> multiple authors &ndash; whenever "et al." is desirable
765 <a class="quick" href="#i">%i</a> idem &ndash; multiple works by the same author
766 <a class="quick" href="#p">%p</a> post-author &ndash; post-author information (e.g. appendix,
767 foreword, letter)
768 %T title &ndash; primary title (of a book) or the
769 title of an article (within a scholarly
770 journal or a magazine)
771 %B book title &ndash; when %T contains the title of an article;
772 <a class="quick" href="#q">%q</a> force quote &ndash; force a title into double-quotes
773 %t reprint title &ndash; if different from a work's original title
774 %b main author &ndash; when citing a preface, foreword,
775 introduction, or afterword, the author of
776 the complete original work
777 <a class="quick" href="#E">%E</a> editor &ndash; records may contain multiple editors,
778 one per line
779 <a class="quick" href="#l">%l</a> translator &ndash; if more than one translator, all the
780 names
781 %r translator &ndash; if tr. and ed. are one in the same
782 and editor
783 %M magazine or &ndash; when %T contains the title of an article
784 newspaper
785 %J journal &ndash; when %T contains the title of an article
786 %e edition &ndash; number or name of an edition
787 (e.g. Second, 2nd, Collector's, etc.)
788 %S series &ndash; series name of books or journals
789 %V volume &ndash; volume number (of books)
790 %N journal number &ndash; journal or magazine number
791 %R report number &ndash; technical report number
792 %G gov&#8217;t. &ndash; government ordering number
793 <a class="quick" href="#O">%O</a> other &ndash; information for which there is no appropriate
794 field letter
795 <a class="quick" href="#C">%C</a> city &ndash; city of publication
796 %I publisher &ndash; publisher
797 %D date &ndash; publication date
798 <a class="quick" href="#d">%d</a> original
799 publication date &ndash; if different from date of publication
800 <a class="quick" href="#P">%P</a> page(s) &ndash; page number or range
801 <a class="quick" href="#n">%n</a> annotation &ndash; annotation to the reference
802 %s site name &ndash; for internet references, the website name
803 %c content &ndash; for internet references, the source of
804 the material (e.g. Web or Email); for websites,
805 the content, if unclear
806 %o organization &ndash; for internet sites, the organization, group
807 or sponsor of the site
808 %a access date &ndash; for internet sites, the date of access
809 %u URL &ndash; for internet sites, the full URL
810 <a class="quick" href="#K">%K</a> keywords &ndash; words that help clear up ambiguities in
811 the database
812 </span>
813 </div>
814
815 <h3 id="fields-specifics" class="docs">Field identifiers: specifics, usage and examples</h3>
816
817 <h4 id="A" class="docs fields">%A &ndash; author field</h4>
818
819 <p>
820 For multiple authors, enter each in a separate <kbd>%A</kbd>
821 field in the order in which they should appear. If the author on
822 the title page is the editor (say, a book of short stories edited by
823 Ray Bradbury), add <kbd>, ed.</kbd> to the end of the
824 <kbd>%A</kbd> field, like this:
825 <br/>
826 <span class="pre-in-pp">
827 %A Ray Bradbury, ed.
828 </span>
829 Do not use the <kbd>%E</kbd> field in these instances. If the work
830 has several such editors, enter each in a separate <kbd>%A</kbd>
831 field, as for multiple authors, and add <kbd>, eds.</kbd> to the
832 last one, like this:
833 <br/>
834 <span class="pre-in-pp">
835 %A Jane Dearborne
836 %A Bill Parsons, eds.
837 </span>
838 </p>
839
840 <h4 id="Q" class="docs fields">%Q &ndash; exceptional entries</h4>
841
842 <p>
843 Sometimes, a work has no author or title information, for example a
844 book review in a newspaper. In such cases, use <kbd>%Q</kbd>, like
845 this:
846 <br/>
847 <span class="pre-in-pp">
848 %Q Rev. of \*[IT]Mean Streets Omnibus\*[PREV], ed. Raymond Hammett
849 %M Times Literary Supplement
850 %D 7 July 1972
851 </span>
852 </p>
853
854 <h4 id="m" class="docs fields">%m &ndash; multiple authors (et al.)</h4>
855
856 <p>
857 Whenever it&#8217;s desirable to abbreviate a list of authors with
858 &#8220;et al.&#8221; enter it in the <kbd>%m field</kbd>, like this:
859 <br/>
860 <span class="pre-in-pp">
861 %A Paul Lauter
862 %A Doug Scofield
863 %m et al.
864 </span>
865 </p>
866
867 <h4 id="i" class="docs fields">%i &ndash; idem</h4>
868
869 <p>
870 Whenever there are several works by the same author, fill out the
871 <kbd>%A</kbd> field with the author&#8217;s name and follow it with the
872 <kbd>%i idem</kbd>, like this:
873 <br/>
874 <span class="pre-in-pp">
875 %A Jonathon Schmidt
876 %i idem
877 </span>
878 Per MLA style, the author&#8217;s name will be replaced by a long dash.
879 </p>
880
881 <p>
882 If it&#8217;s necessary to state the role the author served (say,
883 editor or translator), fill out the <kbd>%i</kbd> field with the
884 information minus <kbd>idem</kbd>, like this:
885 <br/>
886 <span class="pre-in-pp">
887 %A Ray Bradbury
888 %i ed.
889 %T Timeless Stories for Today and Tomorrow
890 </span>
891 </p>
892
893 <h4 id="p" class="docs fields">%p &ndash; post-author information</h4>
894
895 <p>
896 When citing from a preface, foreword, introduction, afterword,
897 or appendix, MLA requires that the information come between the
898 author&#8217;s name and the work&#8217;s title, like this:
899 <br/>
900 <span class="pre-in-pp">
901 %A Martin Packham, Jr.
902 %p appendix
903 %T Why the West was Won
904 </span>
905 Do not capitalize the first word in the <kbd>%p</kbd> field unless
906 it is a proper noun.
907 </p>
908
909 <h4 id="q" class="docs fields">%q &ndash; force title into double-quotes</h4>
910
911 <p>
912 Occasionally, you may not be able to use <kbd>%T</kbd> for the
913 title because doing so will cause it to come out in italics when
914 double-quotes are called for. An example of this is when citing
915 from a dissertation. Use <kbd>%q</kbd> to get around the problem,
916 like this:
917 <br/>
918 <span class="pre-in-pp">
919 %A Carol Sakala
920 %q Maternity Care Policy in the United States
921 %O diss., Boston U, 1993
922 </span>
923 </p>
924
925 <h4 id="E" class="docs fields">%E &ndash; editor</h4>
926
927 <p>
928 Use this only if the author and the editor are not one in the same,
929 e.g.
930 <br/>
931 <span class="pre-in-pp">
932 %A Geoffrey Chaucer
933 %T The Works of Geoffrey Chaucer
934 %E F. W. Robinson
935 </span>
936 </p>
937
938 <h4 id="l" class="docs fields">%l &ndash; translator</h4>
939
940 <p>
941 If there is more than one translator, enter all the names, with
942 appropriate conjunctions and punctuation, like this:
943 <br/>
944 <span class="pre-in-pp">
945 %A Feodor Dostoevsky
946 %T Crime and Punishment
947 %l Jessie Coulson, Marjorie Benton, and George Bigian
948 </span>
949 </p>
950
951 <h4 id="O" class="docs fields">%O &ndash; other</h4>
952
953 <p>
954 Occasionally, MLA requires additional information after the title
955 but before the publication data (city/publisher/date), for instance,
956 the number of volumes in a series, or the fact that the work cited
957 is a dissertation. Here are two examples:
958 <br/>
959 <span class="pre-in-pp">
960 %A Arthur M. Schlesinger
961 %T History of U.S. Political Parties
962 %O 4 vols.
963 %C New York
964 %I Chelsea
965 %D 1973
966
967 %A Carol Sakala
968 %q Maternity Care Policy in the United States
969 %O diss., Boston U, 1993
970 </span>
971 Do not capitalize the first word of the <kbd>%O</kbd> field unless
972 it is a proper noun.
973 </p>
974
975 <p>
976 Generally, consider <kbd>%O</kbd> a catch-all for information that
977 does not match the criterion of any existing field identifier.
978 </p>
979
980 <h4 id="C" class="docs fields">%C &ndash; city</h4>
981
982 <p>
983 Normally, <kbd>%C</kbd> takes the name of the city of publication,
984 and that&#8217;s all. In the case of a republished book, if new material
985 has been added, put such information in the <kbd>%C</kbd>
986 field, like this:
987 <br/>
988 <span class="pre-in-pp">
989 %A Theodore Dreiser
990 %T Sister Carrie
991 %d 1900
992 %C Introd. E. L. Doctorow, New York
993 </span>
994 </p>
995
996 <h4 id="d" class="docs fields">%d &ndash; original date of publication</h4>
997
998 <p>
999 Normally, all that is required in the <kbd>%d</kbd> field is the
1000 original date of publication. However, if supplementary original
1001 publication data is desired, include it in the field, like this:
1002 <br/>
1003 <span class="pre-in-pp">
1004 %A Kazuo Ishiguro
1005 %T The Remains of the Day
1006 %d London: Faber, 1989
1007 %C New York
1008 %I Knopf
1009 %D 1990
1010 </span>
1011 </p>
1012
1013 <h4 id="K" class="docs fields">%K &ndash; keywords</h4>
1014
1015 <p>
1016 <kbd>Refer</kbd> hates ambiguity, and complains when encountering
1017 it. Ambiguities result from the duplication of any word in more
1018 than one database record when that word is used to identify a
1019 reference in your input file. Use <kbd>%K</kbd> to create unique
1020 keywords found nowhere else in the database.
1021 </p>
1022
1023 <p>
1024 Imagine, for example, that your database contains records for
1025 Ray Bradbury&#8217;s <i>The Illustrated Man</i>, another record for
1026 <i>The Illustrated Bradbury</i> and a third for <i>Bradbury,
1027 Illustrated</i>. <kbd>%K</kbd> can be used to clear up any
1028 ambiguities by assigning a unique word to each record, for example
1029 <kbd>%K ill-man</kbd> for the first, <kbd>%K ill-brad</kbd> for the
1030 second, and <kbd>%K brad-ill</kbd> for the third.
1031 </p>
1032
1033 <h4 id="P" class="docs fields">%P &ndash; pages</h4>
1034
1035 <p>
1036 When citing page numbers, which is often the case with footnotes
1037 and endnotes, it is not necessary to put the numbers in the database
1038 records. The <kbd>%P</kbd> field can be added underneath the
1039 keyword(s) in the <kbd>.[</kbd> / <kbd>.]</kbd> entries in your
1040 input file, allowing you to recycle database records. For example,
1041 <br/>
1042 <span class="pre-in-pp">
1043 %A Frye
1044 %T Anatomy
1045 %K frye-anat
1046 </span>
1047 could be your short record for Northrop Frye&#8217;s <i>The Anatomy of
1048 Criticism</i>. Any time you wanted to cite a particular page or
1049 range of pages from that work in a footnote or endnote, you can
1050 put
1051 <br/>
1052 <span class="pre-in-pp">
1053 .REF
1054 .[
1055 frye-anat
1056 %P 67-8
1057 .]
1058 .REF
1059 </span>
1060 in your input file, and have it show up with the correct page(s).
1061 </p>
1062
1063 <h4 id="n" class="docs fields">%n &ndash; annotations</h4>
1064
1065 <p>
1066 Annotations come at the very end of references. Capitalize all
1067 words that require it, including, for bibliographic references (but not
1068 for footnotes/endnotes), the first.
1069 </p>
1070
1071 <div class="rule-short"><hr/></div>
1072
1073 <div class="macro-list-container">
1074 <h3 id="index-ref" class="macro-list">The bibliography and reference macros</h3>
1075 <ul class="macro-list">
1076 <li><a href="#ref">REF</a> &ndash; begin/end a <kbd>refer</kbd> reference that will go in a footnote or endnote</li>
1077 <li><a href="#footnote-refs">FOOTNOTE_REFS</a> &ndash; instruct mom to put REFs in footnotes</li>
1078 <li><a href="#endnote-refs">ENDNOTE_REFS</a> &ndash; instruct mom to put REFs in endnotes</li>
1079 <li><a href="#indent-refs">INDENT_REFS</a> &ndash; manage indenting of references, per MLA standards</li>
1080 <li><a href="#hyphenate-refs">HYPHENATE_REFS</a> &ndash; enable/disable hyphenation of references</li>
1081 <li><a href="#bibliography">BIBLIOGRAPHY</a> &ndash; begin a bibliography</li>
1082 <li><a href="#bibliography-type">BIBLIOGRAPHY_TYPE</a> &ndash; plain, or numbered list bibliography</li>
1083 <li><a href="#biblio-control">Bibliography control macros and defaults</a></li>
1084 </ul>
1085 </div>
1086
1087 <!-- -REF- -->
1088
1089 <div class="macro-id-overline">
1090 <h3 id="ref" class="macro-id">Begin/end a reference that goes in a footnote or endnote</h3>
1091 </div>
1092
1093 <div class="box-macro-args">
1094 Macro: <b>REF</b>
1095 </div>
1096
1097 <p>
1098 The macro REF tells mom that what follows is
1099 <kbd>refer</kbd>-specific, a keyword-identified reference to a
1100 <kbd>refer</kbd> database record. Depending on whether you&#8217;ve issued
1101 a
1102 <kbd><a href="#footnote-refs">.FOOTNOTE_REFS</a></kbd>
1103 or
1104 <kbd><a href="#endnote-refs">.ENDNOTE_REFS</a></kbd>
1105 instruction, the reference will be formatted and placed in a
1106 footnote, or collected for output in the endnotes. Parenthetical
1107 insertion of references into the text do not require
1108 <kbd>.REF</kbd> (see
1109 <a href="#parenthetical">Inserting parenthetical references into the text</a>.)
1110 </p>
1111
1112 <p>
1113 Before you use REF, you must create a <kbd>refer</kbd> block
1114 containing <kbd>refer</kbd> commands (see
1115 <a href="#rcommands-ref">Required refer commands</a>
1116 in the tutorial, above).
1117 </p>
1118
1119 <p>
1120 REF usage always looks like this:
1121 <br/>
1122 <span class="pre-in-pp">
1123 .REF
1124 .[
1125 keyword(s)
1126 .]
1127 .REF
1128 </span>
1129 Notice that REF &#8220;brackets&#8221; the <kbd>refer</kbd> instructions,
1130 and never takes an argument.
1131 </p>
1132
1133 <p>
1134 What REF really is is a convenience. One could, for example, put a
1135 reference in a footnote by doing
1136 <br/>
1137 <span class="pre-in-pp">
1138 .FOOTNOTE
1139 .[
1140 keyword(s)
1141 .]
1142 .FOOTNOTE OFF
1143 </span>
1144 However, if you have a lot of references going into footnotes (or
1145 endnotes), it&#8217;s much shorter to type <kbd>.REF/.REF</kbd>
1146 than <kbd>.FOOTNOTE/.FOOTNOTE&nbsp;OFF</kbd>. It also helps you
1147 distinguish&mdash;visually, in your input file&mdash;between
1148 footnotes (or endnotes) which are references, and footnotes (or
1149 endnotes) which are explanatory, or expand on the text.
1150 </p>
1151
1152 <div class="box-tip">
1153 <p class="tip-top">
1154 <span class="note">Note:</span>
1155 If you&#8217;re using REF to put references in footnotes and your
1156 footnotes need to be indented, you may (indeed, should) pass REF the
1157 same arguments used to indent footnotes. See
1158 <a href="docelement.html#footnote">FOOTNOTE</a>.
1159 </p>
1160
1161 <p class="tip-bottom">
1162 <span class="additional-note">Additional note:</span>
1163 REF behaves identically to
1164 <a href="docelement.html#footnote">FOOTNOTE</a>
1165 or
1166 <a href="docelement.html#footnote">ENDNOTE</a>,
1167 so please read the HYPER IMPORTANT NOTE found in the document entry
1168 for
1169 <a href="docelement.html#footnote-note">FOOTNOTE</a>
1170 and/or
1171 <a href="docelement.html#endnote-note">ENDNOTE</a>
1172 for instructions on correct entry of text preceding and following REF.
1173 </p>
1174 </div>
1175
1176 <!-- -FOOTNOTE_REFS- -->
1177
1178
1179 <div class="macro-id-overline">
1180 <h3 id="footnote-refs" class="macro-id">Instruct mom to put references in footnotes</h3>
1181 </div>
1182
1183 <div class="box-macro-args">
1184 Macro: <b>FOOTNOTE_REFS</b>
1185 </div>
1186
1187 <p>
1188 FOOTNOTE_REFS is an instruction to
1189 <a href="#ref">REF</a>,
1190 saying, &#8220;put all subsequent references bracketed by the REF
1191 macro into footnotes.&#8221; You invoke it by itself, with no
1192 argument.
1193 </p>
1194
1195 <p>
1196 When FOOTNOTE_REFS is in effect, regular footnotes, (i.e.
1197 those introduced with <kbd>.FOOTNOTE</kbd> and terminated with
1198 <kbd>.FOOTNOTE OFF</kbd>) continue to behave normally.
1199 </p>
1200
1201 <p>
1202 You may switch between FOOTNOTE_REFS and
1203 <a href="#endnote-refs">ENDNOTE_REFS</a>
1204 at any time.
1205 </p>
1206
1207 <p>
1208 By default, FOOTNOTE_REFS sets the
1209 <a href="docelement.html#footnote-marker-style">FOOTNOTE_MARKER_STYLE</a>
1210 to <kbd>NUMBER</kbd> (i.e. superscript numbers). You may change
1211 change that if you wish by invoking FOOTNOTE_MARKER_STYLE, with the
1212 argument you want, after FOOTNOTE_REFS.
1213 </p>
1214
1215 <p>
1216 If you have a lot of footnote references, and are identifying
1217 footnotes by line number rather than by markers in the text, you may
1218 want to enable
1219 <a href="docelement.html#footnotes-run-on">FOOTNOTES_RUN_ON</a>
1220 in conjunctions with FOOTNOTE_REFS.
1221 </p>
1222
1223 <!-- -ENDNOTE_REFS- -->
1224
1225 <div class="macro-id-overline">
1226 <h3 id="endnote-refs" class="macro-id">Instruct mom to put references in endnotes</h3>
1227 </div>
1228
1229 <div class="box-macro-args">
1230 Macro: <b>ENDNOTE_REFS</b>
1231 </div>
1232
1233 <p>
1234 ENDNOTE_REFS is an instruction to
1235 <a href="#ref">REF</a>,
1236 saying, &#8220;add all subsequent references bracketed by the REF
1237 macro to endnotes.&#8221; You invoke it by itself, with no argument.
1238 </p>
1239
1240 <p>
1241 When ENDNOTE_REFS is in effect, mom continues to format regular
1242 endnotes, (i.e. those introduced with <kbd>.ENDNOTE</kbd> and
1243 terminated with <kbd>.ENDNOTE&nbsp;OFF</kbd>) in the normal way.
1244 </p>
1245
1246 <p>
1247 You may switch between ENDNOTE_REFS and
1248 <a href="#footnote-refs">FOOTNOTE_REFS</a>
1249 at any time.
1250 </p>
1251
1252 <!-- -INDENT_REFS- -->
1253
1254 <div class="macro-id-overline">
1255 <h3 id="indent-refs" class="macro-id">Manage indenting of references, per MLA standards</h3>
1256 </div>
1257
1258 <div class="box-macro-args">
1259 Macro: <b>INDENT_REFS</b> <kbd class="macro-args">FOOTNOTE | ENDNOTE | BIBLIO &lt;indent&gt; </kbd>
1260 </div>
1261
1262 <p class="requires">
1263 &bull;&nbsp;<kbd style="font-style: normal;">&lt;indent&gt;</kbd> requires a <a href="definitions.html#unitofmeasure">unit of measure</a>
1264 </p>
1265
1266 <p>
1267 MLA-style requires that footnote or endnote references should
1268 have their first lines indented, whereas bibliographic references
1269 should have their second and subsequent lines indented. Thus, if
1270 you invoke INDENT_REFS with a first argument of <kbd>FOOTNOTE</kbd>
1271 or <kbd>ENDNOTE</kbd>, the value you give to
1272 <kbd>&lt;indent&gt;</kbd> sets the indent of the first line for
1273 those types of references; if you invoke it with <kbd>BIBLIO</kbd>,
1274 the value you give <kbd>&lt;indent&gt;</kbd> sets the indent of
1275 second and subsequent lines in bibliographies.
1276 </p>
1277
1278 <p>
1279 By default, the indent for all three types of references is 1/2-inch
1280 for
1281 <a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPEWRITE</kbd></a>
1282 and 2
1283 <a href="definitions.html#em">ems</a>
1284 for
1285 <a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>.
1286 </p>
1287
1288 <p>
1289 If you&#8217;d like to change the indent for footnote, endnote or
1290 bibliography references, just invoke <kbd>.INDENT_REFS</kbd> with
1291 a first argument saying which one you want the indent changed for, and
1292 a second argument saying what you&#8217;d like the indent to be.
1293 For example, if you want the second-line indent of references on a
1294 bibliography page to be 3
1295 <a href="definitions.html#picas-points">picas</a>,
1296 <br/>
1297 <span class="pre-in-pp">
1298 .INDENT_REFS BIBLIO 3P
1299 </span>
1300 is how you&#8217;d set it up.
1301 </p>
1302
1303 <div class="box-tip">
1304 <p class="tip-top">
1305 <span class="tip">Tip:</span>
1306 If you are identifying endnotes by line number
1307 (<a href="docelement.html#endnote-marker-style">ENDNOTE_MARKER_STYLE&nbsp;<kbd>LINE</kbd></a>)
1308 and have instructed mom to put references bracketed by
1309 <kbd><a href="#ref">.REF</a></kbd>
1310 into endnotes (with
1311 <a href="#endnote-refs">ENDNOTE_REFS</a>),
1312 you will almost certainly want to adjust the second-line indent for
1313 references in endnotes, owing to the way mom formats line-numbered
1314 endnotes. Study the output of such documents to see whether an
1315 indent adjustment is required.
1316 </p>
1317
1318 <p>
1319 The same advice applies to references in endnotes when you have enabled
1320 <br/>
1321 <span class="pre-in-pp">
1322 <a href="docelement.html#endnote-numbers-align-left">.ENDNOTE_NUMBERS_ALIGN_LEFT</a>
1323 </span>
1324 in favour of mom&#8217;s default, which is to align them right.
1325 Study the output to determine what size of second-line indent works
1326 best.
1327 </p>
1328
1329 <p class="tip-bottom">
1330 <i>(Frankly, endnote references formatted in MLA-style combined with
1331 left-aligned endnote numbers is a no-win situation, and so is best
1332 avoided. Wherever you set the indent, you&#8217;ll end up with the
1333 endnote numbers appearing to hang into the left margin, so you might
1334 as well have them hang, as is the case with
1335 <kbd style="font-style: normal;">.ENDNOTE_NUMBERS_ALIGN_RIGHT</kbd>.</i>&nbsp;&nbsp;&ndash;&nbsp;Ed.)
1336 </p>
1337 </div>
1338
1339 <!-- -HYPHENATE_REFS- -->
1340
1341 <div class="macro-id-overline">
1342 <h3 id="hyphenate-refs" class="macro-id">Enable/disable hyphenation of references</h3>
1343 </div>
1344
1345 <div class="box-macro-args">
1346 Macro: <b>HYPHENATE_REFS</b> <kbd class="macro-args">&lt;toggle&gt;</kbd>
1347 </div>
1348
1349 <p>
1350 If you have hyphenation turned on for a document (see
1351 <a href="typesetting.html#hy">HY</a>),
1352 and in most cases you probably do, mom will hyphenate references
1353 bracketed by the
1354 <a href="#ref">REF</a>
1355 macro. Since references typically contain quite a lot of proper
1356 names, which shouldn&#8217;t be hyphenated, you may want to disable
1357 hyphenation for references.
1358 </p>
1359
1360 <p>
1361 HYPHENATE_REFS is a toggle macro; invoking it by itself will turn
1362 automatic hyphenation of REF-bracketed references on (the default).
1363 Invoking it with any other argument (<kbd>OFF</kbd>, <kbd>NO</kbd>,
1364 <kbd>X</kbd>, etc.) will disable automatic hyphenation for
1365 references bracketed by REF.
1366 </p>
1367
1368 <p>
1369 An alternative to turning reference hyphenation off is to prepend
1370 to selected proper names in your <kbd>refer</kbd> database
1371 the groff
1372 <a href="definitions.html#discretionaryhyphen">discretionary hyphen</a>
1373 character, <kbd>\%</kbd>. (See
1374 <a href="#ref-disc-hy">here</a>
1375 in the tutorial for an example.)
1376 </p>
1377
1378 <div class="box-tip">
1379 <p class="tip">
1380 <span class="note">Note:</span>
1381 References embedded in the body of a document are considered part of
1382 <a href="definitions.html#running">running text</a>,
1383 and are hyphenated (or not) according to whether hyphenation is
1384 turned on or off for running text. Therefore, if you want to
1385 disable hyphenation for such references, you must do so temporarily,
1386 with
1387 <a href="typesetting.html#hy">HY</a>,
1388 like this:
1389 <br/>
1390 <span class="pre-in-pp">
1391 .HY OFF
1392 .[
1393 keyword(s)
1394 .]
1395 .HY
1396 </span>
1397 Alternatively, sprinkle your database fields liberally with
1398 <kbd>\%</kbd>.
1399 </p>
1400 </div>
1401
1402 <!-- -BIBLIOGRAPHY- -->
1403
1404 <div class="macro-id-overline">
1405 <h3 id="bibliography" class="macro-id">Begin a bibliography</h3>
1406 </div>
1407
1408 <div class="box-macro-args">
1409 Macro: <b>BIBLIOGRAPHY</b> <kbd class="marco-args">toggle</kbd>
1410 </div>
1411
1412 <p>
1413 To append a bibliography to your document, whether of references
1414 inserted parenthetically into text or a comprehensive reading list
1415 derived from a large <kbd>refer</kbd> database, all you need
1416 do is invoke <kbd>.BIBLIOGRAPHY</kbd>. <kbd>.BIBLIOGRAPHY</kbd>
1417 breaks to a new page, prints the title (BIBLIOGRAPHY by default, but
1418 that can be changed), and awaits <kbd>refer</kbd> instructions. How
1419 to create bibliographies is covered in the tutorial section,
1420 <a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</a>
1421 and
1422 <a href="#bibliography-recipe">Generating a comprehensive bibliography</a>.
1423 When all the required data has been entered, type
1424 <br/>
1425 <span class="pre-in-pp">
1426 .BIBLIOGRAPHY OFF
1427 </span>
1428 to complete the bibliography.
1429 </p>
1430
1431 <p>
1432 See the
1433 <a href="#biblio-control">Bibliography control macros and defaults</a>
1434 for macros to tweak, design and control the appearance of
1435 bibliography pages.
1436 </p>
1437
1438 <!-- -BIBLIOGRAPHY_TYPE- -->
1439
1440 <div class="macro-id-overline">
1441 <h3 id="bibliography-type" class="macro-id">Plain, or numbered list bibliography</h3>
1442 </div>
1443
1444 <div class="box-macro-args">
1445 Macro: <b>BIBLIOGRAPHY_TYPE</b> <kbd class="macro-args">PLAIN | LIST [ &lt;list separator&gt; ] [ &lt;list prefix&gt; ]</kbd>
1446 </div>
1447
1448 <p>
1449 Mom offers two styles of bibliography output: plain, or numbered
1450 list style. With the argument, <kbd>PLAIN</kbd>, bibliography entries are output
1451 with no enumerators. With the argument, <kbd>LIST</kbd>, each entry is numbered.
1452 </p>
1453
1454 <p>
1455 The two optional arguments, <kbd>&lt;list&nbsp;separator&gt;</kbd>
1456 and <kbd>&lt;list&nbsp;prefix&gt;</kbd> have the same meaning as the
1457 equivalent arguments to
1458 <a href="docelement.html#list">LIST</a>
1459 (i.e. <kbd>&lt;separator&gt;</kbd> and <kbd>&lt;prefix&gt;</kbd>).
1460 </p>
1461
1462 <p>
1463 You may enter the BIBLIOGRAPHY_TYPE either before or after
1464 <kbd>.BIBLIOGRAPHY</kbd>. It must, however, always come before
1465 any <kbd>refer</kbd> commands. See
1466 <a href="#bibliography-from-embedded">Generating a bibliography from parenthetical insertions</a>
1467 and
1468 <a href="#bibliography-recipe">Generating a comprehensive bibliography</a>.
1469 </p>
1470
1471 <p>
1472 Mom&#8217;s default BIBLIOGRAPHY_TYPE is <kbd>PLAIN</kbd>.
1473 </p>
1474
1475 <!-- -BIBLIO_CONTROL- -->
1476
1477 <div class="defaults-container" style="background-color: #ded4bd; border: none;">
1478 <h3 id="biblio-control" class="docs defaults">Bibliography control macros and defaults</h3>
1479
1480 <p style="margin-top: .25em; margin-left: 9px;">
1481 Mom processes bibliography pages in a manner very similar to the
1482 way she processes endnotes pages. The bibliography page control
1483 macros, therefore, behave in the same way as their endnotes pages
1484 equivalents.
1485 </p>
1486
1487 <ol style="margin-top: -.5em; padding-bottom: .5em;">
1488 <li><a href="#biblio-general"><b>General bibliography style control</b></a>
1489 <ul style="margin-left: -.5em;">
1490 <li><a href="#biblio-style">Base family/font/quad</a></li>
1491 <li><a href="#biblio-pt-size">Base point size</a></li>
1492 <li><a href="#biblio-lead">Leading</a></li>
1493 <li><a href="#biblio-spacing">Adjust the space between bibliography entries</a></li>
1494 <li><a href="#singlespace-biblio">Singlespace bibliographies (for TYPEWRITE only)</a></li>
1495 <li><a href="#biblio-no-columns">Turning off column mode during bibliography output</a></li>
1496 </ul></li>
1497 <li><a href="#biblio-pagination"><b>Pagination of bibliographies</b></a>
1498 <ul style="margin-left: -.5em;">
1499 <li><a href="#biblio-pagenum-style">Page numbering style</a></li>
1500 <li><a href="#biblio-first-pagenumber">Setting the first page number of bibliographies</a></li>
1501 <li><a href="#biblio-no-first-pagenum">Omitting a page number on the first page of bibliographies</a></li>
1502 <li><a href="#suspend-pagination">Suspending pagination during bibliography output</a></li>
1503 </ul></li>
1504 <li><a href="#biblio-header-control"><b>Header/footer control</b></a>
1505 <ul style="margin-left: -.5em;">
1506 <li><a href="#biblio-modify-hdrftr">Modifying what goes in bibliography headers/footers</a></li>
1507 <li><a href="#biblio-hdrftr-center">Header/footer centre string when doctype is CHAPTER</a></li>
1508 <li><a href="#biblio-allows-headers">Allow headers on bibliography pages</a></li>
1509 </ul></li>
1510 <li><a href="#biblio-main-title"><b>Bibliography first-page title control</b></a>
1511 <ul>
1512 <li><a href="#biblio-string">Title string</a></li>
1513 <li><a href="#biblio-string-control">Title string control macros and defaults</a></li>
1514 <li><a href="#biblio-string-placement">Title string placement</a></li>
1515 <li><a href="#biblio-string-underline">Title string underscoring</a></li>
1516 <li><a href="#biblio-string-caps">Title string capitalization</a></li>
1517 </ul></li>
1518 </ol>
1519 </div>
1520
1521 <h4 id="biblio-general" class="docs" style="margin-top: -1.5em; margin-bottom: .5em;">1. General bibliography page style control</h4>
1522
1523 <h5 id="biblio-style" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Base family/font/quad</h5>
1524
1525 <div class="defaults-container" style="padding-bottom: 8px;">
1526 <p class="defaults" style="padding-top: 6px;">
1527 See
1528 <a href="#control-macro-args">Arguments to the control macros</a>.
1529 </p>
1530 <span class="pre defaults">
1531 .BIBLIOGRAPHY_FAMILY default = prevailing document family; default is Times Roman
1532 .BIBLIOGRAPHY_FONT default = roman
1533 .BIBLIOGRAPHY_QUAD* default = justified
1534
1535 *Note: BIBLIOGRAPHY_QUAD must be set to either L (LEFT) or J (JUSTIFIED);
1536 R (RIGHT) and C (CENTER) will not work.
1537 </span>
1538 </div>
1539
1540 <!-- -BIBLIO_PT_SIZE- -->
1541
1542 <h5 id="biblio-pt-size" class="docs" style="margin-top: -1.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Base point size</h5>
1543
1544 <div class="box-macro-args">
1545 Macro: <b>BIBLIOGRAPHY_PT_SIZE</b> <kbd class="macro-args">&lt;base type size of bibliography&gt;</kbd>
1546 </div>
1547
1548 <p>
1549 Unlike most other control macros that deal with size of document
1550 elements, BIBLIOGRAPHY_PT_SIZE takes as its argument an absolute
1551 value, relative to nothing. Therefore, the argument represents the
1552 size of bibliography type in
1553 <a href="definitions.html#picaspoints">points</a>,
1554 unless you append an alternative
1555 <a href="definitions.html#unitofmeasure">unit of measure</a>.
1556 For example,
1557 <br/>
1558 <span class="pre-in-pp">
1559 .BIBLIOGRAPHY_PT_SIZE 12
1560 </span>
1561 sets the base point size of type on the bibliography page to 12
1562 points, whereas
1563 <br/>
1564 <span class="pre-in-pp">
1565 .BIBLIOGRAPHY_PT_SIZE .6i
1566 </span>
1567 sets the base point size of type on the bibliography page to 1/6 of an
1568 inch.
1569 </p>
1570
1571 <p>
1572 The type size set with BIBLIOGRAPHY_PT_SIZE is the size of type used
1573 for the text of the bibliographies, and forms the basis from which
1574 the point size of other bibliography page elements is calculated.
1575 </p>
1576
1577 <p>
1578 The default for
1579 <a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>
1580 is 12.5 points (the same default size used in the body of the
1581 document).
1582 </p>
1583
1584 <!-- -BIBLIO_LEAD- -->
1585
1586 <h5 id="biblio-lead" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Leading</h5>
1587
1588 <div class="box-macro-args">
1589 Macro: <b>BIBLIOGRAPHY_LEAD</b> <kbd class="macro-args">&lt;base leading of bibliographies&gt; [ ADJUST ]</kbd>
1590 </div>
1591
1592 <p class="requires">
1593 &bull;&nbsp;Does not require a <a href="definitions.html#unitofmeasure">unit of measure</a>; points is assumed
1594 </p>
1595
1596 <p>
1597 Unlike most other control macros that deal with leading of document
1598 elements, BIBLIOGRAPHY_LEAD takes as its argument an absolute value,
1599 relative to nothing. Therefore, the argument represents the
1600 <a href="definitions.html#leading">leading</a>
1601 of bibliographies in
1602 <a href="definitions.html#picaspoints">points</a>
1603 unless you append an alternative
1604 <a href="definitions.html#unitofmeasure">unit of measure</a>.
1605 For example,
1606 <br/>
1607 <span class="pre-in-pp">
1608 .BIBLIOGRAPHY_LEAD 14
1609 </span>
1610 sets the base leading of type on the bibliography page to 14
1611 points, whereas
1612 <br/>
1613 <span class="pre-in-pp">
1614 .BIBLIOGRAPHY_LEAD .5i
1615 </span>
1616 sets the base leading of type on the bibliography page to 1/2 inch.
1617 </p>
1618
1619 <p>
1620 If you want the leading of bibliographies adjusted to fill the page,
1621 pass BIBLIOGRAPHY_LEAD the optional argument,
1622 <kbd>ADJUST</kbd>. (See
1623 <a href="docprocessing.html#doc-lead-adjust">DOC_LEAD_ADJUST</a>
1624 for an explanation of leading adjustment.)
1625 </p>
1626
1627 <p>
1628 The default for
1629 <a href="docprocessing.html#printstyle">PRINTSTYLE <kbd>TYPESET</kbd></a>
1630 is the prevailing document lead (16 by default), adjusted.
1631 </p>
1632
1633 <div class="box-tip">
1634 <p class="tip">
1635 <span class="note">Note:</span>
1636 Even if you give mom a <kbd>.DOC_LEAD_ADJUST&nbsp;OFF</kbd> command,
1637 she will still, by default, adjust bibliography leading. You
1638 <i>must</i> enter <kbd>BIBLIOGRAPHY_LEAD&nbsp;&lt;lead&gt;</kbd>
1639 with no <kbd>ADJUST</kbd> argument to disable this default
1640 behaviour.
1641 </p>
1642 </div>
1643
1644 <!-- -BIBLIO_SPACING- -->
1645
1646 <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>
1647
1648 <div class="box-macro-args">
1649 Macro: <b>BIBLIOGRAPHY_SPACING</b> <kbd class="macro-args">&lt;amount of space&gt; </kbd>
1650 </div>
1651
1652 <p class="requires">
1653 &bull;&nbsp;Requires a <a href="definitions.html#unitofmeasure">unit of measure</a>
1654 </p>
1655
1656 <p>
1657 By default, mom inserts no space between bibliography entries.
1658 If you&#8217;d prefer she add some, instruct her to do so with
1659 BIBLIOGRAPHY_SPACING. Say, for example, you want a half a linespace
1660 between entries,
1661 <br/>
1662 <span class="pre-in-pp">
1663 .BIBLIOGRAPHY_SPACING .5v
1664 </span>
1665 would do the trick.
1666 </p>
1667
1668 <div class="box-tip">
1669 <p class="tip">
1670 <span class="note">Note:</span>
1671 As with endnotes pages, inserting space between bibliography entries
1672 will most likely result in hanging bottom margins.
1673 </p>
1674 </div>
1675
1676 <!-- -SINGLESPACE_BIBLIO- -->
1677
1678 <h5 id="singlespace-biblio" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Singlespace bibliography (TYPEWRITE only)</h5>
1679
1680 <div class="box-macro-args">
1681 Macro: <b>SINGLESPACE_BIBLIOGRAPHY</b> <kbd class="macro-args">&lt;toggle&gt;</kbd>
1682 </div>
1683
1684 <p>
1685 If your
1686 <a href="docprocessing.html#printstyle">PRINTSTYLE</a>
1687 is <kbd>TYPEWRITE</kbd> and you use TYPEWRITE&#8217;s default
1688 double-spacing, bibliographies are double-spaced. If your document
1689 is single-spaced, bibliographies are single-spaced.
1690 </p>
1691
1692 <p>
1693 If, for some reason, you&#8217;d prefer that bibliographies be
1694 single-spaced in an otherwise double-spaced document (including
1695 double-spaced
1696 <a href="rectoverso.html#collate">collated</a>
1697 documents), invoke <kbd>.SINGLESPACE_BIBLIOGRAPHY</kbd> with no
1698 argument.
1699 </p>
1700
1701 <!-- -BIBLIO_NO_COLUMNS- -->
1702
1703 <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>
1704
1705 <div class="box-macro-args">
1706 Macro: <b>BIBLIOGRAPHY_NO_COLUMNS</b> <kbd class="macro-args">&lt;toggle&gt;</kbd>
1707 </div>
1708
1709 <p>
1710 By default, if your document is set in
1711 <a href="docprocessing.html#columns">columns</a>,
1712 mom sets the bibliographies in columns, too. However, if your
1713 document is set in columns and you&#8217;d like the bibliographies
1714 not to be, just invoke <kbd>.BIBLIOGRAPHY_NO_COLUMNS</kbd> with
1715 no argument. The bibliography pages will be set to the full page
1716 measure of your document.
1717 </p>
1718
1719 <p>
1720 If you output bibliographies at the end of each document in a
1721 <a href="rectoverso.html#collate">collated</a>
1722 document set in columns, column mode will automatically be
1723 reinstated for each document, even with BIBLIOGRAPHY_NO_COLUMNS
1724 turned on. In such circumstances, you must re-enable
1725 BIBLIOGRAPHY_NO_COLUMNS for each separate collated document.
1726 </p>
1727
1728 <h4 id="biblio-pagination" class="docs" style="margin-bottom: .5em;">2. Pagination of bibliographies</h4>
1729
1730 <!-- -BIBLIO_PAGENUM_STYLE- -->
1731
1732 <h5 id="biblio-pagenum-style" class="docs" style="margin-top: 0; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Page numbering style</h5>
1733
1734 <div class="box-macro-args">
1735 Macro: <b>BIBLIOGRAPHY_PAGENUM_STYLE</b> <kbd class="macro-args">DIGIT | ROMAN | roman | ALPHA | alpha</kbd>
1736 </div>
1737
1738 <p>
1739 Use this macro to set the page numbering style of bibliography
1740 pages. The arguments are identical to those for
1741 <a href="headfootpage.html#pagenum-style">PAGENUM_STYLE</a>.
1742 The default is <kbd>digit</kbd>. You may want to change it to, say,
1743 <kbd>alpha</kbd>, which you would do with
1744 <br/>
1745 <span class="pre-in-pp">
1746 .BIBLIOGRAPHY_PAGENUM_STYLE alpha
1747 </span>
1748 </p>
1749
1750 <!-- -BIBLIO_FIRST_PAGENUMBER- -->
1751
1752 <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>
1753
1754 <div class="box-macro-args">
1755 Macro: <b>BIBILOGRAPHY_FIRST_PAGENUMBER</b> <kbd class="macro-args">&lt;page # that appears on page 1 of bibliographies&gt;</kbd>
1756 </div>
1757
1758 <p>
1759 Use this macro with caution. If the bibliography for a
1760 <a href="rectoverso.html#collate">collated</a>
1761 document is to be output at the document&#8217;s end,
1762 BIBLIOGRAPHY_FIRST_PAGENUMBER tells mom what page number to put on
1763 the first page of the bibliography.
1764 </p>
1765
1766 <p>
1767 However, if you&#8217;re outputting a bibliography at the end of each
1768 section (chapter, article, etc) of a collated document,
1769 you have to reset every section&#8217;s first page number after
1770 <a href="rectoverso.html#collate">COLLATE</a>
1771 and before
1772 <a href="docprocessing.html#start">START</a>.
1773 </p>
1774
1775 <!-- -BIBLIO_NO_FIRST_PAGENUN- -->
1776
1777 <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>
1778
1779 <div class="box-macro-args">
1780 Macro: <b>BIBLIOGRAPHY_NO_FIRST_PAGENUM</b> <kbd class="macro-args">&lt;toggle&gt;</kbd>
1781 </div>
1782
1783 <p>
1784 This macro is for use only if
1785 <a href="headfootpage.html#footers">FOOTERS</a>
1786 are on. It tells
1787 <kbd><a href="#bibliography">BIBLIOGRAPHY</a></kbd>
1788 not to print a page number on the first bibliography page.
1789 Mom&#8217;s default is to print the page number.
1790 </p>
1791
1792 <!-- -SUSPEND_PAGINATION- -->
1793
1794 <h5 id="suspend-pagination" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Suspending pagination during bibliography output</h5>
1795
1796 <div class="box-macro-args" style="margin-bottom: 1em;">
1797 Macro: <b>SUSPEND_PAGINATION</b>
1798 </div>
1799
1800 <div class="box-macro-args">
1801 Macro: <b>RESTORE_PAGINATION</b>
1802 </div>
1803
1804 <p>
1805 SUSPEND_PAGINATION doesn&#8217;t take an argument. Invoked
1806 immediately prior to
1807 <kbd><a href="#bibliography">BIBLIOGRAPHY</a></kbd>,
1808 it turns off pagination for the duration of the bibliography. Mom
1809 continues, however to increment page numbers silently.
1810 </p>
1811
1812 <p>
1813 To restore normal document pagination after bibliographies, invoke
1814 <kbd>.RESTORE_PAGINATION</kbd> (again, with no argument) immediately
1815 after you&#8217;ve finished with your bibliography.
1816 </p>
1817
1818 <h4 id="biblio-header-control" class="docs" style="margin-bottom: .5em;">3. Header/footer control</h4>
1819
1820 <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>
1821
1822 <p style="margin-top: 0">
1823 If you wish to modify what appears in the header/footer that appears
1824 on bibliography pages, make the changes before you invoke
1825 <a href="#bibliography"><kbd>.BIBLIOGRAPHY</kbd></a>,
1826 not afterwards.
1827 </p>
1828
1829 <p>
1830 Except in the case of
1831 <a href="docprocessing.html#doctype">DOCTYPE <kbd>CHAPTER</kbd></a>,
1832 mom prints the same header or footer used throughout the document
1833 on bibliography pages. Chapters get treated differently in that,
1834 by default, mom does not print the header/footer centre string
1835 (normally the chapter number or chapter title.) In most cases, this
1836 is what you want. However, should you not want mom to remove the
1837 centre string from the bibliography pages&#8217; headers/footers, or
1838 you would like her to add one in cases where there hasn&#8217;t been
1839 one before (e.g. DOCTYPE DEFAULT) invoke
1840 <kbd><a href="#bibliography-hdrftr-center">.BIBLIOGRAPHY_HEADER_CENTER</a></kbd>
1841 with no argument.
1842 </p>
1843
1844 <p>
1845 An important change you may want to make is to put the word
1846 &#8220;Bibliography&#8221; in the header/footer centre position. To
1847 do so, invoke
1848 <br/>
1849 <span class="pre-in-pp" style="margin-bottom: -1em;">
1850 .BIBLIOGRAPHY_HEADER_CENTER
1851 .HEADER_CENTER "Bibliography"
1852 </span>
1853 or
1854 <span class="pre-in-pp" style="margin-top: -.5em;">
1855 .BIBLIOGRAPHY_FOOTER_CENTER
1856 .FOOTER_CENTER "Bibliography"
1857 </span>
1858 prior to invoking <kbd>.BIBLIOGRAPHY</kbd>.
1859 </p>
1860
1861 <div class="box-important">
1862 <p class="tip">
1863 <span class="important">Important:</span>
1864 Unless you have a running centre string in your headers or footers, you must invoke
1865 <span class="pre-in-pp" style="margin-top: -.5em;">
1866 <a href="#endnotes-hdrftr-center">.BIBLIOGRAPHY_HEADER_CENTER</a>
1867 </span>
1868 or
1869 <span class="pre-in-pp" style="margin-top: -.5em;">
1870 <a href="#endnotes-hdrftr-center">.BIBLIOGRAPHY_FOOTER_CENTER</a>
1871 </span>
1872 in order for the centre string to appear, as demonstrated above.
1873 </p>
1874 </div>
1875
1876 <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>
1877
1878 <div class="box-macro-args">
1879 Macro: <b>BIBLIOGRAPHY_HEADER_CENTER</b> <kbd class="macro-args">toggle</kbd>
1880 </div>
1881
1882 <p>
1883 If your
1884 <a href="docprocessing.html#doctype">DOCTYPE</a>
1885 is <kbd>CHAPTER</kbd> and you want mom to include a centre
1886 string in the headers/footers that appear on bibliography
1887 pages, or if you do not have a running header/footer
1888 centre string in the body of the document, invoke
1889 <kbd>.BIBLIOGRAPHY_HEADER_CENTER</kbd> (or
1890 <kbd>.BIBLIOGRAPHY_FOOTER_CENTER</kbd>) with no argument before
1891 defining the centre string . Mom&#8217;s default is NOT to print the
1892 centre string.
1893 </p>
1894
1895 <p>
1896 If, for some reason, having enabled the header/footer centre string
1897 on bibliography pages, you wish to disable it, invoke the same macro
1898 with any argument (<kbd>OFF</kbd>, <kbd>QUIT</kbd>, <kbd>Q</kbd>,
1899 <kbd>X</kbd>...).
1900 </p>
1901
1902 <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>
1903
1904 <div class="box-macro-args">
1905 Macro: <b>BIBLIOGRAPHY_ALLOWS_HEADERS</b> <kbd class="macro-args">&lt;none&gt; | ALL</kbd>
1906 </div>
1907
1908 <p>
1909 By default, if HEADERS are on, mom prints page headers on all
1910 bibliography pages except the first. If you don&#8217;t want her to
1911 print headers on bibliography pages, do
1912 <br/>
1913 <span class="pre-in-pp">
1914 .BIBLIOGRAPHY_ALLOWS_HEADERS OFF
1915 </span>
1916 If you want headers on every page including the first, do
1917 <br/>
1918 <span class="pre-in-pp">
1919 .BIBLIOGRAPHY_ALLOWS_HEADERS ALL
1920 </span>
1921 </p>
1922
1923 <div class="box-tip">
1924 <p class="tip">
1925 <span class="note">Note:</span>
1926 If FOOTERS are on, mom prints footers on every bibliography page.
1927 This is a style convention. In mom, there is no such beast as
1928 BIBLIOGRAPHY_ALLOWS_FOOTERS&nbsp;OFF.
1929 </p>
1930 </div>
1931
1932 <h4 id="biblio-main-title" class="docs">4. Bibliography first-page title control</h4>
1933
1934 <!-- -BIBLIO_STRING- -->
1935
1936 <h5 id="biblio-string" class="docs" style="margin-top: 1em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Title string</h5>
1937
1938 <div class="box-macro-args">
1939 Macro: <b>BIBLIOGRAPHY_STRING</b> <kbd class="macro-args">&quot;&lt;title to print at the top of bibliography pages&gt;&quot;</kbd>
1940 </div>
1941 <p class="alias" style="margin-bottom: 0;">
1942 <i>Alias:</i> <b>BIBLIOGRAPHY_HEADER</b>
1943 </p>
1944
1945 <p>
1946 By default, mom prints the word &#8220;BIBLIOGRAPHY&#8221; as a title
1947 at the top of the first page of a bibliography. If you want her to
1948 print something else, invoke <kbd>.BIBLIOGRAPHY_STRING</kbd> with
1949 the title you want, surrounded by double-quotes.
1950 </p>
1951
1952 <p>
1953 If you don&#8217;t want a title at the top of the first bibliography
1954 page, invoke <kbd>.BIBLIOGRAPHY_STRING</kbd> with a blank argument
1955 (either two double-quotes side by
1956 side&mdash;<kbd>&quot;&quot;</kbd>&mdash;or no argument at all).
1957 </p>
1958
1959 <!-- -BIBLIO_STRING_CONTROL- -->
1960
1961 <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>
1962
1963 <div class="defaults-container" style="padding-bottom: 8px;">
1964 <p class="defaults" style="padding-top: 6px;">
1965 See
1966 <a href="#control-macro-args">Arguments to the control macros</a>.
1967 </p>
1968 <span class="pre defaults">
1969 .BIBLIOGRAPHY_STRING_FAMILY default = prevailing document family; default is Times Roman
1970 .BIBLIOGRAPHY_STRING_FONT default = bold
1971 .BIBLIOGRAPHY_STRING_SIZE* default = +1
1972 .BIBLIOGRAPHY_STRING_QUAD default = centred
1973
1974 *Relative to the size of the bibliography text (set with BIBLIOGRAPHY_PT_SIZE)
1975 </span>
1976 </div>
1977
1978 <!-- -BIBLIOGRAPHY_STRING_ADVANCE- -->
1979
1980 <h5 id="biblio-string-placement" class="docs" style="margin-top: -1em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Title string placement</h5>
1981
1982 <div class="box-macro-args">
1983 Macro: <b>BIBLIOGRAPHY_STRING_ADVANCE</b> <kbd class="macro-args">&lt;distance from top of page&gt;</kbd>
1984 </div>
1985
1986 <p class="requires">
1987 &bull;&nbsp;Argument requires a <a href="definitions.html#unitofmeasure">unit of measure</a>
1988 </p>
1989
1990 <p>
1991 By default, mom places the title (the docheader, as it were) of
1992 bibliographies (typically "BIBLIOGRAPHY") on the same
1993 <a href="definitions.html#baseline">baseline</a>
1994 that is used for the start of
1995 <a href="definitions.html#running">running text</a>.
1996 If you&#8217;d prefer another location, higher or lower on the page
1997 (thereby also raising or lowering the starting position of the
1998 bibliography itself), invoke <kbd>.BIBLIOGRAPHY_STRING_ADVANCE</kbd>
1999 with an argument stating the distance from the top edge of the page
2000 at which you&#8217;d like the title placed.
2001 </p>
2002
2003 <p>
2004 The argument requires a unit of measure, so if you&#8217;d like the title
2005 to appear 1-1/2 inches from the top edge of the page, you&#8217;d tell
2006 mom about it like this:
2007 <br/>
2008 <span class="pre-in-pp">
2009 .BIBLIOGRAPHY_STRING_ADVANCE 1.5i
2010 </span>
2011 </p>
2012
2013 <!-- -BIBLIO_STRING_UNDERLINE- -->
2014
2015 <h5 id="biblio-string-underline" class="docs" style="margin-top: -1em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Title string underscoring</h5>
2016
2017 <div class="box-macro-args">
2018 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>
2019 </div>
2020
2021 <p class="alias" style="margin-bottom: 0;">
2022 <i>Alias:</i> <b>BIBLIOGRAPHY_STRING_UNDERLINE</b>
2023 </p>
2024
2025 <p class="requires">
2026 &bull;&nbsp;The argument
2027 <span style="font-style: normal"><kbd>&lt;underscore weight&gt;</kbd></span>
2028 must not have the
2029 <a href="definitions.html#unitofmeasure">unit of measure</a>,
2030 <span style="font-style: normal;"><kbd>p</kbd></span>, appended to it
2031 </p>
2032
2033 <p>
2034 Invoked without an argument,
2035 <kbd>.BIBLIOGRAPHY_STRING_UNDERSCORE</kbd> will place a single rule
2036 underneath the bibliography&#8217;s first-page title. Invoked with the
2037 argument, <kbd>DOUBLE</kbd>, BIBLIOGRAPHY_STRING_UNDERSCORE will
2038 double-underscore the title. Invoked with any other non-numeric
2039 argument, (e.g. <kbd>OFF</kbd>, <kbd>NO</kbd>, <kbd>X</kbd>, etc.)
2040 the macro disables underlining of the title.
2041 </p>
2042
2043 <p>
2044 In addition, you can use BIBLIOGRAPHY_STRING_UNDERSCORE to control
2045 the weight of the underscore rule(s), the gap between the title and
2046 the underscore, and, in the case of double-underscores, the distance
2047 between the two rules.
2048 </p>
2049
2050 <p>
2051 Some examples:
2052 <br/>
2053 <span class="pre-in-pp">
2054 .BIBLIOGRAPHY_STRING_UNDERLINE 1
2055 - turn underlining on; set the rule weight to 1 point
2056
2057 .BIBLIOGRAPHY_STRING_UNDERLINE 1 3p
2058 - turn underlining on; set the rule weight to 1 point; set
2059 the gap between the string and the underline to 3 points
2060
2061 .BIBLIOGRAPHY_STRING_UNDERLINE DOUBLE .75 3p
2062 - turn double-underlining on; set the rule weight to 3/4 of
2063 a point; set the gap between the string and the upper
2064 underline to 3 points; leave the gap between the upper
2065 and the lower underline at the default
2066
2067 .BIBLIOGRAPHY_STRING_UNDERLINE DOUBLE 1.5 1.5p 1.5p
2068 - turn double-underlining on; set the rule weight to 1-1/2
2069 points; set the gap between the string and the upper
2070 underline to 1-1/2 points; set the gap between the upper
2071 and the lower underline to 1-1/2 points
2072 </span>
2073 Note, from the above, that in all instances, underscoring (single or
2074 double) is enabled whenever BIBLIOGRAPHY_STRING_UNDERSCORE is used
2075 in this way.
2076 </p>
2077
2078 <p>
2079 By default, mom double-underscores the title if your
2080 <a href="docprocessing.html#printstyle">PRINTSTYLE</a>
2081 is <kbd>TYPEWRITE</kbd>.
2082 </p>
2083
2084 <!-- -BIBLIO_STRING_CAPS- -->
2085
2086 <h5 id="biblio-string-caps" class="docs" style="margin-top: -.5em; margin-bottom: .5em; margin-left: .5em;">&bull;&nbsp;Title string capitalization</h5>
2087
2088 <div class="box-macro-args">
2089 Macro: <b>BIBLIOGRAPHY_STRING_CAPS</b> <kbd class="macro-args">toggle</kbd>
2090 </div>
2091
2092 <p>
2093 Invoked by itself, <kbd>.BIBLIOGRAPHY_STRING_CAPS</kbd> will
2094 automatically capitalize the bibliography first-page title. Invoked
2095 with any other argument, the macro disables automatic capitalization
2096 of the title.
2097 </p>
2098
2099 <p>
2100 If you&#8217;re generating a table of contents, you may want the
2101 bibliography first-page title to be in caps, but the toc entry in
2102 caps/lower case. If the argument to
2103 <kbd><a href="#bibliography-string">BIBLIOGRAPHY_STRING</a></kbd>
2104 is in caps/lower case and BIBLIOGRAPHY_STRING_CAPS is
2105 on, this is exactly what will happen.
2106 </p>
2107
2108 <p>
2109 Mom&#8217;s default is to capitalize the bibliography first-page
2110 title.
2111 </p>
2112
2113 <div class="rule-long"><hr/></div>
2114
2115 <!-- Navigation links -->
2116 <table style="width: 100%; margin-top: 12px;">
2117 <tr>
2118 <td style="width: 33%;"><a href="toc.html">Back to Table of Contents</a></td>
2119 <td style="width: 33%; text-align: center;"><a href="#top">Top</a></td>
2120 <td style="width: 33%; text-align: right;"><a href="letters.html">Next: Writing letters</a></td>
2121 </tr>
2122 </table>
2123
2124 </div>
2125
2126 <div class="bottom-spacer"><br/></div>
2127
2128 </body>
2129 </html>