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.
General ⇒ cross references between documents
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: cross references between documents
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 ?
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 ?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
cross references between documents
The Board Rules are placed on top of every forum among the announcements and can't be overlooked.moshiko wrote:[...] where is section 3 of board rules ?
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: cross references between documents
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.
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
Re: cross references between documents
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.
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.
Re: cross references between documents
any idea about my post ?