Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manual numbering in bookdown

Is it possible to control chapter/section numbering in bookdown?

e.g.

# Introduction {1}
# Theory {14}
# Methods {3}

would give the following in the output...

1. Introduction
14. Theory
3. Methods
like image 966
Paul Avatar asked Nov 08 '22 07:11

Paul


1 Answers

Sorry for the late answer, but I've just bumped into the same issue.

If you globally turn off numbering, adding the line

number_sections: false

under bookdown::gitbook: to your _output.yml file, then you can number your chapters and sections in any way you like:

# 1. Introduction

# 14. Theory

# 3. Methods

To repeat: my _output.yml file contains the lines

bookdown::gitbook:
  number_sections: false
like image 191
Julian Neuer Avatar answered Dec 09 '22 11:12

Julian Neuer