Hey! I am writing a book using Quarto. And I wanted a simple way to reference a chapter or a part of the book. I could just use the Section reference (#sec-...), to reference the first section of the Chapter, so the reader could get to the beggining of the chapter. But the rendered result (like "Section 9.1") would give the impression to the reader, that I am discussing the subject only in that specific Section, when I am actually using a entire Chapter to do so.

As an example, at a specific point of the book, I wanted to reference a chapter like this:

```
You can use the `write()` method, which is described latter in the @chp-import-export.
```

This markdown code could result, for example, in something like this:

```
<p>You can use the <code>write()</code> method, which is described latter in the <a href="09-import.html">Chapter<span>9</span></a>.</p>
```

This way, the reader can understand that he should read all the Chapter 9, to fully understand the `write()` method, and not just a specific section. So the idea, is to add simple keys to reference a part or chapter, like `#chp-` for Chapters, and `#prt-` for Parts, so that, they could be rendered differently that section references (`#sec-`) or figure references (`#fig-`). I do not know if the HTML code above makes sense with Quarto directives for cross-references, but, I think it translates well the intention.


2022-06-04T15:55:43Z
pedropark99
closed
Feature - Add cross references for chapters/parts of a book
https://github.com/quarto-dev/quarto-cli/issues/1061