Questions tagged [cleveref]

{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.

is a package that enhances LaTeX's features, allowing the format of references to be determined automatically according to the type of reference. The package also offers a means of referencing a list of references, each formatted according to its type. In such lists, it can collapse sequences of numerically-consecutive labels to a reference range.

931 questions
18
votes
1 answer

Is cleveref safe to use?

I have sometimes been warned against using cleveref because it makes very fundamental changes of some of the basic LaTeX commands, like \label. Is this concern justified, and what are the issues of loading it? Are there good reasons not to use it?
Gaussler
  • 12,801
12
votes
0 answers

What is the recommended maintained modern (>= TexLive 2023) alternative to cleveref?

Cleveref has seems to be unmaintained as it produces broken references with TexLive 2023 and had its last release in 2018. It has been pointed out that it "might be not supported anymore". What is the recommended alternative?
Flow
  • 1,013
12
votes
2 answers

How to reference chapter/section title when using cleveref

As the title says, how can you reference a chapter or section title when using cref? To be more clear: I do not want the label "section" or "chapter", I want the actual title of the chapter or…
10
votes
1 answer

The current status of "cleveref"

cleveref is one of my favorite packages, and indeed, many of my own packages (cleveref-forward, crefthe, create-theorem) and classes (minimalist, colorist) depend in a fundamental way on cleveref. However, it was last updated more than 5 years ago,…
Jinwen
  • 8,518
7
votes
0 answers

\crefstripprefix not working for 10 or more cross-refs

The following MWE gives an error; if the number of cross-referenced equations is reduced to below 10, the error disappears. The \crefrangeformat is totally standard and is taken from many answers on this site. If \crefstripprefix{#1}{#2} is replaced…
bjorne
  • 637
7
votes
3 answers

How I can change "Figs. 1 and 3" to "Figs. 1 et 3"?

In this example, how can I customize \cref{fig:1,fig:3}? I.e instead of having (Figs. 1 and 3), I would like to have (Figs. 1 et 3). The same question with…
simo
  • 303
7
votes
2 answers

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) Something important that refers to (i). However, I…
dwolfeu
  • 473
6
votes
1 answer

Cleveref not working with multiple references

\Cref does not seem to be functioning properly. \usepackage{cleveref} (as is) is used. \Cref{ref1}, \Cref{ref2} works but \Cref{ref1, ref2} results in only the first reference being shown, with the other as ??
weasel
  • 257
6
votes
0 answers

Incorrect \cpageref result with multiple (3+) references that span a page range

I have noticed that using \cpageref for more than 2 references fails when the references span more than one page. Instead of getting the page range, the references that define the page range are printed instead. Instead of page numbers, the…
Haydon
  • 213
6
votes
4 answers

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

EDIT: This issue has been resolved by cleveref version 0.21. 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…
6
votes
1 answer

How to disable sorting in cleveref for one instance?

I can disable reference sorting globally using the nosort or the compress package options, that's described in the docs. The same chapter explains how to disable compression for one instance of \cref. But it doesn't mention how to disable sorting…
Elrond
  • 485
5
votes
1 answer

Why does cleveref change theorem style unexpectedly?

I observe the style of a theorem that uses a shared counter being changed unexpectedly when cleveref is used. I expect all new theorems to have the default style plain as in asmbook, with small caption title font and italic body font. However, when…
Michael
  • 53
  • 3
5
votes
2 answers

cleveref and customized refname

Is it possible with cleveref to customize on the fly the name in the clickable link? If you consider the basic example below, the idea would be to have "Condition (1)" active (as opposed to the current "Equation…
pluton
  • 16,421
4
votes
0 answers

Cleveref: Multiple letters inside parentheses for subfigures

I am using cleveref with crefmultiformat to reference a list of subfigures. I would like to have the letters referencing the subfigure of the main figure listed inside parentheses, like so: figs. 1(a,b) The output that I get using the code below is:…
luege
  • 41
4
votes
1 answer

Cleveref's \cpageref with range of labels

cleveref's \cpageref seems to have an issue when it receives three or more labels spanning a range of pages. When this happens, \cpageref prints the first and the last labels (the arguments) instead of the pages it was supposed to print, and issues…
gusbrs
  • 13,740
1
2 3 4 5