1

I am using overleaf. I have two .tex files like table.tex and results.tex. Please note that none of them are main.tex. So all my preamble are in main.tex file. Now, I would like to refer to a table in my results.tex file and the table is written in table.tex. I tried to use the xr package but latex won't allow me to have \usepackage{xr} line in any other .tex files as I need to declare it only in my preamble, i.e. main.tex file. So, my question is, is there a way to cross reference between two .tex files which are not main.tex file?

Samiur Rahman
  • 63
  • 1
  • 6

0 Answers0