6

我正在尝试使用该vitae软件包重现 cv 并在生成参考书目时不断遇到奇怪的错误。它以前可以工作,但是当我今天尝试执行代码时,它会不断产生以下输出:

INFO - This is Biber 2.14
INFO - Logfile is 'cv.blg'
INFO - Reading 'cv.bcf'
INFO - Found 4 citekeys in bib section 0
INFO - Processing section 0
INFO - Globbing data source 'C:/Users/Joe Roberts/Documents/automated_cv/cv/roberts-published.bib'
INFO - Globbed data source 'C:/Users/Joe Roberts/Documents/automated_cv/cv/roberts-published.bib' to C:/Users/Joe\ Roberts/Documents/automated_cv/cv/roberts-published.bib
INFO - Looking for bibtex format file 'C:/Users/Joe\ Roberts/Documents/automated_cv/cv/roberts-published.bib' for section 0
ERROR - Cannot find 'C:/Users/Joe\ Roberts/Documents/automated_cv/cv/roberts-published.bib'!
INFO - ERRORS: 1
Error: Failed to build the bibliography via biber
Execution halted
Warning message:
LaTeX Warning: Empty bibliography on input line 237.
LaTeX Warning: Citation 'roberts2018u-x6o8ySG0sC' undefined on input line 242.
LaTeX Warning: Citation 'roberts2019d1gkVwhDpl0C' undefined on input line 242.
LaTeX Warning: Citation 'roberts2019IjCSPb-OGe4C' undefined on input line 242.
LaTeX Warning: Citation 'roberts2019Tyk-4Ss8FVUC' undefined on input line 242.
Package rerunfilecheck Warning: File `cv.out' has changed.
(rerunfilecheck)                Rerun to get outlines right
(rerunfilecheck)                or use package `bookmark'.
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex)                cv
(biblatex)                and rerun LaTeX afterwards. 

任何想法如何解决这个问题?

4

1 回答 1

0

好的,我遇到了同样的问题,它曾经可以工作,然后进行了一些更新,但它不再工作了。看来问题的根源是您路径中的空间(用户/乔罗伯茨/文档/)我遇到了同样的问题,因为我们的组织数据库自动包含空格。我有 x2 解决方法:

第一个解决方法(烦人的一个):将文件本地保存在没有空间的路径中。对我来说,这是将其从我们的 org db 中取出并将其保存在桌面上。我知道,很蹩脚,所以第二个更好!

第二种解决方法:在 .Rmd 中的设置代码块中,添加代码以将引用文件复制到 biber 可以读取的临时位置:

例如:

citations_1 <- tempfile(fileext = ".bib")
file.copy(from = here::here("automated_cv/cv/roberts-published.bib"), to = citations_1)

顺便说一下,我从您的错误消息中猜到了文件路径,因此您可能需要对其进行编辑,但本质上这应该会有所帮助!

于 2020-10-26T15:16:03.190 回答