This can be easily overcome with the overline option.

overline: \overline

usage: \overline{test}

Explanation: The overline option should be used instead of bar option.

The following code demonstrates the difference

\documentclass[12pt]{beamer}

\mode

\usetheme{Boadilla}

}

\begin{document}

\begin{frame}[plain]

\begin{alertblock}{WRONG}

\begin{align*}

Z& = \frac{\bar{BMI}-\mu}{\sqrt{\frac{\sigma^2}{N}}} \\

& = \frac{\bar{BMI}-\mu}{SE(\bar{BMI})} \\

\end{align*}

\end{alertblock}

\begin{exampleblock}{RIGHT}

\begin{align*}

& = \frac{\overline{BMI}-\mu}{SE(\overline{BMI})} \\

\end{align*}

\end{exampleblock}

\end{frame}

\end{document}

Which produces the following slide

Thanks, this was exactly what I was looking for. Keep it up!

ReplyDeleteIt helps a lot...

ReplyDeleteThanks so much.

ReplyDeleteThis comment has been removed by a blog administrator.

ReplyDeleteThanks so much. I really needed this for my thesis.

ReplyDeleteThanks! Just what the doctor ordered.

ReplyDeleteMany Thanks!

ReplyDeleteThank you!! My thesis was looking weird until I found this.

ReplyDeleteThank you, though if you have an index to the letter than the overline, there is a white space between the letter and its index and it looks horrible.

ReplyDelete\documentclass[12pt]{beamer}

\begin{document}

$\overline{V}_\textrm{p}$ instead of $\bar{V}_\textrm{p}$

\end{document}

Does anyone knows how to avoid the space between the V and p?

Thanks

You can put whatever you want in the argument to the overline command, so to put the overline above a number and its subscript, you do:

ReplyDelete$\overline{V_\textrm{p}}$

You can also eliminate the space without having the overline cover both the symbol and its subscript by inserting a negative space (\!) between them:

ReplyDelete$\overline{V}\!_\textrm{p}$

Thank you Kbolino, that's exactly what I was looking for.

DeleteThank you!

ReplyDeleteThat made my notes look nicer, and also lead me to try underline, which is what I wanted elsewhere. Thanks!

ReplyDeleteThanks, nice tip!

ReplyDeleteTHANK YOU! :)

ReplyDeleteThank you for helping me write my paper!

ReplyDeleteThanks! It saved the beauty of my thesis!

ReplyDeleteVery helpful, thanks!

ReplyDeleteI would say this is correct if you have a variable with several letters (eg. BMI in the example). But if you have a variable with a single letter (eg. x), then \bar is better than \overline.

ReplyDeleteThank you!

ReplyDelete