BibTex 无法打开数据库文件。路径正确,但文件名没有空格

BibTex 无法打开数据库文件。路径正确,但文件名没有空格

我第一次使用 BibTex。使用 Mac 版 BibDesk 创建 references.bib 后,我在 TexShop 中的文档中包含了以下内容:

\documentclass[12pt, twoside]{report}
\usepackage{natbib}
\usepackage{lipsum}


\begin{document}

ABCDEFGHIJKLMNNOPQRSTUVWXYZ.\cite{cite}

\bibliographystyle{unsrt}
\bibliography{/Users/chef/Desktop/Bachelor Thesis/111_AA_TeX/bibliography/references}

\end{document}

排版遵循以下顺序:Latex / BibTex / LaTex / Latex

references.bib 肯定位于给定的路径中。 testomatico.tex 文档位于上面的一个文件夹中 /Users/chef/Desktop/Bachelor Thesis/111_AA_TeX/testomatico.tex

references.bib 如下所示:

@article{cite,
    address = {Department of Microbiology and Immunology, University of Michigan; csrule{\char64}umich.edu.; Department of Microbiology and Immunology, University of Michigan.; Department of Microbiology and Immunology, University of Michigan.},
    author = {Rule, Chelsea S and Patrick, Marcella and Sandkvist, Maria},
    date = {2016 Aug 23},
    date-added = {2021-06-14 16:40:59 +0200},
    date-modified = {2021-06-14 17:43:08 +0200},
    journal = {J Vis Exp},
    month = {Aug},
    number = {114},
    title = {Measuring In Vitro ATPase Activity for Enzymatic Characterization.},
    year = {2016},
    Bdsk-Url-1 = {https://doi.org/10.3791/54305}}

然而,当排版第二步(BibTex)时,我收到以下信息:

This is BibTeX, Version 0.99d (TeX Live 2021)
The top-level auxiliary file: testomatico.aux
The style file: unsrt.bst
I couldn't open database file /Users/chef/Desktop/BachelorThesis/111_AA_TeX/bibliography/references.bib
---line 4 of file testomatico.aux
 : \bibdata{/Users/chef/Desktop/BachelorThesis/111_AA_TeX/bibliography/references.bib
 :                                                                                   }
I'm skipping whatever remains of this command
I found no database files---while reading file testomatico.aux
Warning--I didn't find a database entry for "cite"
(There were 2 error messages)

此外,您还可以在这里找到 main.aux(请注意,它显示了文档中与此问题无关的一些其他内容):

\relax 
\citation{cite}
\bibstyle{unsrt}
\bibdata{/Users/chef/Desktop/BachelorThesis/111_AA_TeX/bibliography/references.bib}
\gdef \@abspage@last{2}

遇到此问题的其他用户要么输入了错误的路径,要么文件名包含空格。对我来说,这都不是问题,所以我决定发布此问题。

希望有人可以帮助我。

最好的。

相关内容