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

15
votes
3answers
853 views

Enumerate after \label

I have the following code: \usepackage{hyperref} \newtheorem{thm}{Theorem} \begin{thm} \label{mythm} \begin{enumerate} \item \end{enumerate} \end{thm} \ref{mythm} The ref prints the ...
6
votes
1answer
906 views

Define a custom command with name, label and linkable

I'd like to create a command with the following features: \newcommand{\mycom}[2]{...} \newcommand{\linktomycom}[1]{...} In the doc body: \mycom{firstitem}{This is the first item} and later: \...
11
votes
4answers
907 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 ...
4
votes
1answer
413 views

Define command so that \label works properly

I have something like this: \newcounter{Def} \newcommand{\printDef}{\thechapter.\thesection.\theDef} \newenvironment{Expl} {\small\narrower\medskip\stepcounter{Def}\noindent\ignorespaces \textsc{...
105
votes
3answers
38k 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
8answers
31k 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}..."
15
votes
2answers
360 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 ...
10
votes
3answers
2k views

How to reference part of a theorem?

I have a corollary with a number of parts whose parts need to be referenced individually later on, so something like: \begin{cor}\label{cor} \begin{enumerate} \item Part one \label{partone} ...
12
votes
1answer
490 views

How can I extract equations from one document for use in another?

I have a LaTeX document that includes many equations. I would like to create a separate "quick reference" sheet that includes many of these equations. Instead of copy-and-pasting the equations from ...
7
votes
1answer
780 views

How can I use cross-references and hyperlinks to parts of an align environment?

I'm writing an exercise book, and in some exercises I'll have several numbered equations in an align environment, e.g., (1) x^2+x+1=0, (2) ax^3+2x=0, (3) x^5=2i, (4) x^4=-i, (5) x-1/x=2, (6) cosh(...
6
votes
1answer
234 views

Asserting reference inequality

Is there a way for including assertions in a LaTeX document? I want to check that some condition is true, and only allow compilation of the document if it is (or at least complain otherwise). ...
5
votes
1answer
889 views

How to use \autoref to create a page link?

I am using the hyperref package and want to use the \autoref{} command to output the page of the referenced label (similar to \pageref{}). The label is not inside a figure, equation, etc., so by ...
8
votes
2answers
2k views

Using reference with externalized pgfplot figure

I am currently writing a document with a lot of plots. I draw them with pgfplots. which uses a lot of ressources. To manage that, I use the externalization feature of TikZ. In the file myarticle.tex, ...
5
votes
2answers
32k views

Reference to a table before it appears

I want to reference a table before it appears.The TeX code is pasted below \documentclass{article} \begin{document} The results given in Table~\ref{tab:a} show the performance of the class. \begin{...
4
votes
3answers
427 views

References to lists in theorem-like environments/writing # symbol to files

A little warning in advance: This will be quite lenghty. I spent quite some time over the last few days trying to solve the following problem: I'm typesetting mathematical lecture notes and have used ...
50
votes
3answers
63k 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?
15
votes
3answers
21k views

labels for itemize in proposition

I have a Proposition which consists of an itemize with three claims, i.e. \begin{prop} \begin{itemize} \item[(i)] ... \item[(ii)] ... \item[(iii)] ... \end{itemize} \end{prop} I wish to insert ...
4
votes
1answer
617 views

Dictionary with marginal references

I follow a mathematica course with a lot of definitions. I want to make a list of those definitions. However sometimes terms refer to each other. To make the list more usable to read it would be nice ...
18
votes
4answers
868 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 ...
3
votes
1answer
842 views

Automated partial TOC [duplicate]

Possible Duplicate: List sections of chapter at beginning of that chapter Hello, I need to make a small chapter TOC at each chapter. What I need is something like: Chapter 3 - Chapter 3 name ...
4
votes
2answers
7k views

Accessing section or subsection

To access a section (or subsection), should I always put a \label after that section or is there any way to access that specific section without using \ref in another place?
10
votes
1answer
817 views

Cross-referencing in multiple chapters

I have a document organized into several chapters. In each chapter, theorems are numbered by section (1.1, 1.2, ... even in chapter 5). I often would like to refer to theorems in different chapters. ...
11
votes
2answers
766 views

How can I achieve dictionary headers for two page spreads in LaTeX

I would like to produce a document where I can display the first and last items of each two page spread in the headers of both the left and right pages. I know I can use \markboth{}{} to collect the ...
8
votes
1answer
2k views

Multiply defined labels using hyperref

I'm using the stackrel command to indicate important steps in the transformation of formulas. E.g. I would write: A\stackrel{(!)}{=}B so that I can later explain in text why exactly A equals B. I've ...
13
votes
1answer
1k views

cleveref and algorithm2e

I'm currently working on a document where I was using algorithm+algorithmic along with cleveref. With this everything worked perfectly. Now I had to replace algorithm+algorithmic with algorithm2e. ...
4
votes
2answers
758 views

Split one label into many and append with a, b, c, etc

I am making one table into two (or more) and would like them to have the same label number for these two tables, but append them with an "a" or "b" to differentiate them. Also, I would like to be able ...
30
votes
2answers
9k 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.
8
votes
1answer
611 views

pagenote: Adding a cross-referencing mechanism

This question originates from a bug report at SourceForge.net: biblatex from April 2010. A user pointed out that a certain biblatex style (verbose-inote) produced wrong references when used together ...
1
vote
1answer
685 views

Unequivocally force first reference to same page as the referred item?

Background Writing a manual using LyX. All tables, figures, and source listings are always referenced in the paragraph (or enumerated step) that immediately precedes them. The preamble to the manual ...
1
vote
3answers
785 views

label and ref in xelatex

I cannot get \label{tname} \ref{tname} to generate any number. I am new to xetex - used latex some 15 yrs back while at school. Any pointers? My goal is to tag verse in \begin{verse} ... \end{verse}...
0
votes
1answer
345 views

Query on the \pageref command

I am trying to use the \pageref command and although it seems to work appropriately and finds the correct page number, for some reason (unknown to me..) it causes big spaces before and after the page ...
1
vote
1answer
537 views

Defining a custom cross referencing style

I want my cross reference links to look like: Chapter X: Chapter Title To achieve that I have created the following command: \newcommand{\fancyref}[1]{\autoref{#1}: \nameref{#1}} The problem is ...
14
votes
1answer
1k views

Referencing a nested list item by only its most immediate bullet

I'd like to be able to reference a nested enumerated list item only by its inner-most identifying character. \begin{enumerate}[(1)] \item \begin{enumerate}[(a)] \item \label{mylabel} Referenced ...
17
votes
2answers
861 views

How do I discard a portion of an equation number when cross-referencing?

I am writing a LaTeX document in which I number equations within sections. Thus, in my preamble I have \makeatletter \@addtoreset {equation}{section} \renewcommand{\theequation}{\thesection.\...
1
vote
2answers
5k views

Label referring problem

I'm new here and new user of LaTeX I'm trying to write my PhD, intermediate reports with it and I am facing some problems. I tried to look on the internet for 2 weeks, but found no answer to my ...
38
votes
3answers
24k 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 ...
5
votes
1answer
1k views

Include aux file in tex source?

I have a large book broken into several chapters, each of which reference each other heavily. I would like to be able to distribute individual chapters as self-contained .tex files. I can do this ...
27
votes
3answers
17k views

How to reference \paragraph?

It is well-known that \section environment may be assigned a label \label{refname} and then the refname may be used in order to reference this section: \section{My nice section} \label{sec:my-nice-...
19
votes
1answer
4k views

How to reference ranges rather than separate numbers?

I would like to do the following: Just type something like ... we describe this in sections \mycoolref{winter,spring,summer,fall} ... and it will be typeset as something like ... we describe ...
4
votes
1answer
633 views

Hyperref links linking to the wrong label.

I'm currently trying to write up some solutions to a set theory text, but some of my labels don't seem to be working correctly. I've uploaded it here, if it's perhaps helpful to look at. Anyway, I ...
30
votes
2answers
6k 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 ...
5
votes
2answers
788 views

Local and global cross-references

Sections are referenced in a lot of distinct places: In table of contents. Managed by \tableofcontents In minitocs. Managed by minitoc package In headers. Managed by fancyhdr package Like a leader ...
2
votes
1answer
224 views

Problems with theomac package to restate theorems

I have the following problems with the "theomac" package by Ulrich Diez (whom I don't know how to contact). This package is useful to restate theorems, and was mentioned e.g. here. Problems: Get ...
3
votes
1answer
860 views

Missing “Figure” title for captions of side-by-side graphics

Background Trying to reference the label of figures that are side-by-side. Problem Referencing figures by their label works, except when the figure is in a mini-page. That's when the word "Figure" ...
3
votes
1answer
542 views

Split Journal Paper into Multiple Parts [duplicate]

Possible Duplicate: How can I reference a table/figure/section in another document? I am writing a journal paper that has grown to 30 pages long, so I would like to split it into two 15 page ...
8
votes
1answer
3k views

Problems with part-labels using titlesec

I'm using titlesec to define the layout of my headings. It's working but I've run into a problem when I use the package to define the layout of \part's. When I try to reference to a \part, which is ...
10
votes
1answer
13k views

How to Label and Caption a Tikzpicture inside a tabular environment

What is the correct way to label and captionize a tkizpicture inside a tabular environment? (Since figures are not allowed inside a tabular) Excerpt from my .tex: \begin{tabular}{l r} & \...
17
votes
5answers
4k views

Not using abbreviations with cleveref

I’d like to use the cleveref package but I don’t like that it inserts most names as abbreviations; for instance, it will print “… fig. 2.1 …” instead of “… figure 2.1 …”. Is there a way of changing ...
8
votes
2answers
2k views

Building labels out of counters

There is a simple version to my question, and a complex version. First, the simple version: I want to generate label names by combining a constant string with a counter's value, something like what is ...
2
votes
2answers
1k 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 ...