I have a paper I am writing and have to use a specific template from my university. I have been able to get it to a format closer to what I am used to but I am having trouble where I cannot add the bibliography, and get a number of errors. I have been searching online on how to fix it and am yet to find a way so I am hoping someone can shed some light on the issue here.
I have added a condensed version of my tex file below to show what I am doing. I have tried adding the bibliography normally as is shown and tried beginning (\begin{thebibliography}) and ending (\end{thebibliography}) style also with both giving errors. For the normal implementation shown below of just adding a .bib file, I get various errors like.
+Package inputenc Error: Invalid UTF-8 byte "8E. \begin{thebibliography}{}
+Undefined control sequence. \bibitem{lee2019}
+Missing \endcsname inserted.
Can anyone help to fix this issue and add a bibliography. Thanks in advance
\documentclass[12pt]{report}
\usepackage{jgraduate2012}
\usepackage{graphicx}
.
.
.
\usepackage{natbib}
\begin{document}
\maketitle
\begin{abstract}
abstract
\end{abstract}
\tableofcontents
\listoffigures
\listoftables
\include{section1}
\bibliographystyle{plain}
\bibliography{reference.bib}
\end{document}
\begin{thebibliography}or\end{thebibliography}with this setup. BibTeX automatically generates this environment in a temporary file you should normally not edit. Remove any such commands you may have manually added to your files. – moewe Nov 26 '20 at 07:01Invalid UTF-8 byte "8E.could be caused by a wrong file encoding in your.bibfile (as shown your document expects UTF-8) or by using Unicode characters where BibTeX tries to apply certain string operations (cf. e.g. https://tex.stackexchange.com/q/571189/35864). We would be able to say more if you could isolate the problematic.bibentry and share it with us. – moewe Nov 26 '20 at 07:05.logfile for more hints. Sometimes editors hide important bits of the error message. – moewe Nov 26 '20 at 07:07\bibliography{<bibliography file name>}is to give<bibliography file name>without the.bibfile extension. So *\bibliography{reference.bib}should be\bibliography{reference}. Some older systems will not find the file correctly if you erroneously include the.bibfile extension in your call to\bibliography. – moewe Nov 26 '20 at 07:09.bibentries to create an MWE delete the.auxand.bblfile and recompile with a full LaTeX, BibTeX, LaTeX, LaTeX cycle. Otherwise old data may remain in the temporary files and still cause troubles. (As I said, dropping the.bibfile extension is not the solution to your problem, but it should still be done.) – moewe Nov 26 '20 at 07:29