{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.

learn more… | top users | synonyms (1)

4
votes
1answer
69 views

Example of LaTeX code that does not compile [duplicate]

In the excellent answer by egreg to the question How Does Latex Know the Page Number of a Reference he said that [t]his is not completely foolproof and there are examples around of cleverly ...
1
vote
1answer
28 views

Cross reference chapter number as string

I'm trying to print the chapter number of a cross referenced labelled chapter, not as an Arabic or Roman numeral, but written out as a word. I have managed to find some information here, which ...
0
votes
0answers
21 views

False numbers in cross-reference of item from enumerate

I defined the labels of items from enumerate as following: 1.\usepackage{enumerate} 2.\renewcommand{\theenumi}{\arabic{enumi}} 3.\renewcommand{\labelenumi}{\theenumi} ...
0
votes
0answers
11 views

References in section text but appearing next to section heading [on hold]

I am using Bibtex and want the references to appear next to the section heading. If you put them in the heading the references then appear in the TOC. As a result instead of being references [10] ...
21
votes
3answers
2k views

How does LaTeX know the page number of a reference?

I am creating documents with various references, citations, an index, table of contents, and other linked elements. How does LaTeX know how to properly cross reference a page while properly formatting ...
1
vote
1answer
51 views

How to refer back to equations [duplicate]

I am using \begin{equation} \end{equation} to number my equations in my text. But I normally mention these equations in the further text. E.g., In equation 3 .... But if I change the former equation ...
2
votes
1answer
41 views

Force the numbering of a specific equation when mathtools showonlyrefs is true

In order to don't waste time in adding/removing *-caracters to number or not equations, I use \mathtools{showonlyrefs=true} in the preamble. Nevertheless, sometimes I'd like to number unreferenced ...
0
votes
1answer
29 views

No dots in the cross-reference to an item from enumerate

I defined the labels of items from enumerate as following: 1.\usepackage{enumerate} 2.\renewcommand{\theenumi}{\arabic{enumi}} 3.\renewcommand{\labelenumi}{\theenumi} ...
3
votes
2answers
36 views

Incremental text markers

I want incremental markers on text that I can reference afterwards. I'm building a index of limitations so something like this would be nice: \limitation{limitationInternalIdentifier} So in its ...
3
votes
1answer
58 views

Hyperref refer chapter and page in text

\documentclass[oneside,10pt]{book} \usepackage{amsmath, amsfonts, amsthm, amssymb} \usepackage{hyperref} \usepackage{blindtext} \begin{document} \chapter{something} \blindtext[1] ...
6
votes
2answers
170 views

Have latex warn when I refer to an item that occurs later?

I'm writing a long mathematics book. Sometimes after I move things around, an internal reference (\ref{...}) will refer to an item that occurs later in the text. For example, a proof may ...
2
votes
1answer
58 views

cross-references with xindy

I'm using xindy for my index. And I would like to have cross-references inside. But when I do so, the page number associate to the entry with a cross-reference disappear. Here is a MWE: ...
1
vote
1answer
63 views

debugging missing reference to figure

to put it plainly: is there a way to debug the way a \begin{figure}...\end{figure} block is processed? I got all my figures in my paper, their references are alright except for 2 of them ...
1
vote
0answers
36 views

multilingual references

Just for curiosity... Is it possible to include into your references articles that are published in different languages? Let's say for instance that one of my biblatex entries is written in greek, ...
1
vote
0answers
32 views

Interactive pdf. Moving between lines

I made a quiz in LaTex for my exam, and my professor wants me to do the following. When I click on a solution of a problem in the pdf, I would get as a result the problem which is given for that ...
1
vote
0answers
32 views

Reference a picture [duplicate]

I am writing a PhD thesis. Sometimes when I reference to a figure the following problem occurs. In PDF the word Fig.[number of figure] are written in two lines (Fig. and [] are separated). How to ...
0
votes
0answers
10 views

labeling lines in text body [duplicate]

Is it possible to set "label markups" or a "placeholders" in a text, to refer to a particular line? I am thinking of this in the context of academic article revision, where usually people comment on ...
2
votes
0answers
51 views

Ignore special characters in \newcommand argument to generate section labels?

I am editing a rather large document and have replaced \section, \subsection etc with \newcommand macros that include \section etc but also spacing and other commands. I am trying to get it to ...
1
vote
1answer
29 views

What should be the relative positioning between label and caption in a figure? [duplicate]

When writing I normally don't care if I write first the caption or the label of a figure. A friend recently told me to write always the caption first and then the label. What reasons are to do this? ...
2
votes
3answers
40 views

Two different kind of reference in a document

I want to use two different kind of reference in a document: one is default with command \refa{} “1.1”, and another is added () around \ref with command \ref{} “(1.1)”. I use: add () around \ref{} for ...
0
votes
0answers
43 views

How do I get warning when a label is not defined but we are refering?

I am writing a lecture notes for M.Sc Students... The first chapter was prepared some months ago and I forgot that the places that I have referred a particular example/exercise given in the first ...
4
votes
2answers
45 views

customize \label and \ref

This must be easy, but my TeX knowledge is insufficient. How can I make \label{key} in an enumerate environment reference the item's enumi instead of the item's \theenumi (which seems to be the ...
2
votes
1answer
101 views

How to cross-reference an unnumbered theorem using hyperref and cleveref

In two previous questions (i.e. Distinguishing \ref and \cref through different colors, and ''Proof of Theorem x'' header trough modification of \ref) I addressed some problems I had with hyperref ...
0
votes
0answers
19 views

error related to Missing \endcsname inserted when editing reference

I am editing a reference.tex and I encountered this problem when compiling. I typed line 55 several times and tried to deleted this line, but the still cannot fix it.This is my code. This is error ...
3
votes
3answers
78 views

Remove all pdf hyperlinks while maintaining hyperref formatting

I want to split a pdflatex pdf document into two parts. The second part has references to the first part, which are hyperlinks and which I want to remove, without changing the visual appearance. So I ...
5
votes
1answer
36 views

How can I avoid a persistent warning concerning possibly changed labels when using background and TikZ?

Last month, I posted the following code as an answer to a question. The code gives the right output. However, what I did not notice but Thérèse did is that it generates a warning concerning undefined ...
1
vote
1answer
29 views

nbconvert-generated labels fail with babel, work without it or with large margins

I'm using ipython nbconvert (which uses pandoc) to transform an IPython notebook and the document code contains the following lines \subsection{Vytvářeni polí ...
2
votes
1answer
38 views

Referencing a Source Code Listing

I would love my listings to look like this: With the references as shown. is this possible? Would I need to use TikZ? I have done a pretty exhaustive search but can't find out how this was ...
2
votes
1answer
70 views

Remove labels from showing up in final document

I have these labels in the margin everywhere in my final document. I don't think they look good, and I want to get rid of them, but I can't figure out how. I searched around and this is the closest ...
1
vote
0answers
64 views

Warning message with fonts: Label(s) may have changed. Rerun to get cross-references right

Why do XeLaTeX return this warning message: Label(s) may have changed. Rerun to get cross-references right. when using some fonts as Amiri and how one can get out of this warning message. I need ...
2
votes
1answer
46 views

Auto-generating labels for theorems

I'm using package amsthm to define a "Definition" environment as follows: \theoremstyle{definition} \newtheorem{definition}{Definition} In brackets, a name for the definition is supplied: ...
4
votes
2answers
75 views

How to get cleveref to explicitly list each reference rather than joining them?

I am using cleveref's \cref{label} command with multiple arguments. I want to ensure that it explicitly lists all three sections that I am referencing regardless of if they are in order or not. At ...
10
votes
1answer
137 views

Set different hyperref color inside frame of tcolorbox

I currently have the following MWE: \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[colorlinks=true]{hyperref} \hypersetup{allcolors=blue} \usepackage[most]{tcolorbox} ...
4
votes
1answer
72 views

Reference equations with \eqref while using different tag forms throughout document

I'm trying to reference equation by \eqref when I use different tags form throughout document, but the output can't display the tag form that I want. As mentioned in mathtools package usage, "be ...
3
votes
0answers
55 views

Equation number bigger than 10 in appendices do not get the cross-reference [closed]

I have encountered a funny problem with my equations (in appendix) cross-referencing. If, in appendices, I have equations more than ten (for example A.10, A.11, B.13) when I click on the ...
4
votes
2answers
93 views

How do i `\tag` a subequations environment as a whole? [duplicate]

I have a similar subequations environment as in the mwe \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations}\label{eq:w} %\tag{myEQ} \begin{align} a &= b ...
0
votes
0answers
19 views

Bibliography with Biblatex not working [duplicate]

I'm having problems trying to create a bibliography using biblatex. In my preamble of my main document file I have the following: ...
0
votes
0answers
33 views

One problem in my reference

I want to have the word "Gr\"obner" In my reference but it appears "gr\"obner", that is "g" is not capital. What is my problem? What I have to do?
3
votes
0answers
37 views

Float environment closes to first reference

I keep writing my text, and possibly even shuffling the content a little bit. So I might really mis where a figure is first referenced. To solve this, I put all my figures in figures.tex file (a ...
5
votes
3answers
215 views

How to reference chapter names that include counter output?

I want to use a counter in some chapter names, this works fine for the TOC and in the chapter names themselves, but references to the chapter name appear to use the counter at the time of the ...
0
votes
1answer
22 views

problem with cross-referencing after changing numerical list

While working with the following not so minimal example I noticed that the cross referencing does not work properly, when changing the appearance of enumerate labels. What do I have to change to make ...
2
votes
1answer
51 views

Open another pdf file at referenced label/page

I am having two documents, call them A and B. I want to make several cross-references from file A to file B and by clicking on the hyperlink, I want to open file B at the respective page. In my ...
2
votes
1answer
30 views

\ref to existing \label do not works, but index and url yes

This is my code and my results: \begin{figure}[h!] \label{fig:ppe_xyz} \begin{lstlisting} §$ppe_x$§ = ppe(§$A_x$§, s, order, overlap, H); §$ppe_y$§ = ppe(§$A_y$§, s, order, overlap, H); ...
2
votes
1answer
50 views

Cross-Referenced Index/Dictionary

I am undergoing some amateur Greek studies and would like to construct a dictionary of sorts with LaTeX. I would obviously like some sort of alpha-beta-cal listing of vocabulary words I encounter, ...
3
votes
2answers
51 views

cref and external documents

I want two things: 1. to be able to use \cref across different files and 2. to display certain environments (just the theorems for example) from an external file. What I mean by (2) is the ...
1
vote
0answers
28 views

Problem in referring at figures [closed]

Today I am having hard times to find why after compilation each labeled figures along the code gives always the same reference to the same figure number namely to figure (1.0.1). Surprisingly that ...
0
votes
0answers
29 views

How to create an own sorted label List from special \refs

I the following code which lets me define labels for source code and later make a table out of them \documentclass[12pt]{article} \pagestyle{empty} \usepackage{xcolor} ...
7
votes
1answer
202 views

How to obtain the same numbering of an algorithm for the reference?

I don't understand why the reference number in the PDF is wrong. \documentclass[12pt,addpoints]{exam} \usepackage[section]{algorithm} \usepackage{algorithmicx} \usepackage{algpseudocode} ...
6
votes
4answers
156 views

Give an enumerate list a name and reference

I would like to have a list that is referenced later by a label. Table 1: List of steps needed to be taken Do A Do B Do C As seen in Table 1 And I would like to be able to ...
6
votes
1answer
51 views

Hiding an equation tag but still using it for referencing

I use the semantic package for displaying natural deduction-style inference rules in equations. The \inference command has an optional argument which can be used to tag rules: \inference[Rule1]{A}{B} ...