LyXcross-reference messed up

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
zu1u
Posts: 2
Joined: Thu Aug 27, 2009 12:24 am

cross-reference messed up

Post by zu1u »

Hi there,
i'm pretty new to lyx, so the question may be easy to answer.

I used lyx so far to write 50+ pages without any problems. Now I found that my cross-references don't work anymore as they're supposed to. They all point to the right labels in lyx, but when i generate a pdf, they point to the chapter, section, subsection .. wherever the label is in. For example i have a label for a float, and this reference to this float in PDF now points to the floats section which is somewhere else in the document.

And this is the same for all the other references. Yesterday it still worked as it should.

I of course removed one of the labels and references, and added them again etc. but this didnt help for me.

Is there any easy way i can solve this issue?

big thanks in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

cross-reference messed up

Post by gmedina »

Hi,

I do not use LyX, but that behaviour usually comes from misplacing the \label command in floats; please make sure to place the \label command (in the figure and table environments) after the corresponding \caption command.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
zu1u
Posts: 2
Joined: Thu Aug 27, 2009 12:24 am

Re: cross-reference messed up

Post by zu1u »

thanks man, that seems to help!
Post Reply