rlm@421
|
1 To comment out part of an entry in BibTeX, you can use:
|
rlm@421
|
2
|
rlm@421
|
3 @Comment{body of text}
|
rlm@421
|
4
|
rlm@421
|
5 If you wish to comment out the entire entry, just remove the @ sign in
|
rlm@421
|
6 front of the entry type (i.e., get rid of the '@' in "@Book").
|
rlm@421
|
7
|
rlm@421
|
8 *************************************************************************
|
rlm@421
|
9
|
rlm@421
|
10 You can specify fixed strings (say if you needed to use it multiple
|
rlm@421
|
11 times in your BibTeX file) with the @String command:
|
rlm@421
|
12
|
rlm@421
|
13 @String(Leslie-Lamport = {Leslie Lamport})
|
rlm@421
|
14
|
rlm@421
|
15 and then you could use it in various entries:
|
rlm@421
|
16
|
rlm@421
|
17 @Book{latex,
|
rlm@421
|
18 Author = Leslie-Lamport,
|
rlm@421
|
19 Title = "\LaTeX",
|
rlm@421
|
20 ...
|
rlm@421
|
21 Year = "1993"}
|
rlm@421
|
22
|
rlm@421
|
23 *************************************************************************
|
rlm@421
|
24
|
rlm@421
|
25 The required fields are not prefaced with OPT. Those that are optional
|
rlm@421
|
26 *are* prefaced with OPT (remember to delete those three characters should
|
rlm@421
|
27 you wish to use those fields).
|
rlm@421
|
28
|
rlm@421
|
29 [Note:
|
rlm@421
|
30 For most entry types the "author" information is simply the AUTHOR
|
rlm@421
|
31 field. However: For the @Book and @Inbook entry types it's the AUTHOR
|
rlm@421
|
32 field, but if there's no author then it's the EDITOR field; for the
|
rlm@421
|
33 @Manual entry type it's the AUTHOR field, but if there's no author then
|
rlm@421
|
34 it's the ORGANIZATION field; and for the @Proceedings entry type it's
|
rlm@421
|
35 the EDITOR filed, but if there's no editor then it's the ORGANIZATION
|
rlm@421
|
36 field.]
|
rlm@421
|
37
|
rlm@421
|
38 To use this, just have your main.tex specify the following:
|
rlm@421
|
39
|
rlm@421
|
40 \bibliography{main}
|
rlm@421
|
41 \bibliographystyle{plain}
|
rlm@421
|
42
|
rlm@421
|
43 There are several options for bibliographystyle:
|
rlm@421
|
44
|
rlm@421
|
45 plain normal style - listed in ABC order and labeled numerically
|
rlm@421
|
46 unsrt same as plain except entries appear in order of citation
|
rlm@421
|
47 alpha same as plain except entry labels are used
|
rlm@421
|
48 abbrv same as plain except uses abbreviations for first names,
|
rlm@421
|
49 month names, and journal names
|
rlm@421
|
50
|
rlm@421
|
51 Now that you have the basis for a bibliography, you have to run both
|
rlm@421
|
52 latex and bibtex on the document. First, you should run latex (to
|
rlm@421
|
53 create a foo.aux file, which bibtex reads). Then run bibtex once to get
|
rlm@421
|
54 some of the citations and create a .bbl file. Then run latex again so
|
rlm@421
|
55 that the cross references between the text file and the bibliography are
|
rlm@421
|
56 correct. You may want to repeat running bibtex and latex on the file to
|
rlm@421
|
57 make sure that all cross references are correct. Be warned that
|
rlm@421
|
58 adding/deleting citations and sources will require running bibtex again.
|
rlm@421
|
59
|
rlm@421
|
60 For more information on this topic, please refer the following pages in
|
rlm@421
|
61 the LaTeX manual by Leslie Lamport:
|
rlm@421
|
62
|
rlm@421
|
63 72-74 Bibliography and Citation
|
rlm@421
|
64 74-74 BibTeX
|
rlm@421
|
65 140-147 Format of the .bib File (also gives info on other entry types) 187-188 Bibliography and Citation
|
rlm@421
|
66
|
rlm@421
|
67 ----------------------------------------
|