The problem is that i have good labels ('good' I mean that they are after caption, I tried with labels in the same line as the caption, and in the next line) and I'm trying to use references to my figures or tables. In one part of the document, they work good. And then, I have one figure after one table, without any thext between them, I have before them text with reference to the table anf to the figure, and pdf shows ref for figure, but for table it shows "??". And the rest figures after that are "??" and one table has working reference, but it is wrong, because table is 6, and reference shows table 2. It isn't my first LaTeX document, I did similar raports with tables and figures before, I check the document and I don't know what is going on.

This is my preambule:

\documentclass[a4paper, 11pt]{article}

And the last working figure and not working table:

Wyniki zostaly przedstawione w tabeli \ref{czulosc} oraz na rysunku \ref{st}. 

My table here


Thank you for your help.

closed as off-topic by egreg, user13907, Andrew, Jesse, Werner Aug 11 '15 at 23:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – egreg, Community
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Jul 12 '15 at 21:03
  • 1
    We'd really like a complete example we can copy-paste to reproduce the problem. There is nothing obviously wrong with the code you've posted. – cfr Jul 12 '15 at 21:21
  • Maybe I should uplod somewhere my work, because it is long document with tables and figures. I have it on dropbox, so I can share a folder with this document. Is it a good solution? – majas Jul 12 '15 at 21:28
  • A real minimal working example will be better, it will take half an hour to do so though. But you might find the reason yourself, and this is a great feeling :-) If not, we will have just the right stuff to do some testing and provide a solution to your personal problem. – Johannes_B Jul 12 '15 at 21:31
  • 2
    I'm voting to close this question as off-topic because the problem was caused by the OP putting their files in unexpected places. – Andrew Aug 11 '15 at 22:58

Thanks guys for your concern. I solved the problem. It looks like there wasn't any problem with the document structure and latex code, but with my files! When I started writing this document in LaTeX, a haven't mark the option in TeXmaker, that every "build" files would go to new folder "build", and in some time, when I was working on other documents, I marked this option. And in that case, I had some build files in the special folder, and outside it, where the tex file was. When I wanted to share with you this document, I did the new folder on my dropbox, copy-paste the old folder, and I have deleted not important files, including this build files outside buil folder. My curiosity pushed me to try, if the document will work. And I didn't see any log messages with undefined references... So, in conclusion, it was my fault. The problem wasn't in the code, but outside the code. Thank you very much for your attention again.

Not the answer you're looking for? Browse other questions tagged or ask your own question.