1 BibTeX_ is a bibliographic database format and processing tool often
4 .. _BibTeX: http://www.bibtex.org/
9 I maintain the bibliography format with pybtex_. The actual command
10 used to re-format the files is
12 $ python -c 'from pybtex.database.input.bibtex import Parser; from pybtex.database.output.clean_bibtex import Writer; p = Parser(); d = p.parse_file("src/sawsim.bib"); w = Writer(); w.write_file(d, "src/sawsim.bib", p.get_raw_macros())' 2> pybtex.log
14 Be sure to look over `pybtex.log` and `git diff src/sawsim.bib` for
15 anything suspicious before committing the new file. You may have to
16 do some find-and-replacing to handle changed keys and consolidate or
17 rename automatically generated macros.
19 .. _pybtex: http://pybtex.sourceforge.net/
21 % which I can kindof achieve with
22 % $ bibtool -f '%-1n(author)%2d(year)' wtk.bib -o wtk1.bib
23 % Except any paper with more than one author has a '.ea' appended to the name
24 % and bibtool removes all comments :(.
30 At some point in your LaTeX document
32 \bibliographystyle{prsty} % Phys. Rev. style
34 other syles include `abbrv`, `alpha`, `plain`, `unsrt`, ...
35 In your LaTeX document where you want the bibliography:
37 \bibliography{wtk} % wtk.bib is the name of the database
39 compile (using `latex` for example) with
46 There are many possible author name formats, but the least ambiguous
47 is `von Last, Jr., First Middle`. If the `von` is capitalized
48 (e.g. "Emanuela Di Cola"), use `\uppercase`:
50 @String{EDCola = "{\uppercase{d}}i Cola, Emanuela"}
52 See *Tame the BeaST* for details.
57 The Natbib package adds support for other citation styles & link
63 Customize bibliography with Makebst (`latex makebst`), makes `.bst`
64 (bib-style) format files according to your specifications.
69 There are a number of good resources to get you going:
71 * very basic tutorial:
72 http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html
73 * Really awesome explaination of how BibTeX works:
74 http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/
76 http://www.andy-roberts.net/misc/latex/latextutorial3.html
77 * entry types reference
78 http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html
80 http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html
81 * entry and fields reference, but with little discussion
82 http://en.wikipedia.org/wiki/BibTeX
83 * examples of assorted styles
84 http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html
86 http://liinwww.ira.uka.de/bibliography/Bib.Format.html
87 * Nelson Beebe's list of bibliographies
88 http://www.math.utah.edu/~beebe/bibliographies.html
89 * Nelson Beebe's GNU bibliography
90 http://www.math.utah.edu/pub/tex/bib/gnu.html