24

I usually prepare my talks using powerpoint/openoffice-impress/keynote, where I explaing programs, pseudocodes, etc. Recently I was thinking about creating text-only, code-only and pseudocode-only slides with beamer and then exporting them somehow to powerpoint where I modify them to add figures or some minor details for polishing the presentation, which are usually hard to do with beamer. I googled a bit around and found that beamer can export to PDF or PS but not to powerpoint. I wonder anyway if you know some possibility of conversion from beamer to on-screen editable powerpoint/openoffice-impress/keynote.

6
  • 5
    "beamer can export to PDF or PS", beamer doesn't export anything. It is a LaTeX class and LaTeX compiles the document to PDF (pdflatex) or DVI (latex) which then is mostly converted to PS. There is of course no powerpointlatex, so you will need to convert the PDF or PS somehow to a format PP can read, which would be RTF (Rich Text Format) or some Windows vector format like EMF or WMF. However, I would do it either with one or the other software. They do not mix well. Jun 30, 2011 at 13:48
  • 1
    In short: probably not. Pandoc supports .tex to .doc translation, but converting to .ppt would be significantly harder and almost certainly very ugly.
    – Seamus
    Jun 30, 2011 at 14:59
  • @Martin Since this question has no real answer other than your comment, maybe you should turn your comment into an answer.
    – Alan Munn
    Aug 8, 2011 at 0:40
  • @AlanMunn: done Aug 8, 2011 at 5:36
  • 2
    I think this is a great question. Of course beamer exports to PDF or PostScript, BUT I have an idea. What if we could use the (xe)latex code to produce slides with the nice beamer header/footer and then use those slides as a kind of template for a presentation in openoffice, keynote, or powerpoint. This means: easy formatting of presentation structure using (xe)latex (with TOC and slide guides in header/footer), plus ability to add media content to slides (for example videos). I do not know how to do this, but if I find out, I will post an answer! Jul 1, 2012 at 11:26

8 Answers 8

15

"beamer can export to PDF or PS", beamer doesn't export anything. It is a LaTeX class and LaTeX compiles the document to PDF (pdflatex) or DVI (latex) which then is mostly converted to PS. There is of course no powerpointlatex, so you will need to convert the PDF or PS somehow to a format PP can read, which would be RTF (Rich Text Format) or some Windows vector format like EMF or WMF. However, I would do it either with one or the other software. They do not mix well.

7

I have a partial solution for exporting beamer slides to PowerPoint

Purpose: If you want to create your background, header, and footer in (Xe)Latex, like this: example header

but you still would like to edit the content in PowerPoint (or whatever you have), you could use this solution.

For this you will need a Mac with OS X (Automator and AppleScript needed). I followed the following procedure:

  1. Compile Beamer Slides to PDF
  2. Use Automator to each page of PDF into separate PDF Files Automator Workflow
  3. Use AppleScript to add each separate PDF file into an individual slide (see below NOTE: original code from http://macscripter.net/viewtopic.php?pid=152809#p152809)
tell application "Finder" 
     set picFolder to every file in folder (choose folder)
     log (count picFolder)
     sort picFolder by name end
tell


tell application "Microsoft PowerPoint"
--activate
    make new slide at end of active presentation with properties {layout:slide layout blank}
    set numberofslides to (count of slides of active presentation) as integer     >         set theIncrementValue to 1 as integer
    repeat numberofslides times
         set picName to item theIncrementValue of picFolder as string         >              set properties of slide theIncrementValue of active presentation to {layout:slide layout text slide, follow master background:true}
     set myPic to make new picture at slide theIncrementValue of active presentation with properties {file name:(picName as text), top:0, left position:0, height:540, width:722,lock aspect ratio:true, save with document:true} --makes pictures full sized
         z order myPic z order position send shape to back--tip from Ben Waldie
         set theIncrementValue to theIncrementValue + 1
  end repeat
end tell

UPDATE 2: Ben Waldie helped me move the picture (beamer slides/individual pdf "images") to the back, such that the beamer slides do not cover an text boxes in Powerpoint.

Practical Usage: Create your presentation in Powerpoint, using text-only slides (titles in your tex code) or title-text slides (titles not included in tex code). You will have to coordinate the orientation of these text fields and your pdf slides, such that it is aesthetically pleasing. In your TeX editor, add the number of frames you have in powerpoint.


My original post (which is most likely obsolete):

I have a possible solution for you:

PDF-to-Powerpoint

It is not free, $12.95 at the moment. This should do what you want. I will continue to seek an open-source alternative. I would really like to be able to have latex generated templates for my Keynote presentations. I especially want the ability to have something like the following picture, except I would want to use it as a template background for my slides in Keynote. All bullet points, pictures, and videos would be added from within Keynote. In essence, Xe(LateX) becomes just a template creator. Have a look, paying attention to what I call the "slide guide" in the header:

Example of (Xe)LateX Export with beamer class

7

Here (https://github.com/martinGithub/beamer2pptx) is a small python script that extracts elements of the beamer using regular expressions, creates an image for each equation and generates a powerpoint with the same number of slides with the equations and the images. It does not keep the layout, but it can help as a first step before reediting the exported presentation in powerpoint.

1
5

One mornign I was bored, and I wrote a small script named pdf2oo. The obtained presentation is not editable (but it is obviously overlayable) and the worse, it's bitmap. Today, it would be possible to add vector graphics easily using svg, but I never found the motivation to do that. It's open source software so you could consider modifying the script to your needs or improving it.

http://pdf2oo.sourceforge.net

4

PDF to Keynote does exactly this. (At least for Keynote)

http://www.cs.hmc.edu/~oneill/freesoftware/pdftokeynote.html

And it's free!

1
  • I use this all the time (for Keynote's presenter mode), but it should be pointed out that the result is not editable. One can, of course, add additional Keynote elements, but each page of the pdf is simply place into Keynote as a full-slide image. It looks great though.
    – erik
    Mar 27, 2016 at 18:31
1

Since Beamer's output is a PDF, there are several free online PDF-to-PPT converters out there. I have just used Adobe's: https://www.adobe.com/acrobat/online/pdf-to-ppt.html and I have finally made it. Good luck!

1
  • The Adobe web tool worked well for me. Just for completeness (and in case someone is concerned about converting slides online), it's worth noting that Adobe Acrobat Pro has an Export To -> Microsoft PowerPoint Presentation menu option that seems to work just as well as the web option and the files remain local to your computer.
    – Omar Wasow
    Apr 20 at 15:53
0

The solutions from previous answers didn't work for me, either because they can't produce editable presentations, or because they're not available for my operating system, or because they choke on certain LaTeX markup. For cases where I just need to extract the presentation text, and maybe preserve some very basic formatting (bold, italic, quotations, bulleted lists, etc.), I've found the least-worst solution is to use Pandoc and then manually post-edit the output. This still saves considerable time over manually retyping the entire presentation.

While Pandoc doesn't do a good job when converting Beamer LaTeX documents directly to a presentation format such as PPTX, it does work fairly well when converting them to OpenDocument text (ODT) documents:

pandoc my_presentation.tex -o my_presentation.odt

The resulting file can be opened in a word processor, and the contents can be copied and pasted into individual slides of a presentation.

0

This question is quite old but the tools are evolving...

I spend a long time recently in order to find a solution for Beamer to PPT conversion (only to give a PPT to people who don't use LaTeX). I tested a lot of things (Python scripts, pandoc, conversion to HTML or RTF before PPT, etc.) and to my surprise, the best result I got was from the PDF and not from the '.tex'...

I found the following which makes it possible to obtain a relatively faithful conversion (quite good template conversion) and fully editable (but not very practical to really work on the PPT, see Drawbacks section below).

These two solutions are completely automatable - form '.tex' to 'PPT' - on linux or on a Windows Subsystem for Linux (WSL) and probably on Windows.

Two methods:

  1. Method 1: One step method from PDF to PPT on Linux terminal (thanks to this ask.libreoffice.org answer):

soffice --infilter=impress_pdf_import --convert-to ppt filetoconvert.pdf

  1. Method 2: a bit better for equation conversion

    2.1. First, open the PDF with LibreOffice Impress and save it in ODG format (libreoffice Draw) because Impress will actually redirect to Draw after opening the PDF... On Linux terminal: libreoffice --headless --convert-to odg filetoconvert.pdf

    2.2. Second, convert the Draw (ODG) file to an LibreOffice Impress (ODP) file (only possible with unoconv command line). On Linux terminal: unoconv -f odp filetoconvert.odg

    2.3. Third, open the ODP file with OpenOffice Impress (and not LibreOffice Impress) and do "Save As" in "Power Point 97-2003" format. On Linux terminal (thanks to this answer): soffice --infilter=impress8 --convert-to ppt filetoconvert.odp

    2.4. Fourth, open with Power Point in order to convert into PPTX if needed.


Results

With this Beamer generated PDF:

enter image description here enter image description here enter image description here enter image description here

It gives the following PPT:

enter image description here enter image description here enter image description here enter image description here

Note the equations (red rectangle) which are not well converted (slide #3) and a lot of brackets () are missing (e.g. after abs function).

Here a picture showing the text box in PPT (one text box for each line and each character in equation):

enter image description here


Drawbacks:

  • Needs command line.
  • Not full automation from '.tex' to 'PPTX' (but Ok on Linux from '.tex' to 'PPT').
  • 'PPT' file editable with one text box for each line and each character in equation which could be cumbersome if someone wants to really "work" with the PPT.
  • Some equation are not well converted.
  • The navigation symbols on foot right corner are not removed.
  • No keynote conversion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.