【发布时间】:2023-03-31 03:01:01
【问题描述】:
我正在使用 R Markdown 编写一份报告,其中包含参考资料。问题是 R markdown 自动在报告末尾包含引用(例如,不使用 \printbibliography 调用它们)并且部分标题是“引用”。我用法语写作,所以我希望标题是“参考”,但更一般地说,有没有办法修改该部分的标题?
以下是可重现的示例:
---
title:
author:
date:
abstract:
output:
pdf_document:
template: NULL
number_sections: true
citation_package: biblatex
bibliography: references.bib
biblio-style: bwl-FU
---
# Partie 1
\cite{greenwood_financial_1989}
# Partie 2
bla bla
这是references.bib文件的内容:
@article{greenwood_financial_1989,
title = {Financial Development, Growth and the Distribution of Income},
url = {https://www.nber.org/papers/w3189},
number = {3189},
journaltitle = {NBER Working Paper Series},
date = {1989},
author = {Greenwood, Jeremy and Jovanovic, Boyan}
}
有人有解决办法吗?
【问题讨论】:
-
可能duplicate?
-
实际上您提供的链接中的解决方案有效,但仅适用于
natbib,不适用于biblatex,因此我正在寻找适用于biblatex的解决方案 -
啊,好吧。 This 在 TeX Stackexchange 上的回答可能会有所帮助。在你的
header-includes我认为添加- \DefineBibliographyStrings{french}{bibliography = {Références}, references = Références},}应该可以工作 -
我有一个错字 - “Références” 两次都应该包含在 {} 中。
-
您应该将
lang: fr添加到您的 YAML 标头中,以获取特殊部分(目录、参考文献等)的本地化名称,以及适应语言的断字。另见stackoverflow.com/questions/54676107/…
标签: r r-markdown