##// END OF EJS Templates
Fixed mathjax inline and some not implemented notice.
damianavila -
Show More
@@ -165,22 +165,20 b' class ExtractFigureTransformer(ActivatableTransformer):'
165 165 count = count+1
166 166 return cell, other
167 167
168
168 169 class RevealHelpTransformer(ConfigurableTransformers):
169 170
170 171 def __call__(self, nb, other):
171 try :
172 for worksheet in nb.worksheets :
173 for i, cell in enumerate(worksheet.cells):
174 cell.metadata.slide_type = cell.metadata.get('slideshow', {}).get('slide_type', None)
175 if cell.metadata.slide_type is None:
176 cell.metadata.slide_type = '-'
177 if cell.metadata.slide_type in ['slide']:
178 worksheet.cells[i - 1].metadata.slide_helper = 'slide_end'
179 if cell.metadata.slide_type in ['subslide']:
180 worksheet.cells[i - 1].metadata.slide_helper = 'subslide_end'
181 return nb, other
182 except NotImplementedError as error :
183 raise NotImplementedError('should be implemented by subclass')
172 for worksheet in nb.worksheets :
173 for i, cell in enumerate(worksheet.cells):
174 cell.metadata.slide_type = cell.metadata.get('slideshow', {}).get('slide_type', None)
175 if cell.metadata.slide_type is None:
176 cell.metadata.slide_type = '-'
177 if cell.metadata.slide_type in ['slide']:
178 worksheet.cells[i - 1].metadata.slide_helper = 'slide_end'
179 if cell.metadata.slide_type in ['subslide']:
180 worksheet.cells[i - 1].metadata.slide_helper = 'subslide_end'
181 return nb, other
184 182
185 183
186 184 class CSSHtmlHeaderTransformer(ActivatableTransformer):
@@ -92,6 +92,21 b' div.output_prompt {'
92 92 </div>
93 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 110 <script src="reveal/lib/js/head.min.js"></script>
96 111
97 112 <script src="reveal/js/reveal.min.js"></script>
@@ -114,7 +129,6 b' dependencies: ['
114 129 { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
115 130 { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
116 131 { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true},
117 { src: 'js/revealmathjax.js', async: true},
118 132 { src: 'js/mathjax-onload.js', async: true}
119 133 ]
120 134 });
@@ -3962,6 +3962,21 b' X07vG9Z4QUTEBQ4dOkRpaSklJSVnnQPx/xV9BfkfDyZLAAAAAElFTkSuQmCC'
3962 3962 </div>
3963 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 3980 <script src="reveal/lib/js/head.min.js"></script>
3966 3981
3967 3982 <script src="reveal/js/reveal.min.js"></script>
@@ -3984,7 +3999,6 b' dependencies: ['
3984 3999 { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
3985 4000 { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
3986 4001 { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true},
3987 { src: 'js/revealmathjax.js', async: true},
3988 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