Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

zref substitutes for some crossreftools commands?

I'd like to switch from cleveref and crossreftools to zref-based cross-referencing — including with zref-clever and zref-vario — (with hyperref, too), . [The reason is: (i) to allow compatibility with ...
murray's user avatar
  • 8,366
1 vote
0 answers
61 views

`cleveref` with cyrillic in LuaLaTeX

I'm trying to use cleveref with Russian language with unicode text in LuaLaTeX, and can't get it to work. This mwe: \documentclass{book} \usepackage{ebgaramond-maths} \usepackage[russian]{babel} \...
Sergey Slyusarev's user avatar
0 votes
1 answer
26 views

Why does cleveref assign this wrong label?

I have a tex file \documentclass[11pt]{amsart} \usepackage{amssymb,enumitem,mathtools,fullpage,microtype} \numberwithin{equation}{section} \newtheorem{theorem}{Theorem}[section] \theoremstyle{...
Akira's user avatar
  • 1,399
5 votes
0 answers
69 views

Cross-reference expl3 integers with cleveref

Suppose I implement numbered document elements using expl3 integers. Suppose further that I would like to cross-reference these elements using cleveref. What is the best way to do this? I came up with ...
cfr's user avatar
  • 202k
0 votes
1 answer
20 views

apa7 and cleveref

I'm formatting a document with the apa7 style and would like to use the cleveref package. However, it doesn't seem to work. Here's a minimal not-working example: \documentclass{apa7} \usepackage{...
N. Virgo's user avatar
  • 4,279
1 vote
2 answers
46 views

How to pass arguments to cleveref

I am trying to write my own theorem package which wraps a bunch of functions to order my standard preamble. In doing so I got stuck with the following problem: I try to create a function to define a ...
uzer.name's user avatar
2 votes
2 answers
115 views

Why cleveref is not capturing float from pseudo+tcolorbox?

I am switching to pseudo to present my algorithms. Following the documentation, I combined it withtcolorbox to create a floating environment called algorithm. But when I want to reference it with \...
R. N's user avatar
  • 1,122
4 votes
1 answer
104 views

different colors for equations with cref

I was working on some equations and wish to have them in a different hyperlink color compared to the rest of the link colors I set in my \hypersetup. Now, it appears this post does what I'm looking ...
Matteo's user avatar
  • 163
1 vote
2 answers
20 views

Referencing items in resume* list renders additional text

I wanted to automate my life a little and found that the enumitem package provides a way to create custom lists which can resume counting with respect to the previous list. Without that, I'd have to ...
NaCl's user avatar
  • 149
6 votes
1 answer
215 views

Current best practice re. cross-references to last page

I am/was using pageslts, which I know is not supposed to be compatible with current LaTeX. As far as I understand, there is no alternative offering the same functionality, but I'd like to at least ...
cfr's user avatar
  • 202k
0 votes
1 answer
33 views

Using cref automatically with enumerate in *all* theorem-like enviornments

This excellent answer explains how to create a new list definition to allow cleverref to refer to the items in an enumerate inside a definition as definition def# (item#). Specifically, it describes ...
Peter Gerdes's user avatar
1 vote
0 answers
118 views

Converting cleveref macros to standard LaTeX

My goal is to create a function in Emacs Lisp to interactively convert macros provided by the cleveref package (\cref, \Cref, etc.) into standard LaTeX: For example: \cref{sec:1} --> section~\ref{...
Gabriele's user avatar
  • 1,945
0 votes
0 answers
78 views

Patching \cref and \Cref to write additional information to the .aux file

I need to patch the macros \cref and \Cref so that when used like this: \cref{label1,label2,label3} besides generating the normal layout in the document, they write something like this to the .aux (...
Gabriele's user avatar
  • 1,945
1 vote
0 answers
69 views

Check if floats appear before the page where they are first referred

In the 2017 I asked: Get the "exact" page of a \ref command in .log or .aux files. I still need to check if a float appears before the page where that float is first referred. I have a ...
Gabriele's user avatar
  • 1,945
0 votes
0 answers
21 views

Use nameref for paragraphs in cleveref

Is there a way to have cleveref replicate a custom reference command for paragraphs (but not for other references)? For example, consider the following MWE: \documentclass{article} \usepackage{...
Tohiko's user avatar
  • 1,823
0 votes
1 answer
28 views

How to get full forms with namecref and abbreviated forms otherwise?

Continuing cleveref -- using both abbreviated and full form references?, how to get full forms as an output of \namecref and \nameCref while maintaining the abbreviated forms from \cref and \Cref as ...
AlMa1r's user avatar
  • 445
1 vote
1 answer
55 views

namecref With theorem* Environments

I'm trying to refer to the name of an amsthm theorem* environment using cleveref's namecref command. However \documentclass{article} \usepackage{amsthm} \usepackage{cleveref} \newtheorem*{note}{Note} ...
Dave's user avatar
  • 315
1 vote
2 answers
41 views

Cleveref names in small caps

I want to have every name cleveref prints to be a link writing in small caps. Currently I do this manually for every name I can think of using \crefname and \Crefname, but this is not an elegant ...
Pedro G. Mattos's user avatar
1 vote
1 answer
51 views

Old style numbers on cross-references and links

I am writing a document and want to have old style numbers whenever hyperref creates a links to something inside my document that is numbered. This includes references to numbered sections, pages (...
Pedro G. Mattos's user avatar
4 votes
1 answer
46 views

Referencing with Enumerate and Cleveref

I'm struggling to set up correct references using the cleveref package. I'm able to get references for the second sub-hierarchy, however, I don't get the reference correctly setup for the first level. ...
Aline's user avatar
  • 53
0 votes
0 answers
25 views

How do I remove 'A' in using \cref{} for referring to subsections in Appendix?

I wonder how can I remove 'A' in using \cref{} for referring to subsections in Appendix? I have the following pseudo code. \documentclass{IEEEtaes} \usepackage[capitalize]{cleveref} \usepackage{lipsum}...
Junho's user avatar
  • 23
0 votes
1 answer
23 views

locally change the color of \Cref in document report

Hi there I'm working on a LaTex report document and I happened to need to change the color of a \Cref reference to a Section of my document. However, for some reason, I'm unable to do so and the color ...
Matteo's user avatar
  • 163
12 votes
0 answers
251 views

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". ...
Flow's user avatar
  • 1,017
6 votes
0 answers
97 views

Show appendix as "Appendix A" instead of "Chapter A" in references

Here's a ConTeXt document that uses Aditya's solution to "Cleveref-like command in ConTeXt": \definereferenceformat[cref][label=*] \setuplabeltext[chapter=Chapter~,appendix=Appendix~] \...
Ram's user avatar
  • 61
1 vote
1 answer
38 views

How to add an auxiliary part in the name of a proof?

With \documentclass{article} \usepackage{amssymb,amsmath,hyperref,mathtools,amsthm} \usepackage[noabbrev,capitalize,nameinlink]{cleveref} \hypersetup{ colorlinks=true, linkcolor=blue, ...
Akira's user avatar
  • 1,399
10 votes
1 answer
292 views

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. ...
Jinwen's user avatar
  • 8,578
1 vote
2 answers
47 views

Refering to a theorem by its name [duplicate]

So I've seen here that you can actually have a personnalized theorem environment name but I was wondering if there was a way to refer to it as is. I've chosen the solution \documentclass{article} \...
Jolia's user avatar
  • 61
5 votes
1 answer
113 views

\cref : "Argument of \textsf has an extra }."

So I have this bit of code \begin{ex} The prototype for an abelian category is $\Mod_R$, in fact every abelian category is equivalent to a full subcategory of $\Mod_R$ as we will see in \cref{FMET}...
Jolia's user avatar
  • 61
0 votes
1 answer
57 views

Cross-Referencing Label Affects Vertical Spacing

Consider the code with \label{L} (immediately above the second tikzpicture) commented out: \documentclass[12pt]{book} \usepackage[paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \...
DDS's user avatar
  • 8,986
13 votes
1 answer
425 views

Cleveref mistakenly showing filename in external references

I am using a combination of xr-hyper, hyperref and cleveref with multiple files. Old code that I have is no longer working correctly. The external references now include the file name of the ...
Andrew Swann's user avatar
0 votes
1 answer
71 views

How to select a command based on the expansion of \Cref*?

(This is a somewhat of a continuation of this question of mine, which @egreg provided an easy solution to.) In the following (slight variation of egreg's) MWE, three commands are defined. \mylabel ...
Atom's user avatar
  • 665
2 votes
1 answer
63 views

Missing section number in using cref for subsection

I am using \documentclass{IEEEtaes}, and I want to use \cref{} to cross-reference a subsection in the document. However, it prints only subsection number without the section number. For example, let's ...
Junho's user avatar
  • 23
1 vote
1 answer
62 views

Including part and chapter numbers in cross-references

I have a project consisting of Parts, each with multiple Chapters. The Parts are written in main.tex, with each Chapter included as a separate \subfile of main.tex. Is there a way to automatically ...
Bells12's user avatar
  • 37
0 votes
0 answers
16 views

Multiple cross-references with cleveref with custom connecting word

Suppose that I have two theorems in my text, Theorem 1 and Theorem 2, labeled thm1 and thm2. Using the cleveref package and writing \cref{thm1,thm2} produces Theorems 1 and 2. Is there a way to change ...
Hermetically Sealed Halibut's user avatar
6 votes
1 answer
392 views

Ukrainian polyglossia wont make friends with cleveref package

I have next setup: % !TeX program = lualatex \documentclass[11pt]{report} \usepackage{polyglossia} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text} \...
Vladyslav Rehan's user avatar
1 vote
0 answers
58 views

Cleveref not compressing equation refs with subequations

Consider this example: \documentclass[ reprint, nofootinbib, amsmath, floatfix, superscriptaddress, longbibliography ]{revtex4-2} \usepackage[utf8]{inputenc} \usepackage{...
HerpDerpington's user avatar
2 votes
0 answers
52 views

Wrong order of references when combining subequations with cleveref

Could you please help identify what its wrong with my code (see below)? It uses subequations and cleveref. The result is that some of the references appear in a wrong order. What I get is (1.1a) and (...
Ann's user avatar
  • 21
0 votes
1 answer
51 views

How cross-reference optional argument contents in enumerate list item?

In the following, is it possible to create a cross-reference that prints the contents of the "note-like" field of a \ditem optional argument? That is, I would like to be able to print "...
murray's user avatar
  • 8,366
2 votes
2 answers
74 views

How to obtain a letter in a cross reference / list counter with letters (alph)?

I´d like to obtain this How can you obtain letter instead a number in a cross reference (label/ref) in an enumitem (alph) ref/label? Or any solution with the fantastic cleverref package?. \...
Mika Ike's user avatar
  • 3,781
0 votes
1 answer
74 views

How avoid crossreftools package to handle theorem notes?

Using crossreftools along with hyperref and cleveref, I can obtain cross-references, as shown in the output below, that include the names of "named theorems" or the note fields of ordinary ...
murray's user avatar
  • 8,366
3 votes
2 answers
50 views

Cleveref for items in hypothesis

consider the snippet below \documentclass{article} \usepackage{amsmath,amsthm} \usepackage{hyperref} \hypersetup{ colorlinks=true, linkcolor=blue, urlcolor=blue, naturalnames=false, ...
Daniele Avitabile's user avatar
2 votes
1 answer
53 views

\scalebox clash with cleveref for custom equation tags

I wish to tag an equation with a rescaled hieroglyph (most custom symbols from hieroglf are way too tall for my liking). However, when I compile \documentclass{book} \usepackage{amsmath,graphicx,...
giobrach's user avatar
  • 369
1 vote
2 answers
133 views

Cleveref's poorman option does't work with hyperref

I have this MWE: \documentclass[11pt]{article} \usepackage{amsmath} \RequirePackage[colorlinks=true ,urlcolor=blue ,anchorcolor=blue ,citecolor=blue ,filecolor=blue ,linkcolor=blue ,...
Gabriele's user avatar
  • 1,945
1 vote
0 answers
20 views

pseudocode, clever-ref. display (algorithm number, line of code)

I have several algorithms and want to be able to have clever-ref automatically generate citations like \cref{alg1-line1}: Algorithm 1, Line 1 \cref{alg2-line44}: Algorithm 2, Line 44 preferably with ...
Alek Westover's user avatar
0 votes
1 answer
84 views

How to make cleveref and nameref work with documentclass wlscirep and \section*? [duplicate]

QUESTION: How to make cleveref and nameref work with \documentclass{wlscirep} and \section*? Note that \documentclass{wlscirep} comes from "Template for submissions to Scientific Reports". ...
Ommo's user avatar
  • 827
4 votes
1 answer
149 views

Unwanted horizontal space with Cref command from cleveref and amsthm

I have a problem with the presence of an unwanted space when I use amsthm and cleveref. The following is a MWE that highlights the issue. \documentclass{article} \usepackage[english]{babel} \...
Kolmin's user avatar
  • 559
2 votes
1 answer
31 views

Cleverf and hyperlink when resetting chapter counter

I am writing a dissertation and I need it to be in two languages (English and Spanish). The organization is as follows: Table of contents Preface and Abstract appear in both languages Body of the ...
Carlos Uriarte's user avatar
2 votes
1 answer
106 views

How do I change the name for a clone of enumerate using enumitem and cleveref?

I want to construct a numbered list of items for which reference have issue rather than item. I'm using cleveref and enumitem, defining issue as an alias of enumerate with \newlist, and defining the ...
shmuel's user avatar
  • 1,449
1 vote
1 answer
92 views

Cleveref in conflict with hyperref

I am using the KOMAscript class and the cleveref package to create cross-references. Now I would like to cite a theorem where as an optional title I passed the reference with \citet from the natbib ...
SimoPape's user avatar
  • 113
0 votes
0 answers
27 views

Why referencing within xsim exercise/solution environment is not working?

In the text of a solution, I would like to make a reference to a figure which is inside the solution environment as well, but it is not working. The code is as simple as: \begin{solution} \begin{...
Salvatore Manfredi D's user avatar

1
2 3 4 5
19