Questions tagged [xr]

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

26 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
869 views

How can I automatically copy a LyX-generated .aux file to the working directory for cross referencing?

This is a follow up to: Using the xr package in LyX (for cross-referencing an external LyX document) I have two LyX documents, called draft.lyx and supplement.lyx. I need to compile them into ...
  • 71
3 votes
0 answers
549 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 ...
  • 31
3 votes
0 answers
506 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 ...
  • 43
2 votes
0 answers
235 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 ...
  • 723
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....
  • 237
2 votes
0 answers
52 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
0 answers
51 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]{...
  • 21
2 votes
0 answers
176 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 ...
  • 121
1 vote
1 answer
153 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} ...
  • 3,702
1 vote
0 answers
17 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 ...
  • 111
1 vote
0 answers
585 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 ...
  • 2,652
1 vote
0 answers
119 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} \...
  • 43
1 vote
0 answers
168 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 ...
  • 167
1 vote
0 answers
352 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 ...
  • 133
1 vote
0 answers
1k 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. rna....
  • 239
0 votes
0 answers
42 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] ...
0 votes
0 answers
16 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/...
0 votes
0 answers
383 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 ...
0 votes
0 answers
136 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 ...
  • 307
0 votes
0 answers
66 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. ...
  • 101
0 votes
0 answers
56 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
0 answers
86 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
0 answers
194 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
0 answers
27 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
0 answers
131 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} \...
0 votes
0 answers
126 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?
  • 579