How do I render a file but not include it as a chapter in a book project? #10678
Replies: 2 comments 6 replies
-
As we cannot use your code, it's hard to reply.
quarto create project book
Everything works fine. If you expect About |
Beta Was this translation helpful? Give feedback.
-
@HarunCelikOtto I feel like I just ran into this issue as well. In this commit, I needed the macros.qmd file to be rendered, but it never render when using @mcanouil I was expecting quarto to render every qmd file in the project directory because it says so here. I am realizing now that this is what quarto does for websites and not necessarily for books that both @HarunCelikOtto and I are using. The documentation for books does not include the same section on what we should expect to be rendered. And apparently books do not render all qmd files in the project directory. This post seems to have workaround. But it would be nice to have something builtin to the structure of quarto books that would allow you to render (in a particular order) files that are not chapters similar to what is available for websites. |
Beta Was this translation helpful? Give feedback.
-
Description
Hello,
I'm wondering if it is possible to have quarto render a
qmd
file in a book project without it actually being a part of the chapters of the book.The idea is that as I am developing the book, I want to repurpose some of my writing into another file using the same
bib
file andimages\
directory. I basically want to take advantage of Quarto assigning the project as root directory for files which are part of the project but not going to be rendered with the full book.Assuming that my project directory and my
_quarto.yml
file look like the following.I would like to be able to render the contents of
book-chapters/chapter-one/ch1-sect-1.qmd
, by running thequarto render
command. This should include the correct paths to thebib
file as well as to theimages/
. Runningquarto render
will not render the document, only those indicated in the chapters will render.Contents of
ch1-sect-1.qmd
.Output where the qmd file is specified in
quarto render
.Beta Was this translation helpful? Give feedback.
All reactions