Questions tagged [cross-referencing]

{cross-referencing} is about making connections from a point in a document to related information elsewhere, usually within the same document. Standard commands are \label and \ref. For questions about citing or bibliographies, use {bibliographies} instead.

6
votes
0answers
437 views

How to enable smart references when using xr-hyper package for producing multi-volume book?

I'm using xr-hyper package by @David Carlisle and smartref package by Giuseppe Bilotta to compile a multi-volume book. xr-hyper enables cross-references between different volumes as shows the ...
5
votes
0answers
667 views

How to add a link that opens a different pdf in a new window?

I tried this: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[pdfnewwindow=true]{hyperref} \begin{document} \href{run:main.pdf}{This is my link} \end{document} I ...
5
votes
0answers
641 views

Prefix for \externaldocument references in \cleveref

The question Special case for last element with \foreach manually changed the references, and added the ability to have a prefix on references. Can I do the same thing using \cleveref? (Note: This ...
5
votes
0answers
563 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 ...
4
votes
0answers
132 views

Subformula numbering

I can't get cases subformula to work properly. My MWE, inspired from the wiki and the My Way "Using \startalign and friends" by Aditya Mahajan, is : \starttext \placeformula \startformula \...
4
votes
0answers
228 views

Why is not there any \refcounter command in LaTeX?

We have the \stepcounter command in LaTeX where \stepcounter{counter} adds one to the counter and resets all subsidiary counters. We also have the \refstepcounter command where \refstepcounter{...
4
votes
0answers
209 views

How do you restate an algorithm?

I'm trying to restate/repeat/recall an algorithm in an appendix with the same numbering, etc., but I haven't found an easy way to do it. I'm using the algorithm environment and algorithm2e package. ...
3
votes
0answers
80 views

How to configure customized \ref, \pageref in TeX4HT

Is possible to configure the below XML structure for \ref, \pageref and natbib cite commands such as \citep, \citealt etc.., ? see Chapter <xref ref-type="book-part" rid="11">11</xref> ...
3
votes
0answers
204 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 ...
3
votes
0answers
383 views

Label not working after \appendix with revtex4-1

I need to use labels in appendices with revtex4-1 but I've got a "LaTeX Warning: There were undefined references" and the references are not placed. It seems that there's a conflict with biblatex ...
3
votes
0answers
121 views

How to place cross references in center margin between two columns

How can I put all cross references in the center margin, with those for the left column vertically positioned above those for the right column? The text will wrap to additional pages, and the cross ...
3
votes
0answers
475 views

Parenthesized subfigure references except when already in parenthesis

I would like to style my subfigure references as Fig. 1(a) in running text and (Fig. 1a) when parenthetical. The subfigure labels are created using this code. (I would prefer to use subcaption like in ...
3
votes
0answers
91 views

Why might I not want to set naturalnames and hypertexnames both equal to false in hyperref?

I know from these questions that you can solve a lot of internal linking problems in your PDF by setting naturalnames and hypertexnames both equal to false (naturalnames being set to false by default)....
3
votes
0answers
178 views

AUCTeX/RefTeX, the `import` package and cross reference

Today I switched to the import package with the hope that it will simplify the management of the files of my text. It surely did that, but.... It broke RefTex in emacs. Now, I cannot lookup my labels ...
2
votes
0answers
68 views

itemize/enumerate - how to turn the very first \item of the environment, including the bullet/item-number, into a hyperlink?

When in LaTeX2e using the hyperref-package, you can apply the command\hyperref[⟨referencing-label⟩]{⟨tokens that form the text of the hyperlink⟩}for turning phrases of text ...
2
votes
0answers
44 views

Duplicated Citation using BibTex / TexStudio

I am new to LateX and I am currently having problems with citations and references. So, I have my References.bib files which contains all the elements of my bibliogaphy, and then I have the file ...
2
votes
0answers
54 views

ConTeXt: getting access to each figure of combination

I have a combination of figures, and I would like to be able to refer to each figure without hardcoding their descriptions. \combination command allows setting automatic labels (a, b, c) by setting \...
2
votes
0answers
76 views

How do I define and link to a labelled list?

I want to define a labeled list and refer to the items by name, with hyperlinks. My first thought was to use the description environment, put a \label in each item and retrieve the values with \...
2
votes
0answers
46 views

Determine the location of cross-references

I'm trying to determine which cross-references land far away from their label/anchor or more generally the location of cross-references throughout a document. \documentclass{article} \usepackage{...
2
votes
0answers
89 views

babel causing cref mistakes to labels when compiled with htlatex

Update: I'd be very interested to know what babel does to that enables the advanced hungarian accents to be loaded. The comments below indicate that it should really have no affect. Given the ...
2
votes
0answers
99 views

compile only \ref

Is there a simple way to process a .tex file so that only the \ref commands are processed? I.e., replace \ref{bla} with (1) (or whatever numbering is correct) but leave all the rest untouched? I ...
2
votes
0answers
2k 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 ...
2
votes
0answers
74 views

zref an amsmath envirnonment

In this post I asked a specific question about zref package. The answer is very satisfactory, but unfortunately I noticed that, for example zref is not workin with some ams envirnomnent such as ...
2
votes
0answers
120 views

Cross-file references with \includeonly using newclude and hyperref

The follow MWE works fine in the sense that I can uncomment \includeonly{a} after compiling once, and subsequent compilations have maintain correct references to B. This also works when I use newclude ...
2
votes
0answers
88 views

Counting number of references using environment or special bib-entry field

Suppose, that we write a survey. Somehow we need to count a number of reviewed papers. The simplest way is to create a counter, say, refsRev and add 1 at each \cite. I created newcommand \rcite, ...
2
votes
0answers
242 views

Listing, indexing, and linking keywords in biblatex

I'm trying to make a document for myself that lists all of the references in my bibliography with their abstracts and keywords. I want an index which lists all of the keywords and their instances, ...
2
votes
0answers
475 views

Invert First authors last name and initials in references using bibtex

I am using bibtex, the elsarticle document class, and the elsarticle-num-names bibliography style. Is there a way to have your references like this: Singer, A., Z. Schuss, D. Holcman, 2006. Narrow ...
2
votes
0answers
317 views

Citation inside Glossary

On the "We put \cite{} everywhere" topic, I've source citations in definitions some of my glossary entries. I use the unsrt style. As the Glossary is in the frontmatter, one can easily guess that my ...
2
votes
0answers
133 views

How to use bangla number in \label and \ref environment for equation?

I want to use the Bengali numbering system for equation referencing. Can anybody explain with example.
2
votes
0answers
69 views

Reference label in polyglossia for hebrew

When I compile the following code: \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{hebrew} \setotherlanguage{english} \setmainfont{Frank Ruehl CLM} \begin{document} נתחיל לכתוב. ...
2
votes
0answers
550 views

Cross-reference in muliple chapter in multi-file thesis

I want to cross-reference between different chapters. For example I have chap2.tex and chap3.tex as files containing all the theorems and methods, respectively. The following chapters 4,5...7 will ...
2
votes
0answers
152 views

Is there a LyX way to add multiple cross-references to a document?

I am using refstyle and can successfully call \chapref{label-1,label-2} in an ERT, which produces the desired "Chapters 3 and 4", but I was wondering if there was a way to do this via the GUI which ...
2
votes
0answers
57 views

How do I “bake in” cross references?

We've been writing a paper with its supplementary materials as two .tex files, using the xr package to handle cross-references. Now the journal wants the sources for just the paper, and I think this ...
2
votes
0answers
193 views

Referencing in enumitem list levels

The following defines my enumeration parameters: %---------------------------------------------------------------------------------- % Enumeration Parameters %-----------...
2
votes
0answers
75 views

I need a pop-up on my in-text references AND I want the reference to still be 'clickable'

I need a pop-up to appear above my in-text references. The pop-up should display the page number where the citation can be found on (i.e. so the reader can check that the cited article actually siad ...
2
votes
0answers
513 views

How to ignore undefined references (e.g. when temporarily commenting out whole chapters)?

I'm working on a fairly large document, and compilation times are somewhat annoying. My general workflow is to use: latexmk in continuous mode to compile the document (pdflatex), and rubber-info on ...
2
votes
0answers
202 views

Cross-referencing on 2 kinds of end-footnotes (separated and with different coloured numbers)

In the beginning I used parnotes and endnotes to distinguish between the 2 seperated kinds of end-footnotes: Attention: to be able to compile the first "grey box" of trial code, one must download the ...
2
votes
0answers
303 views

How can I get \framezoom to work in evince?

The \framezoom feature of the beamer class is awesome, but unfortunately it doesn't work correctly in evince (and the TeXworks previewer). When clicking the zoom button, the viewer correctly jumps to ...
2
votes
0answers
70 views

Collect text in mdframed and print at the bottom of the next page

I am trying to collect say fruits mentioned in a page and print them at the bottom of the next page. All text is always enclosed in a frame and the frame can span multiple pages but the collected ...
2
votes
0answers
125 views

\ref to \label in other document?

I have a repository with one document, but I think of splitting it into two documents, whereas I want to cross-reference from one to eachother. Is there a way, to "rewrite" \ref to automatically ...
1
vote
0answers
62 views

Only citing a sub-reference whilst keeping order (biblatex)

Hi so I was wondering How I might cite something whilst only citing a sub reference using biblatex. At the moment using subentry I have to cite the whole set before citing the subentries so that the ...
1
vote
0answers
16 views

Adding space to subreference

Consider this example: \documentclass{report} \usepackage{subfig} \begin{document} See Figure~\subref*{sf1} for more information. \begin{figure} \centering \subfloat[Subfig 1]{\label{sf1} Contents of ...
1
vote
0answers
35 views

Is there a way to make an in-line tag?

I know that I can use labels in an in-line equation, but since it is an in-line equation I didn’t want this equation to be numbered, instead I would like to reference it by an \star, and keep the ...
1
vote
0answers
39 views

Reference “referencename” undefined for all my figures, same for citations

All my figure references and citations give the undefined warning, and the document will not compile. I have been very careful in checking for typos between \label and \ref. before I added the ...
1
vote
0answers
35 views

Package autonum breaks all references when used with thm-restate

I have the following LaTeX file \documentclass{article} \usepackage{thm-restate, autonum} \newtheorem{lem}{lemma} \begin{document} \begin{restatable}[Embedding lemma]{lem}{embedding} \label{lem:...
1
vote
0answers
53 views

Own command for references - TexStudio does not recognize referenced labels

I'm currently writing a thesis using LaTeX. I have a couple of figures (diagrams) in my document and wanted to reference them in a more convenient way than always writing "bla in figure \ref{labelname}...
1
vote
0answers
32 views

Detect unreferenced appendix sections?

Is there some package that helps with sorting out appendix sections, that have never been rerefenced? Why refcheck doesn't apply I am aware of the refcheck package, see Get list of unused labels. ...
1
vote
0answers
47 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 ...
1
vote
0answers
213 views

How can I change the names of my supplementary tables and figures from “Figure S1” to “S1 Figure”?

I've been writing a paper in LaTeX which includes supplementary information, containing supplementary tables and figures. I used this command: \newcommand{\beginsupplement}{% \setcounter{...
1
vote
0answers
59 views

“destination with the same identifier” error with a custom appendix

I am working with a slightly modified version of the answer provided by @StevenBSegletes to achieve a custom appendix structure. (disclaimer: I left out my own modifications here to make the example ...