pav
pav

Reputation: 333

How to remove the word chapter from the chapter headings

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?

Upvotes: 4

Views: 1971

Answers (1)

Yihui Xie
Yihui Xie

Reputation: 30184

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.

Upvotes: 4

Related Questions