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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
|