Show More
@@ -0,0 +1,72 b'' | |||||
|
1 | {%- extends 'html_basic.tpl' -%} | |||
|
2 | ||||
|
3 | ||||
|
4 | {%- block header -%} | |||
|
5 | <!DOCTYPE html> | |||
|
6 | <html> | |||
|
7 | <head> | |||
|
8 | ||||
|
9 | <meta charset="utf-8" /> | |||
|
10 | <title>{{resources['metadata']['name']}}</title> | |||
|
11 | ||||
|
12 | {% for css in resources.inlining.css -%} | |||
|
13 | <style type="text/css"> | |||
|
14 | {{ css }} | |||
|
15 | </style> | |||
|
16 | {% endfor %} | |||
|
17 | ||||
|
18 | <style type="text/css"> | |||
|
19 | /* Overrides of notebook CSS for static HTML export */ | |||
|
20 | body { | |||
|
21 | overflow: visible; | |||
|
22 | padding: 8px; | |||
|
23 | } | |||
|
24 | .input_area { | |||
|
25 | padding: 0.2em; | |||
|
26 | } | |||
|
27 | ||||
|
28 | pre { | |||
|
29 | padding: 0.2em; | |||
|
30 | border: none; | |||
|
31 | margin: 0px; | |||
|
32 | font-size: 13px; | |||
|
33 | } | |||
|
34 | </style> | |||
|
35 | ||||
|
36 | <!-- Custom stylesheet, it must be in the same directory as the html file --> | |||
|
37 | <link rel="stylesheet" href="custom.css"> | |||
|
38 | ||||
|
39 | <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"></script> | |||
|
40 | <script type="text/javascript"> | |||
|
41 | init_mathjax = function() { | |||
|
42 | if (window.MathJax) { | |||
|
43 | // MathJax loaded | |||
|
44 | MathJax.Hub.Config({ | |||
|
45 | tex2jax: { | |||
|
46 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |||
|
47 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | |||
|
48 | }, | |||
|
49 | // Center justify equations in code and markdown cells. Elsewhere | |||
|
50 | // we use CSS to left justify single line equations in code cells. | |||
|
51 | displayAlign: 'center', | |||
|
52 | "HTML-CSS": { | |||
|
53 | styles: {'.MathJax_Display': {"margin": 0}} | |||
|
54 | } | |||
|
55 | }); | |||
|
56 | MathJax.Hub.Queue(["Typeset",MathJax.Hub]); | |||
|
57 | } | |||
|
58 | } | |||
|
59 | init_mathjax(); | |||
|
60 | </script> | |||
|
61 | </head> | |||
|
62 | {%- endblock header -%} | |||
|
63 | ||||
|
64 | {% block body %} | |||
|
65 | <body> | |||
|
66 | {{ super() }} | |||
|
67 | </body> | |||
|
68 | {%- endblock body %} | |||
|
69 | ||||
|
70 | {% block footer %} | |||
|
71 | </html> | |||
|
72 | {% endblock footer %} No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now