中文在前,英文在后。

背景

使用 LaTex beamer 模板生成了一个严肃的幻灯片文件,非常完美,格式是 PDF。(都已经用了 beamer,应该就是最完美的了,)但是出于某些原因,仍然被要求提供 PPTX 文件(比如某些系统就只接收 PPTX,或者,被要求演讲排练,必须使用 PPTX 的排练功能,让你别无选择)。

尝试

网上可以搜索到无数工具,宣称他们能够将你的 PDF 转换成 PPTX,但是试验下来,结果非常不理想。要么是某些文本被遮挡,要么是字体变得奇丑无比。

而且有些工具还声称他们可以 100% 地保证转换后的观感和原始 PDF 看上去一模一样,但结果发现这些工具只是将 PDF 中的每一页幻灯片转换成了图片格式,粘贴到了 PPTX 文件里,这完全不可接受!

手动但是完美的解决方案

尽管没有找到完美的自动化方案,但是找到了一个半自动的方案,亲测有效。

使用 LibreOffice 打开 beamer 生成的 PDF,同时新创建一个空的 PPTX 文件。

然后将 PPTX 文件的页宽和页高属性设置成和原始的 PDF 文件的页宽和页高一样。

接下来,一页一页地拷贝幻灯片。

这样完成后,PPTX 文件版的幻灯片和原始的 beamer 生成的 PDF 幻灯片看上去一模一样,并且是可以编辑的格式!

并且,你可以使用演讲排练了!


How to convert beamer tex pdf to pptx, perfectly?

Background

You are making some serious slides show and use LaTex beamer template to generate a perfect PDF, but you are asked to provide a PPTX file to have the ability to use the time rehearsal.

Ways tried

There are so many tools that claims they can convert your PDF to pptx, but the results are cumbersome. Either texts get overlapped or fonts skewed ugly. And some tools say they can keep original look and feel 100%, but you just get all the slides in image which cant be accepted at all.

A manual but perfect way

Use LibreOffice to open the PDF file, and create a new PPTX file manually.
Then change the page width and height properties of the PPTX file to match the original PDFs page width and height.

Then copy slide one by one.

Now your slides look and feel the same as the PDF, and you can keep on editing them.