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

6
votes
4answers
138 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
47 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} ...
1
vote
1answer
48 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 ...
3
votes
2answers
49 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 ...
2
votes
1answer
33 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
32 views

How to refer to ExSheets question using “Chapter.Question” format?

I've successfully configured ExSheet questions to write "Exercise 1.1", "Exercise 1.2", and so on before each exercise. But when use \ref{} command to refer to them, I get "Exercise 1", "Exercise 2", ...
4
votes
2answers
461 views

How to put \hyperdef{category}{name}{} at the same position as \label{name}?

I am using the hyperref package that comes without the destlabel option (I tried to use the most recent version of hyperref, but it doesn't work with my LaTeX version). So to be able to create named ...
4
votes
1answer
21 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
23 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
18 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
32 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)] ...
20
votes
1answer
2k views

Changing the appearance of equation numbers with amsmath

For equations in my document, I use the facilities of the amsmath package. In order to make the equation numbers more eye-catching, I want them to be in boldface and a little bit indented to the ...
3
votes
1answer
52 views

\hyperref fails when cross-referencing between different files

I am working on a multi-volume project where different volumes contain hyperlinks to other volumes. I use a technique described on this web-site in a number of posts, see e.g., Cross-referencing ...
1
vote
2answers
41 views

cross-reference for items in enumerate environment does not work

I wrote a topical reference for my booklet and my cross-reference for items in enumerate does not work. Could you please help to explain why it happened? \documentclass[twosides,9pt]{report} ...
1
vote
0answers
14 views

Separated references sections for appendix [duplicate]

The references in my document have the following requirements: My references need to appear before my appendices. My appendices contain new references. These references should not appear in the ...
1
vote
0answers
77 views

References not updating

OK, this is a bit of a weird one. I have the following: \documentclass[10pt,a4paper,notitlepage]{article} \begin{document} \ref{rnalg} \end{document} Obviously, this should give an undefined ...
4
votes
1answer
31 views

Reference to longtable wrong if \numberwithin{table}{section} is activated

I've encountered something weird while using the longtable package together with \numberwithin{table}{section} or \counterwithin{table}{section}: if a longtable is the first table in a section, it ...
2
votes
0answers
52 views

Why is Latex not writing all my bibliography references?

I've been writing a paper with BibTex bibliography but suddenly the .tex stop writing all the references I have in the .bib file, they are 15 cites (all used) and it only writes 9, why is so? Whay am ...
2
votes
1answer
43 views

cleveref and amsthm — incorrect environment name

I have theorem environments that have the same theoremstyle which I define through amsthm. I want them all to share the same counter. This way, a lemma that follows theorem 1.2.6 will have the number ...
0
votes
0answers
17 views

Simple custom tagging and cross-referencing in text mode? [duplicate]

Is there a simple way to create a custom tag in text mode (similar to \tag in math mode) which can be referenced using the standard \ref or \eqref commands? Inspired by How to label text with ...
1
vote
0answers
11 views

Error: \pdfendlink ended up in different nesting level than \pdfstartlink [duplicate]

I'm using overleaf to write my mnras report and I get this error when I am writing a caption for a figure. ./main.bbl:1: pdfTeX error (ext4): \pdfendlink ended up in different nesting le vel than ...
2
votes
1answer
24 views

Cross reference of an inline equation

Consider the equation \begin{align*} \dot{x}_i(t)=f_i\left(x_1(t),\ldots,x_N(t)\right) \\ + g_i(x_1(t),\ldots&,x_N(t))u_i(t),\tag{$\Sigma_i(u_i)$}\label{eq:subsystem} \end{align*} ...
3
votes
3answers
57 views

Single occurrences of special refererence style (using the automatic numbering) to a list item (without changing the style of the other occurrences)?

I have a list: \begin{enumerate}[label={[\Roman*]},ref={[\Roman*]}] \item\label{item1} The first item. \end{enumerate} What I want to achieve is this: In the most instances, I want to refer to ...
0
votes
0answers
32 views

Paste the content in .bbl file to the .tex file without the \bibinfo{author}, \newblock

When prepare the manuscript with tex file, I need to paste the content in .bbl file into the tex file before submitting. I would like to know how to obtain a simple bibitem. For example, this is one ...
1
vote
1answer
68 views

Problem using \includeonly

I have a problem using the \includeonly command. I have a large document and I wanted to split it up into sections- each section would be in its own file and I would compile only the current chapter ...
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. ...
1
vote
1answer
26 views

Ignoring redefined label

How can I make LaTeX ignore a \label that is re-used? That is, if I define a label twice, and then cross-reference it, I would like the reference to indicate the first definition of the label. For ...
1
vote
2answers
38 views

Shortcut for listinputlisting reference

I would like to know if it is possible to set up a command such that when the \ref of the Matlab \lstinputlisting is called, that the words "Matlab Algorithm X.X" itself becomes a hyperref link and ...
1
vote
1answer
24 views

Problem with cross references in table and algorithm

I am having a problem with cross references, which I have not been able to solve. I have a table and an algorithm which cannot be referenced. However, the behaviour in both cases is different: when I ...
1
vote
1answer
39 views

ref a table correctly inside enumerate items

\documentclass[11pt,english]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsfonts} \usepackage{graphicx} \usepackage[colorinlistoftodos]{todonotes} ...
1
vote
1answer
63 views

How to get a vectors components be a labeled equation?

Basically I would like to have the following in a single line instead of the line break right before \begin{alignat} $\begin{pmatrix} component1 \\ component2 \end{pmatrix}=$\begin{alignat}{2} 0 ...
0
votes
0answers
14 views

Reference Numbers missing at output [duplicate]

I am using BibTeX for my Bibliography. The problem I am facing is that, I am not getting the square numbers "1" at the output. Kindly help me please. Output PDF
2
votes
1answer
45 views

How can I reduce references to show only subsection numbers?

I use cleveref package to format a special type of labels. Can I also use a special counter or counter formatting sequence in \cref. This is my example: \documentclass[10pt,a4paper,twoside]{article} ...
1
vote
1answer
49 views

How do I insert a \in cross reference across components?

I am using ConTeXts project format, with each chapter using its own .tex file. In chapter 6, I want to refer to [fig05] in chapter 9. Looking at the wiki for \in there's no discussion of this. But ...
2
votes
2answers
421 views

cite references in the text by superscript numbers and listed at the end in order they are cited in the text

How I can cite references in the text by superscript numbers and listed at the end of the paper in the order in which they appear in the text e.g Engel KH, Heidlas J, Tressl R. Food is wonderful, I ...
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
59 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. ...
2
votes
1answer
31 views

Modify plainnat.bst to not include “note”

I am using natbib with my thesis, and in particular I am using a self-modified version of plainnat.bst to always respect capitalization in titles. Now, I'd like to make another modification: I never ...
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
0answers
74 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 ...
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: ...
7
votes
1answer
1k views

Cleveref: AUCTeX and RefTeX set-up

How can I set up cleveref to work with AUCTeX and RefTeX? I have tried the advice on Emacs, RefTeX and Cleveref – can they work together? but it didn't work. Additionally, when I hit enter, \ref{} ...
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 ...