Fixed bug with setting the writer in the publisher from doctree.
[docutils.git] / tools / rst2newlatex.py
blob46524753f587cc9d168f570a05f3d603d4a5d4ab
1 #!/usr/bin/env 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 using
11 the new LaTeX writer.
12 """
14 try:
15 import locale
16 locale.setlocale(locale.LC_ALL, '')
17 except:
18 pass
20 from docutils.core import publish_cmdline, default_description
23 description = ('Generates LaTeX documents from standalone reStructuredText '
24 'sources. This writer is EXPERIMENTAL and should not be used '
25 'in a production environment. ' + default_description)
27 publish_cmdline(writer_name='newlatex2e', description=description)