{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
1answer
11 views

Refer to a glossary entry

I want to refer to a glossary entry from my text or form another entry in the same or from another glossary. What's the label I have to put in my hyperref options like \ref{<label>} or ...
4
votes
1answer
50 views

Reference to enumerate item with manually set label

In my document, I have made an enumerate with several items I will need to reference to. They are numbered with a simple (1), (2)... , but I need a (2') as well. To reference nicely, I was using ...
2
votes
1answer
24 views

Automatically insert “in the next [chapter/section/subsection]” if reference is sequential

I'm aware of the cleveref package \cref which adds the correct reference name (see: Automatically inserting "Section", "Subsection", etc). I have a few references which refer to ...
3
votes
1answer
42 views

Reference to a slide, not to a frame

This MWE gives me the reference of the frame (1) not the slide (2). I need to have the number of the slide where is a label, how to do this? \documentclass{beamer} \begin{document} ...
2
votes
0answers
109 views

I want to use latex to write a big document with three types of tables

Very concise (vague) question: (4th edit) I want to use latex to write a big document with three types of tables (tableA,tableB,tableC), over time (dates), indexed by many keys(key1,key2,key3,...). ...
4
votes
1answer
123 views

How to automatically links questions and solutions with the Exsheets package?

I'm writing up some lecture notes that contain questions/problems for the reader scattered accross the text. The solutions are provided in the end of each chapter. Exsheets appears to be a nice ...
0
votes
0answers
20 views

Beamer : how to avoid the lack of access to labelled slide (not frame) numbers? [duplicate]

In this animation, I need to access to the number of some labelled slides (not frames) to use this numbers in overlay specification. As far as I know it is not possible What then should be the good ...
3
votes
1answer
44 views

Give an error if I dont reference a label

I would like to have LaTeX compilation (I use pdflatex) give an error if there exists one label in my document that I do not reference. Is this possible? This is to ensure that I mention every table ...
0
votes
0answers
22 views

Turn a warning (“Unused label”) into an error

The following example, a follow-up of Give an error if I dont reference a label, generates a warning: \documentclass{article} \usepackage{amsmath} \usepackage{refcheck} \begin{document} ...
3
votes
2answers
31 views

Undefined references within equations

So my problem is that there seams to be a clash between something in my preamble and the \label{} and \ref{} commands. When I do references within my definition environment it all goes smoothly, but ...
0
votes
0answers
7 views

Problem with the order of reference using IEEEtran [duplicate]

I'm working in my thesis using the IEEEtran reference. \bibliography{bib_DST_Master} \bibliographystyle{ieeetr} But, I have problems with the order from reference. For example, below picture shows ...
1
vote
1answer
25 views

Problem with referencing to the the number of an equation when using arabic support of babel

Unfortunately, I have a problem when using babel with arabic. When deferring to the number of an equation, the digits are reversed. In the below document when using (\ref{eq:10}) it gives (01) instead ...
1
vote
0answers
24 views

Texmaker/TeXstudio insert label

Is there any way to invoke the list of labels (and then select one for insertion in the text) using either TEXmaker or TEXstudio? As far as I can tell, in TEXmaker you only get the list of labels ...
0
votes
0answers
16 views

Latex figure referencing error. Does not match in the text and in the caption of the figure

I have this: \usepackage{subfigure} \usepackage{wrapfig} \usepackage{hyperref} \usepackage{cleveref} When I try to use automatical referencing in the text it shows Figure 4.1.2 which is the ...
0
votes
0answers
10 views

table label comes out as section label

I'm writing my dissertation in Texmaker and I have a problem in a section. The problem is that I have different tables and in this section only, the cross reference for the label comes out as the ...
0
votes
1answer
25 views

Reference year sequence change

I am working with a report type document, with the settings of: \usepackage[round]{natbib} % omit 'round' option if you prefer square brackets \bibliographystyle{plainnat} \setlength{\bibsep}{18pt} ...
1
vote
1answer
16 views

''Proof of Theorem x'' header trough modification of \ref

I had a problem that was solved in a previous question, and that now is coming back. The idea was to use \ref for internal links with color A, and \cref with nameinlink option in cleveref (!) and ...
3
votes
1answer
42 views

Changing the output of \ref depending on the position of the corresponding \label

My document contains parts and sections. When I refer, for instance, to the section I.1, I would like \ref to output 1 when it is located in part I, and I.1 otherwise. Thus, I would like my document ...
3
votes
1answer
52 views

How to deal with a tilde in url's in Mendeley?

If a link in an url contains ~, Mendeley changes it to $\sim$ and hyperref links just don't work. I use pdflatex and biblatex. Is there a quick way how to change manually the link in Mendeley to fix ...
2
votes
1answer
46 views

How can I conditionally reference a figure?

So here's my knitr .Rnw file: \documentclass{article} \usepackage{hyperref} \hypersetup{} \begin{document} \let\ref\autoref <<plot,fig.cap='try'>>= if(rnorm(1) > 0) x = rbinom(1, 100, ...
3
votes
2answers
714 views

Extra “appendix” when referencing using cleveref in elsarticle

How do I get rid of the extra "appendix" appearing when I cross-reference an appendix section? Example output is "...see appendix Appendix A". MWE as follows: \documentclass[preprint,3p]{elsarticle} ...
1
vote
2answers
49 views

How to make a custom \crefformat dependent on language chosen with babel?

For my custom class I use the cleveref package and define new custom reference styles: \crefformat{figure}{Meine tolle Abbildung ~#2#1#3} Is there a way to make this command consider the language ...
0
votes
1answer
33 views

point after a Cross reference for section in article

I use the commands \label and \ref in my article but I had a point after the number; for example, in Section 5. How do I remove this point ?
17
votes
3answers
778 views

hyperref links break with babel + hebrew (or right-to-left language)

Using the babel package to write Hebrew text exposes incompatibilities with all sorts of other packages. This questions is about the incompatibility with hyperref. Basically, you can't get links with ...
1
vote
1answer
10 views

Problem with cross reference and threeparttable - Lyx

I'm having an issue with cross reference using Lyx. I'm using threeparttable with cross reference inside a float. Although the table number is 1, the compiled file shows me "Table 2" when I cross ...
1
vote
0answers
20 views

Is there a LyX way to add multiple cross-references to a document?

I am using refstyle and can successfully call \chapref{label-1,label-2} in an ERT, which produces the desired "Chapters 3 and 4", but I was wondering if there was a way to do this via the GUI which ...
13
votes
2answers
14k views

Reference multiple subfloated figures using \ref{X,Y,Z} to give Fig. 1a,1b,1c in text

I want to reference labels in the sentence, as above in the code: like this - \ref{X,Y,Z} to give "Fig. 1a,1b,1c" or "Fig. 1a-c" in text. \documentclass{article} \usepackage{subfig} ...
0
votes
1answer
120 views

achemso package: referencing multiple figures

I am using the achemso package to submit a paper to Environmental Science and Technology. When I include a reference to a figure (\ref{Fig1}), the figure number appears preceded by the word "Figure." ...
3
votes
1answer
60 views

Cleveref-like command in ConTeXt

Following ConTeXt garden, I set up theorem environments like in the below MWE. I wonder if ConTeXt has a command similar to \cref from the LaTeX package cleveref which automatically adds "Corollary,", ...
22
votes
5answers
497 views

Find point of page break in an external document

I am creating multiple versions of a document from a single LaTeX source. Specifically, I have a series of lessons that have an instructor version (with notes and answers) and a plain student version. ...
0
votes
1answer
34 views

Table cross-chapter reference works fine but shows “??”

When I reference a table in a posterior chapter in my thesis, instead of the correct table number it puts ??. However, the link works correctly, and the table appears in the List of Tables fine. I ...
4
votes
2answers
22 views

Beamer: label ref wrong display format

I am having trouble with the format of the referenced subsection in Beamer \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{default} \begin{document} \section{mysection} ...
0
votes
1answer
48 views

Giving book reference to figures

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl} \usepackage{amsmath} \usepackage{amsmath} \begin{document} \begin{figure}[H] \centering \includegraphics[scale=0.5]{1.png} \caption{Motion of ...
3
votes
2answers
60 views

\ref overlapping following text

I am looking to reference a section heading in my work but when I use \ref{label} the section number overlaps the following word. I am using the ifmbe document class. (textcomp package is being used ...
0
votes
0answers
27 views

Why no label text 'Definition' shows up when cross referencing to a Definition in lyx?

According to this page Cross reference in LyX, no label text 'Definition' shows up, just the number, when cross referencing to a Definition in lyx. Any suggestion? Thanks.
1
vote
1answer
35 views

How can I cite the subfigures in this form figure (a-c)

I have formatted the subfigures in a figure as following \usepackage{subfigure} \begin{figure} \centering \subfigure[]{\label{fig:sub:a} \includegraphics{...}} \subfigure[]{\label{fig:sub:b} ...
4
votes
2answers
52 views

How can I cite one sub-equation in subeqnarray?

I defined the following subeqnarray \documentclass{article} \begin{document} \begin{subeqnarray} & a_1+b_1=c_1, \label{eq:subeq1} \\ & a_2+b_2=c_2, \label{eq:subeq2} \\ & ...
2
votes
1answer
43 views

Automatically label every item in lists

This is somewhat a follow-up question to "Vertical spacing in enumitem list". Note that the question is incorporated into the example below. \documentclass{article} \usepackage{enumitem} ...
0
votes
0answers
36 views

How to use French-style numbering? [duplicate]

I recently saw an MO post http://mathoverflow.net/a/209494/2383 which claimed that LaTeX does not support French-style numbering, where references to (3.7.6) appear as (6) inside Subsection 3.7, as ...
0
votes
1answer
24 views

Make reference to a bibliography subsection generated by biblatex

I am using biblatex in my document. I have divided the bibligraphy in 2 subsections, one for scientific articles and the other for codes and regulations. For that I used keywords, as suggested in the ...
2
votes
1answer
31 views

How to get \ref to automatically output Table, Appendix etc.? [duplicate]

When I use \ref my output is just the number of the table or letter of the appendix. So for example in my MWE below when I enter See \ref{Test1} my output is See 1.1 and for See \ref{AppendixA} output ...
1
vote
0answers
8 views

reference to figures in the appendix is not correct in REVTEX [duplicate]

I would appreciate any help with a problem that I have with reference to figures in my appendix. For example, instead of (Fig. A.1 ), I only get (Fig. A). I read all the previous posts but they did ...
0
votes
1answer
19 views

Is there a difference between heving \label before or after \caption? [duplicate]

I am wondering if it is recommended to adhere to a convention of defining labels before or after captions. Moreover, if that is the case, why?
5
votes
3answers
2k views

Place parentheses around a cross-reference

Is possible to surround a cross-reference with brackets or parentheses? For example when I write a command like some text \ref{some label} then when compiled the output was some text (12) without ...
2
votes
0answers
79 views

Help with a custom references style

So...I'm not the only one who needs to use some custom style in their bibliography. As I'm annoyed with using office word editors I would like to create a tex template that I can use over and over and ...
3
votes
1answer
76 views

customised label value number and number with alphacharacters

I would like to print the affiliation number only and number with alphabetic characters. Please find MWE below. \documentclass{article} \usepackage{hyperref} \makeatletter \newcounter{subaff} ...
1
vote
1answer
59 views

Using \lstinputlisting to include portion of file using labels instead of line numbers

I know I can include a portion of a code file like so: \lstinputlisting[language=XML, firstline=37, lastline=45]{source_filename.xml} But the line numbers will change if I modify the code file. Is ...
1
vote
1answer
20 views

RevTex4-1 figure reference wrong number? [duplicate]

I have included a graphic using \includegraphics into a \begin{figure} \end{figure} in revtex4-1. The figure appears in section II (i.e. 2) but the caption of the figure says Fig.1 (this is not a ...
4
votes
1answer
66 views

latex thinks reference is undefined

I know that very similar questions have been asked before, but the solutions do not work. I have the following latex code; \documentclass[a4paper,10pt]{report} \usepackage[utf8]{inputenc} ...
3
votes
1answer
182 views

Varioref, cleveref and autonum together

I'm trying to mix varioref, cleveref and autonum to have the following behaviors: Automatic adding of reference type (i.e. adding "section" when referencing a section). -> cleveref; Adding the "on ...