错误:无法通过biber {vitae}建立书目

时间:2019-12-16 17:00:40

标签: r-markdown tinytex

我正在尝试使用vitae包来复制简历,并在生成书目时遇到一个奇怪的错误。以前它能正常工作,但是当我今天尝试执行代码时,它会继续产生以下输出:

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. 

有什么办法解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

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

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

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

例如:

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

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