[sage-support] Re: converting strings to latex

2010-05-08 Thread ma...@mendelu.cz
On 7 kvÄ›, 16:41, "Georg Damm" wrote: > Am Freitag, 7. Mai 2010, um 05:54:50 schrieb ablondin: > > > > > Thanks, that is exactly what i was looking for. Hi, I think that this problem could be solved also with luaTeX (unless you need to do some symbolic computations). The advatage would be that yo

Re: [sage-support] Re: converting strings to latex

2010-05-07 Thread Georg Damm
Am Freitag, 7. Mai 2010, um 05:54:50 schrieb ablondin: > Ok, I think I understand your problem. I had something similar > before. The problem is that the object returned by the function > sarrus is a 'str', > which sagetex format so that it replaces every underscore, etc. > with \_ to make it work

[sage-support] Re: converting strings to latex

2010-05-06 Thread ablondin
Ok, I think I understand your problem. I had something similar before. The problem is that the object returned by the function sarrus is a 'str', which sagetex format so that it replaces every underscore, etc. with \_ to make it work in Latex. If you don't want the output to be modified, you have t

Re: [sage-support] Re: converting strings to latex

2010-05-06 Thread Georg Damm
Hi Alex, > If I understand correctly your question, you would like to > convert arithmetical expressions directly into Latex. I would like to convert a string into a sage-Latex-expression (in sagetex). > I don't know if it is possible to do it in Sage, but you could > always write your own fu

[sage-support] Re: converting strings to latex

2010-05-05 Thread ablondin
Hello, Georg ! If I understand correctly your question, you would like to convert arithmetical expressions directly into Latex. I don't know if it is possible to do it in Sage, but you could always write your own function. I've written a small one that should do the trick. def sarrus(A): brack