Superscript



On 2/21/2011 7:16 AM, Marco Rofei wrote:
> Hi,
> is there a way to get a superscript or subscript before the variable 
> letter, like the *0* in the attached image, using the  '  operator?
>
> eg
>
> (%i1) 'superscript(0)A[1];
>
> MR
>
>
>
>
>
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
Is this only for TeX output, or regular display?  They would require 
augmenting
the Tex or the display, and they are probably different.  Or here's an idea:
we create an object that has no display form, and do this:

{}^u*A[v].   Unfortunately we have the case in hand that u=0.

So maybe one has to hack this more.

while we are at it, consider all 4 positions,  pre-sub-script, 
pre-super-script, as well
as post-super-script and post-sub-script.

then one could define display formats via displayform (A(a,b,c,d)) := 
subsuperscript_form(A,a,b,c,d)  for the 4
positions..

RJF