Adding references in LaTeX involves two main steps: creating a bibliography file (".bib") and citing references in your main document (.tex). Here's a breakdown of the process:
1. Creating a bibliography file:
• Create a new file with a .bib extension (e.g., references. Bib). This file will store information about your references.
• Use a reference management software or online tools to create entries in BibTeX format. You can also manually write them following the BibTeX format.
@article{wright2006,
title={Cosmic Microwave Background Radiation and Cosmology},
author={Wright, Edward L.},
journal={Publications of the Astronomical Society of the Pacific},
volume={118},
number={857},
pages={1710-1721},
year={2006}, }
2. LaTeX document (main.tex):
\documentclass{article}
\begin{document}
\usepackage{natbib}
In the field of cosmology, the Cosmic Microwave Background Radiation (CMB) is a crucial piece of evidence \cite{wright2006}. Hawking \cite{hocking2005} discusses the CMB in the context of the Big Bang theory.
\bibliographystyle{unsrt} % Set bibliography style (numeric)
%This style lists references in the order they appear in your document when you use the \cite command.
\bibliography{references} % Reference the BibTeX file
\end{document}
Plain
• It sorts the references alphabetically by the first author's last name.
• It uses author names and year in parentheses to refer to citations.
• This style is useful when you have many references and want them to be organized alphabetically for easy lookup.
#Latex #TexWorks #addingreferencesinlatex
https://eevibes.com/
For website:
https://eevibes.com/