Generalcross references between documents

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
moshiko
Posts: 30
Joined: Fri May 08, 2009 9:03 am

cross references between documents

Post by moshiko »

Hi,

I have the following question which I am sure everyone faced before.

Whenever a paper returns from review, I need to revise the latex source and also to write a separate reply letter to the reviewers. Typically, the reply letter refers to changes that were made in the paper to address the reviewers' comments. In order to be specific, each reply refers the reviewer to a specific location (section, page, paragraph etc.) where he/she can observe the change. Since I keep changing both documents, it requires repeated and manual updating of the references in the reply letter, something that I would like to avoid.

The method I had in mind (which I am sure is possible and even exists already) is to place bookmarks in the main source file, say \bookmark{A}. These bookmarks do not appear in the output pdf, but the auxiliary file contains information on their locations. Then, in the reply letter I can use something like, sectionof{A}, which would indicate the section number in which bookmark A appears. It would be nice to have pageof(A) and paragraphof(A) which would return the page number and the paragraph number within the section.

I would also like to refer to standard numbered items in the paper, e.g. equation \ref{eq:ab}, where \label{eq:ab} is defined in the main source.

Please let me know if you are aware of how to perform these references.

thanks,
-moshiko.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

cross references between documents

Post by localghost »

Seems to be a job for the xr(-hyper) package.


Thorsten
moshiko
Posts: 30
Joined: Fri May 08, 2009 9:03 am

Re: cross references between documents

Post by moshiko »

thanks.
it fulfill most of my wishes :)

can you please advise how to:
1. refer to the paragraph location within a section... I am not sure it is possible

2. add link to the cross document. I read the following webpage which explains that I need to load the packages as follows:
\usepackage{xr-hyper}
\usepackage{hyperref}
\externaldocument[V1-]{volume1}
...
... the \nameref{V1-introduction})...

However, pdflatex stops on error "runaway argument?".. what is the problem ?

thanks.

p.s. where is section 3 of board rules ?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

cross references between documents

Post by localghost »

moshiko wrote:[...] where is section 3 of board rules ?
The Board Rules are placed on top of every forum among the announcements and can't be overlooked.

At the moment I'm pessimistic that your questions can be answered. You have to provide useful information [1]. And you should echo error messages exactly from the log. Regarding errors the compiler is very clear.

[1] View topic: Avoidable mistakes
moshiko
Posts: 30
Joined: Fri May 08, 2009 9:03 am

Re: cross references between documents

Post by moshiko »

My code example was indeed partial.
I attach a minimal working example of the problem.
the zip file contains:
foo.tex and foo.pdf - this is where the labels are defined
bar.tex - here I would like to refer to labels of foo.tex
bar.log - the error message I get from the compiler. It is not so clear to me.

thanks,
-moshiko.
Attachments
example.zip
(19.03 KiB) Downloaded 215 times
moshiko
Posts: 30
Joined: Fri May 08, 2009 9:03 am

Re: cross references between documents

Post by moshiko »

In addition, I would like to remind my other question about referring to paragraph numbers.
I found packages like ledmac and others which enable adding numbers to a paper (like running numbers of the lines, etc.). However, this would require changing the original document.

I would like a solution that has the minimal effect on the original document. I can add \usepackage{} statements if needed that will somehow save the paragraph numbering information into the aux file. But I do not wish to modify the text of the document.

Any idea ?

thanks.
moshiko
Posts: 30
Joined: Fri May 08, 2009 9:03 am

Re: cross references between documents

Post by moshiko »

any idea about my post ?
Post Reply