On Sunday 12 October 2003 23:35, Wolfgang Jenkner wrote:
>pip@iszf.irk.ru writes:
>Perhaps the texmacs interface loads some code in the Maxima image
>which interns |$in| (maybe written as $|in|). This could be some file
>based on a pre-5.9.0 version of mactex.lisp, for example. Please see
Thank you,
This reminded me another issue from itensor package.
There is annoying things with covariant indices written in low case.
C2) load(itensor);
(D2) /usr/share/maxima/5.9.0.1cvs/share/tensor/itensor.o
(C3) show(t([i],[j]))$
j
(D3) t
$i|
(C4) t[i];
(D4) t
i
(C5) t[i]^j;
j
(D5) t
i
In I'd like to see D3 as D5. Is it easy or not?
The corresponded part of itensor code is
((RPOBJ F) ;If an indexed object ...
(SETQ FOOBAR
(COND ((OR (CDADR F) (CDDDR F)) ;If covariant or
(CONS (LIST (CAAR F) ;derivative indices
'ARRAY)
(NCONS (MAKNAM (CONS '$ (SPLICE (CDADR F)
(CDDDR F)))))))
(T (CAAR F))))
(COND ((CDADDR F) ;If contravariant indices
(LIST '(MEXPT SIMP)
FOOBAR
(CONS '(MTIMES SIMP) ;Make indices appear
(CDADDR F)))) ;as exponents for
(T FOOBAR))) ;proper display
........
Well, I see the reason for $ to appear. Function splice is used to separate
indices with / like
(C6) show(t([I,K],[j]))$
j
(D6) t
I/K
Best regards,
Valery