-
DescriptionWhat I find great about Quarto is that you can create report web pages, and simultaneously create PDF versions or other formats for printing. However, these formats sometimes require specific adjustments (such as templates in LaTeX or CSS in HTML). For instance, if I have finished customizing the PDF version and then only adjust and render the HTML version, the PDF version gets deleted first in the output directory. This means that I always must render all formats so that they are present in the output directory, even though only one format has been modified. This naturally takes a considerable amount of time. Is there a way to configure Quarto to not delete existing formats, as it used to work with bookdown? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Could you provide a reproducible example ? Currently I can't reproduce. Try ---
title: "Test"
format:
pdf: default
html: default
---
# Minimal example
This is a minimal example
So are you in a specific context ? Quarto project ? Latest quarto version ? Sharing more details will help |
Beta Was this translation helpful? Give feedback.
-
Thank you! And yes, it is a quarto-project with Quarto 1.4.322. I have the _quarto.yml:
And an index file:
After "Render Book" in the "Build"-Panel from RStudio, all formats are rendered in the "report"-folder. When I use the drop down button from "Render Book" and only choose the "HTML Format", everything in the output-dir "report"-folder is deleted and only the HTML is rendered. |
Beta Was this translation helpful? Give feedback.
-
Regarding this, if the time is in computation execution, you should consider the options that Quarto offers at https://quarto.org/docs/projects/code-execution.html#freeze If this is PDF rendering time from LaTeX, I can understand the trouble. However, for development, you should consider the preview workflow to avoid build the whole documents at each render |
Beta Was this translation helpful? Give feedback.
I think this is currently expected for projects - this is the default behavior. You can opt-out by passing
--no-clean
toquarto render
I believeSee
quarto render --help