diff options
Diffstat (limited to 'tools/rst2latex.py')
-rwxr-xr-x | tools/rst2latex.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/rst2latex.py b/tools/rst2latex.py new file mode 100755 index 000000000..5f51f34e2 --- /dev/null +++ b/tools/rst2latex.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +# Author: David Goodger +# Contact: goodger@users.sourceforge.net +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing LaTeX. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates LaTeX documents from standalone reStructuredText ' + 'sources. ' + default_description) + +publish_cmdline(writer_name='latex', description=description) |