{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
3answers
89 views

How can I reference a formula with an on going numbering?

I work with LaTeX for long time and I used eqnarry. But that's obsolete so I gave equation and aligned a try. The problem is, that if I reference to my equation it shows the chapter numbering (?), but ...
4
votes
1answer
84 views

How can I reference line numbers in an external source file (e.g. C++) in a maintainable way?

I doubt there's a very efficient way to do this, but LaTeX seems to be capable of just about anything. I'm writing up a document to explain a piece of C++ source code to future users of the package. ...
2
votes
1answer
60 views

Is it possible to use abbreviations with cleveref?

I would like to use the full name in most circumstances for references. But sometimes, e.g. in $\xRightarrow{\cref{prop:15.2d}}$ the full name might be too long. In this example, it gives ...
7
votes
2answers
49 views

Problems with theoremref

I'm having some problems with the theoremref package. Basically, instead of giving me as output something like "Lemma 1.1.1", where "Lemma" is the name of the theorem, it gives me something like "lem ...
8
votes
1answer
60 views

Reference range of sections with a dash

In my document, I reference a string of sections within a sentence. A representative example would be: I am referencing Sections \ref{A}, \ref{B}, \ref{C}. This then comes out t something like: I ...
4
votes
1answer
76 views

biblatex: segmented bibliography with name of chapter

I am writing a document with chapters where references for each are sectioned in a 'global' bibliography (Using biblatex/biber). I get properly sectioned bibliographies (e.g. 'References for Segment ...
2
votes
0answers
42 views

Reference in chapter's name. How does it look?

Have you ever come across to a reference in chapter's name? More precisely, I'm about to use reference to a equation in the name of one appendix - there is no way to describe that particular equation. ...
1
vote
1answer
72 views

Why isn't eqref working?

I am trying to use \eqref as in the following, but instead of (1), I get a set of blank parentheses as the result. Could anyone help me fix the problem? \documentclass[10pt]{article} ...
6
votes
1answer
126 views

Hyperref does not work for legend labels inside \subbottom

When I use Hyperref package together with memoir class, and when I put a label to a PGFPlot inside a subbottom environment, and try to reference to it, an error reported: ! File ended while scanning ...
1
vote
1answer
57 views

How to create inner section like environment with sub-table of contents?

Is there an easy way to create a inner section like environment that can produce a sub-table of contents at a preferred location? The sub-table does not necessarily need to give page numbers, but it ...
5
votes
0answers
68 views

customizing cleveref for pair of subfigure references: [1a and b] instead of [1a and 1b]

I am using the cleveref package and I am very happy with it. However, I encountered one problem I wasn't able to solve. I am probably just not combining the syntax correctly. This is highly connected ...
5
votes
1answer
41 views

Get ref to show full, cumulative reference to nested item

I'm using enumitem and trying to label items with only their current level, but reference them with their full "absolute" value. Here's a sample document: \documentclass[letterpaper]{article} ...
4
votes
1answer
79 views

How to change the font of a cross reference made using \ref

I am using the Cambridge University Press book class cambridge7A (available at http://authornet.cambridge.org/information/productionguide/laTex_files/ and much used by CUP authors) A minimal example ...
4
votes
0answers
68 views

Format \ref as a roman numeral? Strange bug [closed]

How do I get a \ref to format as a Roman numeral? At the moment I have the code: \newcommand{\appendixref}[1]{Appendix~\romannumeral 0\ref{#1}\relax} This works great... except for when it ...
2
votes
1answer
148 views

Reference a slide in Beamer

I have an example in my beamer presentation which I mention in another page. I want to include the page of that example in an automatic way. Here is my code. The reference to the example is on the ...
4
votes
1answer
33 views

Glossaries: “see” having no effect

I tried to implement the glossaries package in my document and it works pretty well. But when it comes to the "see" option, I'm currently facing some trouble: whether I include a see=entry2 or not, is ...
10
votes
3answers
3k views

\pdfendlink ended up in different nesting level than \pdfstartlink

I started using showkeys in one of my documents and see this error \pdfendlink ended up in different nesting level than \pdfstartlink A bit of google suggests that this "happens when hyperref is ...
2
votes
0answers
61 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? ...
3
votes
1answer
33 views

references don't show up properly with use of some unusual *.cls

\documentclass{imuwbth} \begin{document} \chapter{chapter1} \begin{dfn}\label{WP} \emph{WP} is called something when it meets: \begin{equation}\label{W0}\tag{W0} 0=0 \end{equation} ...
44
votes
4answers
1k views

What is the advantage of using the notation 'fig:' in the \label {}?

Reading manuals I always find figure labeled as \label{fig:name}. I wonder where is the advantage of using this notation with fig:instead to start with the name it self. If in my document I have only ...
3
votes
1answer
75 views

Macro for reference to a figure with a page number [duplicate]

I have Figure \ref{sp} which gives Figure 3 I want to get Figure 3, p. 13 Is there any macro for a reference of figure and page number?
3
votes
1answer
55 views

Lyx cross refernce to figures not working when there is a new line between caption and label

When I put a new line between the caption and label of a figure float, the cross referencing is shown as "Figure ??" in the resulting PDF file. The hyperlink in the PDF however, works just fine. After ...
3
votes
1answer
93 views

Leading zeros when cross referencing

I have a custom counter and output it with leading zeros. When I reference it, I get some real strange output, but the enumeration itself works. Preamble: \newcounter{reqcount} ...
12
votes
4answers
683 views

Printing labels along with equation numbers

Working with documents with huge amount of equations it becomes cumbersome to go back and remind yourself what you labeled a certain equation to (I try to name them in a smart way, but there are too ...
7
votes
2answers
55 views

Reference-able custom section numbering

I am writing some lecture notes from a class that I have on Monday, Wednesday, and Friday. What I would like to do is organize them by sections defined by the week and the day, e.g. 1M, 1W, 1F, 2M, ...
14
votes
2answers
243 views

Crossreference in Ref Range [(1a-1e) to (1a-e)]

I am just a beginner in LaTeX, I am facing a problem in Ref Range, \documentclass{article} \usepackage{amsmath,amsfonts,amssymb,cleveref} \begin{document} \ref{eq1a,eq1b,eq1c,eq1d,eq1e} ...
5
votes
1answer
61 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 ...
6
votes
2answers
66 views

Smart cross-references between 2 volumes using Zref package

Following the post How to enable smart references when using xr-hyper package for producing multi-volume book? I tried to elaborate required solution using zref package as was suggested by @Andrew ...
1
vote
0answers
34 views

How to refer theorem of different directory?

My thesis contains several chapters, which I have named like Chapter1, Chapter2 etc. Each of these chapters have a separate folder which contains its files. All these chapters are contained in a main ...
4
votes
1answer
80 views

\ifnumcomp + \ref

I have a definition with 20 cases or so, and a proof about that definition has one case for each case of the definition. I'd like the proof cases to reorder themselves automatically when I reorder ...
5
votes
2answers
333 views

How to draw legend lines in caption/text without including original plot's TikZ picture?

I would like to reference some plot lines in text/captions. It is possible by defining a label for the plot in the corresponding axis environment. However, I'm using externalization and only want to ...
5
votes
0answers
63 views

How to enable smart references when using xr-hyper package for producing multi-volume book?

I'm using xr-hyper package by @David Carlisle and smartref package by Giuseppe Bilotta to compile a multi-volume book. xr-hyper enables cross-references between different volumes as shows the ...
5
votes
1answer
147 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.} ...
1
vote
1answer
72 views

How to refer to a (La)TeX counter early in the document?

I am programmatically typesetting a long document from database contents. For reasons of efficiency, I would like to output all generated LaTeX code as early as possible. I would also like to provide ...
3
votes
1answer
79 views

Why is my cross reference not working and some other questions

I am a TEX beginner and I am now learning how to create a reference. I am reading the book "The Not So Short Introduction to LATEX2" by Oetiker, Partl, Hyna, Schlegl; on page 42 section 2.8 Cross ...
3
votes
0answers
30 views

Include values of \ref, \eqref into a new document [duplicate]

I have an introduction to my thesis. It includes a lot of constructions like in Section \ref{sec1} is shown or the formula is given in \eqref{eq1} whereas the corresponding Section and equation are in ...
2
votes
1answer
39 views

Referring to .bib-file with subscript

I can't compile after I referred to my .bib-file with the reference: title = {{Modeling O₂ transport as an integrated system limiting V(O₂MAX}}, Any help?
0
votes
0answers
68 views

MikTex TOC links incorrect when setting title

When I generate a document with toc and a title by adding the lines: % Book Name % by Author Name The toc links to the book are all off. I'm running the following command: pandoc --toc ...
3
votes
0answers
53 views

extract cited entries from bibliography with biber [closed]

According to the manual and many posts I should be able to do: biber --output_format=bibtex test.bcf And I'll get a new .bib file called test_biber.bib containing all cited entries in test.tex, ...
10
votes
4answers
12k views

How to reference subfigure in caption

I used to have code like this: \caption{In \subref{fig:foo:a} you can see...}. Now I switched to using memoirs subtop/subbottom command instead of \subfigure. How can I refer to that subfigure? As a ...
4
votes
1answer
38 views

Table of contents and Cross-referencing in multiple chapters

This is a follow-up to the question Cross-referencing in multiple chapters. Following the answer to this question, I am using the following macros: \newcommand*\maybechapter[1]{% % Tests if ...
4
votes
1answer
42 views

Alternative eqref command (generating a footnote)

Sometimes I think it is helpful to have a visual reference to a cited equation, besides its reference number. Let me give a (manual) example of what I'm talking about: \begin{document} (...) ...
6
votes
1answer
73 views

How to refer a particular item in enumthm

I tried to use LaTeX to write a definition. It looks good but is there another way to avoid hard-coded (d)-item in the last item? \documentclass[a4paper]{article} \usepackage[T1]{fontenc} ...
6
votes
1answer
60 views

Reference to pgfplot with margincap

I was using references to parts of a pgfplots plot, which worked perfectly. However, when I changed the document to use margincaps, this breaks: I get a warning that one reference is undefined, and ...
5
votes
1answer
58 views

Need labels and refs in longtable rows [duplicate]

In a longtable, I need the first column to display numbers based on an enumeration by references to labels. This means I can refer to the rows somewhere else in the text. I imagined it would help to ...
1
vote
0answers
71 views

Hyperlink between footnote mark (left after an author's name) and footnote text

I use \thanks{} to leave a footnote after an author's name. What I would like is that, when the reader clicks on the footnote mark, s/he be automatically taken to the associated footnote. Is that ...
7
votes
2answers
82 views

Cross-reference to the next section, whatever it is

Some sections of my document start with a remark such as the following: "This section may be omitted at the first reading." I'd like to add to this text a (hypertext) reference to the next section ...
4
votes
1answer
92 views

smartref package: Problems when referencing from math mode \text{}

I'm getting errors when using smartref's \sectionref command (or similar) from inside amsmath's \text{...} environment inside math mode. MWE: \documentclass{article} \usepackage{amsmath} ...
2
votes
0answers
36 views

How to refer to a figure or table and have its number printed instead of the section number? [duplicate]

In a LaTeX document I have several figures and tables and I need to reference some of them. I tried putting the label in different positions and figured out that it worked when I put the label next to ...
4
votes
1answer
53 views

Mix hyperref and varioref

I like that hyperref gives me results like \ref{eq:first-equation} % yields "equation (1)" and that varioref gives results like \vref{eq:first-equation} % yields "1 on the following page" but ...