Bug Previewing a message with an equation environment with line numbers

  • Thread starter Thread starter Eclair_de_XII
  • Start date Start date
AI Thread Summary
When previewing messages with an equation environment, the line numbers increment by the total number of lines in the message, causing confusion. This issue occurs each time the preview is updated or edited, leading to incorrect equation numbering. However, refreshing the page resolves the numbering problem, as the plugin counts equations based on the page load. Users are advised not to rely on the displayed numbering in posts, as it can change with any modifications made to the equations. Ultimately, the preview does not affect the final content of the post.
Eclair_de_XII
Messages
1,082
Reaction score
91
Okay, here is the deal: Whenever I try to preview a message with an equation environment, the equation numbers keep on incrementing over again by the total number of lines in the message. For example, if you keep previewing a message with this code, the line numbers increment by three every time. The same thing happens if you feel like editing your message in case you make a rather embarrassing mistake in your message.

Code:
\begin{align}

f(x)&=&x^2+8x+25\\

&=&(x^2+8x+16)+9\\

&=&(x+4)^2+3^2

\end{align}

Example after doing this more times than I kept track:

\begin{align}

f(x)&=&x^2+8x+25\\

&=&(x^2+8x+16)+9\\

&=&(x+4)^2+3^2

\end{align}

Edit: The equation numbers fix themselves after refreshing the page. Please disregard.
 
Last edited:
Physics news on Phys.org
The plugin keeps counting the equations it has numbered since the page was loaded, basically. Every time you update the preview it increases. Not sure how this could be avoided without breaking everything. The preview has no effect on what's ultimately in the post.

Don't rely on the numbering in posts, basically. If you add or remove an equation in your post then the numbers in my post will change:

$$\begin{align}

f(x)&=&x^2+8x+25\\

&=&(x^2+8x+16)+9\\

&=&(x+4)^2+3^2

\end{align}$$
 
Back
Top