In tensorial analysis, the position of covariant and contravariant indices may be relevant. The following image shows the output of {A_i}^j and {\tilde{A}_i}^j:

Index positions

But I expect the second expression (with the tilde) to have the index j at the right of the index i. Why do they behave different? How can I obtain something like the first expression?

Also, I am trying to write an expression like {{{A_i}^j}_k}^m (see following figure), but I get the error Double subscript. How can I write something like this?

awful non-latex expression

1 Answer 1


To separate indices, insert some blank content between them. Or, use the tensor package:

enter image description here




${A_i}^j$ and ${\tilde{A}_i}\mathstrut^j$.



$A\indices{_i^j}$ and $\tilde{A}\indices{_i^j}$.


  • Thanks! first time I see the tensor package. This defines another similar command \tensor[^i_j]{T}{_k^m} which places indices before the tensor (may be useful somehow), and \nuclide[14][6]{C} for chemical notations.
    – vagoberto
    Nov 16, 2016 at 15:08
  • Just to expand, I was playing with \mathstrut and {}. I see no differences if I use T_i\mathstrut^k or T_i{}^k.
    – vagoberto
    Nov 16, 2016 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.