jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.57k stars 3.38k forks source link

Option to set aspect ratio for pptx output #6305

Open GreatEmerald opened 4 years ago

GreatEmerald commented 4 years ago

By default, pandoc uses a 4:3 aspect ratio template to produce pptx output. There is no easy way to change that at the moment: if I try to customise the template and open it with LibreOffice, the resulting file cannot be read back by pandoc any more (Could not find shape for Powerpoint content). So adding a variable aspectratio, like there is for Beamer, would be useful.

I tried also manually editing the reference PPTX XML (by setting the slide size as per http://officeopenxml.com/prSlide-size.php ), and while it nominally works, the side master content is not resized to match, so figures and text go out of slide boundaries.

I'm using pandoc 2.9.2 and LibreOffice 6.4.3.2.

jgm commented 4 years ago

@jkr would know what would be needed for this.