Learn through the super-clean Baeldung Pro experience:
>> Membership and Baeldung Pro.
No ads, dark-mode and 6 months free of IntelliJ Idea Ultimate to start with.
Last updated: March 18, 2023
LaTeX is a powerful typesetting language widely used mostly for academic writing purposes. Furthermore, one of the main features of LaTeX is the possibility of automatically generating citations and bibliographies using various citation styles.
In this tutorial, we’ll introduce the different citation styles available in LaTeX. We’ll show how to use them, their potential advantages, and particular disadvantages.
Before we dive into the different citation styles, it’s relevant to understand the basic structure of a citation in LaTeX.
Now, a citation consists of two parts:
For example, we can use the command \cite{key} to insert an in-text citation with the key “key”.
LaTeX provides a wide variety of citation styles to select, as we’ll see in the following sections, allowing authors to choose the one that best fits their needs. The best citation style to use will depend on the specific needs of the publication and the author’s personal preferences.
The author-year citation style, or Harvard style, is popular in the social sciences. Additionally, this style includes the author’s last name and the year of publication in the citation, e.g. (Smith, 2021).
To use this style in LaTeX, we can use the natbib package and the \citet and \citep commands. We can use the\citet command for in-text citations and the command \citep for parenthetical citations.
Here’s an example:
\usepackage{natbib}
...
According to \citet{smith2021},...
The provided example produces the following output:
Some advantages and disadvantages of the author-year citation style follow.
Advantages:
Disadvantages:
The numeric citation style is commonly used in the natural sciences and engineering. Moreover, this type of style numbers the sources in the order they appear in the text and includes the corresponding number in the citation, e.g., [1].
To utilize this style in LaTeX, we can use the cite package with the \cite command.
Here’s an example:
\usepackage{cite}
...
According to some studies [1],...
The presented example results in the following output:
The particular advantages and disadvantages of the numeric citation style are presented next.
Advantages:
Disadvantages:
The author-title citation style, known as the Vancouver style, is commonly used in the biomedical sciences. In addition, this style includes the author’s last name and the title of the source in the citation, e.g. (Smith, “Some Title”, 2021).
To use this style in LaTeX, we can use the biblatex package and the \autocite command.
Here’s an example:
\usepackage[style=authortitle]{biblatex}
...
According to \autocite{smith2021},...
The example shown produces the following output:
Relevant advantages and disadvantages regarding the author-title citation style follow.
Advantages:
Disadvantages:
The footnote citation style is typically used in the humanities. Furthermore, this style includes the citations as footnotes at the bottom of the page, e.g., .
To employ this style in LaTeX, we can use the footmisc package and the \footnote command.
Here’s an example:
\usepackage[bottom]{footmisc}
...
According to some scholars\footnote{See Smith, 2021.},...
The provided example generates the following output:
Next, we show the most prominent advantages and disadvantages of the footnote citation style.
Advantages:
Disadvantages:
In summary, this article provides an overview of the different citation styles available in LaTeX. However, each of these citation styles has its advantages and disadvantages. So, the best citation style to use will depend on our discipline and personal preferences.
Generally, LaTeX’s flexibility and customization options make it easy to switch between citation styles as needed.