Hi Golam,

Thanks a lot for looking into this. It would be great if you could fix 
this along the way when you solve your original problem.

Cheers,
Stan

Golam Mortuza Hossain wrote:
> Hi Stan,
>
> On Fri, Mar 27, 2009 at 5:58 AM, Stan Schymanski <schym...@gmail.com> wrote:
>   
>> I was thinking of custom defined latex representations of different
>> variables or functions, similar to the example I showed in my first
>> email in this thread. Basically, I would like to be able to give
>> working names to variables (e.g. sui), but display them as I would in
>> a paper if I use the show command (e.g. $s_{u,i}$). I can define this
>> by
>>
>> var('sui')
>> sui._latex_ = lambda: 's_{u,i}'
>>
>> but as soon as define the variable as a function, e.g.
>>
>> var('t')
>> sui(t) = function('sui',t)
>>
>> show(sui) does not display correctly any more. So I think that the
>> problem with the latex representation of functions is not limited to
>> greek letters
>>     
>
>
> Thanks, I got it!  I agree, it would simply be a great feature.
>
>  While playing with your examples, I noticed that Sage can
> in fact display them as you want but only partially. For example,
>
> ----------------------------
> riemann_abcd(x) = function('riemann_abcd',x)
> riemann_abcd._latex_ = lambda: '{\\mathcal R}_{abcd}'
> view(riemann_abcd)
> ----------------------------
>
> works! but
>
> ------------
> view(riemann_abcd(x))
> ------------
>
> doesn't work. So surely, there are issues. However I guess,
> it shouldn't be difficult to fix given it already works partially.
>
> Cheers
> Golam
>
> >
>   

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to