Hi there,
I'm working on the large quarto book project. To make it more manageable, I put my chapters into a subfolder and named files with sequential names (e.g., 'chapter1'.qmd, 'chapter2.qmd', etc.). As the number of chapters gets closer to 100, I start wondering if I can define the list of chapters in the yaml file using 'wildcards' in the way similar to the Project render sections.
What I want:
book:
chapters:
- index.qmd
- chapters/chapter_*.qmd
instead of
book:
chapters:
- index.qmd
- chapters/chapter_1.qmd
- chapters/chapter_2.qmd
.....
- chapters/chapter_101.qmd
- chapters/chapter_102.qmd
Example from Quarto website for project rendering:
If you don’t want to render all of the target documents in a project, or you wish to control the order of rendering more precisely, you can add a
project: render: [files]
entry to your project metadata. For example:
project:
render:
- section1.qmd
- section2.qmd
Note that you can use wildcards when defining the
render
list. For example:
project:
render:
- section*.qmd
Would appreciate any suggestions and workarounds.
Thanks in advance