Can I control the output directory for intermediate files (e.g. produced with keep-tex: true)?
#13609
-
DescriptionI know it is possible to specify the output directory for rendered outputs in a quarto project with: project:
output-dir: _output/However, intermediate files from format:
pdf:
keep-tex: trueThese files are often required as part of submission requirements for variable conference and journals. I've read through #2171, but that appears to deal with rendered outputs only, not these intermediate files. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Short answer is no you can't. |
Beta Was this translation helpful? Give feedback.
-
Considering how quarto works there is a trick you can do
After render I get > fs::dir_tree("_output/")
_output/
├── index.pdf
└── index.texThis is not ideal though because you need to add that to all your file, and also use the same name as the input. You could also target both PDF and LaTeX file as output. Doing it this way: However Or you need to change the latex file name for example format:
pdf: default
latex:
output-file: submission.texThose are workaround and not ideal as they do render twice the document to a .tex file and not reusing the same intermediate (as they are considered two renders). After all I think the real problem is tracked in this old issue It was sum up this way by JJ at the time
We haven't yet work on that. Hope the tricks help you get unblock for now. |
Beta Was this translation helpful? Give feedback.
Considering how quarto works there is a trick you can do
_quarto.ymlindex.texas a resource for your .qmd - this will make Quarto copy it in the output directory as any other manually specified resourcesA…