package implements a system for eXternal References (cross referencing to any `\label`s in external files)

learn more… | top users | synonyms

1
vote
0answers
27 views

\pageref not working properly in main document with subfiles package and xr package

I have a main file setup with the subfiles package and the xr package. I am trying to make the \pageref command work properly for cross-references in the main file, but the page number it displays in ...
0
votes
1answer
16 views

'LaTeX Error: Can be used only in preamble' when using \externaldocument

I'm using 'xr' package for cross referencing across files. I have three files named 'main', 'file1' and 'file2' where all the packages are decalred in the main file. I'm including the files in the ...
1
vote
2answers
33 views

Failure to use bibliography in other tex file

I have two .tex files: reftest.tex which contains the main details: reference, figure, equation; and cross_ref.tex. In cross_ref.tex, I want to cross-reference citation of refernece in the reftest.tex ...
3
votes
1answer
76 views

\hyperref fails when cross-referencing between different files

I am working on a multi-volume project where different volumes contain hyperlinks to other volumes. I use a technique described on this web-site in a number of posts, see e.g., Cross-referencing ...
1
vote
1answer
43 views

Missing \endcsname with xr cross referencing

I searched a lot, but cannot figure out the following problem: I am trying to reference another document using the xr package. I also tried out zref but it does not matter regarding the error message. ...
5
votes
1answer
53 views

substitute a character from one script to another

I am working in XeLaTeX + Memoir, and I have two documents: one typeset in English and another typeset in Arabic. As the two documents are related, I am using the package xr to establish ...
11
votes
1answer
237 views

Can one safely redefine \jobname?

I want to access labels from an external document -- in general this is not a problem with the xr package. But in this case both documents are compiled on sharelatex, and there \jobname is always set ...
3
votes
2answers
421 views

cross reference with xr fails (ShareLatex)

I try to use xr for cross referencing, and I get question marks instead of the reference and a warning: Reference updateEq on page 1 undefined on input line 93 on the document i am referring to ...
3
votes
1answer
150 views

Correct ordering of xr-hyper, hyperref, and cleveref

I want to use \cref, external documents, and hyperrefs. Take the following file, label it main1.tex and compile it: \documentclass{article} \usepackage[capitalise,noabbrev]{cleveref} ...
3
votes
1answer
128 views

Special \cref display for \externaldocument

I am using cleveref pointing to equations within my document, as well as to a technical appendix in a separate file (loaded by \externaldocument) Setup Lets that the the first file was in main.tex, ...
4
votes
2answers
103 views

Using xr to refer to another document without hyperref

I have two documents A and B. I wish to refer to theorems and lemmas from A in B. To do this I am using the package xr in B. If I use the package hyperref in B then it's all fine. Otherwise, when I ...
1
vote
0answers
398 views

externaldocument references with standalone

I have a main document, /home/con/Documents/Thesis/thesis.tex, that loads a file /home/con/Documents/RNA/rna.tex with standalone. This works surprisingly well. However, there are 2 problems: 1. ...
1
vote
0answers
36 views

external reference with lyx [duplicate]

I am attempting to reference labels in an external LyX document. I have found how to do this using the xr package in .tex files. However, I see no way of doing this in LyX without having to export to ...
3
votes
1answer
130 views

Including title of document in external reference

I'm currently using xr to reference external documents. It's good in as much as I get linked via hyperref to the relevant result, but it would be helpful if it displayed the title of the document ...
1
vote
1answer
180 views

Problem with xr-hyper and xepersian latex packages

I had a problem with xr package and xepersian package; when I use these packages, I can not use options for external document command. File A: \documentclass{report} ...
4
votes
1answer
107 views

Memoir's \NumToName doesn't work with cross-referenced items

I got external references to work with memoir and hyperref here: hyperref and xr-hyper break memoir's \titleref, but references to external documents don't work with memoir \NumToName: ...
5
votes
2answers
600 views

hyperref and xr-hyper break memoir's \titleref

I have one document that has hyperref loaded, and works fine. I have a second document that I am using xr-hyper to reference the first. If I remove hyperref from the first document, the \titleref{} ...
4
votes
1answer
590 views

Referencing an article from a beamer document with xr-hyper

I'm trying to link to a label in an article from a beamer file. The reference itself works fine, but the hyperlink doesn't. It gets defaulted to page 1 of the beamer file. This is the article: ...
8
votes
1answer
153 views

using \ref for words in text - across files - and including urls

So, I have a couple of questions, I'll try to build it up progressively: I want to use labels and references for words or phrases instead of the usual reference to a section number or page. I found ...
4
votes
3answers
882 views

Automatically add prefix to references from another document?

I'm using xr to reference equations in supplemental material to a paper. I'd like equations from the supplement referenced in the paper to automatically be prefixed with "S", so that ...
4
votes
2answers
212 views

How to cross-reference labels between two documents without hyperlinks, while still creating hyperlinks to labels within the same document?

I have two documents (A and B) with labels. I would like to reference the labels in document A from document B. I would like to use the hyperref package to create hyperlinks in document B to the ...
2
votes
1answer
291 views

question marks appearing using xr

I am creating a document in LaTeX using TeXworks and I cannot get cross-referencing between separate files working. Every time I use \ref to a label I get two question marks. I have three separate ...
6
votes
1answer
746 views

Lyx cross-referencing between branches

I'm writing a paper in LyX, of which there are two versions -- a short and a long version. I've created two branches in the (single) LyX file, and will switch them on and off appropriately. I'd like ...
2
votes
1answer
1k views

xr and hyperref to link between two PDF documents [duplicate]

Possible Duplicate: Does hyperref work between two files? I am using the xr package to write a PDF document that contains references to another PDF document, like "in section bla of the ...