鼓捣 bookdown 小记
刚接触 bookdown 时,鼓捣了好久,这里记一下。
-
documentclass: book
tellspandoc
that the first-level headers should be treated as chapters instead of sections. If you changedocumentclass
, you may need to specify an additionalpandoc
argument,--chapters
-
To disable MathJax, you need to set
math: false
inindex.Rmd
. -
bookdown::gitbook()
storage configurations in$post_processor()
, only this function can assess thegh_config
object. -
When your
.Rmd
contains Chinese, you need to callrmarkdown::render(encoding = 'UTF-8')
, but you mustn’t setoptions(encoding = 'UTF-8')
.