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

1
vote
1answer
319 views

Biber Problem in OSX: why references not compiled?

[Update] This is solved thanks to Adam Liter's contribution in chat. This is summarised to a community answer below. I cannot understand why the references do not get compiled. I am running Yosemite ...
13
votes
2answers
10k views

Multiple subequation labels in one \ref

I'm trying to write a macro that puts subequations' labels in parentheses in a compact form. For example, if I have \begin{subequations} \begin{align} y - ax &= b \label{subeq1}\\ x^2 + ...
12
votes
1answer
2k views

How to make \hl (highlighting) to automatically place incompatible commands in \mbox?

The soul package provides a useful command \hl for highlighting text. However, \cite, \ref, and some other commands (maybe equations too) must be placed within an \mbox in order for \hl to work ...
12
votes
1answer
574 views

Lost labels using intertext with varioref and hyperref

I have a problem using \intertext together with \vref when hyperref is also used. Consider the following minimal example: \documentclass{article} \usepackage{amsmath, varioref} ...
10
votes
1answer
365 views

Conflict between amsmath and pdfcomment

I use both amsmath and pdfcomment in one document. This leads to the references produced by (\ref{}) to appear like (zref@1) instead of numbers like (1). Without amsmath or pdfcomment this problem ...
9
votes
2answers
561 views

Cross-referencing between files and equation counters

I am using package xr to cross reference between two files. Is there a way to make the equation numbers in one of the files follow the ones in the other? What I mean is, if the last equation in file ...
9
votes
3answers
460 views

Extended reference for enumerate item using parent environment

I want to reference an item of an enumerate list by it's normal label, if we are still in that same enumeration and by an parent.item syntax if we are somewhere else in the document. For example: ...
8
votes
2answers
90 views

Can I include the last index inside the label of an enumeration?

Can I achieve something like this with automatic numbering? Examples: 1 of 93: Example one 2 of 93: Example two ... 92 of 93: Example ninety-two 93 of 93: Example ninety-three I can ...
8
votes
2answers
781 views

Smartly omit chapter number in equation numbering

In my thesis I use chapters, sections and subsection. I like to have my equations numbered with respect to section, but I want the displayed equations numbers not to include the chapter number. ...
8
votes
1answer
107 views

How to avoid the hyperlink on a particular \ref

I use hyperref and I produce the pdf via pdflatex. Everytime I use \ref I get in the pdf a clickable link and I am happy with it... but I would like to disable the hyperlink in the pdf for one ...
8
votes
3answers
314 views

Changing the number of figure or equation automatically in text by changing the places of figures and equations

Is it possible to automatically reference a figure and equations in text? I meant sth like bibliography references. Moreover, by changing the place of the figures or equations relevant figure or ...
8
votes
5answers
3k views

Using \label with amsmath nested environments

First of all, I'm not sure these environments are supposed to be nested, but the fact is the alignment comes out exactly how I wanted, and no errors are issued. \documentclass[a5paper]{article} ...
7
votes
1answer
456 views

Numbering of subsections and paragraphs

I have a document style for a report which I'm having to copy to LaTeX format. I'm using pdfLaTeX, for information. In essence, the system is that paragraphs are on the same level as subsections, ...
7
votes
1answer
822 views

Change caption of figure for references

I changed the caption of my figures running the following command (I'm using the babel package): \addto\captionsngerman{\renewcommand{\figurename}{Abb.}} If I use \autoref{$LABEL} to reference to ...
7
votes
1answer
274 views

Reference the line number in which a (new) word occurred for the first time

I would like to cross-reference the line number in which a word occurred for the first time in some texts. For example, a text is given: LESSON I In the traffic court of a large mid-western city, a ...
7
votes
1answer
840 views

Name of current section/figure

I'm looking for a LaTeX command, say \foo, which expands to the type of section I'm in. In the following, the first \foo should expand to "Section", the second to "Subsection", and the third one to ...
7
votes
1answer
562 views

pagenote: Adding a cross-referencing mechanism

This question originates from a bug report at SourceForge.net: biblatex from April 2010. A user pointed out that a certain biblatex style (verbose-inote) produced wrong references when used together ...
6
votes
4answers
106 views

References in Chapter Titles

I am currently writing a manuscript using \documentclass{book}. I would like to devote one of the chapters in the manuscript to a proof of an earlier result. I have named the Chapter: ...
6
votes
1answer
297 views

Figure references in tufte-book

With the tufte-book class I cannot get references for figures right. \documentclass{tufte-book} \usepackage{lipsum,blindtext} \usepackage[demo]{graphicx} % Demo option for MWE without image ...
5
votes
1answer
149 views

How to reference an inequality with \cref?

I have inequalities being referenced by cref as equations. 1-) How can I change that? (and still have inequalities with the same numbering as equations) 2-) How can I change that and have ...
5
votes
3answers
816 views

hyperref bad references

After cleaning up my project and compiling a tex file 10 times in a row: rm temp.toc temp.pdf temp.out temp.html temp.aux xelatex temp.tex # executed 10 times! I still get bad references with ...
5
votes
1answer
838 views

How to \ref to subcaption numbers (a, b) when using memoirs subcaptions?

How can I get references to subcaption numbers when using memoir? In this example: \documentclass{memoir} \newsubfloat{figure} \begin{document} \chapter{Lorem} \section{ipsum} \begin{figure}[b] ...
5
votes
1answer
2k views

Undefined reference: autoref points to section instead of figure or table

Here is a minimum working example (an image 'test.png' needs to be in the working directory. I used this one.) % Created 2011-05-23 Mon 15:21 \documentclass[11pt]{article} \usepackage{graphicx} ...
5
votes
4answers
4k views

Renew \ref command doesn't work

I'm trying renew \ref command to auto detect equation and figure. All my labels of equations start with "eq:" and all labels of figures with "fig:". So I try this way, but it isn't works for me: ...
4
votes
1answer
246 views

Cross-ref an equation using RefTeX, AUCTeX and cleveref

After an updated of AUCTeX (to 11.87) the solution that worked wonderful from this answer stopped working. In particular, I got the following error: reftex-reference: Wrong number of arguments: ...
4
votes
2answers
1k views

Can individual items in an itemize list be labelled and hyperref linked?

If I try to label items in a list as in \documentclass{article} \usepackage{hyperref} \begin{document} \begin{itemize} \item blah \label{list:blah} \pagebreak \item foo \label{list:foo} ...
4
votes
2answers
114 views

How to test if a given reference belongs to a list of labels?

This question is a prolongation of my previous question How to choose from a list for using result in \ref?. I got really good and interesting answers. Unfortunately I can not implement them for my ...
4
votes
2answers
1k views

\ref* with Beamer

When I use \ref*{xx} in beamer, it gives me an error: "pdfTeX warning (dest): name{*} has been referenced but does not exist." Does beamer fool with it, or what am I missing? If I run a regular MWE ...
4
votes
2answers
2k views

Hypcap not working with custom figure environment

I'm trying to use caption with hypcap=true so that cross-reference hyperlinks will go to the figure instead of the figure caption. However, I'm using a multicol environment with a custom figure ...
4
votes
3answers
6k views

amsmath - multiple labels in one equation

I would like to use multiple labels in the same equation when using amsmath. Basic latex already has this feature, but not amsmath, which seems to manipulate labels in complicated ways. Is it possible ...
4
votes
2answers
1k views

Referencing items while using uncover

I am writing a presentation (using beamer) for a seminar and I just faced a problem I can't handle. On one slide, I have a big equation and then use an uncover-list to explain all the elements in ...
4
votes
2answers
473 views

How to link to a label using specific text

So I am writing a programming book and I have a code example in it that I have labeled \label{ex11}. How can I later in the document make a link to it using custom text? For example, I am writing ...
4
votes
1answer
1k views

Table, Figure, and Listing prefixes

Background Using LyX and KOMA Script to author a technical manual. Problem The documents are strewn with the following references: \ref{fig:Example-Database-Type} When converted to PDF, this ...
3
votes
1answer
62 views

Cross-referenced equation never becomes defined

I have a strange problem with cross-referencing my equations: no matter how often I run pdflatex they stay undefined. Other references do get resolved. Is there something wrong with the way I label ...
3
votes
2answers
171 views

How can I make a reference to a Glossary that typesets as \glossarytoctitle?

I'm using the glossaries package. I created a custom glossary called foo with the title, "My Foo Glossary Title": \newglossary[fgg]{foo}{fgs}{fgo}{My Foo Glossary} Ideally, I'd like to make a ...
3
votes
1answer
152 views

Using custom \locallabels command with custom \eqref command

I am trying to restrict refs' and labels' scopes to certain sections of a LaTeX document. Cf. this question. I have a custom \locallabels{} command, modified from here, and a custom \eq{} command: ...
3
votes
2answers
156 views

How do I configure a \ref of a \label to print more than just the number? [duplicate]

I am using \label in conjunction with \ref for my equations. For example \begin{equation} \label{eq:grav} F=\frac{G m_{1} m_{2}}{r^{2}} \end{equation} as shown in equation \ref{eq:grav} which ...
3
votes
1answer
619 views

Cross references and citations do not show in LibreOffice after htlatex conversion

When trying to convert a simple LaTeX document to LibreOffice/OpenOffice, cross references and citations do not show in the final document. They do when converting to (X)HTML, but this has other ...
3
votes
1answer
207 views

Change the reference style for subfloats: from 1a to 1(a)

How to change the reference style to subfloats (package subfloat) in a figure from <number><letter> to <number>(<letter>).
3
votes
1answer
228 views

Figure refs stop working after I added a new counter

I was using the amspset document class for generating exam practice problems. I had wanted to add some referencing to the problems so I started a new counter like this (adapted from some Tex Exchange ...
3
votes
0answers
503 views

Incompatibility of caption and cleveref package [closed]

The following code produced a TeX capacity exceeded error \documentclass{scrbook} \usepackage{caption} \usepackage{cleveref} \begin{document} \begin{figure} Text \label{fig:figures:1} ...
3
votes
3answers
304 views

Show “Page X of Y” only if there are multiple pages?

I'm trying to add a line in the header to be "Page X of Y", but only if there are multiple pages. My main problem is how to format the if statement. So far I have \ifx \pageref{LastPage} 1 ...
2
votes
1answer
80 views

Customized list cross reference error

I have created a customized list environment in the book class. The labels for the list are produced the way I want, but when items are referenced, they are not labeled correctly. Here is the code. ...
2
votes
0answers
290 views

Multiple \label commands before \ref

I have tried several approaches to solve my problem but unfortunately none successful yet. I can not find documentation mentioning how to solve this particular case. My problem is that I am using a ...
2
votes
1answer
465 views

Problem when using pdfcomment in figure captions and then referencing

This is possibly a bug in the pdfcomment package, maybe not. I use the \pdfmarkupcomment[]{}{} macro to insert highlighting into the caption of a figure. Then follows a lable. I reference the figure ...
2
votes
1answer
517 views

Figure references doesn't work

I'm writing a document with some figures, each one has one label, and I'm using references. Every figure used appear at the list of figures, but not when referencing from text. When I do that, it ...
0
votes
1answer
868 views

Cross-reference to an entry in the toc?

Is there any way to cross-reference to sections/subsections via their title? I find myself writing "Please see section 4 for more details", and it gets annoying very soon, especially when I have to ...
19
votes
2answers
2k views

How to reference the page of a figure?

Is it possible to make a reference to the page where a figure is rendered? I would like to write something like see figure~\ref{figure-xyz} on page NN where NN will automatically be maintained by ...
22
votes
1answer
299 views

Where will a theorem be used?

I have once seen a book (Graph Theory by Reinhard Diestel) where the author flags his theorems by adding on the left/right of the page the reference number of later theorems where said theorem will be ...
17
votes
2answers
15k views

Custom equations' names

Do you know ho can i call a reference to an equation using \ref or \eqref and obtain (name of the equation) instead of the standard counter? Thanks!