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.
xrsystem 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) – David Carlisle Feb 12 '14 at 16:37xrwhich does not answer this question. I voted for reopen. – David Carlisle Feb 12 '14 at 17:48