1

我想知道在使用 biblatex 时是否可以在引用之后添加一个附录。当我在 YAML 中添加它时,这些问题和答案这个答案显示了如何在没有citation_package: biblatex但不再工作的情况下这样做。在引用后使用子文档打印附录也不起作用。

是否可以同时使用biblatex这个解决方案?

这是一个可重现的示例(不工作。删除citation_package: biblatex功能示例):

---
title:
author:
date: 
abstract: 
output: 
  pdf_document:
    number_sections: true
    citation_package: biblatex
bibliography: references.bib
biblio-style: bwl-FU
---

# Part 1

@greenwood_financial_1989


# My references

<div id="refs"></div>

# Appendix

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}
}

编辑:正如建议的那样,我在使用和不使用时比较了 .Rmd 文件(通过添加keep_tex: trueYAML)生成的乳胶文档。citation_package: biblatex

我在 .Rmd 文件中将“参考”部分重命名为“我的参考”,以便能够区分乳胶文档中的两个部分。

看起来:

  • usingcitation_package: biblatex自动添加\printbibliography在乳胶文档的末尾,因此“参考”部分在 PDF 输出的末尾带有实际参考。此外,“我的参考资料”部分仅包含\hypertarget{refs}{}.

  • 当我删除时citation_package: biblatex,该\printbibliography行从乳胶文档中消失,并且“我的引用”部分包含引用\leavevmode\hypertarget{}{}的 id 及其完整描述(我不在这里粘贴,因为它只会降低可读性)。

因此,我猜这个问题出现在从 .Rmd 文件转换为 .tex 格式的过程中。

4

0 回答 0