In revisions to a manuscript, we need to make references to where some text has been added in the main document (manuscript.tex
), in our response document (response.tex
). As can be expected in drafting cycle involving multiple authors (we use GitHub to synchronize and maintain a paper trail), the locations in manuscript.pdf as generated using lineno keep on changing. While I can use things like \pageref{}
inside the same document, how do we reference locations in another document? The expected sentence at the end of each response in response.tex has to read like: "We have made the aforementioned additions at line number (line number) on page (page number), and column (col number) of the manuscript.". Currently, we are manually making changes after looking at generated PDFs, and this is highly error-prone.
I have looked at suggested package xr
(which now includes the capabilities of xcite). I have defined \externaldocument[main:]{manuscript}
in the preamble of response.tex
. \ref{main:q1}
works, but citations (\cite{main:c1}
) do not resolve.
I am using the defined prefix (main:
) for all \ref
and \cite
commands in response.tex to keep things unambiguous.
lineno
user manual.