quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.85k stars 313 forks source link

Quarto Powerpoint Issues #11015

Closed sailanki1609 closed 5 days ago

sailanki1609 commented 5 days ago

Here's a template .pptx (dogs_template.pptx) and the output file that is generated (dogs.pptx). I have also pasted the code in this text file(Dogs code.docx).

I'm struggling with the below issues. Any help is appreciated.

dogs_template.pptx dogs.pptx Dogs code.docx

  1. ### Unable to specify slide layout in Quarto when using a reference .pptx template I have created a template .pptx document(dogs_template.pptx) and made some changes to it directly through the Slide Master View in Powerpoint. I am referencing this document through the YAML section. The title slide is pulled directly from the template, but I'm trying to create a new slide called and set it layout to a specific layout say "Section Header" layout. How do i do that?

I have tried a couple of syntaxes but nothing seems to work. Image

Is it possible to specify which slide layout i would like to apply while creating slides through quarto?

  1. ### Slide layout changes unexpectedly when adding an image

I'm trying to create a slide with two bullet points at the top, followed by an image below. However, when I add the image, the layout of the slide changes to the "Content with Caption" layout. In this layout, the image moves to the second column, while the title and text remain in the first column.

Here are the codes that i tried out. I also tried to adjust the size of the image to make it fit below the text, but that didn't work.

1st code- Image

2nd code- I tried inserting a non breaking space in between, and directly included the figure. Image

It looks correct in the Visual mode, but when i generate the powerpoint the layout is changing.

  1. ### Unable to add two images vertically on a single slide

I tried to lay 2 images, one below the other, but it is not happening. I used the {layout-nrow=2} attribute along with some other methods, but none of them worked. It is either resulting in one image per slide or one image overlaying the other.

These are the codes that i tried out. Image

Slide 6 doesn't have any images on it, whereas Slide 7 results in 2 slides with images on 2 separate slides. I also user knitr::include_graphics() but that didn't work either.

  1. ### Is there a direct way to apply slide-specific styling in the same way HTML/CSS works.

I tried this code, although the changes are visible in the Visual Mode, but not coming correctly in the Powerpoint output.

Image

Image

  1. ### Adding custom-footers for each slide. I want to add a different footer for each slide. Is there a way to do that in quarto?
mcanouil commented 5 days ago

Converting to discussion. Please read the guidelines about asking for help and reporting issues. We unfortunately cannot help you because screenshots cannot be used.

Also, please do read the documentation about making a template for PowerPoint (or Word): https://quarto.org/docs/presentations/powerpoint.html#slide-layouts

Note that this is Pandoc doing the job of writing to PowerPoint: https://pandoc.org/MANUAL.html

(@cderv or @cscheid I no longer can convert issues to discussions.)