{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

12
votes
1answer
185 views

texlive 2016 hyperref/cleverref incompatibility

I almost always use ShareLaTeX for my LaTeX needs, but I recently began work on a relatively large document, and so I figured I would give a local TeX distribution a try to see if I could speed up the ...
0
votes
0answers
15 views

Theorem does not work after MikTeX update; no counter defined [duplicate]

The following stopped working after I updated MikTeX today: \documentclass{article} \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{definition_}[equation]{...
1
vote
0answers
41 views

Tex Live 2016 bug: “! LaTeX Error: No counter 'd' defined.” [duplicate]

I have a file which compiles fine with TeX Live 2015, but which bugs on TeX Live 2016. When compiling with TeX Live 2016, (after I clean up all the non-source files) I get the following error: ! ...
4
votes
2answers
33 views

Referencing named tcbtheorems

My objective is exactly the same as in this question, however, I would like to achieve this same effect with \newtcbtheorem from the tcolorbox package. For example \documentclass{article} \...
3
votes
1answer
25 views

How can I make CleverRef subfigure references in smallcaps to be consistent with amsart?

The amsart document class automatically uses small caps for subfigure labels, i.e. (A), (B), (C) in small caps instead of (a), (b), (c). However, cleverref will still refer to these as fig. 1a, fig. ...
5
votes
1answer
38 views

Can Cref also provide the title of the tcolorbox?

For instance, with \begin{mybluebox}[label={myreference}]{My title} This is an example. \end{mybluebox} From (tcolorbox Manual, page 99) I would like to get Bluebox 5.1 My title instead of ...
1
vote
0answers
23 views

easylist and cleveref

I'm trying to reference an item in an easylist using cleveref's \cref. Here's a MWE: \documentclass{article} \usepackage[at, 5]{easylist} \usepackage{cleveref} \begin{document} \section{S1} \begin{...
2
votes
2answers
41 views

How to achieve custom paragraph (or in general section) numbering and allow references?

I used the command getcurrentref from this question/answer to achieve a custom numbering when \paragraph is used. I wrapped it into the macro: \newcommand\mybook[1]{\paragraph{B \getcurrentref{...
4
votes
0answers
268 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 ...
2
votes
0answers
38 views

How to reference sections in other chapters mentioning the chapter?

I have an article class document with a structure like this. Part A Section 1 Section 2 Part B Section 1 Section 2 I want to reference Section 1 in part A from Section 2 in part B. When I ...
2
votes
1answer
41 views

Cannot get newtcolorbox to work properly

Here is a MWE: % !TEX TS-program = pdflatexmk \documentclass[11pt]{book} \usepackage[usenames,dvipsnames]{xcolor} \definecolor{lightcyan}{rgb}{0.88, 1.0, 1.0} \usepackage{cleveref} \...
2
votes
1answer
41 views

\Cref not working

\documentclass[Afour,sageh,times]{sagej} \usepackage[english]{babel} \usepackage{cleveref} \begin{document} \section{Introduction} \label{sec:Introduction} \Cref{sec:discussion} \section{...
0
votes
1answer
28 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
24 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
39 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
36 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
39 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, ...
6
votes
2answers
722 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? ...
0
votes
1answer
19 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
68 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
37 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} \newtheorem{thm}...
2
votes
1answer
111 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
28 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
557 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
26 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
29 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
80 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
61 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
38 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
75 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} \usepackage{...
2
votes
1answer
47 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
37 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: \documentclass[...
4
votes
1answer
82 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
91 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
330 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
49 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
79 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
37 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, \cref{foo2,...
4
votes
1answer
271 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
29 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
180 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
799 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
202 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
43 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
102 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
53 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 following....
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
99 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
95 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. ...