Basically what I want to do is underline ordinal indicators ª and º, because some fonts do not underline them.


You could use the TeX/LaTeX command \b to typeset a short "bar" below the letter in question.

enter image description here

\newcommand{\ula}{\textsuperscript{\b{a}}} % "underlined a in superscript mode"
N\ula, N\ulo
  • The \b command doesn't seem to work with XeLaTeX. – Joseph Apr 14 '13 at 12:26
  • @Joseph - Could you be a bit more specific about the claim that the "\b command doesn't seem to work with XeLaTeX". I encounter no problems when I compile the above example using XeLaTeX, with or without the fontspec package being loaded as well. Do you maybe load a special font? – Mico Apr 14 '13 at 12:35
  • It doesn't work with fontspec with pretty much any font -- Minion, Myriad, you name it. It generates a dummy character to the right side of the superscript. – Joseph Apr 14 '13 at 13:06
  • @Joseph - You may have stumbled onto a bug in fontspec, in both XeLaTeX and LuaLaTeX. – Mico Apr 14 '13 at 20:14
  • Edit: I found fonts which work with Mico's command (for instance, Brill), but still, the underline doesn't feel right: I'd like it to get closer to the letter. Is that possible? – Joseph Aug 24 '14 at 21:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.