Skip to content

Sharelatex Bibliography Styles Latex

It's possible to include references in ShareLaTeX using all major bibliographies management programs: biblatex, natbib and bibtex. This article explains how to create a .bib bibliography database file from scratch, how to upload and existing one and how to create one from a template.

[edit] Creating your bibliography database

To create a new bibliography file in ShareLaTeX, in the editor, click New File icon .

an input box will appear for you to set the name of the new file. The file should have the .bib extension, in this example is called "mybibliography.bib"; now click on Create.

A new file will be listed in the left panel, click it to edit its contents. Add your bibliography entries there.

Now you can import this .bib file in the main .tex file. See the next example

\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[english]{babel}   \usepackage[ backend=biber, style=alphabetic, sorting=ynt ]{biblatex}   \addbibresource{mybibliography.bib}   \title{Bibliography management: \texttt{biblatex} package}\author{Share\LaTeX}\date{}   \begin{document}   \maketitle   \section{First section}   Using \texttt{biblatex} you can display bibliography divided into sections, depending of citation type. Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's book \cite{dirac} are physics related items. Next, \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Donald Knuth's website \cite{knuthwebsite}, \textit{The Comprehensive Tex Archive Network} (CTAN) \cite{ctan} are \LaTeX\ related items; but the others Donald Knuth's items \cite{knuth-fa,knuth-acp} are dedicated to programming.   \medskip   \printbibliography\end{document}

The command adds the created bibliography file to the document so you can use those references. See Bibliography management in LaTeX for more information about bibliography management.

[edit] Uploading your bibliography database

If you already have a bibliography file that you need to use in a ShareLaTeX project, you can upload it. Click the Upload icon on top of the the left panel.

A dialogue box will appear, you can either drag and drop the .bib file or click Select file(s) to navigate to the location of your file.

Once the upload process is finished you can include the .bib file in your main .tex document. See the last example in the previous section.

[edit] Using a template

ShareLaTeX provides a vast set of templates for almost all kind of LaTeX documents, they include several bibliography-related ones.

If you are in the editor view, click the "Back to projects" icon to go to the Projects view.

In the the Project Management view click the button New Project, then in the drop-down menu that will appear click Bibliographies.

You will be redirected to a list of bibliography templates

click the one you prefer, in the next page click Open in ShareLaTeX:

The template will open in the ShareLaTeX editor so you can start working on it.

[edit] Quick guides

  • Creating a bibliography file from scratch. In editor, on the upper left corner click the New file icon then enter the name for your new file with extension .bib and click Create. You can now start editing you file.
  • Uploading your bibliography database. To upload an existing .bib file click the Upload icon . Drag and drop your file in the dialogue box and wait for your file(s) to be uploaded. After that you can use your .bib within the document.
  • Using a template. In the Project Management page click New Project => Bibliographies you will be redirected to the Templates page, select the one you need and then click Open in ShareLaTeX

[edit] Supported bibliography packages

For more information about bibliography management in LaTeX see.

Biblatex provides several standard citations styles, if no citation style is set LaTeX uses the one that matches the bibliography style. Below you can see an example:

\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[english]{babel}   \usepackage[ backend=biber, style=alphabetic, citestyle=authoryear ]{biblatex}   \addbibresource{sample.bib}%Imports bibliography file   \begin{document}\section{First section}   This document is an example, two items are cited: \textit{The \LaTeX\ Companion} book is \cite{latexcompanion}, and Einstein's journal paper is \cite{einstein}.   \medskip   \printbibliography\end{document}

The parameter passed to the command that imports biblatex is the one that sets the citation style, in this case authoryear. The standard citation styles are:

  • Implements a numeric citation scheme intended for in-text citations. Should be employed in conjunction with the numeric bibliography style.
  • Compact variant of the mode. Citations like [1, 2, 3] are replaced by [1-3].
  • Verbose variant of the style. Instead of [2, 5, 7] will print [2];[5];[7].
  • Alphabetic citation scheme similar to the standard in style bibtex. To be used in conjunction with the alphabetic bibliography style.
  • Verbose version of the style. Instead of [Doe98, Doe95, Farn2004] will print [Doe98];[Doe95];[Farn2004].
  • Implements the author-year citation scheme. To be used in conjunction with the author-year bibliography style.
  • Compact variant of the style. Prints the author only once if subsequent references passed to a single citation command share the same author. Prints Doe 1992, 1995 instead of Doe 1992, Doe 1995.
  • A variant of the intended for footnote citations. Replaces repeated citations by the abbreviation ibidem.
  • A style combining the features of and
  • Implements the author-title scheme. Intended for citations given in footnotes.
  • Compact variant of . Instead of Doe, First title; Doe, Second title this will print Doe, First title, Second title.
  • A variant of the intended for footnote citations. Replaces repeated citations by the abbreviation ibidem.
  • A style combining and .
  • Variant of that only prints the title if the bibliography contains more than one work of the respective author/editor.
  • Style combining and .
  • Style combining and .
  • Citation style that prints a full citation when the entry is cited for the first time and a short version afterwards.
  • Citation style that goes with the bibliography style by the same name. Loads the style.

There are other non-standard citation styles popular in different journals and thesis

  • In Sciences:
    • American Chemical Society (ACS) style
    • American Institute of Physics (AIP) style
    • American Mathematical Society (AMS) style
    • Vancouver system
    • Institute of Electrical and Electronics Engineers (IEEE) style
    • Nature style
    • Science style
  • In Humanities:
    • Chicago Style
    • Harvard referencing style
    • MLA style
  • In Socials:
    • American Psychological Association (APA) style
Citation style stylename
AIP (*)

(*) this is a new style, see

  Open an example of the biblatex package in ShareLaTeX

[edit] Further reading

For more information see