\overline{f}+ \overline{g}
the resulting overlines for f and g are not of the same height.
How can I eligently made the equal?
(of course I can raisebox by a few pt. the number is by trial-and-error)
Math & Science ⇒ \overline{f}+ \overline{g}
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
\overline{f}+ \overline{g}
Use an invisible math strut to get even placed lines.
As you can see from the above code, you have to use the new command exclusively. Otherwise the lines are not placed properly above different strings.
Best regards and welcome to the board
Thorsten
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\newcommand*{\oline}[1]{\overline{#1\mathstrut}}
\begin{document}
$\oline{f}+\oline{g}$ % good
$\overline{f}+\oline{g}$ % bad
\end{document}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10