{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
0answers
23 views

tufte-book: tikz references in caption

Using the article documentclass, the following code works as expected. \documentclass{article} \usepackage{lipsum} \usepackage{caption} \usepackage{pgfplots} \pgfplotsset{compat=1.13} ...
5
votes
2answers
67 views

Reference with compound labels

I created an environment, Procedure, using the package tcolorbox. The procedures are numbered by \thechapter-\theproc and I would like to use cleveref to refer to them. Here is a minimum working ...
7
votes
5answers
161 views

Two labels on the same equation line

I would like to have a compact set of two equations on the same line, each one labeled, with both labels on the far right. The code would be something like: \documentclass{article} ...
1
vote
0answers
27 views

Referencing tufte-book sections

I am using the tufte-book class without section numbers which looks very nice. Is there a visually appealing way to reference chapters and sections? Here is what I am doing at the moment, but I would ...
0
votes
0answers
11 views

Make cross references and table of contents linked, clickable objects [duplicate]

I'd like to ensure my PDF is easy to navigate so is there a way to have the TOC allowed to be clicked to get to various chapters and sections, similarly with the cross references to allow jumping ...
2
votes
0answers
13 views

Show complete reference in the output [duplicate]

I'm using a bib file to insert all my references. The bibliography is generated ok in the output. However, some references are shown between two pages (it means, the reference starts at the end of one ...
0
votes
0answers
14 views

Combine: How to reference a paper in the introduction

In the table of contents that combine generates, I would like the paper names to include numbers: 1 First paper 2 Second paper Then, in the introduction, I would like to refer to them: In Paper ...
3
votes
1answer
33 views

Perform math operation with values of \labels

I use \label to index the number of items in several environments. I wish to perform the sum of the quantities reported by those labels. Here is a working example: \documentclass{article} ...
1
vote
0answers
30 views

Escaped characters in labels

I am writing some API documentation, and since I don't like to repeat myself I would like to make some commands and call those for parts that get repeated a lot. However, I am having trouble with ...
4
votes
1answer
30 views

Cross reference custom ID

I have a table of requirements that have an ID associated with each one, I'm doing this via: \stepcounter{functionalrequirements}FR\arabic{functionalrequirements} I'm wondering if there is a way ...
0
votes
1answer
34 views

Wrong number when reference inside algorithm

\usepackage{algorithm} \usepackage{algorithmic} \begin{algorithm}[tb] \caption{Algorithm} \label{alg} \begin{algorithmic}[1] \STATE blalblabla \label{cond1} \STATE ...
0
votes
1answer
37 views

Why when using the template I get errors?

I would like to use the template for Springer journal. I have already written my article in another latex file. 1) Why I get errors when I use the template as-is (after changing its name saving it as ...
0
votes
1answer
22 views

Referencing style in Lyx

Journal example: Gray, Jo Anna. (1976). "Wage Indexation-A Macroeconomic Approach." Journal of Monetary Economics 2, 221-235. Book example Blanchard, Olivier J., and Stanley Fischer. (1989). Lectures ...
1
vote
1answer
24 views

LaTeXing autofill ST3 multiple file project

I'm writing my thesis in LaTeX using Sublime-Text3. Since my document is quite extensive, it's easier for me to handle it in a project. Also suggested by LaTeXing Guide (part2). My .sublime-project ...
1
vote
0answers
49 views

\eqref inside \align with \usepackage[overload]{empeq} [on hold]

I want to put\eqref inside \align. For example \documentclass{article} \usepackage[english]{babel} \usepackage{amsmath} \usepackage[overload]{empheq} \begin{document} \begin{equation}\label{eq1} ...
1
vote
0answers
27 views

Compress “page” label with varioref and cleveref

In case of multiple cross-references of same kind (say sections), even if not consecutive, cleveref's \cref command compresses the references' labels by using the plural form: for instance, ...
3
votes
1answer
18 views

Additional information on first occurrence of a product name

I refer to companies and products multiple times throughout my publication. The first time I mention a product I would like to provide additional information about this product like so: Microsoft ...
0
votes
0answers
11 views

URL of web page in bibliography not output

First time trying to write my thesis in Lyx which has been great up until this point, and getting rather close to submission time I have noticed that webpage references are not outputting with the URL ...
4
votes
1answer
67 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
19 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
15 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
8 views

References in section text but appearing next to section heading

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
1k 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
35 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
21 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
22 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
33 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
49 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
165 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 ...
1
vote
1answer
33 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
43 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 ...
0
votes
0answers
32 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
28 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
45 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
23 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
30 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
42 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
40 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 ...
0
votes
0answers
24 views

Relation between \cref and \newtheoremstyle

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
13 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
46 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
33 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
25 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
35 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
58 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
58 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
40 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
60 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 ...