latex table reference
        Posted  
        
            by Tim
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Tim
        
        
        
        Published on 2010-03-19T14:07:05Z
        Indexed on 
            2010/03/19
            16:51 UTC
        
        
        Read the original article
        Hit count: 250
        
Hi,
I wrote a long table with a label in a tex file and \input it into my main tex file. The reference in the main tex file to the table, however, does not show the numbering of the table but the one of the next table that are written directly in the main tex file. All long tables that are written directly in the main tex file have correct references. How to fix my problem? Must the label be defined in the same tex file as its reference?
Thanks and regards!
The label is \label{tab:yy}, and the reference is \ref{tab:yy}, and every table has a distinct label.
© Stack Overflow or respective owner