2022 Developer Survey is open! Take survey.

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
21 views

Different numbers for the same footnote

Can someone help me to make this?
user avatar
  • 11
1 vote
1 answer
29 views

How to reference a sidewaystable in latex?

I tried to reference a sidewaystable in my text. Unfortunately, the reference in the text is exactly the label name, i.e. table:1 instead of just 1. How can I reference the sidewaystable below and get ...
user avatar
0 votes
0 answers
36 views

\ref shows ?? even with \label added after \caption in figure [closed]

\begin{figure} \centering \includegraphics[width=13cm, height=16cm]{Images/Patient_usecaes.PNG} \caption{Patient Usecases} \label{fig:patient_usecase} \end{figure} Figure \ref{fig:...
user avatar
0 votes
0 answers
51 views

Cross-Refs: Sublabel-Skipping Variants

While cross-referencing linguistic examples, I am using zref to define commands for referring to pairs or ranges. For each command I have two "skipping" variants mainskip and maxskip, meant ...
user avatar
1 vote
1 answer
12 views

algorithm2e: Cross reference to subsubsection after algorithm not working

while writing my thesis I became aware of a problem related to the algorithm2e package regarding the label referencing of subsubsections following an algorithm. Here is a simple example: \...
user avatar
0 votes
0 answers
19 views

autoref figure labels in tufte-book

This seems to be an issue with tufte-book figure labeling but I'm not sure whether it's something I can work around. \documentclass{tufte-book} \usepackage{listings}\lstloadlanguages{C} \usepackage{...
user avatar
0 votes
0 answers
15 views

'runway error' for references

I am trying to reference in IEEE style and I have added the following commands to achieve so: \bibliographystyle{IEEEtran} \bibliography{references.bib} and I have also imported \usepackage{cite} but ...
user avatar
0 votes
1 answer
65 views

Using \zref in arguments of \ifnum (ranges)

Using zref I want to define a clever cross-ref command for ranges \clevestrip{ref1}{ref2} which returns a "stripping" string (1ab) if theExNo is equal for ref1 and ref2, and only prints ...
user avatar
0 votes
1 answer
43 views

Refer to a specific token of a cross-ref label / Clarifications on refcount and zref

First, before any downvoting, I am aware of the existence and content of this post https://tex.stackexchange.com/a/577464/262813 and let me point out that I am not asking this question out of nowhere, ...
user avatar
0 votes
2 answers
37 views

Independent labelling of a Figure and Table (in the same Figure environment) with a combined caption

I am trying to reference a Figure and Table (with ~\ref{}) in my document. I placed both elements in a figure environment (figure first, table second, both inside of a minipage) to have them displayed ...
user avatar
  • 1
0 votes
0 answers
15 views

How to choose specific title when referencing?

Let's consider the following code: \documentclass{article} \begin{document} \textbf{Lemma 3.2} \label{lemma: smth} If $a, b > 0$, then: $$\frac a b + \frac b a \ge 2$$ From the lemma \ref{lemma: ...
user avatar
  • 121
2 votes
2 answers
41 views

Double colon in prettyref label

The prettyref package works by inspecting labels of the form \label{format:name} and creating a reference based on just the format:. The documentation says: Do not use the character : anywhere within ...
user avatar
  • 273
0 votes
1 answer
24 views

Redefine \label and \ref commands so that they also work without having to be next to a \caption or \captionof

I've been trying to use \label and \ref neither after a \caption nor \captionof, like so: Figure \Roman{chapter}.\arabic{figure}: The caption % A manually created caption \label{fig:the_ref_name} % ...
user avatar
4 votes
1 answer
150 views

Unexpected table/figure reference

Code Consider the follwing example: \documentclass[danish]{article} \usepackage{polyglossia} \setdefaultlanguage{danish} \usepackage[demo]{graphicx} \usepackage{booktabs} \usepackage{floatrow} \...
user avatar
0 votes
2 answers
30 views

Figure referencing isn't working with PGFPlots

Here's my MWE: \documentclass{book} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \usepackage{subfig} \usepackage{titletoc} \begin{document} \begin{figure}[h!] \begin{center}{ \begin{...
user avatar
  • 182
1 vote
1 answer
78 views

Skipping non-numeric part of counter label in local Cross-referencing

When quoting linguistic examples from authors inside a quotation, I like to use a special label specifying the name of the author. (I enclose it between square brackets but it will not appear here ...
user avatar
0 votes
1 answer
21 views

Hyperref from document to the page of Table of Abbreviations

I am creating a glossary in a big document using \printnoidxglossaries. At some point, in the document I want to mention "The abbreviations can be found in \ref{abbrs}". However, if I try to ...
user avatar
  • 21
0 votes
0 answers
10 views

How to access algorithm caption and procedure name

I would like to be able to access an algorithm's caption and procedure name in a similar way I can reference the algorithm number; i.e. using something like \ref{somelabel}. Is there a straightforward ...
user avatar
  • 141
0 votes
1 answer
27 views

How to use cross reference in the title of the appendix in this template?

The template: https://www.overleaf.com/latex/templates/university-of-michigan-dissertation-template-unofficial/tpnjzndnrzmf I tried to change the first line of example_appendix_01.tex to \chapter{...
user avatar
  • 91
2 votes
1 answer
19 views

Autonum wrong behaviour

I get the wrong behaviour with this code, using autonum. When one clicks on the hyperlink to the equation it jumps to the beginning of the page. Minimal (not) working example: \documentclass{book} \...
user avatar
1 vote
1 answer
73 views

Cross-references in a LaTeX document

When I click on the link of a reference (equation, image, section...) it sends me to the beginning of the page where the reference is and not to its exact location. how do I get the link to send me to ...
user avatar
  • 13
0 votes
0 answers
14 views

How to get multiple Reference Lists

I'm trying to tidy up my dissertation I have written about coking coal. Essentially I want two reference lists, one with all the academic journals I've cited and one with all the company annual ...
user avatar
1 vote
1 answer
63 views

Hyperlink prints OK but jumps to wrong target

When I use pdflatex to process a book-length document, in chapter 6 a couple of isolated links to theorem-like environments in that same chapter appear printed correctly in the pdf output, but ...
user avatar
  • 6,382
0 votes
0 answers
39 views

\ref Equation name from \listofmyequations

I have a \listof equations (after the toc) and want to cross-reference with the \myequation{Ionosphere-free Linear Combination} not the \label{iono-free}. I want to retain the auto-generated numeric ...
user avatar
0 votes
0 answers
22 views

Cross-reference latex table in rmarkdown

I try cross-reference latex tables in RMarkdown. The hyperlink is generated (clicking on ?? leads to the table) but the table number is not displayed, instead ?? is displayed. I tried a version with ...
user avatar
  • 326
0 votes
0 answers
36 views

Thesis publication list

I currently have a list of Publications at the beginning of my thesis in plain text. It looks like this; \chapter*{List of Publications} This thesis resulted in the following publications; \begin{...
user avatar
  • 3
0 votes
0 answers
30 views

How to label each column of an array in a math environment and also maintaining a global label for the whole equation?

I have an linear program displayed as an array inside an align environment: \begin{align}\label{label1} \begin{array}{lll} \max & \sum_{v\in V} z^v\\ \text{s.t.} & \forall v\in ...
user avatar
  • 165
2 votes
2 answers
138 views

Figure placement after first time referenced in text

I'm writing a master's thesis and was told that I could place figures anywhere, as long as they appear after the first time I reference them in the text. It seems to be a good practice around here, so ...
user avatar
  • 23
5 votes
1 answer
165 views

Refer to Theorem A,B,C,

I usually number theorems and lemmas and so in my papers as Theorem 1.1, Lemma 1.2, Theorem 2.1,... but sometimes, in the introduction section, I want the main theorems appeared as Theorem A, Theorem ...
user avatar
  • 51
0 votes
3 answers
65 views

booktabs and cross-referencing not working with landscape Table

by modifying a recent suggestion by @zarko, I am encountering some new problems with my table. First I could not find a way to add a horizontal line using /hiline or /toprule. The second issue is that ...
user avatar
  • 305
1 vote
1 answer
36 views

New autoref categories

I have a document in which I define new environment for examples (MWE below). In it, I define the prefix for referencing it, which is simple example:nameofexample. Now, when working with \autoref I ...
user avatar
  • 147
0 votes
1 answer
41 views

Creating links to things other than url's and other pdf files

I found this blog post where he talks about how he manages to do his research Ph.D. thesis and maintain his Ph.D. thesis notes. When I create a reference link to a note.xoj file and I click the link, ...
user avatar
0 votes
1 answer
14 views

Cross reference to custom defined environment

I've defined a theorem like environment ("Claim") and I want to cross reference it. However, this seems not to be working as I get after the customary two runs. My code is \documentclass{...
user avatar
  • 197
1 vote
2 answers
99 views

Referring to subfigures without using sub caption or similar packages

I am working on a book and I use the subcaption package to refer to some figures. However, I found that in some cases it is easier for me to just add the caption text (a), (b), etc. directly in the ...
user avatar
  • 2,793
0 votes
1 answer
29 views

\textsc for citations with page numbers

When citing a reference directly in the body text, I use the following: \textsc{\citet[p. 2 ff.]{someSource}} However, in the produced .pdf the indications "p." and "ff." are ...
user avatar
  • 61
0 votes
0 answers
15 views

I would like to cite different authors during my thesis and if I click on the name can bring me to the Bibliography at the end. How can I do it? [duplicate]

How can I generate my bibliography in this way ? I would like to cite the author during my writing and if I click on the bibliography name can bring me to the biblography at the end
user avatar
  • 41
0 votes
0 answers
15 views

Linking the appendix on the table of content to the right page

The index and the outline point for the Appendix point to the page where references start. I wish they would point to the first page of the appendix. On the image you can see that the correct page ...
user avatar
  • 101
0 votes
2 answers
45 views

Incorrect label type using threeparttable and cleveref

I'm having an issue with the threeparttable package label type, causing cleverref to not be able to refer correctly to the table. Compiling on Overleaf produces the following warning: "cref ...
user avatar
0 votes
1 answer
80 views

Cross-references to footnotes when there are multiple footnotes

I am using multiple footnotes (\footnoteA, \footnoteB and \footnoteC) in a complicated text. I need to refer to some of them. I therefore tried the package footmisc, but when I have a \label{} within ...
user avatar
2 votes
1 answer
69 views

Create blocks of content to reference multiple times throughout a document

I have to create a series of exercises, all with the same items: Title Image Questions Solutions etc.. I would like to create a separate file for each exercise and then from my main document be ...
user avatar
  • 442
0 votes
2 answers
82 views

Can I merge \ref and \nameref into one command?

Note: There is a question here with an almost identical title, but the person there is asking for a completely different thing. I am currently writing a document that regularly refers to the name of a ...
user avatar
1 vote
0 answers
65 views

\eqref prints the word Equation. How to remove it? [closed]

Currently, when I type \ref{eq:myEquation} or \eqref{myEquation} in my thesis, the output is Equation 1.2 or (Equation 1.2), respectively. I want the output to be 1.2 or (1.2), respectively. How to ...
user avatar
  • 111
2 votes
1 answer
98 views

Adding `UsedOn` option to cleveref's \cref to mimic hyperref's \backcite

I am trying to overload \label and \cref, so that the following happens (similar in spirit to backref's \backcite): In some preliminary chapter, I define in Theorem A a label \label{thm:A}. Later in ...
user avatar
0 votes
0 answers
24 views

Using \nameref to refer to an unlabeled section doesn't work [duplicate]

I want to reference to my \section*{Foo.} with the \label{sec:foo}. For this, I tried using \nameref{sec:foo} but it doesn't work, i.e. there are no errors but it just doesn't print anything at that ...
user avatar
  • 1
0 votes
2 answers
27 views

\label with \includepdf links to previous page

It seems that using \includepdf along with \label links to the previous page. I tried to put the \label in the pagecommand= option, but this produced identical results. I had expected that using the ...
user avatar
2 votes
1 answer
83 views

How do you make clickable links / citations within a document?

I am trying to have clickable references where clicking the citation in the first section sends the reader to the reference in the second second. I cannot get this to work even after reading about ...
user avatar
  • 23
0 votes
0 answers
23 views

\ref to table environment appearing as ?? despite everything being correct

I have a very basic table in Latex, which is created and then attempted to be referenced as follows: \documentclass{report} \usepackage[british]{babel} \usepackage{cleveref} \usepackage[T1]{fontenc} \...
user avatar
1 vote
1 answer
42 views

Custom counter for cross-referencing is incorrect when used inside tabularray

I would like share with something. I have created a custom counter to cross-reference sub figures. For some reason, the counter is wrong if I use it inside tblr environment (the one defined in ...
user avatar
  • 540
3 votes
2 answers
99 views

Cleveref and caption-based command - wrong references

I am trying to create a caption command that highlights the first sentence and also uses the first sentence as a short caption for the table of *. Let's call it kaption. This is done using the ...
user avatar
  • 253
0 votes
2 answers
195 views

How to adapt \crefrangelabelformat to subexample formatting?

I would like to be able to redefine something which is supposed to be defined in the preamble. In this example and in relation to this question : Cross-referencing: more sublevels, and presets, I want ...
user avatar

1
2 3 4 5
86