I am writing a thesis. In the main file of the thesis, I have included \usepackage{xr}
. Then in Chapter2, I have included \externaldocument{./Chapters/Chapter1}
to get access of equations of Chapter1. But I cant. Can anyone help me in this regard?
[Tex/LaTex] Cross-referencing between chapters
cross-referencing
Best Answer
The
xr
package is not meant to get references from external files that are included anyway -- it works, but it will complain about the multiply defined labels (unless the optional argument of\externaldocument
is used.Rather use
\include
or\input
. This way the content of files are included and the references are correct anyway!chapterone.tex
:chaptertwo.tex
Other way (but not really useful!):