How to add bibliography in LaTeX

Steps to add Bibliography/References to your LaTeX document

LaTeX is a popular document preparation system that is widely used in academia and scientific research. One of the essential elements of academic writing is the bibliography, which lists all the references cited in the document. In this article, we will demonstrate how to add bibliography in LaTeX using Overleaf, a popular online LaTeX editor.

Watch the Video Tutorial

Enjoy a step-by-step explanation. If you find the content helpful, please don't forget to hit the like button, share it with your friends, and leave a comment below. For more exciting content, make sure to subscribe to my channel and turn on notifications to stay updated whenever I post new videos. Thank you for watching! 


Step 1: Include the "natbib" package

To include the bibliography in your LaTeX document, you need to include the "natbib" package. You can do this by adding the following line of code to the preamble of your document:

\usepackage{natbib}

Step 2: Set the bibliography style

The next step is to set the bibliography style. There are several styles to choose from, and in this tutorial, we will use the "apalike" style. You can set the style by adding the following line of code to the preamble:

\bibliographystyle{apalike}

Step 3: Create the bibliography file

The next step is to create a bibliography file where you will store all the references that you want to cite in your document. You can create a new file by clicking on the "New File" button in Overleaf and selecting "Blank File." Name the file "references.bib," and make sure to include the ".bib" extension. This is important because LaTeX requires this extension to recognize the file as a bibliography file.

Step 4: Add references to the bibliography file

Once you have created the bibliography file, you can start adding references to it. You can either enter the references manually or use a reference manager like Zotero, Mendeley, or EndNote to export the references in BibTeX format. In this tutorial, we will use Google Scholar to find and export the references.

To add a reference from Google Scholar, follow these steps:

Once you have copied the BibTeX entry, go back to the "references.bib" file in Overleaf and paste the entry. Repeat this process for all the references that you want to cite in your document.

Step 5: Cite the references in your document

Once you have added all the references to the bibliography file, you can start citing them in your document. To cite a reference, you need to use the "\cite" command followed by the citation key of the reference. The citation key is the name that you gave to the reference in the bibliography file. For example, if you gave the name "kilian2004" to a reference in the bibliography file, you would cite it in your document like this:

According to \cite{kilian2004}, increases in oil prices have been held responsible for economic downturns.

Step 6: Generate the bibliography

To generate the bibliography, you need to include the "\bibliography" command in your document. This command tells LaTeX where to find the bibliography file and which bibliography style to use. Add the following lines of code to your document where you want the bibliography to appear:

\bibliography{references}

This command will generate the bibliography using the references in the "references.bib" file and the "apalike" style.

Conclusion:

In this tutorial, we have demonstrated how to add bibliography in LaTeX using Overleaf. By following these simple steps, you can easily create a professional-looking bibliography for your academic papers and research documents. Remember to always keep your bibliography file up-to-date and accurate, as this is an essential part of academic integrity. Happy writing!