[Tex/LaTex] How to get a \bar over a subscript

math-modespacingsubscriptssymbols

With this code

\documentclass{minimal}
\usepackage{amsmath}
\begin{document}
${\bar{S}}_{\text{rel,t}}$
\end{document}

I get

enter image description here

How can I extend the \bar over the subscript?

Best Answer

Does this help (\overline instead of \bar)?

\documentclass{minimal}
\usepackage{amsmath}
\begin{document}
$\overline{S_\text{rel,t}}$
\end{document}

enter image description here

Related