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

13
votes
1answer
127 views

The LaTeX runs (with varioref) never settle down to a stable final state

This is something which has happened for real in a document where I am using varioref. The LaTeX runs never end, a text chunk keeps on being moved back and forth accross a page break (naturally with ...
12
votes
2answers
6k 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 ...
12
votes
2answers
774 views

Can I re-use section labels across chapters?

I'm formatting a long document with many chapters. Most chapters contain some generic sections (e.g. "Introduction," "Results," ...) and most of them are already labeled accordingly (e.g. ...
12
votes
3answers
12k 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 ...
12
votes
2answers
155 views

Reference the bibliography as a whole

I am using biblatex for my bibliography, and it's working fine: \printbibliography[title={Sources}] Everything works as expected. What I'd like to do, though, is something like See sources on ...
12
votes
2answers
3k views

referencing labels from other files

Sometimes I want to refer (using \ref) a \label from some other tex file. What is the right way to do it? (It's, of course, possible to \include all files in one and then use \includeonly — but it ...
12
votes
2answers
436 views

How to create *local* labels/refs in LaTeX?

Concise question: Is there any way to limit the scope in which a \label is visible to a \ref? Motivation: My current goal is to create a rather large document, containing many exercises and their ...
12
votes
5answers
2k views

Wrong reference number for subfloat

I am trying to reference a subfigure in my text but it is numbered incorrectly. Here is a minimal working example: \documentclass{scrartcl} \usepackage[demo]{graphicx} \usepackage{subfig} ...
12
votes
2answers
208 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
186 views

Why does \label create an undesired white space after \phantomsubcaption?

Usually \label does not create any white spaces. However, It creates an white space when \label is used after \phantomsubcaption from subcaption package. Why? How can I get rid of this white space? ...
12
votes
1answer
437 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 ...
12
votes
2answers
1k views

varioref: \vref or \vpageref at page boundary (may loop)

Sometimes a have situations, where I'm not able to compile a document, because the varioref package result in a loop. Here is a MWE, which result not in an endless loop, but it demonstrate the issue ...
12
votes
1answer
364 views

beamer: \nameref calls the name of the section instead of the name of the theorem environment

In my LaTeX documents, I am playing with a lot of axioms which I write under a theorem environment, while using the following math packages: \usepackage{amsmath} \usepackage{amsfonts} ...
12
votes
2answers
190 views

Create a register of persons with references

To Create a register of persons with biblatex seems to be much more complicate then i expected. How can i create nice a register of persons semiautomatic with \ref? Lets assume i have 20 persons ...
12
votes
1answer
539 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
3answers
537 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 ...
12
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 ...
12
votes
1answer
843 views

Creating a new environment with referencing

I'm trying to create a referenceable "system" environment that basically displays an equation with a custom counter. Then I want to reference the environment with autoref, so as to have "System (S1)" ...
12
votes
1answer
431 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: ...
12
votes
1answer
736 views

Using cleveref with enumitem's newlists

I'm trying to typeset a proof of a theorem, and I'd like to produce the following output: Case 3: my text goes here and it can wrap to another line, wherein I have subcases: Case 3.a: ...
12
votes
4answers
19k views

How to reference subfigure in caption

I used to have code like this: \caption{In \subref{fig:foo:a} you can see...}. Now I switched to using memoirs subtop/subbottom command instead of \subfigure. How can I refer to that subfigure? As a ...
12
votes
2answers
341 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 ...
12
votes
1answer
164 views

First reference to equation underlined

In these days I'm writing at my Bachelor's Thesis and I've got a new problem. I have to underline the first reference to figures, tables and equations. By searching in the Internet I've already found ...
12
votes
1answer
6k views

Using LaTeX, how can I restate a theorem, with the same theorem number, later in a paper? [duplicate]

Possible Duplicate: How do I repeat a theorem number? I am writing a paper, and would like to state the main results in the Introduction. Then, when I come to prove the main results in ...
11
votes
4answers
761 views

Custom Enumeration

I have a problem with enumerating a list of axioms in a custom style. For instance, if I wanted to write down the axioms that a function will have to satisfy for it to be a homomorphism of rings, ...
11
votes
3answers
661 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?
11
votes
2answers
368 views

Customizing varioref to only add “… on page XX”, and only when there is more than one page in between reference and figure

varioref is a nice package as it will, when referencing, add "... on the [facing/next/preceding/following] page" if the reference and figure (or whatever object is being reference) are located on ...
11
votes
3answers
3k views

Get reference to “current” section

I'd like to write a command to get a reference to the "current" section provided (the term is all wrong, but the example will clarify). The idea is something along the lines of: ...
11
votes
1answer
756 views

Where to put the \label on a figure environment? [duplicate]

Possible Duplicate: Why does an environment’s label have to appear after the caption? I noticed that when I put the \label command before the \caption command in a figure environment, I get ...
11
votes
2answers
149 views

Need to use \pageref to a page that has *-equations

I am sure that this has been asked before, but I don't seem to be able to find the answer. I need to make a reference to a page. That is, I would like to use \pageref{}. I specifically need to make a ...
11
votes
2answers
441 views

using \nameref only if there is a name

I am referencing some sections (actually those will be custom defined in the end) by number, type and name. But it happens that there is no name. So I want to leave it out. How can I test for that? A ...
11
votes
1answer
644 views

Getting cleveref to mark all of “Lemma 1” as a hyperlink, not just “1”

I recently discovered the very nice cleveref package, and really like. Works much better than autoref (from hyperref) for me. There is only one thing I don't like: If, for example, the \cref command ...
11
votes
2answers
1k views

How to set a marker/counter/label to an arbitrary piece of text?

Is it possible to attach a marker to just a place in text, not to section, sub-section, etc.? This is what I'm trying to achieve: \begin{document} Alex (see~\ref{alex}) is a boy, Jessica ...
11
votes
4answers
660 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
2answers
11k views

Reference multiple subfloated figures using \ref{X,Y,Z} to give Fig. 1a,1b,1c in text

I want to reference labels in the sentence, as above in the code: like this - \ref{X,Y,Z} to give "Fig. 1a,1b,1c" or "Fig. 1a-c" in text. \documentclass{article} \usepackage{subfig} ...
11
votes
2answers
8k views

How to refer a section in another chapter?

To begin its not a LaTeX query but related to writing a report. What is the best way to refer a Section in another Chapter in the report ? I am using something like this, As explained in ...
11
votes
3answers
660 views

Extended draft mode which includes source information for manual print-out to source synchronisation

I'm looking for a kind of extended draft mode which places the source code position of paragraphs, sectioning commands and figures etc. as marginpars or similar in the PDF, so that they appear on a ...
11
votes
1answer
199 views

Strip section number from equation range reference

I am trying to adjust equation range numbering from (1.10)-(1.15) to (1.10-15). By calling this in the preamble: \crefrangelabelformat{equation}{(#3#1#4-#5#2#6)} and then this in the document: ...
11
votes
1answer
484 views

How to label a word inside a paragraph?

The idea is to place \LBL{some_label_name} in a paragraph so that I can refer back to the particular point inside that paragraph where the \LBL was placed. I would like to define the macro for \LBL. ...
11
votes
4answers
6k views

Adding parentheses around subfig references

Say I have a figure with two subfloats inserted using the subfig package. When I reference them with \ref{myLabel} I get this Figure 3.5a and 3.5b. But what I want is this: Figure 3.5(a) ...
11
votes
2answers
7k views

Multiple items/equations in single eqref call

How can I reference multiple items/equations in a single \eqref call? I want, e.g., "In (1,2)..." instead of "In (1) and (2)...". I'd think I could do something like \begin{enumerate} \item blah ...
11
votes
1answer
2k views

Reference plain text

Is there a way to reference just plain text with the \ref{} tag? I have a table with two columns. Each column has content which links to a different part below. The reference in the first column is ...
11
votes
8answers
15k 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}..."
11
votes
1answer
5k 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 ...
11
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. ...
11
votes
2answers
647 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 ...
11
votes
1answer
503 views

showonlyrefs and cleveref

This question led to a new package: autonum I know that cleveref is not compatible with showonlyrefs as it says in the cleveref manual. But I have a book-length document that depends on ...
10
votes
2answers
858 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} ...
10
votes
4answers
5k views

custom counter and cross-referencing

I created a custom counter 'rtaskno' and a command '\rtask' as following: \newcounter{rtaskno} \newcommand{\rtask}{% \stepcounter{rtaskno}% \thertaskno} I like to use them as following: ...
10
votes
3answers
1k views

Numbered examples in linguistics that I can refer back to

I do linguistics and I'm looking for a way to enumerate language examples that lets me reference to them in the text. (1) This is an example. Sentence \ref{...} provides a good example of ...