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

10
votes
1answer
3k views

\nameref — How to display section name AND its number

Is it possible to make \nameref display not only the title of the section but also its number? \section{First Section} \label{sec:some_sec} \subsection*{Unnumbered subsection} \label{sec:subsec} ...
9
votes
1answer
86 views

How do I make an exact copy of a table, but keep its number for referencing?

I have a table, and I want to print it twice in my document. I want them to have the same label, caption and number, so that in the caption when it says "Table 1: foo" the same number shows up, and so ...
8
votes
1answer
375 views

Making refcheck work with cleveref

It seems that refcheck does not recognize references made by cleveref: \documentclass{article} \usepackage{amsmath} \usepackage{cleveref} \usepackage{refcheck} \begin{document} \begin{align} a ...
8
votes
2answers
1k views

How to reference a paragraph with § symbol and without a dot?

I'd like to add a clickable reference to \paragraph, but instead of having just a clickable number with a dot after it, I'd like to add a \S sign to the link too (NOT the name of the paragraph!) and ...
8
votes
3answers
5k views

Modify \eqref command

I want to edit the \eqref command so that \eqref will produce Eq. (1), for example, instead of (1). Of course, I could define \newcommand{\reff}{Eq.~\eqref} but then I lose my editor's ability to ...
6
votes
1answer
7k 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} & ...
5
votes
1answer
2k views

Custom enumeration for axioms or hypothesis

This is a follow-up from : Custom Enumeration I'd want to obtain something like : Axioms list : A1. First axiom A2. Second axiom A2'. Equivalent version of the second axiom with cross-reference, ...
5
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 ...
4
votes
1answer
549 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 ...
3
votes
1answer
133 views

Printing selected chapters without affecting cross-referencing

I am writing my thesis in Lyx and for some reason, probably due to the style sheet, I am unable to print the complete thesis. It gives weird errors. However, individually all chapters are easily ...
22
votes
2answers
10k 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} ...
18
votes
4answers
658 views

How exactly does \def\p@figure{Figure~} work?

I took this line from my thesis style and added it into my document (preceded by \makeatletter) and what it does that whenever I used \ref{figureid} instead of putting just the figure number, it puts ...
13
votes
3answers
90 views

What to consider when naming labels to prevent errors?

This question is inspired by Umlauts in label and a quote from an answer to How to automatically add \! in subscripts? However the best is to avoid _ in labels. I already name all my labels with ...
9
votes
1answer
145 views

\ref with tight box surrounding the reference

How can I make the colored box around a reference appear completely tight? MWE: \documentclass[a4paper,twoside,openright,final,12pt]{book} \usepackage{etex} \usepackage[english]{babel} ...
8
votes
2answers
288 views

How can one refer to a part of an equation?

When having multiple equations inside one displaymath environment, it is sometimes desirable to refer to just one of them without having to break the environment up into smaller pieces. Take for ...
8
votes
2answers
146 views

Customise counters, cross references to environments

I would like to make cross references to own defined counter on environments. So far I have tried the following, \documentclass{book} \newcounter{entryc}[subsection] ...
8
votes
2answers
280 views

How to refer back to a point in the document with custom counters?

The easiest way to explain what I would like to have is to show the desired output and I would like to get this by writing something like: \begin{document} Draw point B \STEP{drawb}. Connect A and ...
8
votes
1answer
482 views

\eqref to give reference to a sequence of subequations

Suppose I have the following code \begin{subequations} \begin{align} a+b = c \label{eq.1}\\ d+e = f \label{eq.2} \end{align} \end{subequations} I want now that upon giving the reference, it ...
7
votes
1answer
141 views

Modified \overline over first character of complex argument

I've been using zref to handle my references. It has allowed me to customize a reference the way I want through its property lists. In particular, I reference a variety of structures in my document ...
7
votes
3answers
3k views

How to use the command \autoref to implement the same effect when use the command \eqref?

For example, the first equation of Section 1 in a tex file is numbered in the form (1.1), When we use the commands \autoref and \eqref for referring it, the compiled pdf file will show Equation 1.1 ...
6
votes
3answers
272 views

list of occurences of references

I need a list like the list of figures for \ref entries in the text to instances of a custom Theorem environment. Here's a MWE with a handbuilt example. The solution should add features to this code I ...
6
votes
2answers
577 views

How to create a custom list and \item element?

I would like to create my own list environment with custom \item element, with a custom tag myitem, that takes an optional parameter (the 2,7,6 in my example). It should be a numbered list. I should ...
5
votes
1answer
104 views

Labeling Multiple Equations Per Row of a Table

I am trying to create a table with two columns of independently labelled equations (1-6). Unfortunately, everything I have found so far either has not worked or would number them as sub-equations (1a, ...
5
votes
3answers
19k views

How to understand the LaTeX warning “there were undefined references”?

I am running this LaTeX file through pdflatex and getting these warnings: latex warning: there were undefined references. latex warning: label(s) may have changed. Rerun to get cross-reference ...
5
votes
1answer
433 views

subcaption: how to redefine default separator between figure and subfigure number in \ref's?

I am migrating from subfig to subcaption package and wondering how to make the following thing. The subcaption labels in floats should look like a single italic letter in brackets (a), and ...
5
votes
1answer
535 views

Multiply defined label warnings when using Subcaption in a Tikz picture

In an earlier question, I asked how to create zoomed highlights of a larger image automatically. User Jake provided an excellent solution using TikZ. However, when subcaptions and hyperref are added ...
4
votes
1answer
227 views

How to imitate great looking Motion Mountain ToC, including hyperlinks?

I wanted to customize my ToC to look more or less like the one in Motion Mountain physics textbook, including clickable page numbers. My decision was to use hyperref and titletocpackages. Now it seems ...
4
votes
1answer
346 views

Remove blank page between Acknowledgements and Table of Contents?

I get a blank page between “Acknowledgement” and “Table of contents”. How can I remove it? I used a template from somewhere. The preamble is as follows: \documentclass[openany,12pt]{ubthesis} ...
4
votes
2answers
4k views

Sub-numbering equations within array

I'm using the array environment to give multiple definitions of some value, let's call it x. I can easily get a reference to all 3 definitions together, but I want each one to have its own reference. ...
4
votes
1answer
1k views

How to get rid of \ref's parentheses (e.g., for subfigure)

I use \ref to refer to a subfigure and it shows like this in my text: This thing (Figure 5(b)) Double parentheses appear! I want this style: This thing (Figure 5b) How to make it happen?
4
votes
1answer
2k views

Numbers of figure references

I use enumerating of figures within the section \renewcommand{\thefigure}{\arabic{section}.\arabic{figure}} however, when I use a reference to subfigure, instead of 1.1 (a) I get 1(a). How should I ...
4
votes
1answer
377 views

How to repeat the content of a quote (e.g. introduction+conclusion) without violating DRY

I'm writing the conclusion to a thesis and would like to repeat some the research questions I have formulated in the introduction. I wrapped each of the questions in a quote environment. My question ...
4
votes
1answer
724 views

Referencing a figure, table or citation

I want to refer to any figure, table or citations in my text so that if I click on the reference (or link) it will take me to the actual figure, table or citation. Currently, it is not happening for ...
3
votes
1answer
366 views

State where within the book a reference was cited

I am using a plain sort in my thesis. However, ordering the authors by last name does not help the reader find where the author/reference was cited within the book. Using the unsrt option would not ...
2
votes
1answer
62 views

tocloft cross-references a section as a subsection

I have document which creates a new list of examples. The list has a label \label{sec:examples} which labels the title of the list, which is rendered as a section. However, cross referencing ...
16
votes
3answers
282 views

Changing the suffix according to the figure number

In Turkish (and possibly in other similar languages), there are suffixes that change corresponding to the word they are applied. This also holds for the numbers. For example, in Figure \ref{fig1} ...
13
votes
2answers
9k 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 + ...
12
votes
1answer
531 views

Lost labels using intertext with varioref and hyperref

I have a problem using \intertext together with \vref when hyperref is also used. Consider the following minimal example: \documentclass{article} \usepackage{amsmath, varioref} ...
12
votes
1answer
424 views

\ref, make figure/table reference automatically toggle between “above” or “below”

Is it possible to automatically include a reference to the position of a labeled object (Table, Figure) in text? By this I mean the following: Say I have labeled a figure in chapter 1: ...
10
votes
1answer
344 views

Conflict between amsmath and pdfcomment

I use both amsmath and pdfcomment in one document. This leads to the references produced by (\ref{}) to appear like (zref@1) instead of numbers like (1). Without amsmath or pdfcomment this problem ...
9
votes
3answers
416 views

Extended reference for enumerate item using parent environment

I want to reference an item of an enumerate list by it's normal label, if we are still in that same enumeration and by an parent.item syntax if we are somewhere else in the document. For example: ...
8
votes
2answers
87 views

Can I include the last index inside the label of an enumeration?

Can I achieve something like this with automatic numbering? Examples: 1 of 93: Example one 2 of 93: Example two ... 92 of 93: Example ninety-two 93 of 93: Example ninety-three I can ...
8
votes
1answer
1k views

How to make \hl (highlighting) to automatically place incompatible commands in \mbox?

The soul package provides a useful command \hl for highlighting text. However, \cite, \ref, and some other commands (maybe equations too) must be placed within an \mbox in order for \hl to work ...
8
votes
2answers
457 views

Cross-referencing between files and equation counters

I am using package xr to cross reference between two files. Is there a way to make the equation numbers in one of the files follow the ones in the other? What I mean is, if the last equation in file ...
8
votes
2answers
673 views

Smartly omit chapter number in equation numbering

In my thesis I use chapters, sections and subsection. I like to have my equations numbered with respect to section, but I want the displayed equations numbers not to include the chapter number. ...
8
votes
1answer
106 views

How to avoid the hyperlink on a particular \ref

I use hyperref and I produce the pdf via pdflatex. Everytime I use \ref I get in the pdf a clickable link and I am happy with it... but I would like to disable the hyperlink in the pdf for one ...
8
votes
3answers
258 views

Changing the number of figure or equation automatically in text by changing the places of figures and equations

Is it possible to automatically reference a figure and equations in text? I meant sth like bibliography references. Moreover, by changing the place of the figures or equations relevant figure or ...
8
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} ...
7
votes
1answer
723 views

Change caption of figure for references

I changed the caption of my figures running the following command (I'm using the babel package): \addto\captionsngerman{\renewcommand{\figurename}{Abb.}} If I use \autoref{$LABEL} to reference to ...
7
votes
1answer
255 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 ...