{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
41 views

beamer: how to label an equation with \alert in its \tag?

I would like to \alert an equation tag, then refer to it in another overlay. \documentclass{beamer} \usepackage{amsmath} \begin{document} \begin{frame} \only<1>{ My equation reads: ...
0
votes
1answer
30 views

how to set my image example number as image number [duplicate]

I have application with which I am generating my PDF from various chapters and sections, by adding and removing chapter and sections. So I found problem with example numbers and image numbers. For ...
0
votes
0answers
14 views

Cross-referencing with different .tex files with \newtheorem

i've been working on a differents .tex files and i have a main file named notas.tex and it contains the next code \newtheorem{exer}{\textbf{Exercise}} \begin{document}[ ...
3
votes
1answer
44 views

I can't figure out why my ref is displaying question marks instead of a figure number regarding a float [duplicate]

Please see figure \ref{loginMock}. \begin{figure}[H] \label{loginMock} \centering \includegraphics[width=7cm]{loginIdea} \caption{Landing/Login Page Example} \end{figure} I am using ...
1
vote
1answer
58 views

Latex \cite produces question mark?

I have a couple of problems with my Latex. I am trying to reference from a .bib file. The \cite command just produces a (?). I tried the latex, bibtex, latex, latex sequence but that didn't help me. ...
1
vote
1answer
33 views

Missing \endcsname with xr cross referencing

I searched a lot, but cannot figure out the following problem: I am trying to reference another document using the xr package. I also tried out zref but it does not matter regarding the error message. ...
0
votes
0answers
36 views

Customised Glossary

I'm a beginner in LaTeX. I have a file containing a numbered paragraphs. I used a \newcounter command to define a numbering parameter. There are some vocabularies in the paragraphs and want to create ...
0
votes
0answers
12 views

How can I creater ref to subfigures [duplicate]

I have the following tex, and I would like to refer to queueModel, and queueClonedModel. The standard \ref{fig:queueModel} does not seem to work. \begin{figure*}[t!] \centering ...
4
votes
1answer
83 views

Highlight first occurence of reference in text

I'm working on a LaTeX template for our institute. The guidelines dictate an unusual style when referencing figures, equqations or tables. The frist time, they are mentioned in the text, they have to ...
0
votes
0answers
35 views

Increase \label{} counter manually [duplicate]

I use my own version of subsections for definitions: \newcommand{\definition}[2]{\addtocounter{subsection}{1} \subsection*{\thesubsection ~ Definition (#1) \text{\normalfont{#2}}}} I use them as: ...
1
vote
0answers
21 views

Macros in \ref or \pageref etc [duplicate]

I am trying to create labels using macros. I have seen somewhat related pages, but honestly nothing that solves my problem. Below follows a relatively simple minimum working example. I thought that ...
1
vote
1answer
47 views

How to cross-reference an unnumbered section?

So, this is pretty well-known: \section{boring Hello World} \label{bHW} but in this case?: \section*{boring Hello World with no section} \label{bHW_noSection} with the above I got referenced to ...
2
votes
1answer
28 views

Latex, make a text label{…} for duplicates of text snippet

I'm trying to set up a letter that is going to several addresses. I had an idea of writing the names and mark them with a \label{}, then to insert them wherever I need them in the letter. Example: ...
4
votes
0answers
73 views

How to place cross references in center margin between two columns

How can I put all cross references in the center margin, with those for the left column vertically positioned above those for the right column? The text will wrap to additional pages, and the cross ...
2
votes
1answer
30 views

\autoref does not show the right reference name

In my tex document I have 3 environments for Definition, Theorem and Lemma. The numbering of them should be continuous as follows: Definition 1.1 Theorem 1.2 Lemma 1.3 Definition 1.4 ... I got it ...
1
vote
1answer
26 views

Remove colored box of \ref locally [duplicate]

I have a theorem A and another one whose numbering is the numbering of A followed by a prime. However, I don't want the red box of the numbering for the second theorem, and this is the single place ...
6
votes
1answer
110 views

Cleveref: abbreviation for following page(s) (f./ff.)

I want cleveref to display references to page ranges of one or two pages as "5f." or "5ff." instead of "5–6" or "5–7" respectively. According to Martin Schröder's comment in Reference to page-range: ...
3
votes
3answers
65 views

Getting the `\pageref` out from under `hyperref`

I thought I was pretty cool when I modified \ref to also print a page number when the referenced float was more than a few pages back. But I really want it to be a nice link using the hyperref package ...
4
votes
1answer
77 views

get the value of the current counter

I'd like to recover the value of the current environment counter and store it for my own uses, e.g. in the example below I'd like to store (not print) the number 1. With \@currenvir I can get the ...
2
votes
1answer
45 views

Couldn't reference the figures [closed]

I am trying to reference the figures in [2] with [1]. The figures are inside multicols. When I compile it, I just get ?? in the refs. I get the error in [3]. What am I doing wrong? [1] References to ...
0
votes
0answers
23 views

cross-references from other documents [duplicate]

I'm writing on a large document with many tables. Rules require me to provide every table as a standalone PDF file as well, so I do this: In main.tex: \documentclass{article} \usepackage{standalone} ...
0
votes
0answers
19 views

Change the Order of “Author, Title, Year” in Reference When bibstyle=numeric [duplicate]

I would like to have authoryear as my citation style while having numbers in the reference page. I have done the following: \documentclass{article} ...
3
votes
3answers
178 views

Is there a way I can separately store all of my new commands in a single file?

Basically what the title says. I feel like if this is possible it's probably well known but I didn't find anything from searching. I just want to have a single place where I can store all of my new ...
3
votes
2answers
183 views

Bibtex error message: I was expecting a `,'

I have been trying to fix my bib-tex reference file for a while now, and keep getting the same error message: This is BibTeX, Version 0.99d (TeX Live 2015) The top-level auxiliary file: _Gilead ...
1
vote
0answers
33 views

Problems with references to figures and tables

I am finishing my course conclusion work writing using LaTeX, and insert the images I used standard codes, such as \begin{figure}[!h] \centering \includegraphics[width=13cm]{lixeoutroa} ...
5
votes
2answers
148 views

Conditional pageref for labels far away

Currently, within my thesis, I am numberings theorems (and remarks, etc.) with a global counter. This makes it difficult in the printed version to find the theorem if a reference is too far away from ...
2
votes
1answer
30 views

cleveref: changing conjunction for pair

I want to change the conjunction used for a pair of equations. It keeps printing "and", I've tried a few different with \crefpairconjunction but I just can't get it to work. I didn't find anything ...
2
votes
1answer
27 views

How can I create list of sections that a command appears in?

I have a modular document that specifies the following command; \newcommand{\specify}{A block of warning text} I need to include at the end of the document a list of references for every section ...
0
votes
1answer
12 views

Is it possible to insert a cross-reference within a lstlisting

Is there a way to use the \ref{} inside an lstlisting? Like this: \begin{lstlisting} \ref{sec:name} \end{lstlisting}
3
votes
2answers
52 views

Change style of references to memoir's subfloats

Is there a way to configure the style of references to memoir's built-in subfloats, i.e. when using \subcaptionref, and \ref? For example, is it possible to remove the parentheses? From the memoir ...
3
votes
1answer
69 views

Combine cross reference to multiple figures

I am writing a paper in Automatica journal format. The sample and style file can be found here. I want to use a cross reference to serveral figures such as Fig.~\ref{fig:aaa,fig:bbb,fig:ccc} and get ...
1
vote
0answers
48 views

Refer to specific place in reference

What is the revtex standard (or commonly accepted practice) to refer to an equation/table/figure/section in an external source? (i.e. when I don't know the \label, therefore cannot use \ref). For ...
0
votes
1answer
29 views

How to plot all the sectioning levels using \ref{label}?

In following MWE, the \ref command returns the actual numbering of the subsection it refers to (here "a" -- cf. red box on the picture below). How to make it to return "1.a"? In more generic terms : ...
1
vote
1answer
76 views

Bibulous not recognizing references in included file

I am using the Bibulous tool to create nicely customizable bib styles (see also Create clean and simple custom bibstyle) i.e. this tool uses an alternative command to parse the *.bib file and create ...
0
votes
0answers
22 views

linguex refer to multiple parts of an example

I frequently use linguex in my writing, and I sometimes want to reference multiple parts of an example. \ex. \label{X} \a. This is an example \label{Xa} \b. This is another example \label{Xb} ...
5
votes
1answer
67 views

Label and reference a symbol that represents a statement?

For example, suppose A \iff B \iff C. What's a way to put a number (like equation number) on each \iff symbol, label them, and reference them separately later?
4
votes
1answer
103 views

Replacing \citet and \cref with a single command (acme of laziness)

What would be the easiest way to accomplish the following? I want a single command, say \vcref, which automatically becomes \citet if all of its arguments are in the list of references and otherwise ...
3
votes
1answer
123 views

Bates numbering of multiple pdfs with label reference to the page numbers

I really didn't think this was even possible until I came across, cross-referencing-to-included-pdf-with-counter-and-argument-in-the-label, reading that post gave me some hope. I have a document, ...
2
votes
1answer
52 views

Multiple cross references (not citations)

I'm trying to refer to multiple references (not citations) at once and I can't figure out how to do it, and have it display the way I want. Essentially I want to refer to figures 1.4, 1.5 and 1.6 and ...
4
votes
1answer
62 views

label/reference isn't working properly [duplicate]

I am labelling my first table and then referencing it later, but the number that comes up when I reference it is completely different from the one in the caption. I am expecting Table 1, but I am ...
1
vote
0answers
32 views

Auto-create a list of conjectures from given documents

I have three mathematical documents. I want to auto-create fourth document, which should show all conjectures and problems from the first three documents. I mean that the following should be ...
3
votes
1answer
25 views

How to use correctly the reference on lstinputlisting command?

In my tex I have this command: \lstinputlisting[breaklines=true,label={lst:use_case_ip}]{ch5/code/get.txt} \captionof{lstlisting}{HTTP Request where string was found} which generate 1.2 value when ...
5
votes
1answer
104 views

making external references stick out

I am splitting some text into several files, so there are external references. These I would like to emphasize in some way, for printing, like: "theorem 7 (from OtherPaper)". Since there is a lot of ...
4
votes
0answers
57 views

\cref not referencing \chapter which is in separate file [closed]

I started using \cref from the cleveref package because it gives me better readability than \autoref from hyperref package. But I am having problems with \cref command not recognizing the label that ...
2
votes
0answers
29 views

Create a graph of references

I have a document containing references to sections (and figures and tables). I would like to generate a graph (V,E) of the following kind. The vertices (nodes) are the sections and the v1 -> v2 is ...
2
votes
1answer
75 views

Indices and References in Lyx

I am currently writing my thesis in LyX and I have a lot of references to use. Since I have no idea how BibTex works and to save time, I put my references as Index entry. However, this will not be ...
3
votes
1answer
47 views

How can I make \pdfbookmark anchor on the page where a figure locates?

I want to direct to a series of figures included in text. So I added something like \pdfbookmark[1]{Figure 1}{fig:1} But it goes to the same point it occurs in the source text, not the exact ...
0
votes
0answers
14 views

How to split a tex file while still keeping correct equation references? [duplicate]

I need to split a manuscript into main text and online supplement, as required for publication on a journal. The problem is that in the online supplement, I refer to many equations and theorems in the ...
3
votes
1answer
50 views

Labeling a text and referencing it later

Is there a way to attach a label to a string and then refer to that string with a reference? For example, \labelText{This is a text that is also a tag}{label:text} and then refer to this string ...
2
votes
1answer
30 views

cleveref and ulem/soul compatibility

I'm trying to use uwave and cleveref together: \documentclass{article} \usepackage{ulem} \usepackage{cleveref} \begin{document} \uwave{\cref{sec:A}} \section{A} \label{sec:A} \end{document} After ...