Time for action – creating and using a BibTeX database

We shall create a separate database file containing the references of our previous example. We will modify our example to use that database. To make this database usable, we have to call the external program BibTeX :

  1. Create a new document. Begin with writing the entry for the TeXbook:
    @book{DK86,
    author = "D.E. Knuth",
    title = "The {\TeX}book",
    publisher = "Addison Wesley",
    year = 1986
    }
  2. For the next entry, that is, the article, we will specify even more fields:
    @article{DK89,
    author = "D.E. Knuth",
    title = "Typesetting Concrete Mathematics",
    journal = "TUGboat",
    volume = 10,
    number = 1,
    pages = "31--36",
    month = apr,
    year = 1989
    }
  3. Save the file and give it the name tex.bib. Open our example

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.