Show More
@@ -1,54 +1,69 b'' | |||||
1 | {%- extends 'basic.tpl' -%} |
|
1 | {%- extends 'basic.tpl' -%} | |
2 | {% from 'mathjax.tpl' import mathjax %} |
|
2 | {% from 'mathjax.tpl' import mathjax %} | |
3 |
|
3 | |||
4 |
|
4 | |||
5 | {%- block header -%} |
|
5 | {%- block header -%} | |
6 | <!DOCTYPE html> |
|
6 | <!DOCTYPE html> | |
7 | <html> |
|
7 | <html> | |
8 | <head> |
|
8 | <head> | |
9 |
|
9 | |||
10 | <meta charset="utf-8" /> |
|
10 | <meta charset="utf-8" /> | |
11 | <title>{{resources['metadata']['name']}}</title> |
|
11 | <title>{{resources['metadata']['name']}}</title> | |
12 |
|
12 | |||
13 | {% for css in resources.inlining.css -%} |
|
13 | {% for css in resources.inlining.css -%} | |
14 | <style type="text/css"> |
|
14 | <style type="text/css"> | |
15 | {{ css }} |
|
15 | {{ css }} | |
16 | </style> |
|
16 | </style> | |
17 | {% endfor %} |
|
17 | {% endfor %} | |
18 |
|
18 | |||
19 | <style type="text/css"> |
|
19 | <style type="text/css"> | |
20 | /* Overrides of notebook CSS for static HTML export */ |
|
20 | /* Overrides of notebook CSS for static HTML export */ | |
21 | body { |
|
21 | body { | |
22 | overflow: visible; |
|
22 | overflow: visible; | |
23 | padding: 8px; |
|
23 | padding: 8px; | |
24 | } |
|
24 | } | |
25 | .input_area { |
|
25 | .input_area { | |
26 | padding: 0.2em; |
|
26 | padding: 0.2em; | |
27 | } |
|
27 | } | |
28 |
|
28 | |||
29 | pre { |
|
29 | pre { | |
30 | padding: 0.2em; |
|
30 | padding: 0.2em; | |
31 | border: none; |
|
31 | border: none; | |
32 | margin: 0px; |
|
32 | margin: 0px; | |
33 | font-size: 13px; |
|
33 | font-size: 13px; | |
34 | } |
|
34 | } | |
|
35 | ||||
|
36 | @media print { | |||
|
37 | div.cell { | |||
|
38 | display: block; | |||
|
39 | page-break-inside: avoid; | |||
|
40 | } | |||
|
41 | div.output_wrapper { | |||
|
42 | display: block; | |||
|
43 | page-break-inside: avoid; | |||
|
44 | } | |||
|
45 | div.output { | |||
|
46 | display: block; | |||
|
47 | page-break-inside: avoid; | |||
|
48 | } | |||
|
49 | } | |||
35 | </style> |
|
50 | </style> | |
36 |
|
51 | |||
37 | <!-- Custom stylesheet, it must be in the same directory as the html file --> |
|
52 | <!-- Custom stylesheet, it must be in the same directory as the html file --> | |
38 | <link rel="stylesheet" href="custom.css"> |
|
53 | <link rel="stylesheet" href="custom.css"> | |
39 |
|
54 | |||
40 | <!-- Loading mathjax macro --> |
|
55 | <!-- Loading mathjax macro --> | |
41 | {{ mathjax() }} |
|
56 | {{ mathjax() }} | |
42 |
|
57 | |||
43 | </head> |
|
58 | </head> | |
44 | {%- endblock header -%} |
|
59 | {%- endblock header -%} | |
45 |
|
60 | |||
46 | {% block body %} |
|
61 | {% block body %} | |
47 | <body> |
|
62 | <body> | |
48 | {{ super() }} |
|
63 | {{ super() }} | |
49 | </body> |
|
64 | </body> | |
50 | {%- endblock body %} |
|
65 | {%- endblock body %} | |
51 |
|
66 | |||
52 | {% block footer %} |
|
67 | {% block footer %} | |
53 | </html> |
|
68 | </html> | |
54 | {% endblock footer %} |
|
69 | {% endblock footer %} |
General Comments 0
You need to be logged in to leave comments.
Login now