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
0 answers
36 views

How to use bibentry with .bbl instead of .bib file?

I have a 2 documents, and I want to make the references consistent. Let them be called document A and document B. I compile document A as usual, which outputs a .bbl file. Now, I want to compile ...
Ralff's user avatar
  • 283
1 vote
1 answer
53 views

Cross-reference to theorems from other files

Really simple example. Say I have two files: # first.tex: \documentclass[acmtog,anonymous,review]{acmart} \begin{document} \section{}\label{sec:first} \begin{theorem}\label{thm:first} \end{theorem} ...
0xbadf00d's user avatar
  • 511
0 votes
0 answers
97 views

Cross-reference the captions full names of tables (one table is "longtblr") from an external file

Question. I have the following files that, together, form my MWE: main.tex SupplementaryMaterial.tex wlscirep_modified.cls (from Template for submissions to Scientific Reports Official) latexmkrc (...
Ommo's user avatar
  • 575
0 votes
0 answers
66 views

Why are links from my solutions manual ineffective?

I have the following four files. The book is created using file myBook.tex given by \documentclass{amsbook} \usepackage{lipsum} \usepackage{xr-hyper} \usepackage{hyperref} \includeonly{data} \begin{...
R. Gregory Taylor's user avatar
0 votes
1 answer
92 views

Cross-ref with xr package and incremental numbering

I have article1.tex and summary.tex. Files must be compiled separately because I need to submit two separate pdfs. I am following this guide to cross-ref equations, figures, and sections from article1 ...
Simon's user avatar
  • 517
0 votes
0 answers
69 views

Properly using xr packge with hyperref package

I have this two tex files, where I want to refer a equation (just the number) to another file. So, I am using xr package. Here's the two files doc1.tex \documentclass[11pt]{article} \begin{document} ...
Eular's user avatar
  • 155
0 votes
1 answer
271 views

Cross Referencing with the xr Package in Overleaf (and custom Section Names)

I followed the Overleaf guide to cross-referencing between different LaTeX documents. This works really well - if I use \cref{eqn:supplement-equation1} in my main.tex document, it will correctly ...
Wasserwaage's user avatar
2 votes
1 answer
99 views

Get cleveref type, only

I am using the xr and cleveref packages to reference figures in another document, using the same figure and table numbers as the other document, as shown here. However, for non-floating figures and ...
Rico Picone's user avatar
0 votes
0 answers
33 views

How to provide auxiliary document that (a) uses citations in main document and (b) has own additional literature?

I am trying to create an appendix (appendix.tex) that: Refers back to sections and citations in a paper (paper.tex) Maintains the same identifiers for the citations found in the paper, for instance [...
David L's user avatar
0 votes
0 answers
33 views

External refer using xr with renamed section name (not \arabic , with \Alph), (in overleaf)

In my supplementary, I rename the section from \arabic to \Alph. And, I cross refer the Supplementary section and figure in main article. And, ref call all section number also including section name \...
Young Jin Kim's user avatar
0 votes
0 answers
505 views

Import a table and figure from another tex file

Is it possible to include the whole content of the table and figure in another tex file? Let's say we have A.tex \documentclass{article} \begin{document} write something here. \begin{table}[tbp] ...
yangtzech's user avatar
1 vote
0 answers
32 views

Use wildcard in xr's externaldocument command?

Is it possible to somehow tell the xr package's externaldocument command to use wildcards? Instead of: \externaldocument{ch_A/figures/a} \externaldocument{ch_A/figures/b} \externaldocument{ch_A/...
Holger Karl's user avatar
0 votes
2 answers
75 views

macro in aux file

I will show two similar files. First file \documentclass{amsart} \begin{document} \def\Site{left} \section{Left Space} \label{s:\Site Space} \begin{equation} \label{product from \Site} a=bC \end{...
Aleks Kleyn's user avatar
0 votes
0 answers
27 views

Referring to line numbers and citations in another document [duplicate]

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 ...
user2751530's user avatar
  • 1,102
0 votes
2 answers
44 views

cleveref referencing figures from current and external documents

Here is the setup: In doc2.tex, I have: \documentclass{article} \usepackage{xr-hyper} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \begin{figure} \caption{figure there} \label{fig:...
Chachni's user avatar
  • 183
0 votes
1 answer
127 views

Two files cross-referencing each other with xr while using latexmk

This question is related to another unanswered one. Mine is not specific to Overleaf, and I provide an MWE. I have the following two files: % file_a.tex \documentclass{article} \usepackage{xr} \...
Alberto Santini's user avatar
1 vote
1 answer
59 views

Can \subref and xr work together?

With xr I can cross-reference labels in another document. With subcaption I can refer to subfigures (or similar). But if I try to combine them both, it seems they don't recognise each other: a.tex: \...
Jellby's user avatar
  • 3,293
0 votes
0 answers
696 views

Cross referencing from a different Overleaf project

I have two Projects, lets call them Project_A and Project_B in Overleaf. Project_A in overleaf has many tex files and so does Project_B. Could a cross reference be made in Project_A such that we could ...
Prateek Daniels's user avatar
0 votes
2 answers
52 views

`\nvrightarrow` causes an error when it is used in the title of a definition and is referenced from another file

The following code is saved in test.tex: \documentclass{scrartcl} \usepackage{unicode-math,xr-hyper,hyperref,cleveref} \newtheorem{definition}{Definition} \begin{document} \begin{definition}[$\...
Evan Aad's user avatar
  • 11k
0 votes
1 answer
131 views

Referencing across files using xr-hyper fails

I saved the following LaTeX code in test.tex. \documentclass{scrartcl} \newtheorem{theorem}{Theorem} \begin{document} \begin{theorem}[My 1st Theorem]\label{thm} A \end{theorem} \end{document} I ran ...
Evan Aad's user avatar
  • 11k
0 votes
1 answer
775 views

How can I enforce creation of *.aux files?

I want to write a thesis using subfiles and xr for external references. I use subfiles because that allows me to compile chapters separately without having to compile the whole thesis. My problem is ...
Insa's user avatar
  • 1
1 vote
1 answer
184 views

siunitx version v3.0.2 with xr-hyper

I am typeset the multivolume book. Simplest form looks like: main file for volume one (vol01.tex) \documentclass{scrbook} \usepackage{xr-hyper} \usepackage{siunitx} \usepackage{graphicx} ...
JardaFait's user avatar
  • 3,882
3 votes
0 answers
373 views

Include bibliography of xr (xcite) citations, that only contains the relevant entries

Short description of my Question: I am using the xr or xcite package in my derivative project supplementary.tex to give references/citations the same number that they already have in an external ...
Nayunis's user avatar
  • 813
0 votes
0 answers
224 views

Issues in hyperlink to an external document

I have two latex files: one for the actual paper and one for the appendix. In the paper, I want to refer to section of the appendix. I follow what I found around on referring to external dcouments but ...
Rollo99's user avatar
  • 327
1 vote
0 answers
20 views

Sub file references main file, but references do not appear when compiling main file

I am trying to write a large document, and for the sake of organized editing, it makes sense to have each chapter as a standalone document. I am using the standalone package to accomplish this. I have ...
book_kees's user avatar
  • 111
0 votes
0 answers
121 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. ...
Bib-lost's user avatar
  • 101
0 votes
0 answers
65 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 ...
Faouzi Bellalouna's user avatar
1 vote
1 answer
510 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} \...
SapereAude's user avatar
1 vote
1 answer
724 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 ...
akm's user avatar
  • 113
0 votes
1 answer
311 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, ...
mathbekunkus's user avatar
  • 1,389
0 votes
0 answers
138 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 ...
Jack the Ranger's user avatar
2 votes
0 answers
1k 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....
Mrcrg's user avatar
  • 301
-1 votes
1 answer
2k views

reference external figures from supplementary inside overleaf [closed]

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 ...
Georg Heiler's user avatar
2 votes
1 answer
503 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 ...
Benjamin's user avatar
  • 121
1 vote
0 answers
872 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 ...
MSC's user avatar
  • 2,722
0 votes
0 answers
233 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 ...
Nestor Aguilera's user avatar
1 vote
0 answers
139 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} \...
cass's user avatar
  • 43
0 votes
0 answers
35 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 ...
Alexander's user avatar
1 vote
0 answers
246 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 ...
QcH's user avatar
  • 177
1 vote
2 answers
4k 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 ...
almcgowan's user avatar
9 votes
2 answers
9k 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 - ...
BGreen's user avatar
  • 255
1 vote
1 answer
395 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}{} \...
grobber's user avatar
  • 181
2 votes
0 answers
63 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 ...
Andreas Buchberger's user avatar
2 votes
0 answers
55 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]{...
Meg's user avatar
  • 21
5 votes
1 answer
2k 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]{...
AzJ's user avatar
  • 261
1 vote
1 answer
780 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{...
hydradon's user avatar
  • 149
4 votes
1 answer
540 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 \...
pazathoth's user avatar
  • 360
3 votes
1 answer
2k 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 ...
user2653663's user avatar
1 vote
1 answer
1k 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 ...
Kim's user avatar
  • 111
0 votes
2 answers
452 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 +...
Andrew Ying's user avatar