{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

0
votes
1answer
20 views

Raising the hypertarget of chapter labels

When using twocolumn mode, it is a known issue that references to chapter headings point to the baseline rather than the chapter heading. In a previous question, I asked how to fix this for the ...
1
vote
2answers
20 views

Problem with cross-referencing using hypertarget

I have some problems related to the application of an answer that I received to a previous question of mine, that can be found here. Below there is a MWE, where I used \clearpageextensively, because ...
2
votes
2answers
32 views

Can't redefine \crefname for default counters

I want to redefine cross-reference name for \subsection. That does work in the following MWE: \documentclass{scrbook} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} ...
1
vote
1answer
26 views

Using \Cref of cleveref package in enviroments created with shortcuts

I'm using the cleverref package. This is how I use it (and it works perfectly): \begin{proposition}[Lalala]\label{lol} Hahahah \end{proposition} It follows directly from \Cref{lol} I'm using the ...
1
vote
0answers
9 views

Change cleverefs conjunction for one reference

What is the best practice to use a different conjunction for a single reference with cleveref? Background: I would like to produce something like "Theorem~1, Lemma~2 and [external reference]". If I ...
2
votes
1answer
33 views

Cleveref sorting issue for enumerate lists with crefalias

Based on this question and on the useful answers, for each theorem environment I create a dedicated enumerate list which I "crefalias" to the theorem. By doing so, when I cleve-refer to a list item, ...
0
votes
1answer
17 views

cref change “range phrase”

I use \crefname{equation}{}{} to get rid of the "eqs." thingie. When I use something like \cref{eq:1,eq:2,eq:3} I get (1) to (3) but I'd rather get (1)-(3)
5
votes
2answers
59 views

strange caption numbers in cross-references and list-of-figures

I am trying to fit a large figure containing four subfigures into my document. The whole thing is close to a page break, so I decided to split the figure via \ContinuedFloat. So just in case the ...
2
votes
0answers
30 views

beamer with numbered theorems not working with cleveref

A want to use cleveref in a beamer presentation. The document defines multiple theorem environments sharing the same counter as follows: \documentclass{beamer} \usepackage{cleveref} ...
4
votes
1answer
24 views

How can I create context-sensitive reference names for an environment which defines label prefixes on-the-fly?

Background: I asked a rather muddled but related question earlier. I received an excellent answer from Manuel to that question but my confusion about the problem means that I unfortunately asked the ...
1
vote
0answers
24 views

Place pictures and ref it without using subcaption

I am writing a paper using Springer LNCS format, which is incompatible with the package subcaption. It provides subfig package instead. I wish to achieve the following format (3-by-2, refer each one, ...
3
votes
1answer
27 views

How to reference a user defined exsheets environment using cleveref

I have defined an environment in exsheets package and want to cite it using cleveref package and am not able to find a way. I tried many things and tried to read the exsheets manual. I searched also. ...
2
votes
1answer
75 views

Replace undefined reference ?? with custom text?

I'm using luatex and the cleverref package while writing a large document. I often only want to compile only parts of it, but I'd like my output to be a little nicer when I only compile a single ...
2
votes
0answers
35 views

How to modify the sorting of cleveref?

In the backmatter of my document I have the part with plates. Each page is one plate with several figures in it. The counter for the figures starts on each page/plate, but the number of the figure ...
4
votes
2answers
57 views

Different output of \ref and \cref in lists with enumitem+cleveref

I'm using enumitem and cleveref packages and I would like to enforce a different behaviour of \ref and \cref for {enumerate} lists. More precisely, whenever I have lists in a theorem environment I ...
4
votes
1answer
67 views

Of two boxes rasterized by tcolorbox, the left one is cut short

The following compiles under cleveref v0.19 and tcolorbox v3.80 with TeXLive 2013 under osx 10.6.8 but the left box is cut short. % !TEX TS-program = pdflatexmk \documentclass{book} ...
2
votes
1answer
40 views

undefined reference in tcolorbox

The following compiles under cleveref v0.19 and tcolorbox v3.80 with TeXLive 2013 under osx 10.6.8 but the reference does not work. I have added an example (commented out) from the doc where the ...
4
votes
1answer
29 views

cleveref: crefname with accentuated initial

I am French and I would like to change a crefname. The problem is that adding a crefname beginning with an accentuated letter brings an error when using \Cref command. Here is my MWE: ...
4
votes
1answer
77 views

How to use cleveref names as theorem names with thmtools

I'm trying to setup a few theorem-like environments with thmtools, making it work with cleverer while trying to stay compatible with different languages. If I load cleveref after thmtools it seems ...
5
votes
2answers
88 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
42 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
36 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
28 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): ...
2
votes
1answer
101 views

How to cross-reference an unnumbered theorem using hyperref and cleveref

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
37 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
75 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
51 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
88 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
62 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
89 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
173 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
215 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 ...
3
votes
1answer
74 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
128 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
170 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
40 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
25 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. ...
2
votes
1answer
203 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
76 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
117 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
62 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
80 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
44 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
37 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
35 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
86 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
180 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
123 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
106 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 ...