[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 versi

[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 versi

[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 versi

[sage-support] Re: Rendering latex

2009-07-21 Thread William Stein
On Tue, Jul 21, 2009 at 10:34 AM, VictorMiller 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 > what's

[sage-support] Re: Rendering latex

2009-07-21 Thread John H Palmieri
On Jul 21, 10:34 am, VictorMiller 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 > what's happening? Th

[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 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 latex > > for it (using tab

[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 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 latex > > for i

[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 wrote: > On M

[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 tha

[sage-support] Re: Rendering latex

2009-07-20 Thread William Stein
On Mon, Jul 20, 2009 at 3:30 PM, 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.  

[sage-support] Re: Rendering latex

2009-07-20 Thread John H Palmieri
On Jul 20, 3:30 pm, 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 t