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

9
votes
1answer
307 views

Macro to automatically save section name of previous section and next section

EDIT: I've edited the code that reproduces the anomalies, but I'll work on the code to more accurately depict the problem later on the day. Weird spacing in index Index doesn't appear in footlinks / ...
5
votes
3answers
76 views

Changing the way figure reference appears in LaTeX

How can one make LaTeX insert Figure into \ref calls automatically, i.e. instead of writing: See data in Figure ~\ref{fig:JobInformationDialog} simply write: See data in ...
11
votes
2answers
916 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 ...
5
votes
2answers
58 views

Reference Chapter Number

I am writing a book with multiple chapters (in different sections, if that is relevant). Chapters are numbered. I want a way to transform the chapter name into the chapter number, someplace else in my ...
3
votes
1answer
51 views

How to refer to parts of a single externalised graphic, such as multiple pgfplots (similar to subfloat/subcaption)?

I am looking for a way to refer, from within normal text or captions, to parts of TikZ graphics which I have labeled myself with (a), (b) etc. With subcaption and multiple separate figures I'd use ...
1
vote
2answers
76 views

How can I delineate and later fill a placeholder for arbitrary text?

Is there any way to allocate a placeholder and set the content later in the document? First of all I realize that this would require more than one pass to render correctly, but I see the references ...
2
votes
1answer
38 views

Reference to assumptions

Assumption 1. (i) something1, (ii) something2. I would like to refer to separate parts as 1(i) and 1(ii). Is there any way of doing it? I guess that I can use enumerate and three labels, namely, ...
0
votes
1answer
23 views

Reformatting the way references to figures do appear

How can one make LaTeX insert Figure into \ref calls automatically, i.e. instead of writing: See data in Figure \ref{fig:JobInformationDialog} simply write: See data in ...
1
vote
1answer
51 views

Multiple questions regarding formatting tables

Question 1 A while ago, I used some code from here, which fitted my requirements perfectly. However, I'd like a different table, and playing around with the code (I'm quite new to Latex) has not ...
5
votes
2answers
94 views

add () around \ref{}

How can I add [ and ] around \ref{myref} so that I get something like this: [1.1] This does not work: \documentclass{article} \usepackage[colorlinks=true,allcolors=blue]{hyperref} \let\oldref\ref ...
4
votes
3answers
67 views

Using \cref on a \minipage label?

A couple of times I've had trouble using labels on minipage. I use minipage to create subfigures a) and b), each with their own \subcaption and \label, the whole figure also got a \caption with a ...
7
votes
2answers
70 views

Automatically highlight undefined references

Is there a way to force LaTeX to automatically change the formatting of the ?? that gets typeset in place of an undefined reference? For example, can one make LaTeX draw a yellow "highlight" ...
3
votes
1answer
58 views

Avoiding multiple label-refs in simply-formatted documents

I want to build a file with a number of math problems and solutions, like: Problems ... ... ... Solutions ... ... ... I want to link back and forth ...
6
votes
1answer
57 views

Theorem and lemma sharing counter with mdframed and cleveref

Problem Essentially I've got the same problem described in Cleveref with counters with same name: I've got theorems, lemmata and corollaries all sharing the same counter, and when referencing them ...
4
votes
1answer
91 views

Create references with part number and frame number

I created a beamer theme which uses parts (for lecture slides) and where the slides are numbered using the part number and the frame number. The frame number is reset at the beginning of each part. ...
7
votes
1answer
89 views

How to force a label to be a given string?

Normally I issue a command like \label{foo}, and this means that foo gets entered into a symbol table somewhere that says that it equals 14, or xiv, or aa, or whatever. These symbols are generated and ...
2
votes
1answer
60 views

Prefix “Figure” and giving reference to figures

Is it possible to adjust the font size of the prefix Figure when captioning an included image? Furthermore, is it possible to refer to a picture in a meaningful way without using a caption; I tried ...
2
votes
0answers
14 views

Lyx, harvard style reference help

i need to produce the following reference style in Lyx -> (AKAMAI, 2013). i'm Having lots of problems in finding a way to produce the above mentioned reference style. Any help how to achieve this ? ...
4
votes
1answer
39 views

\ref{} does not work under certain circumstances

So I know that the problem is at \setcounter{secnumdepth}{0} But I don't know if there is a fix to this (without deleting this line, since I don't want numbered sections), since the link in ...
1
vote
1answer
56 views

Problem with xr-hyper and xepersian latex packages

I had a problem with xr package and xepersian package; when I use these packages, I can not use options for external document command. File A: \documentclass{report} ...
1
vote
1answer
45 views

Referencing to figure using label yields question marks

This is my document. I can't seem to find out why referencing to this label only yields ?? rather than a reference. Other figures are working as intended. \documentclass{article} ...
1
vote
0answers
42 views

Set path for PDF and PPTX files in appendix

I have a separate file for Appendices and include it in my main file with this command\input{./Appendices/AppendixA} Now I want to set path for my files. When I set path in my Appendix.tex file with ...
1
vote
1answer
24 views

Referencing a figure in the text before the figure

I'm wanting to reference a figure, but I know that the usual way of doing it: \begin{document} \begin{figure}[h!] \centering \includegraphics{image.png}\\ \label{fig:fig1}} \end{figure} ...
1
vote
1answer
49 views

Automatic labeling of enumeration items

I would like to redefine the enumerate environment so that each \item automatically sets \label{en:\arabic{page}\alph{enumi}}. I already tried \usepackage{etoolbox} ...
3
votes
3answers
104 views

Change the tag for equations

I want to show my equations in the form (Eq. 1) instead of (1). I am trying using \tag but this changes completely.
1
vote
1answer
43 views

What's wrong with that code?

\def\totalobjects@putlabel{% \addtocounter{totalpage}{\c@page} \immediate\write\@auxout{\string \newlabel{reftotaltables}{{}{\refstepcounter{totalpage}}{\relax }{}{}}} } ...
3
votes
1answer
72 views

Controlling Theorem tags in Beamer

I am writing slides which follow a textbook, and it is obviously desirable for the theorem and equation numbering to coincide with that in the text. I have no problem \tag-ing equations and linking ...
3
votes
1answer
73 views

Undefined reference using a0poster (\include Vs. \input)

I have an a0poster document (see below an example) which is not loading the cross-references, although bibtex is working fine and compiling the references. I write the main text into a different tex ...
5
votes
1answer
2k views

Reference part of a figure (with or without cleveref)

I have a figure with multiple parts (a, b, c, etc.) and in the text I would like to have a reference to the figure with the letter of the part (i.e. fig 1(b) ). Is there a way to pass this to \cref{} ...
4
votes
2answers
97 views

Place parentheses around a cross-reference

Is possible to surround a cross-reference with brackets or parentheses? For example when I write a command like some text \ref{some label} then when compiled the output was some text (12) without ...
1
vote
1answer
98 views

Cross referencing between chapters of a thesis

Hi I am new to the forum and fairly new to Tex, if I miss anything out please let me know and I will be glad to post it. I am writing up my PhD thesis using Texmaker on a windows system. I have my ...
1
vote
0answers
49 views

Texmaker isn't matching my labels

I'm currently editing a latex file together with a colleague. She's uses technixcenter as editor and I use texmaker 4.1.1. My compiler refuses to match the references with the labes when I insert ...
2
votes
1answer
41 views

Can eledmac's xxref be used with non-arabic linenumbers?

I am using polyglossia and eledmac to typeset a Tibetan document. I'm running into problems when using eledmac's xxref. It seems the numbers it expects are not in the right format, since they are ...
1
vote
2answers
70 views

Is there a way to reference your numbered equations?

Here is an excerpt document \begin{align} f(x) &= g(x) + h(x)// &= 3x + 8x^2 + 1// &= 3 + 8 + 1// \end{align} So when I compile this (assuming this is the only thing I Have), LaTeX is ...
19
votes
2answers
312 views

Show graph of references inside a document

I have quite a lot of labels and references (around 250 labels, 600 references to those) in my document. As I need to re-arrange parts of the document, I'd like to know which labels are referenced ...
6
votes
4answers
77 views

References in Chapter Titles

I am currently writing a manuscript using \documentclass{book}. I would like to devote one of the chapters in the manuscript to a proof of an earlier result. I have named the Chapter: ...
5
votes
3answers
65 views

Use label to refer to text and print it

I want to make requirements in a latex document and I would like to refer to them. What I have so far is this: \documentclass{memoir} \usepackage{hyperref} \usepackage{lipsum} ...
1
vote
0answers
38 views

Is there such a thing as `\sectionref{}`?

My sections are labeled, for example, as "5.3," where the 5 is the chapter number and the 3 is the section number. Using \ref{} to refer to that section would produce "5.3"; however, I would only like ...
0
votes
0answers
46 views

Some table references sometimes not working

I'm having a problem with \ref to some of my tables. I have lots of tables via several \input{} commands. Some files contain only one table, others multiple tables. The problem is that some of the ...
6
votes
1answer
74 views

Cross-reference of custom environments created with environ and TikZ package

Problem: I want to create an environment named Example, and the environment has a counter (number within chapter). I want to refer to the counter for illustration just as the table, figure and ...
2
votes
2answers
3k views

Figure reference \ref{fig:result} renders as ?? in PDF

I have an article with the following figure (there are 2 small charts near each other, horizontally): \begin{figure}[h] \centering \includegraphics{left-graph} \includegraphics{right-graph} ...
3
votes
2answers
1k views

Referencing a table vs. a figure in LyX, format

Currently, when I reference things using labels I have setup LyX simply inserts the table number. I would like it to insert Table N where N is the table number. Similarly, I would like it to insert ...
1
vote
0answers
69 views

Referencing wrong appendix in chapter. Should reference A.1 instead references A

My problem is when I reference a piece of document which is in my appendix it states the wrong one in my chapter content. I.e blah blah in 'A'. When it should be 'A.1'. Every document in the appendix ...
3
votes
2answers
92 views

How to number subequations separately from the main equation?

I would like to produce in report class the following style for numbering subequations: The main equation has its own number, and can be referenced. Each subequations are labelled with lower case ...
3
votes
3answers
422 views

Combining \autoref and \eqref

Say the equation is \begin{equation} r^2 = x^2 + y^2 \text{.} \label{eq:circ} \end{equation} Now, if I use \autoref{eq:circ} I get Equation 1. How do I get Equation (1) (the parenthesis that we ...
1
vote
0answers
34 views

Using math mode in a label

How can one use something like $\mathbb{R}^k$ in a label? I.e. \label{three equivalent properties of $\mathbb{R}^k$}. Currently when I try this I get an error. Here's a MWE: \documentclass[a4 ...
1
vote
0answers
20 views

Why might I not want to set naturalnames and hypertexnames both equal to false in hyperref?

I know from these questions that you can solve a lot of internal linking problems in your PDF by setting naturalnames and hypertexnames both equal to false (naturalnames being set to false by ...
5
votes
1answer
43 views

\@currentlabelname and custom counter

Suppose I have a counter, say, count. I can do something like this \setcounter{count}{0} \refstepcounter{count}\thecounter{count}\label{cool} \ref{cool} This will give me "1" in the end. Now, I ...
3
votes
1answer
47 views

Giving a custom environment a name

I have defined a custom environment: \documentclass[11pt]{article} \usepackage[table,hyperref]{xcolor} % Better control over color \usepackage[colorlinks=true, linkcolor=DarkBlue, ...
4
votes
1answer
48 views

Splitting a caption and cross-referencing

I'm currently writing my thesis and I'm struggling with my redefinition of the caption command. I've got large captions which I don't want to show up in my list of figures. Of each caption I want ...