I'm using Lyx and every time I try to enter a numbered equation, the number comes as (1), nothing else. I'm using Insert->Math->numbered equation. What do I do?
Asked
Active
Viewed 2,112 times
2
1 Answers
3
This is a long-standing bug in LyX. The reason it exists is that when you add an equation, LyX runs LaTeX in the background to generate a preview of the equation. But because it does not want to rerun the previews of all of the other equations (because of performance considerations), only the new equation is compiled and thus there is one equation and it receives a "1". There are a few workarounds:
- Don't worry about it: The behavior you describe is only for LyX's display. The PDF output is correct.
- Turn off instant preview: Tools > Preferences > Look & Feel > Display and turn "Instant preview" to either "Off" or "No math".
- You can force a regeneration of all previews (and thus all equations will be regenerated at the same time and have the correct number) by doing e.g. zoom in. This workaround might only work for LyX 2.2.0 (we are almost in beta by the way if you want to test!).
- You can save your .lyx file, exit LyX and reopen. The previews should be correct.
scottkosty
- 13,164
-
It's strange, since I don't face the above problem. Is it possible that this bug affects Lyx only under window (i am using linux) – Yorgos Dec 08 '15 at 09:39
-
@Yorgos do you have instant preview enabled? If so, make one equation, let it preview, then make a separate numbered equation. I imagine you will see a "1". If not, then maybe there is a fix for the bug that somehow is working magically for you so we'd like to know about it. – scottkosty Dec 08 '15 at 18:49
-
-
@Yorgos ah, no. Actually, I think it is good to leave it off if you are fine with it. There are issues like this one and also if you click somewhere, with instant preview off it takes you exactly to the correct place. – scottkosty Dec 09 '15 at 15:57
-
How do we add aligned equations in lyx . (For IEEE Transaction document)? – Trect May 05 '17 at 13:42


.texcode for a minimal document which shows the problem. If you can't manage that, you can post the.lyxsource for such a document instead. The disadvantage is that fewer readers will be able to help you with the.lyxsource than will be able to do so if you post the.texcode. – cfr Dec 08 '15 at 00:22