Open kernie opened 2 weeks ago
edit: your content needs to match PowerPoint template layout.
width
is actually not supported by Pandoc thus Quarto (both documentation is not updated yet on that)R | Python |
---|---|
`````md ````qmd --- title: "Reproducible Quarto Document" format: html engine: knitr --- This is a reproducible Quarto document. {{< lipsum 1 >}} ```{r} x <- c(1, 2, 3, 4, 5) y <- c(1, 4, 9, 16, 25) plot(x, y) ``` ![An image]({{< placeholder 600 400 >}}){#fig-placeholder} {{< lipsum 1 >}} The end after @fig-placeholder. ```` ````` | `````md ````qmd --- title: "Reproducible Quarto Document" format: html engine: jupyter --- This is a reproducible Quarto document. {{< lipsum 1 >}} ```{python} import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [1, 4, 9, 16, 25] plt.plot(x, y) plt.show() ``` ![An image]({{< placeholder 600 400 >}}){#fig-placeholder} {{< lipsum 1 >}} The end after @fig-placeholder. ```` ````` |
Beside the fact that a "one column" layout does not exist, the issue comes directly from Pandoc. Note that the "workaround" is to not use column at all if you don't intend to have columns.
## Slide
:::: {.columns}
::: {.column}
whatever
![An image](https://placehold.co/600x400.png)
:::
::::
pandoc issue10101.md --from markdown --to pptx -o issue10101.pptx
Out of curiosity what were you trying to do?
It doesn't work for 2 either... So I tried to have 2 columns, left column with text and right one with image, which is a classical (boring) presentation layout...
23.06.2024 00:13:26 Mickaël Canouil @.***>:
Out of curiosity what were you trying to do?
— Reply to this email directly, view it on GitHub[https://github.com/quarto-dev/quarto-cli/issues/10101#issuecomment-2184210770], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AFR5ZF2JACB3FI7EMUWPUTDZIXZH7AVCNFSM6AAAAABJXU2EWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGIYTANZXGA]. You are receiving this because you authored the thread. [Verfolgungsbild][https://github.com/notifications/beacon/AFR5ZF57GS76QTMJHOZTZQDZIXZH7A5CNFSM6AAAAABJXU2EWKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUCGBUVE.gif]
What does not work exactly?
Input | Output |
---|---|
````qmd --- title: "Quarto Playground" format: pptx --- ## Slide :::: {.columns} ::: {.column} ![An image]({{< placeholder 600 400 >}}) ::: ::: {.column} ![An image]({{< placeholder 600 400 >}}) ::: :::: ```` |
|
````qmd --- title: "Quarto Playground" format: pptx --- ## Slide :::: {.columns} ::: {.column} Text ::: ::: {.column} ![An image]({{< placeholder 600 400 >}}) ::: :::: ```` |
|
````qmd --- title: "Quarto Playground" format: pptx --- ## Slide :::: {.columns} ::: {.column} ![An image]({{< placeholder 600 400 >}}) ::: :::: ```` |
|
After comparing your source code and mine I saw that I had an error in the class specifier (missing dot). That's my bad! And thank you very much for your analysis!
Some observation however:
EDIT: Sorry, you mentioned this already! So closing...
Even if the single-column layout is unnecessary, I think it should still work correctly. So we should report this to Pandoc, thus reopening.
I opened an issue upstream:
BTW as explained in Powerpoint, there s Slide Layout detection in PPTX by pandoc system. https://quarto.org/docs/presentations/powerpoint.html#slide-layouts
Some layout are two columns content and you don't need to use .columns
to activate it.
---
title: test
format: pptx
---
## Slide
Text content
![An image](https://placehold.co/600x400.png)
Though, funny thing (or not...) using two images only keep one image 😓
---
title: test
format: pptx
---
## Slide
![An image 1](https://placehold.co/400x400.png)
![An image 2](https://placehold.co/600x400.png)
Which is probably a pandoc bug
quarto pandoc --to pptx -o test.pptx test.qmd
gives the same...
related to the issue you opened ? 🤷♂️
I would say you found another bug which might be related but not sure.
It seems from the screenshot that the two images are stacked on top of each other.
It seems from the screenshot that the two images are stacked on top of each other.
Oh I did not thing of that! Looking at the xml would tell us. I see...
Not easy one. I would say I would expect the Two column layout to be active in this case but it explicitly required columns indeed
Two Content This layout is used for two-column slides, i.e. slides containing a div with class columns which contains at least two divs with class column.
So not sure it is a bug... Just silently doing what the doc is saying... 😓
No need to go look at the xml^^
https://github.com/quarto-dev/quarto-cli/assets/8896044/a54bef5e-f698-4665-b1a1-9b3e449869b1
(The "2" in the caption was weird in your screenshot)
Good catch !
Bug description
Hello,
I have a document (full example with image is uploaded) like
and after rendering the image in the column of slide 1 is missing, while it is there in the next slide.
ImageMissing.zip
Steps to reproduce
Extract the ZIP and render.
Expected behavior
No response
Actual behavior
No response
Your environment
Linux Ubuntu 24.04
Quarto check output