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

0
votes
0answers
10 views

How to reference sections in other chapters mentioning the chapter?

I have an article class document with a structure like this. Part A Section 1 Section 2 Part B Section 1 Section 2 I want to reference Section 1 in part A from Section 2 in part B. When I ...
7
votes
3answers
75 views

Extract correct counter value of a reference

Somewhere in my document there is a theorem labelled theoremA that has the number 2.21. Later, I want to set another counter to that specific number 21. First, I tried ...
3
votes
1answer
24 views

Reusing same labels across different chapters

I am writing my thesis which uses classicthesis.sty style. The thesis brings together a collection of papers and put them as individual chapters (all the chapters are included in main.tex). Some of ...
1
vote
1answer
20 views

Question marks in cross-referencing after using pdflatex command

I am working on a software, to automatically generate *.tex-files with some predefined and generated text inside. After generating the files, I am calling the Windows command line (CMD) and try to ...
1
vote
1answer
10 views

Wrong page reference of bibliography

I would like to make a page reference to my bibliography, but it refers to the last page of the bibliography (page 2 e.g.). I assume it's because the label in the master document is after the ...
0
votes
1answer
25 views

lstinputlisting shows wrong number in reference

I'm pretty new to LaTeX, so please be a little patiently with me. So here is my problem: I got some text and there i want to reference a little bit code shown in the next line. What i tried so far: ...
2
votes
1answer
16 views

\Cref not working

\documentclass[Afour,sageh,times]{sagej} \usepackage[english]{babel} \usepackage{cleveref} \begin{document} \section{Introduction} \label{sec:Introduction} \Cref{sec:discussion} ...
2
votes
1answer
20 views

Can't change table reference format

I need to change reference to table to "табл. CHAPTER_NUM.TABLE_NUM", I was tried to do something like: \documentclass[a4paper, ukrainian, utf8, 14pt]{extreport} \setcounter{secnumdepth}{5} ...
1
vote
0answers
27 views

\pageref not working properly in main document with subfiles package and xr package

I have a main file setup with the subfiles package and the xr package. I am trying to make the \pageref command work properly for cross-references in the main file, but the page number it displays in ...
4
votes
1answer
47 views

Hyperref referring to the wrong label

I have this code in LaTeX and I am dealing with some dynamic work with labels and references. This code works - first reference references to the first text and second to the second but I want to ...
0
votes
1answer
23 views

Raising the hypertarget of chapter labels

When using twocolumn mode, it is a known issue that references to chapter headings point to the baseline rather than the chapter heading. In a previous question, I asked how to fix this for the ...
2
votes
1answer
57 views

Suppress unused equation number but keep counting

I would like to suppress equation numbers for unlabeled (or better, unreferenced) equations but keep the equation count going. I am using the align environment throughout. Imagine ...
1
vote
2answers
21 views

Problem with cross-referencing using hypertarget

I have some problems related to the application of an answer that I received to a previous question of mine, that can be found here. Below there is a MWE, where I used \clearpageextensively, because ...
2
votes
1answer
46 views

How can I ensure varioref generates unique labels when the document is split into separate files?

After adding the varioref package (to generate text like "Figure XX on page YY" from TeX input like \vref{fig:example}), I started seeing warnings like LaTeX Warning: Label `1@xvr' multiply defined. ...
1
vote
1answer
27 views

Using \Cref of cleveref package in enviroments created with shortcuts

I'm using the cleverref package. This is how I use it (and it works perfectly): \begin{proposition}[Lalala]\label{lol} Hahahah \end{proposition} It follows directly from \Cref{lol} I'm using the ...
0
votes
1answer
16 views

'LaTeX Error: Can be used only in preamble' when using \externaldocument

I'm using 'xr' package for cross referencing across files. I have three files named 'main', 'file1' and 'file2' where all the packages are decalred in the main file. I'm including the files in the ...
3
votes
1answer
20 views

Use enumerate to reference sections

I am writing a user manual for a few coworkers, and while the nature of the document does not need a table of contents, it does have an introduction with an enumerated list of the following sections. ...
1
vote
1answer
31 views

Subfigures. To add A and B to subfigures (in the top left corner), and to label them for referencing

I'm trying to set up a figure, so that it contains 2 subfigures. I would prefer if I could set them up with an A and B in the left-top corner (outside of the figure). However, I would also want to be ...
3
votes
1answer
36 views

How to number program listings like figures

Is there a way to number program listings like figures and reference them? I have the following mwe: \documentclass{article} \usepackage{hyperref} \usepackage{listings} \begin{document} ...
2
votes
2answers
49 views

Latex how to call subsubsections in text

I am writing a large text using Latex, where I use chapters, sections, subsections, subsubsections and paragraphs. My problem is that I would like to write, in my text, something like "this is ...
2
votes
1answer
41 views

References to figures has bad hyperlinks

In my LaTeX document I have some figures. They are automatically numbered using the chapters they are within, for example. Fig 1.1, Fig 2.3 etc. I am using mwart document class. My problem is that the ...
1
vote
1answer
45 views

Missing number treated as zero — but why?

I'm making my references page, and this is my first entry: Asch, Solomon E. 1955. “Opinions and Social Pressure.” Scientific American 193 (November): 31--35. I'm getting the following error message: ...
1
vote
1answer
30 views

How to ref the last number in a newcounter

In the following, I want to ref the last number. Thanks in advance \documentclass{article} \usepackage{xcolor,graphicx,amssymb} \usepackage[usestackEOL]{stackengine} ...
1
vote
1answer
24 views

Wrong \ref to chapters in appendix

I have a document where I want to include some questionnaires in the appendix (each questionnaire in a new chapter). The text contains crossreferences to the chapters in the appendix: ...
2
votes
1answer
36 views

Refer a label of a chapter in another chapter

I am writing a thesis in LaTeX. I need to refer a label of a chapter in another chapter. Is there any suggestion?
0
votes
0answers
17 views

Link to picture, not to the caption [duplicate]

I have a table with some condensed information, and want to have in it links to figures (a lot), that illustrate some of the observations in the table. Anyway, if the figures look like: ...
4
votes
1answer
53 views

\ref is automatically prefixing the string “Fig.” to figure numbers and “Table” to table numbers. Why?

I'm not sure what package I've loaded, but my figures are being printed automatically as "Fig. #", while my tables are printed automatically as "Table #". Is there a way to just get the number? ...
5
votes
1answer
30 views

How does the compiler choose between/rank multiply defined labels?

I'm in the process of importing independent papers into a thesis document. Since I'm not as forward-looking as I wish I were, I have used some of the same labels in the papers (for introduction ...
0
votes
1answer
31 views

Unresolved reference to picture

I have a strange problem that I am not able to solve. Basically the MikTeX compiler (latest) on Windows 10 (updated) is not able to find a reference to a Figure environment named fig:author:rendering. ...
2
votes
2answers
20 views

Cross-referencing between chapters

I am writing a thesis. In the main file of the thesis, I have included \usepackage{xr}. Then in Chapter2, I have included \externaldocument{./Chapters/Chapter1} to get access of equations of Chapter1. ...
1
vote
0answers
16 views

Reference numbers appearing before references section begins

My .bib file: \begin{filecontents}{\example.bib} @article{hsieh, title={Development accounting}, author={Hsieh, Chang-Tai and Klenow, Peter J}, journal={American Economic Journal: Macroeconomics}, ...
1
vote
1answer
35 views

Changing reference title to “Referanser”

I am trying to change the header of "References" to "Referanser", but it does not seem to work. At the start of the code: \documentclass{article} \usepackage{graphicx} \usepackage{amsmath} ...
4
votes
3answers
106 views

Associate dynamic text to a label

I'm trying to associate some text (dynamically generated with counters) to a label, so that I can refer to that label and print the text associated(without re-generating it, that would cause problems ...
2
votes
1answer
32 views

Why do the .bbl-file and BibTeX database not contain the same information?

I have a question regarding using references. It was all working the way it was supposed to work until yesterday night. I am writing my research proposal and I am citing a lot of papers. At some ...
1
vote
0answers
19 views

split output into multiple files [duplicate]

Is there a way to automatically split the output into different PDF files? The reason is that I want to generate a document "paper.pdf" and a different document "supplementarymaterial.pdf", with ...
2
votes
0answers
18 views

Clickable file links from in-text reference

I am currently using natbib to reference articles that I have in Mendeley. I have figured out how to get clickable links such that clicking on the in-text reference brings me to the actual reference ...
2
votes
1answer
25 views

Enumerate starting at equation number

The following MWE contains proofs of equations numbered (2) through (4). I structure the proofs using an enumerate environment, so that the proof of equation (2) is labeled with 2., the proof of (3) ...
1
vote
1answer
35 views

LaTeX missing reference [duplicate]

A weird, possibly trivial, problem is happening. After running pdflatex test with the following in the file test.tex % -*- coding: utf-8 -*- \documentclass[11pt]{article} \begin{document} ...
3
votes
2answers
27 views

How to refer to an inparaenum subitem within an enumerate item?

How can I typeset just the b (a subitem's label) without the 2 (the enclosing item's label) from a inparaenum list within a enumerate list? \documentclass {article} \usepackage {paralist} \begin ...
1
vote
1answer
12 views

Cross-referencing within table with set numbers

I need to reference in table cell to another cell in another table. In both cells should be exhibited a number - the same number (once as a plain text inserted by me and once as a cross reference). ...
0
votes
1answer
26 views

How can i avoid comma along with and in latex reference(.bib)?

Comma sign in Bibliography Last portion of above link contains both comma and and which is grammatically incorrect. How can i avoid comma?
4
votes
3answers
51 views

Part cross reference name clash with redefinition of \thepart

I want to use some automatic cross referencing (I am using hyperref in the whole document which I customized) to write something like : We see in \autoref{partname} that To print : We see in ...
1
vote
1answer
30 views

Label of theorems

Is there an equivalent of \figurename for theorems and lemmas? For instance, given that I've defined \newtheorem{theorem}{Theorem} \newtheorem{lemma}{Lemma} \newtheorem{example}{Example} and in ...
3
votes
1answer
23 views

wrong numbering in subfigure environment when caption is on top

I got wrong numbering with \subfigure environment when I use \ref to call a figure in the text. The problem only happens when I change caption position to the top of the figures (and yes, I need on ...
4
votes
1answer
37 views

How to refer a figure?

I am trying to add some results (images). I want to refer these images in other chapter(s) of the PDF so that the reader can just click the reference and go to the image directly. How I can do that?
1
vote
1answer
53 views

How to reference a chapter after using the \setcounter{chapter}{0} [closed]

I'm trying to create a reference the appendix. The appendix package is resetting the chapter and section exectly like I do and I started to notice this bug while using it... So I use the \setcounter ...
3
votes
3answers
86 views

What is the correct way to type "See Eq. (n)

I am writing a document with equations and I am used to refer to equations with \eqref{label}. However if I want to refer to it in a commentary with parenthesis (see Eq. \eqref{label}), it will make ...
1
vote
1answer
44 views

Remove last character from decription label in cross reference label

I read how to make a reference that has as a label the label of a description label (Reference name of description list item in LaTeX): \makeatletter \let\orgdescriptionlabel\descriptionlabel ...
5
votes
2answers
269 views

Multiply a label by 3 and print result

I would like to create a quiz for my students where the more parts I add to the question the more points it is worth. For each extra part, I want it to be 3 more points. In the following example, I ...
0
votes
0answers
32 views

Insert portion of code before every line break in gather environment

This is a follow-up question to Redefine equation environment: auto labeling. I want to have something like \AtEndEnvironment{gather}{\label{equ:\theequation}}(at the end) plus ...