[Tex/LaTex] How to set a function with dash and subscript

math-modepunctuationsubscripts

In

$f_3$

the subscript is higher than in

$f'_3$.

So how does one set a function with dash and subscript correctly?

Best Answer

I would input f'_{3}.

Beside this: it's a feature of TeX, not a bug, that the subscript position change if there is also a superscript. See Appendix G of the TeXbook. But you can change the fontdimens:

\documentclass{article}%
\begin{document}

$\hbox{}$%initialize math 
\fontdimen16\textfont2=2.7pt
\fontdimen17\textfont2=2.7pt
$f^{}_3 f_3 f^{'}_3 f'_3$

\end{document}

The change is global, so if you want to revert it you will have to save the original values. There is also a package subdepth which does something similar.

enter image description here