2017-06-29 37 views
0

嗡嗡聲,我想了解R Bookdown如何生成不同的html輸出,以輕鬆遷移我的phd實際上在html網站上的乳膠。生成phd html網站使用bookdown輸出從乳膠文件

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

正如你所看到的,與BIBER和natbib我的論文使用biblatex這允許我使用\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} 
} 

回答

1

你需要牢記的是應用下列規則渲染Rmd文件時

  1. bookdown specific com mands將由bookdown翻譯成相關的乳膠\ HTML等效
  2. markdown將由pandoc被轉換成相關的乳膠\ HTML等效
  3. LaTeXHTML)將被傳遞爲是時輸出格式是LaTeXHTML
  4. LaTeXHTML)將被忽略輸出格式是HTMLLaTeX

底線:使用@key[@key]萬一您要將文檔轉換爲LaTeXHTML

+0

好吧,我明白了,thx :) – reyman64