wspr / breqn

Automatic line breaking in LaTeX equations
18 stars 2 forks source link

\fracstyle sets \mathstyle to 3 instead of larger value #19

Open blefloch opened 7 years ago

blefloch commented 7 years ago

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?

wspr commented 7 years ago

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.

Hoegholm commented 7 years ago

Yes, definitely predates LuaTeX so that's why.

Morten

On May 7, 2017, at 19:57, Will Robertson notifications@github.com 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.