Skip to content

Introduction and example

When using BiBTeX, the bibliography style is set and the bibliography file is imported with the following two commands:


where bibfile is the name of the bibliography .bib file, without the extension, and stylename is one of values shown in the table below.

Here is an example that you can open in Overleaf—the .bib file is created for you:

%Includes "References" in the table of contents

%Title, date an author of the document
\title{Bibliography management: BibTeX}

%Begining of the document




\section{First Section}
This document is an example of BibTeX using in bibliography management. Three items are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and the Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}. 


%Sets the bibliography style to UNSRT and imports the 
%bibliography file "sample.bib".

 Open in Overleaf (a suitable .bib file is generated)

Table of stylename values

stylename output
abbrv BibtexStylesEx1.png
acm BibtexStylesEx2.png
alpha BibtexStylesEx3.png
apalike BibtexStylesEx4.png
ieeetr BibtexStylesEx5.png
plain BibtexStylesEx6new.png
siam BibtexStylesEx7.png
unsrt BibtexStylesEx8.png

Further reading

For more information see:

Overleaf guides

LaTeX Basics


Figures and tables

References and Citations


Document structure





Field specific

Class files

Advanced TeX/LaTeX