Questions tagged [xr]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

hyperref external reference

I want to reference external documents using hyperref on the files test1 and test2 below. Presumably for security reasons, the links don't work. With MacOs Preview nothing happens and Adobe Reader in ...
0
votes
0answers
13 views

Standalone class and Cross referencing

Is the standalone package compatible with the crossref (xr) package? This has been asked before, but the answer does not work for me. MWE: main.tex \documentclass[]{article} \usepackage{standalone} \...
0
votes
0answers
20 views

Referencing my own .tex-files

I am trying to reference doc1.tex in doc2.tex inside the same project on overleaf. I have seen several posts here, but they were all not detailed enough for me. I am very new to LateX. So far I have ...
0
votes
0answers
30 views

Customizing titles for xr-hyper

I'm using xr-hyper and hyperref to do cross-referencing between different documents. Suppose in a.tex I have \label{eq:cool} and in b.tex, I have \externaldocument[a-]{a}[a.pdf] in the preamble and ...
1
vote
0answers
26 views

Configure latexmk to work recursively with files living in different folders

This is a follow up on How to configure latexmk to work recursively? (PDF Thumbnails) and latexmk with external references. Let me first say what I'm trying to achieve. I have a latex project that ...
0
votes
0answers
154 views

“Package xr warning: No file file4.aux LABELS NOT IMPORTED” – What's wrong?

I'm working on an article with tons of appendices that we need a cross referencing system for. Since we user hyperref, I gave the xr-hyper package a try. After MANY attempts, I got it to work with ...
0
votes
1answer
273 views

Using the xr package and - missing aux file? “Warning: No file SupplementalMaterial.aux LABELS NOT IMPORTED”

I'm using Overleaf to write a paper with supplementary material and have been having substantial trouble with separating out Supplemental Material while maintaining references. My MWE is as follows - ...
0
votes
1answer
51 views

{}\edef \Hy@tempb {cite.\XR@prefix error when citing same bibtex entry in \externaldocument

I have the following .tex file in a folder main.tex --- \documentclass[11pt]{article} \usepackage{hyperref} \title{} \author{} \begin{document} \maketitle \cite{entry} \bibliography{bib}{} \...
1
vote
0answers
32 views

xr package and pgfplots/tikz

I'm using tikz/pgfplots to draw my figures. Usually, my figure is a standalone file that I compile and in my main file, I simply import the pdf with \includegraphcis. I now want to refer to curve in ...
2
votes
0answers
44 views

Use text passages including references of one .tex file in another .tex file

I (teacher at university) plan to create a questionnaire based on the following MWE questionnare.tex. The important point is that some of the questions refer to each other. \documentclass[DIV=12]{...
4
votes
1answer
92 views

How do I reference sections in other subfiles?

I cannot figure out how in the world I am suppose to reference other sections in subfiles. I have prepared a simple example below: main \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{...
1
vote
1answer
97 views

Unable to reference figure from one subfile to another subfile when compiling ONLY the subfile

I have the following files in Overleaf: main.tex in root directory: \documentclass[conference]{IEEEtran} \usepackage{xr} \usepackage{subfiles} \begin{document} \section{Methodology} \label{...
1
vote
1answer
47 views

Avoiding expansion of referenced captions when cross-referencing external documents with TeX4ht

This is a follow-up question to another question. The selected answer proposes the use of zref-xr, which works fine for PDF output, but has its limitations when using TeX4ht: the configuration via \...
0
votes
1answer
64 views

Handling main text and supplementary information crossreferencing each other on arXiv

A typical example when writing a paper is that you have a main document main.tex and a document containing supplementary information si.tex. Both documents are stand-alone in the sense that they ...
1
vote
1answer
166 views

Cross-reference with `xr` package and final PDF combination?

So I have been using cross-references so far in Overleaf using this idea from StackExchange, which was adapted in Overleaf itself here. My question is, when I am finally combining main.tex and SI.tex ...
0
votes
1answer
27 views

How to number labeled equations with different files?

I have a file main.tex \documentclass{article} \usepackage{xr-hyper} \usepackage{hyperref} \usepackage{mathtools} \mathtoolsset{showonlyrefs} \begin{document} \begin{equation}\label{sec:mytitle} 1 +...
0
votes
0answers
72 views

Using cref to cross-reference from extra document (with different \crefname)

As a novice to latex I am writing a paper with supplementary material in an extra file. I cross-reference the supplementary stuff in the main text with xr-hyper. To do this conveniently I have set up ...
0
votes
1answer
108 views

`xr` Cross-Reference: Change Colour for External References Only

I want to reference between two files, say Paper1 and Paper2. I'm using hyperref in each of the documents for internal references. So as to make clear which references are internal and which are ...
0
votes
0answers
42 views

in subfile: name{theorem.0.1} has been referenced but does not exist, replaced by a fixed one

since I was not able to find a solution online, which fixed this problem, so I hope someone here can help me :) Here is my main.tex file: \documentclass[a4paper,12pt,headsepline]{article} \...
2
votes
1answer
65 views

fontspec and xr package incompatible in Overleaf

I am trying to use the xr package in Overleaf and set a custom font in the referenced file. However, as soon as I load the fontspec package in the referenced file, the xr package does not recognize ...
0
votes
1answer
36 views

Add a document name, while using an external document reference

I'm using xr package for referencing to external documents. I want to add external document title to a reference. How it could be obtained?
1
vote
1answer
39 views

Problem referencing labels with href

I am trying to reference certain sections with href in my index (not using the normal index because I wanted to make a custom one), but when clicking on them it just takes me to the top of the main ...
0
votes
0answers
113 views

latexmk with external references in both directions

I am aware of the question below about how to refer, in file1, to labels from file2. latexmk with external references However, I must also refer, in file2, to labels from file1. I am able to do it ...
2
votes
1answer
88 views

Doc-Start appearing when using xr package

I am trying to write up an article that uses the xr package (or maybe it needs to be zref) to reference labels in two different documents: an article and a beamer presentation. The references from ...
0
votes
0answers
30 views

Re-calling/re-printing a theorem from an external document [duplicate]

For a manuscript I need to include theorem proofs as supplementary material. So I mention the theorem in the main file and I need to re-print the theorem in the supplementary material with the same ...
0
votes
1answer
76 views

Incompatibility between xr-hyper and redefinition of \section

This is main.tex \documentclass[headings=optiontohead]{scrbook} \usepackage{subfiles, xparse, xr-hyper, hyperref} \externaldocument{main} % so that cross-references work in subfiles \let\oldsection\...
-1
votes
1answer
204 views

How to use \ref to refer to a \label in another document?

I have two documents and am trying to use the package xr to create a reference, in the second document, to a \label in the first. But ?? appears in the PDF instead. How do I enable the second to see ...
1
vote
1answer
70 views

xr-hyper package and \includegraphics

With the two following documents, I get a correct result: in the second document, the first chapter page from first document is included and the external link opens the correct page in the first ...
1
vote
0answers
72 views

Trick/Workaround for cross reference between files without xr

I have a main manuscript and a supplementary materials tex files. These are based on templates by the AGU journals, therefore it is not recommended to add any other packages, than those provided. I ...
0
votes
0answers
64 views

Using xr-hyper with Bibliography

Is there a way in xr-hyper to use \cite{<ref1>} in order to reference to the bibliography of the source file?
2
votes
1answer
64 views

Want naked links across files

I compile via pdflatex f01.tex. My preamble normally contains ... \usepackage{xr-hyper} \usepackage{hyperref} Suppose that I have f01.tex and f02.tex in the same directory, and (for example) f01....
0
votes
1answer
245 views

Use autofill for labels across many files in latextools with Sublime Text 3 with xr pakcage

I have three tex files: File 1. Main paper; File 2. Supplementary file; File 3. A referee report. As you can see there is no "master" file. However, I want to be able refer labels in one file in ...
3
votes
1answer
230 views

Cross-referencing and chemnum

I have two separated documents, compiled independently and residing in two completely different folders. I heavily rely on the chemnum package to assign numbers to the many molecules I have in both ...
1
vote
1answer
42 views

Reference across files is followed by unwanted text

I am writing an errata for a book. In this errata, I need to cross-refer to the pages where changes have taken place. I use the package xr to achieve this: \documentclass[11pt]{article} \usepackage{...
1
vote
0answers
249 views

External document cross-referencing not working [duplicate]

I am having trouble getting cross-referencing to work. I am using the package xr-hyper. I have a 'main' file called main.tex and two subfiles called intro.tex (Introduction) and app.tex (Appendix A). ...
0
votes
1answer
135 views

Ignore a section or chapter when cross-referencing

I maintain a set of open calculus texts for our calculus sequence, which has four courses (Calculus I-IV). Each course has its own corresponding open text. Occasionally the text for a later course ...
1
vote
1answer
154 views

external cross-reference to a line number using lineno and xr-hyper

I try to reference a line number in source.tex from a dest.tex document. When (PdfLaTeX-)compiling dest, I get the following error. ! Extra \else. \@hyper@readexternallink ...#7\\{#3}{#2}{#7}\else ...
9
votes
1answer
3k views

Cross references and subfiles

I want to take references between subfiles for a big project, the main structure is for the main files is main.tex: \documentclass[12pt]{book} \usepackage{subfiles} \usepackage{xr} \...
2
votes
0answers
327 views

xr package + latexmkrc not working with includegraphics command?

I am trying to implement the trick described here for using the xr package to have latex references work across multiple files automatically. The technique works great, except if there is an ...
6
votes
2answers
1k views

Cross Reference problem

I have a problem when I use a cross-reference from other files. I have a folder in which there is a main.tex file and a subfolder (Chapter) containing Chapter1.tex and Chapter2.tex. In the main file, ...
3
votes
0answers
3k views

Cross-referencing between two files in overleaf

I have two files, SI.tex and main.tex. There is a subsection in main.tex that is labeled subsec:A. I want to reference this subsection from SI.tex. I'm doing this in overleaf, just in case that makes ...
3
votes
2answers
628 views

Cross-referencing between local files with \href

I am struggling with the creation of cross-references between different files. What I want to do is the following. I want to create two separate documents (books). One of the documents (doc1) will ...
2
votes
1answer
821 views

Failing to run xr package

I have created two LaTeX files: 1.tex and 2.tex. First file contains a figure and I want to make a reference to that figure in the second file. I run pdfLaTeX several times (2-3) for both files. Sadly ...
0
votes
1answer
2k views

xr can't find references in external document

I tried to use the xr package to get cross-references between files. My primary document is book.tex: \documentclass[a4paper,10pt]{scrbook} \usepackage{hyperref} \begin{document} \chapter{...
0
votes
1answer
745 views

Cross-referencing across folders

I have multiple documents which require cross-referencing from one another (I am the author of all of them). Each document lies in a separate folder. As an example, everything lives in a directory ...
2
votes
1answer
214 views

Using xr-hyper and hyperref - error when setting the page counter

I am trying to set the page counter of docB.tex based on the page of docA.tex that contains the label my-label. I'm using the packages xr-hyper and hyperref based on this example. docA.tex \...
2
votes
1answer
118 views

Carrying counters over to another file using zref

During my last experiences with cross-referencing on total counts between different files, a problem of carrying counters over to another file appears. Somehow there is an error when I use for these ...
1
vote
1answer
153 views

How to get a total number of literature references and save it to a user defined counter?

During my last experience with Cross-referencing on total counts between different files, which can be read here, a problem of saving the total number of literature references in a user defined ...
5
votes
1answer
317 views

Cross-referencing on total counts between different files

Suppose that we have three .tex files in one folder called PhDThesis.tex, Synopsis.tex and conclusion.tex. There is also one bib-file called my_bibio.bib In Synopsis we have a short description of ...
3
votes
0answers
261 views

Cross referencing line numbers between multiple documents with the pagewise option set

I am using the lineno package with pagewise numberings set. I would like to reference these line numbers from another file, so I am using the xr package. However, it doesn't seem to pick up on the ...