BibTeX
New bibliography databases and new styles
Unix systems
Create a directory for the bibliography databases (
*.bib
files), e.g./home/voytek/share/bib
).Set an environment variable:
# export BIBINPUTS=.:$HOME/share/bib//
The double slash at the end means that all subdirectories will be also scanned.
Test the configuration:
# kpsewhich test.bib /home/voytek/share/bib/test.bib
For new bibliography styles use
BSTINPUTS
variable.
Windows systems
Follow instructions concerning creation of local TeX directory structure.
Copy the bibliography database files into
bibtex/bib
directory, and BibTeX style files intobibtex/bst
directory.Run MiKTeX –> Maintenance –> Settings program, go to the General tab, click Refresh FNDB and press OK.
Test the configuration:
Start
cmd.exe
and run:C:\> "C:\Program Files\MiKTeX\miktex\bin\kpsewhich.exe" test.bib C:/Home/Voytek/texmf/bibtex/bib/test.bib C:\> "C:\Program Files\MiKTeX\miktex\bin\kpsewhich.exe" test.bst C:/Home/Voytek/texmf/bibtex/bst/test.bst
Key generation algorithm
If there is only one author: take the first three letters out of his name and join it with the year number (two digits), e.g. Sch90.
If there are more than one author but less than four: take first letters of their names and join it with the year number (two digits), AB90.
If there are more than four authors: take first characters of the first three of them, a plus character, and two digits of the year, e.g. ABC+99.
If there are conflicts: attach single letters a, b and so on to the keys generated, e.g. AB90a.