Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad horizontal placement of overbrace/overbracket over \Leftrightarrow #608

Open
castilma opened this issue Jan 24, 2023 · 1 comment
Open

Comments

@castilma
Copy link

castilma commented Jan 24, 2023

Description

The overbrace/overbrackets aren't centered horizontaly over \Leftrightarrow and \Longleftrightarrow, but slightly offset to the left.

Add info or delete as appropriate:

  • Relevant for LuaTeX. I'm using lualatex.
  • Issue tracker has been searched for similar issues? Yes, no issue regarding the horizontal alignment was found

Minimal example demonstrating the issue

\documentclass{article}
%\usepackage{mathtools} % no problem with mathtools without unicode-math
\usepackage{unicode-math} % has misaligned \overbrace{\Leftrightarrow}
\begin{document}
\[\Leftrightarrow  
\overbrace{\Leftrightarrow}^{b} 
\overbrace{\Longleftrightarrow}^{b}
\overbracket{\Leftrightarrow}^{b}
\overbracket{\Longleftrightarrow}^{b}
\]
\end{document}

Here is the output using unicode-math:
unicode-math

And here with mathtools:
mathtools

Further details

lualatexlog
latexbrace.log

Package: unicode-math 2020/01/31 v0.8q Unicode maths in XeLaTeX and LuaLaTeX

@khaledhosny
Copy link
Contributor

This seems to be caused by the extra braces introduced in 03b6d97 to fix #391. Removing the extra braces fixes this issue, and the original issue does not return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants