I have a university thesis class file at https://github.com/uclathes/uclathes
When I'm trying to use the natbib package, compiling error with pdflatex shows
LaTeX Error: Environment thebibliography undefined.
l.1063 \renewenvironment{thebibliography}[1]{%
Minimum code:
\documentclass[PhD]{uclathes}
\usepackage{natbib}
\begin{document}
Test 1-2-3 \citet{austin2002simplescalar}
\bibliography{bib_references}
\bibliographystyle {plainnat}
\end{document}
bib_references.bib file
@article{austin2002simplescalar,
title={SimpleScalar: An infrastructure for computer system modeling},
author={Austin, Todd and Larson, Eric and Ernst, Dan},
journal={Computer},
volume={35},
number={2},
pages={59--67},
year={2002},
publisher={IEEE}
}
I found a similar question here Conflict between TikZ and university thesis class file
I tried to change the variable name thebibliography defined in the thesis class file to be a different one, but the error still shows.
thebibliographyenvironment is defined – Feb 26 '17 at 01:18uclathes.clsfile apparently dates back to 1995... And the link to other question concerns a totally different class ;-) – Feb 26 '17 at 01:22\newblockbeing undefined. – Feb 26 '17 at 01:44