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

8
votes
1answer
712 views

Page number of glossary

I want to reference the glossary from within the text (I'm using the glossaries package). However, since the glossaries are produced using \printglossaries, I can't just put a \label command where it ...
8
votes
1answer
258 views

Managing References Among Multiple Projects

I'm not sure it matters for this question but, in any event, I'm using TeXlipse as my latex editor and project management tool. Now, suppose one has two projects A and B that are built with separate ...
4
votes
1answer
456 views

\autoref from hyperref with tex4ht

The following document when compiled with htlatex test-nameref.tex "html,4" generates wrong targets (but correct displayed text) for the subsection and subsubsection references with the updated ...
5
votes
3answers
506 views

Table of subfloats

I'm trying to sort figures (using subfloat) in a table, with labels for each subfigure. My point is, using only subfloat, that the subfigures are referred in the text as figure a, b, ... and so on. ...
8
votes
2answers
2k views

Using the xr package in LyX (for cross-referencing an external LyX document)

Question: What steps are required to use the xr package in LyX in order to reference items in other, independent LyX documents? Steps already taken: The tools package (that contains the xr package) ...
2
votes
1answer
320 views

How to reference list items in another TeX document?

Problem in a nutshell: I would like to reference items in an external LyX document (containing a list of definitions and theorems). Problem in detail: I am a Math student. I maintain a LyX document ...
9
votes
1answer
1k views

Identifying the section an equation is in

Suppose in my document in section 1 I have a labeled equation, say \label{eq1}. Then much later, say in section 8, I want to reference this equation and the section it is in. I know \ref{eq1} will ...
2
votes
1answer
939 views

Referencing externalized pgfplots with subfig and cleverref

I use pgfplots to produce a vast amount of images in my document. Due to limited LaTeX memory, I am forced to use \tikzexternalize. Moreover, I also use the subfig package to group several pictures ...
1
vote
2answers
2k views

Chapter reference not displaying

I am involved in a writing a large document with a co-author who set up the LaTex files that we're using (i.e., I don't have complete autonomy in what I change). We have a root file which does two ...
6
votes
1answer
290 views

What needs to be done to update lablst.sty?

This question is related to the question How to get a list of all the labels in a LaTeX document. According to the author of lablst.sty, you can use lablst as a global option to documentstyle as ...
20
votes
2answers
3k 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 ...
4
votes
1answer
166 views

How do I determine the name of the counter associated with a theorem-like environment

(A question related to this one and leading up to this one.) Suppose I'm using ntheorem. I would like to have a command which determines the name (not the value) of the counter associated with a ...
3
votes
2answers
283 views

How to use an environment whose name comes from a reference?

Suppose somewhere in my long Ph.D. thesis I use a theorem-like environment (maybe it's a theorem, maybe it's a lemma, etc.), and label it. At another place I want to have an environment which is the ...
2
votes
1answer
485 views

how to change font and font size when using \ref

In this topic list the cases in text, I got a way to list cases by using \begin{enumerate} [label=\textbf{Case~\arabic*.}, ...
3
votes
0answers
583 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} ...
8
votes
1answer
2k views

Web links in the bibliographical labels

The class for the AIMS journals has one nice feature: In the bibliography, one can click over the label of a bib reference and the AMS' MathReview pops out in the browser. See an example. I used to ...
5
votes
1answer
1k 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 ...
4
votes
2answers
2k 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 ...
14
votes
1answer
9k 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 ...
8
votes
2answers
644 views

cleveref gets names wrong when using the SIAM document class

When I try to use cleveref in conjunction with the SIAM style files, references to theorems, sections, figures and tables are accurate, but all other references' names (corollaries, definitions, ...
5
votes
1answer
1k views

How to redefine \label command in align environment

I have a problem with the redefinition of \label inside of the align environment. The goal is to allow a different behavior of the label command inside of the align environment than outside of it ...
9
votes
2answers
667 views

problem with chemical structure numbering

I would like to have a numbering of chemistry related structures to appear like this. Compound 1a and 1b are useful, whereas compound 1c and 2a are harmful. I would not like to generate the ...
13
votes
2answers
287 views

How to refer to a chapter with a word

I would like to refer to my chapters with the notation "First Chapter", "Second Chapter" etc, rather than "Chapter 1", "Chapter 2", etc. How can I do this? \documentclass{scrreprt} ...
9
votes
1answer
2k views

Back-referencing in LaTeX [duplicate]

Possible Duplicate: Usage of table/figures shown in caption Is there any way to make back-references, outside bibtex, so that by using something like \backref LaTeX would show where there ...
3
votes
1answer
784 views

Changing subfig \subfref format

I'd like to know how to hack subfig in order to change the format of \subref. The current format, when subfig is initialized with listofformat=parens yields output like 4.5(b) . I'd like to add a ...
5
votes
1answer
4k views

Reference part of a figure (with or without cleveref)

I have a figure with multiple parts (a, b, c, etc.) and in the text I would like to have a reference to the figure with the letter of the part (i.e. fig 1(b) ). Is there a way to pass this to \cref{} ...
12
votes
1answer
21k 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
874 views

pgfplots hand-made legend (\label + \ref) fails with custom styles

In pgfplots, when I use a custom style to plot a line, \label the line and then \ref to this plot, I am unable to get the desired result. The desired result would be to get a little line where I am ...
1
vote
2answers
206 views

hyperref using ref: How can I avoid the section number

perf~\ref{soft_reset_perf} \phantomsection \item[perf]:~\label{soft_reset_perf} Indicates that a soft reset has been performed. It shows next to 'perf' the section number. How can I just get a link ...
4
votes
1answer
305 views

Subsections for theorems

\documentclass[14pt]{article} \usepackage{amsmath,amsfonts,amssymb,amsthm} \newtheorem{thm}{Theorem}[section] \newtheorem{defn}[thm]{Definition} \newtheorem{cor}[thm]{Corollary} ...
7
votes
2answers
286 views

How can I determine what a label is labeling (a-la \autoref)?

I want to have a command which gets a label and returns the environment (or the last sectionining command etc.) after which I had the \label. I mean, like \autoref, but no need to convert from the TeX ...
6
votes
1answer
160 views

Customizing relative page references

How can I obtain detailed information about the location of a label relative to other text and display a custom text based on this information? If the label comes on the immediate previous page (and ...
2
votes
1answer
707 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 ...
16
votes
2answers
465 views

Is there a way to force LaTeX to issue a warning if a figure is never referenced? [duplicate]

Possible Duplicate: How can I get LaTeX to warn about unreferenced figures? In my document I have several figures, most of which I created references for (using \ref{}) immediately after I ...
7
votes
1answer
410 views

Using \ref in a ylabel of a pgfplot

When I use \label and \ref to distinguish two y axes the marks drawn by \ref are no longer on the lines after rotating it together with the rest of the label (see example below). Any ideas? ...
7
votes
1answer
165 views

How can I conditionally include the page number in a cross-reference (when the object referenced is on a different page)?

When a cross-reference to a figure is not on the same page as the figure, I would like to include the page number in the figure. But when they are on the same page, this is redundant--and I want to ...
3
votes
1answer
1k views

cleveref, hyperref and algorithm2e package produce wrong hyperlink (though correct page reference)

I'm using the packages as stated above in their latest version (also oberdiek-package is up-to-date). The following code produces the wrong pdf-link to a float environment (refers to the same page as ...
4
votes
1answer
2k 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 ...
3
votes
1answer
705 views

How to refer to labels in math mode from math mode

If you refer to item labels that are written in math mode from some other math mode occurrence, then you get errors. I guess it's because it leads to nested math modes. Is there any way to avoid these ...
2
votes
1answer
919 views

Auto recognize reference types [duplicate]

Possible Duplicate: How to get more complete references Is there a way to recognize cross-reference types automatically in LaTeX? For example, see the code below ...
20
votes
2answers
9k 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 ...
7
votes
1answer
828 views

How to change \ref output?

I am writing my Greek PhD thesis in latex (using babel). FYI, by default Τable in Greece is called: Πίνακας. So, for example, when I make a table using the table environment, babel automatically ...
88
votes
3answers
10k 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, ...
8
votes
1answer
304 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 ...
2
votes
1answer
332 views

cleveref and marginfigure in memoir

I'm running into a problem when using cleveref to refer to marginfigures in memoir. The following code illustrates the problem (apologies for the somewhat long preamble, but I need the space in the ...
3
votes
1answer
406 views

Naming enumerated lists referencing the names

Currently I have the following TeX \begin{enumerate} \item First idea \item \label{idea:s} Second idea \end{enumerate} \begin{enumerate} \item Point about \ref{idea:s} \end{enumerate} I would like ...
16
votes
2answers
17k 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 + ...
4
votes
1answer
2k views

Reference to an unnumbered section

I am writing a thesis with document class report and I am using hyperref. My structure is the following: \chapter{First chapter} \section{First section} \subsection{First sub section} ...
6
votes
1answer
449 views

How can I reset sectional counters in memoir class to avoid breaking ToC cross-referencing in a complex document?

I have already asked a similar question here: Incorrect ToC/Index cross-references when resetting memoir class counters and received a satisfactory answer. Now, I wish to apply the chapter counter ...
11
votes
1answer
2k views

Referencing subequations with cleveref

I try to refer to the parent number of subequations with \cref from the cleveref package. However, I would like to change the output "eq. (...)" into "eqs. (...)" when I refer to parent numbers ...