I'm writing my thesis as a report document using TeXShop (pdflatex and bibtex) and want the bibliography to get its own section number and appear in the table of contents. Here's what I've tried so far and the problems arising:
\addcontentsline{toc}{section}{References}
Does not add the section number, not in the toc and naturally not in the section title.
\cleardoublepage
\renewcommand*{\bibname}{\section{References}}
\bibliographystyle{plain}
\bibliography{bibliography}
Error: ! Incomplete \iffalse; all text was ignored after line 1.
\cleardoublepage
\section{References}
\renewcommand*{\bibname}{}
\bibliographystyle{plain}
\bibliography{bibliography}
The only problem this leaves is that this starts the actual bibliography on the next page after it inserts 2.5 References. Otherwise I would be happy with this solution. How can I solve this issue?
natbib. I've changed natbib.sty (added an option tocnumber) to get me a numbered\section– Pascal Jan 06 '11 at 11:40\renewcommand{\bibsection}{\chapter{\refname}}or\renewcommand{\bibsection}{\section{\bibname}}, depending on the level you want assign the bibliography to. – egreg Jun 11 '11 at 10:10