[Tex/LaTex] How to let three subscripts and three superscripts to be aligned

subscriptssuperscripts

Suppose I need to get a formula like $L^{2,3/4,5/6}_{1,2,3}$ in Latex. Then $2$--$1$, $3/4$--$2$, $5/6$--$3$ is not aligned. See enter image description here Then how can I let these three to be aligned?

Best Answer

Let us make things complicated.

\documentclass{article}
\usepackage{calc}
\begin{document}
$L^{2,3/4,5/6}_{1,\makebox[\widthof{3/4}]{$\scriptstyle 2,$}\makebox[\widthof{5/6}]{$\scriptstyle 3\hphantom{,}$}}$
\end{document}

enter image description here

I agree with Benjamin's comments. Hence an attempt to increase the spaces.

\documentclass{article}
\usepackage{calc}
\begin{document}
$L^{2,3/4,5/6}_{1,\makebox[\widthof{3/4}]{$\scriptstyle 2,$}\makebox[\widthof{5/6}]{$\scriptstyle 3\hphantom{,}$}}$
\end{document}

enter image description here

One can also resort to reduce the space before and after / by using

\newcommand*{\mybar}{\kern-.2ex/\kern-.2ex}

instead of /.

Related Question