About

Welcome to Panela, Matt Harrison's take on mostly Open Source, Linux, Python, innovation in those areas, other buzzwords and Dick Proenneke. It comes complete with the illustrations as needed. Note the opinions expressed here are merely my opinions and not the opinions of my employer.

about Matt

Calendar

««Nov 2009»»
SMTWTFS
1234567
8910
11
12
1314
151617
18
192021
22232425262728
2930

Mailing List

My RSS Feeds








Easy slideshow creation with rst2odp

posted 2009.03.16 Mon

I've used rst2odp a few times now for slide generation. It does a pretty good job. It's still lacking some features that the s5 stuff has, but has other features. Notably missing is footers (the support is in there in the backend library I just don't care for them so I've yet to hook them up in the rst2odp script), table support (again haven't needed to scratch that itch, but would be easy to add), incremental mode only supported in lists (not paragraphs, this is a feature of OOo/ppt), image placement is basic, and only supporting one text frame. Also there is support for slide import (from existing decks, even works for ppt (if you convert it to odp)) in the backend, just haven't written the rst directive for it.

Here's some features that are different from rst2s5.

Titleless slides Instead of underlining some words for a title, just underline nothing and you'll get a blank title. I use this in combination with:

Centered huge text like so:


--------

.. class:: center huge

A slide with centered, huge text and no title

Source code formatting Thanks to pygments we get source formatting like so:


Source code
-----------

.. code-block:: python

  def foo(bar, baz):
    fizzle(bar, baz)

Pretty straightforward eh? The tarball includes a doc directory with an example slideshow illustrating the features. To generate a slideshow using an OOo template do the following:

rst2odp slides.rst --template-file template/darkGradient.otp output.odp

Then use OOo to present it. Or convert to PPT or PDF and use your favorite viewer....

tags:              

links: digg this    del.icio.us    reddit