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
49 The Natbib package adds support for other citation styles & link
55 Customize bibliography with Makebst (`latex makebst`), makes `.bst`
56 (bib-style) format files according to your specifications.
61 There are a number of good resources to get you going:
63 * very basic tutorial:
64 http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html
66 http://www.andy-roberts.net/misc/latex/latextutorial3.html
67 * entry types reference
68 http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html
70 http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html
71 * entry and fields reference, but with little discussion
72 http://en.wikipedia.org/wiki/BibTeX
73 * examples of assorted styles
74 http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html
76 http://liinwww.ira.uka.de/bibliography/Bib.Format.html
77 * Nelson Beebe's list of bibliographies
78 http://www.math.utah.edu/~beebe/bibliographies.html
79 * Nelson Beebe's GNU bibliography
80 http://www.math.utah.edu/pub/tex/bib/gnu.html