Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I keep running to an error that relates to referring to one of the tables in my paper. Suppose I have the following figure at the bottom of the paper:

\begin{table} 
\centering 
\caption{This is the table that breaks...}
\begin{tabular}{\hsize}{@{\extracolsep{\fill}}cccc} 
one & two & three \cr 
\hline 
1 & 5 & 9 \cr 
2 & 6 & 10 \cr 
3 & 7 & 11 \cr 
4 & 8 & 12 \cr 
\hline 
\end{tabular}
\label{table:mybrokentable} 
\end{table}

I refer to the table by including \ref{table:mybrokentable}. This worked fine for two references, but I was able to narrow down the error to the very last reference (the third) to this table. Any ideas what is happening?

share|improve this question
This input should not give that problem. Maybe it refers to something else, try to narrow the problem down to a minimal example. – egreg Apr 26 '12 at 17:57
The floats lost error is not generated by \ref it comes from the code that tries to position the float on the page. Can you make a complete but small example that generates the error: keep removing things until the error goes away and post the smallest document that shows the error. – David Carlisle Apr 26 '12 at 18:00
I could tell that the issue was not from \ref, but it was strange to me that commenting out a line that contains only \ref{table:mybrokentable} when there are other mybrokentable references would "fix" the issue. Anyway, I was able to get the paper to compile by including \clearpage after every figure. Not ideal, but I may do some further forensics and come up with a smaller example for you all if this becomes a problem later on. Thanks! – Jason Apr 26 '12 at 18:08
Ok, so I will close this question for now. Feel free to edit it if you like, it can be reopened. – Stefan Kottwitz Apr 26 '12 at 18:27

closed as too localized by Stefan Kottwitz Apr 26 '12 at 18:27

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.