Show More
@@ -1,138 +1,142 | |||||
1 | {%- extends 'display_priority.tpl' -%} |
|
1 | {%- extends 'display_priority.tpl' -%} | |
2 |
|
2 | |||
3 |
|
3 | |||
4 |
|
||||
5 | {% block codecell %} |
|
4 | {% block codecell %} | |
6 | <div class="cell border-box-sizing code_cell vbox"> |
|
5 | <div class="cell border-box-sizing code_cell vbox"> | |
7 |
{{ super() }} |
|
6 | {{ super() }} | |
|
7 | </div> | |||
8 | {%- endblock codecell %} |
|
8 | {%- endblock codecell %} | |
9 |
|
9 | |||
10 | {% block input_group -%} |
|
10 | {% block input_group -%} | |
11 | <div class="input hbox"> |
|
11 | <div class="input hbox"> | |
12 | {{super()}} |
|
12 | {{ super() }} | |
13 | </div> |
|
13 | </div> | |
14 | {% endblock input_group %} |
|
14 | {% endblock input_group %} | |
15 |
|
15 | |||
16 | {% block output_group %} |
|
16 | {% block output_group %} | |
17 | <div class="vbox output_wrapper"> |
|
17 | <div class="vbox output_wrapper"> | |
18 | <div class="output vbox"> |
|
18 | <div class="output vbox"> | |
19 | {{ super() }} |
|
19 | {{ super() }} | |
20 | </div> |
|
20 | </div> | |
21 | </div> |
|
21 | </div> | |
22 | {% endblock output_group %} |
|
22 | {% endblock output_group %} | |
23 |
|
23 | |||
24 | {% block in_prompt -%} |
|
24 | {% block in_prompt -%} | |
25 |
<div class="prompt input_prompt"> |
|
25 | <div class="prompt input_prompt"> | |
|
26 | In [{{ cell.prompt_number }}]: | |||
|
27 | </div> | |||
26 | {%- endblock in_prompt %} |
|
28 | {%- endblock in_prompt %} | |
27 |
|
29 | |||
28 | {# |
|
30 | {# | |
29 | output_prompt doesn't do anything in HTML, |
|
31 | output_prompt doesn't do anything in HTML, | |
30 | because there is a prompt div in each output area (see output block) |
|
32 | because there is a prompt div in each output area (see output block) | |
31 | #} |
|
33 | #} | |
32 | {% block output_prompt %} |
|
34 | {% block output_prompt %} | |
33 | {% endblock output_prompt %} |
|
35 | {% endblock output_prompt %} | |
34 |
|
36 | |||
35 | {% block input %} |
|
37 | {% block input %} | |
36 | <div class="input_area box-flex1"> |
|
38 | <div class="input_area box-flex1"> | |
37 | {{cell.input | highlight2html }} |
|
39 | {{ cell.input | highlight2html }} | |
38 | </div> |
|
40 | </div> | |
39 | {%- endblock input %} |
|
41 | {%- endblock input %} | |
40 |
|
42 | |||
41 | {% block output %} |
|
43 | {% block output %} | |
42 | <div class="hbox output_area"> |
|
44 | <div class="hbox output_area"> | |
43 | {%- if output.output_type == 'pyout' -%} |
|
45 | {%- if output.output_type == 'pyout' -%} | |
44 | <div class="prompt output_prompt"> |
|
46 | <div class="prompt output_prompt"> | |
45 | Out[{{cell.prompt_number}}]: |
|
47 | Out[{{ cell.prompt_number }}]: | |
46 | {%- else -%} |
|
48 | {%- else -%} | |
47 | <div class="prompt"> |
|
49 | <div class="prompt"> | |
48 | {%- endif -%} |
|
50 | {%- endif -%} | |
49 | </div> |
|
51 | </div> | |
50 | {{ super() }} |
|
52 | {{ super() }} | |
51 | </div> |
|
53 | </div> | |
52 | {% endblock output %} |
|
54 | {% endblock output %} | |
53 |
|
55 | |||
54 | {% block markdowncell scoped %} |
|
56 | {% block markdowncell scoped %} | |
55 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
57 | <div class="text_cell_render border-box-sizing rendered_html"> | |
56 | {{ cell.source | strip_math_space | markdown2html | strip_files_prefix}} |
|
58 | {{ cell.source | strip_math_space | markdown2html | strip_files_prefix }} | |
57 | </div> |
|
59 | </div> | |
58 | {%- endblock markdowncell %} |
|
60 | {%- endblock markdowncell %} | |
59 |
|
61 | |||
60 | {% block headingcell scoped %} |
|
62 | {% block headingcell scoped %} | |
61 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
63 | <div class="text_cell_render border-box-sizing rendered_html"> | |
62 |
|
|
64 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | strip_math_space | markdown2html | strip_files_prefix | add_anchor }} | |
63 | </div> |
|
65 | </div> | |
64 | {% endblock headingcell %} |
|
66 | {% endblock headingcell %} | |
65 |
|
67 | |||
66 | {% block rawcell scoped %} |
|
68 | {% block rawcell scoped %} | |
67 | {{ cell.source }} |
|
69 | {{ cell.source }} | |
68 | {% endblock rawcell %} |
|
70 | {% endblock rawcell %} | |
69 |
|
71 | |||
70 | {% block unknowncell scoped %} |
|
72 | {% block unknowncell scoped %} | |
71 | unknown type {{cell.type}} |
|
73 | unknown type {{ cell.type }} | |
72 | {% endblock unknowncell %} |
|
74 | {% endblock unknowncell %} | |
73 |
|
75 | |||
74 |
|
||||
75 | {% block pyout -%} |
|
76 | {% block pyout -%} | |
76 | <div class="box-flex1 output_subarea output_pyout"> |
|
77 | <div class="box-flex1 output_subarea output_pyout"> | |
77 |
{% block data_priority scoped %} |
|
78 | {% block data_priority scoped %} | |
|
79 | {{ super() }} | |||
|
80 | {% endblock %} | |||
78 | </div> |
|
81 | </div> | |
79 | {%- endblock pyout %} |
|
82 | {%- endblock pyout %} | |
80 |
|
83 | |||
81 | {% block stream_stdout -%} |
|
84 | {% block stream_stdout -%} | |
82 | <div class="box-flex1 output_subarea output_stream output_stdout"> |
|
85 | <div class="box-flex1 output_subarea output_stream output_stdout"> | |
83 | <pre>{{output.text |ansi2html}}</pre> |
|
86 | <pre> | |
|
87 | {{ output.text | ansi2html }} | |||
|
88 | </pre> | |||
84 | </div> |
|
89 | </div> | |
85 | {%- endblock stream_stdout %} |
|
90 | {%- endblock stream_stdout %} | |
86 |
|
91 | |||
87 | {% block stream_stderr -%} |
|
92 | {% block stream_stderr -%} | |
88 | <div class="box-flex1 output_subarea output_stream output_stderr"> |
|
93 | <div class="box-flex1 output_subarea output_stream output_stderr"> | |
89 | <pre>{{output.text |ansi2html}}</pre> |
|
94 | <pre> | |
|
95 | {{ output.text | ansi2html }} | |||
|
96 | </pre> | |||
90 | </div> |
|
97 | </div> | |
91 | {%- endblock stream_stderr %} |
|
98 | {%- endblock stream_stderr %} | |
92 |
|
99 | |||
93 | {% block data_svg -%} |
|
100 | {% block data_svg -%} | |
94 | {{output.svg}} |
|
101 | {{ output.svg }} | |
95 | {%- endblock data_svg %} |
|
102 | {%- endblock data_svg %} | |
96 |
|
103 | |||
97 |
|
||||
98 | {% block data_html -%} |
|
104 | {% block data_html -%} | |
99 | <div class="output_html rendered_html"> |
|
105 | <div class="output_html rendered_html"> | |
100 | {{output.html}} |
|
106 | {{ output.html }} | |
101 | </div> |
|
107 | </div> | |
102 | {%- endblock data_html %} |
|
108 | {%- endblock data_html %} | |
103 |
|
109 | |||
104 | {% block data_png %} |
|
110 | {% block data_png %} | |
105 | <img src="data:image/png;base64,{{output.png}}"> |
|
111 | <img src="data:image/png;base64,{{ output.png }}"> | |
106 | {%- endblock data_png %} |
|
112 | {%- endblock data_png %} | |
107 |
|
113 | |||
108 |
|
||||
109 | {% block data_jpg %} |
|
114 | {% block data_jpg %} | |
110 | <img src="data:image/jpeg;base64,{{output.jpeg}}"> |
|
115 | <img src="data:image/jpeg;base64,{{ output.jpeg }}"> | |
111 | {%- endblock data_jpg %} |
|
116 | {%- endblock data_jpg %} | |
112 |
|
117 | |||
113 |
|
||||
114 | {% block data_latex %} |
|
118 | {% block data_latex %} | |
115 | {{output.latex}} |
|
119 | {{ output.latex }} | |
116 | {%- endblock data_latex %} |
|
120 | {%- endblock data_latex %} | |
117 |
|
121 | |||
118 | {% block pyerr -%} |
|
122 | {% block pyerr -%} | |
119 | <div class="box-flex1 output_subarea output_pyerr"> |
|
123 | <div class="box-flex1 output_subarea output_pyerr"> | |
120 | <pre>{{super()}}</pre> |
|
124 | <pre>{{ super() }}</pre> | |
121 | </div> |
|
125 | </div> | |
122 | {%- endblock pyerr %} |
|
126 | {%- endblock pyerr %} | |
123 |
|
127 | |||
124 | {%- block traceback_line %} |
|
128 | {%- block traceback_line %} | |
125 | {{line| ansi2html}} |
|
129 | {{ line | ansi2html }} | |
126 | {%- endblock traceback_line %} |
|
130 | {%- endblock traceback_line %} | |
127 |
|
131 | |||
128 |
|
||||
129 | {%- block data_text %} |
|
132 | {%- block data_text %} | |
130 | <pre>{{output.text | ansi2html}}</pre> |
|
133 | <pre> | |
|
134 | {{ output.text | ansi2html }} | |||
|
135 | </pre> | |||
131 | {%- endblock -%} |
|
136 | {%- endblock -%} | |
132 |
|
137 | |||
133 |
|
||||
134 | {%- block display_data scoped -%} |
|
138 | {%- block display_data scoped -%} | |
135 | <div class="box-flex1 output_subarea output_display_data"> |
|
139 | <div class="box-flex1 output_subarea output_display_data"> | |
136 | {{super()}} |
|
140 | {{ super() }} | |
137 | </div> |
|
141 | </div> | |
138 |
{%- endblock display_data -%} |
|
142 | {%- endblock display_data -%} |
@@ -1,68 +1,68 | |||||
1 | {%- extends 'html_basic.tpl' -%} |
|
1 | {%- extends 'html_basic.tpl' -%} | |
2 |
|
2 | |||
3 | {%- block header -%}<!DOCTYPE html> |
|
3 | ||
|
4 | {%- block header -%} | |||
|
5 | <!DOCTYPE html> | |||
4 | <html> |
|
6 | <html> | |
5 | <head> |
|
7 | <head> | |
6 | <meta charset="UTF-8"> |
|
8 | <meta charset="UTF-8"> | |
7 | <title>[{{nb.metadata.name}}]</title> |
|
9 | <title>[{{nb.metadata.name}}]</title> | |
8 | {% for css in resources.inlining.css -%} |
|
10 | {% for css in resources.inlining.css -%} | |
9 | <style type="text/css"> |
|
11 | <style type="text/css"> | |
10 | {{css}} |
|
12 | {{ css }} | |
11 | </style> |
|
13 | </style> | |
12 | {% endfor %} |
|
14 | {% endfor %} | |
13 |
|
15 | |||
14 | <style type="text/css"> |
|
16 | <style type="text/css"> | |
15 | /* Overrides of notebook CSS for static HTML export */ |
|
17 | /* Overrides of notebook CSS for static HTML export */ | |
16 | body { |
|
18 | body { | |
17 | overflow: visible; |
|
19 | overflow: visible; | |
18 | padding: 8px; |
|
20 | padding: 8px; | |
19 | } |
|
21 | } | |
20 | .input_area { |
|
22 | .input_area { | |
21 | padding: 0.2em; |
|
23 | padding: 0.2em; | |
22 | } |
|
24 | } | |
23 |
|
25 | |||
24 | pre { |
|
26 | pre { | |
25 | padding: 0.2em; |
|
27 | padding: 0.2em; | |
26 | border: none; |
|
28 | border: none; | |
27 | margin: 0px; |
|
29 | margin: 0px; | |
28 | font-size: 13px; |
|
30 | font-size: 13px; | |
29 | } |
|
31 | } | |
30 | </style> |
|
32 | </style> | |
31 |
|
33 | |||
32 | <!-- Custom stylesheet, it must be in the same directory as the html file --> |
|
34 | <!-- Custom stylesheet, it must be in the same directory as the html file --> | |
33 | <link rel="stylesheet" href="custom.css"> |
|
35 | <link rel="stylesheet" href="custom.css"> | |
34 |
|
36 | |||
35 | <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"> |
|
37 | <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"></script> | |
36 |
|
||||
37 | </script> |
|
|||
38 | <script type="text/javascript"> |
|
38 | <script type="text/javascript"> | |
39 | init_mathjax = function() { |
|
39 | init_mathjax = function() { | |
40 | if (window.MathJax) { |
|
40 | if (window.MathJax) { | |
41 | // MathJax loaded |
|
41 | // MathJax loaded | |
42 | MathJax.Hub.Config({ |
|
42 | MathJax.Hub.Config({ | |
43 | tex2jax: { |
|
43 | tex2jax: { | |
44 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], |
|
44 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |
45 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] |
|
45 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | |
46 | }, |
|
46 | }, | |
47 | displayAlign: 'left', // Change this to 'center' to center equations. |
|
47 | displayAlign: 'left', // Change this to 'center' to center equations. | |
48 | "HTML-CSS": { |
|
48 | "HTML-CSS": { | |
49 | styles: {'.MathJax_Display': {"margin": 0}} |
|
49 | styles: {'.MathJax_Display': {"margin": 0}} | |
50 | } |
|
50 | } | |
51 | }); |
|
51 | }); | |
52 | MathJax.Hub.Queue(["Typeset",MathJax.Hub]); |
|
52 | MathJax.Hub.Queue(["Typeset",MathJax.Hub]); | |
53 | } |
|
53 | } | |
54 | } |
|
54 | } | |
55 | init_mathjax(); |
|
55 | init_mathjax(); | |
56 | </script> |
|
56 | </script> | |
57 | </head> |
|
57 | </head> | |
58 | {%- endblock header -%} |
|
58 | {%- endblock header -%} | |
59 |
|
59 | |||
60 |
|
||||
61 | {% block body %} |
|
60 | {% block body %} | |
62 | <body>{{ super() }} |
|
61 | <body> | |
|
62 | {{ super() }} | |||
63 | </body> |
|
63 | </body> | |
64 | {%- endblock body %} |
|
64 | {%- endblock body %} | |
65 |
|
65 | |||
66 |
|
||||
67 | {% block footer %} |
|
66 | {% block footer %} | |
68 | </html>{% endblock footer %} |
|
67 | </html> | |
|
68 | {% endblock footer %} No newline at end of file |
@@ -1,25 +1,29 | |||||
1 | ((============================================================================ |
|
1 | ((============================================================================ | |
2 | NBConvert Sphinx-Latex HowTo Template |
|
2 | NBConvert Sphinx-Latex HowTo Template | |
3 |
|
3 | |||
4 | Purpose: Allow export of PDF friendly Latex inspired by Sphinx HowTo |
|
4 | Purpose: Allow export of PDF friendly Latex inspired by Sphinx HowTo | |
5 | document style. Most of the is derived directly from Sphinx source. |
|
5 | document style. Most of the is derived directly from Sphinx source. | |
6 |
|
6 | |||
7 | Inheritance: null>display_priority>sphinx |
|
7 | Inheritance: null>display_priority>sphinx | |
8 |
|
8 | |||
9 | ==========================================================================)) |
|
9 | ==========================================================================)) | |
10 |
|
10 | |||
11 | ((*- extends 'sphinx.tplx' -*)) |
|
11 | ((*- extends 'sphinx.tplx' -*)) | |
12 |
|
12 | |||
|
13 | ||||
|
14 | ||||
|
15 | ||||
|
16 | ||||
13 | ((* set parentdocumentclass = 'article' *)) |
|
17 | ((* set parentdocumentclass = 'article' *)) | |
14 | ((* set documentclass = 'howto' *)) |
|
18 | ((* set documentclass = 'howto' *)) | |
15 |
|
19 | |||
16 | ((* block h1 -*))part((* endblock h1 -*)) |
|
20 | ((* block h1 -*))part((* endblock h1 -*)) | |
17 | ((* block h2 -*))section((* endblock h2 -*)) |
|
21 | ((* block h2 -*))section((* endblock h2 -*)) | |
18 | ((* block h3 -*))subsection((* endblock h3 -*)) |
|
22 | ((* block h3 -*))subsection((* endblock h3 -*)) | |
19 | ((* block h4 -*))subsubsection((* endblock h4 -*)) |
|
23 | ((* block h4 -*))subsubsection((* endblock h4 -*)) | |
20 | ((* block h5 -*))paragraph((* endblock h5 -*)) |
|
24 | ((* block h5 -*))paragraph((* endblock h5 -*)) | |
21 | ((* block h6 -*))subparagraph((* endblock h6 -*)) |
|
25 | ((* block h6 -*))subparagraph((* endblock h6 -*)) | |
22 |
|
26 | |||
23 | % Diasble table of contents for howto |
|
27 | % Diasble table of contents for howto | |
24 | ((* block toc *)) |
|
28 | ((* block toc *)) | |
25 | ((* endblock toc *)) |
|
29 | ((* endblock toc *)) |
@@ -1,260 +1,269 | |||||
1 | ((*- extends 'display_priority.tplx' -*)) |
|
1 | ((*- extends 'display_priority.tplx' -*)) | |
2 |
|
2 | |||
|
3 | ||||
3 | \nonstopmode |
|
4 | \nonstopmode | |
4 |
|
5 | |||
5 |
((* block in_prompt *)) |
|
6 | ((* block in_prompt *)) | |
|
7 | ((* endblock in_prompt *)) | |||
6 |
|
8 | |||
7 |
((* block output_prompt *)) |
|
9 | ((* block output_prompt *)) | |
|
10 | ((* endblock output_prompt *)) | |||
8 |
|
11 | |||
9 | ((* block codecell *))\begin{codecell}((( super() ))) |
|
12 | ((* block codecell *)) | |
|
13 | \begin{codecell} | |||
|
14 | ((( super() ))) | |||
10 | \end{codecell} |
|
15 | \end{codecell} | |
11 | ((* endblock *)) |
|
16 | ((* endblock *)) | |
12 |
|
17 | |||
13 | ((* block input *)) |
|
18 | ((* block input *)) | |
14 | \begin{codeinput} |
|
19 | \begin{codeinput} | |
15 | \begin{lstlisting} |
|
20 | \begin{lstlisting} | |
16 | ((( cell.input ))) |
|
21 | ((( cell.input ))) | |
17 | \end{lstlisting} |
|
22 | \end{lstlisting} | |
18 | \end{codeinput} |
|
23 | \end{codeinput} | |
19 | ((* endblock input *)) |
|
24 | ((* endblock input *)) | |
20 |
|
25 | |||
21 |
|
||||
22 | ((= Those Two are for error displaying |
|
26 | ((= Those Two are for error displaying | |
23 | even if the first one seem to do nothing, |
|
27 | even if the first one seem to do nothing, | |
24 | it introduces a new line |
|
28 | it introduces a new line | |
25 |
|
||||
26 | =)) |
|
29 | =)) | |
|
30 | ||||
27 | ((* block pyerr *)) |
|
31 | ((* block pyerr *)) | |
28 | \begin{traceback} |
|
32 | \begin{traceback} | |
29 |
\begin{verbatim} |
|
33 | \begin{verbatim} | |
|
34 | ((( super() ))) | |||
30 | \end{verbatim} |
|
35 | \end{verbatim} | |
31 | \end{traceback} |
|
36 | \end{traceback} | |
32 | ((* endblock pyerr *)) |
|
37 | ((* endblock pyerr *)) | |
33 |
|
38 | |||
34 | ((* block traceback_line *)) |
|
39 | ((* block traceback_line *)) | |
35 |
((( line |indent| strip_ansi ))) |
|
40 | ((( line | indent | strip_ansi ))) | |
|
41 | ((* endblock traceback_line *)) | |||
36 | ((= .... =)) |
|
42 | ((= .... =)) | |
37 |
|
43 | |||
38 |
|
||||
39 | ((*- block output_group -*)) |
|
44 | ((*- block output_group -*)) | |
40 | \begin{codeoutput} |
|
45 | \begin{codeoutput} | |
41 | ((( super() ))) |
|
46 | ((( super() ))) | |
42 |
\end{codeoutput} |
|
47 | \end{codeoutput} | |
|
48 | ((* endblock *)) | |||
43 |
|
49 | |||
44 | ((*- block data_png -*)) |
|
50 | ((*- block data_png -*)) | |
45 | \begin{center} |
|
51 | \begin{center} | |
46 | \includegraphics[max size={0.7\textwidth}{0.9\textheight}]{(((output.png_filename)))} |
|
52 | \includegraphics[max size={0.7\textwidth}{0.9\textheight}]{((( output.png_filename )))} | |
47 | \par |
|
53 | \par | |
48 | \end{center} |
|
54 | \end{center} | |
49 | ((*- endblock -*)) |
|
55 | ((*- endblock -*)) | |
50 |
|
56 | |||
51 | ((*- block data_jpg -*)) |
|
57 | ((*- block data_jpg -*)) | |
52 | \begin{center} |
|
58 | \begin{center} | |
53 | \includegraphics[max size={0.7\textwidth}{0.9\textheight}]{(((output.jpeg_filename)))} |
|
59 | \includegraphics[max size={0.7\textwidth}{0.9\textheight}]{((( output.jpeg_filename )))} | |
54 | \par |
|
60 | \par | |
55 | \end{center} |
|
61 | \end{center} | |
56 | ((*- endblock -*)) |
|
62 | ((*- endblock -*)) | |
57 |
|
63 | |||
58 | ((*- block data_svg -*)) |
|
64 | ((*- block data_svg -*)) | |
59 | \begin{center} |
|
65 | \begin{center} | |
60 | \includegraphics[width=0.7\textwidth]{(((output.svg_filename)))} |
|
66 | \includegraphics[width=0.7\textwidth]{((( output.svg_filename )))} | |
61 | \par |
|
67 | \par | |
62 | \end{center} |
|
68 | \end{center} | |
63 | ((*- endblock -*)) |
|
69 | ((*- endblock -*)) | |
64 |
|
70 | |||
65 | ((*- block data_pdf -*)) |
|
71 | ((*- block data_pdf -*)) | |
66 | \begin{center} |
|
72 | \begin{center} | |
67 | \includegraphics[width=0.7\textwidth]{(((output.pdf_filename)))} |
|
73 | \includegraphics[width=0.7\textwidth]{((( output.pdf_filename )))} | |
68 | \par |
|
74 | \par | |
69 | \end{center} |
|
75 | \end{center} | |
70 | ((*- endblock -*)) |
|
76 | ((*- endblock -*)) | |
71 |
|
77 | |||
72 | ((* block pyout *)) |
|
78 | ((* block pyout *)) | |
73 |
((* block data_priority scoped *)) |
|
79 | ((* block data_priority scoped *)) | |
|
80 | ((( super() ))) | |||
|
81 | ((* endblock *)) | |||
74 | ((* endblock pyout *)) |
|
82 | ((* endblock pyout *)) | |
75 |
|
83 | |||
76 | ((* block data_text *)) |
|
84 | ((* block data_text *)) | |
77 | \begin{verbatim} |
|
85 | \begin{verbatim} | |
78 | ((( output.text ))) |
|
86 | ((( output.text ))) | |
79 | \end{verbatim} |
|
87 | \end{verbatim} | |
80 | ((* endblock *)) |
|
88 | ((* endblock *)) | |
81 |
|
89 | |||
82 | ((* block data_latex -*)) |
|
90 | ((* block data_latex -*)) | |
83 | ((*- if output.latex.startswith('$'): -*)) \begin{equation*} |
|
91 | ((*- if output.latex.startswith('$'): -*)) \begin{equation*} | |
84 | ((( output.latex | strip_dollars))) |
|
92 | ((( output.latex | strip_dollars ))) | |
85 | \end{equation*} |
|
93 | \end{equation*} | |
86 | ((*- else -*)) ((( output.latex ))) ((*- endif *)) |
|
94 | ((*- else -*)) | |
|
95 | ((( output.latex ))) | |||
|
96 | ((*- endif *)) | |||
87 | ((* endblock *)) |
|
97 | ((* endblock *)) | |
88 |
|
98 | |||
89 | ((* block stream *)) |
|
99 | ((* block stream *)) | |
90 | \begin{Verbatim}[commandchars=\\\{\}] |
|
100 | \begin{Verbatim}[commandchars=\\\{\}] | |
91 | ((( output.text | ansi2latex))) |
|
101 | ((( output.text | ansi2latex ))) | |
92 | \end{Verbatim} |
|
102 | \end{Verbatim} | |
93 | ((* endblock stream *)) |
|
103 | ((* endblock stream *)) | |
94 |
|
104 | |||
95 |
((* block markdowncell scoped *)) |
|
105 | ((* block markdowncell scoped *)) | |
|
106 | ((( cell.source | markdown2latex ))) | |||
96 | ((* endblock markdowncell *)) |
|
107 | ((* endblock markdowncell *)) | |
97 |
|
108 | |||
98 | ((* block headingcell scoped -*)) |
|
109 | ((* block headingcell scoped -*)) | |
99 |
|
|
110 | ((( ('#' * cell.level + cell.source) | replace('\n', ' ') | markdown2latex ))) | |
100 | ((* endblock headingcell *)) |
|
111 | ((* endblock headingcell *)) | |
101 |
|
112 | |||
102 | ((* block rawcell scoped *)) |
|
113 | ((* block rawcell scoped *)) | |
103 | ((( cell.source | comment_lines ))) |
|
114 | ((( cell.source | comment_lines ))) | |
104 | ((* endblock rawcell *)) |
|
115 | ((* endblock rawcell *)) | |
105 |
|
116 | |||
106 | ((* block unknowncell scoped *)) |
|
117 | ((* block unknowncell scoped *)) | |
107 | unknown type (((cell.type))) |
|
118 | unknown type ((( cell.type ))) | |
108 | ((* endblock unknowncell *)) |
|
119 | ((* endblock unknowncell *)) | |
109 |
|
120 | |||
110 |
|
||||
111 |
|
||||
112 | ((* block body *)) |
|
121 | ((* block body *)) | |
113 |
|
122 | |||
114 | ((* block bodyBegin *)) |
|
123 | ((* block bodyBegin *)) | |
115 | \begin{document} |
|
124 | \begin{document} | |
116 | ((* endblock bodyBegin *)) |
|
125 | ((* endblock bodyBegin *)) | |
117 |
|
126 | |||
118 | ((( super() ))) |
|
127 | ((( super() ))) | |
119 |
|
128 | |||
120 | ((* block bodyEnd *)) |
|
129 | ((* block bodyEnd *)) | |
121 | \end{document} |
|
130 | \end{document} | |
122 | ((* endblock bodyEnd *)) |
|
131 | ((* endblock bodyEnd *)) | |
123 | ((* endblock body *)) |
|
132 | ((* endblock body *)) | |
124 |
|
133 | |||
125 | ((* block header *)) |
|
134 | ((* block header *)) | |
126 | %% This file was auto-generated by IPython. |
|
135 | %% This file was auto-generated by IPython. | |
127 | %% Conversion from the original notebook file: |
|
136 | %% Conversion from the original notebook file: | |
128 | %% |
|
137 | %% | |
129 | \documentclass[11pt,english]{article} |
|
138 | \documentclass[11pt,english]{article} | |
130 |
|
139 | |||
131 | %% This is the automatic preamble used by IPython. Note that it does *not* |
|
140 | %% This is the automatic preamble used by IPython. Note that it does *not* | |
132 | %% include a documentclass declaration, that is added at runtime to the overall |
|
141 | %% include a documentclass declaration, that is added at runtime to the overall | |
133 | %% document. |
|
142 | %% document. | |
134 |
|
143 | |||
135 | \usepackage{amsmath} |
|
144 | \usepackage{amsmath} | |
136 | \usepackage{amssymb} |
|
145 | \usepackage{amssymb} | |
137 | \usepackage{graphicx} |
|
146 | \usepackage{graphicx} | |
138 | \usepackage{ucs} |
|
147 | \usepackage{ucs} | |
139 | \usepackage[utf8x]{inputenc} |
|
148 | \usepackage[utf8x]{inputenc} | |
140 |
|
149 | |||
141 | % Scale down larger images |
|
150 | % Scale down larger images | |
142 | \usepackage[export]{adjustbox} |
|
151 | \usepackage[export]{adjustbox} | |
143 |
|
152 | |||
144 | %fancy verbatim |
|
153 | %fancy verbatim | |
145 | \usepackage{fancyvrb} |
|
154 | \usepackage{fancyvrb} | |
146 | % needed for markdown enumerations to work |
|
155 | % needed for markdown enumerations to work | |
147 | \usepackage{enumerate} |
|
156 | \usepackage{enumerate} | |
148 |
|
157 | |||
149 | % Slightly bigger margins than the latex defaults |
|
158 | % Slightly bigger margins than the latex defaults | |
150 | \usepackage{geometry} |
|
159 | \usepackage{geometry} | |
151 | \geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=2.5cm,rmargin=2.5cm} |
|
160 | \geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=2.5cm,rmargin=2.5cm} | |
152 |
|
161 | |||
153 | % Define a few colors for use in code, links and cell shading |
|
162 | % Define a few colors for use in code, links and cell shading | |
154 | \usepackage{color} |
|
163 | \usepackage{color} | |
155 | \definecolor{orange}{cmyk}{0,0.4,0.8,0.2} |
|
164 | \definecolor{orange}{cmyk}{0,0.4,0.8,0.2} | |
156 | \definecolor{darkorange}{rgb}{.71,0.21,0.01} |
|
165 | \definecolor{darkorange}{rgb}{.71,0.21,0.01} | |
157 | \definecolor{darkgreen}{rgb}{.12,.54,.11} |
|
166 | \definecolor{darkgreen}{rgb}{.12,.54,.11} | |
158 | \definecolor{myteal}{rgb}{.26, .44, .56} |
|
167 | \definecolor{myteal}{rgb}{.26, .44, .56} | |
159 | \definecolor{gray}{gray}{0.45} |
|
168 | \definecolor{gray}{gray}{0.45} | |
160 | \definecolor{lightgray}{gray}{.95} |
|
169 | \definecolor{lightgray}{gray}{.95} | |
161 | \definecolor{mediumgray}{gray}{.8} |
|
170 | \definecolor{mediumgray}{gray}{.8} | |
162 | \definecolor{inputbackground}{rgb}{.95, .95, .85} |
|
171 | \definecolor{inputbackground}{rgb}{.95, .95, .85} | |
163 | \definecolor{outputbackground}{rgb}{.95, .95, .95} |
|
172 | \definecolor{outputbackground}{rgb}{.95, .95, .95} | |
164 | \definecolor{traceback}{rgb}{1, .95, .95} |
|
173 | \definecolor{traceback}{rgb}{1, .95, .95} | |
165 |
|
174 | |||
166 | % new ansi colors |
|
175 | % new ansi colors | |
167 | \definecolor{brown}{rgb}{0.54,0.27,0.07} |
|
176 | \definecolor{brown}{rgb}{0.54,0.27,0.07} | |
168 | \definecolor{purple}{rgb}{0.5,0.0,0.5} |
|
177 | \definecolor{purple}{rgb}{0.5,0.0,0.5} | |
169 | \definecolor{darkgray}{gray}{0.25} |
|
178 | \definecolor{darkgray}{gray}{0.25} | |
170 | \definecolor{lightred}{rgb}{1.0,0.39,0.28} |
|
179 | \definecolor{lightred}{rgb}{1.0,0.39,0.28} | |
171 | \definecolor{lightgreen}{rgb}{0.48,0.99,0.0} |
|
180 | \definecolor{lightgreen}{rgb}{0.48,0.99,0.0} | |
172 | \definecolor{lightblue}{rgb}{0.53,0.81,0.92} |
|
181 | \definecolor{lightblue}{rgb}{0.53,0.81,0.92} | |
173 | \definecolor{lightpurple}{rgb}{0.87,0.63,0.87} |
|
182 | \definecolor{lightpurple}{rgb}{0.87,0.63,0.87} | |
174 | \definecolor{lightcyan}{rgb}{0.5,1.0,0.83} |
|
183 | \definecolor{lightcyan}{rgb}{0.5,1.0,0.83} | |
175 |
|
184 | |||
176 | % Framed environments for code cells (inputs, outputs, errors, ...). The |
|
185 | % Framed environments for code cells (inputs, outputs, errors, ...). The | |
177 | % various uses of \unskip (or not) at the end were fine-tuned by hand, so don't |
|
186 | % various uses of \unskip (or not) at the end were fine-tuned by hand, so don't | |
178 | % randomly change them unless you're sure of the effect it will have. |
|
187 | % randomly change them unless you're sure of the effect it will have. | |
179 | \usepackage{framed} |
|
188 | \usepackage{framed} | |
180 |
|
189 | |||
181 | % remove extraneous vertical space in boxes |
|
190 | % remove extraneous vertical space in boxes | |
182 | \setlength\fboxsep{0pt} |
|
191 | \setlength\fboxsep{0pt} | |
183 |
|
192 | |||
184 | % codecell is the whole input+output set of blocks that a Code cell can |
|
193 | % codecell is the whole input+output set of blocks that a Code cell can | |
185 | % generate. |
|
194 | % generate. | |
186 |
|
195 | |||
187 | % TODO: unfortunately, it seems that using a framed codecell environment breaks |
|
196 | % TODO: unfortunately, it seems that using a framed codecell environment breaks | |
188 | % the ability of the frames inside of it to be broken across pages. This |
|
197 | % the ability of the frames inside of it to be broken across pages. This | |
189 | % causes at least the problem of having lots of empty space at the bottom of |
|
198 | % causes at least the problem of having lots of empty space at the bottom of | |
190 | % pages as new frames are moved to the next page, and if a single frame is too |
|
199 | % pages as new frames are moved to the next page, and if a single frame is too | |
191 | % long to fit on a page, will completely stop latex from compiling the |
|
200 | % long to fit on a page, will completely stop latex from compiling the | |
192 | % document. So unless we figure out a solution to this, we'll have to instead |
|
201 | % document. So unless we figure out a solution to this, we'll have to instead | |
193 | % leave the codecell env. as empty. I'm keeping the original codecell |
|
202 | % leave the codecell env. as empty. I'm keeping the original codecell | |
194 | % definition here (a thin vertical bar) for reference, in case we find a |
|
203 | % definition here (a thin vertical bar) for reference, in case we find a | |
195 | % solution to the page break issue. |
|
204 | % solution to the page break issue. | |
196 |
|
205 | |||
197 | %% \newenvironment{codecell}{% |
|
206 | %% \newenvironment{codecell}{% | |
198 | %% \def\FrameCommand{\color{mediumgray} \vrule width 1pt \hspace{5pt}}% |
|
207 | %% \def\FrameCommand{\color{mediumgray} \vrule width 1pt \hspace{5pt}}% | |
199 | %% \MakeFramed{\vspace{-0.5em}}} |
|
208 | %% \MakeFramed{\vspace{-0.5em}}} | |
200 | %% {\unskip\endMakeFramed} |
|
209 | %% {\unskip\endMakeFramed} | |
201 |
|
210 | |||
202 | % For now, make this a no-op... |
|
211 | % For now, make this a no-op... | |
203 | \newenvironment{codecell}{} |
|
212 | \newenvironment{codecell}{} | |
204 |
|
213 | |||
205 | \newenvironment{codeinput}{% |
|
214 | \newenvironment{codeinput}{% | |
206 | \def\FrameCommand{\colorbox{inputbackground}}% |
|
215 | \def\FrameCommand{\colorbox{inputbackground}}% | |
207 | \MakeFramed{\advance\hsize-\width \FrameRestore}} |
|
216 | \MakeFramed{\advance\hsize-\width \FrameRestore}} | |
208 | {\unskip\endMakeFramed} |
|
217 | {\unskip\endMakeFramed} | |
209 |
|
218 | |||
210 | \newenvironment{codeoutput}{% |
|
219 | \newenvironment{codeoutput}{% | |
211 | \def\FrameCommand{\colorbox{outputbackground}}% |
|
220 | \def\FrameCommand{\colorbox{outputbackground}}% | |
212 | \vspace{-1.4em} |
|
221 | \vspace{-1.4em} | |
213 | \MakeFramed{\advance\hsize-\width \FrameRestore}} |
|
222 | \MakeFramed{\advance\hsize-\width \FrameRestore}} | |
214 | {\unskip\medskip\endMakeFramed} |
|
223 | {\unskip\medskip\endMakeFramed} | |
215 |
|
224 | |||
216 | \newenvironment{traceback}{% |
|
225 | \newenvironment{traceback}{% | |
217 | \def\FrameCommand{\colorbox{traceback}}% |
|
226 | \def\FrameCommand{\colorbox{traceback}}% | |
218 | \MakeFramed{\advance\hsize-\width \FrameRestore}} |
|
227 | \MakeFramed{\advance\hsize-\width \FrameRestore}} | |
219 | {\endMakeFramed} |
|
228 | {\endMakeFramed} | |
220 |
|
229 | |||
221 | % Use and configure listings package for nicely formatted code |
|
230 | % Use and configure listings package for nicely formatted code | |
222 | \usepackage{listingsutf8} |
|
231 | \usepackage{listingsutf8} | |
223 | \lstset{ |
|
232 | \lstset{ | |
224 | language=python, |
|
233 | language=python, | |
225 | inputencoding=utf8x, |
|
234 | inputencoding=utf8x, | |
226 | extendedchars=\true, |
|
235 | extendedchars=\true, | |
227 | aboveskip=\smallskipamount, |
|
236 | aboveskip=\smallskipamount, | |
228 | belowskip=\smallskipamount, |
|
237 | belowskip=\smallskipamount, | |
229 | xleftmargin=2mm, |
|
238 | xleftmargin=2mm, | |
230 | breaklines=true, |
|
239 | breaklines=true, | |
231 | basicstyle=\small \ttfamily, |
|
240 | basicstyle=\small \ttfamily, | |
232 | showstringspaces=false, |
|
241 | showstringspaces=false, | |
233 | keywordstyle=\color{blue}\bfseries, |
|
242 | keywordstyle=\color{blue}\bfseries, | |
234 | commentstyle=\color{myteal}, |
|
243 | commentstyle=\color{myteal}, | |
235 | stringstyle=\color{darkgreen}, |
|
244 | stringstyle=\color{darkgreen}, | |
236 | identifierstyle=\color{darkorange}, |
|
245 | identifierstyle=\color{darkorange}, | |
237 | columns=fullflexible, % tighter character kerning, like verb |
|
246 | columns=fullflexible, % tighter character kerning, like verb | |
238 | } |
|
247 | } | |
239 |
|
248 | |||
240 | % The hyperref package gives us a pdf with properly built |
|
249 | % The hyperref package gives us a pdf with properly built | |
241 | % internal navigation ('pdf bookmarks' for the table of contents, |
|
250 | % internal navigation ('pdf bookmarks' for the table of contents, | |
242 | % internal cross-reference links, web links for URLs, etc.) |
|
251 | % internal cross-reference links, web links for URLs, etc.) | |
243 | \usepackage{hyperref} |
|
252 | \usepackage{hyperref} | |
244 | \hypersetup{ |
|
253 | \hypersetup{ | |
245 | breaklinks=true, % so long urls are correctly broken across lines |
|
254 | breaklinks=true, % so long urls are correctly broken across lines | |
246 | colorlinks=true, |
|
255 | colorlinks=true, | |
247 | urlcolor=blue, |
|
256 | urlcolor=blue, | |
248 | linkcolor=darkorange, |
|
257 | linkcolor=darkorange, | |
249 | citecolor=darkgreen, |
|
258 | citecolor=darkgreen, | |
250 | } |
|
259 | } | |
251 |
|
260 | |||
252 | % hardcode size of all verbatim environments to be a bit smaller |
|
261 | % hardcode size of all verbatim environments to be a bit smaller | |
253 | \makeatletter |
|
262 | \makeatletter | |
254 | \g@addto@macro\@verbatim\small\topsep=0.5em\partopsep=0pt |
|
263 | \g@addto@macro\@verbatim\small\topsep=0.5em\partopsep=0pt | |
255 | \makeatother |
|
264 | \makeatother | |
256 |
|
265 | |||
257 | % Prevent overflowing lines due to urls and other hard-to-break entities. |
|
266 | % Prevent overflowing lines due to urls and other hard-to-break entities. | |
258 | \sloppy |
|
267 | \sloppy | |
259 |
|
268 | |||
260 | ((* endblock *)) |
|
269 | ((* endblock *)) |
@@ -1,21 +1,25 | |||||
1 | ((============================================================================ |
|
1 | ((============================================================================ | |
2 | NBConvert Sphinx-Latex Manual Template |
|
2 | NBConvert Sphinx-Latex Manual Template | |
3 |
|
3 | |||
4 | Purpose: Allow export of PDF friendly Latex inspired by Sphinx Manual |
|
4 | Purpose: Allow export of PDF friendly Latex inspired by Sphinx Manual | |
5 | document style. Most of the is derived directly from Sphinx source. |
|
5 | document style. Most of the is derived directly from Sphinx source. | |
6 |
|
6 | |||
7 | Inheritance: null>display_priority>sphinx |
|
7 | Inheritance: null>display_priority>sphinx | |
8 |
|
8 | |||
9 | ==========================================================================)) |
|
9 | ==========================================================================)) | |
10 |
|
10 | |||
11 | ((*- extends 'sphinx.tplx' -*)) |
|
11 | ((*- extends 'sphinx.tplx' -*)) | |
12 |
|
12 | |||
|
13 | ||||
|
14 | ||||
|
15 | ||||
|
16 | ||||
13 | ((* set parentdocumentclass = 'report' *)) |
|
17 | ((* set parentdocumentclass = 'report' *)) | |
14 | ((* set documentclass = 'manual' *)) |
|
18 | ((* set documentclass = 'manual' *)) | |
15 |
|
19 | |||
16 | ((* block h1 -*))part((* endblock h1 -*)) |
|
20 | ((* block h1 -*))part((* endblock h1 -*)) | |
17 | ((* block h2 -*))chapter((* endblock h2 -*)) |
|
21 | ((* block h2 -*))chapter((* endblock h2 -*)) | |
18 | ((* block h3 -*))section((* endblock h3 -*)) |
|
22 | ((* block h3 -*))section((* endblock h3 -*)) | |
19 | ((* block h4 -*))subsection((* endblock h4 -*)) |
|
23 | ((* block h4 -*))subsection((* endblock h4 -*)) | |
20 | ((* block h5 -*))subsubsection((* endblock h5 -*)) |
|
24 | ((* block h5 -*))subsubsection((* endblock h5 -*)) | |
21 | ((* block h6 -*))paragraph((* endblock h6 -*)) |
|
25 | ((* block h6 -*))paragraph((* endblock h6 -*)) |
@@ -1,452 +1,466 | |||||
1 | ((= NBConvert Sphinx-Latex Template |
|
1 | ((= NBConvert Sphinx-Latex Template | |
2 |
|
2 | |||
3 | Purpose: Allow export of PDF friendly Latex inspired by Sphinx. Most of the |
|
3 | Purpose: Allow export of PDF friendly Latex inspired by Sphinx. Most of the | |
4 | template is derived directly from Sphinx source. |
|
4 | template is derived directly from Sphinx source. | |
5 |
|
5 | |||
6 | Inheritance: null>display_priority |
|
6 | Inheritance: null>display_priority | |
7 |
|
7 | |||
8 | Note: For best display, use latex syntax highlighting. =)) |
|
8 | Note: For best display, use latex syntax highlighting. =)) | |
9 |
|
9 | |||
10 | ((*- extends 'display_priority.tplx' -*)) |
|
10 | ((*- extends 'display_priority.tplx' -*)) | |
11 |
|
11 | |||
|
12 | ||||
12 | \nonstopmode |
|
13 | \nonstopmode | |
13 |
|
14 | |||
14 | %============================================================================== |
|
15 | %============================================================================== | |
15 | % Declarations |
|
16 | % Declarations | |
16 | %============================================================================== |
|
17 | %============================================================================== | |
17 |
|
18 | |||
18 | % In order to make sure that the input/output header follows the code it |
|
19 | % In order to make sure that the input/output header follows the code it | |
19 | % preceeds, the needspace package is used to request that a certain |
|
20 | % preceeds, the needspace package is used to request that a certain | |
20 | % amount of lines (specified by this variable) are reserved. If those |
|
21 | % amount of lines (specified by this variable) are reserved. If those | |
21 | % lines aren't available on the current page, the documenter will break |
|
22 | % lines aren't available on the current page, the documenter will break | |
22 | % to the next page and the header along with accomanying lines will be |
|
23 | % to the next page and the header along with accomanying lines will be | |
23 | % rendered together. This value specifies the number of lines that |
|
24 | % rendered together. This value specifies the number of lines that | |
24 | % the header will be forced to group with without a page break. |
|
25 | % the header will be forced to group with without a page break. | |
25 | ((*- set min_header_lines = 4 -*)) |
|
26 | ((*- set min_header_lines = 4 -*)) | |
26 |
|
27 | |||
27 | % This is the number of characters that are permitted per line. It's |
|
28 | % This is the number of characters that are permitted per line. It's | |
28 | % important that this limit is set so characters do not run off the |
|
29 | % important that this limit is set so characters do not run off the | |
29 | % edges of latex pages (since latex does not always seem smart enough |
|
30 | % edges of latex pages (since latex does not always seem smart enough | |
30 | % to prevent this in some cases.) This is only applied to textual output |
|
31 | % to prevent this in some cases.) This is only applied to textual output | |
31 | ((* if resources.sphinx.outputstyle == 'simple' *)) |
|
32 | ((* if resources.sphinx.outputstyle == 'simple' *)) | |
32 | ((*- set wrap_size = 85 -*)) |
|
33 | ((*- set wrap_size = 85 -*)) | |
33 | ((* elif resources.sphinx.outputstyle == 'notebook' *)) |
|
34 | ((* elif resources.sphinx.outputstyle == 'notebook' *)) | |
34 | ((*- set wrap_size = 70 -*)) |
|
35 | ((*- set wrap_size = 70 -*)) | |
35 | ((* endif *)) |
|
36 | ((* endif *)) | |
36 |
|
37 | |||
37 | %============================================================================== |
|
38 | %============================================================================== | |
38 | % Header |
|
39 | % Header | |
39 | %============================================================================== |
|
40 | %============================================================================== | |
40 | ((* block header *)) |
|
41 | ((* block header *)) | |
41 |
|
42 | |||
42 | % Header, overrides base |
|
43 | % Header, overrides base | |
43 |
|
44 | |||
44 | % Make sure that the sphinx doc style knows who it inherits from. |
|
45 | % Make sure that the sphinx doc style knows who it inherits from. | |
45 | \def\sphinxdocclass{(((parentdocumentclass)))} |
|
46 | \def\sphinxdocclass{(((parentdocumentclass)))} | |
46 |
|
47 | |||
47 | % Declare the document class |
|
48 | % Declare the document class | |
48 | \documentclass[letterpaper,10pt,english]{((( resources.sphinx.texinputs )))/sphinx(((documentclass)))} |
|
49 | \documentclass[letterpaper,10pt,english]{((( resources.sphinx.texinputs )))/sphinx(((documentclass)))} | |
49 |
|
50 | |||
50 | % Imports |
|
51 | % Imports | |
51 | \usepackage[utf8]{inputenc} |
|
52 | \usepackage[utf8]{inputenc} | |
52 | \DeclareUnicodeCharacter{00A0}{\\nobreakspace} |
|
53 | \DeclareUnicodeCharacter{00A0}{\\nobreakspace} | |
53 | \usepackage[T1]{fontenc} |
|
54 | \usepackage[T1]{fontenc} | |
54 | \usepackage{babel} |
|
55 | \usepackage{babel} | |
55 | \usepackage{times} |
|
56 | \usepackage{times} | |
56 | \usepackage{import} |
|
57 | \usepackage{import} | |
57 | \usepackage[((( resources.sphinx.chapterstyle )))]{((( resources.sphinx.texinputs )))/fncychap} |
|
58 | \usepackage[((( resources.sphinx.chapterstyle )))]{((( resources.sphinx.texinputs )))/fncychap} | |
58 | \usepackage{longtable} |
|
59 | \usepackage{longtable} | |
59 | \usepackage{((( resources.sphinx.texinputs )))/sphinx} |
|
60 | \usepackage{((( resources.sphinx.texinputs )))/sphinx} | |
60 | \usepackage{multirow} |
|
61 | \usepackage{multirow} | |
61 |
|
62 | |||
62 | \usepackage{amsmath} |
|
63 | \usepackage{amsmath} | |
63 | \usepackage{amssymb} |
|
64 | \usepackage{amssymb} | |
64 | \usepackage{ucs} |
|
65 | \usepackage{ucs} | |
65 | \usepackage{enumerate} |
|
66 | \usepackage{enumerate} | |
66 |
|
67 | |||
67 | % Used to make the Input/Output rules follow around the contents. |
|
68 | % Used to make the Input/Output rules follow around the contents. | |
68 | \usepackage{needspace} |
|
69 | \usepackage{needspace} | |
69 |
|
70 | |||
70 | % Pygments requirements |
|
71 | % Pygments requirements | |
71 | \usepackage{fancyvrb} |
|
72 | \usepackage{fancyvrb} | |
72 | \usepackage{color} |
|
73 | \usepackage{color} | |
73 | % ansi colors additions |
|
74 | % ansi colors additions | |
74 | \definecolor{darkgreen}{rgb}{.12,.54,.11} |
|
75 | \definecolor{darkgreen}{rgb}{.12,.54,.11} | |
75 | \definecolor{lightgray}{gray}{.95} |
|
76 | \definecolor{lightgray}{gray}{.95} | |
76 | \definecolor{brown}{rgb}{0.54,0.27,0.07} |
|
77 | \definecolor{brown}{rgb}{0.54,0.27,0.07} | |
77 | \definecolor{purple}{rgb}{0.5,0.0,0.5} |
|
78 | \definecolor{purple}{rgb}{0.5,0.0,0.5} | |
78 | \definecolor{darkgray}{gray}{0.25} |
|
79 | \definecolor{darkgray}{gray}{0.25} | |
79 | \definecolor{lightred}{rgb}{1.0,0.39,0.28} |
|
80 | \definecolor{lightred}{rgb}{1.0,0.39,0.28} | |
80 | \definecolor{lightgreen}{rgb}{0.48,0.99,0.0} |
|
81 | \definecolor{lightgreen}{rgb}{0.48,0.99,0.0} | |
81 | \definecolor{lightblue}{rgb}{0.53,0.81,0.92} |
|
82 | \definecolor{lightblue}{rgb}{0.53,0.81,0.92} | |
82 | \definecolor{lightpurple}{rgb}{0.87,0.63,0.87} |
|
83 | \definecolor{lightpurple}{rgb}{0.87,0.63,0.87} | |
83 | \definecolor{lightcyan}{rgb}{0.5,1.0,0.83} |
|
84 | \definecolor{lightcyan}{rgb}{0.5,1.0,0.83} | |
84 |
|
85 | |||
85 | % Needed to box output/input |
|
86 | % Needed to box output/input | |
86 | \usepackage{tikz} |
|
87 | \usepackage{tikz} | |
87 | \usetikzlibrary{calc,arrows,shadows} |
|
88 | \usetikzlibrary{calc,arrows,shadows} | |
88 | \usepackage[framemethod=tikz]{mdframed} |
|
89 | \usepackage[framemethod=tikz]{mdframed} | |
89 |
|
90 | |||
90 | \usepackage{alltt} |
|
91 | \usepackage{alltt} | |
91 |
|
92 | |||
92 | % Used to load and display graphics |
|
93 | % Used to load and display graphics | |
93 | \usepackage{graphicx} |
|
94 | \usepackage{graphicx} | |
94 | \graphicspath{ {figs/} } |
|
95 | \graphicspath{ {figs/} } | |
95 | \usepackage[Export]{adjustbox} % To resize |
|
96 | \usepackage[Export]{adjustbox} % To resize | |
96 |
|
97 | |||
97 |
|
98 | |||
98 | % For formatting output while also word wrapping. |
|
99 | % For formatting output while also word wrapping. | |
99 | \usepackage{listings} |
|
100 | \usepackage{listings} | |
100 | \lstset{breaklines=true} |
|
101 | \lstset{breaklines=true} | |
101 | \lstset{basicstyle=\small\ttfamily} |
|
102 | \lstset{basicstyle=\small\ttfamily} | |
102 | \def\smaller{\fontsize{9.5pt}{9.5pt}\selectfont} |
|
103 | \def\smaller{\fontsize{9.5pt}{9.5pt}\selectfont} | |
103 |
|
104 | |||
104 | %Pygments definitions |
|
105 | %Pygments definitions | |
105 | ((( resources.sphinx.pygment_definitions ))) |
|
106 | ((( resources.sphinx.pygment_definitions ))) | |
106 |
|
107 | |||
107 | %Set pygments styles if needed... |
|
108 | %Set pygments styles if needed... | |
108 | ((* if resources.sphinx.outputstyle == 'notebook' *)) |
|
109 | ((* if resources.sphinx.outputstyle == 'notebook' *)) | |
109 | \definecolor{nbframe-border}{rgb}{0.867,0.867,0.867} |
|
110 | \definecolor{nbframe-border}{rgb}{0.867,0.867,0.867} | |
110 | \definecolor{nbframe-bg}{rgb}{0.969,0.969,0.969} |
|
111 | \definecolor{nbframe-bg}{rgb}{0.969,0.969,0.969} | |
111 | \definecolor{nbframe-in-prompt}{rgb}{0.0,0.0,0.502} |
|
112 | \definecolor{nbframe-in-prompt}{rgb}{0.0,0.0,0.502} | |
112 | \definecolor{nbframe-out-prompt}{rgb}{0.545,0.0,0.0} |
|
113 | \definecolor{nbframe-out-prompt}{rgb}{0.545,0.0,0.0} | |
113 |
|
114 | |||
114 | \newenvironment{ColorVerbatim} |
|
115 | \newenvironment{ColorVerbatim} | |
115 | {\begin{mdframed}[% |
|
116 | {\begin{mdframed}[% | |
116 | roundcorner=1.0pt, % |
|
117 | roundcorner=1.0pt, % | |
117 | backgroundcolor=nbframe-bg, % |
|
118 | backgroundcolor=nbframe-bg, % | |
118 | userdefinedwidth=1\linewidth, % |
|
119 | userdefinedwidth=1\linewidth, % | |
119 | leftmargin=0.1\linewidth, % |
|
120 | leftmargin=0.1\linewidth, % | |
120 | innerleftmargin=0pt, % |
|
121 | innerleftmargin=0pt, % | |
121 | innerrightmargin=0pt, % |
|
122 | innerrightmargin=0pt, % | |
122 | linecolor=nbframe-border, % |
|
123 | linecolor=nbframe-border, % | |
123 | linewidth=1pt, % |
|
124 | linewidth=1pt, % | |
124 | usetwoside=false, % |
|
125 | usetwoside=false, % | |
125 | everyline=true, % |
|
126 | everyline=true, % | |
126 | innerlinewidth=3pt, % |
|
127 | innerlinewidth=3pt, % | |
127 | innerlinecolor=nbframe-bg, % |
|
128 | innerlinecolor=nbframe-bg, % | |
128 | middlelinewidth=1pt, % |
|
129 | middlelinewidth=1pt, % | |
129 | middlelinecolor=nbframe-bg, % |
|
130 | middlelinecolor=nbframe-bg, % | |
130 | outerlinewidth=0.5pt, % |
|
131 | outerlinewidth=0.5pt, % | |
131 | outerlinecolor=nbframe-border, % |
|
132 | outerlinecolor=nbframe-border, % | |
132 | needspace=0pt |
|
133 | needspace=0pt | |
133 | ]} |
|
134 | ]} | |
134 | {\end{mdframed}} |
|
135 | {\end{mdframed}} | |
135 |
|
136 | |||
136 | \newenvironment{InvisibleVerbatim} |
|
137 | \newenvironment{InvisibleVerbatim} | |
137 | {\begin{mdframed}[leftmargin=0.1\linewidth,innerleftmargin=3pt,innerrightmargin=3pt, userdefinedwidth=1\linewidth, linewidth=0pt, linecolor=white, usetwoside=false]} |
|
138 | {\begin{mdframed}[leftmargin=0.1\linewidth,innerleftmargin=3pt,innerrightmargin=3pt, userdefinedwidth=1\linewidth, linewidth=0pt, linecolor=white, usetwoside=false]} | |
138 | {\end{mdframed}} |
|
139 | {\end{mdframed}} | |
139 |
|
140 | |||
140 | \renewenvironment{Verbatim}[1][\unskip] |
|
141 | \renewenvironment{Verbatim}[1][\unskip] | |
141 | {\begin{alltt}\smaller} |
|
142 | {\begin{alltt}\smaller} | |
142 | {\end{alltt}} |
|
143 | {\end{alltt}} | |
143 | ((* endif *)) |
|
144 | ((* endif *)) | |
144 |
|
145 | |||
145 | % Help prevent overflowing lines due to urls and other hard-to-break |
|
146 | % Help prevent overflowing lines due to urls and other hard-to-break | |
146 | % entities. This doesn't catch everything... |
|
147 | % entities. This doesn't catch everything... | |
147 | \sloppy |
|
148 | \sloppy | |
148 |
|
149 | |||
149 | % Document level variables |
|
150 | % Document level variables | |
150 | \title{((( resources.metadata.name | escape_latex )))} |
|
151 | \title{((( resources.metadata.name | escape_latex )))} | |
151 | \date{((( resources.sphinx.date | escape_latex )))} |
|
152 | \date{((( resources.sphinx.date | escape_latex )))} | |
152 | \release{((( resources.sphinx.version | escape_latex )))} |
|
153 | \release{((( resources.sphinx.version | escape_latex )))} | |
153 | \author{((( resources.sphinx.author | escape_latex )))} |
|
154 | \author{((( resources.sphinx.author | escape_latex )))} | |
154 | \renewcommand{\releasename}{((( resources.sphinx.release | escape_latex )))} |
|
155 | \renewcommand{\releasename}{((( resources.sphinx.release | escape_latex )))} | |
155 |
|
156 | |||
156 | % TODO: Add option for the user to specify a logo for his/her export. |
|
157 | % TODO: Add option for the user to specify a logo for his/her export. | |
157 | \newcommand{\sphinxlogo}{} |
|
158 | \newcommand{\sphinxlogo}{} | |
158 |
|
159 | |||
159 | % Make the index page of the document. |
|
160 | % Make the index page of the document. | |
160 | \makeindex |
|
161 | \makeindex | |
161 |
|
162 | |||
162 | % Import sphinx document type specifics. |
|
163 | % Import sphinx document type specifics. | |
163 | ((* block sphinxheader *))((* endblock sphinxheader *)) |
|
164 | ((* block sphinxheader *))((* endblock sphinxheader *)) | |
164 | ((* endblock header *)) |
|
165 | ((* endblock header *)) | |
165 |
|
166 | |||
166 | %============================================================================== |
|
167 | %============================================================================== | |
167 | % Body |
|
168 | % Body | |
168 | %============================================================================== |
|
169 | %============================================================================== | |
169 | ((* block body *)) |
|
170 | ((* block body *)) | |
170 | ((* block bodyBegin *)) |
|
171 | ((* block bodyBegin *)) | |
171 | % Body |
|
172 | % Body | |
172 |
|
173 | |||
173 | % Start of the document |
|
174 | % Start of the document | |
174 | \begin{document} |
|
175 | \begin{document} | |
175 |
|
176 | |||
176 | ((* if resources.sphinx.header *)) |
|
177 | ((* if resources.sphinx.header *)) | |
177 | \maketitle |
|
178 | \maketitle | |
178 | ((* endif *)) |
|
179 | ((* endif *)) | |
179 |
|
180 | |||
180 | ((* block toc *)) |
|
181 | ((* block toc *)) | |
181 | \tableofcontents |
|
182 | \tableofcontents | |
182 | ((* endblock toc *)) |
|
183 | ((* endblock toc *)) | |
183 |
|
184 | |||
184 |
((* endblock bodyBegin *)) |
|
185 | ((* endblock bodyBegin *)) | |
|
186 | ((( super() ))) | |||
|
187 | ((* block bodyEnd *)) | |||
185 |
|
188 | |||
186 | \renewcommand{\indexname}{Index} |
|
189 | \renewcommand{\indexname}{Index} | |
187 | \printindex |
|
190 | \printindex | |
188 |
|
191 | |||
189 | % End of document |
|
192 | % End of document | |
190 | \end{document} |
|
193 | \end{document} | |
191 | ((* endblock bodyEnd *)) |
|
194 | ((* endblock bodyEnd *)) | |
192 | ((* endblock body *)) |
|
195 | ((* endblock body *)) | |
193 |
|
196 | |||
194 | %============================================================================== |
|
197 | %============================================================================== | |
195 | % Footer |
|
198 | % Footer | |
196 | %============================================================================== |
|
199 | %============================================================================== | |
197 | ((* block footer *)) |
|
200 | ((* block footer *)) | |
198 | ((* endblock footer *)) |
|
201 | ((* endblock footer *)) | |
199 |
|
202 | |||
200 | %============================================================================== |
|
203 | %============================================================================== | |
201 | % Headings |
|
204 | % Headings | |
202 | % |
|
205 | % | |
203 | % Purpose: Format pynb headers as sphinx headers. Depending on the Sphinx |
|
206 | % Purpose: Format pynb headers as sphinx headers. Depending on the Sphinx | |
204 | % style that is active, this will change. Thus sphinx styles will |
|
207 | % style that is active, this will change. Thus sphinx styles will | |
205 | % override the values here. |
|
208 | % override the values here. | |
206 | %============================================================================== |
|
209 | %============================================================================== | |
207 | ((* block headingcell -*)) |
|
210 | ((* block headingcell -*)) | |
208 | \ |
|
211 | \ | |
209 | ((*- if cell.level == 1 -*)) |
|
212 | ((*- if cell.level == 1 -*)) | |
210 | ((* block h1 -*))part((* endblock h1 -*)) |
|
213 | ((* block h1 -*))part((* endblock h1 -*)) | |
211 | ((*- elif cell.level == 2 -*)) |
|
214 | ((*- elif cell.level == 2 -*)) | |
212 | ((* block h2 -*))chapter((* endblock h2 -*)) |
|
215 | ((* block h2 -*))chapter((* endblock h2 -*)) | |
213 | ((*- elif cell.level == 3 -*)) |
|
216 | ((*- elif cell.level == 3 -*)) | |
214 | ((* block h3 -*))section((* endblock h3 -*)) |
|
217 | ((* block h3 -*))section((* endblock h3 -*)) | |
215 | ((*- elif cell.level == 4 -*)) |
|
218 | ((*- elif cell.level == 4 -*)) | |
216 | ((* block h4 -*))subsection((* endblock h4 -*)) |
|
219 | ((* block h4 -*))subsection((* endblock h4 -*)) | |
217 | ((*- elif cell.level == 5 -*)) |
|
220 | ((*- elif cell.level == 5 -*)) | |
218 | ((* block h5 -*))subsubsection((* endblock h5 -*)) |
|
221 | ((* block h5 -*))subsubsection((* endblock h5 -*)) | |
219 | ((*- elif cell.level == 6 -*)) |
|
222 | ((*- elif cell.level == 6 -*)) | |
220 | ((* block h6 -*))paragraph((* endblock h6 -*)) |
|
223 | ((* block h6 -*))paragraph((* endblock h6 -*)) | |
221 |
|
224 | |||
222 | ((= It's important to make sure that underscores (which tend to be common |
|
225 | ((= It's important to make sure that underscores (which tend to be common | |
223 | in IPYNB file titles) do not make their way into latex. Sometimes this |
|
226 | in IPYNB file titles) do not make their way into latex. Sometimes this | |
224 | causes latex to barf. =)) |
|
227 | causes latex to barf. =)) | |
225 | ((*- endif -*)){((( cell.source | markdown2latex )))} |
|
228 | ((*- endif -*)) | |
|
229 | {((( cell.source | markdown2latex )))} | |||
226 | ((*- endblock headingcell *)) |
|
230 | ((*- endblock headingcell *)) | |
227 |
|
231 | |||
228 | %============================================================================== |
|
232 | %============================================================================== | |
229 | % Markdown |
|
233 | % Markdown | |
230 | % |
|
234 | % | |
231 | % Purpose: Convert markdown to latex. Here markdown2latex is explicitly |
|
235 | % Purpose: Convert markdown to latex. Here markdown2latex is explicitly | |
232 | % called since we know we want latex output. |
|
236 | % called since we know we want latex output. | |
233 | %============================================================================== |
|
237 | %============================================================================== | |
234 | ((*- block markdowncell scoped-*)) |
|
238 | ((*- block markdowncell scoped-*)) | |
235 |
|
|
239 | ((( cell.source | markdown2latex ))) | |
236 | ((*- endblock markdowncell -*)) |
|
240 | ((*- endblock markdowncell -*)) | |
237 |
|
241 | |||
238 | %============================================================================== |
|
242 | %============================================================================== | |
239 | % Rawcell |
|
243 | % Rawcell | |
240 | % |
|
244 | % | |
241 | % Purpose: Raw text cells allow the user to manually inject document code that |
|
245 | % Purpose: Raw text cells allow the user to manually inject document code that | |
242 | % will not get touched by the templating system. |
|
246 | % will not get touched by the templating system. | |
243 | %============================================================================== |
|
247 | %============================================================================== | |
244 | ((*- block rawcell *)) |
|
248 | ((*- block rawcell *)) | |
245 |
|
|
249 | ((( cell.source | wrap_text(wrap_size) ))) | |
246 | ((* endblock rawcell -*)) |
|
250 | ((* endblock rawcell -*)) | |
247 |
|
251 | |||
248 | %============================================================================== |
|
252 | %============================================================================== | |
249 | % Unknowncell |
|
253 | % Unknowncell | |
250 | % |
|
254 | % | |
251 | % Purpose: This is the catch anything unhandled. To display this data, we |
|
255 | % Purpose: This is the catch anything unhandled. To display this data, we | |
252 | % remove all possible latex conflicts and wrap the characters so they |
|
256 | % remove all possible latex conflicts and wrap the characters so they | |
253 | % can't flow off of the page. |
|
257 | % can't flow off of the page. | |
254 | %============================================================================== |
|
258 | %============================================================================== | |
255 | ((* block unknowncell scoped*)) |
|
259 | ((* block unknowncell scoped*)) | |
256 |
|
||||
257 |
|
|
260 | % Unsupported cell type, no formatting | |
258 |
|
|
261 | ((( cell.source | wrap_text | escape_latex ))) | |
259 | ((* endblock unknowncell *)) |
|
262 | ((* endblock unknowncell *)) | |
260 |
|
263 | |||
261 | %============================================================================== |
|
264 | %============================================================================== | |
262 | % Input |
|
265 | % Input | |
263 | %============================================================================== |
|
266 | %============================================================================== | |
264 | ((* block input *)) |
|
267 | ((* block input *)) | |
265 |
|
268 | |||
266 | % Make sure that atleast 4 lines are below the HR |
|
269 | % Make sure that atleast 4 lines are below the HR | |
267 | \needspace{((( min_header_lines )))\baselineskip} |
|
270 | \needspace{((( min_header_lines )))\baselineskip} | |
268 |
|
271 | |||
269 | ((* if resources.sphinx.outputstyle == 'simple' *)) |
|
272 | ((* if resources.sphinx.outputstyle == 'simple' *)) | |
270 |
|
273 | |||
271 | % Add a horizantal break, along with break title. |
|
274 | % Add a horizantal break, along with break title. | |
272 | \vspace{10pt} |
|
275 | \vspace{10pt} | |
273 | {\scriptsize Input}\\* |
|
276 | {\scriptsize Input}\\* | |
274 | \rule[10pt]{\linewidth}{0.5pt} |
|
277 | \rule[10pt]{\linewidth}{0.5pt} | |
275 | \vspace{-25pt} |
|
278 | \vspace{-25pt} | |
276 |
|
279 | |||
277 | % Add contents below. |
|
280 | % Add contents below. | |
278 | ((( cell.input | highlight2latex ))) |
|
281 | ((( cell.input | highlight2latex ))) | |
279 |
|
282 | |||
280 | ((* elif resources.sphinx.outputstyle == 'notebook' *)) |
|
283 | ((* elif resources.sphinx.outputstyle == 'notebook' *)) | |
281 | \vspace{6pt} |
|
284 | \vspace{6pt} | |
282 | ((( write_prompt("In", cell.prompt_number, "nbframe-in-prompt") ))) |
|
285 | ((( write_prompt("In", cell.prompt_number, "nbframe-in-prompt") ))) | |
283 | \vspace{-2.65\baselineskip} |
|
286 | \vspace{-2.65\baselineskip} | |
284 | \begin{ColorVerbatim} |
|
287 | \begin{ColorVerbatim} | |
285 | \vspace{-0.7\baselineskip} |
|
288 | \vspace{-0.7\baselineskip} | |
286 | ((( cell.input | highlight2latex ))) |
|
289 | ((( cell.input | highlight2latex ))) | |
287 | ((* if cell.input == None or cell.input == '' *)) |
|
290 | ((* if cell.input == None or cell.input == '' *)) | |
288 | \vspace{0.3\baselineskip} |
|
291 | \vspace{0.3\baselineskip} | |
289 | ((* else *)) |
|
292 | ((* else *)) | |
290 | \vspace{-0.2\baselineskip} |
|
293 | \vspace{-0.2\baselineskip} | |
291 | ((* endif *)) |
|
294 | ((* endif *)) | |
292 | \end{ColorVerbatim} |
|
295 | \end{ColorVerbatim} | |
293 | ((* endif *)) |
|
296 | ((* endif *)) | |
294 | ((* endblock input *)) |
|
297 | ((* endblock input *)) | |
295 |
|
298 | |||
296 | %============================================================================== |
|
299 | %============================================================================== | |
297 | % Output_Group |
|
300 | % Output_Group | |
298 | % |
|
301 | % | |
299 | % Purpose: Make sure that only one header bar only attaches to the output |
|
302 | % Purpose: Make sure that only one header bar only attaches to the output | |
300 | % once. By keeping track of when an input group is started |
|
303 | % once. By keeping track of when an input group is started | |
301 | %============================================================================== |
|
304 | %============================================================================== | |
302 | ((* block output_group *)) |
|
305 | ((* block output_group *)) | |
303 | ((* if cell.outputs.__len__() > 0 *)) |
|
306 | ((* if cell.outputs.__len__() > 0 *)) | |
304 |
|
307 | |||
305 | % If the first block is an image, minipage the image. Else |
|
308 | % If the first block is an image, minipage the image. Else | |
306 | % request a certain amount of space for the input text. |
|
309 | % request a certain amount of space for the input text. | |
307 | ((( iff_figure(cell.outputs[0], "\\begin{minipage}{1.0\\textwidth}", "\\needspace{" ~ min_header_lines ~ "\\baselineskip}") ))) |
|
310 | ((( iff_figure(cell.outputs[0], "\\begin{minipage}{1.0\\textwidth}", "\\needspace{" ~ min_header_lines ~ "\\baselineskip}") ))) | |
308 |
|
311 | |||
309 | ((* if resources.sphinx.outputstyle == 'simple' *)) |
|
312 | ((* if resources.sphinx.outputstyle == 'simple' *)) | |
310 |
|
313 | |||
311 | % Add a horizantal break, along with break title. |
|
314 | % Add a horizantal break, along with break title. | |
312 | \vspace{10pt} |
|
315 | \vspace{10pt} | |
313 | {\scriptsize Output}\\* |
|
316 | {\scriptsize Output}\\* | |
314 | \rule[10pt]{\linewidth}{0.5pt} |
|
317 | \rule[10pt]{\linewidth}{0.5pt} | |
315 | \vspace{-20pt} |
|
318 | \vspace{-20pt} | |
316 |
|
319 | |||
317 | % Add the contents of the first block. |
|
320 | % Add the contents of the first block. | |
318 | ((( render_output(cell.outputs[0]) ))) |
|
321 | ((( render_output(cell.outputs[0]) ))) | |
319 |
|
322 | |||
320 | % Close the minipage. |
|
323 | % Close the minipage. | |
321 | ((( iff_figure(cell.outputs[0], "\\end{minipage}", "") ))) |
|
324 | ((( iff_figure(cell.outputs[0], "\\end{minipage}", "") ))) | |
322 |
|
325 | |||
323 | % Add remainer of the document contents below. |
|
326 | % Add remainer of the document contents below. | |
324 | ((* for output in cell.outputs[1:] *)) |
|
327 | ((* for output in cell.outputs[1:] *)) | |
325 | ((( render_output(output, cell.prompt_number) ))) |
|
328 | ((( render_output(output, cell.prompt_number) ))) | |
326 | ((* endfor *)) |
|
329 | ((* endfor *)) | |
327 | ((* elif resources.sphinx.outputstyle == 'notebook' *)) |
|
330 | ((* elif resources.sphinx.outputstyle == 'notebook' *)) | |
328 |
|
331 | |||
329 | % Add document contents. |
|
332 | % Add document contents. | |
330 | ((* for output in cell.outputs *)) |
|
333 | ((* for output in cell.outputs *)) | |
331 | ((( render_output(output, cell.prompt_number) ))) |
|
334 | ((( render_output(output, cell.prompt_number) ))) | |
332 | ((* endfor *)) |
|
335 | ((* endfor *)) | |
333 | ((* endif *)) |
|
336 | ((* endif *)) | |
334 | ((* endif *)) |
|
337 | ((* endif *)) | |
335 | ((* endblock *)) |
|
338 | ((* endblock *)) | |
336 |
|
339 | |||
337 | %============================================================================== |
|
340 | %============================================================================== | |
338 | % Additional formating |
|
341 | % Additional formating | |
339 | %============================================================================== |
|
342 | %============================================================================== | |
340 | ((* block data_text *)) |
|
343 | ((* block data_text *)) | |
341 |
|
|
344 | ((( custom_verbatim(output.text) | ansi2latex ))) | |
342 | ((* endblock *)) |
|
345 | ((* endblock *)) | |
343 |
|
346 | |||
344 | ((* block traceback_line *)) |
|
347 | ((* block traceback_line *)) | |
345 |
|
|
348 | ((( conditionally_center_output( line | indent| strip_ansi ) ))) | |
346 | ((* endblock traceback_line *)) |
|
349 | ((* endblock traceback_line *)) | |
347 |
|
350 | |||
348 | %============================================================================== |
|
351 | %============================================================================== | |
349 | % Supported image formats |
|
352 | % Supported image formats | |
350 | %============================================================================== |
|
353 | %============================================================================== | |
351 | ((*- block data_png -*)) |
|
354 | ((*- block data_png -*)) | |
352 |
|
|
355 | ((( conditionally_center_output(insert_graphics(output.png_filename)) ))) | |
353 | ((*- endblock -*)) |
|
356 | ((*- endblock -*)) | |
354 |
|
357 | |||
355 | ((*- block data_jpg -*)) |
|
358 | ((*- block data_jpg -*)) | |
356 |
|
|
359 | ((( conditionally_center_output(insert_graphics(output.jpg_filename)) ))) | |
357 | ((*- endblock -*)) |
|
360 | ((*- endblock -*)) | |
358 |
|
361 | |||
359 | ((*- block data_svg -*)) |
|
362 | ((*- block data_svg -*)) | |
360 |
|
|
363 | ((( conditionally_center_output(insert_graphics(output.svg_filename)) ))) | |
361 | ((*- endblock -*)) |
|
364 | ((*- endblock -*)) | |
362 |
|
365 | |||
363 | ((*- block data_pdf -*)) |
|
366 | ((*- block data_pdf -*)) | |
364 |
|
|
367 | ((( conditionally_center_output(insert_graphics(output.pdf_filename)) ))) | |
365 | ((*- endblock -*)) |
|
368 | ((*- endblock -*)) | |
366 |
|
369 | |||
367 | ((*- block data_latex *)) |
|
370 | ((*- block data_latex *)) | |
368 | ((* if resources.sphinx.centeroutput *))\begin{center}((* endif -*))((( output.latex | strip_math_space )))((*- if resources.sphinx.centeroutput *))\end{center} ((* endif -*)) |
|
371 | ((* if resources.sphinx.centeroutput *)) | |
|
372 | \begin{center} | |||
|
373 | ((* endif -*)) | |||
|
374 | ((( output.latex | strip_math_space ))) | |||
|
375 | ((*- if resources.sphinx.centeroutput *)) | |||
|
376 | \end{center} | |||
|
377 | ((* endif -*)) | |||
369 | ((*- endblock -*)) |
|
378 | ((*- endblock -*)) | |
370 |
|
379 | |||
371 | %============================================================================== |
|
380 | %============================================================================== | |
372 | % Support Macros |
|
381 | % Support Macros | |
373 | %============================================================================== |
|
382 | %============================================================================== | |
374 |
|
383 | |||
375 | % Name: write_prompt |
|
384 | % Name: write_prompt | |
376 | % Purpose: Renders an output/input prompt for notebook style pdfs |
|
385 | % Purpose: Renders an output/input prompt for notebook style pdfs | |
377 | ((* macro write_prompt(prompt, number, color) -*)) |
|
386 | ((* macro write_prompt(prompt, number, color) -*)) | |
378 | \makebox[0.1\linewidth]{\smaller\hfill\tt\color{((( color )))}((( prompt )))\hspace{4pt}{[}((( number ))){]}:\hspace{4pt}}\\* |
|
387 | \makebox[0.1\linewidth]{\smaller\hfill\tt\color{((( color )))}((( prompt )))\hspace{4pt}{[}((( number ))){]}:\hspace{4pt}}\\* | |
379 | ((*- endmacro *)) |
|
388 | ((*- endmacro *)) | |
380 |
|
389 | |||
381 | % Name: render_output |
|
390 | % Name: render_output | |
382 | % Purpose: Renders an output block appropriately. |
|
391 | % Purpose: Renders an output block appropriately. | |
383 | ((* macro render_output(output, prompt_number) -*)) |
|
392 | ((* macro render_output(output, prompt_number) -*)) | |
384 | ((*- if output.output_type == 'pyerr' -*)) |
|
393 | ((*- if output.output_type == 'pyerr' -*)) | |
385 | ((*- block pyerr scoped *)) |
|
394 | ((*- block pyerr scoped *)) | |
386 | ((( custom_verbatim(super()) ))) |
|
395 | ((( custom_verbatim(super()) ))) | |
387 | ((* endblock pyerr -*)) |
|
396 | ((* endblock pyerr -*)) | |
388 | ((*- else -*)) |
|
397 | ((*- else -*)) | |
389 |
|
398 | |||
390 | ((* if resources.sphinx.outputstyle == 'notebook' *)) |
|
399 | ((* if resources.sphinx.outputstyle == 'notebook' *)) | |
391 | ((*- if output.output_type == 'pyout' -*)) |
|
400 | ((*- if output.output_type == 'pyout' -*)) | |
392 | ((( write_prompt("Out", prompt_number, "nbframe-out-prompt") ))) |
|
401 | ((( write_prompt("Out", prompt_number, "nbframe-out-prompt") ))) | |
393 | \vspace{-2.55\baselineskip} |
|
402 | \vspace{-2.55\baselineskip} | |
394 | ((*- endif -*)) |
|
403 | ((*- endif -*)) | |
395 |
|
404 | |||
396 | \begin{InvisibleVerbatim} |
|
405 | \begin{InvisibleVerbatim} | |
397 | \vspace{-0.5\baselineskip} |
|
406 | \vspace{-0.5\baselineskip} | |
398 | ((*- endif -*)) |
|
407 | ((*- endif -*)) | |
399 |
|
408 | |||
400 | ((*- block display_data scoped -*)) |
|
409 | ((*- block display_data scoped -*)) | |
401 | ((( super() ))) |
|
410 | ((( super() ))) | |
402 | ((*- endblock display_data -*)) |
|
411 | ((*- endblock display_data -*)) | |
403 |
|
412 | |||
404 | ((* if resources.sphinx.outputstyle == 'notebook' *)) |
|
413 | ((* if resources.sphinx.outputstyle == 'notebook' *)) | |
405 | \end{InvisibleVerbatim} |
|
414 | \end{InvisibleVerbatim} | |
406 | ((*- endif -*)) |
|
415 | ((*- endif -*)) | |
407 | ((*- endif -*)) |
|
416 | ((*- endif -*)) | |
408 | ((*- endmacro *)) |
|
417 | ((*- endmacro *)) | |
409 |
|
418 | |||
410 | % Name: iff_figure |
|
419 | % Name: iff_figure | |
411 | % Purpose: If the output block provided is a figure type, the 'true_content' |
|
420 | % Purpose: If the output block provided is a figure type, the 'true_content' | |
412 | % parameter will be returned. Else, the 'false_content'. |
|
421 | % parameter will be returned. Else, the 'false_content'. | |
413 | ((* macro iff_figure(output, true_content, false_content) -*)) |
|
422 | ((* macro iff_figure(output, true_content, false_content) -*)) | |
414 | ((*- set is_figure = false -*)) |
|
423 | ((*- set is_figure = false -*)) | |
415 | ((*- for type in output | filter_data_type -*)) |
|
424 | ((*- for type in output | filter_data_type -*)) | |
416 | ((*- if type in ['pdf', 'svg', 'png', 'jpeg','html']*)) |
|
425 | ((*- if type in ['pdf', 'svg', 'png', 'jpeg','html']*)) | |
417 | ((*- set is_figure = true -*)) |
|
426 | ((*- set is_figure = true -*)) | |
418 | ((*- endif -*)) |
|
427 | ((*- endif -*)) | |
419 | ((*- endfor -*)) |
|
428 | ((*- endfor -*)) | |
420 |
|
429 | |||
421 | ((* if is_figure -*)) |
|
430 | ((* if is_figure -*)) | |
422 | ((( true_content ))) |
|
431 | ((( true_content ))) | |
423 | ((*- else -*)) |
|
432 | ((*- else -*)) | |
424 | ((( false_content ))) |
|
433 | ((( false_content ))) | |
425 | ((*- endif *)) |
|
434 | ((*- endif *)) | |
426 | ((*- endmacro *)) |
|
435 | ((*- endmacro *)) | |
427 |
|
436 | |||
428 | % Name: custom_verbatim |
|
437 | % Name: custom_verbatim | |
429 | % Purpose: This macro creates a verbatim style block that fits the existing |
|
438 | % Purpose: This macro creates a verbatim style block that fits the existing | |
430 | % sphinx style more readily than standard verbatim blocks. |
|
439 | % sphinx style more readily than standard verbatim blocks. | |
431 | ((* macro custom_verbatim(text) -*)) |
|
440 | ((* macro custom_verbatim(text) -*)) | |
432 | \begin{alltt} |
|
441 | \begin{alltt} | |
433 | ((*- if resources.sphinx.centeroutput *))\begin{center} ((* endif -*)) |
|
442 | ((*- if resources.sphinx.centeroutput *))\begin{center} ((* endif -*)) | |
434 | ((( text | wrap_text(wrap_size) ))) |
|
443 | ((( text | wrap_text(wrap_size) ))) | |
435 | ((*- if resources.sphinx.centeroutput *))\end{center}((* endif -*)) |
|
444 | ((*- if resources.sphinx.centeroutput *))\end{center}((* endif -*)) | |
436 | \end{alltt} |
|
445 | \end{alltt} | |
437 | ((*- endmacro *)) |
|
446 | ((*- endmacro *)) | |
438 |
|
447 | |||
439 | % Name: conditionally_center_output |
|
448 | % Name: conditionally_center_output | |
440 | % Purpose: This macro centers the output if the output centering is enabled. |
|
449 | % Purpose: This macro centers the output if the output centering is enabled. | |
441 | ((* macro conditionally_center_output(text) -*)) |
|
450 | ((* macro conditionally_center_output(text) -*)) | |
442 | ((* if resources.sphinx.centeroutput *)){\centering ((* endif *))((( text )))((* if resources.sphinx.centeroutput *))}((* endif *)) |
|
451 | ((* if resources.sphinx.centeroutput *)) | |
|
452 | {\centering | |||
|
453 | ((* endif *)) | |||
|
454 | ((( text ))) | |||
|
455 | ((* if resources.sphinx.centeroutput *))} | |||
|
456 | ((* endif *)) | |||
443 | ((*- endmacro *)) |
|
457 | ((*- endmacro *)) | |
444 |
|
458 | |||
445 | % Name: insert_graphics |
|
459 | % Name: insert_graphics | |
446 | % Purpose: This macro will insert an image in the latex document given a path. |
|
460 | % Purpose: This macro will insert an image in the latex document given a path. | |
447 | ((* macro insert_graphics(path) -*)) |
|
461 | ((* macro insert_graphics(path) -*)) | |
448 | \begin{center} |
|
462 | \begin{center} | |
449 | \includegraphics[max size={\textwidth}{\textheight}]{(((path)))} |
|
463 | \includegraphics[max size={\textwidth}{\textheight}]{((( path )))} | |
450 | \par |
|
464 | \par | |
451 | \end{center} |
|
465 | \end{center} | |
452 | ((*- endmacro *)) No newline at end of file |
|
466 | ((*- endmacro *)) |
@@ -1,73 +1,74 | |||||
1 | {% extends 'display_priority.tpl' %} |
|
1 | {% extends 'display_priority.tpl' %} | |
|
2 | ||||
|
3 | ||||
2 | {% block in_prompt %} |
|
4 | {% block in_prompt %} | |
3 |
In[{{cell.prompt_number if cell.prompt_number else ' '}}]: |
|
5 | In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]: | |
|
6 | {% endblock in_prompt %} | |||
4 |
|
7 | |||
5 | {% block output_prompt %}{% if cell.haspyout %}Out[{{cell.prompt_number}}]: |
|
8 | {% block output_prompt %} | |
6 | {%- endif %}{%- endblock output_prompt %} |
|
9 | {% if cell.haspyout %} | |
|
10 | Out[{{ cell.prompt_number }}]: | |||
|
11 | {%- endif %} | |||
|
12 | {%- endblock output_prompt %} | |||
7 |
|
13 | |||
8 | {% block input %} |
|
14 | {% block input %} | |
9 | ``` |
|
15 | ``` | |
10 | {{ cell.input}} |
|
16 | {{ cell.input }} | |
11 | ``` |
|
17 | ``` | |
12 | {% endblock input %} |
|
18 | {% endblock input %} | |
13 |
|
19 | |||
14 | {% block pyerr %} |
|
20 | {% block pyerr %} | |
15 | {{ super() }} |
|
21 | {{ super() }} | |
16 | {% endblock pyerr %} |
|
22 | {% endblock pyerr %} | |
17 |
|
23 | |||
18 | {% block traceback_line %} |
|
24 | {% block traceback_line %} | |
19 |
{{ line |indent| strip_ansi }} |
|
25 | {{ line | indent | strip_ansi }} | |
|
26 | {% endblock traceback_line %} | |||
20 |
|
27 | |||
21 | {% block pyout %} |
|
28 | {% block pyout %} | |
22 |
{% block data_priority scoped %} |
|
29 | {% block data_priority scoped %} | |
|
30 | {{ super() }} | |||
|
31 | {% endblock %} | |||
23 | {% endblock pyout %} |
|
32 | {% endblock pyout %} | |
24 |
|
33 | |||
25 | {% block stream %} |
|
34 | {% block stream %} | |
26 | {{ output.text| indent }} |
|
35 | {{ output.text | indent }} | |
27 | {% endblock stream %} |
|
36 | {% endblock stream %} | |
28 |
|
37 | |||
29 |
|
||||
30 |
|
||||
31 |
|
||||
32 | {% block data_svg %} |
|
38 | {% block data_svg %} | |
33 | [!image]({{output.svg_filename}}) |
|
39 | [!image]({{ output.svg_filename }}) | |
34 | {% endblock data_svg %} |
|
40 | {% endblock data_svg %} | |
35 |
|
41 | |||
36 | {% block data_png %} |
|
42 | {% block data_png %} | |
37 | [!image]({{output.png_filename}}) |
|
43 | [!image]({{ output.png_filename }}) | |
38 | {% endblock data_png %} |
|
44 | {% endblock data_png %} | |
39 |
|
45 | |||
40 | {% block data_jpg %} |
|
46 | {% block data_jpg %} | |
41 | [!image]({{output.jpg_filename}}) |
|
47 | [!image]({{ output.jpg_filename }}) | |
42 | {% endblock data_jpg %} |
|
48 | {% endblock data_jpg %} | |
43 |
|
49 | |||
44 |
|
||||
45 |
|
||||
46 | {% block data_latex %} |
|
50 | {% block data_latex %} | |
47 | $$ |
|
51 | $$ | |
48 | {{output.latex}} |
|
52 | {{ output.latex }} | |
49 | $$ |
|
53 | $$ | |
50 | {% endblock data_latex %} |
|
54 | {% endblock data_latex %} | |
51 |
|
55 | |||
52 | {% block data_text scoped %} |
|
56 | {% block data_text scoped %} | |
53 |
|
||||
54 | {{output.text | indent}} |
|
57 | {{ output.text | indent }} | |
55 |
|
||||
56 | {% endblock data_text %} |
|
58 | {% endblock data_text %} | |
57 |
|
59 | |||
58 | {% block markdowncell scoped %} |
|
60 | {% block markdowncell scoped %} | |
59 | {{ cell.source | wrap_text(80)}} |
|
61 | {{ cell.source | wrap_text(80) }} | |
60 | {% endblock markdowncell %} |
|
62 | {% endblock markdowncell %} | |
61 |
|
63 | |||
62 | {% block headingcell scoped %} |
|
64 | {% block headingcell scoped %} | |
63 |
|
||||
64 | {{ '#' * cell.level }} {{ cell.source | replace('\n', ' ') }} |
|
65 | {{ '#' * cell.level }} {{ cell.source | replace('\n', ' ') }} | |
65 |
|
||||
66 | {% endblock headingcell %} |
|
66 | {% endblock headingcell %} | |
67 |
|
67 | |||
68 |
{% block rawcell scoped %} |
|
68 | {% block rawcell scoped %} | |
|
69 | {{ cell.source }} | |||
69 | {% endblock rawcell %} |
|
70 | {% endblock rawcell %} | |
70 |
|
71 | |||
71 | {% block unknowncell scoped %} |
|
72 | {% block unknowncell scoped %} | |
72 | unknown type {{cell.type}} |
|
73 | unknown type {{ cell.type }} | |
73 |
{% endblock unknowncell %} |
|
74 | {% endblock unknowncell %} |
@@ -1,56 +1,55 | |||||
1 | {%- extends 'null.tpl' -%} |
|
1 | {%- extends 'null.tpl' -%} | |
2 |
|
2 | |||
|
3 | ||||
3 | {% block in_prompt %} |
|
4 | {% block in_prompt %} | |
4 | # In[{{cell.prompt_number if cell.prompt_number else ' '}}]: |
|
5 | # In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]: | |
5 | {% endblock in_prompt %} |
|
6 | {% endblock in_prompt %} | |
6 |
|
7 | |||
7 | {% block output_prompt %} |
|
8 | {% block output_prompt %} | |
8 |
# Out[{{cell.prompt_number}}]: |
|
9 | # Out[{{ cell.prompt_number }}]: | |
|
10 | {% endblock output_prompt %} | |||
9 |
|
11 | |||
10 | {% block input %}{{ cell.input | ipython2python }} |
|
12 | {% block input %} | |
|
13 | {{ cell.input | ipython2python }} | |||
11 | {% endblock input %} |
|
14 | {% endblock input %} | |
12 |
|
15 | |||
13 |
|
||||
14 | {# Those Two are for error displaying |
|
16 | {# Those Two are for error displaying | |
15 | even if the first one seem to do nothing, |
|
17 | even if the first one seem to do nothing, | |
16 | it introduces a new line |
|
18 | it introduces a new line | |
17 |
|
||||
18 | #} |
|
19 | #} | |
19 |
{% block pyerr %} |
|
20 | {% block pyerr %} | |
|
21 | {{ super() }} | |||
20 | {% endblock pyerr %} |
|
22 | {% endblock pyerr %} | |
21 |
|
23 | |||
22 | {% block traceback_line %} |
|
24 | {% block traceback_line %} | |
23 |
{{ line |indent| strip_ansi }} |
|
25 | {{ line | indent | strip_ansi }} | |
|
26 | {% endblock traceback_line %} | |||
24 | {# .... #} |
|
27 | {# .... #} | |
25 |
|
28 | |||
26 |
|
||||
27 | {% block pyout %} |
|
29 | {% block pyout %} | |
28 | {{ output.text| indent | comment_lines }} |
|
30 | {{ output.text | indent | comment_lines }} | |
29 | {% endblock pyout %} |
|
31 | {% endblock pyout %} | |
30 |
|
32 | |||
31 | {% block stream %} |
|
33 | {% block stream %} | |
32 | {{ output.text| indent | comment_lines }} |
|
34 | {{ output.text | indent | comment_lines }} | |
33 | {% endblock stream %} |
|
35 | {% endblock stream %} | |
34 |
|
36 | |||
35 |
|
||||
36 |
|
||||
37 |
|
||||
38 | {% block display_data scoped %} |
|
37 | {% block display_data scoped %} | |
39 | # image file: |
|
38 | # image file: | |
40 | {% endblock display_data %} |
|
39 | {% endblock display_data %} | |
41 |
|
40 | |||
42 | {% block markdowncell scoped %} |
|
41 | {% block markdowncell scoped %} | |
43 | {{ cell.source | comment_lines }} |
|
42 | {{ cell.source | comment_lines }} | |
44 | {% endblock markdowncell %} |
|
43 | {% endblock markdowncell %} | |
45 |
|
44 | |||
46 | {% block headingcell scoped %} |
|
45 | {% block headingcell scoped %} | |
47 | {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }} |
|
46 | {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }} | |
48 | {% endblock headingcell %} |
|
47 | {% endblock headingcell %} | |
49 |
|
48 | |||
50 | {% block rawcell scoped %} |
|
49 | {% block rawcell scoped %} | |
51 | {{ cell.source | comment_lines }} |
|
50 | {{ cell.source | comment_lines }} | |
52 | {% endblock rawcell %} |
|
51 | {% endblock rawcell %} | |
53 |
|
52 | |||
54 | {% block unknowncell scoped %} |
|
53 | {% block unknowncell scoped %} | |
55 | unknown type {{cell.type}} |
|
54 | unknown type {{ cell.type }} | |
56 |
{% endblock unknowncell %} |
|
55 | {% endblock unknowncell %} |
@@ -1,17 +1,16 | |||||
1 | {%- extends 'reveal_internals/reveal_cells.tpl' -%} |
|
1 | {%- extends 'reveal_internals/reveal_cells.tpl' -%} | |
2 |
|
2 | |||
3 |
|
3 | |||
4 |
|
||||
5 | {%- block any_cell scoped -%} |
|
4 | {%- block any_cell scoped -%} | |
6 | {%- if cell.metadata.align_type in ['Left'] -%} |
|
5 | {%- if cell.metadata.align_type in ['Left'] -%} | |
7 | {{ super() }} |
|
6 | {{ super() }} | |
8 | {%- elif cell.metadata.align_type in ['center'] -%} |
|
7 | {%- elif cell.metadata.align_type in ['center'] -%} | |
9 | <div style="text-align:center"> |
|
8 | <div style="text-align:center"> | |
10 | {{ super() }} |
|
9 | {{ super() }} | |
11 | </div> |
|
10 | </div> | |
12 | {%- elif cell.metadata.align_type in ['right'] -%} |
|
11 | {%- elif cell.metadata.align_type in ['right'] -%} | |
13 | <div style="text-align:right"> |
|
12 | <div style="text-align:right"> | |
14 | {{ super() }} |
|
13 | {{ super() }} | |
15 | </div> |
|
14 | </div> | |
16 | {%- endif -%} |
|
15 | {%- endif -%} | |
17 | {%- endblock any_cell -%} |
|
16 | {%- endblock any_cell -%} |
@@ -1,21 +1,19 | |||||
1 | {%- extends 'html_basic.tpl' -%} |
|
1 | {%- extends 'html_basic.tpl' -%} | |
2 |
|
2 | |||
3 |
|
||||
4 |
|
||||
5 | {%- block any_cell scoped -%} |
|
3 | {%- block any_cell scoped -%} | |
6 | {%- if cell.metadata.slide_type in ['-', 'slide', 'subslide'] -%} |
|
4 | {%- if cell.metadata.slide_type in ['-', 'slide', 'subslide'] -%} | |
7 | {{ super() }} |
|
5 | {{ super() }} | |
8 | {%- elif cell.metadata.slide_type in ['skip'] -%} |
|
6 | {%- elif cell.metadata.slide_type in ['skip'] -%} | |
9 | <div style=display:none> |
|
7 | <div style=display:none> | |
10 | {{ super() }} |
|
8 | {{ super() }} | |
11 | </div> |
|
9 | </div> | |
12 | {%- elif cell.metadata.slide_type in ['notes'] -%} |
|
10 | {%- elif cell.metadata.slide_type in ['notes'] -%} | |
13 | <aside class="notes"> |
|
11 | <aside class="notes"> | |
14 | {{ super() }} |
|
12 | {{ super() }} | |
15 | </aside> |
|
13 | </aside> | |
16 | {%- elif cell.metadata.slide_type in ['fragment'] -%} |
|
14 | {%- elif cell.metadata.slide_type in ['fragment'] -%} | |
17 | <div class="fragment"> |
|
15 | <div class="fragment"> | |
18 | {{ super() }} |
|
16 | {{ super() }} | |
19 | </div> |
|
17 | </div> | |
20 | {%- endif -%} |
|
18 | {%- endif -%} | |
21 | {%- endblock any_cell -%} |
|
19 | {%- endblock any_cell -%} |
@@ -1,17 +1,16 | |||||
1 | {%- extends 'reveal_internals/subslides.tpl' -%} |
|
1 | {%- extends 'reveal_internals/subslides.tpl' -%} | |
2 |
|
2 | |||
3 |
|
3 | |||
4 |
|
||||
5 | {%- block any_cell scoped -%} |
|
4 | {%- block any_cell scoped -%} | |
6 | {%- if cell.metadata.slide_type in ['slide'] -%} |
|
5 | {%- if cell.metadata.slide_type in ['slide'] -%} | |
7 | <section> |
|
6 | <section> | |
8 | <section> |
|
7 | <section> | |
9 | {%- endif -%} |
|
8 | {%- endif -%} | |
10 |
|
9 | |||
11 | {{ super() }} |
|
10 | {{ super() }} | |
12 |
|
11 | |||
13 | {%- if cell.metadata.slide_helper in ['slide_end'] -%} |
|
12 | {%- if cell.metadata.slide_helper in ['slide_end'] -%} | |
14 | </section> |
|
13 | </section> | |
15 | </section> |
|
14 | </section> | |
16 | {%- endif -%} |
|
15 | {%- endif -%} | |
17 | {%- endblock any_cell -%} |
|
16 | {%- endblock any_cell -%} |
@@ -1,15 +1,14 | |||||
1 | {%- extends 'reveal_internals/align_reveal_cells.tpl' -%} |
|
1 | {%- extends 'reveal_internals/align_reveal_cells.tpl' -%} | |
2 |
|
2 | |||
3 |
|
3 | |||
4 |
|
||||
5 | {%- block any_cell scoped -%} |
|
4 | {%- block any_cell scoped -%} | |
6 | {%- if cell.metadata.slide_type in ['subslide'] -%} |
|
5 | {%- if cell.metadata.slide_type in ['subslide'] -%} | |
7 | <section> |
|
6 | <section> | |
8 | {%- endif -%} |
|
7 | {%- endif -%} | |
9 |
|
8 | |||
10 | {{ super() }} |
|
9 | {{ super() }} | |
11 |
|
10 | |||
12 | {%- if cell.metadata.slide_helper in ['subslide_end'] -%} |
|
11 | {%- if cell.metadata.slide_helper in ['subslide_end'] -%} | |
13 | </section> |
|
12 | </section> | |
14 | {%- endif -%} |
|
13 | {%- endif -%} | |
15 | {%- endblock any_cell -%} |
|
14 | {%- endblock any_cell -%} |
@@ -1,75 +1,76 | |||||
1 | {%- extends 'display_priority.tpl' -%} |
|
1 | {%- extends 'display_priority.tpl' -%} | |
|
2 | ||||
|
3 | ||||
2 | {% block in_prompt -%} |
|
4 | {% block in_prompt -%} | |
3 | In[{{cell.prompt_number if cell.prompt_number else ' '}}]: |
|
5 | In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]: | |
4 |
|
||||
5 | .. code:: python |
|
6 | .. code:: python | |
6 |
|
||||
7 | {% endblock in_prompt %} |
|
7 | {% endblock in_prompt %} | |
8 |
|
8 | |||
9 |
{% block output_prompt %} |
|
9 | {% block output_prompt %} | |
10 | Out[{{cell.prompt_number}}]:{% endif %}{% endblock output_prompt %} |
|
10 | {% if cell.haspyout -%} | |
11 |
|
11 | Out[{{ cell.prompt_number }}]: | ||
12 | {% block input %}{{ cell.input | indent}} |
|
12 | {% endif %} | |
|
13 | {% endblock output_prompt %} | |||
13 |
|
14 | |||
|
15 | {% block input %} | |||
|
16 | {{ cell.input | indent}} | |||
14 | {% endblock input %} |
|
17 | {% endblock input %} | |
15 |
|
18 | |||
16 |
{% block pyerr %} |
|
19 | {% block pyerr %} | |
|
20 | :: | |||
17 | {{ super() }} |
|
21 | {{ super() }} | |
18 | {% endblock pyerr %} |
|
22 | {% endblock pyerr %} | |
19 |
|
23 | |||
20 | {% block traceback_line %} |
|
24 | {% block traceback_line %} | |
21 |
{{ line |indent| strip_ansi }} |
|
25 | {{ line | indent | strip_ansi }} | |
|
26 | {% endblock traceback_line %} | |||
22 |
|
27 | |||
23 | {% block pyout %} |
|
28 | {% block pyout %} | |
24 |
{% block data_priority scoped %} |
|
29 | {% block data_priority scoped %} | |
|
30 | {{ super() }} | |||
|
31 | {% endblock %} | |||
25 | {% endblock pyout %} |
|
32 | {% endblock pyout %} | |
26 |
|
33 | |||
27 | {% block stream %} |
|
34 | {% block stream %} | |
28 | .. parsed-literal:: |
|
35 | .. parsed-literal:: | |
29 |
|
36 | |||
30 | {{ output.text| indent }} |
|
37 | {{ output.text | indent }} | |
31 | {% endblock stream %} |
|
38 | {% endblock stream %} | |
32 |
|
39 | |||
33 |
|
40 | {% block data_svg %} | ||
34 |
|
41 | .. image:: {{ output.svg_filename }} | ||
35 |
|
||||
36 | {% block data_svg %}.. image:: {{output.svg_filename}} |
|
|||
37 |
|
||||
38 | {% endblock data_svg %} |
|
42 | {% endblock data_svg %} | |
39 |
|
43 | |||
40 | {% block data_png %}.. image:: {{output.png_filename}} |
|
44 | {% block data_png %} | |
41 |
|
45 | .. image:: {{ output.png_filename }} | ||
42 | {% endblock data_png %} |
|
46 | {% endblock data_png %} | |
43 |
|
47 | |||
44 | {% block data_jpg %}..jpg image:: {{output.jpg_filename}} |
|
48 | {% block data_jpg %} | |
45 |
|
49 | ..jpg image:: {{ output.jpg_filename }} | ||
46 | {% endblock data_jpg %} |
|
50 | {% endblock data_jpg %} | |
47 |
|
51 | |||
48 |
|
52 | {% block data_latex %} | ||
49 |
|
53 | .. math:: | ||
50 | {% block data_latex %}.. math:: |
|
|||
51 |
|
||||
52 | {{output.latex| indent}} |
|
54 | {{ output.latex | indent }} | |
53 |
|
||||
54 | {% endblock data_latex %} |
|
55 | {% endblock data_latex %} | |
55 |
|
56 | |||
56 |
{% block data_text scoped %} |
|
57 | {% block data_text scoped %} | |
57 |
|
58 | .. parsed-literal:: | ||
58 | {{output.text | indent}} |
|
59 | {{ output.text | indent }} | |
59 |
|
||||
60 | {% endblock data_text %} |
|
60 | {% endblock data_text %} | |
61 |
|
61 | |||
62 |
{% block markdowncell scoped %} |
|
62 | {% block markdowncell scoped %} | |
|
63 | {{ cell.source | markdown2rst }} | |||
63 | {% endblock markdowncell %} |
|
64 | {% endblock markdowncell %} | |
64 |
|
65 | |||
65 | {% block headingcell scoped %} |
|
66 | {% block headingcell scoped %} | |
66 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }} |
|
67 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }} | |
67 |
|
||||
68 | {% endblock headingcell %} |
|
68 | {% endblock headingcell %} | |
69 |
|
69 | |||
70 |
{% block rawcell scoped %} |
|
70 | {% block rawcell scoped %} | |
|
71 | {{ cell.source }} | |||
71 | {% endblock rawcell %} |
|
72 | {% endblock rawcell %} | |
72 |
|
73 | |||
73 | {% block unknowncell scoped %} |
|
74 | {% block unknowncell scoped %} | |
74 | unknown type {{cell.type}} |
|
75 | unknown type {{cell.type}} | |
75 |
{% endblock unknowncell %} |
|
76 | {% endblock unknowncell %} |
@@ -1,6 +1,6 | |||||
1 | ## Template skeleton |
|
1 | ## Template skeleton | |
2 |
|
2 | |||
3 | This contain skeleton template that you probably don't want |
|
3 | This contain skeleton template that you probably don't want | |
4 | to inherit directly. |
|
4 | to inherit directly. | |
5 |
|
5 | |||
6 | do not moify the content of the 'tex' folder which is generated by running 'make' in this folder. |
|
6 | do not modify the content of the 'tex' folder which is generated by running 'make' in this folder. |
@@ -1,185 +1,185 | |||||
1 | {%- extends 'reveal_internals/slides.tpl' -%} |
|
1 | {%- extends 'reveal_internals/slides.tpl' -%} | |
2 |
|
2 | |||
3 |
|
3 | |||
4 | {% block header %} |
|
4 | {% block header %} | |
5 | <!DOCTYPE html> |
|
5 | <!DOCTYPE html> | |
6 | <html> |
|
6 | <html> | |
7 | <head> |
|
7 | <head> | |
8 |
|
8 | |||
9 | <meta charset="utf-8" /> |
|
9 | <meta charset="utf-8" /> | |
10 | <meta http-equiv="X-UA-Compatible" content="chrome=1"> |
|
10 | <meta http-equiv="X-UA-Compatible" content="chrome=1"> | |
11 |
|
11 | |||
12 | <meta name="apple-mobile-web-app-capable" content="yes" /> |
|
12 | <meta name="apple-mobile-web-app-capable" content="yes" /> | |
13 | <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> |
|
13 | <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> | |
14 |
|
14 | |||
15 | <!-- General and theme style sheets --> |
|
15 | <!-- General and theme style sheets --> | |
16 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/reveal.css"> |
|
16 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/reveal.css"> | |
17 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/theme/simple.css" id="theme"> |
|
17 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/theme/simple.css" id="theme"> | |
18 |
|
18 | |||
19 | <!-- For syntax highlighting --> |
|
19 | <!-- For syntax highlighting --> | |
20 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/lib/css/zenburn.css"> |
|
20 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/lib/css/zenburn.css"> | |
21 |
|
21 | |||
22 | <!-- If the query includes 'print-pdf', use the PDF print sheet --> |
|
22 | <!-- If the query includes 'print-pdf', use the PDF print sheet --> | |
23 | <script> |
|
23 | <script> | |
24 | document.write( '<link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); |
|
24 | document.write( '<link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); | |
25 | </script> |
|
25 | </script> | |
26 |
|
26 | |||
27 | <!--[if lt IE 9]> |
|
27 | <!--[if lt IE 9]> | |
28 | <script src="{{resources.reveal.url_prefix}}/lib/js/html5shiv.js"></script> |
|
28 | <script src="{{resources.reveal.url_prefix}}/lib/js/html5shiv.js"></script> | |
29 | <![endif]--> |
|
29 | <![endif]--> | |
30 |
|
30 | |||
31 | {% for css in resources.inlining.css -%} |
|
31 | {% for css in resources.inlining.css -%} | |
32 | <style type="text/css"> |
|
32 | <style type="text/css"> | |
33 | {{css}} |
|
33 | {{ css }} | |
34 | </style> |
|
34 | </style> | |
35 | {% endfor %} |
|
35 | {% endfor %} | |
36 |
|
36 | |||
37 | <style type="text/css"> |
|
37 | <style type="text/css"> | |
38 | /* Overrides of notebook CSS for static HTML export */ |
|
38 | /* Overrides of notebook CSS for static HTML export */ | |
39 | .reveal { |
|
39 | .reveal { | |
40 | font-size: 20px; |
|
40 | font-size: 20px; | |
41 | overflow-y: auto; |
|
41 | overflow-y: auto; | |
42 | overflow-x: hidden; |
|
42 | overflow-x: hidden; | |
43 | } |
|
43 | } | |
44 | .reveal pre { |
|
44 | .reveal pre { | |
45 | width: 95%; |
|
45 | width: 95%; | |
46 | padding: 0.4em; |
|
46 | padding: 0.4em; | |
47 | margin: 0px; |
|
47 | margin: 0px; | |
48 | font-family: monospace, sans-serif; |
|
48 | font-family: monospace, sans-serif; | |
49 | font-size: 80%; |
|
49 | font-size: 80%; | |
50 | box-shadow: 0px 0px 0px rgba(0, 0, 0, 0); |
|
50 | box-shadow: 0px 0px 0px rgba(0, 0, 0, 0); | |
51 | } |
|
51 | } | |
52 | .reveal section img { |
|
52 | .reveal section img { | |
53 | border: 0px solid black; |
|
53 | border: 0px solid black; | |
54 | box-shadow: 0 0 10px rgba(0, 0, 0, 0); |
|
54 | box-shadow: 0 0 10px rgba(0, 0, 0, 0); | |
55 | } |
|
55 | } | |
56 | .reveal .slides { |
|
56 | .reveal .slides { | |
57 | text-align: left; |
|
57 | text-align: left; | |
58 | } |
|
58 | } | |
59 | .reveal.fade { |
|
59 | .reveal.fade { | |
60 | opacity: 1; |
|
60 | opacity: 1; | |
61 | } |
|
61 | } | |
62 | div.input_area { |
|
62 | div.input_area { | |
63 | padding: 0.06em; |
|
63 | padding: 0.06em; | |
64 | } |
|
64 | } | |
65 | div.code_cell { |
|
65 | div.code_cell { | |
66 | background-color: transparent; |
|
66 | background-color: transparent; | |
67 | } |
|
67 | } | |
68 | div.prompt { |
|
68 | div.prompt { | |
69 | width: 11ex; |
|
69 | width: 11ex; | |
70 | padding: 0.4em; |
|
70 | padding: 0.4em; | |
71 | margin: 0px; |
|
71 | margin: 0px; | |
72 | font-family: monospace, sans-serif; |
|
72 | font-family: monospace, sans-serif; | |
73 | font-size: 80%; |
|
73 | font-size: 80%; | |
74 | text-align: right; |
|
74 | text-align: right; | |
75 | } |
|
75 | } | |
76 | div.output_area pre { |
|
76 | div.output_area pre { | |
77 | font-family: monospace, sans-serif; |
|
77 | font-family: monospace, sans-serif; | |
78 | font-size: 80%; |
|
78 | font-size: 80%; | |
79 | } |
|
79 | } | |
80 | div.output_prompt { |
|
80 | div.output_prompt { | |
81 | /* 5px right shift to account for margin in parent container */ |
|
81 | /* 5px right shift to account for margin in parent container */ | |
82 | margin: 5px 5px 0 0; |
|
82 | margin: 5px 5px 0 0; | |
83 | } |
|
83 | } | |
84 | .rendered_html p { |
|
84 | .rendered_html p { | |
85 | text-align: inherit; |
|
85 | text-align: inherit; | |
86 | } |
|
86 | } | |
87 | </style> |
|
87 | </style> | |
88 |
|
88 | |||
89 | <!-- Custom stylesheet, it must be in the same directory as the html file --> |
|
89 | <!-- Custom stylesheet, it must be in the same directory as the html file --> | |
90 | <link rel="stylesheet" href="custom.css"> |
|
90 | <link rel="stylesheet" href="custom.css"> | |
91 |
|
91 | |||
92 | </head> |
|
92 | </head> | |
93 | {% endblock header%} |
|
93 | {% endblock header%} | |
94 |
|
94 | |||
95 |
|
95 | |||
96 | {% block body %} |
|
96 | {% block body %} | |
97 | <body> |
|
97 | <body> | |
98 |
<div class="reveal"> |
|
98 | <div class="reveal"> | |
99 |
|
99 | <div class="slides"> | ||
100 | {{ super() }} |
|
100 | {{ super() }} | |
101 |
|
101 | </div> | ||
102 |
</div> |
|
102 | </div> | |
103 |
|
103 | |||
104 | <!-- |
|
104 | <!-- | |
105 | Uncomment the following block and the addthis_widget.js (see below inside dependencies) |
|
105 | Uncomment the following block and the addthis_widget.js (see below inside dependencies) | |
106 | to get enable social buttons. |
|
106 | to get enable social buttons. | |
107 | --> |
|
107 | --> | |
108 |
|
108 | |||
109 | <!-- |
|
109 | <!-- | |
110 | <div class="addthis_toolbox addthis_floating_style addthis_32x32_style" style="left:20px;top:20px;"> |
|
110 | <div class="addthis_toolbox addthis_floating_style addthis_32x32_style" style="left:20px;top:20px;"> | |
111 | <a class="addthis_button_twitter"></a> |
|
111 | <a class="addthis_button_twitter"></a> | |
112 | <a class="addthis_button_google_plusone_share"></a> |
|
112 | <a class="addthis_button_google_plusone_share"></a> | |
113 | <a class="addthis_button_linkedin"></a> |
|
113 | <a class="addthis_button_linkedin"></a> | |
114 | <a class="addthis_button_facebook"></a> |
|
114 | <a class="addthis_button_facebook"></a> | |
115 | <a class="addthis_button_more"></a> |
|
115 | <a class="addthis_button_more"></a> | |
116 | </div> |
|
116 | </div> | |
117 | --> |
|
117 | --> | |
118 |
|
118 | |||
119 | <script src="{{resources.reveal.url_prefix}}/lib/js/head.min.js"></script> |
|
119 | <script src="{{resources.reveal.url_prefix}}/lib/js/head.min.js"></script> | |
120 |
|
120 | |||
121 | <script src="{{resources.reveal.url_prefix}}/js/reveal.js"></script> |
|
121 | <script src="{{resources.reveal.url_prefix}}/js/reveal.js"></script> | |
122 |
|
122 | |||
123 | <script> |
|
123 | <script> | |
124 |
|
124 | |||
125 | // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration |
|
125 | // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration | |
126 | Reveal.initialize({ |
|
126 | Reveal.initialize({ | |
127 | controls: true, |
|
127 | controls: true, | |
128 | progress: true, |
|
128 | progress: true, | |
129 | history: true, |
|
129 | history: true, | |
130 |
|
130 | |||
131 | theme: Reveal.getQueryHash().theme, // available themes are in /css/theme |
|
131 | theme: Reveal.getQueryHash().theme, // available themes are in /css/theme | |
132 | transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none |
|
132 | transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none | |
133 |
|
133 | |||
134 | // Optional libraries used to extend on reveal.js |
|
134 | // Optional libraries used to extend on reveal.js | |
135 | dependencies: [ |
|
135 | dependencies: [ | |
136 | { src: "{{resources.reveal.url_prefix}}/lib/js/classList.js", condition: function() { return !document.body.classList; } }, |
|
136 | { src: "{{resources.reveal.url_prefix}}/lib/js/classList.js", condition: function() { return !document.body.classList; } }, | |
137 | { src: "{{resources.reveal.url_prefix}}/plugin/highlight/highlight.js", async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, |
|
137 | { src: "{{resources.reveal.url_prefix}}/plugin/highlight/highlight.js", async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, | |
138 | { src: "{{resources.reveal.url_prefix}}/plugin/notes/notes.js", async: true, condition: function() { return !!document.body.classList; } } |
|
138 | { src: "{{resources.reveal.url_prefix}}/plugin/notes/notes.js", async: true, condition: function() { return !!document.body.classList; } } | |
139 | // { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true}, |
|
139 | // { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true}, | |
140 | ] |
|
140 | ] | |
141 | }); |
|
141 | }); | |
142 | </script> |
|
142 | </script> | |
143 |
|
143 | |||
144 | <!-- MathJax configuration --> |
|
144 | <!-- MathJax configuration --> | |
145 | <script type="text/x-mathjax-config"> |
|
145 | <script type="text/x-mathjax-config"> | |
146 | MathJax.Hub.Config({ |
|
146 | MathJax.Hub.Config({ | |
147 | tex2jax: { |
|
147 | tex2jax: { | |
148 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], |
|
148 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |
149 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] |
|
149 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | |
150 | }, |
|
150 | }, | |
151 | displayAlign: 'left', // Change this to 'center' to center equations. |
|
151 | displayAlign: 'left', // Change this to 'center' to center equations. | |
152 | "HTML-CSS": { |
|
152 | "HTML-CSS": { | |
153 | styles: {'.MathJax_Display': {"margin": 0}} |
|
153 | styles: {'.MathJax_Display': {"margin": 0}} | |
154 | } |
|
154 | } | |
155 | }); |
|
155 | }); | |
156 | </script> |
|
156 | </script> | |
157 | <!-- End of mathjax configuration --> |
|
157 | <!-- End of mathjax configuration --> | |
158 |
|
158 | |||
159 | <script> |
|
159 | <script> | |
160 | // We wait for the onload function to load MathJax after the page is completely loaded. |
|
160 | // We wait for the onload function to load MathJax after the page is completely loaded. | |
161 | // MathJax is loaded 1 unit of time after the page is ready. |
|
161 | // MathJax is loaded 1 unit of time after the page is ready. | |
162 | // This hack prevent problems when you load multiple js files (i.e. social button from addthis). |
|
162 | // This hack prevent problems when you load multiple js files (i.e. social button from addthis). | |
163 | // |
|
163 | // | |
164 | window.onload = function () { |
|
164 | window.onload = function () { | |
165 | setTimeout(function () { |
|
165 | setTimeout(function () { | |
166 | var script = document.createElement("script"); |
|
166 | var script = document.createElement("script"); | |
167 | script.type = "text/javascript"; |
|
167 | script.type = "text/javascript"; | |
168 | script.src = "https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"; |
|
168 | script.src = "https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"; | |
169 | document.getElementsByTagName("head")[0].appendChild(script); |
|
169 | document.getElementsByTagName("head")[0].appendChild(script); | |
170 | },1) |
|
170 | },1) | |
171 | } |
|
171 | } | |
172 | </script> |
|
172 | </script> | |
173 |
|
173 | |||
174 | <script> |
|
174 | <script> | |
175 | Reveal.addEventListener( 'slidechanged', function( event ) { |
|
175 | Reveal.addEventListener( 'slidechanged', function( event ) { | |
176 | MathJax.Hub.Rerender(event.currentSlide); |
|
176 | MathJax.Hub.Rerender(event.currentSlide); | |
177 | }); |
|
177 | }); | |
178 | </script> |
|
178 | </script> | |
179 |
|
179 | |||
180 | </body> |
|
180 | </body> | |
181 | {% endblock body %} |
|
181 | {% endblock body %} | |
182 |
|
182 | |||
183 | {% block footer %} |
|
183 | {% block footer %} | |
184 | </html> |
|
184 | </html> | |
185 | {% endblock footer %} |
|
185 | {% endblock footer %} |
General Comments 0
You need to be logged in to leave comments.
Login now