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

Position of under accents #640

Open
eg9 opened this issue Sep 10, 2024 · 0 comments
Open

Position of under accents #640

eg9 opened this issue Sep 10, 2024 · 0 comments

Comments

@eg9
Copy link
Contributor

eg9 commented Sep 10, 2024

Description

Under accents are placed wrongly, taking into account the whole.depth of the resulting math atom instead of the base only. This happens both for wide under accents and fixed width one.

Add info or delete as appropriate:

  • Relevant for XeTeX: yes
  • Relevant for LuaTeX: yes
  • Issue tracker has been searched for similar issues? Yes

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{unicode-math}

\linespread{1.5}% just to get more space between lines

% possible fix?
\NewDocumentCommand{\fixmathunderbar}{m}{%
  \mathunderbar{\kern0pt#1}%
}
\NewDocumentCommand{\fixthreeunderdot}{m}{%
  \threeunderdot{\kern0pt#1}%
}
% end of fix

\begin{document}

$\mathunderbar{e}+\mathunderbar{e}_1$
$\mathunderbar{f}+\mathunderbar{f}_1$

$\fixmathunderbar{e}+\fixmathunderbar{e}_1$
$\fixmathunderbar{f}+\fixmathunderbar{f}_1$

$\threeunderdot{e}+\threeunderdot{e}_1$

$\fixthreeunderdot{e}+\fixthreeunderdot{e}_1$

$\hat{e}+\hat{e}^1$

\end{document}

Output with LuaLaTeX

image

Output with XeLaTeX

image
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

1 participant