Citing and referencing using Bibtex

Bibtex is used for creating a bibliography in any of your LaTeX documents.

Why should you use Bibtex?

To make the best use of Bibtex first compile a Master Bibliography. You can then use this for all future LaTeX documents.

  1. Create a database file,say, (Master.bib) that lists the items that you want to reference in Bibtex format.
  2. Specify the style and location of the bibliography in your LaTeX document by including in your LateX code the command
    where bibstyle is defined below, anywhere in your document and the command
    where you want the bibliography/reference list to appear.
  3. Run latex and bibtex as described under Compiling below.


Here is the LaTeX code for the text in the library page

\bibliographystyle{plain}%Choose a bibliograhpic style
Note. This is the Postscript version with plain bibliographic style.
Most of the academic staff in the School of Computer Science and Software Engineering have publications in their field of expertise or research. The majority of the publications appear in journals or proceedings of conferences. Articles appearing in journals may be written by a single author~\cite{Meyer2000}. Where there are multiple authors, the citation in the text usually names only the first author, for example Kim Marriott's article on logic programming~\cite{Codishetal2000}. The same fate befalls Henry Wu~\cite{Huetal2000}. Some authors contribute a chapter to edited books~\cite{WallaceandKorb1999}. Others, for example Christine Mingins, jointly publish a book~\cite{Jezequeletal2000}. Damian Conway is a world expert on Perl. As well as having written a book on this topic~\cite{Conway2000}, he has also been the subject of articles~\cite{Johnston2000}.

Example of the Bibliographic Database

AUTHOR="Bernd Meyer",
TITLE="A constraint-based framework for diagrammatic reasoning",
JOURNAL="Applied Artificial Intelligence",
VOLUME= "14",
ISSUE = "4",
PAGES= "327--344",
AUTHOR="M. Codish and K. Marriott and C.K. Taboch",
TITLE="Improving program analyses by structure untupling",
JOURNAL="Journal of Logic Programming",
VOLUME= ""43",
ISSUE = "3",
PAGES= "251--263",
author = "J. Hu, and H.R. Wu and A. Jennings and X. Wang",
title = "Fast and robust equalization: A case study",
booktitle = "Proceedings of the World Multiconference on Systemics, Cybernetics and Informatics, (SCI 2000), Florida, USA, 23-26 July 2000",
publisher = "International Institute of Informatics and Systemics",
address = "FL, USA",
pages = "398--403",
year = "2000"
author = {Damian Conway},
title = {Object {O}riented {P}erl: {A} comprehensive guide to concepts and programming techniques},
publisher = {Manning Publications Co.},
year = {2000},
address = {Connecticut, USA}

Notice that each article has a key (such as Conway2000) which is used to cite the article.

Compiling the example

Save the above text into a file called example.tex
Now use the following commands
  1. latex example
  2. bibtex example
  3. latex example
  4. latex example
  5. dvips example

Note: As usual in LaTeX you do not need all these repetitions every time and that you only need to run Bibtex if the references change.

If you prefer your output in PDF format replace the last two commands by

    pdflatex example

The resulting postscript output looks similar to the Vancouver style in the library page.

(Source code for the Postscript version.)

Here is the resulting PDF output using the ACM style.

(Source code for the PDF version.)