1

I have a question regarding \natbib package. Whenever I generate references, package is automatically adding "References" title as in the screenshot below. I'd like to know whether it is possible to create a numbered section with custom title (i.e. force package not to create "References" section automatically)

\usepackage{natbib}
.
.
.
\section{Section}
\bibliographystyle{apalike}
\bibliography{bib}

enter image description here

1

You can have a look to the content of \thebibliography with \meaning\thebibliography, witch calls \bibsection, and (in article class) \meaning\bibsection uses \section * and \refname.

So change \refnameto 'Whatever you want', and copy paste the content of \bibsection, replacing the \section * by \section:

\renewcommand{\refname}{Whatever you want}
\makeatletter
\renewcommand{\bibsection}{%
   \section{\refname%
            \@mkboth{\MakeUppercase{\refname}}{\MakeUppercase{\refname}}%
   }
}
\makeatother

does the job.

| improve this answer | |
  • Thank you very much. This is exactly what I was looking for!!!!!! – Behzod A Sep 27 '18 at 17:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.