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

1
vote
1answer
25 views

Subref with floatrow (without subcaption)

I have subfigures created with the floatrow package instead of the subcaption package. The latter is not loaded. \begin{figure}[htbp] \ffigbox[\FBwidth] {\begin{subfloatrow}[2] ...
9
votes
2answers
67 views

nameref (hyperref) evaluating counter instead of section name

What's the proper way to reference a section with a counter in the title? The TOC generates correctly, but the cross references aren't so lucky. MWE: \documentclass[letterpaper, 12pt, twoside]{exam} ...
3
votes
1answer
39 views

Cleveref Links missing

i have a problem with cleveref. I'm using cleveref with the nameinlink-option but there is still no link. This is my header: \documentclass[12pt,a4paper]{scrreprt} \usepackage[latin1]{inputenc} ...
2
votes
3answers
47 views

Detect misplaced label in figure

I realized that I sometimes write : \begin{figure} ... \label{fig:foo} \caption{Bla} \end{figure} instead of: \begin{figure} ... \caption{Bla} \label{fig:foo} \end{figure} ...
5
votes
1answer
69 views

Reference to a figure

When referring to a figure, the output in my pdf is not a number, but 'Figure xx'. For example: if I use the phrase This is figure \ref{test}. the output in my pdf file is always: This is figure ...
0
votes
1answer
28 views

Reference to listing not working [duplicate]

I have the following code: \documentclass{article} \usepackage{hyperref} \usepackage{minted} \begin{document} A nice paper has the following things: \begin{listing} \begin{minted}{haskell} ...
5
votes
2answers
52 views

Cross reference to counter in section title

I am trying to use a custom counter in Latex in order to auto number Use Cases in section titles (eg. \section{UC <counter>: use case title}). I also want a \usecaseref command to substitute a ...
3
votes
0answers
35 views

Prefix for \externaldocument references in \cleveref

The question Special case for last element with \foreach manually changed the references, and added the ability to have a prefix on references. Can I do the same thing using \cleveref? (Note: This ...
1
vote
2answers
50 views

Figure reference problems

My problem seems to be simple although I could not find any solutions for it yet. I am writing my thesis in LaTeX, but I am totally new to this type of language. I am trying to reference a figure as: ...
2
votes
2answers
42 views

Excluding subsection from ToC and keep the references

I need to remove my subsection from ToC. I got that part right without any problems by using this link. Thanks! But I am unable to use \ref{"label from my subsection"} for the selected subsection I ...
3
votes
1answer
43 views

Memoir's \NumToName doesn't work with cross-referenced items

I got external references to work with memoir and hyperref here: hyperref and xr-hyper break memoir's \titleref, but references to external documents don't work with memoir \NumToName: ...
5
votes
5answers
168 views

Reference to the Table of Contents page

I thought that someone must have asked this, but my searches didn't find it. I am looking to refer back to the table of contents from places in my document. How can I do this?
2
votes
0answers
44 views

How do you organize an article with multiple aspects?

I am writing a reference manual for a component(a particle system) in our game engine. There are many modules in this system. And each of them has a module type. I can write specifications for every ...
5
votes
2answers
50 views

hyperref and xr-hyper break memoir's \titleref

I have one document that has hyperref loaded, and works fine. I have a second document that I am using xr-hyper to reference the first. If I remove hyperref from the first document, the \titleref{} ...
4
votes
1answer
36 views

Gene-logic package and bizarre cross-referencing behavior

I am getting some bizarre behavior using the gn-logic (gene-logic) package with some of the various cross-referencing packages. In particular varioref and cleveref. Here is a MWE illustrating the ...
2
votes
1answer
52 views

Keeping the definition of tables/figures separated from main text

Disclamer: This is not a question regarding the micromanagement of tables/figures placement during typesetting, but rather about organization of the original latex file itself. Prologue: During the ...
4
votes
1answer
63 views

Reference that includes section number and name

I'm trying to refer (hyperlink preferably) to another section, or in this spesific case a subsection. I've fixed the problem by creating a new command: \usepackage{hyperref} ...
4
votes
1answer
40 views

Format reference to items in nested list with cleveref

I'm using the cleveref package to format references in my documents. However I am having difficulties implementing different formats for labels referring to enumerate-lists, in particular nested list. ...
7
votes
2answers
99 views

Enumerate level 2 reference format

In the following example, when I refer the enumerate level 2, it comes out 2a instead of 2 (a). How can I change that? \begin{document} \maketitle \begin{abstract} \end{abstract} \section{} ...
4
votes
1answer
52 views

Hidden reference to equation

How to make a hidden reference to an equation, such that \mathtoolsset{showonlyrefs=true} is overridden (assuming it is active)? Alternatively, how to switch off showonlyrefs temporarily (regardless ...
7
votes
2answers
91 views

Reference to List Items in Theorem Environment with Label Type “Theorem”

I'm trying to set up references to list items in theorem environments. Using the thmtools and the cref-package I am able to reference theorem environments, such that the theorem type, e.g. theorem, ...
2
votes
1answer
165 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 ...
8
votes
1answer
34 views

eledmac and cleveref?

I'd like to use eledmac and cleveref in the same document, but I'm running into trouble with something like this: \documentclass{article} \usepackage{eledmac} \usepackage{cleveref} \begin{document} ...
0
votes
0answers
30 views

latex and cross references [closed]

I have defined my own enumerable environment in the layout and cls files and I have set a marker behind the automatic enumerations in the lyx file which reads A1, the name of the marker is A:1 When I ...
6
votes
3answers
101 views

Protecting references in section headings from capitalization

I am using the ACM SIG alternate style, which automatically converts all section titles to upper case. I would like to include a reference in one of the section titles (Proof of Lemma X). The obvious ...
13
votes
1answer
96 views

“\thechapter” as prefixnumbers for bibliography with biblatex

I have a huge document and would like to do the following with biblatex: Have one (actually, several) seperate bibliography for each chapter. Add a prefix to each citation number to make them ...
4
votes
0answers
39 views

How to include references used in Supplementary material to main text

According to the guide of APS, I have to include the additional references in the supplementary material should be included in the main text. In other words, I need to put references used in one file ...
6
votes
1answer
58 views

Linebreaking with \eqref and long tags

When using a long tag for an equation, is there a way to have an equivalent of \eqref that would allow LaTeX to break the reference between words, or even within words. In the example below I get ...
6
votes
2answers
82 views

Getting the number of a chapter-numbered theorem but without the chapter number

Suppose in Chapter 3 I have Theorem 3.17. I need to get the "17", NOT the "3.17" which would readily be obtained using \label then \ref. How do i do that? Edit: (Probably a more relaxing condition): ...
0
votes
1answer
33 views

Bibliography references by hand

For my Master's thesis, I used a formatted latex bundle so I would not have to worry about my University's many formatting requirements. However, the downside is that the Bibtex does not work. I tried ...
10
votes
2answers
101 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? ...
5
votes
1answer
73 views

Find point of page break in an external document

I am creating multiple versions of a document from a single LaTeX source. Specifically, I have a series of lessons that have an instructor version (with notes and answers) and a plain student version. ...
1
vote
1answer
52 views

How to customize the chapter in front of figure page in listoffigures?

I am using the the packages \usepackage{url} \usepackage{graphicx} \usepackage{rotating} \usepackage[hypcap]{caption} \usepackage{hyperref} to include referencable graphics in my work. The ...
0
votes
0answers
18 views

Different numbers in \label and \ref [duplicate]

I want to reference an image in my LaTeX document. In order to do this, I wrote following code: \begin{figure}[h!] \centering \includegraphics[scale=0.25]{img/2016_02_16_history_site_1.png} ...
5
votes
0answers
26 views

Comparing last character(s) of the output of \ref to manipulate output [duplicate]

I am trying to write a command that will replace \ref in a special way. It will add some text next to the number based on the last character(s) of the number \ref outputs. I will try to explain this ...
7
votes
1answer
69 views

How can I reference an (unnumbered) list item?

I have the following code: \documentclass[]{article} \begin{document} \begin{itemize} \item first item \label{first} \item second item \end{itemize} In \ref{first} we find the first item. ...
1
vote
2answers
56 views

cross-reference chapter title from different file

My dissertation is several chapters, each written in a different .tex file. How can I reference the chapter number from one chapter in the text of another? For example, how would I produce '... ...
8
votes
2answers
278 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 ...
3
votes
1answer
35 views

cross-referencing acronyms not displayed in the text with

I use glossaries and define besides standard acronyms also some acronyms like this: \documentclass{scrreprt} \usepackage{xcolor} \definecolor{navy}{RGB}{0,0,128} \usepackage[ngerman]{babel} ...
8
votes
2answers
60 views

How come \label doesn't work after \footnote?

In the comments on Martin Scharrer's answer to Why does an environment's label have to appear after the caption? there is a discussion of whether one ought to put \label inside of or after \caption. ...
2
votes
1answer
62 views

Insert a reference in a caption?

After visiting wiki on labels and cross-referencing, a couple of tex sites (1,2), and a stackexchange solution, the following reference will not appear in the caption. I'm using pdflatex on ubuntu. ...
1
vote
1answer
38 views

Referencing todonotes by custom counter value?

I have my todonotes set up as follows: \documentclass{article} \usepackage{tikz} \usepackage{todonotes} \usepackage{hyperref} \usepackage{setspace} \usepackage{kantlipsum} \newcounter{todoListItems} ...
0
votes
1answer
30 views

How to refer to labels in other documents? [duplicate]

I have two documents file1.tex and file2.tex in two different folds fold1 and fold2, which are in the fold father. In file1, I defined \label{file1:hello}, how do I use it in file2?
3
votes
1answer
46 views

Problems to cite properly figures in tufte-handout class

I'm working in a handout where I include few pictures with the helping of the environments figure and marginfigure. But my problem is that when I compile my handout the reference's number of one of ...
0
votes
2answers
66 views

reference to tex document

is there any way where i can put a label on a full latex document and refer to it in another tex file. e.g. supplement.tex \documentclass[review,12pt]{article} \usepackage{graphicx} \begin{document} ...
2
votes
2answers
67 views

How to make a custom reference list without automatic counter

In my document I have a list of requirements (currently these are just text created through a custom command). One special thing is that these requirements are manually numbered (and not ordered by ...
2
votes
0answers
31 views

How can I label two equations within the same align environment? [duplicate]

How can I references equations that are on the same line? Here is an example: \begin{align} & a_{11} = b_{11}, & a_{12} = b_{12}, \label{eq1} \\ & a_{21} = b_{21}, ...
7
votes
1answer
57 views

Referencing unnumbered theorems

I would like to reference named (but unnumbered theorems) with a hyperlink. I have a solution which I consider at least a semi-hack: \documentclass{amsart} \usepackage[colorlinks=true]{hyperref} ...
4
votes
1answer
34 views

Referencing all uses of a multiply defined label

I want to be able to apply the same label multiple times and have a referencing command, that lists all uses of that label. Minimal example: \documentclass{article} \newcounter{example} ...
8
votes
1answer
56 views

\pageref, but for columns

I need to point to a label on a page, but as my text is layed out in two columns, I'd also like to include the column (1 or 2). Is there a way to find out which column a label is in? ...