[sage-support] Re: Rendering latex

2009-07-22 Thread VictorMiller
Ok, I've absorbed all of that. This morning it occured to me that it would be nice if one could define a class method called _html_. If present, it would try to render an htmlized (is that a word?) version of the class (just as __str__ renders a printable version or _latex_ renders a latex

[sage-support] Re: Rendering latex

2009-07-22 Thread VictorMiller
Ok, I've absorbed all of that. This morning it occured to me that it would be nice if one could define a class method called _html_. If present, it would try to render an htmlized (is that a word?) version of the class (just as __str__ renders a printable version or _latex_ renders a latex

[sage-support] Re: Rendering latex

2009-07-22 Thread VictorMiller
Ok, I've absorbed all of that. This morning it occured to me that it would be nice if one could define a class method called _html_. If present, it would try to render an htmlized (is that a word?) version of the class (just as __str__ renders a printable version or _latex_ renders a latex

[sage-support] Re: Rendering latex

2009-07-21 Thread Jason Grout
VictorMiller wrote: I have a program which calculates a table of values, and I'd like to display it nicely formatted. I've written a function to produce latex for it (using tabular), but I can't figure out how to get SAGE to display this in a notebook. I've tried the html command but that

[sage-support] Re: Rendering latex

2009-07-21 Thread VictorMiller
William, Thanks. That works ok -- except, for example if I do latex.eval('$N_0$',{}) I get what I expect plus a line with two single quotes before what I wanted. This seems to happen with any latex string. Do you know what's happening? Victor On Jul 20, 6:58 pm, William Stein

[sage-support] Re: Rendering latex

2009-07-21 Thread VictorMiller
Jason, thanks for the suggestion. I didn't know about that function. Victor On Jul 21, 4:02 am, Jason Grout jason-s...@creativetrax.com wrote: VictorMiller wrote: I have a program which calculates a table of values, and I'd like to display it nicely formatted.  I've written a function to

[sage-support] Re: Rendering latex

2009-07-21 Thread VictorMiller
Is there a way to get tex formulas as cells in the table? Victor On Jul 21, 4:02 am, Jason Grout jason-s...@creativetrax.com wrote: VictorMiller wrote: I have a program which calculates a table of values, and I'd like to display it nicely formatted.  I've written a function to produce

[sage-support] Re: Rendering latex

2009-07-21 Thread John H Palmieri
On Jul 21, 10:34 am, VictorMiller victorsmil...@gmail.com wrote: William, Thanks.  That works ok -- except, for example if I do latex.eval('$N_0$',{}) I get what I expect plus a line with two single quotes before what I wanted.  This seems to happen with any latex string.  Do you know

[sage-support] Re: Rendering latex

2009-07-20 Thread John H Palmieri
On Jul 20, 3:30 pm, VictorMiller victorsmil...@gmail.com wrote: I have a program which calculates a table of values, and I'd like to display it nicely formatted.  I've written a function to produce latex for it (using tabular), but I can't figure out how to get SAGE to display this in a

[sage-support] Re: Rendering latex

2009-07-20 Thread William Stein
On Mon, Jul 20, 2009 at 3:30 PM, VictorMillervictorsmil...@gmail.com wrote: I have a program which calculates a table of values, and I'd like to display it nicely formatted.  I've written a function to produce latex for it (using tabular), but I can't figure out how to get SAGE to display