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}$$
 
I want to thank those members who interacted with me a couple of years ago in two Optics Forum threads. They were @Drakkith, @hutchphd, @Gleb1964, and @KAHR-Alpha. I had something I wanted the scientific community to know and slipped a new idea in against the rules. Thank you also to @berkeman for suggesting paths to meet with academia. Anyway, I finally got a paper on the same matter as discussed in those forum threads, the fat lens model, got it peer-reviewed, and IJRAP...
This came up in my job today (UXP). Never thought to raise it here on PF till now. Hyperlinks really should be underlined at all times. PF only underlines them when they are rolled over. Colour alone (especially dark blue/purple) makes it difficult to spot a hyperlink in a large block of text (or even a small one). Not everyone can see perfectly. Even if they don't suffer from colour deficiency, not everyone has the visual acuity to distinguish two very close shades of text. Hover actions...
About 20 years ago, in my mid-30s (and with a BA in economics and a master's in business), I started taking night classes in physics hoping to eventually earn the science degree I'd always wanted but never pursued. I found physics forums and used it to ask questions I was unable to get answered from my textbooks or class lectures. Unfortunately, work and life got in the way and I never got further the freshman courses. Well, here it is 20 years later. I'm in my mid-50s now, and in a...
Back
Top