diff --git a/Slides/templates/display_priority.tpl b/Slides/templates/display_priority.tpl new file mode 100644 index 0000000..ec4d58a --- /dev/null +++ b/Slides/templates/display_priority.tpl @@ -0,0 +1,46 @@ +{%- extends 'null.tpl' -%} + +{#display data priority#} + + +{%- block data_priority scoped -%} + {%- for type in output.data | filter_data_type -%} + {%- if type == 'application/pdf' -%} + {%- block data_pdf -%} + {%- endblock -%} + {%- elif type == 'image/svg+xml' -%} + {%- block data_svg -%} + {%- endblock -%} + {%- elif type == 'image/png' -%} + {%- block data_png -%} + {%- endblock -%} + {%- elif type == 'text/html' -%} + {%- block data_html -%} + {%- endblock -%} + {%- elif type == 'text/markdown' -%} + {%- block data_markdown -%} + {%- endblock -%} + {%- elif type == 'image/jpeg' -%} + {%- block data_jpg -%} + {%- endblock -%} + {%- elif type == 'text/plain' -%} + {%- block data_text -%} + {%- endblock -%} + {%- elif type == 'text/latex' -%} + {%- block data_latex -%} + {%- endblock -%} + {%- elif type == 'application/javascript' -%} + {%- block data_javascript -%} + {%- endblock -%} + {%- elif type == 'application/vnd.jupyter.widget-state+json' -%} + {%- block data_widget_state -%} + {%- endblock -%} + {%- elif type == 'application/vnd.jupyter.widget-view+json' -%} + {%- block data_widget_view -%} + {%- endblock -%} + {%- else -%} + {%- block data_other -%} + {%- endblock -%} + {%- endif -%} + {%- endfor -%} +{%- endblock data_priority -%} diff --git a/Slides/templates/mathjax.tpl b/Slides/templates/mathjax.tpl new file mode 100644 index 0000000..9b1d753 --- /dev/null +++ b/Slides/templates/mathjax.tpl @@ -0,0 +1,23 @@ +{%- macro mathjax(url='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML') -%} + + + + + +{%- endmacro %} diff --git a/Slides/templates/mybasic.tpl b/Slides/templates/mybasic.tpl index 984bb94..188156f 100644 --- a/Slides/templates/mybasic.tpl +++ b/Slides/templates/mybasic.tpl @@ -1,253 +1,253 @@ {%- extends 'display_priority.tpl' -%} {% block codecell %}