{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
15 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
55 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
28 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} ...
2
votes
1answer
85 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 ...
4
votes
1answer
22 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 ...
8
votes
2answers
521 views

cleveref & varioref : Missing \endcsname inserted

I read the excellent question Difference between ref, varioref and cleveref. Decision for a thesis and various doc on the net (the varioref package documentation) and tried to use it... but with many ...
1
vote
0answers
22 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
26 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
69 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 ...
4
votes
2answers
53 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 ...
2
votes
0answers
33 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
1answer
63 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
35 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
25 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
73 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
87 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 ...
6
votes
2answers
308 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 ...
5
votes
0answers
39 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 ...
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 ...
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, ...
3
votes
1answer
197 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 ...
1
vote
1answer
27 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): ...
5
votes
2answers
166 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 ...
12
votes
3answers
766 views

Making refcheck work with cleveref

It seems that refcheck does not recognize references made by cleveref: \documentclass{article} \usepackage{amsmath} \usepackage{cleveref} \usepackage{refcheck} \begin{document} \begin{align} a ...
3
votes
1answer
184 views

\MakeTextLowercase not working with \cref

I'm using cleveref and classicthesis. classicthesis defines section headings to use small caps and uses \MakeTextLowercase to achieve this. However, when using the capitalize option for cleveref, the ...
6
votes
1answer
36 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
1answer
97 views

Making broken \cleveref references extra-visible

In Making broken references extra-visible, I asked how to make LaTex's normal ?? and [?] markers for broken references instead render as some super-annoying, colored text, so that in skimming a long ...
3
votes
2answers
49 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 ...
2
votes
1answer
76 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 ...
5
votes
3answers
86 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
57 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 ...
7
votes
1answer
1k views

Cleveref: AUCTeX and RefTeX set-up

How can I set up cleveref to work with AUCTeX and RefTeX? I have tried the advice on Emacs, RefTeX and Cleveref – can they work together? but it didn't work. Additionally, when I hit enter, \ref{} ...
6
votes
1answer
162 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
70 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
120 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 ...
2
votes
1answer
38 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 ...
1
vote
2answers
136 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
0answers
24 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
176 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
73 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
116 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
61 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
71 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 ...
1
vote
0answers
53 views

Right language for reference to appendix

I used the package cleveref to make references to appendix, so that: \documentclass[...(various arguments)...]{scrbook} \usepackage{cleveref} \begin{document} ... As I show in \cref{app:A}. ... ...
2
votes
1answer
42 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 ...
4
votes
3answers
1k views

acronym \acresetall & cleveref: multiply defined labels

I'm using the acronym package to expand acronyms and I'm also using the cleveref package. I would like to have acronyms expanded once per chapter. For instance in the following code, both acronyms ...
2
votes
0answers
36 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
34 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
82 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) ...