diff options
| author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-12-30 16:07:35 +0100 | 
|---|---|---|
| committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-12-30 16:07:35 +0100 | 
| commit | e03d17810c41bf64c96091d06715840f89ad3086 (patch) | |
| tree | 761b5a9d904354f9870c434f459eef21a2734060 /mod/tex/context | |
| parent | 6dae96e6a7bb0dba0a43fc08ecf3b4614f80006c (diff) | |
| download | context-rst-e03d17810c41bf64c96091d06715840f89ad3086.tar.gz | |
module file “t-rst.mkiv”
Diffstat (limited to 'mod/tex/context')
| -rw-r--r-- | mod/tex/context/third/rst/t-rst.mkiv | 41 | 
1 files changed, 41 insertions, 0 deletions
| diff --git a/mod/tex/context/third/rst/t-rst.mkiv b/mod/tex/context/third/rst/t-rst.mkiv new file mode 100644 index 0000000..f514b57 --- /dev/null +++ b/mod/tex/context/third/rst/t-rst.mkiv @@ -0,0 +1,41 @@ +%D \module [ +%D         file=t-rst, +%D      version=0.2 ‘Sex and Violence’ +%D        title=\CONTEXT\ User Module, +%D     subtitle=reStructuredText, +%D       author=Philipp Gesang, +%D         date=\currentdate, +%D    copyright=Philipp Gesang, +%D      license=2-clause BSD, +%D ] + +%M \usemodule[rst] +%M \loadsetups[t-rst.xml] + +\writestatus{loading}{ConTeXt User Module / reStructuredText} +\unprotect + +\startinterface all +  \setinterfacevariable {RST} {RST} +\stopinterface + +\definenamespace [RST] [ +  type=module, +  comment=reStructuredText module, +  version=0.2, +  name=reST, +  style=no, +  command=yes, +  setup=list, +  parent=RST, +] + +\setupreST[ ] + +%D Loading the reStructuredText parser. +\ctxlua{environment.loadluafile("rst_parser")} + +%D This command loads and processes the \type{*.rst} file. +\def\typesetRSTfile#1{\ctxlua{do_rst_file("#1")}} + +\protect \endinput | 
