Replies: 2 comments 4 replies
-
See the documentation on metadata (i.e., https://quarto.org/docs/projects/quarto-projects.html#shared-metadata |
Beta Was this translation helpful? Give feedback.
-
I don't think shared metadata provides a way to render only some documents as pdf. But, with some experimenting it seems I can use some format directives - like 'mainfont' - in the toplevel of the quarto-yml then override it in format/html without specifying format/pdf at all. Then for the files I do want to be rendered I add a format/pdf with something like toc: true and only that particular file will be rendered to pdf using the mainfont from the toplevel.
|
Beta Was this translation helpful? Give feedback.
-
Description
I am working on a mixed project, in part nbdev - which uses Quarto website - and part a blog. It all works more or less fine but ...
I would like to be able to only generate pdf files for a select few documents while specifying various options in the main _quarto.yml
However, if I specify a pdf or typst section under format, all documents are rendered to pdf (alongside the html) and If I can't use the main quarto.yml to specify formatting options then I'd have to maintain them in each document I want rendered to pdf - which is a bad idea.
This problem will extend to presentations should I want to add some of those.
Is there a way to specify formatting options for all documents of one type in one place while not at the same time rendering all of them, or is there a method to disable (or enable) rendering for selected documents. I could find anything useful online.
With kind regards,
Fenke
Beta Was this translation helpful? Give feedback.
All reactions