wspr / breqn

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

equation numbers don't line up #28

Open clarkkm2 opened 5 years ago

clarkkm2 commented 5 years ago

Equations with \begin{dmath} at different points on the same page have equation numbers that don't line up with each other and with equations in \begin{equation} mode. Any way to fix this myself?

wspr commented 5 years ago

Can you provide an example please? Hopefully a short document I can compile myself. Sorry, can’t promise a quick fix.

clarkkm2 commented 5 years ago

I created a short document to demonstrate my problem, and the issue didn’t occur in the new document. There must be some issue with my original document. I will spend time debugging it. Thanks for responding!

On Jun 27, 2019, at 23:29, Will Robertson notifications@github.com wrote:

Can you provide an example please? Hopefully a short document I can compile myself. Sorry, can’t promise a quick fix.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

clarkkm2 commented 5 years ago

My issue seems to stem from adding an abstract in the article class. If I comment out the abstract, the numbering works again. I'll paste some code in another comment.

clarkkm2 commented 5 years ago

\documentclass[12pt,authoryear,letter]{article} \usepackage{amsmath,colonequals,color} \usepackage{breqn} \usepackage[utf8x]{inputenc} \usepackage{amsfonts,marvosym}

\begin{document}

\title{Sample Title}

\author{Author One$^$, Author Two$^$, \ Author Three$^{}$, and Author Four$^$ \[+2mm] $^${\small School One}\ $^{}${\small School Two}} \date{}

\maketitle

\abstract{Here is some text. }

\subsubsection{A subsection} Here is an equation \begin{equation}\label{eq:cont_gmm} 1+2+3+\ldots +n=\frac{n(n+1)}{2} \end{equation} Here is another equation \begin{equation}\label{eq:zig} \pi=C/d \end{equation} Here is an equation with dmath' \begin{dmath} 210=1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20 \end{dmath} Here is another withdmath' \begin{dmath} \pi=C/d \end{dmath} The equation numbers for the dmath' equations don't line up with each other, or with the numbering for thetraditional' equations. Comment out the abstract and it works. \end{document}