Debian Codegraph @

texmf-dist/tex/generic/bibtex/apalike.tex

raw
1 % apalike.tex, version 0.99b (8-Dec-10), for btxmac 0.99i, BibTeX 0.99c,
2 % TeX 3.0 or later.
3 %
4 % Copyright (C) 1990, 1991, 1992, 2010 Oren Patashnik.
5 % Unlimited copying and redistribution of this file are permitted as long as
6 % it is unmodified. Modifications (and redistribution of modified versions)
7 % are also permitted, but only if the resulting file is renamed.
8 %
9 % This file, apalike.tex, contains TeX macros that let you use the
10 % apalike bibliography style with plain TeX. In essence, this file
11 % provides the TeX counterpart to apalike.sty, the LaTeX style file
12 % required for using the apalike bibliography style. Please report any
13 % bugs (outright goofs, misfeatures, or unclear documentation) to
14 % [email protected]. These macros will become frozen
15 % shortly after BibTeX version 1.00 is released.
16 %
17 % AMS-TEX WARNING: This style (apalike) doesn't work with AmS-TeX's
18 % `amsppt' style, because AmS-TeX redefines the tie character `~' of
19 % plain TeX, and the `amsppt' style redefines plain TeX's `\nobreak'
20 % macro, so that a multiple-author reference for which `apalike'
21 % automatically produces an in-text citation like `(Jones et~al., 1992)'
22 % will throw AmS-TeX's `amsppt' style into an infinite loop, exceeding
23 % its input stack size. (I've checked no other AmS-TeX styles for this
24 % problem.) The AmS-TeX warning of btxmac.tex gives more information.
25 % END OF AMS-TEX WARNING.
26 %
27 % Editorial note (i.e., flame):
28 % Many journals require a style like `apalike', but I recommend that you
29 % not use it if you have a choice---use something like `plain' instead.
30 % Mary-Claire van Leunen (A Handbook for Scholars, Knopf, 1979) argues
31 % convincingly that a style like `plain' encourages better writing than
32 % one like `apalike'. Furthermore the best argument for using an
33 % author-date style like `apalike'---that it's "the most practical"
34 % (The Chicago Manual of Style, University of Chicago Press, thirteenth
35 % edition, 1982, pages 400--401)---falls flat on its face with the new
36 % computer-typesetting technology. For instance page 401 of the Chicago
37 % Manual anachronistically states "The chief disadvantage of [a style
38 % like `plain'] is that additions or deletions cannot be made after the
39 % manuscript is typed without changing numbers in both text references
40 % and list." With (La)TeX the disadvantage obviously evaporates.
41 % Moreover, apalike indulges in what I think is a shortsighted practice:
42 % automatically abbreviating first names. Abbreviating may occasionally
43 % make the work a page shorter, but at the cost of a less useful
44 % reference list; that's too high a cost for such a marginal benefit.
45 % The offense isn't egregious for a name like `Donald E. Knuth'---at
46 % least among those familiar with his field---since there aren't many
47 % other `D. E. Knuth's floating around. But referring to `D. E. Smith'
48 % in a field having more than one can be quite confusing. Moreover,
49 % with the proliferation of computers and citation indexes nowadays,
50 % it's important to indicate in the reference list an author's name
51 % exactly as it appears in the work cited. Automatically abbreviating
52 % first names is simply bad scholarship. (End of flame.)
53 %
54 % To use these macros you need the btxmac.tex macros, which let you use
55 % BibTeX with plain TeX (rather than with LaTeX); the file btxmac.tex
56 % explains those macros in detail, and gives examples. You simply
57 % \input apalike right after you \input btxmac to invoke these macros.
58 %
59 %
60 % HISTORY
61 %
62 % Oren Patashnik wrote the original version of these macros in December
63 % 1990, for use with btxmac.tex.
64 %
65 % 12-Dec-90 Version 0.99a, first general release.
66 % 29-Feb-92 0.99b, changed `\biblabelextrahang' to `\biblabelextraspace',
67 % to keep up with btxmac.tex version 0.99i.
68 % 8-Dec-10 Still version 0.99b, as the code itself was unchanged;
69 % this release clarified the license.
70 %
71 % Here, finally (I swear, I thought he was never gonna stop), are the
72 % macros. The first bunch makes the label empty and sets 2em of
73 % hanging indentation (via \biblabelextraspace) for each entry.
74 %
75 \def\biblabelprint#1{\noindent}%
76 \def\biblabelcontents#1{}%
77 \def\bblhook{\biblabelextraspace = 2em }%
78 %
79 %
80 % And the last bunch formats an in-text citation: parens around the
81 % entire citation; semicolons separating individual references; and a
82 % comma between a reference and its note (like `page 41') if it exists.
83 %
84 \def\printcitestart{(}% left paren
85 \def\printcitefinish{)}% right parent
86 \def\printbetweencitations{; }% semicolon, space
87 \def\printcitenote#1{, #1}% comma, space, note (if it exists)