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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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