-1

嗯,我试图了解 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}
}
4

1 回答 1

1

您需要记住,渲染Rmd文件时会应用以下规则

  1. bookdown特定的命令将被翻译bookdown成相关的 LaTeX\HTML 等价物
  2. markdown将被转换pandoc为相关的 LaTeX\HTML 等价物
  3. LaTeX( ) 将在输出格式为( )HTML时按原样传递LaTeXHTML
  4. LaTeX当输出格式为( )时, ( HTML) 将被忽略HTMLLaTeX

底线:使用@keyand[@key]如果您想将文档转换LaTeXHTML

于 2017-07-03T08:37:16.337 回答