Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the word chapter from the chapter headings

Tags:

r

bookdown

I define a chapter heading of

--- 
title: "Example"
author: "me"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
output: bookdown::gitbook
documentclass: book
---

# Introduction

Which then renders as: Chapter 1 Introduction

But I would like it to read: 1 Introduction

How can I remove the word 'Chapter' from the headings?

like image 724
pav Avatar asked Oct 15 '25 10:10

pav


1 Answers

If you started with the bookdown-demo repo, the chapter name was defined in _bookdown.yml. You can set it to an empty string or remove it. The relevant doc is in the bookdown book.

like image 53
Yihui Xie Avatar answered Oct 17 '25 04:10

Yihui Xie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!