Class `handout` is removed.
[docutils/kirr.git] / sandbox / rst2beamer / tools / rst2beamer.py
blobc322c5d31b45b1b18ab816478e1aefa69e308ae2
1 #!/usr/bin/python
3 # Author: David Goodger
4 # Contact: goodger@users.sourceforge.net
5 # Revision: $Revision$
6 # Date: $Date$
7 # Copyright: This module has been placed in the public domain.
9 """
10 A minimal front end to the Docutils Publisher, producing LaTeX Beamer.
11 """
13 try:
14 import locale
15 locale.setlocale(locale.LC_ALL, '')
16 except:
17 pass
19 from docutils.core import publish_cmdline, default_description
21 from docutils.writers.latexbeamer import Writer, Reader
23 description = ('Generates LaTeX Beamer documents from standalone reStructuredText '
24 'sources. ' + default_description)
26 writer = Writer()
27 reader = Reader()
28 publish_cmdline(reader=reader, writer=writer, description=description)