Skip to content

Commit 7eabba0

Browse files
authored
Merge pull request #1137 from quarto-dev/issue/9908
Don't imply different behaviour for chapter numbering in `index.qmd`
2 parents 61a0365 + e8f05f1 commit 7eabba0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/books/book-structure.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ book:
2222
- references.qmd
2323
```
2424
25-
- The `index.qmd` file is required (because Quarto books also produce a website in HTML format). This page should include the preface, acknowledgements, etc. and headings in the `index.qmd` file are unnumbered by default. The HTML version of the book will use the `index.qmd` as the home page and if provided, will place the `cover-image` on that page.
25+
- The `index.qmd` file is required (because Quarto books also produce a website in HTML format). This page should include the preface, acknowledgements, etc. The HTML version of the book will use the `index.qmd` as the home page and if provided, will place the `cover-image` on that page.
2626
- The remainder of `chapters` includes one or more book chapters.
2727
- The `references.qmd` file will include the generated bibliography (see [References] below for details).
2828

@@ -46,10 +46,10 @@ In the absence of a level-one header or a title set in the YAML front matter, th
4646

4747
## Chapter Numbers
4848

49-
All chapters are numbered by default. If you want a chapter to be unnumbered simply add the `.unnumbered` class to its main header. For example:
49+
All chapters are numbered by default. If you want a chapter to be unnumbered simply add the `.unnumbered` class to its main header. For example, it is common to omit the chapter number for `index.qmd`:
5050

51-
``` markdown
52-
# Resources {.unnumbered}
51+
```{.markdown filename="index.qmd"}
52+
# Preface {.unnumbered}
5353
```
5454

5555
You can mix together numbered and unnumbered chapters. Note however that while you can link to unnumbered chapters, you can't [cross reference](/docs/authoring/cross-references.qmd) figures, tables, etc. within them. Unnumbered chapters are therefore mostly useful for prefatory content or references at the end of your book.

0 commit comments

Comments
 (0)