I was wondering if there is something that similar to a \widebar when I want to put the bar below a character. I am working in the math mode and here is the relevant preamnle
\documentclass[12pt,letterpaper]{article}
\usepackage[margin=1in]{geometry}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{xfrac}
\usepackage{nicefrac}
\usepackage{accents}
\newcommand\munderbar[1]{%
\underaccent{\bar}{#1}}
\newcommand*\widebar[1]{%
\begingroup
\def\mathaccent##1##2{%
\rel@kern{0.8}%
\overline{\rel@kern{-0.8}\macc@nucleus\rel@kern{0.2}}%
\rel@kern{-0.2}%
}%
\macc@depth@ne
\let\math@bgroup@empty \let\math@egroup\macc@set@skewchar
\mathsurround\z@ \frozen@everymath{\mathgroup\macc@group\relax}%
\macc@set@skewchar\relax
\let\mathaccentV\macc@nested@a
\macc@nested@a\relax111{#1}%
\endgroup
}
I am using the accent package to put the bar below the character of M_c.
Here is the line of codes I am using \munderbar{M}_{c} < M_{c}^{1} < M_{c}^{0} < \widebar{M_{c}}$
I was wondering how make the bar below the last character, that is, M_c, wider like that of M_c with widebar appearing last.



\underline{...}, which comes with theamsmathpackage? – Steven B. Segletes Mar 01 '21 at 23:19\underlinebut the gap between the character and the underbar is too much. This is probably because of the subscript. – OGC Mar 01 '21 at 23:22