In my thesis at one point I write something like:
We refer to the version of Algorithm A in which we replace
routine x with routine y by Alborithm B.
Now I use labels for Algorithms A and B. Whenever I reference
Algorithms A or B I use cross-references.
Thus Algorithm A is known as Algorithm 2.2.3 when printed
and Algorithm B should be known as Algorithm 2.2.6 when printed.
Unfortunately Lyx doesn't handle this the way I want.
1) Lyx fails to print the value of the label where it is declared.
That is it prints: "routine x with routine y by Algorithm .".
(The correct label is used on the screen.)
2) When I cross reference Algorithm B a different number is used
than 2.2.4 such as 2.2.1.
3) The next paragraph to be labeled (Style Problem) is given the
number 2.2.6. This number should be given to Algorithm B.
It seems to me that the best fix is to have a paragraph using
style "Algorithm" which does not show up when printed.
Is this possible? How do I do it? If not, how else can I achieve
the effect that I want?
Ralph Boland
p.s. I realize this is not a Lyx problem but a problem with the
way I am attempting to use it. But I still need to do what I am
trying to do.