0

I am creating a dissertation style document in LaTeX and am required to use the universities layout which is a premade code I have saved and added in to my premable. At the moment the title for the bibliography reads 'Reference' but I want it to read 'Bibliography'. I have seen other pages on here that tell you to add in this line

\renewcommand{\bibname}{Bibliography} 

which I have done but it has not changed anything for me. Below is the code I have used, have I done anything wrong? Is there a command I need to add into the bibliography itself?

\documentclass[a4paper,12pt]{report}
\renewcommand{\bibname}{Bibliography}
\begin{document}

\begin{thebibliography}{99}


    \bibitem{derbyshire} J. Derbyshire.{\em Unknown Quantity}, Atlantic, London (2007).

\end{thebibliography}

\end{document}
harry55
  • 153

1 Answers1

2
\documentclass[a4paper,12pt]{report}
\usepackage{bbkproject}

\makeatletter
\gdef\@bibname{Bla}
\makeatother


\begin{document}


\begin{thebibliography}{99}


    \bibitem{derbyshire} J. Derbyshire.{\em Unknown Quantity}, Atlantic, London (2007).

\end{thebibliography}

\end{document}

enter image description here

  • Okay this works, thank you! Would you mind just explaining to me what \makeatletter does and \makeatother? And do you know why my way wasn't working? – harry55 Mar 16 '17 at 17:24
  • 1
    @harry55 \makeatletter makes @ a letter, which is necessary if you want to use @ in your preamble. As to why your way was not working: this is simply because the package you are using seems to be quite a mess and the name was defined there like this ... – samcarter_is_at_topanswers.xyz Mar 16 '17 at 17:28
  • @harry55 see http://tex.stackexchange.com/questions/8351/what-do-makeatletter-and-makeatother-do – samcarter_is_at_topanswers.xyz Mar 16 '17 at 17:31
  • \makeatletter \gdef\@bibname{Bla} \makeatother did not work with the documentclass article – Black Mild Apr 20 '20 at 05:43