Sometimes I want to refer (using
\label from some other tex file. What is the right way to do it?
(It's, of course, possible to
\include all files in one and then use
\includeonly — but it breaks e.g. page and section numbering.)
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.Sign up to join this community
Referring to labels in other documents
When producing a set of inter-related documents, you’ll often want to refer to labels in another document of the set; but LaTeX, of its own accord, doesn’t permit this.
So the package
xrwas written: if you say
will load all the references from volume1 into your present document.