## LaTeX forum ⇒ Text Formatting ⇒ Bar above and below character Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Posts: 3
Joined: Sun Aug 30, 2015 11:24 pm

### Bar above and below character

Hi, so I need to be able to put a bar both above and below the same character. I know I can use \bar{X} to put a bar above X and use accents to put one below, but what will allow me to have a bar over the letter and a bar below the same letter?

Thanks!

Tags:

cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm
Welcome to the LaTeX community!

Do you need text accents or math accents?

\documentclass{article} \begin{document} Text: \b{v} \={v} \b{\={v}} Math: $\underline{v}$ $\bar{v}$ $\underline{\bar{v}}$ \end{document}

There's also \underbar but its contents are placed in text mode so it's not suitable for mathmode.

There's also the accents package for a math underbar (and other things):

\documentclass{article}\usepackage{accents}\begin{document} Math: $\underaccent{\bar}{v}$ $\underaccent{\bar}{\bar{v}}$ \end{document}

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

Posts: 3
Joined: Sun Aug 30, 2015 11:24 pm
Ah, I didn't realize you could combine the use of underaccent and bar like that. That's perfect, thanks!

### Who is online

Users browsing this forum: No registered users and 9 guests