is there any way where i can put a label on a full latex document and refer to it in another tex file.
e.g. supplement.tex
\documentclass[review,12pt]{article}
\usepackage{graphicx}
\begin{document}
\label{supplement1}
something
\end{document}
and in the main document main.tex
do something like:
\documentclass[review,12pt]{article}
\usepackage{graphicx}
\externaldocument{supplement}
\begin{document}
something is refered from Supplement file~\ref{supplement1}
\end{document}
EDIT
thanks for your comments, what i basically want is not to refer to a section or chapter in another document, but i want to refer to the whole document.
xr
system for external references) are designed to produce dynamically constructed numbers. For the file reference, if you just want the filename, just type the filename (or if you want it to be a link, hyperref can make it so)xr
which does not answer this question. I voted for reopen.