{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
2answers
49 views

How to use \nameref with xstring package to check string length

I need to measure a number of characters in string, that I returned from label through \nameref command. Here is my MWE: \documentclass{article} \usepackage{hyperref} \usepackage{xstring} ...
1
vote
1answer
54 views

Caption in figure and cross-reference them properly

I want to know how should I cross-reference the following caption in manuscript in following way Fig 1a and Fig 1b. \begin{figure} \minipage{0.50\textwidth} ...
1
vote
1answer
31 views

Autoref not properly placing links [closed]

I have the following code: \autoref{fig:vc_dimension} \begin{figure}[t] \begin{subfigure}[b]{0.5\textwidth} \centering \includegraphics[width=\textwidth]{vc_dimension_1} \caption{...} ...
2
votes
2answers
52 views

Knitr: How to make a crossreferences to figures and tables generatrd by code chunks?

I would like to make cross-references to images and tables generated from knitr code chunk in the same way as to standard figures and tables. In a standard figure I use control sequence \label, but i ...
0
votes
1answer
71 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 ...
2
votes
2answers
47 views

Reference Color

\documentclass[preprint,review,12pt]{elsarticle} \usepackage[colorlinks=true, citecolor=black, linkcolor=black, urlcolor=black]{hyperref} \begin{document} ... \cite{ML1986} ..... ... see ...
3
votes
2answers
29 views

Adding pagenumber to crossreference command

in "making external references stick out" I found the new command written below very helpful. Although I would like to add a pagenumber to the external file in the \myautoref command, and can't seem ...
28
votes
2answers
2k views

Referencing to “above” or “below”?

I would like to know if it is good practice, and if so how it can be achieved, to make references like: "as mentioned above...". Or am I going too far and should just type the word? I've read ...
5
votes
1answer
38 views

Wrong references to another chapters

My problem is when you click on the reference to the first definition from chapter 2 you will return to the first definition from chapter 1. Of course, I want to see definition 1 from the second ...
0
votes
1answer
14 views

How to make a cross reference of a figure inside ordered lists?

I inserted an image inside an ordered lists like Plan 1. Separate the samples (figure 1 ) 2. Clean the samples as shown in (cross-ref of figure 1). I labeled the ...
5
votes
1answer
489 views

Label a word or sentence?

Is it possible to refer to a word in a sentence? Example: Hi, I love\label{Word: Love} learning so I ask a lot of questions. I would like to refer to the word "love" in the above sentence. For ...
2
votes
1answer
67 views

Reference to the name of subequations

I have a formulation that consists of several subequations that I would like to refer to as a formulation and as individual equation in my article. Right now I have this: \usepackage{hyperref} ...
3
votes
1answer
56 views

Reference to not yet written object (supress warnings)

Is there a way to make references to not yet written code? Basically I just want to supress warnings that appear, when I write \ref{}, cause I happen to have references to things, that will come ...
0
votes
0answers
28 views

How to make linkable tags [duplicate]

I am new to tex.SE! I know how to use the most basic LaTeX features, like compiling a pdf document from a single source file. But I feel I can only use 1% of the full potential of LaTeX. One thing ...
4
votes
1answer
29 views

cleveref: crefname with accentuated initial

I am French and I would like to change a crefname. The problem is that adding a crefname beginning with an accentuated letter brings an error when using \Cref command. Here is my MWE: ...
18
votes
3answers
929 views

hyperref links break with pdftex + babel + Hebrew (or right-to-left language)

Using the babel package to write Hebrew text exposes incompatibilities with all sorts of other packages. This questions is about the incompatibility with hyperref. Basically, you can't get links with ...
5
votes
1answer
233 views

(Clickable) cross-reference in lstlisting

To generate documentation for an 'application programming interface', I would like to have a syntax highlighted area (with the class declaration), which has clickable links to the documentation (which ...
4
votes
2answers
70 views

Labeling a text and referencing it later

Is there a way to attach a label to a string and then refer to that string with a reference? For example, \labelText{This is a text that is also a tag}{label:text} and then refer to this string ...
0
votes
1answer
39 views

No information from the .log file about unresolved references

In October 2013 (question 136902), it was asked where one can explicitly find unresolved references in one's LaTeX encoding. The reply was: in your .log file. This used to be the correct and helpful ...
6
votes
1answer
1k views

Finding unresolved references

How do I find unresolved references? Does LaTeX tell me this somewhere? Is it in a log file? The LaTeX output just says I have unresolved references, but it doesn't tell me what they are, or does it? ...
14
votes
2answers
726 views

How to create *local* labels/refs in LaTeX?

Concise question: Is there any way to limit the scope in which a \label is visible to a \ref? Motivation: My current goal is to create a rather large document, containing many exercises and their ...
1
vote
0answers
35 views

Bibtex author name

I have a weird problem with my references. I'm using numbered reference system and everything works fine except for one reference entry. I have isolated the problem to the author field, because if I ...
2
votes
1answer
50 views

using tag inside table

Say I write a table twice, and want the second table to have the same numbering as the first. With equations, I know how to do it. However, with tables this does not work. The following is what I ...
5
votes
2answers
115 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
88 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
205 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
50 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
12 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 ...
3
votes
1answer
40 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
45 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
31 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 ...
6
votes
2answers
318 views

Varioref, cleveref and autonum together

I'm trying to mix varioref, cleveref and autonum to have the following behaviors: Automatic adding of reference type (i.e. adding "section" when referencing a section). -> cleveref; Adding the "on ...
1
vote
1answer
58 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 ...
0
votes
1answer
61 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 ...
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 ...
1
vote
1answer
64 views

Turn a warning (“Unused label”) into an error

The following example, a follow-up of Give an error if I dont reference a label, generates a warning: \documentclass{article} \usepackage{amsmath} \usepackage{refcheck} \begin{document} ...
1
vote
0answers
56 views

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

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
36 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, ...
37
votes
4answers
1k views

Document requiring infinitely many compiler passes?

It is an unfortunate reality that one must compile a LaTeX file several times in order to get all labels and citations correct. As far as I know, one should go on compiling as long as TeX warns that ...
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 ...
64
votes
3answers
35k views

Cross-referencing between different files

I want to cross-reference between different .tex files, just because I want to put every chapters separately. Let's say in file chapterI.tex I have \label{a} and I want to access this in file ...
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, ...
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 ...
6
votes
1answer
2k views

Putting an underscore in a \label

I am trying to use pdflatex to type set some files that have underscores in the \label. Such as \label{abc_xyz} and have been unsuccessful. I keep getting errors such as: ! Missing \endcsname ...
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] ...
1
vote
1answer
50 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 ...