LaTeX Troubleshooting \bar vs. \overbar in LaTeX

Click For Summary
SUMMARY

The discussion centers on the differences between the LaTeX commands \bar and \overbar for rendering overlines in mathematical expressions. User Dan initially encountered issues with the \overbar command, which he later resolved by using the \overline command instead. It is confirmed that \overbar is not a standard command in the current LaTeX version, while \overline is the recommended approach for achieving a visually appealing overline. The conversation highlights the importance of using the correct LaTeX syntax for optimal results.

PREREQUISITES
  • Familiarity with LaTeX typesetting
  • Understanding of mathematical notation in LaTeX
  • Knowledge of LaTeX command syntax
  • Experience with rendering mathematical expressions in LaTeX
NEXT STEPS
  • Research the differences between \overline and \bar in LaTeX
  • Learn how to use the \overline command effectively in LaTeX
  • Explore additional LaTeX commands for mathematical formatting
  • Investigate common LaTeX troubleshooting techniques for rendering issues
USEFUL FOR

Mathematicians, educators, students, and anyone involved in typesetting mathematical documents using LaTeX.

topsquark
Science Advisor
Homework Helper
Insights Author
MHB
Messages
2,020
Reaction score
843
I was just on a thread and I noted that MarkFL's \bar operator didn't look quite as nice as using the \overbar operator. It worked for me when I first tested it in the thread, but when I posted it the tex box gave me \overbarAB ie. \overbar{AB}

Since it worked for me the first time I can only assume that \overbar is part of the current LaTeX version. Does anyone know why it's doing this?

Thanks!

-Dan
 
Physics news on Phys.org
Link to thread so we can see it working properly and not properly?
 
Ah Jameson. You're too efficient. I just spotted the solution to my problem. I tested the LaTeX using "overline." I saw MarkFL's \bar command and I got \overbar stuck in my head and used that to answer the post.

Sorry for the confusion and thanks for the quick response.

-Dan
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 7 ·
Replies
7
Views
12K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 11 ·
Replies
11
Views
6K