如何将第一级部分放在不同的HTML页面上?

问题描述 投票:0回答:1

为了制作第一级部分而不是仅有自己的章节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
---

当我将“章节”更改为“部分”时,R会抛出错误。

如何确保章节以及第一级部分的分页?

r bookdown
1个回答
0
投票

(在文件的这个早期阶段)有一些章节没有小节。如果没有章节的章节,split_by: section将导致错误。

© www.soinside.com 2019 - 2024. All rights reserved.