Hello, everyone,

I just want to sum the solutions for numbering equations. And I don't know whether somebody had posted the same before the mail. If others have done this, please cancel this mail ^_^!

Before sending my mail on the numbering problem, I searched the help file, and the LyX wiki, but there were no proper solution for the problems. The help files is a little old to follow, and the wiki suggests us to modify the source file which is not appropriate.

I should thank
        Reinhard Mayr aka Czerwinski <[EMAIL PROTECTED]>
        Uwe Stöhr <[EMAIL PROTECTED]>
        Enrico Forestieri <[EMAIL PROTECTED]>
for their quick and helpful suggestions.

Solutions:
(I)
Reinhard's
o       Ctrl-Shift-M --> math mode
o       enter the equation
o press the 'label' button from the toolbar (or Insert/Label...) while in the math field (that's the key!)

Zhenhua adds,
Just let the '<>' empty, and you will get the sequential numbers. But, this way is only good for the sequential numbering, not others ,such as '*'.

(II)
Uwe's
Create a displayed equation and use the shortcut "M-m n" or the menu "Edit -> Math - > Numbering" to toggle the numbering on/off (the cursor must be inside the formula).
You don't need to label a formula to number it.

To number only some lines of a multiline formula, use "M-m N" or the menu "Edit -> Math - > Line Numbering".

Zhenhua adds,
I think this way is more formal than the first one, since it displays almost the same as the equations environment when you type the TeX code.

(III)
Enrico's
Enter \tag in the equation and then press space. Put * in
the placeholder and use whatever label you like. Be sure to uncheck
"Use AMS math package automatically" and check "Use AMS math package"
in "Document->Settings->Math Options".

Zhenhua adds,
In this way, you can freely number the equations. Actually, this method is using the TeX code to number the equations which is only for the AMS package, since the '\tag' is only well defined in AMS mode,

That is all!

Best wishes,

Zhenhua

Reply via email to