-
DescriptionBy default Quarto will remove all intermediate files after building a pdf using its own latex pipeline, as documented in https://quarto.org/docs/output-formats/pdf-engine.html#pdf-compilation. I'm used to keep intermediate files (inside an output dir under /tmp) with latexmk since that makes the build quite faster. But I don't know about the internals of Quarto's default pipeline.
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
I think the question is the other way around: why do you want to keep intermediary files? Only to avoid the time spent deleting them? |
Beta Was this translation helpful? Give feedback.
-
I don't know about the internals, but in general latexmk is quite faster when you keep intermediate files from previous runs. |
Beta Was this translation helpful? Give feedback.
-
If quarto is just passing the latexmk engine option to pandoc, that's the information that I need because that is what I have been doing myself for years, but I've read that quarto does its own thing, automatically installs latex packages, etc. So that's why I was asking. Supposing that I want to keep intermediate files, is there a way to set that in a system-level or user-level fashion other than wrapping the quarto command? |
Beta Was this translation helpful? Give feedback.
-
I know what is an engine, I know what it tinytex. Perhaps you should update your documentation then: https://quarto.org/docs/output-formats/pdf-engine.html#quarto-pdf-engine
No, it's not obvious considering that there is a "Quarto’s built-in PDF compilation engine" documented that now you say there actually isn't. Then it becomes obvious.
I'm well aware of this. My last question was: is there any way to set these options at system or user level (so I don't have to specify them in every project or document)? Because if there isn't, the only workaround I see is to wrap the quarto command so that I can set the appropriate options there. |
Beta Was this translation helpful? Give feedback.
-
So I'm going to assume that by default this thing quarto does is ultimately calling latexmk. I know for sure that latexmk takes advantage of previous intermediate files in order to speed up the build. And there is no way to set latex-clean = false at the user/system level, so I'm going to wrap the quarto command so as to pass the appropriate pandoc option to render, or look for another workaround. Thank you very much. |
Beta Was this translation helpful? Give feedback.
So I'm going to assume that by default this thing quarto does is ultimately calling latexmk. I know for sure that latexmk takes advantage of previous intermediate files in order to speed up the build. And there is no way to set latex-clean = false at the user/system level, so I'm going to wrap the quarto command so as to pass the appropriate pandoc option to render, or look for another workaround. Thank you very much.