##// END OF EJS Templates
regenerate tex templates
Matthias BUSSONNIER -
Show More
@@ -1,90 +1,92 b''
1 1 ((= autogenerated file do not edit =))
2 2 ((=
3 3
4 4 DO NOT USE THIS AS A BASE WORK,
5 5 IF YOU ARE COPY AND PASTING THIS FILE
6 6 YOU ARE PROBABLY DOING THINGS WRONG.
7 7
8 8 Null template, Does nothing except defining a basic structure
9 To layout the diferents blocks of a notebook.
9 To layout the different blocks of a notebook.
10 10
11 Subtemplates can Override Blocks to define their custom reresentation.
11 Subtemplates can override blocks to define their custom representation.
12 12
13 If one of the block you do overrite is not a leave block, consider
13 If one of the block you do overwrite is not a leave block, consider
14 14 calling super.
15 15
16 16 ((*- block nonLeaveBlock -*))
17 17 #add stuff at beginning
18 18 ((( super() )))
19 19 #add stuff at end
20 20 ((*- endblock nonLeaveBlock -*))
21 21
22 consider calling super even if block is leave block, we might insert more block later.
22 consider calling super even if it is a leave block, we might insert more blocks later.
23 23
24 24 =))
25 25 ((*- block header -*))
26 26 ((*- endblock header -*))
27 27 ((*- block body -*))
28 28 ((*- for worksheet in nb.worksheets -*))
29 29 ((*- for cell in worksheet.cells -*))
30 30 ((*- block any_cell scoped -*))
31 31 ((*- if cell.type in ['code'] -*))
32 32 ((*- block codecell scoped -*))
33 33 ((*- block input_group -*))
34 34 ((*- block in_prompt -*))((*- endblock in_prompt -*))
35 35 ((*- block input -*))((*- endblock input -*))
36 36 ((*- endblock input_group -*))
37 ((*- if cell.outputs -*))
37 ((*- if cell.outputs -*))
38 38 ((*- block output_group -*))
39 ((*- block output_prompt -*))((*- endblock output_prompt -*))
40 ((*- block outputs -*))
41 ((*- for output in cell.outputs -*))
39 ((*- block output_prompt -*))((*- endblock output_prompt -*))
40 ((*- block outputs scoped -*))
41 ((*- for output in cell.outputs -*))
42 ((*- block output scoped -*))
42 43 ((*- if output.output_type in ['pyout'] -*))
43 44 ((*- block pyout scoped -*))((*- endblock pyout -*))
44 45 ((*- elif output.output_type in ['stream'] -*))
45 46 ((*- block stream scoped -*))
46 47 ((*- if output.stream in ['stdout'] -*))
47 48 ((*- block stream_stdout scoped -*))
48 49 ((*- endblock stream_stdout -*))
49 50 ((*- elif output.stream in ['stderr'] -*))
50 51 ((*- block stream_stderr scoped -*))
51 52 ((*- endblock stream_stderr -*))
52 53 ((*- endif -*))
53 54 ((*- endblock stream -*))
54 55 ((*- elif output.output_type in ['display_data'] -*))
55 56 ((*- block display_data scoped -*))
56 57 ((*- block data_priority scoped -*))
57 58 ((*- endblock data_priority -*))
58 59 ((*- endblock display_data -*))
59 60 ((*- elif output.output_type in ['pyerr'] -*))
60 61 ((*- block pyerr scoped -*))
61 62 ((*- for line in output.traceback -*))
62 63 ((*- block traceback_line scoped -*))((*- endblock traceback_line -*))
63 64 ((*- endfor -*))
64 65 ((*- endblock pyerr -*))
65 66 ((*- endif -*))
66 ((*- endfor -*))
67 ((*- endblock outputs -*))
67 ((*- endblock output -*))
68 ((*- endfor -*))
69 ((*- endblock outputs -*))
68 70 ((*- endblock output_group -*))
69 ((*- endif -*))
71 ((*- endif -*))
70 72 ((*- endblock codecell -*))
71 73 ((*- elif cell.type in ['markdown'] -*))
72 74 ((*- block markdowncell scoped-*))
73 75 ((*- endblock markdowncell -*))
74 76 ((*- elif cell.type in ['heading'] -*))
75 77 ((*- block headingcell scoped-*))
76 78 ((*- endblock headingcell -*))
77 79 ((*- elif cell.type in ['raw'] -*))
78 80 ((*- block rawcell scoped-*))
79 81 ((*- endblock rawcell -*))
80 82 ((*- else -*))
81 83 ((*- block unknowncell scoped-*))
82 84 ((*- endblock unknowncell -*))
83 85 ((*- endif -*))
84 86 ((*- endblock any_cell -*))
85 87 ((*- endfor -*))
86 88 ((*- endfor -*))
87 89 ((*- endblock body -*))
88 90
89 91 ((*- block footer -*))
90 92 ((*- endblock footer -*))
General Comments 0
You need to be logged in to leave comments. Login now