# Problem with references [closed]

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}
\usepackage[OT4]{polski}
\usepackage[utf8]{inputenc}
\usepackage{fullpage}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{float}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\renewcommand*{\figurename}{Rys.}
\renewcommand*{\tablename}{Tab.}
\usepackage{caption}
\captionsetup{font={footnotesize}}


And the last working figure and not working table:

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

\begin{table}[H]
\centering
\caption{caption}
\label{czulosc}
\begin{tabular}{rrr}
My table here
\end{tabular}
\end{table}

\begin{figure}[H]
\centering
\includegraphics[width=0.75\textwidth]{media}
\caption{caption}
\label{st}
\end{figure}


## closed as off-topic by egreg, user13907, Andrew, Jesse, WernerAug 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.

• 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
• 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
• 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