早在 3 月份,我提出了一个问题,并得到了一个答案,即在 R bookdown 呈现的 pdf 文档中包含封面:
我尝试了解决方案并得出以下结果:
在 index.rmd yaml 中使用:
output:
pdf_document:
includes:
before_body: frontpage.tex
number_sections: yes
toc: yes
toc_depth: 3
site: bookdown::bookdown_site
documentclass: book
classoption: letterpaper
Run Code Online (Sandbox Code Playgroud)
标题仍然出现在封面之前,并且章节标题中的章节“措辞”(即章节标题的实际词之前的“第 1 章”)消失了。每章的章节编号以0开头,以此类推。
如果我去掉上面的包含条款——标题和作者出现在第一页,然后是目录,所有章节标题和章节编号都正确出现——但当然没有封面或版权页。
frontpage.tex 如下所示:
\frontmatter
\includegraphics {coverpage.png}
This edition first published August 2017 etc
Run Code Online (Sandbox Code Playgroud)
我如何在标题之前获得封面,在标题之后和目录之前获得版权页,并让章节标题即(章节标题前面的单词章节和数字按该顺序正确呈现。
到目前为止,R bookdown 在书籍布局和格式方面做得非常出色,但我似乎无法制作这些典型的工作所需的东西。
谢谢...