嗯,我试图了解 R Bookdown 如何生成不同的 html 输出,以便在 html 网站上的乳胶中轻松迁移我的 phd。
\usepackage[backend=biber,backref=true, natbib=true, isbn=false, doi=true, url=true, style=authoryear,maxcitenames=1, maxbibnames=999, sorting=nyt, refsection=chapter, hyperref]{biblatex}
如您所见,我的论文将 biblatex 与 biber 和 natbib 一起使用,这使我可以使用\autocite
和\autocites
指挥。我尝试了多种配置以直接在 markdown 中重用这种类型的引用(而不是 [@key] 或 @key 引用),但没有成功。
我从 index.Rmd 中的简单事情开始:
---
title: "A Minimal Book Example"
author: "Yihui Xie"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
output: bookdown::gitbook
documentclass: book
bibliography: [these.bib]
biblio-style: apalike
latex_engine: xelatex
citation_package: natbib
link-citations: yes
github-repo: rstudio/bookdown-demo
description: "This is a minimal example of using the bookdown package to write a book. The output format for this example is bookdown::gitbook."
---
# Introduction
test my citation with \autocite{Pumain1997}.
these.bib
包含这个简单的引用:
@article{Pumain1997,
author = {Pumain, Denise},
doi = {10.3406/spgeo.1997.1063},
issn = {0046-2497},
journal = {Espace g\'{e}ographique},
number = {2},
pages = {119--134},
title = {{Pour une th\'{e}orie \'{e}volutive des villes}},
url = {http://www.persee.fr/web/revues/home/prescript/article/spgeo\_0046-2497\_1997\_num\_26\_2\_1063},
volume = {26},
year = {1997}
}