{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.
1
vote
0answers
30 views
using xr with import package
I am working on the following project. It is a series of labs designed to teach numerical computing.
https://github.com/byuimpact/numerical_computing
The latex files are organized into to ...
0
votes
0answers
32 views
Incorrect references to lemma numbers [closed]
The following code correctly produces 9, 10, and 11 as the Lemma labels but 6, 6, 11 when the references are printed. What could be causing this? (6 happens to be the chapter number.) All the other ...
1
vote
1answer
32 views
Problem cross referencing when using include tcommand to include multiple files
I have been dealing with a Latex bug for the past 4 months that I have been unable to resolve. The issue is that a lot of my cross references come out as ?? when I use \include{filename} from a ...
2
votes
0answers
95 views
\ref, \autoref and hyperref expansion
I'm trying to write section numbers to a file with the newfile package.
In details, this MWE basically tries to write to a .ref file with lines like A-B. The A and B are generated by \label and \ref ...
2
votes
1answer
22 views
Is it possible to get the name of the referenced item together with a label?
If I define a figure, table, code listing or anything similar with a caption and a label, how can I get the item name together with the reference label?
For example, if I define a figure:
...
5
votes
1answer
86 views
Export page numbers of references
I would like to export the page numbers of all the inner references of my document. How can one achieve this? Equivalently, how can we export the section/chapter number of all the inner references?
...
4
votes
1answer
63 views
Using Coloured Dots for References
I'm writing a document which contains multiple copied entries of several online dictionaries. In order to make the references simple enough, I thought of assigning each dictionary a colour and to put ...
4
votes
2answers
102 views
Reference to my subfloats always reference to Fig 1a, 1b or 1c
I have a document where multiple figures with subfloats are included, like this one:
\documentclass[pdftex, a4paper, oneside]{scrartcl}
\usepackage[lofdepth,lotdepth]{subfig}
\usepackage{graphicx}
...
2
votes
2answers
72 views
How do I configure a \ref of a \label to print more than just the number? [duplicate]
I am using \label in conjunction with \ref for my equations. For example
\begin{equation}
\label{eq:grav} F=\frac{G m_{1} m_{2}}{r^{2}}
\end{equation}
as shown in equation \ref{eq:grav}
which ...
2
votes
1answer
43 views
label for package: fancyvrb
I have a latex code for a computer program code like as specified in here. I want to write a label to this code. I searched for it but was unable to find how to add label for the source code. Any help ...
3
votes
0answers
55 views
LyX Jurabib Style References Not Possible [closed]
I was able to write the bulk of my thesis on LyX and I thought it will end that way. With the whooshing sound of the deadline in my ears, I am desperately looking for your help.
I am trying to insert ...
8
votes
3answers
140 views
algorithm2e + cleveref: problem with wrong reference to line numbers
For some reason I do not understand, cleverefproduces wrong references to line numbers of listings produces with the algorithm2e package. I hope that I did not miss a simple solution ...
My example ...
0
votes
0answers
40 views
Figure 2 is referred to as Figure 3 [duplicate]
The caption of Figure 2 (label: F:mnDiagram) is printed correctly, but when I use \ref{F:mnDiagram}, the output I get is 3 (instead 2).
What could be wrong?
2
votes
0answers
63 views
enumitem-zref: reference items automatically [closed]
I am trying to use the enumitem-zref package in order to reference automatically all item of an enumeration. Here is a simple example (found on the Internet, but seems to agree with the ...
1
vote
1answer
121 views
Get rid of the word “equation” in cross references
I'm using the thesis template that comes with LyX and whenever I make a cross reference for an equation it comes along with the word "Equation XX.YY" and I just want the number "XX.YY".
The document ...
3
votes
1answer
84 views
Reference to section where is label
I have these equations with one label:
\section{This is super math section}
\begin{eqnarray}
c + d \\
\label{eq:eq2}
a + b
\end{eqnarray}
But how to do if I want get the section number where is the ...
2
votes
1answer
101 views
cref reference format for label type `' undefined
I have this error that I suspect comes from the fact that my tables and figures are in a slave file. It seems that cleveref does not manage to see the "class" of my float. I tried with varioref and I ...
2
votes
1answer
130 views
LaTeX - Standalone - figure reference in nested subfile error
for a few days I've been stacked with a problem which no manual or documentation resolved, please help:
I have my 'main.tex' report document file, where I use the 'standalone' package to load the ...
3
votes
1answer
89 views
Labeling and adding caption inside a figure
Seems like this question is rather closed. However, I feel that something is missing there.
Inside a figure environment, the \caption alone is nice, but its real power comes from the combination with ...
5
votes
1answer
60 views
re-define \ref and \label to include source filename?
I have a set of documents each with references that look like:
\ref{figure1}
and so on. This is no problem when building each document separately,but creates many
duplicate references when using ...
8
votes
2answers
113 views
References to named theorems
I would like to know how to give theorem type environments names and then how to later reference them using those names.
I was able to use this thread to create named theorems. However, this seems ...
3
votes
1answer
138 views
Smartly omit chapter number in equation numbering
In my thesis I use chapters, sections and subsection. I like to have my equations numbered with respect to section, but I want the displayed equations numbers not to include the chapter number. ...
3
votes
3answers
127 views
Is it good/bad style to use \label in preamble or package/class file?
I would like to use \labels to organize a package file that has become too long to be navigated by simple scrolling.
It seems that this doesn't cause any errors, but I'm not sure if that's good ...
2
votes
2answers
84 views
Problem with cross referencing using gather environment
I am using gather environment to write bunch of equations. When I try to cross-reference those equations, the equation number doesn't show up. Here is my code
\documentclass[12 pt]{article}
...
18
votes
1answer
215 views
Where will a theorem be used?
I have once seen a book (Graph Theory by Reinhard Diestel) where the author flags his theorems by adding on the left/right of the page the reference number of later theorems where said theorem will be ...
4
votes
1answer
63 views
Using amsthm to number examples - how do I account for altered examples (i.e. 1', 1'', etc.)
I have sought long and hard for a solution to this and experimented with a combination of http://tex.stackexchange.com/a/43351 and http://tex.stackexchange.com/a/443, but could not get it to work.
I ...
1
vote
2answers
61 views
How do you reference (in your document) enumerated items listed in your reference list?
How do you reference (in your document) enumerated items listed in your reference list? i.e. I have the code:
~\ref{itm:ref1}
In the body of my document and:
\label{itm:ref1}
In my reference ...
2
votes
0answers
29 views
Problem with hyperref/cleveref interaction and specially tagged equations [duplicate]
I would like to resolve the infamous warning destination with the same identifier (name{equation.0.1}) has been already used, duplicate ignored in my MWE below.
Reading around this site, the package ...
3
votes
0answers
78 views
\autoref doesn't work correctly when used in tufte-book
i want to use the \autoref command (from the hyperref package) in the document-class tufte-book.
mini-example:
\documentclass{tufte-book}
\usepackage{hyperref}
\begin{document}
...
3
votes
1answer
64 views
How to remove parentheses when I refer to some lemma or proposition
I have the following TeX document:
\documentclass[12pt,a4paper]{article}
\usepackage[left=19mm,right=19mm,top=20mm,bottom=22mm]{geometry}
\usepackage{makeidx, graphicx, amsmath, amsthm, amssymb, ae}
...
4
votes
1answer
68 views
\crefname for several layers of an enumerate: problem with enumitem
I want to use the \crefname macro from the cleveref package to set the label names on several layers of an enumerate environment. The following code works very well:
\documentclass{article}
...
0
votes
0answers
27 views
Numbering of \ref within the list environment [duplicate]
This took me a while to find an answer for, and I couldn't find an answer on here, so I thought I'd post and answer my own question.
Somewhere in a latex file, we might have some figures, like so
...
1
vote
1answer
190 views
\autoref with links that include only the number, but not the text, and have counter-dependent colors
I would like the functionality of hyperref's \autoref, but in a way that the link border box covers only the number and not the preceding text (e.g. "section"). This is normally possible with the ...
1
vote
0answers
58 views
Minted cross reference line
I used to use listings a lot but minted+pygmentize has outstanding output. However, there are a few features from listings that are hard to find in minted, like having the line numbers on the right.
...
0
votes
1answer
58 views
Number equation with previously used (auto-assigned) number [duplicate]
Assume you have a long text (i.e. a thesis/book/etc) with a lot of equations per chapter. At some point later in the text, you not only want to reference an equation but actually spell it out again, ...
2
votes
2answers
75 views
Specify arabic numerals in \ref{}
I've two documents, doc1 references lists in doc2 through package xr.
In doc2 the lists are numbered with arabic numbers, but when referenced in doc1 using \ref{tag} they show up as roman numbers. How ...
2
votes
1answer
53 views
\ref for data file sources
I am writing my bachelor's in statistics and use a lot of freely downloadable data for my analysis, eg from http://www.fueleconomy.gov/.
The question is, how do I list and \ref the files TeX way? I ...
3
votes
1answer
120 views
How to make a really basic reference?
I'm trying to make a really basic reference.
Let's say I have theses lines in my document :
Lorem Ipsum ...
Lorem Ipsum ... [1] here ... Lorem Ipsum ...
Lorem Ipsum ...
I want to anywhere in my ...
3
votes
1answer
62 views
Labels are printed in PDF
I really don't know if I changed a thing in my preamble but suddenly all labels are printed in the form ?{label}? in the top-left of every labeled object.
My main document is
...
5
votes
1answer
44 views
Link to the bibliography chapter
How to make a reference to the bibiography chapter in the document?
What I need is something like:
For information about source please refer to the Bibliography.
I want the word "Bibliography" to ...
1
vote
1answer
99 views
error in \ref-numbering for figures in tufte-latex [closed]
please run this mini-example:
\documentclass[]{tufte-book}
\begin{document}
\begin{figure*}
\rule{1in}{1in}
\caption{Figure 1}
\label{fig:f1}
\end{figure*}
\begin{marginfigure}
...
2
votes
3answers
134 views
\ref doesn't work in math mode if hyperref and bidi packages are loaded [closed]
Is \ref supposed to work in math mode? If hyperref and bidi are loaded, it generates errors:
\documentclass{article}
\usepackage{hyperref}
\usepackage{bidi}
\begin{document}
Testing labels with ...
8
votes
2answers
83 views
Ease the handling of labels
I want to ease the handling of labels in my document, and I want to show the label for a section if define a "variable".
Currently I'm doing it like this
Setting the up the "variable":
...
6
votes
1answer
102 views
Nomencl Reference Section Number
I'm writing a PhD thesis that includes many similar symbols. Therefore, I'd like to list in the nomenclature the section number at which each symbol is initially using (and therefore defined in the ...
8
votes
2answers
171 views
algorithm2e noend option produces wrong label
I have a problem with the algorithm2e package. I want to reference the end of a block, e.g., a for-loop, in my text. Therefore, I place a label behind the closing bracket of the for statement. When I ...
1
vote
0answers
79 views
Is it possible to make LaTeXit reference internal equations properly?
Minimum example in LaTeXit text mode
\begin{equation} \label{1}
x^2
\end{equation}
\eqref{1}
Explain how to get \eqref{1} to typeset as (1) rather than (??) and you've solved my problem
I ...
5
votes
1answer
62 views
Multiple labels in Cref
Following is a simple code to show my problem with the cleveref package. When using multiple labels it breaks on the second label...
\documentclass[11pt]{article}
...
2
votes
1answer
158 views
How to list citing papers under each of my paper?
I have papers p1, p2, p3, .... Under each of them, i'd like to list papers that cite them:
p1
[1] c11
[2] c12
...
p2
[1] c21
[2] c22
...
...
I can build *.bib files for each of my papers, but I ...
3
votes
2answers
96 views
Is it possible to declare a footnote in a way that it will attach to the first occurrence of a given word or phrase?
Is it possible to declare a footnote in a way that it will attach to the first occurrence of a given word or phrase?
Doing this in a fully automated way might not be possible (see link below), but if ...
2
votes
1answer
79 views
Unable to reference figures
I have inserted the following figure into my latex document
\begin{figure}
\centering
\includegraphics[width=0.5\textwidth]{Figures/magnetic-sandwich.jpg}\\
\caption{A magnetic multilayer (a ...


