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

4
votes
2answers
248 views

How to use Nameref with Algorithm2e

As the title suggests, I'm trying to reference to an algorithm created by algorithm2e package. Here is a MWE: \documentclass[12pt,a4paper]{report} \usepackage[linesnumbered]{algorithm2e} ...
4
votes
2answers
2k views

How to get autoref working with different counters for different listing environments?

In my document I want several different custom listing environments. The solution from fraktalek works like a charm, except for one thing: \autoref doesn't work for me. I have tried the following: ...
4
votes
1answer
108 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 ...
3
votes
1answer
120 views

Customizing Equation-Numbering / Labeling in IEEEeqnarray

I'm trying to label a set of functions as a specific number (9.125), like how equations are usually labeled with \begin{equation} or \begin{IEEEeqnarray}. I have been using \tag{} (with a customized ...
3
votes
2answers
162 views

Number equations within array

I want to number sub-items of an array I have in order to refer to the right equation and not to the set of equations (SEE the pictures attached): Figure that should call 1.35a, 1.35b, 135.c, 1.36a, ...
3
votes
1answer
615 views

Problem with algorithm(ic) and hyperref

The following code works ... fine! \documentclass{book} % \usepackage{subfig} % \usepackage{subcaption} \usepackage[colorlinks]{hyperref} \usepackage{algorithm} \usepackage[noend]{algorithmic} ...
3
votes
1answer
245 views

convert outcome of reference to regular number

Is it possible to transform the outcome of a reference (e.g., a line number) to a regular number that I can use in a calculation? I have this (and works fine): \FPeval{\result}{clip(5+6)} $\result$ ...
3
votes
1answer
4k 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 ...
3
votes
1answer
550 views

Two table counters and hyperref links

I have a document with two sets of tables. The first set, numbered 1 to 5, are in the main body of the text. The second, numbered 1 to 3, are in an appendix. When I use \ref to link to one of the ...
2
votes
1answer
4k views

Reference to a manually numbered equation

I want my equation's number to be "1'". I have done so through \tag{1'}. But now I don't know how to refer it in my document. Is there a method to call it or numbering equations like 1, 1', 1''?
2
votes
2answers
1k views

How can I use \footnotemark with a \ref argument?

I want to refer to an existing footnote and I'm not happy with the workaround given here: http://anthony.liekens.net/index.php/LaTeX/MultipleFootnoteReferences I found that I can put a \label inside ...
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 ...
0
votes
2answers
565 views

Cross-referencing an equation

So far I've always used non-labeled alignments with align*, but I think it's time for a small change. How do I refer to an alignment after creating it? I tried searching similar topics but I didn't ...
12
votes
2answers
154 views

Input manually a number into \eqref

Often while writing papers I find the need to cite particular equations from other papers. For example, the landmark paper by Einstein, Newton, and White (2015) lays out the theory of everything in ...
12
votes
2answers
2k 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 ...
11
votes
4answers
557 views

Reference undefined in \section with amsbook

I have a section that is devoted to the proof of a theorem, and hence I used \section{Proof of Theorem~\ref{thm}} Of course, because of the headers that are capitalized, it asks for \ref{THM} when ...
11
votes
3answers
595 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?
10
votes
2answers
917 views

Redefining enumerate counters in beamer

I'd like to do two things with the enumerate environment in beamer. I'd like to reformat it so that it shows up as (1) An item a. A subitem b. Another subitem I'd like to be able to refer to ...
9
votes
2answers
671 views

Non-English identifiers in \label / \ref (“Missing \endcsname inserted”)

I found that LaTeX chokes on certain non-ASCII identifiers in \ref. This works fine: \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
9
votes
1answer
425 views

Reference Code snippet in latex using minted

I'm not really sure how to reference a code snippet in my text. I need also a caption for the code. The only working way I found is wrapping the minted in a figure. The problem is that I want to ...
9
votes
1answer
360 views

Reference to page-range: can LaTeX convert “3-4” to p. 4f or “3-5” to p. 3ff ?

The varioref package can also cite page ranges by defining a reference to 2 different labels with \vpagerefrange. I did not find information about an option which allows to typeset "5-6" as "5f" ...
8
votes
1answer
74 views

An equation of text on multiple lines

I am trying to do something like the following: Does anyone have an example of a technique on how to do this? It needs to be centered in the middle of the paper like the $$ $$ environment and it ...
8
votes
2answers
1k views

Label one line in a begin align*

I have the following block of TeX: \begin{align*} m_n^+ = \dfrac{1}{n}\sum\limits_{k=N+1}^{n} =& \dfrac{1}{n}\sum\limits_{k=N+1}^{n}\left(a_k-L+L\right) \\ ...
8
votes
1answer
308 views

Label inside a code listing

Does anybody know how to use labels inside a code listing that it looks something similarly like this: I know that it's easier to use the line number but I prefer using some labels.
8
votes
1answer
840 views

eqref in captions with mathtools

I've now tried mathtools for the first time, for the sake of showonlyrefs. It works fine, except if I put an \eqref command into a figure caption, in which case I get: ! Argument of \@caption has an ...
8
votes
1answer
204 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 ...
8
votes
1answer
276 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 ...
8
votes
1answer
408 views

Sectioning command that automatically creates label

I'm trying to define a custom section command that will also define a corresponding label after a bit of preparsing. Specifically, I want the command to define a section with the given name, and then ...
8
votes
3answers
801 views

How to use the content of \title{} as a reference?

I want to be able to reference to my document title by name. How can I achieve that? \documentclass{scrartcl} \usepackage{hyperref} \begin{document} \title{Example}\label{title} \author{me} ...
7
votes
1answer
64 views

How to use \ref command in the test block of \ifnum?

Is there a way to use \ref{} inside the test part of \ifnum. The following example runs into an error. \documentclass{article} \begin{document} \begin{table} \caption{ex} \label{tab:ex} ...
7
votes
1answer
276 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
179 views

How do I get a chapter \ref in counting numbers when the ToC uses Roman numerals?

My university's formatting requirements for theses require Roman numerals for chapters in the table of contents (e.g. "Chapter II ..... Lions"), but for references to chapters within the text, ...
7
votes
2answers
368 views

How to use \csname … \endcsname with \ref?

I have to get value of a dynamical macro where the index is given by \ref{mymarker}. Is it possible to do? I define a set of macros with a predefined counter 'mycounter' as ...
7
votes
1answer
437 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 ...
7
votes
1answer
255 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
355 views

How do I keep cross-references across several documents accurate?

This is a follow-up to my question about quality system documentation management. That question evolved to a different question and Charles suggested to ask a new one, so I'll just quote it here. ...
6
votes
1answer
68 views

caption+autonum+{a certain structure}=freeze

PDFLaTeX'ing this results in a freeze: \documentclass[12pt]{book} \usepackage{caption} \usepackage{autonum} \begin{document} \begin{figure}[ht] \begin{align} x=y \end{align} \caption{Caption} ...
6
votes
1answer
92 views

\eqref inside \section

Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{hyperref} \begin{document} \begin{align} \label{func1a} U(X,Y) &= 2X + 5Y,\\ \label{func1b} ...
6
votes
2answers
131 views

Putting labels inside section headings

I usually work with LyX, and when I want to label a section (in order to reference it later), I put the label inside the section heading. This usually works, but recently I tried to create an article ...
6
votes
1answer
142 views

Referencing enumeration items by number and name

I'm currently using enumitem for automatically numbering several requirements in my thesis. However, as each requirement has not only a number but also a short title, when referencing to it using \ref ...
6
votes
1answer
319 views

Bibliography and Index \label for cross-reference

I have each chapter of my book class in a different file all linked up in a master file. I also have bibliography in refs.bib file and also have an index. I'm trying to create a cross-reference to the ...
6
votes
5answers
2k 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} ...
6
votes
1answer
462 views

\nameref only shows reference as a red rectangle, no name in it

I'm trying to use \usepackage{hyperref} to reference in the text a section by name. The section to be referenced is \section{whatever}\label{sec:marker} However, when I place in the text ...
6
votes
2answers
716 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) ...
6
votes
1answer
209 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 ...
6
votes
1answer
310 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 ...
6
votes
1answer
481 views

Selected references without hyperlink

When using the hyperref package, is it possible to tell LaTeX not to create a link for some references? In my case the page number is displayed in the footer in \fancyhf[FC]{\thepage\ of ...
6
votes
1answer
689 views

Cleveref with counters with same name

I am trying to use the cleveref package. I have the following counters defined (hopefully this is the right way to do it!) \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} ...
6
votes
1answer
1k views

Can I change \ref's output?

When I use \ref to cross reference a \subsubsection, I get the output IV-B4 (at least using the IEEEtran document class). Can I change the output to something like IV-B.4)?
5
votes
2answers
51 views

hyperref and xr-hyper break memoir's \titleref

I have one document that has hyperref loaded, and works fine. I have a second document that I am using xr-hyper to reference the first. If I remove hyperref from the first document, the \titleref{} ...