尝试了几个小时后,我来这里寻求帮助。这是我第一次使用 LaTeX。我下载了一个论文模板,以为我只需要在上面写点东西。然而,我遇到了很多问题。具体来说,我需要 natbib 包的帮助。首先,它在 PDF 中显示 [?],并且没有参考文献列表。以下是相关代码:
\documentclass[oneside,a4paper,12pt]{book}
\newcommand{\tReferenceStyle}{ieee}
\usepackage[numbers,square,super,comma,sort&compress]{natbib}
\begin{document}
\begin{singlespace}
\phantomsection
\addcontentsline{toc}{chapter}{List of References}
{\bibliographystyle{BibTeX/acfrplainnat}}
\begin{raggedright}
\bibliography{BibTeX/library}
\end{raggedright}
\end{singlespace}
这是 library.bib
@article{1839Becquerel,
title={Synthesis of soluble organic semiconductors and study on its application in optoelectronic materials},
author={Becquerel, E and others},
journal={CR Acad. Sci},
volume={9},
pages={561--567},
year={1839}
}
以及我如何引用
The first \ac{PEC} experiment was performed in 1839 by Becquerel \cite{1839Becquerel}...
谢谢你!