BibTeX is a tool used to format lists of references in LaTeX documents. It helps to organize and automate the bibliography process. If you are using citation management software (like Zotero, EndNote, Mendeley, etc.), these programs allow you to create a .bib file of your library. Here's a quick guide to get you started. We need at least the following two files to create bibliography.
BibTeX Database File (.bib):
LaTeX Document (.tex):
.bib file.You can either manually store your references in .bib file. Alternatively, you can use citation management software to create a .bib file. We are going to show both ways.
.bib fileA .bib file contains entries that look like this. For instance, we can create the following journal article citation for Albert Einstein's article:
@article{einstein1905,
author = {Albert Einstein},
title = {Zur Elektrodynamik bewegter K{\"o}rper},
journal = {Annalen der Physik}, year = {1905},
volume = {322},
number = {10},
pages = {891--921},
doi = {10.1002/andp.19053221004}
}
Manually creating a .bib file involves writing the BibTeX entries yourself. Here’s how to do it:
.bib extension (e.g., references.bib).Or, you can copy and paste bibtex format from Google scholars using the bibtex option. For instance,

This will open a new page for you to copy and paste your bibtex code:

Doing this manually can be overwhelming, especially if you are working with large projects like dissertation or book. So, relying on citation management software is super useful.
.bib fileCitation management software can simplify the process of creating and maintaining a .bib file. Here’s a quick overview of how to use some popular tools:
Zotero:
Add references manually or import them using browser extensions.
Export from the File menu and select BibTeX as the format.Mendeley:
Add references manually or import them from online databases.
File -> Export and choose BibTeX as the format to export your references to a .bib file.Using citation management software can save time and reduce errors, especially when dealing with large numbers of references.
Once you make sure that you have the necessary scholarly works that you want to cite in the .bib file, you can start citing them within your article.
You have to make sure that you add your .bib file to LaTeX document so that it knows where to look at for these citations.
.bib File to Your LaTeX Document:\bibliographystyle{plain} % or any other style you prefer
\bibliography{references} % references.bib is your BibTeX file
We are going to use the \cite{key} command to cite references.
According to \cite{einstein1905}, the theory of relativity is revolutionary.
\documentclass{article}
\usepackage{cite}
\begin{document}
\section{Introduction} Einstein's work on relativity \cite{einstein1905} is foundational.
\bibliographystyle{plain}
\bibliography{references}
\end{document}
