Make "quarto preview" work in a project with multiple qmd files #4049
Unanswered
magical-heyrovsky
asked this question in
Q&A
Replies: 2 comments
-
my workaround is to add
(https://quarto.org/docs/manuscripts/components.html#including-other-resources) EDIT: this seems to reliably refresh the page but not rerender the output. 😞 |
Beta Was this translation helpful? Give feedback.
0 replies
-
there is a corresponding issue: #2795 so I think this discussion can be closed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know this is probably very specific. I read through most of the documentation but maybe I missed something and this is already possible.
For my quarto template (for papers, etc) I use one qmd file for every chapter and the output is always just a PDF. The file structure looks like this:
_quarto.yml:
The main.qmd just boostraps everything together:
This gives me full control of the structure and the result (much more than the "book" feature it seems). So when I run
quarto render
everything works as expected, I get one PDF that contains every chapter. Butquarto preview
(the "live reload") does not work good in this situation because from what I can tell,preview
watches each file separately. So for example when I change something in chapter01.qmd it will render just that one chapter.Using Linux, I currently solve this problem with a workaround using entr:
ls **/*.qmd | entr quarto render
This will run
quarto render
every time any .qmd file changes. Pretty neat, problem solved. But it would be cool to have that feature out of the box, so when I work together with Windows people they could do the same.Beta Was this translation helpful? Give feedback.
All reactions