Debian Codegraph @

texmf-dist/doc/bibtex/inlinebib/inlinebib.txt

raw
1
2 Inline bibliography style
3
4 I want to have by BiBTeX generated references inlined in footnotes
5 rather than the very terse references BiBTeX generates by default, so
6 I hacked together a BiBTeX style to do that. These macros are not
7 polished or in the form of a proper distribution, but I have used them
8 with succes myself.
9
10 The following discription have been made in haste. I will document it
11 better when I have the time (RSN :-).
12
13 There are two files: [1]inlinebib.sty and [2]indexing.bst.
14
15 The idea
16
17 This works just like any other BiBTeX style. It will still generate
18 the bibliography at the end of the document, but it will also store
19 all the entries in the .aux files, so they can be inlined in the
20 following latex run.
21
22 The first time a citation is made using \cite the complete
23 bibliography entry is inserted. The following citations to the same
24 entry will generate a short form, with only authors last name and a
25 shortened title, followed by a "cit.". If the same bibliography entry
26 is cited several times in a row, the text will only be "ibid.".
27
28 Citations of this form are designed to be used in footnotes.
29
30 A little example migth be appropriate (don't we all love
31 screenshots!).
32
33 Footnotes from page one:
34 [Example 1]
35
36 Footnotes from page two:
37 [Example 2]
38
39 (the overstrike problem is courtesy of xdvi(1))
40
41 It is not possible to avoid having the complete bibliography at the
42 end of the document. The macros simply won't work without it. If you
43 don't need it, just don't print it.
44
45 Usage
46
47 Formalities
48
49 To use these macros put the file inlinebib.sty in your LaTeX search
50 path and inlinebib.bst in your BiBTeX style search path and then put
51 the line:
52
53 \usepackage{inlinebib}
54
55 in the preamble of your document.
56
57 Other commands have to be added at the point where you want the
58 bibliography to appear, usually at the end of the document. To tell
59 BiBTeX to use the inlinebib style, you have to use bibliographystyle:
60
61 \bibliographystyle{inlinebib}
62
63 Often I add a leading explanation to the bibliography with the
64 \bibliographycomment macro. That is:
65
66 \bibliographycomment{This bibliography ...}
67
68 The actual index is produced by the \bibliography macro. Here you have
69 to specify which BiBTeX databases you want to use.
70
71 \bibliography{file ...}
72
73 These were all the formalities.
74
75 Doing citations
76
77 When writing, just make citations as usual. Remember that these macros
78 can produce very verbose references, and they are intended for
79 footnotes.
80
81 The default implementation of \cite allows several bibliography
82 entries to be cited. This version allows only one at a time. It still
83 supports the optional argument, which should be a page reference
84 within the cited text.
85
86 There are a few additional macros available. \fullycite forces a
87 reference in the long form, \shortcite forces the short form, and
88 \noibid disables the generation "ibid." references for the next
89 citation (this can for example be used at the end of each chapter).
90
91 To force later citations for certain entries to be either long or
92 short, the macros \fullcitenext{} and \shortcitenext{} can be used.
93 The single argument is a comma separated list of BiBTeX labels that
94 should be either long or short the next time they are cited. E.g., the
95 code \fullcitenext{book1, book2} will cause LaTeX to forget that the
96 two references might have been seen earlier and they will be handled
97 as if they haven't be cited yet.
98
99 The BiBTeX databases
100
101 This style does not require special changes to the BiBTeX databases.
102
103 Sometimes the BiBTeX style doesn't manage to calculate the proper
104 short forms of the author and the title. In that case the BiBTeX
105 entries in question can be extended with shortauthor = {shorter author
106 name} and shorttitle = {short form of title}.
107
108 Tips and tricks
109
110 I have some macros to format page ranges, that I use with this BiBTeX
111 style. They should be usable with other styles as well.
112
113 The macros are here: [3]pageranges.sty
114
115 This file defined one user visible macro: \pages{}, which will do the
116 following transformations of the single argument:
117
118 \pages{N}
119 becomes: p.~N
120
121 \pages{N-}
122 becomes: pp.~N~ff
123
124 \pages{N-M}
125 becomes: pp.~N--M
126
127 \pages{N M}
128 becomes: pp.~N M
129
130 The last version is for cases like \pages{213, 345 and~654} which will
131 become pp.~213, 345 and~654.
132
133 I often have this little definition in a LaTeX style file. It makes
134 \cite do page ranges automatically and also puts the author in the
135 index (see [4]the indexing macros).
136
137 %% Automatically fix page ranges in citations and index author
138 \let\RS@citex\@citex
139 \def\@citex[#1]#2{\I@indexonly-{#2}\RS@citex[\pages{#1}]{#2}}
140
141 Comments
142
143 If you have comments, please [5]write me.
144
145 References
146
147 1. http://www.seindal.dk/rene/software/TeX/inlinebib.sty
148 2. http://www.seindal.dk/rene/software/TeX/inlinebib.bst
149 3. http://www.seindal.dk/rene/software/TeX/pageranges.sty
150 4. http://www.seindal.dk/rene/software/TeX/indexing.htm
151 5. mailto:[email protected]?Subject=Inlinebibmacros