Replies: 3 comments 6 replies
-
This is indeed an unfortunate constraint (and the warning should be an error!). I'd suggest for now just wrapping the rendering of the slides with code that either temporarily renames the |
Beta Was this translation helpful? Give feedback.
-
Small example (source: https://github.com/mcanouil/quarto-issues/tree/main/quarto-cli-1433):
Note: variables could be used to define shared variables between the two yaml and calling out those variables using shortcodes (see https://quarto.org/docs/authoring/variables.html). |
Beta Was this translation helpful? Give feedback.
-
slightly related, is there a way to then combine different chapters into a single slide deck ? |
Beta Was this translation helpful? Give feedback.
-
I'm a university professor. For one of my classes, I like to present my lecture notes as both a presentation (eg, slidy or revealjs, for use in class) and a unified website (eg, gitbook, for students to consult out of class). With Rmarkdown, I could do this by having two different recipes in a Makefile: one that uses
bookdown::render_book()
to create the single gitbook, and another that usesrmarkdown::render()
to create a presentation for each separate chapterRmd
file.I'm playing around with Quarto, trying to figure out how I might be able to do this. Something like
quarto render chfile --to revealjs
in a book project generates a warning:WARNING: The revealjs format is not supported by book projects
. (This should probably be an error, because Quarto doesn't go on to executive any code chunks or produce any output files.) Includingrevealjs
as aformat
in_quarto.yml
does the same thing. I tried setting up a separate metadata file,_slides.yml
, butquarto render
doesn't seem to have any flags to select which metadata file should be used.So currently the best option seems to be to stick with
rmarkdown::render()
for the slides?Beta Was this translation helpful? Give feedback.
All reactions