
我目前在使用 中的參考書目時遇到問題LaTeX
。我使用 .bib 檔案添加它,但它沒有顯示任何引用。我也跑LaTeX
,跑bibtex
,然後再跑乳膠兩次。我在正文中引用了它,但也使用了\notice{*}
just 來確定。下面我有一個 MWE 顯示了問題。
已經感謝您的幫忙!
這是主文件的主文件:
\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}
這是 .bib 檔案:
@book{Hesp, author = "J. P. Hespanha", title = "Linear Systems Theory", publisher = "Princeton", year = "2009", }
這是用作輸入的文字文件
\chapter{main}
this is the main text \cite{Hesp}