{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
4answers
5k 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: ...
2
votes
0answers
299 views

how do I refer back to counters? [duplicate]

Possible Duplicate: How do I repeat a theorem number? I want to set up a simple macro that would do the following: It would be very similar to \label{XX}, (say, \relabel{XX}) only instead ...
18
votes
2answers
2k views

Is there a way to have latex detect forward references?

I've got a very large document (which I've broken into "chapters" and such) which I've recently moved a few things around in. Is there a nice way to get latex to output a list of forward references? ...
32
votes
7answers
5k views

How to use \pageref{foo} as a number?

What I want to do is to show a "progress bar" in the header to show how far you are in the document, by making a rule with width pagenumber divided by total pages times the paper width. This is what ...
2
votes
1answer
281 views

Sectioning created via titlesec have wrong \label

I have created the following custom sectioning using the titlesec package. % in the preamble \newcounter{phase} \titleclass{\phase}{straight}[\section] ...
12
votes
2answers
2k views

How to set a marker/counter/label to an arbitrary piece of text?

Is it possible to attach a marker to just a place in text, not to section, sub-section, etc.? This is what I'm trying to achieve: \begin{document} Alex (see~\ref{alex}) is a boy, Jessica ...
5
votes
1answer
760 views

\ref giving incorrect number for \label in custom environment

I have defined a custom environment (using the tocloft package, thanx to Juan) that looks like: \newcommand{\listscriptname}{List of Scripts} \newlistof[chapter]{script}{spt}{\listscriptname} ...
3
votes
2answers
746 views

Label numbering gone crazy

I have redefined the enumerate counters to include the section number, and this works as expected. However, when I try to cross-reference text in my document, the number on the reference doesn't show ...
5
votes
1answer
124 views

Defining a command for linked and indexed section headings?

What is the (preferred way of) defining a command that places a heading (like \section, \chapter, etc.) creates a label for this heading that can be referenced places the heading in the TOC (I ...
19
votes
1answer
1k views

What does the hyperref option hypertexnames do?

The Manual of hyperref states that hypertexnames: use guessable names for links. What does this mean? What are the consequences of using this option?
10
votes
1answer
1k views

How to organize labels when there are too many equations?

I'm writing a moderately long text using LaTeX, and it's great to be able to organize chapters, sections, appendices, and everything else almost automatically. One thing has been bothering me though. ...
2
votes
1answer
1k views

htlatex leaves undefined reference (“??” link) but pdflatex produces correct output

We have a large document that runs through pdflatex and through htlatex. The pdflatex output is fully ok. The htlatex output is also ok (it contains all images etc.) except that for some ...
20
votes
2answers
7k views

referencing labels from other files [duplicate]

Sometimes I want to refer (using \ref) a \label from some other tex file. What is the right way to do it? (It's, of course, possible to \include all files in one and then use \includeonly — but it ...
4
votes
3answers
3k views

Forcing specific numbers for tables

I'm working on a paper which will include several tables from a book. I would like to keep the same table numbers as in the book, it makes it easier for people reading the paper in this case. They'll ...
17
votes
2answers
3k views

Multiply-defined labels warnings with frame labels in Beamer with againframe

This question is pretty much identical to this (to the best of my knowledge) unanswered question from comp.text.tex, which, at the moment, is the top Google hit for this problem: when specifying frame ...
27
votes
4answers
19k views

A better way to reference theorem-like environments?

I know how to use \label and \ref to get a reference to a result(or whatever else really) that I have made previously in the document. But this is tedious and requires me to create a label name every ...
17
votes
2answers
939 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 ...
26
votes
2answers
8k 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 ...
4
votes
1answer
1k views

How can I disable the linking for figures in LyX?

Complete LaTeX and LyX newbie here. I am currently writing a document in LyX and I'm using hyperref to have links in the ToC, citations etc. The problem is that I added a figure (with float) and when ...
6
votes
3answers
7k views

Figure reference \ref{fig:result} renders as ?? in PDF

I have an article with the following figure (there are 2 small charts near each other, horizontally): \begin{figure}[h] \centering \includegraphics{left-graph} \includegraphics{right-graph} ...
11
votes
1answer
5k views

How to reference another document in LaTeX?

I want to compile sections of the article independently. Clearly, I can make their numbers right just by using something like \setcounter{section}{4}. How can I get something like ...
17
votes
1answer
9k views

Using LaTeX, how can I restate a theorem, with the same theorem number, later in a paper? [duplicate]

Possible Duplicate: How do I repeat a theorem number? I am writing a paper, and would like to state the main results in the Introduction. Then, when I come to prove the main results in ...
20
votes
5answers
8k views

\pdfendlink ended up in different nesting level than \pdfstartlink

I started using showkeys in one of my documents and see this error \pdfendlink ended up in different nesting level than \pdfstartlink A bit of google suggests that this "happens when hyperref is ...
4
votes
1answer
975 views

How to make sub figure referencing work in memoir + cleveref?

In the following example: \documentclass{memoir} \usepackage{cleveref} \newsubfloat{figure} \begin{document} \chapter{Example} \begin{figure} \centering \subtop[apple]{fig ...
6
votes
1answer
935 views

How to produce a combined index from multiple documents?

I'm creating a set of documents which are contained in different LaTeX source files and are going to be compiled into different PDF files. Each one can have its own index, generated using the usual ...
20
votes
3answers
17k views

Reference name of description list item in LaTeX

(Repost from Stack Overflow) I'd like to refer to a description list item by name instead of number. To that effect, I've added labels to each item, but when referencing them I only get the name of ...
17
votes
2answers
918 views

Usage of table/figures shown in caption

Is there a way to add the usage of a table/reference in the caption of the reference/table in LaTeX? For example: \begin{table} \begin{tabular}{ll} \textbf{Name} & \textbf{Description} ...
17
votes
2answers
662 views

Automatically numbering constants

I would like to somehow use LaTeX to automatically number constants. Some background As a mathematician, in my daily work there are a lot of throw-away constants which are not extremely important ...
17
votes
1answer
9k views

How to reference equations using letters and numbers

Sometimes it is convenient to refer to a group of equations by a letter and a number. For example: 2+1 (A1) 2+4 (A2) x^4 (B3) x^e (B4) Placing ...
58
votes
8answers
14k views

How do I repeat a theorem number?

Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section. I'd like to include the statement of these theorems twice over, ...
52
votes
1answer
23k views

How to make clickable links and cross-references in pdfs produced by LaTeX?

How can I make things link url references, my index, table of contents, and cross references clickable links in documents produced by LaTeX? I generally use pdflatex to produce my documents.
23
votes
5answers
8k views

How does one set custom labels for description lists?

Every now and then I use the description list environment \begin{description} \item[foo] foo is good \item[bar] bar is bad \end{description} to create lists with non-numerical labels. ...
12
votes
3answers
749 views

Label in caption

For certain styles it appears that the \label statement must be included in \caption to preserve good referencing. Why is that?
36
votes
1answer
39k views

\ref Chapter Name in LaTeX [duplicate]

Possible Duplicate: Get the title instead of number of a referenced chapter? Is it possible to use \ref{chap:conclusion} to refer to the actual name of the chapter instead of the chapter ...
8
votes
5answers
13k views

Table reference

I wrote a long table with a label in a tex file and \input it into my main tex file. The reference in the main tex file to the table, however, does not show the numbering of the table but the one of ...