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

3
votes
1answer
60 views

Hyperref refer chapter and page in text

\documentclass[oneside,10pt]{book} \usepackage{amsmath, amsfonts, amsthm, amssymb} \usepackage{hyperref} \usepackage{blindtext} \begin{document} \chapter{something} \blindtext[1] \chapter{...
6
votes
2answers
172 views

Have latex warn when I refer to an item that occurs later?

I'm writing a long mathematics book. Sometimes after I move things around, an internal reference (\ref{...}) will refer to an item that occurs later in the text. For example, a proof may (...
2
votes
1answer
72 views

cross-references with xindy

I'm using xindy for my index. And I would like to have cross-references inside. But when I do so, the page number associate to the entry with a cross-reference disappear. Here is a MWE: \...
1
vote
1answer
68 views

debugging missing reference to figure

to put it plainly: is there a way to debug the way a \begin{figure}...\end{figure} block is processed? I got all my figures in my paper, their references are alright except for 2 of them (...
1
vote
0answers
37 views

multilingual references

Just for curiosity... Is it possible to include into your references articles that are published in different languages? Let's say for instance that one of my biblatex entries is written in greek, ...
1
vote
0answers
32 views

Interactive pdf. Moving between lines

I made a quiz in LaTex for my exam, and my professor wants me to do the following. When I click on a solution of a problem in the pdf, I would get as a result the problem which is given for that ...
1
vote
0answers
32 views

Reference a picture [duplicate]

I am writing a PhD thesis. Sometimes when I reference to a figure the following problem occurs. In PDF the word Fig.[number of figure] are written in two lines (Fig. and [] are separated). How to ...
0
votes
0answers
10 views

labeling lines in text body [duplicate]

Is it possible to set "label markups" or a "placeholders" in a text, to refer to a particular line? I am thinking of this in the context of academic article revision, where usually people comment on ...
2
votes
0answers
57 views

Ignore special characters in \newcommand argument to generate section labels?

I am editing a rather large document and have replaced \section, \subsection etc with \newcommand macros that include \section etc but also spacing and other commands. I am trying to get it to ...
1
vote
1answer
33 views

What should be the relative positioning between label and caption in a figure? [duplicate]

When writing I normally don't care if I write first the caption or the label of a figure. A friend recently told me to write always the caption first and then the label. What reasons are to do this? ...
2
votes
3answers
43 views

Two different kind of reference in a document

I want to use two different kind of reference in a document: one is default with command \refa{} “1.1”, and another is added () around \ref with command \ref{} “(1.1)”. I use: add () around \ref{} for ...
0
votes
0answers
43 views

How do I get warning when a label is not defined but we are refering?

I am writing a lecture notes for M.Sc Students... The first chapter was prepared some months ago and I forgot that the places that I have referred a particular example/exercise given in the first ...
4
votes
2answers
45 views

customize \label and \ref

This must be easy, but my TeX knowledge is insufficient. How can I make \label{key} in an enumerate environment reference the item's enumi instead of the item's \theenumi (which seems to be the ...
2
votes
1answer
109 views

How to cross-reference an unnumbered theorem using hyperref and cleveref

In two previous questions (i.e. Distinguishing \ref and \cref through different colors, and ''Proof of Theorem x'' header trough modification of \ref) I addressed some problems I had with hyperref ...
0
votes
0answers
19 views

error related to Missing \endcsname inserted when editing reference

I am editing a reference.tex and I encountered this problem when compiling. I typed line 55 several times and tried to deleted this line, but the still cannot fix it.This is my code. This is error ...
3
votes
3answers
85 views

Remove all pdf hyperlinks while maintaining hyperref formatting

I want to split a pdflatex pdf document into two parts. The second part has references to the first part, which are hyperlinks and which I want to remove, without changing the visual appearance. So I ...
5
votes
1answer
37 views

How can I avoid a persistent warning concerning possibly changed labels when using background and TikZ?

Last month, I posted the following code as an answer to a question. The code gives the right output. However, what I did not notice but Thérèse did is that it generates a warning concerning undefined ...
1
vote
1answer
33 views

nbconvert-generated labels fail with babel, work without it or with large margins

I'm using ipython nbconvert (which uses pandoc) to transform an IPython notebook and the document code contains the following lines \subsection{Vytvářeni polí čísel}\label{vytvuxe1ux159eni-poluxed-...
2
votes
1answer
40 views

Referencing a Source Code Listing

I would love my listings to look like this: With the references as shown. is this possible? Would I need to use TikZ? I have done a pretty exhaustive search but can't find out how this was ...
2
votes
1answer
73 views

Remove labels from showing up in final document

I have these labels in the margin everywhere in my final document. I don't think they look good, and I want to get rid of them, but I can't figure out how. I searched around and this is the closest ...
1
vote
0answers
75 views

Warning message with fonts: Label(s) may have changed. Rerun to get cross-references right [on hold]

Why do XeLaTeX return this warning message: Label(s) may have changed. Rerun to get cross-references right. when using some fonts as Amiri and how one can get out of this warning message. I need ...
2
votes
1answer
48 views

Auto-generating labels for theorems

I'm using package amsthm to define a "Definition" environment as follows: \theoremstyle{definition} \newtheorem{definition}{Definition} In brackets, a name for the definition is supplied: \begin{...
4
votes
2answers
78 views

How to get cleveref to explicitly list each reference rather than joining them?

I am using cleveref's \cref{label} command with multiple arguments. I want to ensure that it explicitly lists all three sections that I am referencing regardless of if they are in order or not. At ...
10
votes
1answer
140 views

Set different hyperref color inside frame of tcolorbox

I currently have the following MWE: \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[colorlinks=true]{hyperref} \hypersetup{allcolors=blue} \usepackage[most]{tcolorbox} \...
4
votes
1answer
78 views

Reference equations with \eqref while using different tag forms throughout document

I'm trying to reference equation by \eqref when I use different tags form throughout document, but the output can't display the tag form that I want. As mentioned in mathtools package usage, "be ...
3
votes
0answers
55 views

Equation number bigger than 10 in appendices do not get the cross-reference [closed]

I have encountered a funny problem with my equations (in appendix) cross-referencing. If, in appendices, I have equations more than ten (for example A.10, A.11, B.13) when I click on the cross-...
4
votes
2answers
101 views

How do i `\tag` a subequations environment as a whole? [duplicate]

I have a similar subequations environment as in the mwe \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations}\label{eq:w} %\tag{myEQ} \begin{align} a &= b \...
0
votes
0answers
19 views

Bibliography with Biblatex not working [duplicate]

I'm having problems trying to create a bibliography using biblatex. In my preamble of my main document file I have the following: \usepackage[backend=biber,style=authoryear,citestyle=authoryear,]{...
0
votes
0answers
33 views

One problem in my reference

I want to have the word "Gr\"obner" In my reference but it appears "gr\"obner", that is "g" is not capital. What is my problem? What I have to do?
3
votes
0answers
39 views

Float environment closes to first reference

I keep writing my text, and possibly even shuffling the content a little bit. So I might really mis where a figure is first referenced. To solve this, I put all my figures in figures.tex file (a ...
5
votes
3answers
222 views

How to reference chapter names that include counter output?

I want to use a counter in some chapter names, this works fine for the TOC and in the chapter names themselves, but references to the chapter name appear to use the counter at the time of the ...
0
votes
1answer
22 views

problem with cross-referencing after changing numerical list

While working with the following not so minimal example I noticed that the cross referencing does not work properly, when changing the appearance of enumerate labels. What do I have to change to make ...
2
votes
1answer
51 views

Open another pdf file at referenced label/page

I am having two documents, call them A and B. I want to make several cross-references from file A to file B and by clicking on the hyperlink, I want to open file B at the respective page. In my ...
2
votes
1answer
31 views

\ref to existing \label do not works, but index and url yes

This is my code and my results: \begin{figure}[h!] \label{fig:ppe_xyz} \begin{lstlisting} §$ppe_x$§ = ppe(§$A_x$§, s, order, overlap, H); §$ppe_y$§ = ppe(§$A_y$§, s, order, overlap, H); §$...
2
votes
1answer
51 views

Cross-Referenced Index/Dictionary

I am undergoing some amateur Greek studies and would like to construct a dictionary of sorts with LaTeX. I would obviously like some sort of alpha-beta-cal listing of vocabulary words I encounter, ...
3
votes
2answers
53 views

cref and external documents

I want two things: 1. to be able to use \cref across different files and 2. to display certain environments (just the theorems for example) from an external file. What I mean by (2) is the following....
1
vote
0answers
29 views

Problem in referring at figures [closed]

Today I am having hard times to find why after compilation each labeled figures along the code gives always the same reference to the same figure number namely to figure (1.0.1). Surprisingly that ...
0
votes
0answers
29 views

How to create an own sorted label List from special \refs

I the following code which lets me define labels for source code and later make a table out of them \documentclass[12pt]{article} \pagestyle{empty} \usepackage{xcolor} \usepackage[hidelinks]{...
7
votes
1answer
205 views

How to obtain the same numbering of an algorithm for the reference?

I don't understand why the reference number in the PDF is wrong. \documentclass[12pt,addpoints]{exam} \usepackage[section]{algorithm} \usepackage{algorithmicx} \usepackage{algpseudocode} \begin{...
6
votes
4answers
161 views

Give an enumerate list a name and reference

I would like to have a list that is referenced later by a label. Table 1: List of steps needed to be taken Do A Do B Do C As seen in Table 1 And I would like to be able to ...
6
votes
1answer
55 views

Hiding an equation tag but still using it for referencing

I use the semantic package for displaying natural deduction-style inference rules in equations. The \inference command has an optional argument which can be used to tag rules: \inference[Rule1]{A}{B} ...
2
votes
1answer
67 views

Using acronyms for institutions in citations messes up sorting in the bibliography when using “author-year”

I would like to abbreviate "European Commission" by "EC", also when citing a document of the EC. The problem is that the abbreviation will only be introduced when I write "\ac{EC}" (using the acronym ...
3
votes
2answers
76 views

Is it possible to reference the chapter name by the section/subsection label?

I would like to know if there's a functionality that would give me the chapter's name by referencing a label that I know is defined somewhere in this chapter? For example: \chapter{What's it's name?}...
2
votes
1answer
56 views

Crossreference \lstinputlisting code

I frequently need to put C code into my document, so I defined, \newcommand{\Ccode}[1]{\lstinputlisting[backgroundcolor=\color{gray!5},caption=\texttt{\lstname},language=C]{C/#1}} in my document ...
1
vote
1answer
58 views

cross-referencing a list item in OPmac

I need to give a reference to a list item in plain TeX. I have a numbered list with a custom style. \begitems \sdef{item:F}{\bf FP\the\itemnum\kern.25em} \style F * List item 1 * List item 2 ...
4
votes
1answer
26 views

Setting a counter to the value of a reference

I have a use case description, something along the lines of: \begin{enumerate} \item User does X. \item User does Y. \label{y} \item User does Z. \label{z} \end{enumerate} Then there is ...
0
votes
1answer
29 views

Cross referencing: Print reference object

I use the LaTeX article template scifile. When I do a cross reference to a Figure, only the Figure number gets printed out. E.g. when I do: see: \ref{fig:1} i only get see: 1 instead of see: Figure ...
0
votes
0answers
33 views

Equation references [duplicate]

How can I use \eqref where LaTeX will show the entire number. In the moment, when I'm reference to the equation through \eqref LaTeX only will show (1) instead of (1.1).
2
votes
1answer
20 views

Referencing to Appendix with page number

I can't seem to find a way to use \ref to a label and get both the appendix in which it is found and the page number. I would want it to look something like this: \ref{foo} --> (Appendix B, p. 56) ...
4
votes
2answers
48 views

Customize reference style for enumeration items

How can I achieve that the reference to the second item in the following enumeration is just (a) and not (1a)? \documentclass{amsart} \usepackage{enumerate} \begin{document} \begin{enumerate}[(1)] \...