Bookdown: Single html output file

杀马特。学长 韩版系。学妹 提交于 2020-01-02 04:49:15

问题


If I add a line below the first in _output.yml:

bookdown::gitbook:
  split_by: none
  css: ...

in the bookdown-demo the output becomes a single .html file which looks kind of plain ugly. Is it somehow possible to retain the nice style which is produced by the default settings but in a single file? If I want to send the book to someone else sending a stack of files is not great, especially if the person who receives it is not familiar with HTML as a document format.


回答1:


This turns out to be a bug of bookdown, and I just fixed it on Github. You can install and test the development version (>= 0.3.3):

devtools::install_github('rstudio/bookdown')


来源:https://stackoverflow.com/questions/40976073/bookdown-single-html-output-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!