Show More
@@ -65,64 +65,72 b'' | |||||
65 | ((* block footer *)) |
|
65 | ((* block footer *)) | |
66 | ((* endblock footer *)) |
|
66 | ((* endblock footer *)) | |
67 |
|
67 | |||
68 |
((*- block |
|
68 | ((*- block headingcell-*)) | |
69 | ((( cell.source))) |
|
69 | ||
70 |
((*- if cell. |
|
70 | ((*- if cell.level == 1 -*)) | |
71 |
|
71 | \part | ||
72 | ((*- block codecell scoped -*)) |
|
72 | ((*- elif cell.level == 2 -*)) | |
73 | ((*- block input_group -*)) |
|
73 | \chapter | |
74 | ((*- block in_prompt -*))((*- endblock in_prompt -*)) |
|
74 | ((*- elif cell.level == 3 -*)) | |
75 | ((*- block input -*))((*- endblock input -*)) |
|
75 | \section | |
76 | ((*- endblock input_group -*)) |
|
76 | ((*- elif cell.level == 4 -*)) | |
77 | ((*- if cell.outputs -*)) |
|
77 | \subsection | |
78 | ((*- block output_group -*)) |
|
78 | ((*- elif cell.level == 5 -*)) | |
79 | ((*- block output_prompt -*))((*- endblock output_prompt -*)) |
|
79 | \subsubsection | |
80 | ((*- block outputs -*)) |
|
80 | ((*- elif cell.level == 6 -*)) | |
81 | ((*- for output in cell.outputs -*)) |
|
81 | \paragraph | |
82 | ((*- if output.output_type in ['pyout'] -*)) |
|
82 | ((*- endif -*)){((( cell.source )))} | |
83 | ((*- block pyout scoped -*))((*- endblock pyout -*)) |
|
83 | ((*- endblock headingcell -*)) | |
84 | ((*- elif output.output_type in ['stream'] -*)) |
|
84 | ||
85 | ((*- block stream scoped -*)) |
|
85 | ((*- block codecell scoped -*)) | |
86 | ((*- if output.stream in ['stdout'] -*)) |
|
86 | ((*- block input_group -*)) | |
87 | ((*- block stream_stdout scoped -*)) |
|
87 | ((*- block in_prompt -*))((*- endblock in_prompt -*)) | |
88 | ((*- endblock stream_stdout -*)) |
|
88 | ((*- block input -*))((*- endblock input -*)) | |
89 | ((*- elif output.stream in ['stderr'] -*)) |
|
89 | ((*- endblock input_group -*)) | |
90 | ((*- block stream_stderr scoped -*)) |
|
90 | ((*- if cell.outputs -*)) | |
91 | ((*- endblock stream_stderr -*)) |
|
91 | ((*- block output_group -*)) | |
92 | ((*- endif -*)) |
|
92 | ((*- block output_prompt -*))((*- endblock output_prompt -*)) | |
93 |
|
|
93 | ((*- block outputs -*)) | |
94 |
|
|
94 | ((*- for output in cell.outputs -*)) | |
95 | ((*- block display_data scoped -*)) |
|
95 | ((*- if output.output_type in ['pyout'] -*)) | |
96 |
|
|
96 | ((*- block pyout scoped -*))((*- endblock pyout -*)) | |
97 | ((*- endblock data_priority -*)) |
|
97 | ((*- elif output.output_type in ['stream'] -*)) | |
98 |
|
|
98 | ((*- block stream scoped -*)) | |
99 |
((*- |
|
99 | ((*- if output.stream in ['stdout'] -*)) | |
100 |
((*- block |
|
100 | ((*- block stream_stdout scoped -*)) | |
101 |
((*- |
|
101 | ((*- endblock stream_stdout -*)) | |
102 | ((*- block traceback_line scoped -*))((*- endblock traceback_line -*)) |
|
102 | ((*- elif output.stream in ['stderr'] -*)) | |
103 |
((*- |
|
103 | ((*- block stream_stderr scoped -*)) | |
104 |
((*- endblock |
|
104 | ((*- endblock stream_stderr -*)) | |
105 | ((*- endif -*)) |
|
105 | ((*- endif -*)) | |
|
106 | ((*- endblock stream -*)) | |||
|
107 | ((*- elif output.output_type in ['display_data'] -*)) | |||
|
108 | ((*- block display_data scoped -*)) | |||
|
109 | ((*- block data_priority scoped -*)) | |||
|
110 | ((*- endblock data_priority -*)) | |||
|
111 | ((*- endblock display_data -*)) | |||
|
112 | ((*- elif output.output_type in ['pyerr'] -*)) | |||
|
113 | ((*- block pyerr scoped -*)) | |||
|
114 | ((*- for line in output.traceback -*)) | |||
|
115 | ((*- block traceback_line scoped -*))((*- endblock traceback_line -*)) | |||
106 | ((*- endfor -*)) |
|
116 | ((*- endfor -*)) | |
107 |
((*- endblock |
|
117 | ((*- endblock pyerr -*)) | |
108 |
((*- end |
|
118 | ((*- endif -*)) | |
109 |
((*- end |
|
119 | ((*- endfor -*)) | |
110 |
((*- endblock |
|
120 | ((*- endblock outputs -*)) | |
111 | ((*- elif cell.type in ['markdown'] -*)) |
|
121 | ((*- endblock output_group -*)) | |
112 |
|
122 | ((*- endif -*)) | ||
113 |
|
|
123 | ((*- endblock codecell -*)) | |
114 | ((*- endblock markdowncell -*)) |
|
124 | ||
115 | ((*- elif cell.type in ['heading'] -*)) |
|
125 | ((*- block markdowncell scoped-*)) | |
116 |
|
126 | %TODO: Get this working! | ||
117 |
|
|
127 | ((*- endblock markdowncell -*)) | |
118 | ((*- endblock headingcell -*)) |
|
128 | ||
119 | ((*- elif cell.type in ['raw'] -*)) |
|
129 | ||
120 |
|
130 | ((*- block rawcell scoped-*)) | ||
121 | ((*- block rawcell scoped-*)) |
|
131 | ||
122 |
|
|
132 | ((*- endblock rawcell -*)) | |
123 | ((*- else -*)) |
|
133 | ||
124 |
|
134 | ((*- block unknowncell scoped-*)) | ||
125 | ((*- block unknowncell scoped-*)) |
|
135 | ||
126 |
|
|
136 | ((*- endblock unknowncell -*)) | |
127 | ((*- endif -*)) |
|
|||
128 | ((*- endblock any_cell -*)) |
|
General Comments 0
You need to be logged in to leave comments.
Login now