I'm getting the following warning:
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
The problem is, it doesn't go away after rerunning (any number of times).
The document in question is over 200 pages long and includes about 30 packages, so it's not really feasible for me to provide a minimal example. But I know my own code pretty well. I can probably fix it if I knew a bit more about the problem. So I want to ask some general questions:
- How does the "labels changed; rerun" mechanism work, anyway?
- Is there a common culprit responsible for this problem?
- How would someone generally go about diagnosing it?
I've read the following question:
But I'm not using the elsarticle or acronym packages, so the accepted answer didn't apply to me.
More info: As suggested, I did a kind of 'commenting out' binary search. (By the way, if LaTeX knows that labels may have changed, why can't it tell me which labels?)
Anyway, I seemed to track down the problem to a specific figure. When I compile only chapters 1 to 3, removing that figure also removes the warning. However, if I once again include all chapters, removing that figure isn't enough. So I guess there are other problem locations. But I don't have time to search chapters 4 to 9 right now...
I can also tell you this: I have a tmp directory where LaTeX and friends dump all temporary files. And between two compilations, the relevant content of this directory does not change at all. That is to say, diff -r tells me that the only changes are some timestamps and the .pdf file. In particular: all .aux files are identical.
auxfile? – Sigur Jan 17 '14 at 16:48silencewith an entertaining manual. Look atyaxtoo while you are at it which is slowly replacingpgfkeysfor me. – percusse Jan 17 '14 at 16:50variorefpackage is used. It's a common culprit for this kind of behaviour. The only fix would be to use a normal\refat the point that's responsible or change the text slightly so the\vrefisn't at a page boundary anymore. https://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing#The_varioref_package – Christian Jan 17 '14 at 17:55.auxfiles, so that's not it. – mhelvens Jan 18 '14 at 14:32.pdf. – mhelvens Jan 18 '14 at 14:35variorefis not used by me, directly or indirectly. However, I do usecleverefextensively. – mhelvens Jan 18 '14 at 14:38cleverefshouldn't be an issue since it doesn't change the reference text depending on the relative position of the reference and the referenced object asvariorefdoes (and which can therefore cause such problems). – Christian Jan 18 '14 at 17:16