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!
Text Formatting ⇒ Bar above and below character
NEW: TikZ book now 40% off at Amazon.com for a short time.

Bar above and below character
Welcome to the LaTeX community!
Do you need text accents or math accents?
There's also
There's also the accents package for a math underbar (and other things):
Regards
Do you need text accents or math accents?
Code: Select all
\documentclass{article}
\begin{document}
Text: \b{v} \={v} \b{\={v}}
Math: $\underline{v}$ $\bar{v}$ $\underline{\bar{v}}$
\end{document}
\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):
Code: Select all
\documentclass{article}
\usepackage{accents}
\begin{document}
Math: $\underaccent{\bar}{v}$ $\underaccent{\bar}{\bar{v}}$
\end{document}
site moderator & package author
-
- Posts: 3
- Joined: Sun Aug 30, 2015 11:24 pm
Re: Bar above and below character
Ah, I didn't realize you could combine the use of underaccent and bar like that. That's perfect, thanks!