我注意到,在我的文档中,引用的位置出现了“?”
\bibliographystyle{plainnat}
但是,当我使用时,会出现数字
\bibliographystyle{apalike}
我有一个来自模板的 preamble.tex 文件,其中包含与参考书目相关的以下代码
% *****************************************************************************
% *************************** Bibliography and References ********************
%\usepackage{cleveref} %Referencing without need to explicitly state fig /table
% Add `custombib' in the document class option to use this section
\ifsetBib % True, Bibliography option is chosen in class options
\else % If custom bibliography style chosen then load bibstyle here
%\RequirePackage[square, sort, numbers, authoryear]{natbib} % CustomBib
\RequirePackage[round]{natbib} % CustomBib
% If you would like to use biblatex for your reference management, as opposed to the default `natbibpackage` pass the option `custombib` in the document class. Comment out the previous line to make sure you don't load the natbib package. Uncomment the following lines and spec ify the location of references.bib file
% \RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib= true]{biblatex}
% \bibliography{References/references} %Location of references.bib only for biblatex
\fi
我尝试在 documentclass 选项中包含和不包含“custombib”,但没有什么区别。我的主文件 report.tex 包含
\input{preamble}
使用 preamble.tex。然后参考书目调用如下:
\bibliographystyle{plainnat} % use this to have URLs listed in References
\cleardoublepage
\bibliography{References/references} % Path to your References.bib file
我还确保在重新编译之前删除了 .aux、.bib 等(所有中间)文件。
我正在使用 vim-latex 和默认编译序列来生成 PDF。
您对引文未显示的原因有何看法?谢谢!