Hi, see http://trac.sagemath.org/ticket/18577
Could you please tell if it fixes your real-life examples (both in sagenb and ipython notebooks) ? Ciao, Thierry On Mon, Jun 01, 2015 at 02:57:19AM -0700, Michal Bejger wrote: > Hi Thierry, > > Using SageManifolds, I can produce long equations quite easily - for > testing > I also decreased the value of MAXBUFFER in > $SAGE_ROOT/local/share/mathjax/config/TeX-AMS_HTML-full.js > (javascript file used by ipython notebook) from 5*1024 to 128. Then I have > > %display latex > M = Manifold(2,'M') > X.<x,y> = M.chart() > h = M.scalar_field(function('h',x,y)) > dh = h.differential() > dh.display() # works > > (dh*dh).display() # is too long and not rendered properly > > Btw. I'm a little baffled at the moment, because the following works fine > > m = matrix(QQ, 16, 16, lambda i, j: i+j) > latex(m) > > Cheers, > > Michał > > > On Sunday, May 31, 2015 at 5:40:28 PM UTC+2, Thierry (sage-googlesucks@xxx) > wrote: > > > > Hi, > > > > it is doable, especially since the bound on MAXBUFFER seems to aim only at > > avoiding infinite loops. > > > > Could you please send an easy way to produce such huge formula in Sage so > > that i can test further ? > > > > Ciao, > > Thierry > > > > > > > > On Thu, May 28, 2015 at 02:21:01PM -0700, Michal Bejger wrote: > > > Dear Sage Devs, > > > > > > I have a question related to the limited length of a TeX expression > > > rendered by MathJax in the notebook - the variable responsible > > > for it is MAXBUFFER [1], and its default value is 5*1024 (5KB), > > > which in most cases is quite all right but sometimes, for example > > > when printing tensor components in SageManifolds > > > (sagemanifolds.obspm.fr), it's not enough. > > > > > > Is it possible to pass a MathJax preamble in the notebook? > > > Or alternatively, can we have MAXBUFFER increased in Sage > > > local/share/mathjax/config/TeX-AMS_HTML-full.js default configuration? > > > > > > Best regards, > > > > > > Michał > > > > > > [1] http://docs.mathjax.org/en/latest/options/TeX.html > > > > > > -- > > > You received this message because you are subscribed to the Google > > Groups "sage-devel" group. > > > To unsubscribe from this group and stop receiving emails from it, send > > an email to sage-devel+...@googlegroups.com <javascript:>. > > > To post to this group, send email to sage-...@googlegroups.com > > <javascript:>. > > > Visit this group at http://groups.google.com/group/sage-devel. > > > For more options, visit https://groups.google.com/d/optout. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.