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

7
votes
1answer
109 views

Is there any way to get references to automatically update between files on one computer

I suspect the title doesn't really do justice to my question, so let me try to explain a bit more carefully. I have a couple of situations now where I'm working simultaneously on closely linked ...
0
votes
0answers
261 views

Include image in a table [duplicate]

Duplicate of: How to Label and Caption a Tikzpicture inside a tabular environment I am trying to include an image inside a table cell. But I am declaring the image using the figure ...
9
votes
1answer
492 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
351 views

Reference to page-range -> can I avoid using 2 labels?

I'm quite often using references to corresponding sections or text blocks in my thesis. In consequence, I've already defined a lot of \label{} commands, which I tried to classify with a naming ...
16
votes
2answers
990 views

Suppress equation number when not refered to [duplicate]

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 ...
11
votes
3answers
2k 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} ...
26
votes
2answers
5k views

Multiple references with \autoref

I am currently using the \autoref command from the hyperref package to refer to my theorems etc. However, I want to be able to (easily) refer to two or more theorems/lemmas/..., e.g. by calling ...
4
votes
2answers
314 views

Expand within \label

Is there any way to use a macro within a \label tag? \edef\num{1} \label{test\num} \ref{test1}
1
vote
1answer
193 views

How can I change \ref s output from 5.1 to “some text”

I'm currently developing a doclet which translates javadoc to LaTeX. I'm compiling the LaTeX document using pdflatex with a sty file I have from my school it generates a PDF document with links (red ...
2
votes
1answer
1k views

\eqref in italic math environnment

When using the amsthm package with the \eqref command, things may not be correct. When the main font of a theorem is italic, the \eqref is non-italic while \ref is italic. Please, see the provided ...
7
votes
6answers
3k views

How to get a list of all the labels in a LaTeX document in WinEdt

I am writing a large document using LaTeX and WinEdt. I have labeled each chapter, section and so on. I would like to print out a list of just the labels (so that I don't duplicate one later on, and ...
22
votes
2answers
52k 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.
64
votes
3answers
35k 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 ...
6
votes
2answers
2k views

TikZ Document Navigation (\label and \ref commands)

I am currently a university student studying engineering. I have been a user of LaTeX for a few years now and cannot work out how to solve the following issue. In Australia, there are standards which ...
7
votes
1answer
4k views

How to cross-reference to sections in beamer

For my lecture slides in beamer I would like to establish a section-framenumber numbering scheme. For this purpose I reset frame counter in \AtBeginSection and redefine the \insertframenumber command ...
15
votes
3answers
843 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
898 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
897 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
412 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 ...
103
votes
3answers
37k 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 ...
14
votes
8answers
30k 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
356 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
485 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) ...
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
872 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, ...
4
votes
2answers
29k 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. ...
4
votes
3answers
424 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 ...
49
votes
3answers
61k 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
613 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
861 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
832 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 ...
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
807 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
760 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
753 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
610 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
681 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
779 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} ... ...
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
536 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
858 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} ...
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 ...