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
14 views

Latex and file management: chained \include{…} and reference to active directory

For each chapter of a document I am working on I have a separate folder, and all folders are contained in a common superfolder, together with a file main.tex which should put them all together. ...
0
votes
0answers
47 views

Save a version of .aux file

I want to use a specific version of the .aux file. So I want to save this version for an eventual use with the xr package. Is there a way to do this task ? Note that the origin of this problem is from ...
0
votes
1answer
49 views

Warning in REVTeX 4.2 for references to an external document: “… has been referenced but does not exist, replaced by a fixed one”

First, I build the following external document, ExternalDoc.tex file, 3+ times. \documentclass[prl,aps,10pt]{revtex4-2} \usepackage{amsthm} \theoremstyle{definition} \newtheorem{thm}{Theorem} \...
0
votes
1answer
31 views

Can Overleaf accommodate pre-fixes for xr-hyper (e.g, \myexternaldocument[ext1-]{path…})

Short version: when using xr or xr-hyper on Overleaf, is it possible to add prefixes to external documents to avoid multiple defined labels (as defined here)? Longer version: I'm drafting a review ...
0
votes
1answer
25 views

Package xr prints ref number then label

Here's my MWE. \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage[margin=2.4cm]{geometry} \usepackage{% amsmath, amsfonts, amsthm, mathpazo, tgbonum, xr, ...
0
votes
0answers
29 views

How to use -cd label in latexmkrc when “No file C1.aux LABELS NOT IMPORTED.” error occured

I just get No file C1.aux LABELS NOT IMPORTED. error when I try to use \usepackage[subpreambles=true]{standalone} and \externaldocument{C1} commands, in order to quote from another latex files. I'm ...
0
votes
0answers
46 views

xr package not working properly

I'm trying to use the xr package, and I'm having problems. My document is \documentclass[11pt,a4paper]{article} \usepackage{xr} \externaldocument{ch04} \begin{document} Exercice - Page \pageref{ex3....
0
votes
1answer
53 views

reference external figures from supplementary inside overleaf

I try to reference external figures from the supplementary information inside the main text. How to reference figures that are in the supplementary content in main text? describes an approach I try to ...
1
vote
1answer
51 views

Deactivating Hyperlinks to External Documents with Cleveref

My question is quite similar to the one asked here. Also, I found a solution using \ref here. I couldn't find a solution for \cref however. The setting: I have large file with many chapters, which ...
0
votes
0answers
66 views

Getting xr and xr-hyper to ignore the bibliographies

Now that xr and xr-hyper allow \cite to refer to \bibitems in the external document, is there a way to get these packages to ignore the \bibitems of the external document? In other words, is there an ...
0
votes
0answers
14 views

Keep citation style of main document in suplementary material

I am using two files sup.tex and main.tex each one with its own .bib file, i.e., sup_b.bib and main_b.bib. Both files are in IEEEtran style. Also, in the sup.tex file the citation style is change ...
0
votes
0answers
44 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 ...
1
vote
0answers
33 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
23 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
35 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
44 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
855 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
2answers
1k 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
121 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
41 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
45 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]{...
5
votes
1answer
301 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
239 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
144 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
242 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
304 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
77 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
1answer
264 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
57 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
111 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
41 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
45 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 ...
1
vote
0answers
172 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 ...
3
votes
1answer
134 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
42 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
97 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
321 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
84 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 ...
2
votes
0answers
97 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
83 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
76 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
289 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
265 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
61 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
475 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
188 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
221 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 ...
8
votes
1answer
4k 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} \...
3
votes
0answers
383 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, ...