Bookdown:单个html输出文件 [英] Bookdown: Single html output file
问题描述
如果我在_output.yml
中的第一行下方添加一行:
If I add a line below the first in _output.yml
:
bookdown::gitbook:
split_by: none
css: ...
在 bookdown-demo 中,输出变成一个看起来很友好的.html
文件丑陋的是否可以以某种方式保留默认设置但在单个文件中生成的精美样式?如果我想将书发送给其他人,发送一堆文件并不好,特别是如果接收该书的人不熟悉HTML作为文档格式.
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.
推荐答案
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')
这篇关于Bookdown:单个html输出文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!