Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

\section{Bla}
\label{sec:bla}

and in the referring document there is this code:

\usepackage{hyperref}
\usepackage{xr}
...
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
add comment

1 Answer

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

share|improve this answer
add comment

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