r - 如何将第一级部分放在不同的 HTML 页面上?
问题描述
为了制作第一级部分而不是只有章节 html 页面,我尝试更改split_by
yaml.xml 中的 html 页面。
我使用了这段代码:
---
title: "new book"
author: "My name"
date: "`r Sys.Date()`"
subtitle: "subtitle"
site: bookdown::bookdown_site
output:
bookdown::gitbook:
split_by: chapter
config:
toc:
collapse: subsection
scroll_highlight: yes
before: null
after: null
toolbar:
position: fixed
edit : null
download: null
search: yes
fontsettings:
theme: white
family: sans
size: 2
sharing:
facebook: yes
twitter: yes
google: no
linkedin: no
weibo: no
instapaper: no
vk: no
all: ['facebook', 'google', 'twitter', 'linkedin', 'weibo', 'instapaper']
#bookdown::pdf_book: default
documentclass: book
---
当我将“章节”更改为“部分”时,R 会引发错误。
如何确保章节和第一级部分有单独的页面?
解决方案
(在文档的早期阶段)有些章节没有小节。split_by: section
在没有章节的章节的情况下会导致错误。
推荐阅读
- css - 反转列顺序
- php - PHP 检查是否调试构建
- sql - 加入 2 个表,其中右日期是最大日期小于或等于左日期
- image - 如何将几块图像组合成一张图像?
- amazon-web-services - 在哪里可以设置 TLSv1.2 以进行 Web 分发?
- jasper-reports - 在 JRS 上执行报告时未生成多张工作表,但在本地 Studio 应用程序上也可以正常工作
- javascript - 如何在 openlayers 4.6.5 中使用 map.on('click'...) 从 GeoJson-Multipoint 特征中获取单个特征
- php - PHP PDO MySQL:插入语句运行没有错误,没有插入发生
- python - 如果组合框的值为空,则返回无
- amazon-cloudfront - AWS Cloudfront:我可以在一个分布下添加具有不同域的不同服务器以节省成本吗?