[Tex/LaTex] how to make subscripts automatically choose font size

capitalizationfontsizemath-modescalingsubscripts

Would it be possible to make subscripts in math mode automatically choose a smaller font when a subscript is in uppercase?

E.g., if I have sA, the "A" would appear quite big. Is it possible to tell the subscript operator _ to use a smaller font when it sees an uppercase letter?

A workaround is to define, say, \newcommand{\l}[1]{\scalebox{0.x}{$#1$}}. But I would like to see if what I desired can be made automatic?

Best Answer

\documentclass{article}

\begin{document}
    

\[
  s_A
  s_{\!_A} \]
    

\end{document}

enter image description here

you can define a shortcut for this

Related Question