forked from mitocw/latex2edx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedXpsl.py
executable file
·73 lines (49 loc) · 1.66 KB
/
edXpsl.py
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
from plasTeX import Base
class edXcourse(Base.Environment):
args = '{ number } { url_name } self'
class edXchapter(Base.Environment):
args = '{ display_name } self'
class edXsection(Base.Environment):
args = '{ url_name } self'
class edXsequential(Base.Environment):
args = 'self'
class edXvertical(Base.Environment):
args = '{ display_name } self'
class edXabox(Base.Command):
args = 'self'
class edXinline(Base.Command):
args = 'self'
class edXvideo(Base.Command):
args = 'self'
class includegraphics(Base.Command):
args = '[ width ] self'
class edXinclude(Base.Command): # include external file
args = 'self'
class edXshowhide(Base.Environment): # block of text to be hidden by default, but with clickable "show"
args = ' { id } { description } self'
class edXscript(Base.verbatim):
macroName = "edXscript"
class endedXscript(Base.endverbatim):
macroName = "endedXscript"
class edXanswer(Base.verbatim):
macroName = "edXanswer"
class endedXanswer(Base.endverbatim):
macroName = "endedXanswer"
class edXjavascript(Base.verbatim):
macroName = "edXjavascript"
class endedXjavascript(Base.endverbatim):
macroName = "endedXjavascript"
class edXmath(Base.Environment):
args = 'self'
class edXxml(Base.Command):
args = 'self'
class edXproblem(Base.Environment):
args = '{ url_name } { attrib_string } self'
class edXtext(Base.Environment): # indicates HTML file to be included (ie <html...> in course.xml)
args = '{ url_name } self'
class edXsolution(Base.Environment):
args = 'self'
class section(Base.Command):
args = 'self'
class subsection(Base.Command):
args = 'self'