{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.
3
votes
1answer
31 views
Labels do not increment
In my document, I have a lot of short case studies, which I would like to number, just like figures. So I am using this:
\subsubsection{Case study \ref{cs:this}: Title}
\begin{figure}
\label{cs:this} ...
3
votes
1answer
41 views
Highlight referenced equation number
I have to give a talk, and I am using a LaTeX paper that I will write onto the blackboard. However, it is quite annoying to write all equation numbers on the blackboard, but I do want to have them all ...
0
votes
1answer
35 views
What is the counter name for verbments?
I'm trying to use the verbments package with the cleveref package. I need to find the name of the counter which is usually used for \ref{listing_label} to be able to define the name cleveref uses for ...
3
votes
2answers
49 views
Cross reference to align
What I want to do is to make a cross reference to program (P) and still be able to make cross references to each separate line in the alignment.
\begin{align}
(P)\quad \min ...
6
votes
1answer
29 views
Cross referencing: zref-xr does not detect .aux file of second document
So I am trying to crossreference labels across two documents: draft.tex and appendix.tex. When compiling I get the following error message:
./draft04.tex:16: Package zref-xr Warning: File ...
0
votes
0answers
23 views
Cleveref reference table as section [duplicate]
I am using cleveref for my references, and I just noticed that a reference to a table is actually resolved by cleveref into “section”. Is that indended behaviour? Is there maybe something wrong with ...
1
vote
1answer
33 views
Creating pagerefs referring to article version in beamer presentation
Is there any existing way to include references to page numbers in the supporting material in a beamer presentation?
Assume that I have two files, one for generating the handout in article class, ...
3
votes
1answer
58 views
How to give reference to used programming files in my thesis?
I am writing my thesis and I use a programming language to do the analysis of my empirical part in my thesis. I give interpretations, tables and graphics according to the code in the programming ...
3
votes
1answer
27 views
Abstract environment: interaction between hyperref and acronyms in ettauth.cls
I am submitting a paper for a journal that uses class ettauth.cls. Inside abstract I use some acronyms with the help of acronym package. I also load hyperref package for the cross-referencing. With ...
1
vote
0answers
13 views
Setting minimal number of references for cleveref's compression feature
I am using cleveref for cross-referencing. The default sort&compress option compresses three or more consecutive references into a range. I would like to get this compression already for two ...
0
votes
0answers
31 views
figure reference links go just below the figure [duplicate]
Is it common that when you click the reference it takes you just below the figure?
If I scroll up, the figure is right there. I am using the standard procedure
\begin{figure}[H]
\centering
...
3
votes
0answers
77 views
Is it possible to reprint an equation without actually rewriting it? [duplicate]
I have an equation like:
\begin{equation} \label{whatever}
x+y=1
\end{equation}
I want to write it again, keeping the same number. I know I could do the following:
\begin{equation}
x+y=1 ...
3
votes
2answers
72 views
referencing an item from enumerate in an article calss
I misspoke I meant I used enumerate not cases sorry.
Is it possible to reference a case?
I have \begin{enumerate} and then cases 1 to 4 where each case is a rather detailed.
I would like the refer ...
2
votes
2answers
66 views
Is it possible to refer some text from file1 in file2?
I have two files, say file1 and file2
suppose in file1
...bla bla bla, I am text in file1..., I want to repeat it in
file2... bla bla bla...
I want to repeat some text in file1 (I am text in ...
2
votes
0answers
44 views
Modified \pageref [duplicate]
I want to modify \pageref{...} to cite the actual label page number if it is not on the same page (to where the command is called), or to state 'On the present page' if it is, how can this be done?
...
5
votes
2answers
57 views
Theorem/remark/proposition/etc tagging/labelling
I have been wondering this for years, and never really had so much trouble that I couldn't bear not to know, but now I think I'll just ask and see if anyone knows.
It is common practice to label ...
4
votes
1answer
46 views
Automatic switching of arrows in references
I would like to use references in a way that an arrow is in front of the referenc and points in the direction depending on whether the referenced instance is a above or below the reference (→ chapter ...
2
votes
1answer
71 views
Referencing a figure throwing up '??', not '1'
I've only very recently started with LaTeX and can't seem to get this to work!
\documentclass{article}
\begin{document}
\begin{figure} [h!]
\centering
%\includegraphics[width=40mm]{UNSWlogo.jpg}
...
0
votes
0answers
19 views
Trouble with cross referencing in the appendices
I'm trying to get the figures and labels in my appendices to have the same format as the rest of the document. In my main thesis.tex file I use:
\backmatter % book mode only
\appendix
...
4
votes
1answer
49 views
How do I reference in appendix a theorem given in the body?
I have a theorem given in the body text of a paper, say Theorem 2 with label {theorem-abc}.
I would like to provide the proof of this theorem in the appendix.
1) How do I cross-reference this theorem ...
5
votes
3answers
68 views
How to get the section label from a label inside an enumerate-list?
When I define a label inside an enumerate-list I get a reference to the item number.
Is it possible to get a reference to the section?
Example:
\documentclass[english]{scrartcl}
\usepackage{babel} ...
0
votes
0answers
15 views
Different number in image caption and in ref to figure [duplicate]
I have figure with image like this:
\begin{figure}[h!]
\centering
\label{fig:controlsOpacity}
\includegraphics[width=120mm]{img/image_01.png}
\caption{some text}
\end{figure}
then I am referencing ...
2
votes
1answer
48 views
cleveref fails to reference algorithms
In the following example document, both \autoref and plain ref will correctly link and number an algorithm reference, but cleveref fails that task. It will just insert question marks instead. In ...
0
votes
0answers
27 views
Problem when using hyperref together with cleveref [duplicate]
As it says in the cleveref documentation hyperref must be loaded before cleveref. But at me I have to load at least one package between them and I would really like to know why.
The not working ...
2
votes
1answer
26 views
using a restatable before it is stated
This question is related to the question at Recalling a theorem, which uses the thmtools and thm-restate packages and the restatable environment to define a theorem that can be re-stated later on.
Is ...
0
votes
0answers
32 views
LaTeX numbering one figure incorrectly (Figure 2 instead of Figure 2.1) [duplicate]
All of my figures seem to be referencing correctly except for one. I have
Text text text \ref{fig:label}.
\begin{figure}
\begin{center}
<TikZ Drawing>
\end{center}
...
1
vote
1answer
45 views
Alternative numbering for theorem
I am using thmtools as a front end to amsthm and I have a definition environment as follows.
\declaretheorem[
style=mydefinitionstyle,
name=Definition,
numberwithin=chapter
]{definition}
...
4
votes
2answers
60 views
How to use Nameref with Algorithm2e
As the title suggests, I'm trying to reference to an algorithm created by algorithm2e package. Here is a MWE:
\documentclass[12pt,a4paper]{report}
\usepackage[linesnumbered]{algorithm2e}
...
3
votes
1answer
38 views
Latex Enumerated List referencing
In latex, when I'm trying to cross reference an item from an enumerated list, instead of getting 6.3, I'm getting 66.3,
My list is a normal list just like any other, only I'm declaring the codes ...
12
votes
2answers
77 views
Input manually a number into \eqref
Often while writing papers I find the need to cite particular equations from other papers. For example, the landmark paper by Einstein, Newton, and White (2015) lays out the theory of everything in ...
2
votes
2answers
58 views
Automatically add prefix to references from another document?
I'm using xr to reference equations in supplemental material to a paper. I'd like equations from the supplement referenced in the paper to automatically be prefixed with "S", so that ...
3
votes
0answers
65 views
fancy-preview with other \ref-like commands (such as \autoref and \cref)
I finally got fancy-preview working, and I found the place (around line 97) in the script to add to the list of environments which it catches (to add propositions and so on). But what I can't find ...
3
votes
1answer
52 views
How to cross reference with \renewcommand{\theequation}?
I change the default numbering of the equation. Instead of default "1" on the right side I put "Eq. (1)". The number inside the parentesis automatically changes.
But in the cross reference i need ...
0
votes
0answers
27 views
pdfTex, hyperref: jumps beetwen two pdf files [duplicate]
I use hyperref package and pdftex to generate a PDF file.
I have file_A.pdf and file_B.pdf.
I will assign a destination point in a file_B.pdf (not at first page) and use this destination to make ...
4
votes
1answer
61 views
References numbers
I'm writing a document with the class amsbook. I have several chapters, and inside the sections only (no subsections). I've used
\swapnumbers
\theoremstyle{theorem}
...
7
votes
1answer
82 views
Collapse “on page”s for multiple references in \vref
The code at the bottom produces
See equations (1) and (2) on page 6 and on page 11.
What I'd like is
See equations (1) and (2) on pages 6 and 11.
Otherwise it looks quite strange in my ...
4
votes
1answer
69 views
Is there a way to \label each page in an included pdf file?
I am including a PDF file as part of my reports appendices.
The PDF file does not have page numbers, these are added using pagecommand=\thispagestyle{plain} which continues the LaTeX page numbering.
...
1
vote
1answer
74 views
Prevent multiple equation numbers when using \allowdisplaybreak with align
I have a very long equation of the following format
\begingroup
\allowdisplaybreaks
\begin{align}
a &= very long expression here\\
+ & another long expression here\\
+ & another long ...
1
vote
0answers
28 views
references superscripting edition
Is it possible to superscript the edition number of a book?
It should look this way:
Author(year^edition):...
I am using BibTeX. At the moment my reference is printed like this:
CAMPBELL, J. B. ...
5
votes
2answers
43 views
Create \ref for nested enumitem \item without nesting in the output
Sorry the question is a bit awkward.
Basically I have nested \begin{enumerate} lists. I'd like something to appear like this:
1 Foo
1.1 Bar
Please see additional information in subsection 1
...
4
votes
2answers
59 views
Custom cross-reference formats (e.g. “Equation 1” instead of just “1”) [duplicate]
I have an equation system set up as below. When I reference it however, ie. with \ref{eqn:surfacetension}, it only prints the number '1', and not 'Equation 1'. How can I modify the code to do that? I ...
0
votes
1answer
172 views
“\caption outside float” error
I am trying to have a caption in a commutative diagram using the xypic package. But it is not working. I have written the code below:
\documentclass[a4paper,12pt]{article}
\usepackage{xypic}
...
1
vote
1answer
45 views
In the hyperref-pkg, is there a way to (sometimes) use abbreviations; e.g. tab. _vs_ table?
"Manually", both of the following do the trick (as far as I can tell):
\ldots as presented in table~\ref{tab:birds_and_bees} \ldots
\ldots as presented in tab.~\ref{tab:birds_and_bees} \ldots
With ...
3
votes
0answers
50 views
Referring to function name in an algorithm
I have a LaTeX code which looks similar to the following example.
\documentclass{article}
\usepackage{amsmath,algorithm,algpseudocode}
\begin{document}
\begin{algorithm}
\caption{My Algo.}
...
8
votes
1answer
45 views
How to make a conditional reference to a text label
I would like to make a conditional reference to an optional label in my latex document, see the Minimum Working Example below. Hence, IF the label exists somewhere in the document, THEN a reference ...
4
votes
1answer
76 views
1.a numbering of subfigures within a figure without a caption
I am using the subcaption package and write a caption for each of my subfigures. In order to get a reference to "Fig. 1a", I also have to write a "big caption" below all subfigures. But I don't want ...
1
vote
1answer
45 views
Multiple labels for enumerated item
In an enumerate-environment, I have merged two previously separate items being too similar in content. In my text, I refer to both, i.e. with two different labels. Now that they are merged this is a ...
19
votes
2answers
320 views
Understanding how references and labels work
I'm trying to understand why I cannot effectively reference figures or equations that I have defined with labels.
For example:
\begin{figure}
\label{fig:area_Treasuries}
...
1
vote
2answers
74 views
Get a table and figure on the same page with captions & labels
Here's what I'm looking for: I need a table and a figure to stay on the same page, while keeping captions & labels fully functional. Both the table and the figure need their own caption and their ...
4
votes
1answer
51 views
Bad cross-reference using titlesec
When I define two new level using titlesec, the reference doesn't work correctly.
This is an example:
\documentclass{article}
\usepackage{titlesec}
% First level
...


