{cleveref} is a package that enhances LaTeX's {cross-referencing} features, allowing the format of references to be determined automatically according to the type of reference.

learn more… | top users | synonyms

5
votes
2answers
72 views

Reference with compound labels

I created an environment, Procedure, using the package tcolorbox. The procedures are numbered by \thechapter-\theproc and I would like to use cleveref to refer to them. Here is a minimum working ...
5
votes
0answers
31 views

\vref and \vpageref (from varioref) at page boundary are reported except if cleveref is used

The following MWE (borrowed from varioref: \vref or \vpageref at page boundary (may loop)) shows that \vref and \vpageref (from varioref) at page boundary are reported by errors (or warnings if ...
1
vote
0answers
27 views

Compress “page” label with varioref and cleveref

In case of multiple cross-references of same kind (say sections), even if not consecutive, cleveref's \cref command compresses the references' labels by using the plural form: for instance, ...
1
vote
1answer
21 views

Incompatibility between sigplanconf's \thanks and cleveref

There seem to be an incompatibility between cleveref and the \thanks command of the sigplanconf class (see here for more info). Here's a MWE showing the issue (using the latest sigplanconf v3.2): ...
0
votes
0answers
24 views

Relation between \cref and \newtheoremstyle

In two previous questions (i.e. Distinguishing \ref and \cref through different colors, and ''Proof of Theorem x'' header trough modification of \ref) I addressed some problems I had with hyperref ...
6
votes
1answer
30 views

Multiple references to same footnotes in memoir with cleveref and french babel

I'm trying to have multiple references to a footnotes, in a class memoir (or report) and using [french]babel and cleveref. According to this question Multiple references to the same footnote with ...
4
votes
2answers
62 views

How to get cleveref to explicitly list each reference rather than joining them?

I am using cleveref's \cref{label} command with multiple arguments. I want to ensure that it explicitly lists all three sections that I am referencing regardless of if they are in order or not. At ...
3
votes
2answers
45 views

cref and external documents

I want two things: 1. to be able to use \cref across different files and 2. to display certain environments (just the theorems for example) from an external file. What I mean by (2) is the ...
0
votes
0answers
16 views

Rearrangment of label numbers when I change one [duplicate]

I am trying to prepare a document full of equations. The labels for equations are set to be \label{eq:<equation number>}. Sometimes I change some equations (for example \label{eq:21}) at the ...
5
votes
3answers
82 views

How can I get cleveref to compress multiple references to the same section?

I was hoping that I could get cleveref to compress multiple references to the same section, the way it compresses multiple references to the same page. Alas, I cannot figure out how to do it. ...
2
votes
1answer
43 views

cleveref and amsthm — incorrect environment name

I have theorem environments that have the same theoremstyle which I define through amsthm. I want them all to share the same counter. This way, a lemma that follows theorem 1.2.6 will have the number ...
2
votes
1answer
54 views

Change subcaption label format

I need to have subcaption labels (and references) be of the format Fig. 1a Instead of the default "(a)", and be able to reference them with \cref Unfortunately, I can't seem to get any ...
6
votes
1answer
111 views

Cleveref: abbreviation for following page(s) (f./ff.)

I want cleveref to display references to page ranges of one or two pages as "5f." or "5ff." instead of "5–6" or "5–7" respectively. According to Martin Schröder's comment in Reference to page-range: ...
3
votes
1answer
117 views

How does one use cleveref in an arxiv submission?

cleveref (in particular \cref and \Cref) does not seem to work on Arxiv, resulting in "??" instead of the correct reference such as "Section 2" or "Theorem 3". Is there a workaround? Note that arxiv ...
2
votes
1answer
43 views

Cleveref interaction with theorem subnumbering

I have included sub-numbered theorems according to the suggestion for this question: How do I get sub-numbering for theorems (Theorem 1.A., Theorem 1.B., Theorem 2.)? This works great, and it ...
2
votes
1answer
99 views

How to get \cref to print “Fig.” in emacs?

I'm having trouble using \cref in emacs' AUCTeX + RefTeX mode. The pdf shows the reference to a picture as "section 1.3" instead of "Fig.1a" (see snapshot below) as it should, when ...
5
votes
2answers
148 views

Conditional pageref for labels far away

Currently, within my thesis, I am numberings theorems (and remarks, etc.) with a global counter. This makes it difficult in the printed version to find the theorem if a reference is too far away from ...
2
votes
1answer
31 views

cleveref: changing conjunction for pair

I want to change the conjunction used for a pair of equations. It keeps printing "and", I've tried a few different with \crefpairconjunction but I just can't get it to work. I didn't find anything ...
0
votes
0answers
22 views

Is there a way to use \cref along with xepersian package

Is there a way to make \Cref command work along with xepersian package. For example, in the following code the name of the theorem is not shown by \cref; just the number is shown just like \ref. ...
3
votes
1answer
74 views

Combine cross reference to multiple figures

I am writing a paper in Automatica journal format. The sample and style file can be found here. I want to use a cross reference to serveral figures such as Fig.~\ref{fig:aaa,fig:bbb,fig:ccc} and get ...
4
votes
2answers
68 views

Cleveref messes up theoremstyles

I use different theorem enviroments that should in theory all have the same style due to my code. They do as long as I don't load the cleveref package. If I load it, only corollary stays the same. How ...
4
votes
1answer
104 views

Replacing \citet and \cref with a single command (acme of laziness)

What would be the easiest way to accomplish the following? I want a single command, say \vcref, which automatically becomes \citet if all of its arguments are in the list of references and otherwise ...
2
votes
1answer
53 views

Multiple cross references (not citations)

I'm trying to refer to multiple references (not citations) at once and I can't figure out how to do it, and have it display the way I want. Essentially I want to refer to figures 1.4, 1.5 and 1.6 and ...
4
votes
0answers
57 views

\cref not referencing \chapter which is in separate file [closed]

I started using \cref from the cleveref package because it gives me better readability than \autoref from hyperref package. But I am having problems with \cref command not recognizing the label that ...
2
votes
1answer
31 views

cleveref and ulem/soul compatibility

I'm trying to use uwave and cleveref together: \documentclass{article} \usepackage{ulem} \usepackage{cleveref} \begin{document} \uwave{\cref{sec:A}} \section{A} \label{sec:A} \end{document} After ...
2
votes
0answers
28 views

cleveref vs. IEEEtrantools/IEEEeqnarray [closed]

It seems that it is not that easy to get IEEEtrantools and cleveref to work together [1,2,3,4]. My question is of a somewhat more general nature: Is it actually worth the effort? cleveref clearly is ...
3
votes
0answers
31 views

Incompatibility between `floatrow` and `cleveref`

Consider the following MWE. If you comment out the line \usepackage{cleveref}, it works fine. However, if this line is not commented, the pdflatex command just stalls (no error is shown). Any ...
7
votes
2answers
69 views

Referencing an in-theorem list item without the preceding theorem number

I am trying to define a variant of \ref that picks out only the item number of an in-theorem list item without the preceding theorem number. For example: Theorem 1.1. (i) Something important. (ii) ...
4
votes
1answer
136 views

`\Cref` (package `cleveref`) problem with `subequations`

I found a bug with these three settings used together. Basically, I need to use subequations for (only) one equation. In this example, it is on page 1. I also need to use ...
3
votes
1answer
92 views

cleveref hyperlink not working in beamer

I have a problem that i cannot find anywhere else. Consider the MWE below: \documentclass{beamer} \usepackage{cleveref} \begin{document} \begin{frame} \frametitle{toto} \begin{equation} ...
4
votes
1answer
70 views

automatic numbering of labeled equations

Since autonum doesn't play nicely with cleveref (nor does the mathtools automatic numbering option work for me), I'm looking for a simpler solution. I'd like equations to be numbered automatically if ...
3
votes
1answer
43 views

autonum and cleveref conflict

The following code produces erroneous output. When I put cleveref first, it doesn't pick up the references at all. When I put autonum first, really weird stuff happens. See the images below. I ...
1
vote
0answers
32 views

Parenthesized subfigure references except when already in parenthesis

I would like to style my subfigure references as Fig. 1(a) in running text and (Fig. 1a) when parenthetical. The subfigure labels are created using this code. (I would prefer to use subcaption like in ...
3
votes
1answer
71 views

Is it possible to remove parenthesis from single cref references?

I am using cleveref to crossreference everything. Sometimes I write the reference inline like eq.(1). That is fine. But when it is enclosed in parenthesis it turns out like (eq.(2)). Which is not so ...
0
votes
0answers
6 views

Create cross-reference like “in the previous section” where appropriate [duplicate]

Is there a referencing command that will use the wording "the previous section" or "the next section" if appropriate, and default to "Section x.y" (as in cleveref)? \documentclass{scrartcl} ...
3
votes
2answers
69 views

Changing cleveref type for a single chapter

I have an appendix in my thesis that, due to fancyheader constraints, I define as \chapter* and not \appendix. However, now when I refer to it using \cref I get "chapter", I can change this manually, ...
0
votes
0answers
35 views

Varioref and Cleveref inconsistent while redefining page

I am trying to use cleveref and varioref. I read here how should be the correct order of loading the packages. Also saying that \vref and friends would become clever since cleveref changes the ...
5
votes
1answer
57 views

cleveref and aliascnt: referring to subequations and inequalities in a smart way

Preliminary Remark: A document may contain labels referring to equations and subequations, respectively. Moreover, some of the equations may actually represent inequalities. When using the cleveref ...
1
vote
1answer
50 views

Forcing abbreviations with cleverref

As an apposite situation of this question, I would like to use cleveref, but it constantly prints unabbreviated text (Chapter, Section, etc.). Is there a way to force the abbreviated form (Chap., ...
1
vote
0answers
28 views

Using cleveref with 2 different styles

I like to style my \cref as following (Geophysical Prospecting): Type 1: Fig. 1, Fig. 1(a), Fig. 1(a,b), Figs 1 and 2 Type 2: (Fig. 1), (Fig. 1a), (Fig. 1a,b), (Figs 1 and 2) I have tried with ...
2
votes
1answer
41 views

Always getting upright numbers in references created with \cref, with italic-correction for conjunction between references

How do I make it so that I get upright numbers all the time in references created with \cref? I believe I'm supposed to do this with \crefdefaultlabelformat{#2\textup{#1}#3}. But in my example below, ...
2
votes
0answers
122 views

Cleveref: Change behaviour of \Cref to use the abbreviated form

The journal International Journal of Solids and Structures uses always capitalised and abbreviated form of references, i.e. Fig. 1, Eq. 1, even at the beginning of a sentence. I use the package ...
5
votes
1answer
141 views

Is there a way to divide ONE figure to reference the subparts of the figure?

I have a figure that basically consists of smaller figures. I don't want to split the big image apart to put it together with latex for convenience. Instead, I want to reference each subpart of the ...
2
votes
1answer
139 views

Change cross-reference name of enumerated items using cleveref

I feel this is a really basic question, but I haven't figured out a solution after searching for half an hour so maybe other people will find this question useful as well. I'm using the cleveref ...
2
votes
1answer
50 views

Referencing sublabels without subfloats

Suppose that I have a figure with different panels and I want to use the command \cref to reference each one of the panels. A way to do this is to use the packages subfig, subfigure, or subcaption. ...
1
vote
1answer
24 views

Combine mdframed, xparse and cleveref

Inspired by this post: Typesetting a definition, I wanted to define some fancy theorem-like environments. Contrary to the examples given in this post, I need a definition environment with a counter ...
1
vote
0answers
14 views

How to tell cleveref to use the correct label type [duplicate]

I'm trying to use cleveref to reference some figures, but it is incorrectly labelling them as sections. (i.e. It will say something like Section 5.12 instead of Figure 5.1 in the text) I'm also using ...
1
vote
1answer
31 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 ...
4
votes
1answer
86 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,", ...
3
votes
1answer
197 views

“destination with the same identifier” warning with shared counters, cleveref and amsart

The following mwe \documentclass{amsart} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{theorem}{Theorem} \newtheorem{proposition}[theorem]{Proposition} \begin{document} ...