I would like to put a subscript after a character with multiple underlines in the math mode but ignoring the underlines. How can I do it?
Consider this picture:
I would like the subscript to have the vertical position of the element with respect to the character. Here is the code the produced the picture:
\documentclass[border=5mm]{standalone}
\usepackage{ulem,amsmath,bm}
\begin{document}
\(C_{\text{c}},
\underline{\bm{C}}_{\text{c}},
\underline{\underline{\bm{C}}}_{\text{c}},
\uuline{\bm{C}}_{\text{c}}\)
\end{document}
Edit: Would be superb if the underline was limited to the width of the character.
\underline{\bm{C}}{}_{\text{c}}. – campa Jul 28 '17 at 15:00\smash{\underline{\underline{\bm{C}}}}_{\text{c}}as a partially satisfying way – Jul 28 '17 at 16:15