- Documentation
- Manuals
- Tutorials
- Presentations
- LyX Functions
- Troubleshooting
- Suggested reading
- Official web site
Edit Links |
Tips /
## EquationNumbering
<< | Page list | >>
Tips related to equation numbering This page is for tips on how to number (or not number) equations in LyX and LaTeX.
## Edit or change a label of a equationTo change the label of a equation put your cursor in the very equation and insert a label (Insert > Label). The old label will be shown in the dialog and can be edited. ## Remove an equation label and number- Double-click the icon "Set display mode" in the math toolbar (it can be turned on via: View -> Toolbars -> Math)
The first clicking changes the equation to an inline formula and deletes the equation label at the same time. The seconding clicking changes the equation back to the display mode. Using the keyboard, press Ctrl+Shift+M twice. And another way: - Cut the content of the equation
- Create a new equation of the same type
- Paste the contents into the new equation
- Delete the old equation.
## Automatically number all (display) equationsAn option to automatically number all equations entered in display mode is on the developer "wish list". Meanwhile, two work-arounds have been suggested: (a) insert \renewcommand\[{\begin{equation}}
\renewcommand\]{\end{equation}}
in the document preamble; or (b) bind If you want all equations numbered by default in new documents, you might use option (a) in a template file. ## Restart equation numbering when a new part or section startsTo achieve this add the following line to your document preamble: \@addtoreset{equation}{part}
or \@addtoreset{equation}{section}
respectively. ## Number equations together with the part or sectionor \numberwithin{equation}{section}
respectively. But it requires amsmath, so make sure that "Use AMS math package" is selected in Document→Settings→Math Options |

Page last modified on 2011-04-17 19:33 CEST