[Tex/LaTex] How to get the References section to be numbered as if it were created via \section

bibliographiesnumberingsectioning

I am using the bibtex library to reference. Everything works fine but ideally I would like the reference section generated by bibtex to have the ordered number like \section{} generates.

For example,

\section{abstract}
\section{Intro}
\section{conclusion}
\section{reference}

would give a the labels 1,2,3,4 but I am using bibtex to generate the reference section:

 \section{abstract}
 \section{Intro}
 \section{conclusion}
 \bibliography{my_.bib_file_name}

This generates labels 1,2,3 but not the next number. Please let me know if there is a nice way to do this, thanks!

Best Answer

The tocbibind package can help you there. The option numbib will make the references into a ordinary section in the article class.

\documentclass{article}

\usepackage[numbib]{tocbibind}

\begin{document}

\section{Abstract}
\section{Intro}
\section{Conclusion}
\nocite{*}
\bibliographystyle{plain}
\bibliography{test}

\end{document}