something like
a11 = var('a11', latex_name='a_{1,1}')
Then,
view(a11)
will show you the latex representation.
On Wednesday, March 28, 2012 7:41:41 AM UTC+8, Adam Sorkin wrote:
>
> I need to use the notation of doubly indexed variables, e.g., a_{i,j} in
> latex. Currently, the variables belong to QQ( a_{i,j}), the field of
> fractions of a polynomial ring. Now because sage will not let me write
> var( 'a1,1' )
> to represent the variable a_{1,1}, I am currently coding them in as
> var( 'a1comma1')
>
> However, the output is not so easy to read. I will be satisfied if there
> is a straightforward way to change the latex representation of the variable
> above, or a simple method already implemented to handle doubly indexed
> variables.
>
> Adam
>
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org