Bibliography in LaTeX
Create a BibTeX file (.bib). It should be given the same name as and kept in the same folder as your .tex file.
Ex. bib file
@article{akhtarMathematicalModelDetection2008,
title = {Mathematical Model for the Detection of Selfish Nodes in {{MANETs}}},
volume = {1},
number = {3},
journal = {International Journal of Computer science and Informatics},
author = {Akhtar, Md Amir Khusru and Sahoo, G.},
year = {2008},
pages = {25--28}
}
title = {Humanistic Approach in Mobile Ad Hoc Network: {{HAMANET}}},
shorttitle = {Humanistic Approach in Mobile Ad Hoc Network},
journal = {arXiv preprint arXiv:1312.7660},
author = {Akhtar, Md and Khusru, Amir and Sahoo, G.},
year = {2013},
}
.....................
Use \cite{citation-key} command where you want to cite a reference in your .tex file.
Inserting the bibliography
Write the given commands where you want to insert the bibliography in your document (normally at the end)
\bibliographystyle{plain}
\bibliography{BibTeX filename}
\bibliographystyle{plain}
\bibliography{BibTeX filename}
Ex.
\documentclass{article}
\title{\LaTeX Management}
\author{Dr. Md. Amir Khusru Akhtar}
\usepackage{cite}
\begin{document}
\maketitle
In \LaTeX we can use cite package for multiple citation \cite{johnsonDSRDynamicSource2001,huPacketLeashesDefense2003,johnsonAcidMineDrainage2005} and single citation \cite{wohwesamboOptimizedClusteringAlgorithms2019}.
\bibliographystyle{plain}
\bibliography{2}
\end{document}
\documentclass{article}
\title{\LaTeX Management}
\author{Dr. Md. Amir Khusru Akhtar}
\usepackage{cite}
\begin{document}
\maketitle
In \LaTeX we can use cite package for multiple citation \cite{johnsonDSRDynamicSource2001,huPacketLeashesDefense2003,johnsonAcidMineDrainage2005} and single citation \cite{wohwesamboOptimizedClusteringAlgorithms2019}.
\bibliographystyle{plain}
\bibliography{2}
\end{document}
OUTPUT
Ex.
Use package apacite for apa style
\documentclass{article}
\usepackage{apacite}
\title{DDoS Attack}
\author{Dr. Md. A. K. Akhtar}
\begin{document}
\maketitle
Distributet DoS \cite{huPacketLeashesDefense2003}.
\bibliographystyle{apacite}
\bibliography{2}
\end{document}
Output