Using the code from Reversed arrow tips for \overleftarrow and \overrightarrow I could create special arrows on top of letters. However, when using these symbols below a sum the arrows get all messed up (see the examples below). Can you help?
\documentclass{article}
\usepackage{amsmath,amssymb,trimclip}
\makeatletter
\def\righttailfill@{\arrowfill@{\clipbox{0pt 0pt 6pt 0pt}{\ensuremath\rightarrowtail}}\relbar\relbar}
\ams@newcommand{\overrighttail}{\mathpalette{\overarrow@\righttailfill@}}
\def\leftrighttailfill@{\arrowfill@{\clipbox{0pt 0pt 6pt 0pt}{\ensuremath\rightarrowtail}}\relbar{\clipbox{6pt 0pt 0pt 0pt}{\ensuremath\leftarrowtail}}}
\ams@newcommand{\overleftrighttail}{\mathpalette{\overarrow@\leftrighttailfill@}}
\makeatother
\begin{document}
[
\overrighttail{abc}
]
[
\sum _{\overrighttail{abc}}
]
[
\overleftrighttail{abc}
]
[
\sum _{\overleftrighttail{abc}}
]
\end{document}





\clipbox{0pt 0pt 6pt 0pt}{\ensuremath\rightarrowtail}inside\vcenter{\hbox{...}}, so that it becomes\vcenter{\hbox{\clipbox{0pt 0pt 6pt 0pt}{\ensuremath\rightarrowtail}}}. This will adjust the vertical alignment. – Jasper Habicht Sep 29 '22 at 08:15