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

2
votes
1answer
45 views

LaTeX internal references for files and URLs

I have a document with nearly 100 open source files that are referenced repeatedly throughout. Also, with each file is a URL, download URL, MD5 hash, etc. Is there a quick and simple way to create an ...
2
votes
1answer
29 views

New environment with dedicated index and reference

I'm using chemfig to create some structural formulas, but I need to create a new environment, like equation, that have a dedicated index and reference counter. I'm searching about this, but I'm having ...
0
votes
0answers
9 views

How to add reference to a knitr figure chunk in lyx?

Is there a way to make the lyx dialog "add -> cross references" to find knitr figure chunks? I.e., is there a lyx built-in way to add references to knitr figures other than use \ref manually?
3
votes
1answer
37 views

enumerate with description and label for reference

I want to create an enumerated list with description of items and a label assigned so that each item can individually be referenced by \ref or \nameref It is obvious how to do this manually but I ...
1
vote
1answer
35 views

how to add a reference in non-standard format to a LaTeX bibtex file?

I would like to add this reference in Latex, could someone kindly help? How could I add it using bibtex? National Highway Traffic Safety Administration, ``Development of an FCW Algorithm Evaluation ...
0
votes
0answers
31 views

Clickable table of contents and non-clickable equation references?

I know that the hyperref package provides a clickable table of content and clickable equation references. How can I have clickable table of contents and non-clickable equation references ...
3
votes
1answer
42 views

How to reset equation label after arbitrary sections?

I have a problem in equations with same label. for example: \section*{first section} \begin{equation}\label{a1} E=mc^2 \end{equation} where \eqref{a1} obtained by .... \section*{...
0
votes
0answers
18 views

Highlighting combination of text and cited references [duplicate]

How can I highlight a text that has cited references in it as well? I am using \hl{} in package soul but it does not work when the text contains cited references in \cite{ } form as well. I appreciate ...
4
votes
2answers
33 views

Referencing named tcbtheorems

My objective is exactly the same as in this question, however, I would like to achieve this same effect with \newtcbtheorem from the tcolorbox package. For example \documentclass{article} \...
0
votes
1answer
34 views

Cross-reference and tikzpicture conflict?

When I Include this diagram to my memoir document % Requires \usetikzlibrary{shadows,positioning,backgrounds} \centering \begin{tikzpicture}[x=11.8mm,y=8mm] % some colors \colorlet{even}{cyan!60!...
0
votes
1answer
34 views

Reference to figure inside minipage [closed]

I want to reference to a figure inside a minipage but it won't work. The structure looks something like this: \ref{fig:test} \begin{figure} \begin{minipage} blablabla \end{minipage} \begin{minipage} \...
1
vote
2answers
41 views

Get label counter

When I do \ref{mylabel} to refer item from easylist, I'm getting 3., so the numbering enumerate works fine. But I want just 3... How can I get the numeric value, associated to this particular mylabel?...
2
votes
0answers
52 views

How can I use \ref to refer to a \label that's in another document?

I am writing a math textbook, and hope to have a separate solutions manual. I'd like for the manual to be able to refer to problems in the original book so that LaTeX, or I, can catch when the ...
-1
votes
0answers
45 views

I am not able to reference my figures/tables even when I compiled them twice [on hold]

I am not able to reference my figures and tables even when I compiled them twice. I am sure that I am referring to the correct label name...can someone please help?
1
vote
0answers
89 views

How do I extract my own papers from references as a list of publications? [on hold]

I'd like to extract my own papers from references as an independent page, say Publications. I following the answer with the highest upvotes from Including additional bibliography (publication list) ...
2
votes
1answer
28 views

changing color when lemma or theorem is cross-referenced

So, using hyperref I know how to change the color of "1" to blue when I say "using Theorem 1". But I want the entire "Theorem 1" to be blue. Similarly when I recall a lemma/theorem/proposition/...
3
votes
1answer
23 views

How to reference a figure without making the reference appear in the list of figures?

I referenced a figure in its title (ex: figure2.3: Model abc of researcher Jhon [3]). The problem is that the reference appears in the list of figures too as : (ex: Model abc of researcher Jhon [3].......
0
votes
0answers
29 views

The last reference is not aligned, why?

\bibliographystyle{unsrt} \bibliography{refs} \end{document} The last reference is not aligned, and I have tried different ones, but got the same result.
1
vote
1answer
27 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
124 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
94 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
40 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
18 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
49 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
27 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
25 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
32 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
79 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
37 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
29 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
29 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
18 views

Non english caption reference doesnt print the name

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

Undefined Reference Errors in Miktex [on hold]

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
38 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
94 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
62 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
27 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
41 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
0answers
38 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
28 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{...