{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
1answer
51 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
59 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
69 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
51 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
57 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
24 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
28 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
44 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)] ...
3
votes
1answer
69 views

Reference the number from a specific footnote later in the document

I am using Biblatex, Biber backend, and autocite for all of my references. I found this question (Biblatex: footnote citations. Two references to footnote in same slide), but it was never answered and ...
1
vote
2answers
42 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
89 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
51 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 ...
3
votes
0answers
57 views

APA 6th Edition Reference Problem [closed]

I have a problem in giving reference in APA 6th style. My reference code as below. The problem is that in reference section, there is no numbering, and on url reference, there is blue square. Another ...
2
votes
0answers
63 views

Why is Latex not writing all my bibliography references? [closed]

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 ...
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 ...
2
votes
1answer
62 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 ...
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
28 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
58 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
48 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
46 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", ...
1
vote
1answer
32 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
1answer
110 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 ...
3
votes
1answer
75 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
57 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
40 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
46 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} ...
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
47 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
53 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 ...
1
vote
1answer
52 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
35 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
15 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
55 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
76 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
43 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
50 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
100 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
37 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
60 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
80 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
55 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
28 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
173 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: ...