Listing additional pages within book chapters? #4827
mikemahoney218
started this conversation in
Feature Requests
Replies: 1 comment 3 replies
-
You can do this, though listings will only render the listing for HTML output. I've attached an example project which shows this - the key is adding a In my example, something like: project:
type: book
render:
- resources
book:
title: "Book"
author: "Jane Doe"
date: "3/14/2023"
chapters:
- index.qmd
- intro.qmd
- summary.qmd
- references.qmd
bibliography: references.bib
format:
html:
theme: cosmo
pdf:
documentclass: scrreprt and ---
listing:
contents: resources/*.qmd
type: table
---
# Summary
In summary, this book has no content whatsoever.
Sample Project: book.zip HTH! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
I'm trying to have a document listing inside a chapter of a book project. It works fine when the listing points at chapters of the book (defined in _quarto.yml), but doesn't work if they aren't explicitly included in the book structure.
I don't want these items to appear in the table of contents, just in the listings section of this chapter. Is there a way to do that?
For instance, given a file structure:
Where
chapter_1
has the YAML:And
_quarto.yml
includes:The listing in
chapter_1
will include chapter 2, but notnot_a_chapter
.This is a simplified example; in my actual case, there will be many items in the listing directory, and having them included with the book automatically (and not included in the chapter index) is my primary goal here (so "add them to the chapter structure" is rather self-defeating).
Beta Was this translation helpful? Give feedback.
All reactions