how to use a subscripted variable in a "depends" statement
Subject: how to use a subscripted variable in a "depends" statement
From: Robert Dodier
Date: Thu, 17 Nov 2011 23:48:25 -0700
On 10/29/11, Ether Jones <maxima at etherjones.us> wrote:
> Is there a way to make a variable display with a subscript, without the
> subscript being interpreted as some sort of index, so that the variable
> could be treated in all respects like any other variable? It's the
> appearance of the output which is driving this request.
It depends on which display method you are using.
If it is TeX (via TeXmath or imaxima) then you can assign a
string to be pasted into the TeX output.
e.g. texput(x_1, "x_1");
which TeX displays as a subscript.
If you are using wxMaxima I think there is some equivalent
property you could set.
If you are using the usual Maxima pretty printer, it is possible,
via a hook in the display code; see DIMENSION-ATOM in
maxima/src/displa.lisp. I can explain it if you want.
best
Robert Dodier