0

I am writing a book, I have a main.tex, Chapter1.tex and Chapter2.tex file. I have an equation in Chapter1.tex and I want to refereed it in Chapter2.tex.

I have defined the two chapter in main.tex as follows:

\include{Chapter1} 
\include{Chapter2}

We assume that the equation is labeled in Chapter 1 under the name \label{eq1}. I have tried to apply This solution. I added \usepackage{xr} in main.tex. Then I added \externaldocument{Chapter1} in Chapter2.tex. However, the result is always (??)

Chapter1.tex and Chapter2.tex as follows:

David Carlisle
  • 757,742
stevGates
  • 280

0 Answers0