[Tex/LaTex] Double superscript error

math-modesuperscripts

I'm a relative beginner with Lyx. When I type in this code I'm hoping for T' to be followed by superscripts and subscripts. Instead I get a "double superscript" error when I try to view the pdf

\[
T'_{\alpha_{1}\alpha_{2}\ldots\alpha_{n}}^{\mu_{1}\mu_{2}\ldots\mu_{m}}
\]

Any idea how I can fix this?

Best Answer

You can insert \prime symbol as part of the superscript ^{...}, rather than having "two superscripts":

enter image description here

\documentclass{article}
\begin{document}
\[
  T_{\alpha_{1}\alpha_{2}\ldots\alpha_{n}}^{\prime\mu_{1}\mu_{2}\ldots\mu_{m}}
\]
\end{document}