Show More
@@ -165,22 +165,20 b' class ExtractFigureTransformer(ActivatableTransformer):' | |||||
165 | count = count+1 |
|
165 | count = count+1 | |
166 | return cell, other |
|
166 | return cell, other | |
167 |
|
167 | |||
|
168 | ||||
168 | class RevealHelpTransformer(ConfigurableTransformers): |
|
169 | class RevealHelpTransformer(ConfigurableTransformers): | |
169 |
|
170 | |||
170 | def __call__(self, nb, other): |
|
171 | def __call__(self, nb, other): | |
171 | try : |
|
172 | for worksheet in nb.worksheets : | |
172 | for worksheet in nb.worksheets : |
|
173 | for i, cell in enumerate(worksheet.cells): | |
173 | for i, cell in enumerate(worksheet.cells): |
|
174 | cell.metadata.slide_type = cell.metadata.get('slideshow', {}).get('slide_type', None) | |
174 |
|
|
175 | if cell.metadata.slide_type is None: | |
175 |
|
|
176 | cell.metadata.slide_type = '-' | |
176 |
|
|
177 | if cell.metadata.slide_type in ['slide']: | |
177 |
i |
|
178 | worksheet.cells[i - 1].metadata.slide_helper = 'slide_end' | |
178 |
|
|
179 | if cell.metadata.slide_type in ['subslide']: | |
179 |
i |
|
180 | worksheet.cells[i - 1].metadata.slide_helper = 'subslide_end' | |
180 | worksheet.cells[i - 1].metadata.slide_helper = 'subslide_end' |
|
181 | return nb, other | |
181 | return nb, other |
|
|||
182 | except NotImplementedError as error : |
|
|||
183 | raise NotImplementedError('should be implemented by subclass') |
|
|||
184 |
|
182 | |||
185 |
|
183 | |||
186 | class CSSHtmlHeaderTransformer(ActivatableTransformer): |
|
184 | class CSSHtmlHeaderTransformer(ActivatableTransformer): |
@@ -92,6 +92,21 b' div.output_prompt {' | |||||
92 | </div> |
|
92 | </div> | |
93 | <!-- End of social buttons --> |
|
93 | <!-- End of social buttons --> | |
94 |
|
94 | |||
|
95 | <!-- MathJax configuration --> | |||
|
96 | <script type="text/x-mathjax-config"> | |||
|
97 | MathJax.Hub.Config({ | |||
|
98 | tex2jax: { | |||
|
99 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |||
|
100 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | |||
|
101 | }, | |||
|
102 | displayAlign: 'center', // Change this to 'center' to center equations. | |||
|
103 | "HTML-CSS": { | |||
|
104 | styles: {'.MathJax_Display': {"margin": 0}} | |||
|
105 | } | |||
|
106 | }); | |||
|
107 | </script> | |||
|
108 | <!-- End of mathjax configuration --> | |||
|
109 | ||||
95 | <script src="reveal/lib/js/head.min.js"></script> |
|
110 | <script src="reveal/lib/js/head.min.js"></script> | |
96 |
|
111 | |||
97 | <script src="reveal/js/reveal.min.js"></script> |
|
112 | <script src="reveal/js/reveal.min.js"></script> | |
@@ -114,7 +129,6 b' dependencies: [' | |||||
114 | { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, |
|
129 | { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, | |
115 | { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, |
|
130 | { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, | |
116 | { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true}, |
|
131 | { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true}, | |
117 | { src: 'js/revealmathjax.js', async: true}, |
|
|||
118 | { src: 'js/mathjax-onload.js', async: true} |
|
132 | { src: 'js/mathjax-onload.js', async: true} | |
119 | ] |
|
133 | ] | |
120 | }); |
|
134 | }); |
@@ -3962,6 +3962,21 b' X07vG9Z4QUTEBQ4dOkRpaSklJSVnnQPx/xV9BfkfDyZLAAAAAElFTkSuQmCC' | |||||
3962 | </div> |
|
3962 | </div> | |
3963 | <!-- End of social buttons --> |
|
3963 | <!-- End of social buttons --> | |
3964 |
|
3964 | |||
|
3965 | <!-- MathJax configuration --> | |||
|
3966 | <script type="text/x-mathjax-config"> | |||
|
3967 | MathJax.Hub.Config({ | |||
|
3968 | tex2jax: { | |||
|
3969 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |||
|
3970 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | |||
|
3971 | }, | |||
|
3972 | displayAlign: 'center', // Change this to 'center' to center equations. | |||
|
3973 | "HTML-CSS": { | |||
|
3974 | styles: {'.MathJax_Display': {"margin": 0}} | |||
|
3975 | } | |||
|
3976 | }); | |||
|
3977 | </script> | |||
|
3978 | <!-- End of mathjax configuration --> | |||
|
3979 | ||||
3965 | <script src="reveal/lib/js/head.min.js"></script> |
|
3980 | <script src="reveal/lib/js/head.min.js"></script> | |
3966 |
|
3981 | |||
3967 | <script src="reveal/js/reveal.min.js"></script> |
|
3982 | <script src="reveal/js/reveal.min.js"></script> | |
@@ -3984,7 +3999,6 b' dependencies: [' | |||||
3984 | { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, |
|
3999 | { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, | |
3985 | { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, |
|
4000 | { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, | |
3986 | { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true}, |
|
4001 | { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true}, | |
3987 | { src: 'js/revealmathjax.js', async: true}, |
|
|||
3988 | { src: 'js/mathjax-onload.js', async: true} |
|
4002 | { src: 'js/mathjax-onload.js', async: true} | |
3989 | ] |
|
4003 | ] | |
3990 | }); |
|
4004 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now