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

5
votes
1answer
721 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
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
2answers
729 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
108 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
1answer
457 views

chemnum package

The following minimal code using the chemnum package was designed to replace TMP1, TMP2 and TMP3 in an eps file made by ChemDraw by numbers: \documentclass{article} \usepackage{graphicx} ...
4
votes
2answers
1k 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
4k 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
1answer
1k 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} ...
4
votes
2answers
421 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 ...
3
votes
2answers
129 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
128 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
131 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
518 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
197 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
208 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
474 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
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 ...
2
votes
1answer
72 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
248 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
423 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
419 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
708 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
543 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 ...
16
votes
2answers
12k 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!
11
votes
2answers
5k views

Autoref's inserted text has not the correct case

I'm using the \autoref tag which comes with the package hyperref for referencing my algorithms, figures etc. I read that it automatically adjusts the reference text's case, but it won't work with my ...
18
votes
3answers
364 views

How to display the same text in various parts of the document?

In a long, long, long writing. I have a piece of text that repeats in several places/sections/chapters. When I'm editing, I change 2 or 3 words in that piece of text. The changes have to be applied to ...
14
votes
1answer
3k views

Is there a standard way to refer to a range of equations?

I have occasionally wanted to refer to a range of equations in my document. So far, I've been using Equations~\eqref{firstEquation}~--~\eqref{lastEquation}, which produces something like "Equations ...
13
votes
3answers
447 views

Need help creating a custom aux file read/write routine to suit my needs

I require two new commands, \createreference and \citereference, to work with. They should work as shown in the following examples: \createreference{john}{John Q. Citizen} should write the text “John ...
12
votes
5answers
2k views

Which equations should be numbered?

Is the best practice to number all equations, or just those that will be referred to?
7
votes
1answer
235 views

Highlight referenced equation number

I have to give a talk, and I am using a LaTeX paper that I will write onto the blackboard. However, it is quite annoying to write all equation numbers on the blackboard, but I do want to have them all ...
7
votes
1answer
8k views

Referencing subfigures in main caption (with \subfloat and \subref)

I've used subfloat to include subfigures, with their relevant labels but with empty captions. what I'm going to do is to reference these figures with \subref in the main caption of the figure. But ...
7
votes
2answers
6k views

Table numbering mismatch in caption and in text

I have created 2 tables in my LaTeX document \begin{table}[hb] \centering \begin{tabular}{|c|c|r|} \hline ... not important... \end{tabular} \label{tab:2} \caption{Določanje prioritet mojstrov ...
4
votes
1answer
575 views

Refer to label in another chapter (another file)

I am writing my thesis using LyX's thesis template, and each chapter is a different file (chapter-x.lyx). However, sometimes, I need to refer to a section from another chapter, which is in a ...
22
votes
1answer
675 views

What are the valid names as labels?

What are the valid characters to use in labels? I thought that only alphabetic characters were valid, but I tested ' and ! and they work. What are the restrictions to these names?
17
votes
3answers
739 views

Is there any difference between nesting \label in \caption and putting \label outside \caption?

Is there any difference in behavior between the following coding styles? Coding style A: \caption does not enclose \label. \begin{figure} \includegraphics{cat.eps} \caption{This is a cat.} ...
15
votes
2answers
277 views

Creating a “\label” that, if necessary, spans over several pages

What I want to do is the following: I want to refer to an earlier block of text. I could do this by using the \label and the \ref commands like so: \label{x} Lorem ipsum dolor sit amet, consectetur ...
15
votes
2answers
729 views

Testing for current page

Is there a way of testing if a \pageref is the current page? For example, in the next code: \newcommand\figureref[1]{% Figure~\ref{#1} (p.~\pageref{#1}) } I would like to eliminate the ...
13
votes
3answers
11k views

Using section sign (§) for cross-references to sections

In some papers and books you see that author uses §1.3 instead of section 1.3. How § sign can be added before section (or part, chapter, ...) number automatically? Please mention any useful tip about ...
11
votes
1answer
5k views

Labeling a Footnotemark

Is there a way to label a \footnotemark instance (without redefining the \footnotemark macro)? Labeling the \footnotemark has no effect (it labels whatever environment the command is invoked from) and ...
10
votes
2answers
2k views

In align environment, how can you label some (but not all) of the equations?

I know that the align environment labels all the lines, while the align* environment labels none of the lines. Is there a way to have the align environment label only some of the lines? For example, ...
10
votes
8answers
14k views

Chapter ref with LaTeX

In LaTeX, we can say something like: "See equation \ref{eq} on page \pageref{eq}..." Is there any way to do: "See equation \ref{eq} in chapter \chapterref{eq}..."
8
votes
1answer
950 views

Use bibliography numbers and citation from other file

This question led to a new package: xcite I want to reference to citations from other file. Similar to what xr package does to labels, but I want to apply it for the bibliography. If I'm able ...
7
votes
1answer
560 views

Variable chapter references

I'm looking to typeset certain references à la varioref thus so: if I reference chapter 3 from within chapter 2, I'd like the output to look like "...in the next chapter---" rather than "...in chapter ...
5
votes
1answer
6k views

Referencing figures doesn't work [duplicate]

Possible Duplicate: Where to put the \label on a figure environment? I'm having a problem with referencing figures in LaTeX. I have the following text: \begin{figure}[H] \center ...
2
votes
1answer
228 views

Backreferences for equations

I'd like to put a list of pages, hyperlinked to the position of the \eqref or \cref that point to it in the margin of each \labeled equation, like backref does for bibliographies and \cite. Both this ...
13
votes
1answer
20k views

Article appendix with sections and toc entries in the form “Appendix A”

I have been trying to get the appendix for my thesis done. I've read a lot about it and as always you can chose between a fiddly way and a magic package that doas the job to solve a problem (I usually ...
12
votes
2answers
388 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 ...
12
votes
2answers
331 views

How can I print only Author-Date of the parent crossref in the bibliography entry of the child of the crossref?

I have an @article entry, which crossrefs a @periodical entry. I cite both of them. In my bibliography, I would like the article to refer to the periodical in the form of the citation, but i only get ...