Go to page:

Search help:

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

EquationNumbering

Categories: Math, Tips
<< PaperLayout | Page list | OptionalEnvironmentArguments >>

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 equation

To 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

(If you know a better way, put it here...)

  1. Cut the content of the equation
  2. Create a new equation of the same type
  3. Paste the contents into the new equation
  4. Delete the old equation.

An alternative (simpler) way is double-clicking the "Set display mode" icon in the math toolbar (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).

The math toolbar can be turned on via: View -> Toolbars -> Math

Automatically number all (display) equations

An 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
"command-sequence math-display; math-number;"
to a key combination and use that combination to insert all display-mode formulas.

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 starts

To 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 section

To number equations in the form (section.formula) add this line to your document preamble:

\numberwithin{equation}{part}

or

\numberwithin{equation}{section}

respectively.

Math Tips

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2008-04-04 02:49 CEST