书本与章节附录

时间:2019-01-31 11:43:20

标签: r rstudio pdflatex bookdown

我正在用.pdfbookdown中绘制一本书,我想介绍几章。 _bookdown.yml看起来像这样:

book_filename: "my-Thesis"
before_chapter_script: "Script1.R" #Script1.R cleans memory (see Script1.R file)
rmd_files: ["index.Rmd", "01-intro.Rmd","02-C-quantity.Rmd","03-C-quality.Rmd","04-fine-roots.Rmd","05-aboveg-biom.Rmd","07-appendix.Rmd","08-definitions.Rmd","09-references.Rmd"]
delete_merged_file: true

_output.yml看起来像这样:

bookdown::gitbook:
  lib_dir: assets
  split_by: "rmd"
  #config:
    #toolbar:
      #position: static
bookdown::pdf_book:
  includes:
    in_header: preamble.tex
  keep_tex: yes
  latex_engine: xelatex
  #citation_package: #harvard #biblatex 

我想在本书的末尾添加一个附录07-Appendix.Rmd,该附录涵盖了整本书,并显示为一章,而不是如图所示的“之上...”一章的子章节。在以下快照中。 DefinitionsReferences章也是如此。 欢迎任何帮助,谢谢。

enter image description here

1 个答案:

答案 0 :(得分:0)

从第一行开始新的降价页面:

Appendix{-}

{-}删除编号。我发现rmd_files列表不必要。附加页面图像并显示内容清单。

Appendix in bookdown