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
0 votes
2 answers
35 views

`\item[0.]\label{fst}` then `\ref{fst}` gives `1.2` rather than `0`; how do I label an `enumerate` block item properly?

\begin{enumerate} \item[0.] \label{fst} Foo \item In \ref{fst} I said \end{enumerate} Want: In 0 I said Got: In 1.2 I said (happy to have extra full-stop; i.e., 0.)
Samuel Marks's user avatar
3 votes
1 answer
43 views

Referring to selected linguex sub-examples without parentheses

This is a follow up to the question (and the answer) here. I have the same issue as OP, in that I cannot use parentheses around example numbers that are placed within parentheses in the text. Unlike ...
John F Rando's user avatar
0 votes
0 answers
25 views

Changing referencing style depending on context

One style of referencing substatements of theorems/lemmas/corollaries/etc. is the following. Suppose we have the following text (my translation of the first part of SGA 1). CHAPTER I: ÉTALE MORPHISMS ...
Gargantuar's user avatar
1 vote
1 answer
21 views

How to get page numbers of Index and bibliography

Here is a skeleton .tex file for a book \documentclass[11pt,a4paper]{book} \usepackage{makeidx} \usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC \makeindex \begin{...
crayman9's user avatar
1 vote
0 answers
26 views

Issues with Incorrect Cross References in Overleaf PDF Export

Hello LaTeX Community, I am experiencing an issue with cross references in my Overleaf project. I have been following the Overleaf tutorial to create cross references within my document. While most ...
Yanirmr's user avatar
  • 121
0 votes
1 answer
11 views

How can I make the "References" into Sans Serif

Here's my current code: \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{amssymb} \usepackage{bm} \usepackage{color} \usepackage[colorlinks]{...
Jacky Wang's user avatar
1 vote
0 answers
46 views

How to show reference's page in internal links

I'm using ConTeXt as a PDF engine with Pandoc, to convert from Markdown to PDF. I use pandoc-crossref to process internal cross references, for example "as seen in section 2.1". Is there a ...
Josí Neto's user avatar
0 votes
1 answer
27 views

Get Name of Theorem Environment From Label

I'm trying to create a command, say envName, with the following behaviour (where theorem and lemma are AMS Theorem environments): \begin{theorem}\label{myThm} Lorem ipsum... \end{theorem} \begin{...
Dave's user avatar
  • 223
0 votes
1 answer
53 views

Make reference to a figure

I'm working on Overleaf and I searched how to make a reference to a figure but it's not working, can you tell me what I'm doing wrong? \documentclass{article} \usepackage{tikz} \begin{document} \...
avirsty's user avatar
  • 31
0 votes
0 answers
31 views

How to have figures only on left pages and text only the right ones? [duplicate]

EDIT: This post was associated with this one I kind of understood Mr Carlisle's solution, tested it and it seems to work in my case. However, I can't figure out how to properly insert my own graphics ...
AntoineAAA's user avatar
0 votes
1 answer
56 views

Cross-Referencing Label Affects Vertical Spacing

Consider the code with \label{L} (immediately above the second tikzpicture) commented out: \documentclass[12pt]{book} \usepackage[paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \...
DDS's user avatar
  • 8,796
0 votes
0 answers
7 views

Can you reference an item labelled for imakeidx outside the index?

The same items that are in my index I sometimes want to reference elsewhere in the text. Obviously I could use the pageref, but I'd rather have a hyperlink that zooms to the right point within the ...
Joanna Bryson's user avatar
0 votes
0 answers
42 views

How to get correct exhibit number when referenced [duplicate]

I have the following tex code: % Define a counter for exhibits \newcounter{exhibitcounter} % Define the exhibit command \newcommand{\exhibit}[2]{% \clearpage \refstepcounter{exhibitcounter} \...
9f241e21's user avatar
  • 101
0 votes
0 answers
22 views

Elsarticle: obtaining appendix section label letter? [duplicate]

When using Elsevier's article template elsarticle, the references to appendix sections return Appendix X instead of X. I personally dislike the double space, so I was trying to create a macro to ...
FxMySz's user avatar
  • 1
2 votes
1 answer
46 views

Beamer: numbering and referencing of captions doesn't work (follow-up question)

I desire that slides in beamer presentations have own framesubtiles. For this @samcarter_is_at_topanswers.xyz help me with this answer. It fulfil my basic request, but now I discover, that at figures ...
Zarko's user avatar
  • 296k
0 votes
1 answer
71 views

How to select a command based on the expansion of \Cref*?

(This is a somewhat of a continuation of this question of mine, which @egreg provided an easy solution to.) In the following (slight variation of egreg's) MWE, three commands are defined. \mylabel ...
Atom's user avatar
  • 665
3 votes
1 answer
73 views

Cross-referencing Issue in ConTeXt

Perhaps this is a silly question, but I’m learning to use ConTeXt and I haven’t been able to get \reference, \goto, \in, and \at to work as I want. The problem is that, when I have a \reference and ...
Jonathan C's user avatar
1 vote
1 answer
24 views

Adjust IEEE Appendix Numbering and Ensure Accurate Cross-Referencing

I am currently working on the following example, but the cross-referencing is not being displayed correctly. Instead of the expected Appendix A.1 and Appendix A.2, it shows Appendix A and Appendix B. ...
Thoth's user avatar
  • 113
1 vote
1 answer
111 views

Bourbaki style "relative"/"conditional" referencing

Is there a way to reference the labelled things via their "relative" paths? (This is how Bourbaki referenced in their books.) More precisely, I am using the book with chapters, sections and ...
Atom's user avatar
  • 665
0 votes
0 answers
10 views

How to customize reference format for bibtex

I use bibtex to output references, but I want to customize the format of the references. My example code is as follows \documentclass{article} \begin{document} some content... \cite{K} \nocite{*} \...
Tommk's user avatar
  • 1
1 vote
1 answer
75 views

Dynamic references content

I am trying to redact a document which has a lot of common part, depending only on some values. Those values are overwritten for each component, but at some point, I make reference to a subsection, ...
Krzysztof's user avatar
  • 121
4 votes
1 answer
73 views

Custom numberstyle for lines that are \ref'ed in a listing environment

Consider the following MWE: \documentclass{article} \usepackage{tikz} \usepackage{listings} \lstset{% basicstyle =\ttfamily, language = Python, keywordstyle = \bfseries, commentstyle = \...
cjorssen's user avatar
  • 10k
1 vote
1 answer
36 views

Italicize text (genus/species) within endnote title causes compilation to fail

I would like to italicize Homo sapiens in a cited reference in my endnotes. Unitalicized works fine. Add \textit{} and compilation fails. Minimal not-working test.bib: @online{...
Paul's user avatar
  • 23
1 vote
0 answers
39 views

Change cross-reference format if referencing elsewhere in the same chapter

I have a multi-part project where I'm using a custom format for subsubsection cross-references: \labelformat{subsubsection}{Pt~\arabic{part}, Ch~\thechapter, Sec~\thesubsubsection} Pt 1, Ch 2, Sec 3....
Bells12's user avatar
  • 37
1 vote
1 answer
18 views

Custom reference text for (sub)labels (here for subfigure-like tcolorbox)

For the reasons floats cannot be nested in tcolorbox and I want my (sub)figure to be fancier, I coded new Figure and Subfigure newtcolorbox environments. Here is a simplified version of my code \...
OursPolaire's user avatar
0 votes
0 answers
12 views

Customizing reference styles of sub-tables in LaTeX

I create and reference to some sub-tables. The following show a minimum example. \documentclass{IEEEtran} \usepackage{subcaption} \begin{document} \begin{table} \caption{Table} \...
Trams's user avatar
  • 365
0 votes
1 answer
33 views

Including subsection titles in label using \labelformat

As per the answer to this question, I have customised my subsubsection labels as follows to automatically include the part and chapter numbers: \labelformat{subsubsection}{Pt~\arabic{part}, Ch~\...
Bells12's user avatar
  • 37
1 vote
1 answer
61 views

Including part and chapter numbers in cross-references

I have a project consisting of Parts, each with multiple Chapters. The Parts are written in main.tex, with each Chapter included as a separate \subfile of main.tex. Is there a way to automatically ...
Bells12's user avatar
  • 37
0 votes
0 answers
30 views

\ref gets section number instead of theorem number using tcolorbox [duplicate]

I found a nice template for my notes but I'm having trouble getting it to reference definitions and theorems correctly, as \ref displays the section number instead of the definition number. \...
Rucy's user avatar
  • 1
1 vote
1 answer
33 views

How to left-align some (not all) single-line, labeled equations in beamer? I tried ```fleqn``` but it gives problems

I'm working on a presentation with beamer, and I use the equation environment in two cases: a line with only mathematical expressions, between two lines of text, and centered horizontally (pretty ...
AmenoParallasse's user avatar
0 votes
0 answers
46 views

Problem in setting list reference

\documentclass{article} \usepackage{listings} \begin{document} \begin{lstlisting}[caption={Some Java code},label={lst:label},language=Java] // Code... \end{lstlisting} \begin{lstlisting}[caption={ ...
sara lee's user avatar
0 votes
0 answers
34 views

Changing the behavior of autocomplete of labels in TexMaker

As someone that is trying to migrate from Overleaf to another LaTeX editor, autocompleting labels in TexMaker has proven to be far from optimal to me. From what I found, I can make TexMaker ...
Francisco's user avatar
0 votes
0 answers
53 views

Make chapter numbers appear in ToC (documentclass: book, using biblatex) and modification of the format of the Reference chapter

I’m using biblatex and I have made each chapter in separate tex file, and I combine them on the main.tex Each chapter is showing with number.name, which is as I want, as you can see from the picture 1 ...
Georgios's user avatar
0 votes
1 answer
26 views

Relabling of lables?

I'm facing an issue, where I need to "relable" lables. I'm working on a mechanismn to run over a part of tex-file twice with two different parameters, in order to write out different parts ...
Georg's user avatar
  • 51
0 votes
1 answer
39 views

How to make consistant numbering/labels between two different tex file (one for main, one for supplemental)

I need to submit a paper to a journal which asks a main.tex without the supplemental section, and a separate pdf for the supplemental. Right now I have main.tex and supp.tex for these two documents. (...
StarBucK's user avatar
  • 181
2 votes
0 answers
49 views

Wrong order of references when combining subequations with cleveref

Could you please help identify what its wrong with my code (see below)? It uses subequations and cleveref. The result is that some of the references appear in a wrong order. What I get is (1.1a) and (...
Ann's user avatar
  • 21
4 votes
1 answer
128 views

How can I redefine the current label?

I'm having back reference issues when using an algorithm. Consider the following example \documentclass{article} \usepackage[algo2e,linesnumbered,algonl]{algorithm2e} \usepackage[backref=section]{...
walleye's user avatar
  • 113
1 vote
1 answer
26 views

Problem refering to appendix using the sysbio class

With the MWE: \documentclass{sysbio} \usepackage{hyperref} \begin{document} \section{Introduction} Some thing in \ref{app::a} Some thing in \autoref{app::a} \appendix \section{some appendix} \label{...
Tianjian Qin's user avatar
0 votes
1 answer
46 views

How cross-reference optional argument contents in enumerate list item?

In the following, is it possible to create a cross-reference that prints the contents of the "note-like" field of a \ditem optional argument? That is, I would like to be able to print "...
murray's user avatar
  • 7,914
0 votes
0 answers
50 views

Problem with citation (authoryear) in NJDwileyV5 template?

I came across the NJDwileyV5 Latex template and when I try to use \citet{} for citation, i.e. author, (year), in the text the result is always just a number as if it a footnote number with no author ...
Jeff's user avatar
  • 1
1 vote
1 answer
119 views

Where does \label write to?

Sorry this is a basic question. I do not know where does \label write the data to? In my previous installation of MikTex 2.9 I can use \CJKnumber{\ref{X}} to reference a previously defined number X ...
nana's user avatar
  • 23
2 votes
2 answers
70 views

How to obtain a letter in a cross reference / list counter with letters (alph)?

I´d like to obtain this How can you obtain letter instead a number in a cross reference (label/ref) in an enumitem (alph) ref/label? Or any solution with the fantastic cleverref package?. \...
Mika Ike's user avatar
  • 3,741
3 votes
1 answer
68 views

Test if "name" key of label is empty

I'd like to test if the "name" key attached to a label when nameref is loaded is empty. The value can be retrieved expandably with refcount's \getrefbykeydefault and tested as follows. \...
mbert's user avatar
  • 4,086
0 votes
1 answer
72 views

How avoid crossreftools package to handle theorem notes?

Using crossreftools along with hyperref and cleveref, I can obtain cross-references, as shown in the output below, that include the names of "named theorems" or the note fields of ordinary ...
murray's user avatar
  • 7,914
1 vote
3 answers
90 views

How to use \autoref to refer to a subfigure

Let's say I have a figure that actually has two subfigures (but composited into a single file), is there a way that I could get autoref to output "Figure 1A" and "Figure 1B"? What ...
Danny Garside's user avatar
1 vote
0 answers
49 views

Autonum and restatable incompatible

I'm using the autonum package. If I want to restate a lemma using thm-restate package, which includes an align environment, all lemmas after that restate cannot be referenced to. Any workarounds? I'd ...
Matteo's user avatar
  • 111
1 vote
1 answer
36 views

Referencing tcolorbox using label option fails

I'm designing a tutorial using tcolorbox, which includes multiple chapters, and each chapter contains a few questions. I use tcolorbox to contain the text of each question, for which I just need "...
leeyee's user avatar
  • 113
1 vote
1 answer
55 views

ConTeXt: Cross-reference from macro definition

Background Looking to allow user-defined cross-references and captions. The input XML resembles: <p> <a class="name" data-type="tab" name="ref"/> </p> ...
Dave Jarvis's user avatar
  • 11.6k
0 votes
1 answer
62 views

Equation referencing

LyX correctly infers the equation number from the compiled document and displays its correct equation number. The LxY:Cross-reference dialog, however, only shows the label, but not the equation number....
Alois Pichler's user avatar
0 votes
1 answer
28 views

Internal section refs not working in scrartcl

I can't seem to get section references working in this scrartcl class article (from a template called Eisvogel). I usually use \label{sec:intro} and \ref{sec:intro} and it works fine, now I just see a ...
apg's user avatar
  • 163

1
2 3 4 5
90