phst / lualatex-math

LuaTeX-specific enhancements and fixes for LaTeX math typesetting
LaTeX Project Public License v1.3c
12 stars 3 forks source link

Compatibility with amsmath is broken #20

Closed tweh closed 7 years ago

tweh commented 7 years ago

Due to some changes in the implementation of \genfrac in amsmath the compatibility is broken and in (de)nominators \mathstyle doesn’t give the right/expected result. Please see Value of LuaTeX’s \mathstyle in \frac (de)nominator on TeX.SX for further details.

% !TeX program = lualatex
\documentclass{article}

\usepackage{amsmath}
\usepackage{lualatex-math}

\begin{document}
   $\dfrac{\mathstyle}{\mathstyle} \neq \dfrac{4}{5}$
\end{document}

Pleas note that \frac still works, as it is not defined using \genfrac.

phst commented 7 years ago

Thanks for the report, and sorry for the slow response. I've adapted the patch; could you maybe check whether it works now for your use case?

davidcarlisle commented 7 years ago

sorry about that I should have checked and flagged that with you at the time:-)

On 15 June 2017 at 18:31, Philipp notifications@github.com wrote:

Closed #20 https://github.com/phst/lualatex-math/issues/20 via 8c0ea14 https://github.com/phst/lualatex-math/commit/8c0ea14d0e3b7ccc0825149188ac46b1b6683e36 .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/phst/lualatex-math/issues/20#event-1125542713, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNcAl4-uRRjQwUGOJNZP2QEjhqVvlhiks5sEWqEgaJpZM4Nk6_- .

tweh commented 7 years ago

Hi, seems to work now in the version I downloaded from the current master branch (\filelist2017/06/15 v1.7). For sake of completeness the CTAN version (\filelist2016/04/16 v1.6) does not work.

phst commented 7 years ago

Thanks, I've uploaded the new version to CTAN.