I have a main file (say,
main.tex) and two chapters in separate files (
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.