引用已不再正常工作,我想不出原因

引用已不再正常工作,我想不出原因

在我撰写论文时,只遇到过一些小问题,今天 TeXstudio 却让我抓狂。昨天晚上一切都很顺利,我只更改了一些文本段落,没有更改任何模块。当然,日志中没有显示任何错误消息。是的,我编译了两次:-pdflatex -makeglossaries -pdflatex -biber -pdflatex。由于我真的想不出错误,我只能向您描述我所经历的情况,很抱歉文字太长。现在发生的情况是,它现在拒绝正确实现引用,好像它不知道它们一样。但是当我\cite{在文档中键入时,它会显示 bib 文件中包含的所有正确建议。相反,.bib 条目被写下来,例如 在此处输入图片描述 我注意到的第二件事是,第一章的引用还不错,但只是有点。使用时this is nonsense \cite{author1},它会打印这简直是​​无稽之谈 [1]正确。如果我写this is \cite{author2} nonsense \cite{author1},它会变成这 [1] 简直是一派胡言 [2]。但当我删除\cite{author2}并再次编译时,它仍然是这简直是​​无稽之谈 [2]虽然没有 [1]。但 author1 仍然列在参考书目中。但至少它甚至识别了引文并打印出来,这比其他章节要好得多。

通常,我会说我确实无意中更改了一些导致此问题的代码,但即使在运行昨天的备份时也会出现此问题,该备份绝对是完美的,因为它是下午 6 点开始的,而我在晚上 11 点左右编译了最终版本。所以我所做的就是卸载 TeXstudio 和 MiKTeX,删除所有相关文件夹并重新安装它。但问题仍然存在。那么,这到底是代码的问题吗?

我真的不知道这个错误可能源自何处,所以这是我的完整代码。希望对您有所帮助。

\documentclass[a4paper, 12pt]{book}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{2}

\usepackage[T1]{fontenc} %for ä, ö, ü etc
\usepackage[table,xcdraw]{xcolor}
\usepackage{tikz}
\usepackage{amsmath} %for equations
\usepackage{amssymb}
\usepackage[german, english]{babel} %languages of document
\usepackage{graphicx} %to include images stored on the subfolder images
\usepackage{subcaption} % to create one caption for mulitple images
\usepackage{grffile} % just to be sure that all filenames work
\usepackage{caption} %to configure captions of images and tables
\usepackage[onehalfspacing]{setspace} %for line spacing
\usepackage{booktabs} %used for only tools to create tables
\usepackage[natbib=true, style=IEEE, sorting=none]{biblatex} %for references
\usepackage{pdfpages} %if other pdf documents shall be attached
\usepackage[bindingoffset=1cm, centering,includeheadfoot,left=2cm, right=2cm, top=2.5cm, bottom=2cm]{geometry} %to set frame for text (can be changed)
\usepackage{titlesec} %to have captions start on the right (can be changed)
\usepackage{csquotes}
\usepackage{gensymb}
\usepackage{tabularx}
\usepackage{lmodern,textcomp}
\usepackage{adjustbox}
\usepackage[printonlyused]{acronym} %Abkürzungsverzeichnis
\usepackage[bookmarksnumbered]{hyperref}
\usepackage{placeins}
\hypersetup{
    colorlinks=false, %set true if you want colored links
    linktoc=all}     %set to all if you want both sections and subsections linked
\usepackage{rotating}
\usepackage{pbox}
\usepackage{float}
\usepackage{scrextend}
\usepackage{wasysym} % für die benutzten Symbole
\usepackage[toc,page,title]{appendix}
\usepackage{enumitem}
\usepackage{xurl}
\usepackage{multirow}
\usepackage{tablefootnote}
\usepackage{threeparttable}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
%\rhead{\leftmark}
\chead{\rightmark}
\cfoot{\thepage}

\usepackage[acronym,nomain,nonumberlist]{glossaries}
\glsdisablehyper

\setglossarystyle{long}
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
% Abbrevations
% some abbreviations that I can leave out, I think
%
\makeglossaries

% Signature
\newcommand*{\SignatureAndDate}[1]{%
    \par\noindent\makebox[5cm]{\hrulefill} \hfill\makebox[5cm]{\hrulefill}%
    \par\noindent\makebox[5cm][l]{Datum}      \hfill\makebox[5cm][l]{#1}%
}%

\newcommand{\highlight}[1]{\colorbox{yellow}{#1}}

% Changes URL date from dd.mm.yyyy to yyyy-mm-dd for bibliography
\DeclareSourcemap{
    \maps{
        \map[overwrite]{
            \step[fieldsource=urldate,
            match=\regexp{([0-9]{2})\.([0-9]{2})\.([0-9]{4})},
            replace={$3-$2-$1},
            final]
        }
    }
}
\bibliography{PLATO.bib}
\appto{\bibsetup}{\sloppy}


\begin{document}
    \addtocontents{toc}{\protect\pagestyle{empty}}
    \pagestyle{plain}
    \include{01_title}
    \frontmatter
    \include{Chapter1}
    \include{Chapter2}
    \include{Chapter3}
    \tableofcontents %do not include these 3 in the chapters
    \listoffigures
    \addcontentsline{toc}{chapter}{List of Figures}
    \listoftables
    \addcontentsline{toc}{chapter}{List of Tables}
    \glsaddall
    \setlength\LTleft{-5pt}
    \setlength\LTright{0pt}
    \setlength\glsdescwidth{0.8\hsize}
    \printglossary[type=\acronymtype,title={List of Abbreviations}]
    \addcontentsline{toc}{chapter}{List of Abbreviations}
    
    % include chapters here
    \mainmatter
    \setlength\parindent{0pt}
    \setlength{\parskip}{\baselineskip}
    \pagenumbering{arabic}
    \setcounter{page}{1}
    \pagestyle{fancy}
    \include{Chapter4}
    \include{Chapter5}
    \include{Chapter6}
    \include{Chapter7}
    \include{Chapter8}    
    \include{Chapter9}

    \include{Appendix}
    
    \backmatter    
    \phantomsection
    \addcontentsline{toc}{chapter}{Bibliography}
    \printbibliography
\end{document}

您知道这种奇怪行为可能是什么原因造成的吗?

编辑1:根据要求,.bgl 文件的内容:

[0] Config.pm:304> INFO - This is Biber 2.14
[0] Config.pm:307> INFO - Logfile is 'Thesis PLATO.blg'
[104] biber-MSWIN64:322> INFO - === 
[134] Biber.pm:415> INFO - Reading 'Thesis PLATO.bcf'
[291] Biber.pm:943> INFO - Found 2 citekeys in bib section 0
[326] Biber.pm:4256> INFO - Processing section 0
[327] Utils.pm:75> INFO - Globbing data source 'PLATO.bib'
[344] Utils.pm:91> INFO - Globbed data source 'PLATO.bib' to PLATO.bib
[369] Biber.pm:4455> INFO - Looking for bibtex format file 'PLATO.bib' for section 0
[377] bibtex.pm:1653> INFO - LaTeX decoding ...
[676] bibtex.pm:1471> INFO - Found BibTeX data source 'PLATO.bib'
[757] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
[757] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
[757] Biber.pm:4084> INFO - Sorting list 'none/global//global/global' of type 'entry' with template 'none' and locale 'en-US'
[757] Biber.pm:4090> INFO - No sort tailoring available for locale 'en-US'
[760] bbl.pm:652> INFO - Writing 'Thesis PLATO.bbl' with encoding 'UTF-8'
[761] bbl.pm:755> INFO - Output to Thesis PLATO.bbl

今天的 .bcf 与昨天的不同之处在于以下几行:

<bcf:datalist section="0" 
name="none/global//global/global" 
type="entry" 
sortingtemplatename="none" 
sortingnamekeytemplatename="global" 
labelprefix="" 
uniquenametemplatename="global" 
labelalphanametemplatename="global"> 
</bcf:datalist> 

这是否解释了为什么无法找到超过 2 个 citekeys?

编辑2:根据要求,日志文件:https://www.dropbox.com/s/y6ku1io23hn2e5u/Thesis%20PLATO.log?dl=0

相关内容