summaryrefslogtreecommitdiff
path: root/common/doc/template/mstar/rst2xetex-mstar
blob: 86b9f5353ca5ec9eafd854b859da66a1322883e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python

"""
Front end to the Docutils Publisher, producing XeLaTeX source code.

Include MStar specific style and plugins.
"""

try:
    import locale
    locale.setlocale(locale.LC_ALL, '')
except:
    pass

from docutils.core import publish_cmdline, default_description
import pygments_code_block_directive
import vcs_version_directive

description = __doc__ + default_description
overrides = {
    'stylesheet': 'mstar.sty',
    'documentoptions': 'DIV=16',
    'sectnum_xform': False,
}
publish_cmdline(writer_name='xetex', description=description,
        settings_overrides=overrides)