3

I have a main document (manuscript) and a supplemental document.

I wonder if there is a way that I can "link" the two (make them recognize each other) so that section, equation, and figure references across documents are recognized?

hatmatrix
  • 2,913
  • 6
  • 31
  • 41

2 Answers2

5

The xr package is probably what you need.

cmhughes
  • 100,947
0

You can use the xr package with the following setup in the header of both files

\usepackage{xr-hyper} \usepackage{hyperref} \externaldocument[]{name_of_other_file_without_extension}

You can then just use regular \ref{fig:label name} like you would in the same document.

Placing this header info at the bottom on the header will likely reduce package conflicts regarding hyperref.

source for more reading.