When specifing the size of an image e.g. with {width=2cm}, then using pandoc to generate a powerpoint file, the resulting pptx file always shows an image that fills the slide. This also means, that only one image fits on a slide.
Exporting the same markdown file to docx works without any problem:
# Test
{width=5cm}
{width=2cm}
I use pandoc 2.1.3 on Windows 10 and used the following commands: pandoc -f markdown test.md -o test.docx pandoc -f markdown test.md -o test.pptx
This is a screenshot of the resulting pptx:
This is a screenshot of the resulting docx (and what the pptx should look like):
I attached the source file and the resulting word and powerpoint files: test.zip
The text was updated successfully, but these errors were encountered:
This has to be better documented, but at the moment, there isn't image resizing. Partially this is because images are already dynamically resized to fit into powerpoint templates, and there isn't agreement about how resizing should fit on top of that. This is on the TODO list, but there's some principle of least surprise issues that need to be discussed on the mailing list.
I'll leave this open to remind us that this is still to be done.
Note, though, that even with resizing, it is not possible to put two images on the same slide unless you use two-column layout. Unlike docx, which has a flowed model, powerpoint has an entirely visual model, with stacked frames, based on templates. We can't place an arbitrary number of shapes on the same slide unless we want them to overlap. (In sum, there are limitations to dynamic slide creation -- we can only reliably work in terms of layout.)
When specifing the size of an image e.g. with
{width=2cm}, then using pandoc to generate a powerpoint file, the resulting pptx file always shows an image that fills the slide. This also means, that only one image fits on a slide.Exporting the same markdown file to docx works without any problem:
I use pandoc 2.1.3 on Windows 10 and used the following commands:
pandoc -f markdown test.md -o test.docxpandoc -f markdown test.md -o test.pptxThis is a screenshot of the resulting pptx:


This is a screenshot of the resulting docx (and what the pptx should look like):
I attached the source file and the resulting word and powerpoint files:
test.zip
The text was updated successfully, but these errors were encountered: