2017-09-06 34 views
0

我需要我的論文章節以不均勻的索引頁面開始。如何強制章節啓動不均勻索引頁面

YAML標題是:

--- 
output: 
    pdf_document: 
     number_sections: true 
     toc_depth: 4 
fontsize: 11pt 
geometry: margin=1in 
header-includes: 
    - \usepackage[spanish]{babel}  
    - \usepackage{cite} 
    - \usepackage{xcolor} 
    - \definecolor{grey}{rgb}{0.9,0.9,0.9} 
    - \usepackage{array} 
    - \usepackage{multirow} 
bibliography: biblio.bib 
csl: biomed-central.csl 
link-citations: true 
--- 

有些LaTeX的包?

回答

1

沒有包,它是documentclass的一部分。要在knitr中做到這一點,將這些添加到您的YAML標題:

classoption: twoside 
classoption: openright 
+0

我在哪裏把這段代碼放到我的YAML中? –

+0

頂級任何地方。它的描述[這裏](http://rmarkdown.rstudio.com/pdf_document_format.html)(在* LaTeX Options *下)。 – flyx

+0

添加documentclass:book到這個選項,它的工作原理!謝謝 –

相關問題