Bookdown:单个html输出文件 [英] Bookdown: Single html output file

查看:110
本文介绍了Bookdown:单个html输出文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在_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.

推荐答案

事实证明这是 bookdown 的错误,而我只是

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆