Werner provided the real method, here's translated to LyX GUI (I tested this only with the simplest example):
For the first instance of the equation, add a label by right clicking the equation and selecting "Equation label".
The second time, write the equation, and while still in math mode add a TeX code box, by pressing Ctrl + L.
In this code box, write tag{
(the backslash should already be there, at least it was when I tested). This should give you a set of braces with a small box in it.
Choose Insert --> Cross-reference, and select the reference to the first instance of the equation.
A video showing the process, the TeX code menu option was outside the frame: http://www.youtube.com/watch?v=NTqLMO8WS6w
you're trying too hard. all you need is the single wrapper
\begin{equation}...\end{equation}
:
\documentclass[11pt,a4paper,twoside,openright]{report}
\usepackage{amsmath,amssymb}
\usepackage[USenglish]{babel}
\usepackage[latin1]{inputenc}
\pagestyle{empty}
\begin{document}
\begin{equation}
\label{10}
ABD =
\begin{bmatrix}
126102075.631 & 56957543.627 & 0 & 0 & 0 & 0 \\
56957543.627 & 107378189.106 & 0 & 0 & 0 & 0 \\
0 & 0 & 28004682.576 & 0 & 0 & 0 \\
0 & 0 & 0 & 373.068 & 1250.853 & 0 \\
0 & 0 & 0 & 1250.853 & 2.404 & 0 \\
0 & 0 & 0 & 0 & 0 & 1.22
\end{bmatrix}
\end{equation}
And here is a reference to the equation \eqref{10}
\end{document}
the problem here is that the matrix is too wide for the page, and the equation number
is appearing under the right-hand side of the equation, at the normal margin.
if you decrease the font size, wrapping it in this "container"
{\footnotesize
...
}
you will get this result:
as you can see, it is still very wide -- still too wide for the equation number to
fit beside it -- but it's more obvious that there is an equation number.
i'm not sure what to suggest to make this fit better; decreasing the type size
indefinitely is not an improvement. and the gap between columns is already quite
small relative to the contents.
Best Answer
No need for ERTs, go to Document --> Settings --> Document Class, add
leqno
to the Custom class options.