buildframework/helium/external/python/lib/common/docutils-0.5-py2.5.egg/EGG-INFO/scripts/rst2latex.py
author lorewang
Wed, 01 Dec 2010 16:05:36 +0800
changeset 715 e0739b8406dd
parent 179 d8ac696cc51f
permissions -rw-r--r--
Specify extenal tool with path
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     1
#!C:\Python25\python.exe
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     2
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     3
# $Id: rst2latex.py 4564 2006-05-21 20:44:42Z wiemann $
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     4
# Author: David Goodger <goodger@python.org>
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     5
# Copyright: This module has been placed in the public domain.
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     6
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     7
"""
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     8
A minimal front end to the Docutils Publisher, producing LaTeX.
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
     9
"""
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    10
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    11
try:
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    12
    import locale
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    13
    locale.setlocale(locale.LC_ALL, '')
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    14
except:
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    15
    pass
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    16
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    17
from docutils.core import publish_cmdline, default_description
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    18
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    19
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    20
description = ('Generates LaTeX documents from standalone reStructuredText '
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    21
               'sources.  ' + default_description)
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    22
d8ac696cc51f helium_7.0-r14027
wbernard
parents:
diff changeset
    23
publish_cmdline(writer_name='latex', description=description)