GeneralCross-referencing equations from another document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Cross-referencing equations from another document

Post by curiouslearn »

Is it possible to reference equations from another document? For example, if I am responding to referees in one document, can I refer to equations from my manuscript, which is a different document?

Thanks very much.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Cross-referencing equations from another document

Post by Juanjo »

Try the xr package.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Re: Cross-referencing equations from another document

Post by curiouslearn »

That package looks great. Will try it out. Thanks very much.
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Cross-referencing equations from another document

Post by curiouslearn »

I tried that. The problem is that the package also adds the section name of the other document. For example, if section name is "Abc def" and I say

Code: Select all

Proposition \ref{Name}

(where Name refers to say, 3, then that is replaced by
Proposition 3Abc defproposition.3.

Can someone please suggest a way out?
Thanks.
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: Cross-referencing equations from another document

Post by Juanjo »

The hyperref package has been loaded In the document which is cited, but not in that where citation happens. Hence the \newlabel macro has a different definition in each document. Load hyperref in both documents or unload it in both.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Re: Cross-referencing equations from another document

Post by curiouslearn »

Juanjo, you are simply unbelievable. Thanks a ton. How did you figure that out??
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Cross-referencing equations from another document

Post by Juanjo »

curiouslearn wrote: How did you figure that out??
I've been playing with \newlabel and hyperref in a recent thread. :D
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply