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

21
votes
2answers
637 views

Replace unknown reference (?) with the tag from \ref or \cite

While working on a document, it would be helpful if instead of a ? for unresolved references or citations the tag used in the \ref{thisthings} or \cite{Bloke1978} could appear instead. Is there a ...
6
votes
1answer
976 views

Trouble with hyperref when resetting the counter for equations (specifically with the align environment)

I am trying to reset a counter to zero; however hyperref tries to reference previous equations. I am using: \setcounter{equation}{0} And if I have labels in say align environments: \documentclass{...
3
votes
1answer
219 views

Change the reference style for subfloats: from 1a to 1(a)

How to change the reference style to subfloats (package subfloat) in a figure from <number><letter> to <number>(<letter>).
7
votes
1answer
735 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 \nameref{...
6
votes
2answers
9k views

How do I reference an appendix when it is defined with \chapter*?

I have a problem with the reference of an annex. In the main .tex file I put %... couple of lines before this \include{ThesisChapter4} % \include{ThesisAppendixA} % Appendix A and in Appendix A I ...
6
votes
1answer
2k views

Beamer ignoring a \label when used inside certain \only's

For space reasons I want to break up the contents of an itemize list into separate slides, which I have been doing without much problem using \only. However, the following minimal document complains ...
5
votes
1answer
750 views

Using cleveref with tagged equations

In my document I have a tagged equation, something that goes like \begin{equation}\tag{$\dagger$}\label{whatever} \end{equation} Then latter I want to refer to it using \eqref{whatever}. But ...
11
votes
2answers
447 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 ...
4
votes
1answer
258 views

Reference \ref[…]{…} with an argument does not work with hyperref

I'm using the hyperref package. My propositions usually consist from many parts a), b), c), d), e), etc. When I refer to a certain proposition, I would like to specify which part I am referring to. ...
5
votes
2answers
1k views

Printing \ref as a letter

When using \label and \ref, can I get the \ref to display as a letter instead of a number (so if \ref is 3, it will print c instead)?
3
votes
1answer
236 views

How to cross reference a section and item in a list in single document?

I want to cross reference sections as well as some items in the list in my document. for ex: \label helps us to cross reference the sections. If we renew the command to provide the cross reference for ...
10
votes
2answers
2k 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 ...
3
votes
1answer
251 views

Figure refs stop working after I added a new counter

I was using the amspset document class for generating exam practice problems. I had wanted to add some referencing to the problems so I started a new counter like this (adapted from some Tex Exchange ...
4
votes
2answers
2k views

Working with labels

I'm not quite sure what the problem is, so I'll just post a MWE: \documentclass{article} \newcommand\twolabels[2] { \label{my:#1} \label{my:#2} } \begin{document} \twolabels{4}{a} I have ...
4
votes
1answer
1k 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 ...
5
votes
2answers
94 views

refcount + unresolved cross references + ~ 100 runs of pdflatex

Is there anybody out there, with an idea how to speed things up? I need to run pdflatex ~ 100 times because of unresolved cross references. I use refcount to add a number to each row of a table (list ...
2
votes
1answer
539 views

Problem when using pdfcomment in figure captions and then referencing

This is possibly a bug in the pdfcomment package, maybe not. I use the \pdfmarkupcomment[]{}{} macro to insert highlighting into the caption of a figure. Then follows a lable. I reference the figure ...
1
vote
1answer
145 views

find and sort selected words

I am writing a book, where in i have to call back the selected words in different context. Here is my MWE \documentclass[a4paper,10pt]{article} %For multiple index \usepackage{imakeidx} \makeindex ...
5
votes
1answer
295 views

Making and referring to variables with a key

I have a custom macro, \somemacro{}{}. In the macro, #1 is set to a unique key (e.g. 11) and #2 contains other data. This macro appears throughout my document: This is some text. \somemacro{11}{...
3
votes
1answer
832 views

Subnumbering in chemstyle

When I use \schemeref and \schemerefsub, instead of 1 and 2a 2b I get 1 and 1a 1b. So my subnumbering doesn't seem to follow my regular numbering, but when I refer to the compounds I get 1 and then, ...
12
votes
2answers
4k views

Using \href instead of \ref

The link produced by \ref{defn:First Defined Term} works fine, but as I would prefer to have text instead of a number so thought \href{defn:First Defined Term}{First Defined Term} should work, but it ...
1
vote
1answer
2k views

Reference undefined

I receive the a Reference "LastPage" undefined error when trying to compile a document with this syntax: \fancyfoot[R]{\thepage/\pageref{LastPage}} What is necesarry to prevent this error? I'm ...
32
votes
5answers
6k views

Does hyperref work between two files?

Can I create a link from one file into another one. So that when the resulting pdf files are in the same directory the link takes me from one to the other? Does another package do that? Added on 1/20/...
4
votes
2answers
606 views

IEEEeqnarray vs. hyperref -> reference jumps to the beginning of the section

I'm using the package IEEEtrantools in an scrreprt document class environment. My problem is that, when using IEEEeqnarray together with hyperref, the link jumps to the beginning of the section and ...
38
votes
3answers
6k views

What is the difference in citing/referencing with or without tilde?

I've seen examples referencing a table as follows: Table~\ref{table:overview} shows an overview of all the elements. What is the use of the tilde in front of \ref or \cite and when do you have to ...
4
votes
2answers
203 views

Refer to some equation number in different environments

I hope there is a solution for this. When I refer to some equation I always get something like 37, but I would like to have (37). I could make a new command but the problem is I use many kind of ...
5
votes
2answers
616 views

Cross References using multiple documents

I'm trying to solve a problem that's come up in producing a large document that I'm breaking up into smaller ones. The basic structure is this. A main document (main.tex) that includes formatting ...
11
votes
1answer
274 views

Ensuring that floats are displayed in order of first reference

There are many questions on this web site and elsewhere about ensuring that floats are displayed in the order in which they are placed in the source. What I want is different—I have all my ...
3
votes
2answers
3k views

Using achemso package, can't reference equations with \label and \ref

I have a manuscript in preparation with achemso class and package. I have equations in the equation environment, with \label and \ref used to automatically reference them in the text. This was working ...
9
votes
1answer
2k views

References in externalized pgfplots

I was writing on an document with a lot of pgfplots in it. Because of the memory limitation in LaTeX and in order to save some compiling time I tried out the externalize command. With most of the ...
4
votes
2answers
6k views

Best practices for cross-references with hyperref

I want to reference some parts of my document. At the moment I read that there are several options. When clicking on a cross-reference one should get to the right part of the document. The first ...
3
votes
2answers
3k views

Redefine \figref so that it can accept optional arguments

I have some figures to include in my document that contains subfigures. I don't use the subfigure environment, but rather I produce only one EPS in which every part of it is labelled as A, B and so on....
5
votes
1answer
2k views

How do I use a phantom section in conjunction with nameref?

To have the bibtex bibliography properly in the toc I use a \phantomsection and give it a label. Then I add it to the toc using \addcontentsline{toc}{section}{References}. You can see a full example ...
6
votes
1answer
312 views

Centered captions containing \vref may not always appear as expected

I've noticed that when centered captions contains \vref to some reference, the captions may sometimes not become entirely centered. I see this especially in my document where there are two figures on ...
0
votes
2answers
186 views

How to align an equation reference (1) to the right

I have a centred equation and I'd like to place a (1) on the same line as the equation, but aligned to the right, so that I can refer back to the equation in future. What I have at the moment is: \...
20
votes
2answers
784 views

Graph of dependencies from LaTeX file

This is inspired by the MO question here. Suppose I'm writing a math paper, with theorem and proofs, etc. At the end of writing, I want to design a graph of dependencies, that is, a graph containing ...
4
votes
3answers
8k views

amsmath - multiple labels in one equation

I would like to use multiple labels in the same equation when using amsmath. Basic latex already has this feature, but not amsmath, which seems to manipulate labels in complicated ways. Is it possible ...
8
votes
1answer
721 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 ...
8
votes
1answer
261 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 ...
4
votes
1answer
458 views

\autoref from hyperref with tex4ht

The following document when compiled with htlatex test-nameref.tex "html,4" generates wrong targets (but correct displayed text) for the subsection and subsubsection references with the updated ...
5
votes
3answers
508 views

Table of subfloats

I'm trying to sort figures (using subfloat) in a table, with labels for each subfigure. My point is, using only subfloat, that the subfigures are referred in the text as figure a, b, ... and so on. ...
8
votes
2answers
2k 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) ...
2
votes
1answer
324 views

How to reference list items in another TeX document?

Problem in a nutshell: I would like to reference items in an external LyX document (containing a list of definitions and theorems). Problem in detail: I am a Math student. I maintain a LyX document ...
9
votes
1answer
1k views

Identifying the section an equation is in

Suppose in my document in section 1 I have a labeled equation, say \label{eq1}. Then much later, say in section 8, I want to reference this equation and the section it is in. I know \ref{eq1} will ...
2
votes
1answer
949 views

Referencing externalized pgfplots with subfig and cleverref

I use pgfplots to produce a vast amount of images in my document. Due to limited LaTeX memory, I am forced to use \tikzexternalize. Moreover, I also use the subfig package to group several pictures ...
1
vote
2answers
2k views

Chapter reference not displaying

I am involved in a writing a large document with a co-author who set up the LaTex files that we're using (i.e., I don't have complete autonomy in what I change). We have a root file which does two ...
6
votes
1answer
293 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 \...
20
votes
2answers
3k views

Automatically inserting “Section”, “Subsection”, etc

Is there a package that automatically inserts the ToC level of the reference I inserted? Section 1.1 \label{a} Subsection 1.1.1 \label{b} Subsection 1.1.2 \label{c} So that the text: Blah \...
4
votes
1answer
166 views

How do I determine the name of the counter associated with a theorem-like environment

(A question related to this one and leading up to this one.) Suppose I'm using ntheorem. I would like to have a command which determines the name (not the value) of the counter associated with a ...
3
votes
2answers
285 views

How to use an environment whose name comes from a reference?

Suppose somewhere in my long Ph.D. thesis I use a theorem-like environment (maybe it's a theorem, maybe it's a lemma, etc.), and label it. At another place I want to have an environment which is the ...