Text Formatting ⇒ Bar above and below character
-
- Posts: 3
- Joined: Sun Aug 30, 2015 11:24 pm
Bar above and below character
Thanks!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Bar above and below character
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}
-
- Posts: 3
- Joined: Sun Aug 30, 2015 11:24 pm