##// END OF EJS Templates
Small bugfixes
Small bugfixes

File last commit:

r11086:c137395d
r11736:70fdc33d
Show More
null.tplx
92 lines | 4.4 KiB | text/plain | TextLexer
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 ((= autogenerated file do not edit =))
((=
DO NOT USE THIS AS A BASE WORK,
IF YOU ARE COPY AND PASTING THIS FILE
YOU ARE PROBABLY DOING THINGS WRONG.
Null template, Does nothing except defining a basic structure
Matthias BUSSONNIER
regenerate tex templates
r10222 To layout the different blocks of a notebook.
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608
Matthias BUSSONNIER
regenerate tex templates
r10222 Subtemplates can override blocks to define their custom representation.
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608
Matthias BUSSONNIER
regenerate tex templates
r10222 If one of the block you do overwrite is not a leave block, consider
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 calling super.
((*- block nonLeaveBlock -*))
#add stuff at beginning
((( super() )))
#add stuff at end
((*- endblock nonLeaveBlock -*))
Matthias BUSSONNIER
regenerate tex templates
r10222 consider calling super even if it is a leave block, we might insert more blocks later.
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608
=))
((*- block header -*))
((*- endblock header -*))
((*- block body -*))
((*- for worksheet in nb.worksheets -*))
((*- for cell in worksheet.cells -*))
((*- block any_cell scoped -*))
Jonathan Frederic
Almost have nbconvert working again...
r10630 ((*- if cell.cell_type in ['code'] -*))
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 ((*- block codecell scoped -*))
((*- block input_group -*))
((*- block in_prompt -*))((*- endblock in_prompt -*))
((*- block input -*))((*- endblock input -*))
((*- endblock input_group -*))
Matthias BUSSONNIER
regenerate tex templates
r10222 ((*- if cell.outputs -*))
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 ((*- block output_group -*))
Matthias BUSSONNIER
regenerate tex templates
r10222 ((*- block output_prompt -*))((*- endblock output_prompt -*))
((*- block outputs scoped -*))
((*- for output in cell.outputs -*))
((*- block output scoped -*))
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 ((*- if output.output_type in ['pyout'] -*))
((*- block pyout scoped -*))((*- endblock pyout -*))
((*- elif output.output_type in ['stream'] -*))
((*- block stream scoped -*))
((*- if output.stream in ['stdout'] -*))
((*- block stream_stdout scoped -*))
((*- endblock stream_stdout -*))
((*- elif output.stream in ['stderr'] -*))
((*- block stream_stderr scoped -*))
((*- endblock stream_stderr -*))
((*- endif -*))
((*- endblock stream -*))
((*- elif output.output_type in ['display_data'] -*))
((*- block display_data scoped -*))
((*- block data_priority scoped -*))
((*- endblock data_priority -*))
((*- endblock display_data -*))
((*- elif output.output_type in ['pyerr'] -*))
((*- block pyerr scoped -*))
((*- for line in output.traceback -*))
((*- block traceback_line scoped -*))((*- endblock traceback_line -*))
((*- endfor -*))
((*- endblock pyerr -*))
((*- endif -*))
Matthias BUSSONNIER
regenerate tex templates
r10222 ((*- endblock output -*))
((*- endfor -*))
((*- endblock outputs -*))
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 ((*- endblock output_group -*))
Matthias BUSSONNIER
regenerate tex templates
r10222 ((*- endif -*))
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 ((*- endblock codecell -*))
Jonathan Frederic
Almost have nbconvert working again...
r10630 ((*- elif cell.cell_type in ['markdown'] -*))
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 ((*- block markdowncell scoped-*))
((*- endblock markdowncell -*))
Jonathan Frederic
Almost have nbconvert working again...
r10630 ((*- elif cell.cell_type in ['heading'] -*))
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 ((*- block headingcell scoped-*))
((*- endblock headingcell -*))
Jonathan Frederic
Almost have nbconvert working again...
r10630 ((*- elif cell.cell_type in ['raw'] -*))
Matthias BUSSONNIER
prepare ability to convert template for Tex
r9608 ((*- block rawcell scoped-*))
((*- endblock rawcell -*))
((*- else -*))
((*- block unknowncell scoped-*))
((*- endblock unknowncell -*))
((*- endif -*))
((*- endblock any_cell -*))
((*- endfor -*))
((*- endfor -*))
((*- endblock body -*))
((*- block footer -*))
((*- endblock footer -*))