Show More
@@ -1,45 +1,46 b'' | |||||
1 | {%- extends 'basichtml.tpl' -%} |
|
1 | {%- extends 'basichtml.tpl' -%} | |
2 |
|
2 | |||
3 | {%- block header -%} |
|
3 | {%- block header -%} | |
4 | <html> |
|
4 | <html> | |
5 | <head> |
|
5 | <head> | |
6 | <meta charset="UTF-8"> |
|
6 | <meta charset="UTF-8"> | |
|
7 | <title>[{{nb.metadata.name}}]</title> | |||
7 | {% for css in inlining.css -%} |
|
8 | {% for css in inlining.css -%} | |
8 | <style type="text/css"> |
|
9 | <style type="text/css"> | |
9 | {{css}} |
|
10 | {{css}} | |
10 | </style> |
|
11 | </style> | |
11 | {% endfor %} |
|
12 | {% endfor %} | |
12 | <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"> |
|
13 | <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"> | |
13 |
|
14 | |||
14 | </script> |
|
15 | </script> | |
15 | <script type="text/javascript"> |
|
16 | <script type="text/javascript"> | |
16 | init_mathjax = function() { |
|
17 | init_mathjax = function() { | |
17 | if (window.MathJax) { |
|
18 | if (window.MathJax) { | |
18 | // MathJax loaded |
|
19 | // MathJax loaded | |
19 | MathJax.Hub.Config({ |
|
20 | MathJax.Hub.Config({ | |
20 | tex2jax: { |
|
21 | tex2jax: { | |
21 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], |
|
22 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |
22 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] |
|
23 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | |
23 | }, |
|
24 | }, | |
24 | displayAlign: 'left', // Change this to 'center' to center equations. |
|
25 | displayAlign: 'left', // Change this to 'center' to center equations. | |
25 | "HTML-CSS": { |
|
26 | "HTML-CSS": { | |
26 | styles: {'.MathJax_Display': {"margin": 0}} |
|
27 | styles: {'.MathJax_Display': {"margin": 0}} | |
27 | } |
|
28 | } | |
28 | }); |
|
29 | }); | |
29 | MathJax.Hub.Queue(["Typeset",MathJax.Hub]); |
|
30 | MathJax.Hub.Queue(["Typeset",MathJax.Hub]); | |
30 | } |
|
31 | } | |
31 | } |
|
32 | } | |
32 | init_mathjax(); |
|
33 | init_mathjax(); | |
33 | </script> |
|
34 | </script> | |
34 | </head> |
|
35 | </head> | |
35 | {%- endblock header -%} |
|
36 | {%- endblock header -%} | |
36 |
|
37 | |||
37 |
|
38 | |||
38 | {% block body %} |
|
39 | {% block body %} | |
39 | <body>{{ super() }} |
|
40 | <body>{{ super() }} | |
40 | </body> |
|
41 | </body> | |
41 | {%- endblock body %} |
|
42 | {%- endblock body %} | |
42 |
|
43 | |||
43 |
|
44 | |||
44 | {% block footer %} |
|
45 | {% block footer %} | |
45 | </html>{% endblock footer %} |
|
46 | </html>{% endblock footer %} |
General Comments 0
You need to be logged in to leave comments.
Login now