使用 latex 文件的 bookdown 输出生成 phd html 站点

Generate phd html site using bookdown output from latex file

嗯,我想了解 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}
}

您需要记住,在呈现 Rmd 文件时应用以下规则

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

底线:如果您想将文档转换为 LaTeXHTML

,请使用 @key[@key]