Math & ScienceWidehat in mathmode

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

Widehat in mathmode

Post by juliette »

If I want a hat to appear over-top of many consecetive symbols I can use \widehat{abc} rather than \hat{abc}, but I can't seem to do it for the command \bar{abc}. Is there any way to widen the bar??

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Widehat in mathmode

Post by gmedina »

Hi,

you could use the \overline command or perhaps the more sophisticated \overbracket command provided by the mathtools package:

Code: Select all

\documentclass{article}
\usepackage{mathtools}

\begin{document}

$\overline{abc}$

$\overbracket[.7pt][0pt]{abc}$

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply