{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
54 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 \...
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} \...
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 ...
31
votes
3answers
35k views

Using section sign (§) for cross-references to sections

In some papers and books you see that author uses §1.3 instead of section 1.3. How § sign can be added before section (or part, chapter, ...) number automatically? Please mention any useful tip about ...
9
votes
2answers
85 views

\ref with macro as parameter

I would like to write a macro (using Latex3/expl3) that can automatically refer to say plot using several key-value parameters. Here is what I currently have: \keys_define:nn{label}{ Re .tl_set:N ...
2
votes
1answer
66 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. ...
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 ...
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 ...
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 ...
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 ...
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. ...
3
votes
1answer
40 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{...
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: ...
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 ...
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{...
2
votes
0answers
143 views

! Missing \endcsname error… I can't find the problem

I can not compile my tex file into pdf using winedit 9. This is my issue. I have attached the tex file as well. Please any help would be appreciated in fixing this problem. The issue is apparently ...
57
votes
1answer
25k views

How to make clickable links and cross-references in pdfs produced by LaTeX?

How can I make things link url references, my index, table of contents, and cross references clickable links in documents produced by LaTeX? I generally use pdflatex to produce my documents.
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? ...
3
votes
1answer
71 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 ...
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. ...
6
votes
2answers
755 views

Cleveref's \crefrange and mixed equations and subequations

This example doesn't work with the latest version of cleveref. The line Refer to \crefrange{eqa}{eqc}. gives the output: Refer to ?? 1–3. It used to work before. Can anyone explain how to fix it? ...
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}, ...
2
votes
1answer
200 views

Order references alphabetically with “elsarticle-num-names.bst”

How Can I order my references alphabetically using the bibliographystyle "elsarticle-num-names.bst"? Here is a MWE, copied from the elsarticle template folder itself: elsarticle-template.tex: \...
8
votes
2answers
77 views

Is there a way to show Reaction instead of Equation when referring to an equation?

I'm writing a thesis in which I have both equations and chemical reactions. I was wondering if it can be changed something in equations referencing, so that when you refer to one of them that is a ...
4
votes
3answers
113 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 ...
1
vote
1answer
38 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} \...
2
votes
1answer
34 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 point,...
1
vote
0answers
20 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 ...
9
votes
1answer
8k views

I get double question marks when referring to labels inside figures

I have some charts embedded in figures, and I want to be able to refer to them easily using the "Figure x" notation. I'm doing it like this (in this order): \documentclass[12pt,letterpaper]{article} ...
3
votes
2answers
33 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 {...
2
votes
0answers
22 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
26 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
45 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} \...
1
vote
1answer
13 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). ...
1
vote
1answer
32 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 ...
4
votes
3answers
55 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
63 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
2answers
88 views

Operation mode in pgfplots (referencing from externalized graphics)

I am using the externalize feature of tikz/pgf to save space for my thesis. I am using TeXShop on a Mac. I am running into trouble referencing something in the main document from the externalized ...
3
votes
2answers
40 views

References for asparenum environment with counters depending on section

I'm writing math lectures using my own environment for definitions: \newenvironment{mydefs} {\begin{asparaenum}[\P\slshape\thesection.a]} {\end{asparaenum}} So every definition is numbered like "...
5
votes
2answers
277 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 ...
3
votes
1answer
42 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 ...