Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

7
votes
1answer
54 views

How to identify floats that are not referenced in text [duplicate]

I would like to ensure that all figures in my document are referenced somewhere in the text. With all the editing I've been doing, some of the figures are no longer being referenced and I would like ...
3
votes
2answers
140 views

Hyperref in mathematical equations

With the following codes: \documentclass[12pt,a4paper]{article} %------------------------------------------------------------ \usepackage{amsmath,amssymb,amsthm} %-------------------------------------...
1
vote
1answer
37 views

exam: Formatting the cross-references of questions, parts, subparts, and subsubparts

In the following MWE, how to get the desired format of the cross-references of the questions, parts, subparts, and subsubparts of the exam class with/without cleveref package? \documentclass[12pt]{...
1
vote
1answer
18 views

Changing the color of \ref within the same document

Is there a way to reference things with \ref using a different color than with what \hypersetup assigns it? That is, I would like to reference a theorem with blue text in general, but at some point I'...
0
votes
0answers
16 views

Cross Referencing equations that are inside Align environment

I am new to TexStudio and I wrote the equations without labeling them inside the align environment the PDF shows the label on it and I needed to refer to these equations. I tried that with \ref{...
1
vote
1answer
104 views

Can we automatically assign labels to numbered equations corresponding to their number in the text?

Can we automatically assign labels to numbered equations corresponding to their number in the text? Is there a latex macro that does that, regardless of the particular editor which I'm using? Can ...
0
votes
1answer
18 views

Two different tables with different labels being referenced by the same number [duplicate]

I have two different tables, with two different labels: \label{lab1} and \label{lab2}. The tables were generated in the tables generator site and I am using Overleaf. When I reference these two tables,...
0
votes
0answers
36 views

How to change reference text depending on page number?

I have a document that consists of two parts, let us call them Part A and Part B. The pages in Part A are numbered A-1, A-2,... and the pages in part B are numbered B-1, B-2, etc. There are cross-...
1
vote
1answer
30 views

How to typeset ``…(e.g. Equation 6)` using cleveref?

I use the cleveref package to produce equation references like Figure 3 and Equation (12). The parentheses for equation references are fine most of the time, but it seems silly when the reference is ...
0
votes
0answers
13 views

Mendeley web importer citation style different from desktop version

Mendeley automatically generates citation keys for you. However the way, Mendeley desktop and Mendely web importer do this is different, creating problems. Mendely desktop generates citation key as [...
0
votes
1answer
95 views

Problem referring figures and tables in text. Figure? [duplicate]

I have a .text homework with lots of images and tables, this ones are well numerated below the figure and table but when I refer these in the text dont show the number of the table or figure instead ...
0
votes
0answers
16 views

Label(s) may have changed error when using modular (\includeonly{}) document setup

When I run my document with everything, it all works fine, then when I first add \includeonly{Lecture2} before the preamble and without making any changes to the other files, it works fine. However, ...
1
vote
1answer
23 views

How to make in-text page number retroactively update? [duplicate]

It would be useful to have a page number like (see page # for more details) that is tied to a specific section or figure, and as a consequence, automatically updates the text to say where that page # ...
0
votes
0answers
30 views

processing part of a document with no output

The document is split into files \input{f1} \input{f2} \input{f3} I would like to have f2 processed into .aux so that f1 and f3 can refer to f2 equation labels, but with no pages of f2 included in ...
2
votes
0answers
20 views

Ref between chapter [duplicate]

Is it possible to use \ref for something (table) in chapter kap03 that is included in kap02 in some way? Thank you I have a file in which are loaded other .tex files. \include{kap02} \include{kap03} ...
7
votes
1answer
141 views

\ref with the counter value

Is there some package providing a simple user interface to return the counter value (numeric, not the formatted cross-reference, as \ref does) of a label? It seems neither zref, not refcount, nor ...
0
votes
0answers
29 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}...
0
votes
0answers
20 views

Cross bibliography between files (same for index if possible)

i'm writing a thesis in Latex. The estructure is as follows: one main document, where i go through all the research, meanwhile, another 4 documents (annexes) where all the heavy math is described. I ...
1
vote
1answer
49 views

cleveref: second hyperlink set incorrectly in ranges

Consider the following MWE with cleveref: \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \begin{document} Page one \label{one} \newpage Page two \label{two} \newpage \...
8
votes
1answer
60 views

Remove punctuation from references to task counter

I'm using the tasks environment to spread a list across two columns. But the \ref command appears to carry punctuation with it differently than it does in the enumerate environment. I want to produce ...
0
votes
2answers
79 views

Cross reference of Table, Figure etc

Preparing APS manuscripts, it is required that when "Table, Figure" appear at the beginning of a sentence, they should appear in their full form, otherwise, in abbreviated form as "Tab., Fig.". Using ...
2
votes
2answers
29 views

How to modify the text that prints when cross-referencing a table?

Main question: How can I change the text that prints when I cross-reference an object in my text? I'd like to get a \renewcommand that works for tables only and another one that works for sentences ...
5
votes
1answer
143 views

Cross-referencing numeric values and text from later section to executive summary of a latex document

I have almost completed drafting a report on consumption of different food items, and I am drafting an executive summary so that readers can quickly know what the report is about. Since there are ...
5
votes
2answers
74 views

Cross-referencing multiple items

I've looked for an answer to my LaTeX question, but even though there are some that are similar, none addresses my issue. I'm trying to label and cross-reference the first and last items of a set to ...
1
vote
0answers
25 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. ...
4
votes
2answers
94 views

Reference with entire number in enumerate

So I have made this file where I list my exercises as 1.A, 1.B,... for the exercises in Chapter 1, and 2.A,2.B,... for the exercises in Chapter 2. \documentclass{book} \usepackage{enumerate} \begin{...
1
vote
1answer
35 views

Referencing parent(s) of labels

I'm trying to reference a label's parent so it outputs something like "Section, Subsection" or "Section, Subsection, Subsubsection". I've come close with smartref by doing the following: \usepackage{...
0
votes
1answer
32 views

Referencing caption of code listing

I would like to reference some piece of code which has a caption on it like this: \begin{lstlisting}[caption=componenet \label{Label} , backgroundcolor = \color{lightgray}] //Here is my code \end{...
2
votes
1answer
126 views

AUCTeX/RefTeX: How do I handle labels that use `label={name}` syntax instead of `\label{name}`?

The tcolorbox package uses a different label syntax from the usual \label{name} one: it uses label={name}. Can I tell AUCTeX/RefTeX to enter labels for the tcolorbox environments with this new ...
1
vote
1answer
81 views

Proper reference numbers with subfiles

Consider the following mwe divided in 3 files: main.tex: \documentclass[12pt]{report} \usepackage{subfiles} \newcommand{\onlyinsubfile}[1]{#1} \newcommand{\notinsubfile}[1]{} \usepackage{amsmath} ...
1
vote
0answers
20 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 ...
2
votes
2answers
32 views

Label for the subcaption containing square brackets isn't acting nicely in the figure caption

I often have to use "[" and "]" in various labels when cross-referencing items with formulas of inorganic complexes. Everything worked fine until I noticed a problem with \subref{...} of the ...
0
votes
1answer
65 views

Elsarticle footnoting the addresses

Consider this example of an elsarticle template: \documentclass[3p,times,twocolumn]{elsarticle} \journal{Nuclear Physics B} \begin{document} \begin{frontmatter} \title{Sample article to present \...
-1
votes
0answers
41 views

Cross-referencing with part prefix also for appendix

In my document I restart the chapter counter for every part. Unfortunately, this leads to ambiguous numbers for, e. g. figures. Therefore, I decided to add the number of the part as a prefix to the ...
1
vote
2answers
47 views

How to reference equations (new to Latex) [duplicate]

\documentclass{article} \newcommand{\dd}[1]{\mathrm{d}#1} \begin{document} \begin{equation} \Delta A_2 = x^2 \end{equation} This code puts a (1) next to this equation, and numbers later equations ...
2
votes
1answer
32 views

Font style in ref and autoref

I'd like to use both \autoref and \ref, so when enumerating references in the text I can get something like "Ecuaciones 1 y 2" (with Ecuación 1 being a link inserted by \autoref and 2 a link inserted ...
-1
votes
0answers
52 views

How do you make a reference in the same tex file?

How do you make a reference in the same file? I've seen some files where a link appears, say page 5, and when you click on the link it takes you to page 5. Or when it says a word and when you click ...
2
votes
1answer
71 views

Why can't cleveref determine if the reference is at the beginning of a sentence?

I was reading the documentation on the cleveref package, which can be found here, when I stumbled upon a side remark on page six (can be found in the paragraph for \Cref), which says As it is very ...
2
votes
1answer
31 views

How do I get the achemso package to include the DOIs?

I'm using achemso to compile my references and I would like to include the DOIs. \documentclass[11pt, a4paper]{scrartcl} \usepackage[utf8]{inputenc} %References - achemso is ACS style, it uses ...
1
vote
0answers
61 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{...
2
votes
0answers
44 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 ...
1
vote
1answer
22 views

Referencing time codes of interviews in appendix

For my thesis I'm analyzing interviews. As per convention, all paragraphs end with time codes (e.g. #01:01.99#), for when each person/interviewee/interviewer stops speaking and/or another begins. I'd ...
0
votes
2answers
29 views

Multiple bibliography references lists in different languages

What would be the best way to implement the same bibliography list in two languages. Also, consider sorting. For instance: John Doe et al.[1] invented B. A [2] is interesting. For sure [3]. Список ...
3
votes
2answers
29 views

How can I temporarily replace 'and' with 'or' when using `\cref` command?

The code below generates correct output. However, I would like to know how I can temporarily replace every instance of 'and' with 'or' just for specific instances of \cref usage. I included xcolor and ...
4
votes
0answers
111 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 \...
1
vote
1answer
37 views

\footnoteref (= modified \footnotemark) works perfectly fine *outside* of chapters but not within them

Because I need a reference to the same footnote, I like to use \footnoteref which is defined here. Writing \documentclass[12pt,a4paper]{report} \usepackage[british]{babel} \usepackage[utf8]{inputenc}...
4
votes
1answer
49 views

Label blocks inlcuding section number

I want to add section number when referencing blocks. MWE is as follows: \documentclass[serif,12pt,xcolor=dvipsnames]{beamer} \usetheme{Madrid} \usepackage{lipsum} \begin{document} \begin{frame}{...
1
vote
0answers
37 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 ...
0
votes
0answers
42 views

Sort references using author-year citation and alphabetically in the bibliography

I am using book class to write my thesis, for the citation I am using author-year citation I get for example: Arasaratnam, I., Haykin, S. : Cubature Kalman filters. IEEE Trans. Autom. Control. 54, ...
3
votes
1answer
35 views

Referencing line numbers in an algorithm using autoref

What is the autoref command to reference a line number of an algorithm? I tried to define stepautorefname, linenoautorefname and alglinenoautorefname commands as shown below but they don't work like ...