Tuesday, June 10, 2008

 

Bibtex and Miktex: A bibliography program

I'm not sure if this is worth using or not. Here's how it works with Miktex.


1. For your file myfile.tex, construct a bibliography database file
myfile.bib with a bunch of entries like this, which do not not have to
be in alphabetical order:

 @article{hotelling:1929:ej,
  author = {Hotelling, Harold},
  journal = {Economic Journal},
  month = {mar},
  number = {153},
  pages = {41--57},
  publisher = {Royal Economic Society},
  title = {Stability in Competition},
  volume = {39},
  year = {1929}
}

You can do this from Google Scholar by going to Scholar Preferences and
checking off towards the bottom that you want a Bibtex-format link.
After you set your prferences,  Import into BibTeX will be a link  fror
each item a   Google Scholar search turns up.

2. Pick a style file such as econometrica.bst.  Put that file and the
myfile.bib file into the same directory as myfile.tex.

3. Wherever you want the references in myfile.tex, insert the commands

\bibliographystyle{econometrica} %needs  econometrica.bst file in folder
 \bibliography{myfile} %needs myfile.bib file in folder

 \nocite{*}

 The nocite command makes sure that all the entries in the myfile.bib
file get put into the references. Otherwise, only the ones cited using
bibtex commands get put in. The bibtex citing commands are just extra
commands to remember and make reading latex input files harder, so I
don't think I'll use them.


4. Change the name of myfile.tex to plain myfile.

5. Run myfile  through pdflatex.  That will create myfile.aux.

6. Run myfile through bibtex. That will use myfile.aux and
econometrica.bst and myfile.bib to create myfile.blg, a log file, and
also myfile.bbl, the bibliography formatted nicely.

7. Run myfile through pdflatex again.
My files of latex tips, including this one, is at http://rasmusen.org/a/latex-rasmusen.txt.

Labels:

 

To view the post on a separate page, click: at (the permalink).

Links to this post:

Create a Link

<< Home