TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Does hyperref work between two files?

I am using the xr package to write a PDF document that contains references to another PDF document, like "in section bla of the other document...". For example, in the referred document there is this code:


and in the referring document there is this code:

in Section~\ref{sec:bla} in the other document...

The cross-referencing works - the ref appears with the correct section number.

Can I use hyperref together with xr to make the link actually point to a page in the other document, so when it is clicked, the right place in the other document will pop up? It is OK to assume that both file are in the same dir.

Comment: I saw that this can be done explicitly using \hyperdef and \hyperref here. Can it be done automatically just using xr and cross-references?

share|improve this question

marked as duplicate by diabonas, qubyte, Little Bobby Tables, Leo Liu, Ian Thompson Mar 4 '12 at 13:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Yes, so it seems. Thanks for pointing to the right answer, I did not find it for some reason. I'll close it. – Little Bobby Tables Mar 4 '12 at 12:43

hyperref comes with a modified version of xr, xr-hyper with the same user interface but matching hyperref internals.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.