{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
1answer
23 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: ...
0
votes
1answer
26 views

Referencing style in Lyx

Journal example: Gray, Jo Anna. (1976). "Wage Indexation-A Macroeconomic Approach." Journal of Monetary Economics 2, 221-235. Book example Blanchard, Olivier J., and Stanley Fischer. (1989). Lectures ...
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} ...
1
vote
1answer
411 views

LaTeX external document referencing from Main tex file

I have a file structure like this Main.tex chapters (folder) Chapter_1 (folder) chap1.tex Chapter_2 (folder) chap2.tex To refence diagrams and equations from chap1.tex in chap2.tex, I ...
2
votes
1answer
19 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
24 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 ...
1
vote
1answer
39 views

Continuous multiple reference numbering

I want to have three different sections for my references. Lets say Reference1, References2 and References3. A custom ordering of my references. However, I want that the numbering of each Reference ...
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 ...
30
votes
3answers
33k 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
83 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
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
152 views

glossaries: display `see` reference but not page numbers

I am trying to display the see cross references but not the page numbers in my document. I understood that it's impossible with the means provided by standard, so I tried to use ...
0
votes
1answer
15 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
26 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
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 ...
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 ...
3
votes
1answer
19 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. ...
0
votes
0answers
42 views

Bibliography partially not recognized

I am creating a document in Latex with a lot of references. My issue is that when I run it to get the pdf, I get all my references in the chapter "References", but some of them appears as question ...
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} ...
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
54 views

URL of web page in bibliography not output

First time trying to write my thesis in Lyx which has been great up until this point, and getting rather close to submission time I have noticed that webpage references are not outputting with the URL ...
2
votes
2answers
47 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
28 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
23 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: ...
2
votes
0answers
129 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 ...
2
votes
1answer
44 views

Natbib references does not appear in the bibliography

I must have a bibliography like this one I use TeXstudio in Win7 I tried different natbib styles but until I was not successful. My code: \documentclass[11pt,a4paper,twoside]{memoir} ...
54
votes
1answer
24k 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
52 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
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 ...
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
30 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. ...
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?
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. ...
6
votes
2answers
658 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
112 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
75 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
105 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
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} ...
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 ...
8
votes
1answer
7k 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
26 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
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) ...