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

Make proof reference automatically bind to theorem proven or label proofs in ascending order

I was wondering if there's a way to make every proof automatically reference the latest theorem used in my text, or, alternatively, have proofs be labeled with ascending numbers. Allow me to ...
8
votes
2answers
145 views

How can I redefine \autoref?

I am redefining a few things to support unique references in multilingual documents such that labels must only be unique within a given locale from the users perspective (obviously they must always be ...
4
votes
2answers
44 views

Clickable cross-references to deduction labels

I'm using the package proof for drawing deductions. The package supports labels. However, I'd like to have clickable cross-references to them. Is this possible? Note that I want the label to be a ...
6
votes
0answers
99 views

Abbreviated references: just the necessary references, no more

Legal reports in Germany often use a somewhat strange way of structuring. Instead of the usual numbers, we have A. (B., C. D. ...) for the first level, I. -- Roman numbers for the second ...
1
vote
2answers
43 views

How I can refer multiple equation in Latex?

Suppose, I want to refer multiple equations (1), (2), (3), (4), (5) and (7) so that they appear as (1-5, 7): \documentclass[fleqn,preprint,10pt]{article} \usepackage{amsmath} \usepackage{amssymb} \...
1
vote
0answers
28 views

Cross-referencing page numbers between two documents

I have two documents which I will subsequently merge (i.e. I will merge .pdf’s). In order to do that I have two issues to resolve, both have to do with cross-referencing. First, I use firstpage and ...
4
votes
1answer
46 views

bibtex, the last authors Initials are in a different order then the rest of the authors.

When I compile my .bib file using bibtex, the last authors Initials are in a different order then the rest of the authors. Consider the following example: the out put should be: Xu, L., Jordan, M.I.,...
1
vote
0answers
23 views

Invert First authors last name and initials in references using bibtex

I am using bibtex, the elsarticle document class, and the elsarticle-num-names bibliography style. Is there a way to have your references like this: Singer, A., Z. Schuss, D. Holcman, 2006. Narrow ...
1
vote
1answer
50 views

How to repeat text without duplicating it?

I have defined a command for writing down 'requirements' in my document. It automatically styles and numbers it and creates a label to which I can refer to get the number - really nice. However, ...
2
votes
2answers
28 views

Question marks in a reference to a table?

I have this code and when I compile (even several times) some question marks appear on the pdf in the place where the reference should be. Actually if we perform an Augmented Dickey-Fuller test on ...
3
votes
1answer
34 views

How can I make CleverRef subfigure references in smallcaps to be consistent with amsart?

The amsart document class automatically uses small caps for subfigure labels, i.e. (A), (B), (C) in small caps instead of (a), (b), (c). However, cleverref will still refer to these as fig. 1a, fig. ...
2
votes
1answer
34 views

Number theorems with subsections: “Theorem 1.2.3.4”

I would like my numbering of theorems to be like "Theorem 1.2.3.4" where 1 is the chapter, 2 is the section, 3 is the subsection, and 4 refers to the fourth theorem in this subsection. A solution is ...
3
votes
1answer
81 views

Equation counter does not work

My references for equations do not work. The numbers on the right side to the equation are fine, but the references all show 3.1.2 (which does not exist...) I show you my complete header with a ...
0
votes
1answer
42 views

Reference from a different folder

I'm writing my thesis and have trouble reference labels between chapters. My main folder look like this: Main Folder, where I have the main tex file and folders where I have the main tex file and ...
1
vote
0answers
16 views

All my citations now show up as the name of the reference in bold instead of a number [duplicate]

I'm writing my dissertation in sharelatex (first time user). I currently have a lot of errors in my code, which I'm working on getting rid of as we speak, to see if it fixes the problem, but if it ...
3
votes
2answers
31 views

change format of number in \ref

I'm using a custom counter with a newenvironment for the first time and don't quite understand the nuances. The only problem I have so far is that when I use \ref it gets the number I want but not the ...
1
vote
1answer
32 views

How to use normal label within a custom command for a definition of hypertarget?

I want to make a command that defines a \hypertarget with the target label (first argument of \hypertarget) by the contained \label and the target caption (second argument of \hypertarget) by its ...
4
votes
1answer
29 views

How to redefine label within a command?

I want to replace every occurrence of \label with a given command \mylabel but only within a given command \mycommand. \documentclass{article} \newcommand\mylabel[1]{Test} \newcommand\mycommand[1]{#...
3
votes
1answer
26 views

Non English caption reference doesn't print the name

When I try to reference caption it only shows the number of the figure without the name. For example it prints 1 instead of Фигура 1. I am using babel and typing in Bulgarian. Is this some kind of bug ...
1
vote
0answers
119 views

Undefined Reference Errors in Miktex [closed]

I have been getting weird undefined reference errors to 'Last Page' that point to the line corresponding to my end{document}. I have no idea what this means, but in any case, here is a minimum working ...
2
votes
0answers
41 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
101 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 \setcounterref{newcounter}{...
3
votes
1answer
66 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
22 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
12 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
28 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
46 views

\Cref not working

\documentclass[Afour,sageh,times]{sagej} \usepackage[english]{babel} \usepackage{cleveref} \begin{document} \section{Introduction} \label{sec:Introduction} \Cref{sec:discussion} \section{...
2
votes
1answer
23 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
1answer
53 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
50 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
30 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
65 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 \mathtoolsset{...
1
vote
2answers
26 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
48 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
38 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
31 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
24 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
38 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
39 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} \autoref{...
2
votes
2answers
60 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
52 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
56 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
39 views

How to ref the last number in a newcounter [duplicate]

In the following, I want to ref the last number. Thanks in advance \documentclass{article} \usepackage{xcolor,graphicx,amssymb} \usepackage[usestackEOL]{stackengine} \newcommand{\repeatntimes}[2]{%...
1
vote
1answer
33 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: \documentclass{...
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: \begin{...
4
votes
1answer
56 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
36 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
36 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
24 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. ...