{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.
24
votes
2answers
746 views
Why does an environment's label have to appear after the caption?
\documentclass{article}
\usepackage{algorithm}
\begin{document}
\setcounter{section}{54}
\section{A section with no label}
\begin{algorithm}
\label{myalg}
\caption{An algorithm with the label ...
37
votes
3answers
9k views
subcaption vs. subfig: Best package for referencing a subfigure
On this question a comment by Martin H says, that one should forget about the subfigure and subfig packages and use subcaption. As subfig replaces subfigure, no argument there.
I am currently using ...
16
votes
1answer
850 views
Changing the apperance of equation numbers with amsmath
For equations in my document, I use the facilities of the amsmath package. In order to make the equation numbers more eye-catching, I want them to be in boldface and a little bit indented to the ...
18
votes
2answers
1k views
Label and caption without float
I’d like to have an environment that works much like a float, except that it doesn’t float.
That is, in fact, I’d like to be able to define an environment that has a label and a caption.
I ...
8
votes
1answer
290 views
Where to put the \label on a figure environment? [duplicate]
Possible Duplicate:
Why does an environment’s label have to appear after the caption?
I noticed that when I put the \label command before the \caption command in a figure environment, I get ...
49
votes
3answers
2k views
Cross-reference packages: which to use, which conflict?
Inspired by my earlier question Theorem packages: which to use, which conflict?, here is another similar question.
There are many different packages for making cross references. Among them hyperref, ...
38
votes
2answers
2k views
How do I number equations only if they are referred to in the text?
I have a paper where all equations are numbered, but I want to number equations only if they are actually referred to in the .tex file using \ref{}. How can I make that happen? Alternatively, how can ...
17
votes
5answers
7k views
Reference different places to the same footnote
For example, I want to make footnotes both at Sentence 1 and Sentence 2 (which are on the same page) to the same footnote. Wikipedia's "References" have this effect.
22
votes
5answers
1k views
Does hyperref work between two files?
Can I create a link from one file into another one. So that when the resulting pdf files are in the same directory the link takes me from one to the other? Does another package do that?
Added on ...
25
votes
3answers
520 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 ...
33
votes
6answers
5k 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, ...
15
votes
3answers
540 views
How to get more complete references
Sometimes when I work I write something like
\begin{proposition} \label{my new result}
...
\end{proposition}
...
blah blah in Proposition \ref{my new result} blah...
but then I realize that the ...
21
votes
1answer
4k 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.
6
votes
1answer
494 views
Figure numbers using the section number
One of my sections seems to be using the section number rather than the appropriate figure number for \ref's that point to figures. (Theorems and the like work fine.) As far as I can tell, there's ...
10
votes
3answers
503 views
Extended draft mode which includes source information for manual print-out to source synchronisation
I'm looking for a kind of extended draft mode which places the source code position of paragraphs, sectioning commands and figures etc. as marginpars or similar in the PDF, so that they appear on a ...
14
votes
3answers
606 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} ...
22
votes
5answers
2k 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 ...
11
votes
3answers
848 views
Separate labels in cases
As much as I have tried, it doesn't seem possible to use separate labels when using a casesconstruction (from the amsmath package).
Ideally, I would like to be able to write something like
...
31
votes
1answer
594 views
Difference between ref, varioref and cleveref. Decision for a thesis
How can one make a quick decision what the best "ref" for a thesis in pdflatex with hyperref is?
After a few hours reading I do not know more than
ref is used by everyone who does not know about ...
12
votes
2answers
6k 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 ...
7
votes
3answers
3k views
Adding parentheses around subfig references
Say I have a figure with two subfloats inserted using the subfig package. When I reference them with \ref{myLabel} I get this
Figure 3.5a and 3.5b.
But what I want is this:
Figure 3.5(a) ...
8
votes
1answer
855 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. ...
6
votes
2answers
888 views
referencing labels from other files
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 ...
10
votes
1answer
312 views
showonlyrefs and cleveref
This question led to a new package:
autonum
I know that cleveref is not compatible with showonlyrefs as it says in the cleveref manual. But I have a book-length document that depends on ...
18
votes
3answers
10k views
Label equation with a symbol
I would like to label an equation with an arbitrary symbol, rather than a number, or letter. Is this possible?
8
votes
1answer
271 views
Get label target type
I'm looking for a solution to my previous question "Relative chapter references", and find myself struggling with trying to get the target "type" of a label from the label itself.
Allow me to ...
6
votes
2answers
133 views
Hyperref within hyperref
I'm using the hyperref package in LaTeX. In the compiled PDF, in the table of contents (TOC), I correctly get all the links to the corresponding chapters and sections.
There is only one chapter which ...
3
votes
1answer
644 views
pgfplots, custom legend and tikz library external
I try to create Tikz figure with several pgfplots subplots. I want to have one legend for them since they all have the same curves. I found out from this question that i can label and than reference ...
18
votes
2answers
2k views
Why should I put a ~ before \ref or \cite?
My question is in the title of this post, but extends to other referencing commands like \eqref, \citep, \citet (and the like) as well.
6
votes
1answer
637 views
Incorrect target of \label link produced by hyperref
In the following code, the command \label{my} appears on page 4, as well \pageref{my} says "4", but the hyperlink points to the page one. Why is that?
\documentclass{book}
\usepackage{hyperref}
...
77
votes
9answers
4k views
Starting a PhD; Any guides to setting up a 'system'?
I'm starting a PhD and am being overwhelmed with the different possible ways people do things, and how they very rarely mix.
I'm (obviously) sold on TeXing it, and have a ViM background I intend on ...
32
votes
1answer
1k views
How can I get LaTeX to warn about unreferenced figures?
When writing documents, I consider it to be necessary that all figures and tables are referenced (\ref) in the text, whether or not I've remembered to \label them. LaTeX does not currently warn if a ...
19
votes
2answers
757 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 to far and should I just type the word?
I've read ...
8
votes
1answer
2k 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 ...
25
votes
1answer
619 views
Get the title instead of the number of a referenced chapter/section?
In my document I am referencing a section, e.g.
\section{My Section}\label{test}
Also see section\ref{test}
This gives me, e.g.
Also see section 1
but what I want is:
Also see section My ...
12
votes
2answers
757 views
Automatically inserting “Section, Subsection, etc”
Is there a package that automatically inserts the TOC level of the reference I inserted?
Section 1.1
\label{a}
Subsection 1.1.1
\label{b}
Subsection 1.1.2
\label{c}
So that the text:
Blah ...
13
votes
1answer
625 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?
11
votes
1answer
453 views
How to cross-reference theorems with “Theorem”?
I use
\begin{lemma} \label{aaa} ... \end{lemma}
\begin{theorem} \label{bbb} ... \end{theorem}
and many other similar kinds in the same document.
When I cross-reference those lemmas and theorems ...
7
votes
2answers
4k views
How to link an equation in LaTeX
I am wondering how I can link an equation in LaTeX, I mean when I click on the link then I'll be directed to that specific equation.
21
votes
1answer
546 views
Impact of hyperref, when varioref and cleveref are used
I think I may have found a bug in either hyperref, cleverefoder varioref but can't determine the details any further. If do not load hyperref in the following example, the result is fine.
...
3
votes
1answer
580 views
Easy-to-use reference-able environment for restating theorem-like environments?
This question is a development of the same issue as this one; following my own answer and later comment there, I decided it deserves a spin-off.
I would like to define an environment for restating ...
2
votes
2answers
577 views
How can I reference a table/figure/section in another document?
I am writing documentation that includes three documents for different audiences:
Public
Staff
Developers
In the Developers document, I would like to reference a table or section in the Staff ...
16
votes
2answers
459 views
Suppress equation number when not refered to
Is is possible to use only equation or align environments without the * and then automatically suppress the equation number if there is nothing refering to that equation? It would make the LaTeX-life ...
16
votes
4answers
5k 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 ...
18
votes
2answers
252 views
Replace unknown reference (?) with the tag from \ref or \cite
While working on a document, it would be helpful if instead of a ? for unresolved references or citations the tag used in the \ref{thisthings} or \cite{Bloke1978} could appear instead.
Is there a ...
15
votes
3answers
6k views
Warning: There were multiply-defined labels
I got a "LaTeX Warning: There were multiply-defined labels", and I know what it means but my document is pretty big and it has various files. So, how can I find the multiply-defined label?
I am ...
9
votes
1answer
536 views
Reference plain text
Is there a way to reference just plain text with the \ref{} tag?
I have a table with two columns. Each column has content which links to a different part below.
The reference in the first column is ...
19
votes
2answers
298 views
Understanding how references and labels work
I'm trying to understand why I cannot effectively reference figures or equations that I have defined with labels.
For example:
\begin{figure}
\label{fig:area_Treasuries}
...
18
votes
4answers
547 views
Inserting/Numbering/Labelling/Referencing several times the same equation written in various form
I'm looking for an automatic way in LaTeX to number a same equation that would be inserted several times (under different forms for instance). The output would look something like:
some text
x-y=0 ...
16
votes
3answers
970 views
What is the difference in citing/referencing with or without tilde?
I've seen examples referencing a table as follows:
Table~\ref{table:overview} shows an overview of all the elements.
What is the use of the tilde in front of \ref or \cite and when do you have to ...