On Mon, Dec 04, 2006 at 03:09:29PM +0100, Nils Becker wrote:
> Hi all,
>
> I am trying to use the package "tensind.sty" for typesetting tensors
> with multiple upper and lower indices in LyX.
>
> In LaTeX this works great: after defining a special "tensor delimiter"
> in the preamble (here I use the letter "?") one can in math mode type
> ?A^\mu_\nu? for northwest, southeast indices and ?A_\mu^\nu? for
> southwest, northeast indices following the tensor symbol A.
>
> Here, the order of super- and subscript matters! LyX seems to REORDER
> the super- and subscript in such a way that always the subscript comes
> first.
Right. It considers them a unit and will output subscript first.
> Also, within tensind, ?g_\mu_\nu? is perfectly acceptable, and has a
> different meaning (and typeset result) than ?g_{\mu\nu}? Within LyX,
> one always gets the latter form due to automatic grouping in the math
> editor
>
> Is there a workaround?
Not really. tensind seems to change the TeX meaning of _. While this is
legal, LyX interprets _ and ^ according to its own ruls which are more
or less the standard TeX rules.
You can try to use extra {}, but I doubt this will work.
Andre'