<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,&nbsp;<div><br></div><div>It is not supported yet,&nbsp;</div><div><br></div><div><a href="https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/Chapter1_Introduction/Chapter1_Introduction.ipynb">https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/Chapter1_Introduction/Chapter1_Introduction.ipynb</a></div><div><br></div><div>Do it by injecting some JS, you should be able to figure it out. Last cell, you will have to inspect the output by hand</div><div><br></div><div>The relevant part in the ipynb is past at the end of this mail.</div><div><br></div><div>The methods will probably fail to work for next release, but using custom.js with the same code should do the same :</div><div><br></div><div>--&nbsp;</div><div>Matthias&nbsp;</div><div><br></div><div><br></div><div><pre style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: Consolas, 'Liberation Mono', Courier, monospace; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="line" id="LC922" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;script&gt;\n",</div><div class="line" id="LC923" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"    MathJax.Hub.Config({\n",</div><div class="line" id="LC924" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                        TeX: {\n",</div><div class="line" id="LC925" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                           extensions: [\"AMSmath.js\"]\n",</div><div class="line" id="LC926" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                           },\n",</div><div class="line" id="LC927" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                tex2jax: {\n",</div><div class="line" id="LC928" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                    inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n",</div><div class="line" id="LC929" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                    displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\n",</div><div class="line" id="LC930" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                },\n",</div><div class="line" id="LC931" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                displayAlign: 'center', // Change this to 'center' to center equations.\n",</div><div class="line" id="LC932" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                \"HTML-CSS\": {\n",</div><div class="line" id="LC933" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                    styles: {'.MathJax_Display': {\"margin\": 4}}\n",</div><div class="line" id="LC934" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"                }\n",</div><div class="line" id="LC935" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"        });\n",</div><div class="line" id="LC936" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;/script&gt;"</div></pre><div><br></div></div><div><br></div><div><br></div><div><br><div><div>Le 27 mars 2013 à 17:41, giacomo boffi a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>i'm using 0.13.1 as distributed in debian testing, and i'd like to<br>have the displayed equation, in markdown cells, centered<br><br>i have tried injecting simple html around the mathjax/latex code, like<br>in<br><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;center&gt;...&lt;/center&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div style="text-align:center;"&gt;...&lt;/align&gt;<br><br>to no avail <br><br>i've googled that next ipython permits to configure mathjax to suit my<br>desire, but i'd prefer to find a solution working with the debian<br>repository version of ipython<br><br>could anyone kindly help me? thank you in advance,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gb<br><br>_______________________________________________<br>IPython-User mailing list<br><a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-user<br></div></blockquote></div><br></div></body></html>