On 30 říj, 08:49, William Stein <wst...@gmail.com> wrote: > > There is a table in there called latex_table. You have to > add an entry of the form > > float:float_function > > where you might first try something like this just to get it to work: > > def float_function(x): > from sage.rings.all import RR > return RR(x)._latex_() >
Thanks, I fixed this, running tests now and then I'll open trac and submit a patch. Your solution produces output like 1.00000000\times 10^{32} for input like latex(float(1e+32)) and hence I choosed slightly different solution (essentially the method _latex_() from the file which defines latex representation for real numbers but without calling RR). Thank you very much Robert M. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---