wspr / breqn

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

breqn and babel #36

Open dwu402 opened 4 years ago

dwu402 commented 4 years ago

It seems that there is a conflict with breqn and babel

Output segment:

! You can't use `the character ,' after \the.
\@elt #1->,#1,

l.7 \end{dmath}

? 
! Missing number, treated as zero.
<to be read again> 
                   X
l.7 \end{dmath}

? 
! Illegal unit of measure (pt inserted).
<to be read again> 
                   X
l.7 \end{dmath}

? 

Log file: main.log

Minimum Working Example:

\documentclass{article}
\usepackage{breqn} 
\usepackage[english]{babel} 
\begin{document}
\begin{dmath}
    1+1=2
\end{dmath}
\end{document}

Environment:

>> tlmgr info babel breqn

package:     babel
category:    Package
shortdesc:   Multilingual support for Plain TeX or LaTeX
longdesc:    <<<snip>>>
installed:   Yes
revision:    53783
sizes:       src: 1389k, doc: 749k, run: 3501k
relocatable: No
cat-version: 3.40
cat-license: lppl1.3
cat-topics:  multilingual
cat-related: polyglossia
cat-contact-repository: https://github.com/latex3/babel
cat-contact-bugs: https://github.com/latex3/babel/issues
collection:  collection-latex

package:     breqn
category:    Package
shortdesc:   Automatic line breaking of displayed equations
longdesc:    <<<snip>>>
installed:   Yes
revision:    53814
sizes:       src: 329k, doc: 1121k, run: 169k
relocatable: No
cat-version: 0.98h
cat-license: lppl1.3
cat-topics:  maths
cat-contact-repository: https://github.com/wspr/breqn
cat-contact-home: http://wspr.io/breqn/
collection:  collection-latexrecommended
wspr commented 4 years ago

Oh no... this is PROBABLY a bug in breqn revealed by a recent change in babel. I seem to have a fix and will upload shortly.