0

This question already has an answer here:

When I refer to a table in text, the \ref{<labeloftable>} statement produces the chapter number in which the table resides, instead of the number of the table.

Any help would be welcomed!

marked as duplicate by Werner tables Dec 18 '14 at 3:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Dec 18 '14 at 1:10

This question came from our site for professional and enthusiast programmers.

  • Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Dec 18 '14 at 3:30
1

I figured it out. If the label statement of the table is defined before the caption statement, the \ref statement in text produces the chapter in which the table resides.

Switch places and it works a charm!

  • when we first started working on the uk tex faq, this question was one of the ones that "will stop appearing"... such high hopes: it's turned up with monotonous regularity ever since! – wasteofspace Dec 18 '14 at 14:02