# Latex->Lyx bug ?



Hello!

I think there's a bug when you import the following type of
equation label to lyx:

(here's the original piece of latex code,
1'st the label)

$$\label{eq:syst_1} y(t)+A_1 y(t-1)=B_0 u(t-1)+ e(t)+C_1 e(t-1),$$

(and then the reference in text)

A natural state space representation for (\ref{eq:syst_1}) can be
achieved by substitution $y(t)= x(t)+ e(t)$, which leads to the
state space model

Now when you import this to Lyx and then export it back to Latex, the same
piece of Latex has been changed to the following:

(1'st the label)

$$\label{eq:syst_{1}} y(t)+A_{1}y(t-1)=B_{0}u(t-1)+e(t)+C_{1}e(t-1),$$

(then the reference)

A natural state space representation for (\ref{eq:syst_1}) can be achieved
by substitution $$y(t)=x(t)+e(t)$$, which leads to the state space model

As you can see, the label and the reference are not the same anymore, Latex->Lyx
has
generated {}-characters around the number in the label definition, but not in
the reference
field. This also means that Lyx can't find anymore the corresponding label in
question.
If you now look at the final ps-output, the reference point shows only this:
(??).
The same change can be seen in the generated lyx-file also.