参考书目条目可供 \cite 使用,但在编译时未定义

参考书目条目可供 \cite 使用,但在编译时未定义

我对 Overleaf 还很陌生,我真的很想找到答案,但它们要么不相关,要么我没能理解。我已从 Mendeley 导出我的参考文献(不是通过集成服务(我不是高级会员)),格式为 BibTex。

我已将它们保存为“bibliography.bib”

我在序言中提到了这一点

\usepackage[backend=biber,style=alphabetic,sorting=ynt,citestyle=numeric]{biblatex}

\addbibresource{bibliography.bib}

并在文档结束之前

\printbibliography

然后我就没有打印任何参考书目,而且许多

“您引用了参考书目中未包含的内容。请确保引用 (\cite{...}) 在您的参考书目中有对应的键,并且两者的拼写相同。”

我不明白的错误,因为它们都在那里,甚至会用 \cite 自动填充

我也收到错误

“包 biblatex 警告:请在文件:输出上(重新)运行 Biber,然后重新运行 LaTeX。”

如何在文件上运行 biber?

我非常迷茫,此时我认为我已经花了两个小时试图解决这个问题,所以我真的希望有人能帮忙。

我在下面附上了我的整个序言,以防你们能发现像我这样的新手错过的东西。 - 我还提供了一个未读取的参​​考书目条目的示例。

感谢您的帮助 :)


\documentclass[12pt, letterpaper, twoside]{article}

\usepackage[utf8]{inputenc}

\usepackage[english]{babel}

\usepackage{graphicx}

\usepackage{amssymb}
\usepackage{csquotes}

\graphicspath{{images/}}

\usepackage{blindtext}

\usepackage{subfiles}

\usepackage[backend=biber,style=alphabetic,sorting=ynt,citestyle=numeric]{biblatex}

\addbibresource{bibliography.bib}


\title{Title of Project}
\author{Authornames}
\date{THE DATE}



\begin{document}

(实际 bib 中的字段之间没有间隙,stackexchange 要么将其放在同一行,要么在它们之间留有间隙,我不知道如何改变这一点)

@article{Chow,

abstract = {The generation of amyloid $\beta$-peptide (A$\beta$) by enzymatic cleavages of the $\beta$-amyloid precursor protein (APP) has been at the center of Alzheimer's disease (AD) research. While the basic process of $\beta$-and $\gamma$-secretase-mediated generation of A$\beta$ is text book knowledge, new aspects of A$\beta$ and other cleavage products have emerged in recent years. Also our understanding of the enzymes involved in APP proteolysis has increased dramatically. All of these discoveries contribute to a more complete understanding of APP processing and the physiological and pathological roles of its secreted and intracellular protein products. Understanding APP processing is important for any therapeutic strategy aimed at reducing A$\beta$ levels in AD. In this review we provide a concise description of the current state of understanding the enzymes involved in APP processing, the cleavage products generated by different processing patterns, and the potential functions of those cleavage products.},

author = {Chow, Vivian W and Mattson, Mark P and Wong, Philip C and Gleichmann, Marc},

doi = {10.1007/s12017-009-8104-z},

file = {:home/barny/.local/share/data/Mendeley Ltd./Mendeley Desktop/Downloaded/Chow et al. - Unknown - An Overview of APP Processing Enzymes and Products(2).pdf:pdf},

keywords = {AICD,APP,Amyloid beta,$\alpha$-secretase,$\beta$-secretase,$\gamma$-secretase},

title = {{An Overview of APP Processing Enzymes and Products}}

}

答案1

我尝试了您的 MWE。尝试将 bib 条目引用为\cite{Chow}

你可能已经注意到,Overleaf 弹出一个建议菜单,其中包含你的相关参考书目条目addbibresource

要提供的字符串cite{}是参考书目条目花括号内的第一个字符串,由 Mendeley 生成。Chow在您的示例中。

为了使其更清楚,再举一个例子,对于这个参考书目条目:

@article{Einstein1905,
    author = "Albert Einstein",
    title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
    [{On} the electrodynamics of moving bodies]",
    journal = "Annalen der Physik",
    volume = "322",
    number = "10",
    pages = "891--921",
    year = "1905",
}

您应该使用\cite{Einstein1905}

我希望它能解决你的问题。

答案2

这不是答案。仅用于帮助调试。

尝试此代码。它应该运行两次 + biber + 其他两次编译,最终没有错误。您应该得到图中的输出。

% !TeX TS-program = pdflatex    

\begin{filecontents}[overwrite]{myreferences.bib}
    @book{yang2018optimization,
        title={Optimization Techniques and Applications with Examples},
        author={Yang, Xin-She},
        year={2018},
        publisher={John Wiley~\& Sons},
    }

@article{Chow,  
    abstract = {The generation of amyloid $\beta$-peptide (A$\beta$) by enzymatic cleavages of the $\beta$-amyloid precursor protein (APP) has been at the center of Alzheimer's disease (AD) research. While the basic process of $\beta$-and $\gamma$-secretase-mediated generation of A$\beta$ is text book knowledge, new aspects of A$\beta$ and other cleavage products have emerged in recent years. Also our understanding of the enzymes involved in APP proteolysis has increased dramatically. All of these discoveries contribute to a more complete understanding of APP processing and the physiological and pathological roles of its secreted and intracellular protein products. Understanding APP processing is important for any therapeutic strategy aimed at reducing A$\beta$ levels in AD. In this review we provide a concise description of the current state of understanding the enzymes involved in APP processing, the cleavage products generated by different processing patterns, and the potential functions of those cleavage products.}, 
    author = {Chow, Vivian W and Mattson, Mark P and Wong, Philip C and Gleichmann, Marc},  
    doi = {10.1007/s12017-009-8104-z},
    file = {:home/barny/.local/share/data/Mendeley Ltd./Mendeley Desktop/Downloaded/Chow et al. - Unknown - An Overview of APP Processing Enzymes and Products(2).pdf:pdf}, 
    keywords = {AICD,APP,Amyloid beta,$\alpha$-secretase,$\beta$-secretase,$\gamma$-secretase}, 
    title = {{An Overview of APP Processing Enzymes and Products}}  
}

 \end{filecontents}

\documentclass[12pt, letterpaper, twoside]{article}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{csquotes}
\graphicspath{{images/}}
\usepackage{blindtext}
\usepackage{subfiles}

\usepackage[backend=biber,style=alphabetic,sorting=ynt,citestyle=numeric]{biblatex} 
\addbibresource{myreferences.bib}   

\title{Title of Project}
\author{Authornames}
\date{THE DATE}


\begin{document}
    
See \cite{yang2018optimization} an also \cite{Chow}.

\printbibliography
    
\end{document}  

C

正如您所见,Chow 引用需要完成。

答案3

两天前我遇到过类似的问题,原因是我在 main.tex 文件中没有写出正确的 litrature.bib 路径。我也使用 overleaf。希望这对你有帮助

相关内容