lyx-users  

Re: Number an equation according to a previous equation's number

Paul A. Rubin
Tue, 02 Sep 2008 19:36:27 -0700

Renaud Lacour wrote:
Le mardi 02 septembre 2008, Paul A. Rubin a écrit :

Renaud Lacour wrote:
Hello,

I would like to achieve the following example.

Assume I number a given equation in a LyX document with the tag
"eq:property" and the resulting number is "n". Then after some text
and equations, I put a slightly modified version of "eq:property".
How can I number the last equation "n'" ?

Thank you for your answer.
Inside the new equation, type \tag and hit the space bar to get a blue widget. In the widget, insert a cross reference to eq:property, followed by a single quote. You need to load the AMS math package; if you have LyX set to load it automatically, that will work (LyX will see the \tag and load the package).

Thank you for this, it works fine.

Now how can I put a reference to the last equation?


The usual way; just insert a label in the equation and use a cross-reference later. The cross-reference will pick up the contents of the \tag{} command as if it were a normal equation number.

/Paul