如何将第一级部分放在不同的 HTML 页面上?
How to put first level sections on different HTML pages?
为了制作第一级部分而不是它们自己的章节 html 页面,我尝试更改 yaml 中的 split_by
。
我使用了这个代码:
---
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
---
当我将 "chapter" 更改为 "section" 时,R 会抛出错误。
如何确保章节和第一级部分会有单独的页面?
有些章节(在文档的早期阶段)没有小节。 split_by: section
如果章节没有节会导致错误。
为了制作第一级部分而不是它们自己的章节 html 页面,我尝试更改 yaml 中的 split_by
。
我使用了这个代码:
---
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
---
当我将 "chapter" 更改为 "section" 时,R 会抛出错误。
如何确保章节和第一级部分会有单独的页面?
有些章节(在文档的早期阶段)没有小节。 split_by: section
如果章节没有节会导致错误。