Open Benjamin-Lee opened 2 years ago
format-resources are specifically NOT cleaned up (so that if you do keep-tex you can compile it entirely without quarto).
If this isn't a requirement then you can leave it out of format-resources and just reference it relative to the extension directory.
I'm a little confused why it wouldn't be controlled by keep-tex
then. I would need the cls file to compile without Quarto but in the normal case, I was surprised to see it (and not the intermediate tex and aux files etc) stick around. The format-resources
also doesn't obey latex-output-dir
, which is clearly documented but counterintuitive.
The alternative approach of referencing relative to the extension worked for non-cls files I tested it with (csl and logo for the title page) but broke with the cls. Not sure what's going on, will debug a little more later to see what's going on.
@dragonstyle could you weigh in here?
I think the relative pathing is going to be a challenge for the class and bibliography style files as those need to be 'discoverable' (e.g. we'd need the path that contains them to be visible to the TeX installation). This can be done by adding them to the search path for TeX (there are env vars for this), but it isn't ideal since it isn't truly reproducible if the tex is kept.
I do think actually cleaning those up do make sense being controlled by keep-tex
, though we currently are not cleaning them up. I had the keep-tex
case in mind when I added this and I think it's just an oversight that we aren't cleaning.
One other thought/note - format resources aren’t necessarily limited to pdf output. Something we’ll have to deal with as we consider the right solution.
@icarusz and I discussed a general strategy for this class of file problems. It's fixable but a requires a significant structural change in our TypeScript codebase. We'll investigate this seriously in 1.7.
Bug description
I'm building an extension for formatting my thesis at Oxford. Let's say I have the following bare-bones extension:
When I render the PDF on my Mac, it works but the .cls file isn't cleaned up as would be expected.
quarto check
Outputquarto tools check
OutputChecklist
quarto check
in the "Quarto Check Output" text area?quarto tools check
in the "Quarto Tools Check Output" text area?