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

7
votes
2answers
186 views

highlight line numbers in listings

I would like to highlight the line numbers of the lines I refer to with lstlistings. I use escape characters to define labels in my Listing to which I refer later in my document (e.g. see Line X of ...
1
vote
0answers
53 views

Displaying text from current page on the next page

I am trying to place text in the footer of the next page. That is i have a question environment which defines the question and its solution but i want the solution to be displayed at the end of the ...
1
vote
1answer
106 views

How to make LyX use prettyref or refstyle

In LyXm in "Document Settings" window on "Document class" pane I can choose to use either prettyref or refstyle. However the TeX code looks as if it used ordinary /ref. Why? %% LyX 2.1.0 created ...
3
votes
1answer
51 views

hyperlink on equation number

I would like to link an equation to a sentence at the end of the document (e.g. code below) but placing the hyperlink on the equation number and not on the equation itself? Is it possible? THanks for ...
3
votes
1answer
82 views

Subcaption format with cleveref

I need to get Figure 1.1 (a) when i put \Cref{fig:NiceImage1}. I have to use \Cref{fig:NiceImage}\subref{fig:NiceImage1} for getting same result. \documentclass{scrbook} \usepackage[demo]{graphicx} ...
1
vote
1answer
194 views

TeXStudio - Cross-reference in case of multiple files

I have a master document and for each chapter a separate file like: main.tex % preamble etc. \input{chapter1} \input{chapter2} \input{chapter3} % and so on chapter1.tex % Some figure with a ...
1
vote
0answers
41 views

Reference to the name of subequations

I have a formulation that consists of several subequations that I would like to refer to as a formulation and as individual equation in my article. Right now I have this: \usepackage{hyperref} ...
3
votes
1answer
123 views

Label in a ntheorem environment witout additional caption

I defined a new theorem with the ntheorem package. If i want to add a label to a certain theorem i get an error from the caption package. And referencing doesn't work. Package caption Warning: ...
1
vote
1answer
65 views

Labels and Cross-referencing in items

I have itemize environment and I want to cross-reference between two items. How do I do that?
3
votes
1answer
97 views

Formatting keywords, data in algorithm2e

I am just wondering if there is a way to reference the keyword data outside the algorithm in algorithm2e package. For example, given the example in algorithm2e, if I want to reference \KwData{this ...
3
votes
1answer
44 views

Change the \crefrange title once

I'm using cleveref and want to use \crefrange in a German sentence but it doesn't create the correct title for this case: In den Abschnitte 7.3.1 bis 7.3.3 wurde für den […] In den ...
8
votes
1answer
112 views

Arbitrary named counter, referenced

Apologies if this has been asked before, but I simply can't find it, despite voluminous searching. Some question answer bits of my question, but not the whole. The problem is this. I want a counter ...
0
votes
1answer
65 views

Why doesn't latex recognize my figure

I've got a figure, which is displayed fine: \begin{figure}[htbp] \centering \begin{subfigure}[b]{0.48\textwidth} \includegraphics[width=\textwidth]{xp_potato.eps} ...
4
votes
1answer
84 views

pgfplots externalize with hyperref

I'm using pgfplots with externalize because my document has a lot of plots which causes problems with memory limitation in LaTeX. In one of my plots I have a reference to an equation. In the file ...
5
votes
2answers
85 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
67 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 ...
2
votes
1answer
88 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 ...
5
votes
3answers
97 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 ...
1
vote
1answer
73 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 ...
0
votes
1answer
37 views

When I try to reference figures, eg “see Figure~\ref{lattice1}”, the output it “Figure ??”. Did I label it wrong? [duplicate]

\documentclass{article} \begin{document} \begin{figure} % \begin{subfigure}[b]{0.30\textwidth} \centering \begin{tikzpicture}[ decoration={ markings, mark=between positions 0 and 1 step ...
5
votes
2answers
101 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 ...
3
votes
2answers
107 views

Editing the reference style for subfigures using cleveref and memoir

I'm using the cleveref package to reference floats (in this case subfigures) in the memoir class. Currently the output looks like this (sorry for the danish, I don't think it matters): Using the ...
3
votes
3answers
155 views

ConTeXt: Prevent Reference Name Clashes in Floating Objects of Different Types

I find it very annoying that ConTeXt uses the same namespace for references of floating objects. In other words, if you give the same reference to a figure and a table, then you'd always refer to the ...
7
votes
2answers
123 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" ...
6
votes
1answer
127 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 ...
3
votes
1answer
85 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 ...
4
votes
1answer
127 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
103 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
78 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
1answer
46 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
3answers
136 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 ...
9
votes
1answer
327 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 / ...
1
vote
1answer
78 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} ...
4
votes
1answer
45 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
50 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
56 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
46 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} ...
9
votes
1answer
79 views

Vowel Harmony and Reference Numbers

I am preparing a document in Turkish which is an agglutinative language with two dimensional vowel harmony. This means that there are a lot of suffixes and they change form depending on how the word ...
1
vote
1answer
66 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} ...
1
vote
2answers
84 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 ...
3
votes
3answers
116 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
48 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
118 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
118 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 ...
4
votes
2answers
240 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
0answers
69 views

Texmaker isn't matching my labels [closed]

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 ...
1
vote
2answers
73 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 ...
2
votes
1answer
53 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 ...
6
votes
4answers
82 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: ...