How to make my bibliography an appendix?

I'm trying to do this:

\documentclass{article}
\usepackage{natbib}
\begin{document}
% ...
\phantomsection
\appendix
\bibliographystyle{apalike}
\bibliography{mybib}
\end{document}


I want my bibliography be titled as "A. References", as all other appendixes. But it's still titled as "References". What to do?

-

This is because the bibliography is set as a \section* You'll need to redefine the bibliography sectioning command \bibsection

\renewcommand{\bibsection}{\section{\refname}}


Or something like that. Can't check it works right now...

-
For the article class, it should be \refname instead of \bibname. – lockstep Nov 4 '10 at 14:51
@lockstep Thanks. I've edited it now. I still haven't actually checked the above works. I'm stupidly busy, I don't even know why I'm on SE at all... – Seamus Nov 4 '10 at 16:59

With biblatex, you can define the references as a section similar to any section. You can also easily add text between the section title and the references.

\documentclass[fleqn,10pt]{article}
\usepackage{csquotes}
\usepackage[style=alphabetic,sorting=nty,sortcites=true,autopunct=true,babel=hyphen,
hyperref=true,abbreviate=false,backref=false]{biblatex}
\bibliography{mem}
\begin{document}
\section{Section 1}
ploplo\cite{report}
\section{Section 2}
ploplo
\appendix
\section{References}
blabla
\end{document}


with mem.bib as follows:

@TechReport{report,
author =      {Name, first name},
title =       {Report title},
institution = {School},
year =        {2010}
}

-

The short answer is that you shouldn't: The bibliography is an unnumbered section/chapter by aeons of printing custom.

Many of the default (La)TeX decisions seem nonsensical or counterintuitive, but digging deeper you find that they have a very sound reason, or at least stem from a long tradition. Don't forget that the principal function of the formatting of the text is to make reading easy (that includes catering to well-worn routine), never to startle the reader.

-