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
2 votes
1 answer
20 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
80 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,367
1 vote
1 answer
42 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
0 votes
0 answers
14 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
3 votes
1 answer
42 views

Properly capitalising subsections with the cleveref package

I have some trouble getting the references to subsections working precisely the way I want it with the cleveref package. I want to reference subsections with the cleveref package in such a way that it ...
Ari Raven's user avatar
2 votes
1 answer
32 views

\multifigref to use instead of \cref

as you see in the provided file, I tried to write a command that allows me to reference multiple figure, I want to use that instead of using \cref, \figref works perfectly but it only takes one figure,...
Taoufik Ahanchaou's user avatar
0 votes
1 answer
41 views

Error in citing more than two subequations in IEEEtrantools with \cref

I want to get "(4c)-(4e)" instead on produced wrong "(4a)" in the last line. I also got error. \documentclass{article} \usepackage{amsmath} \usepackage[colorlinks=true, allcolors=...
al b's user avatar
  • 5
2 votes
1 answer
76 views

Get cleveref type, only

I am using the xr and cleveref packages to reference figures in another document, using the same figure and table numbers as the other document, as shown here. However, for non-floating figures and ...
Rico Picone's user avatar
0 votes
1 answer
43 views

How to teach \cref to refer to lines inside "minted" environments?

Here is my code: \documentclass{article} \usepackage{minted} \usepackage{cleveref} \begin{document} \begin{minted}[linenos,escapeinside=||]{cpp} Hello, world! |\label{foo}| \end{minted} See line no.\...
yegor256's user avatar
  • 11.5k
0 votes
1 answer
39 views

How to use cleveref's \namecref for unnumbered sections?

As I don't want my sections ... paragraphs to stay unnumbered, I wrote \setcounter{tocdepth}{5} \setcounter{secnumdepth}{0}. With cleveref I cannot refer to unnumbered sections as "section" ...
Alexander Wittmann's user avatar
0 votes
1 answer
41 views

I want to build a research question template with cleveref

I want to build a template for research questions and sub-questions, which I can reuse in different papers. I want it to have the following features: automatically number them, make them referencable ...
Alexander Boll's user avatar
0 votes
0 answers
34 views

More labels inside an equation

I am trying to add more labels to an equation. I want to refer to the text in the equation and to the equation separately. The code has to fit the following preamble (I have a solution that has some ...
Luca Benatti's user avatar
1 vote
1 answer
73 views

How to capitalize \zcref as \Cref does?

I'm trying to migrate from cleveref to zref-clever, due to the former incompatibility with pdfmanagement phase-III. Is it possible to have a variant of zref-clever and zref-vario that outputs "...
Polizi8's user avatar
  • 181
1 vote
1 answer
20 views

Cleveref not making links: How to link theorem, etc?

The example below may not be exactly "minimal" because I am not sure of any package interdependencies, and I want you to be able to see exactly what I'm doing. Ideally, I would like all of &...
hodop smith's user avatar
0 votes
1 answer
22 views

Using cleveref to refer to a list of subfigures doesn't work

I have a problem when using cleveref to cross-reference to a list of subfigures. References to a single subfigure work fine, but when trying to group them, something goes wrong. Here is a MWE: \...
KDB's user avatar
  • 3
1 vote
1 answer
143 views

The SIAM Latex Template stopped working after Miktex update [closed]

I recently updated MikTeX packages, what I had not done in a while. Then, when I compiled a paper I am working on, that I plan to submit to a SIAM journal, and therefore I am using its LaTeX template, ...
jpereira73's user avatar
3 votes
1 answer
59 views

cleveref does not show the correct equation tag with subnumcases

The tag typsets as intends but its cross referencing does not. \documentclass{elsarticle} \usepackage{amsmath} \usepackage{cases} \usepackage[nameinlink]{cleveref} \begin{document} \begin{...
Al-Motasem Aldaoudeyeh's user avatar
1 vote
1 answer
41 views

Print the Section Number while Referencing Custom Command

I have a custom command \goal{} \newcounter{goalcounter}[section] \newcommand\goal{\refstepcounter{goalcounter}{\textbf{Goal \thesection.\thegoalcounter}}} Say in Section 1, I have Our first \goal{} ...
Ambar's user avatar
  • 13
1 vote
1 answer
49 views

refer to appendix in `apxproof`

I am using apxproof and would like to reference the repeated/generated appendix. I tried adding the following line to my preamble: \usepackage[bibliography=common]{apxproof} \renewcommand{\...
rrrrr's user avatar
  • 491
1 vote
1 answer
35 views

How to get subref style such as Figure 1(a) when using cleveref with subfig?

\documentclass{article} \usepackage{graphicx} \usepackage{subfig} \captionsetup[subfloat]{subrefformat=parens} \usepackage{cleveref} \crefname{figure}{\figurename}{\figurename} \begin{document} \...
Clara's user avatar
  • 5,714
2 votes
2 answers
92 views

An Efficient Way to Cross Reference a Large Number of Consecutive Pages

This is a follow-up to Cross Referencing Multiple Pages with the Pageref and Label Commands Consider the code \documentclass[12pt]{book} \usepackage[english]{babel} \usepackage{lipsum} \usepackage{...
mlchristians's user avatar
  • 7,724
2 votes
1 answer
58 views

Citing different enumerate points, with a global numbering

I want to have all my theorems, equations and assumptions with the same global numbering, depending on sections and subsections. I also want to reference individual bullet points in an enumerate ...
Lilla's user avatar
  • 167
0 votes
0 answers
38 views

\labelcrefformat vs. \creflabelformat

What do the two commands \labelcrefformat and \creflabelformat do exactly? In the documentation of cleveref I see both mentioned. While \creflabelformat is described (without any examples, ...
AlMa0's user avatar
  • 439
1 vote
0 answers
20 views

How to customize the reference ranges for both \cref and \labelcref simultaneously?

Feeding pdflatex with \documentclass{article} \pagestyle{empty} \usepackage{mathtools} \usepackage[capitalize]{cleveref} %% customizing: “Formula” instead of “Eq.”, “Formulas” instead of “Eqs.”, and ...
AlMa0's user avatar
  • 439
2 votes
1 answer
33 views

tex4ebook: References with cleveref

I use cleveref to create customized references to theorems, e.g. I have to reference to Theorems A1, A3 and A4. When using tex4ebook, the respective links to the theorems work technically fine, but ...
Jack's user avatar
  • 314
4 votes
1 answer
77 views

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 ...
Michael's user avatar
  • 43
2 votes
2 answers
103 views

Reference three or more appendices in LaTeX article class

I am writing a document using article class. I need to refer to multiple appendices. I am using hyperref and cleveref packages. When I refer to two sections in appendices, it writes Appendices A and B....
V Kahn's user avatar
  • 149
2 votes
1 answer
41 views

cleveref not capitalized at the start of a sentence

It seems cross-references generated by the cleveref package are always in lowercase by default, no matter whether they're used to start a sentence or not. Is there a way to get cleveref to respect the ...
Thomas Fritz's user avatar
2 votes
1 answer
30 views

Package `cleveref` does not display the name of a new float in the reference

I have defined a new float and would like to reference it using cleveref. Here is my MWE: \documentclass{article} \usepackage{tcolorbox} \usepackage{newfloat} \usepackage{hyperref} % \usepackage[...
chandra's user avatar
  • 3,010
2 votes
0 answers
55 views

Error resulting from hyperref-cleveref-ntheorem interaction: No counter '[' defined

I am on a Linux system running TeX Live 2023 installed manually (not through the distro's repo), and up to date at the time of this writing (2023-04-21). The following short document has started ...
grobber's user avatar
  • 181
0 votes
0 answers
25 views

Reference Figures in the body differently as from inside the appendix

I want to reference Figures, Tables etc. from the body differently when they are placed in the appendix. However, inside the appendix, they should be referenced as usual. Here is a small working ...
ljjs's user avatar
  • 13
0 votes
1 answer
99 views

Conflict of pdfx (hyperref), ntheorem, and cleveref

Compiling the MWE \documentclass{book} \usepackage[x-1a1]{pdfx}% also loads hyperref \usepackage{amsmath} \usepackage[amsmath,amsthm,thref,thmmarks]{ntheorem} \usepackage{cleveref} \newtheorem{...
CampanIgnis's user avatar
  • 4,559
3 votes
1 answer
145 views

The best/correct order of loading hyperref, cleverref and subfiles packages

I got it from overleaf that the subfiles package is best loaded last in the preamble. Besides, it is known that hyperref is recommended to loaded last too. In another answer, I got that Load varioref ...
HsiL's user avatar
  • 33
0 votes
0 answers
125 views

Links hyperref cleveref highlight full on hovering

My hyper setup: \hypersetup{ pdftitle={}, pdfauthor={}, pdfkeywords={}, bookmarksnumbered=true, bookmarksopen=false, bookmarksopenlevel=1, colorlinks=true, breaklinks, linktoc=...
Alix Blaine's user avatar
2 votes
1 answer
106 views

section sign (§) not colored hyperlink cleveref

A list of all of the packages used: \usepackage{caption} \usepackage{blindtext} \usepackage{pifont,mdframed} \usepackage{enumitem} \usepackage{amssymb} \usepackage{amsmath} % For using \text in ...
Alix Blaine's user avatar
1 vote
0 answers
54 views

How the cross-reference system works?

I'd like to know how packages like cleveref actually work. As far as I know, \ref gives back the value of the counter that was incremented through \refstepcounter. However, it can only give the value ...
OrthoPole's user avatar
  • 113
3 votes
1 answer
100 views

xr-hyper and cleveref unable to compile with make4ht

I'm trying to use cleveref to cross reference between documents and compile them with make4ht. The following example compiles with pdflatex but not with make4ht or htlatex. main.tex: \documentclass{...
holmes's user avatar
  • 65
1 vote
1 answer
52 views

How to reference an algorithm created with algorithm2e using cleveref?

I am having issues figuring out how to reference an algorithm created with algorithm2e. For my figures, I use: \begin{figure} \includegraphics{...} \caption{Test Caption.} \label{fig:test_label} ...
Fabian's user avatar
  • 125
1 vote
0 answers
46 views

How to display the reference suggestions in TeXstudio when using cref and tcolorbox?

Edit: this question is now this feature request on TXS Github. Very picky question. I am happily using TeXstudio, the tcolorbox package and cleveref. In TXS, typing cref triggers a popup menu where ...
germinael's user avatar
2 votes
1 answer
56 views

Conflict between quantikz, cleveref and gather environments

I am writing an article in which I need a quantum circuit figure, and want to use the quantikz package for the purpose. However, I got a series of errors upon loading quantikz. I have pinpointed the ...
frederik's user avatar
1 vote
1 answer
30 views

cref on lslisting elements only translates to two questionmarks and the index of the element

I am rather new to working with LaTeX and so far I have not found the solution to following problem: Using \cref or \Cref gives me the desired output whenever I use it with tables or figures. When I ...
K Hil's user avatar
  • 13
-1 votes
1 answer
26 views

Citing multiple figures

I am using the cleveref package and in my document I want to cite 3 figures in plurals like: "Figs 1, 2, and 3". This is my code: \documentclass[a4paper,11pt]{article} \usepackage[english]{...
moumou85's user avatar
  • 421
3 votes
1 answer
76 views

Can I use revtex, babel + BibTex, and cleveref together?

I am trying to write a paper with revtex4-2 document class (revtex4-2 2020/10/03 4.2e); .bib file specifying language field for some entries; cleveref package; custom theorem (using \newtheorem ...
fiktor's user avatar
  • 1,933
5 votes
2 answers
139 views

Two crefname for the same item

I would like to make this procedure faster. I have a theorem with its crefname. In this theorem, I have an enumerated list. I want to associate to each item two different labels, in order to produce ...
Luca Benatti's user avatar
2 votes
1 answer
66 views

Why \cref{} doesn't print names of multiple labels?

I'm trying this: \documentclass{article} \usepackage{cleveref} \begin{document} \newcounter{rule} \newcommand\printrule[1]{R#1} \newcommand\orule[1]{\refstepcounter{rule}\label{#1}\printrule{\therule}:...
yegor256's user avatar
  • 11.5k
0 votes
1 answer
77 views

cleveref with subcaption, using \crefmultiformat and \crefstripprefix

I am trying to implement this solution: https://tex.stackexchange.com/a/418261/194338 or this solution: https://tex.stackexchange.com/a/416838/194338 but both fail in my case. Here is a minimal ...
Chachni's user avatar
  • 183
0 votes
2 answers
36 views

cleveref referencing figures from current and external documents

Here is the setup: In doc2.tex, I have: \documentclass{article} \usepackage{xr-hyper} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \begin{figure} \caption{figure there} \label{fig:...
Chachni's user avatar
  • 183
0 votes
0 answers
83 views

Problem with hyperref and cleveref

I'm trying to put an image that is link to a youtube video. The problem is that when I load the hyperref package it doesn't compile and get a huge error. I loaded the hyperref before cleveref as ...
wernergh9's user avatar
-1 votes
2 answers
132 views

How to number equations inside an 'aligned' environment, and how to cross-reference them using '\cref'?

An illustration of the issue by way of a minimal working example I saved the following LaTeX code in the file ~/Test.tex. \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
Evan Aad's user avatar
  • 10.8k
1 vote
1 answer
93 views

Cleveref and tcolorbox for theorems that share a counter

I'd like to have different theorem environments share the same counter using tcolorbox in beamer. However cleveref doesn't seem to pick up their names correctly. Can anyone point me to what I'm doing ...
samjindani's user avatar

1
2 3 4 5
19