
Atualmente tenho um problema ao usar a bibliografia em LaTeX
. Eu adiciono usando um arquivo .bib, mas ele não mostra nenhuma referência. Eu também corro LaTeX
, corro bibtex
e depois corro látex duas vezes novamente. Eu citei no texto principal, mas também usei \notice{*}
apenas para ter certeza. Abaixo tenho um MWE que mostra o problema.
Desde já obrigado pela ajuda!
Este é o arquivo principal que é o documento mestre:
\documentclass[10pt,a4paper]{report}
\usepackage [version=4] {mhchem}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\begin{document}
\noindent
\newpage
\tableofcontents
\newpage
\input{maintext.tex}
\nocite{*}
\bibliography{testbib}
\bibliographystyle{plain}
\addcontentsline{toc}{chapter}{References}
\end{document}
Este é o arquivo .bib:
@book{Hesp, author = "J. P. Hespanha", title = "Linear Systems Theory", publisher = "Princeton", year = "2009", }
E este é o arquivo de texto que é usado como entrada
\chapter{main}
this is the main text \cite{Hesp}