There are many packages for left super- and subscripts, but none of them seem to solve the central issue: The spacing between the left indices and the symbol often looks wrong. Most packages seem to use some variant of the idea of adding a \vphantom in front of the symbol, containing the symbol itself, to adjust the height of the indices. But \vphantom does not take care of the spacing around the indices. For instance, there is far too much room between the f and the a in the below code.
I know one can in principle fix this by hand by using space commands, but is there a more systematic solution? For instance, does there exist some TeX command that returns the value of the indentation of the right superscript? And can you use this to adjust the position of the left one? Or could one make an \indexphantom command such that \indexphantom{f}^a_b typesets the indices a and b with the same spacing as they would have had if there was an f?
\documentclass{article}
\begin{document}
$ \vphantom{f}^a_b f $
\end{document}




aand thebare aligned. In your pic theais a bit left of theb. – Keks Dose Jul 20 '20 at 15:33{}^a_bto\vphantom{f}^a_b. I will correct it in a moment. But it still does not look right. Theashould be closer to thef. – Gaussler Jul 20 '20 at 15:37