View Issue Details

IDProjectCategoryView StatusLast Update
0001002luatexluatex bugpublic2018-01-23 13:53
Reporterwspr Assigned ToHans Hagen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0 
Summary0001002: Shifting underbrace issue due to nested \Umathaccent
DescriptionReporting from an old (but still relevant) bug on tex.sx: <https://tex.stackexchange.com/questions/323797/shifting-underbrace-with-lualatex-and-unicode-math>

The issue in plain LuaTeX is reproduced below.
As noted on the page above, it can be fixed with something like

    \underbrace{{}\hat{z}+w}

As far as I can see this isn't intended behaviour.
Steps To Reproduce\input ifluatex.sty
\ifluatex
  \input luaotfload.sty
\fi

\font\mf="[latinmodern-math.otf]"
\textfont1=\mf \scriptfont1=\mf \scriptscriptfont1=\mf
\protected\def\underbrace#1{%
  \mathop{\Umathaccent bottom 7 1 "023DF\relax {0000001}}\limits
}
\protected\def\hat{\Umathaccent fixed 7 1 "00302\relax}

$\underbrace{z+w}_y$\qquad$\underbrace{\hat{z}+w}_{y}$

\bye
TagsNo tags attached.

Activities

Hans Hagen

2018-01-23 13:11

manager   ~0001682

should be better in 1.07

Issue History

Date Modified Username Field Change
2018-01-05 15:56 wspr New Issue
2018-01-23 13:11 Hans Hagen Note Added: 0001682
2018-01-23 13:53 Hans Hagen Status new => closed
2018-01-23 13:53 Hans Hagen Assigned To => Hans Hagen
2018-01-23 13:53 Hans Hagen Resolution open => fixed