##// END OF EJS Templates
Fixed mathjax inline and some not implemented notice.
damianavila -
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 cell.metadata.slide_type = cell.metadata.get('slideshow', {}).get('slide_type', None)
175 if cell.metadata.slide_type is None:
175 if cell.metadata.slide_type is None:
176 cell.metadata.slide_type = '-'
176 cell.metadata.slide_type = '-'
177 if cell.metadata.slide_type in ['slide']:
177 if cell.metadata.slide_type in ['slide']:
178 worksheet.cells[i - 1].metadata.slide_helper = 'slide_end'
178 worksheet.cells[i - 1].metadata.slide_helper = 'slide_end'
179 if cell.metadata.slide_type in ['subslide']:
179 if cell.metadata.slide_type in ['subslide']:
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 });
@@ -4986,6 +4986,7 b' X07vG9Z4QUTEBQ4dOkRpaSklJSVnnQPx/xV9BfkfDyZLAAAAAElFTkSuQmCC'
4986 <!-- MathJax configuration -->
4986 <!-- MathJax configuration -->
4987 <script type="text/x-mathjax-config">
4987 <script type="text/x-mathjax-config">
4988 MathJax.Hub.Config({
4988 MathJax.Hub.Config({
4989 <<<<<<< HEAD
4989 tex2jax: {
4990 tex2jax: {
4990 inlineMath: [ ['$','$'], ["\\(","\\)"] ],
4991 inlineMath: [ ['$','$'], ["\\(","\\)"] ],
4991 displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
4992 displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
@@ -4994,6 +4995,16 b" displayAlign: 'left', // Change this to 'center' to center equations."
4994 "HTML-CSS": {
4995 "HTML-CSS": {
4995 styles: {'.MathJax_Display': {"margin": 0}}
4996 styles: {'.MathJax_Display': {"margin": 0}}
4996 }
4997 }
4998 =======
4999 tex2jax: {
5000 inlineMath: [ ['$','$'], ["\\(","\\)"] ],
5001 displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
5002 },
5003 displayAlign: 'center', // Change this to 'center' to center equations.
5004 "HTML-CSS": {
5005 styles: {'.MathJax_Display': {"margin": 0}}
5006 }
5007 >>>>>>> Fixed mathjax inline and some not implemented notice.
4997 });
5008 });
4998 </script>
5009 </script>
4999 <!-- End of mathjax configuration -->
5010 <!-- End of mathjax configuration -->
@@ -5020,7 +5031,6 b' dependencies: ['
5020 { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
5031 { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
5021 { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
5032 { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
5022 { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true},
5033 { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true},
5023 { src: 'js/revealmathjax.js', async: true},
5024 { src: 'js/mathjax-onload.js', async: true}
5034 { src: 'js/mathjax-onload.js', async: true}
5025 ]
5035 ]
5026 });
5036 });
General Comments 0
You need to be logged in to leave comments. Login now