breqn icon indicating copy to clipboard operation
breqn copied to clipboard

\fracstyle sets \mathstyle to 3 instead of larger value

Open blefloch opened this issue 8 years ago • 2 comments

With pdfTeX, the following produces the same output as $0 e^{4\frac{\displaystyle 3}{3}}$. At least the large 3 is unexpected.

\documentclass{article}
\usepackage{mathstyle}
\begin{document}
\newcommand{\ms}{\the\mathstyle}
\newcommand{\test}{\hbox{$\currentmathstyle \ms$}}
\[ \ms e^{\test\frac{\test}{\ms}} \]
\end{document}

This seems to come from \fracstyle which sets \mathstyle to a number in [0,3], perhaps a confusion with the range [0,7] of LuaTeX?

blefloch avatar May 05 '17 14:05 blefloch

I imagine this code pre-dates LuaTeX but I could be wrong… perhaps just a regular bug :) Thanks for logging this here, hopefully one of us gets a chance to look into this at some stage.

wspr avatar May 07 '17 23:05 wspr

Yes, definitely predates LuaTeX so that's why.

Morten

On May 7, 2017, at 19:57, Will Robertson [email protected] wrote:

I imagine this code pre-dates LuaTeX but I could be wrong… perhaps just a regular bug :) Thanks for logging this here, hopefully one of us gets a chance to look into this at some stage. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Hoegholm avatar May 08 '17 00:05 Hoegholm