Re: [sage-devel] MathJax limit for TeX expression in notebook
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.
[sage-devel] Re: MathJax limit for TeX expression in notebook
+1 to this. What is the best course of action? Opening a ticket? Best regards, Michał On Friday, May 29, 2015 at 6:41:36 AM UTC+2, Andrey Novoseltsev wrote: On Thursday, 28 May 2015 16:45:20 UTC-6, kcrisman wrote: On Thursday, May 28, 2015 at 5:21:01 PM UTC-4, 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? In principle you should be able to just hardcode a different value in in your own notebook server. I suspect my students are hitting the same issue from time to time when working on optimization problems, I just had no idea how it can be fixed. What is the downside of increasing this buffer to say 10 or 20 kilobytes? My understanding is that the same MathJax is now shared by all frontends, so improvements will affect everybody! Andrey -- 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.
[sage-devel] MathJax limit for TeX expression in notebook
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+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.
[sage-devel] Custom derivative output from pynac
Dear all, I was wondering about a way to get a custom derivative output, that is more readable for an end-user. For example, in pynac.pyx, py_print_fderivative() returns the operator as ostr = ''.join(['D[', ', '.join([repr(int(x)) for x in params]), ']']) whereas it would be nice to have ostr = ''.join(['D_{', ', '.join([repr(args[int(x)]) for x in params]), '}']) What is a recommended way to get such a custom output from a level of an external package? Best regards, Michal -- 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/groups/opt_out.
[sage-devel] Re: SageManifolds: differential geometry and tensor calculus in Sage
On Monday, July 8, 2013 4:31:43 PM UTC+2, Dox wrote: I'm trying to reproduce the examples in the page, starting with Schwarzschild spacetime So far I'm getting the following: * When defining a `Chart`, say `X`, t from manifolds.all import * M = Manifold(4, 'M', r'M'); M X = Chart(M, r't, r:positive, th:positive:\theta, ph:\phi', 'BL') X does not return the latex output, but this chart 'BL' (t, r, th, ph) this is not a problem because after trying X.show() the expected output pops up! It may be that the option typeset is not set in your notebook. Cheers, Michał -- 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/groups/opt_out.