##// END OF EJS Templates
Fixing latex rendering bug.
Brian E. Granger -
Show More
@@ -223,6 +223,10 b' var IPython = (function (IPython) {'
223
223
224 CodeCell.prototype.append_display_data = function (json) {
224 CodeCell.prototype.append_display_data = function (json) {
225 this.append_mime_type(json).addClass('output_area');
225 this.append_mime_type(json).addClass('output_area');
226 // If we just output latex, typeset it.
227 if (json.latex !== undefined) {
228 MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
229 };
226 };
230 };
227
231
228
232
@@ -232,12 +236,6 b' var IPython = (function (IPython) {'
232 this.append_html(json.html, element);
236 this.append_html(json.html, element);
233 } else if (json.latex !== undefined) {
237 } else if (json.latex !== undefined) {
234 this.append_latex(json.latex, element);
238 this.append_latex(json.latex, element);
235 // If it is undefined, then we just appended to div.output, which
236 // makes the latex visible and we can typeset it. The typesetting
237 // has to be done after the latex is on the page.
238 if (element === undefined) {
239 MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
240 };
241 } else if (json.svg !== undefined) {
239 } else if (json.svg !== undefined) {
242 this.append_svg(json.svg, element);
240 this.append_svg(json.svg, element);
243 } else if (json.png !== undefined) {
241 } else if (json.png !== undefined) {
General Comments 0
You need to be logged in to leave comments. Login now