I have a main file (say, main.tex) and two chapters in separate files (labour.tex, health.tex) which the main file reads via \externaldocument (I've also used \input but with the same disappointing results).
I want to write in labour something like:
In Chapter health we find...
How can I reference the name of a file within another file, none of which is the main one?
I've tried the xr package, but as far I can tell (not much, admittedly) it helps cross-reference objects such as equations existing in a separate file, but I couldn't figure out how to reference the name of another file.
\label{chapter:health}andIn Chapter \nameref{chapter:health}, making them independent of the the filename? – Aug 18 '14 at 20:22\labelas Christian says, with\inputthen you don't need xr or external document – David Carlisle Aug 18 '14 at 20:24