![引用变成了问号,除非我重新启动 Latex](https://linux22.com/image/334967/%E5%BC%95%E7%94%A8%E5%8F%98%E6%88%90%E4%BA%86%E9%97%AE%E5%8F%B7%EF%BC%8C%E9%99%A4%E9%9D%9E%E6%88%91%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%20Latex.png)
我已经设置了我的围兜如下
% The following statement selects the style to use for references. It controls the sort order of the entries in the bibliography and also the formatting for the in-text labels.
\bibliographystyle{plain}
% This specifies the location of the file containing the bibliographic information.
% It assumes you're using BibTeX (if not, why not?).
\cleardoublepage % This is needed if the book class is used, to place the anchor in the correct page,
% because the bibliography will start on its own page.
% Use \clearpage instead if the document class uses the "oneside" argument
\phantomsection % With hyperref package, enables hyperlinking from the table of contents to bibliography
% The following statement causes the title "References" to be used for the bibliography section:
\renewcommand*{\bibname}{References}
% Add the References to the Table of Contents
\addcontentsline{toc}{chapter}{\textbf{References}}
\bibliography{Bibs/vaccination_references,Bibs/ml_references}
% Tip 5: You can create multiple .bib files to organize your references.
% Just list them all in the \bibliogaphy command, separated by commas (no spaces).
% The following statement causes the specified references to be added to the bibliography% even if they were not
% cited in the text. The asterisk is a wildcard that causes all entries in the bibliographic database to be included (optional).
\nocite{*}
我将我的 bib 拆分成多个 bib,以便更容易跟踪更改。当我\cite{}
在第二个 bib 中使用引用时,它总是显示为问号,直到我关闭并重新打开 Texstudio。
知道为什么会这样吗?
答案1
我只能谈谈 Texmaker 和 Adobe Acrobat Reader。如果 Adobe Acrobat Reader 打开一个文件,它会锁定它,这与基本的记事本不同。这意味着,如果您运行 pdflatex 或类似程序,就会出现错误。
但是:Texmaker 有这个特殊功能,即“快速构建”功能可能会中断。如果您运行“快速构建”,则必须单击“查看 PDF”才能看到它。在某些情况下,循环会产生错误、无限循环、无限输出(由于无限循环),Texmaker 也可能发生这种中断。
由于我使用了很多循环,所以这种情况经常发生。