我写有R Sweave的报告,我想引用的论文。 这是我第一次使用Sweave,但在乳胶单独我曾经打电话给我的书目biblatex
。 因此,我打电话放在哪里我.Rnw文件夹中的文件名为.bib。
这里是我的代码:
\documentclass[11pt, twocolumn]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[backend=biber]{biblatex}
\addbibresource{references.bib}
\begin{document}
\SweaveOpts{concordance=TRUE}
test : \cite{helpman_globalization_2016}
\printbibliography
\end{document}
和这里的文件我想引用(放置在references.bib
):
@article{helpman_globalization_2016,
langid = {english},
title = {Globalization and {{Wage Inequality}}},
url = {http://www.nber.org/papers/w22944.pdf},
number = {22944},
journaltitle = {NBER Working Paper Series},
urldate = {2019-01-24},
date = {2016},
author = {Helpman, Elhanan},
doi = {10.3386/w22944}
}
我搜索的几个环节,但我无法找到一个解决方案:
https://tex.stackexchange.com/questions/71565/knitr-and-biblatex
https://texblog.org/2013/08/20/rknitr-automatic-bibliography-generation-with-biblatex-in-rstudio/
随着knitr和.Rnw的乳胶,你怎么打印PDF输出完整书目?
我也试图与backend = bibtex
,但没有奏效。 下面是描述问题(我认为)的日志行:
LaTeX Font Info: ... okay on input line 8.
Package biblatex Info: Input encoding 'utf8' detected.
Package biblatex Info: Automatic encoding selection.
(biblatex) Assuming data encoding 'utf8'.
Package biblatex Info: Input encoding 'utf8' specified.
Package biblatex Info: Data encoding 'utf8' specified.
(biblatex) No need to reencode data.
\openout3 = `test_biblio-blx.bib'.
Package biblatex Info: Trying to load bibliographic data...
Package biblatex Info: ... file 'test_biblio.bbl' not found.
No file test_biblio.bbl.
是否有人有办法解决吗?
此外在这里问: https://community.rstudio.com/t/impossible-to-cite-with-biblatex-in-r-sweave/35008