Replies: 3 comments 2 replies
-
It depends, in which context you want to change figure size? A small reproducible example to showcase your issue is always welcome (and appreciated). |
Beta Was this translation helpful? Give feedback.
-
A few ideas:
Those are just ideas - not sure they'll fit your process but I hope it helps and it will give you food for thoughts 😄 |
Beta Was this translation helpful? Give feedback.
-
Thanks to all for your answers. @mcanouil You’re right, the problem may occur in different contexts, but 99% it’s with an image. Put simply, with an image of the form: ![Image alt text](imgsrc) How may I configure different sizes for different output formats? @cderv Thanks for your ideas, there are possibilities I had never thought of! I think that a filter would be my choice, but exploiting the output format (using Example: ![Image alt text](imgsrc){height=500, revealjs-height=600, pdf-height=900} Do you think that may be a good idea? I think I might write the filter next week. |
Beta Was this translation helpful? Give feedback.
-
Description
Hi,
I’m quite happy with Quarto for generating my presentations (RevealJS) and handouts (PDF, not from the PDF export bundled with RevealJS). On my presentations, I have lots of figures (mainly maps and photographies) that are too small when shown in the slide, so I use the
lightbox
class to make them bigger. But, as discussed elsewhere, that is not compatible with the defaultr-stretch
class. Thus, I have to manually set a size for my images to avoid slide overflows (approximatively a height of 500 px). But then, when I export to PDF, my figures are too small.More generally, different output formats imply different contexts of reading, so different sizes for different output formats might be a good thing.
(How) can I set different sizes for an image depending on the output format?
Thanks in advance for your answer.
Beta Was this translation helpful? Give feedback.
All reactions