<reponame>jrminter/jrm-latex-examples
%
% <NAME>' LaTeX Document Template
%
\documentclass[12pt]{article}
% \bibliographystyle{plain}
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
\RequirePackage{filecontents}

% \usepackage[square,numbers]{natbib}
\usepackage[square,numbers]{}
\bibliographystyle{plainnat}

\usepackage{geometry} % to change the page dimensions
\geometry{letterpaper} % or letterpaper (US) or a5paper or....
\geometry{margin=1in} % for example, change the margins to 2 inches all round

\usepackage{graphicx} % support the \includegraphics command and options


%%% PACKAGES
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
% These packages are all incorporated in the memoir class to one degree or another...
% \usepackage[comma,authoryear]{natbib}
\usepackage{natbib}

%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
\renewcommand{\headrulewidth}{0pt} % customise the layout...
% \lhead{<NAME>}                        % Your name
% \rhead{Report Title}          % Your report title

%%% SECTION TITLE APPEARANCE
\makeatletter
\renewcommand{\@biblabel}[1]{[#1]\hfill}
\makeatother

\usepackage{sectsty}
\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)

%%% ToC (table of contents) APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!


\title{The Report Title}
\author{<NAME>}
\date{2021-05-03}

\begin{document}

\maketitle
\nocite{*}

\section{First section}



This document is an example of \texttt{thebibliography} environment using 
in bibliography management. Three items are cited: \textit{The \LaTeX\ Companion} 
book \cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and the 
Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related items are
\cite{latexcompanion,knuthwebsite}. 

\medskip

% this left-justifies the bibliography
\raggedright
\bibliography{rep-w-external-bib }

\end{document}