Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
43 views

exam: Formatting the cross-references of questions, parts, subparts, and subsubparts

In the following MWE, how to get the desired format of the cross-references of the questions, parts, subparts, and subsubparts of the exam class with/without cleveref package? \documentclass[12pt]{...
0
votes
1answer
26 views

Problem calling \creflabelformat from a command

I'm using the cleveref package with some customizations, using \creflabelformat. Because cleveref should be the last package to load, and because the customization commands should come after cleveref ...
1
vote
1answer
30 views

How to typeset ``…(e.g. Equation 6)` using cleveref?

I use the cleveref package to produce equation references like Figure 3 and Equation (12). The parentheses for equation references are fine most of the time, but it seems silly when the reference is ...
1
vote
1answer
49 views

cleveref: second hyperlink set incorrectly in ranges

Consider the following MWE with cleveref: \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \begin{document} Page one \label{one} \newpage Page two \label{two} \newpage \...
0
votes
0answers
22 views

Undefined control sequence error for \subref command used in svjour3 latex

I am trying to use the subfigure environment along with sub-reference using \subfloat and \subref command and have already installed and tried with the packages like \subfig, \subcaption, \float in ...
2
votes
1answer
48 views

Get value of \crefname

Instead of hardcoding theorem in citations such as \cite[theorem xyz]{reference}, I would like to insert the cleveref theorem format, for consistency with references to theorems in the current ...
1
vote
1answer
35 views

Use counter number for chapter in cref references

I want to repair the references in the magnum opus after a lot of editing which essentially destroyed all the label-references correspondances. To check systematically, I would like to use something ...
2
votes
1answer
71 views

Why can't cleveref determine if the reference is at the beginning of a sentence?

I was reading the documentation on the cleveref package, which can be found here, when I stumbled upon a side remark on page six (can be found in the paragraph for \Cref), which says As it is very ...
3
votes
2answers
29 views

How can I temporarily replace 'and' with 'or' when using `\cref` command?

The code below generates correct output. However, I would like to know how I can temporarily replace every instance of 'and' with 'or' just for specific instances of \cref usage. I included xcolor and ...
0
votes
0answers
53 views

Cref print the labels name

I want to resolve a reference to a label, but print the content of the label. (Obviously?) neither \labelcref nor \namecref seem to work. Can anyone help me? \documentclass{scrartcl} \usepackage[T1]{...
4
votes
3answers
47 views

How to use cleveref without modifying journal's document class?

I'm submitting to a journal (EJP) that requires the use of their document class for submission. I've already made my whole document using the cleveref package and would like to not go through manually ...
5
votes
2answers
104 views

Convert final appendix to a supplementary material section

I am writing a document where each chapter has an appendix. In addition to the appendices I would like to have a final supplementary files section where I list all the files that accompany the ...
2
votes
1answer
26 views

The name of a cleveref reference is missing when the reference is inside a subsubsection of an appendix

The following KOMA-Script/LuaLaTeX document: \documentclass{scrbook} \usepackage[nameinlink]{cleveref} \setcounter{secnumdepth}{4} \begin{document} \appendix \chapter{Chapter} \section{Section} \...
0
votes
0answers
31 views

Change figure labels from “Figure S1” to “S1 Figure”

Formatting requirements for a journal require me to, once Supplementary Info begins, switch from labeling figures and tables like "Figure 1," "Figure 2," etc., to labeling them like "S1 Figure," "S2 ...
3
votes
1answer
48 views

Strikethrough a \cref-generated cross-reference

I'm looking to strikethrough a cross-reference generated with \cref. I thought a basic example like the following would work: \documentclass{article} \usepackage{cleveref} \usepackage{soul} \begin{...
1
vote
0answers
20 views

How to get correct 'nameinlink' in 'cleveref' when using 'newtheoremstyle' and custom numbering for lemmas and similar environments? [duplicate]

I am using slightly customized theorem styles and have defined the theorem environment to follow the section numbering and lemmas, propositions, and conjectures environments to follow the theorem ...
1
vote
1answer
60 views

XeLaTeX + cleveref + cyrillic fonts = Command unavailable

I'm trying to write a document in Ukrainian, but somehow I can't use cleveref package anymore. Here is my example: \documentclass[twocolumn]{article} \usepackage{fontspec} \usepackage{polyglossia} \...
0
votes
1answer
30 views

Cleveref equation to match italic local style.

This question is similar to \eqref in italic math environnment, but I think all the cross referencing tools from cleveref justify a separate question. I would like cleveref to produce the equation ...
3
votes
1answer
55 views

Why there is no \labelcrefrange?

Consider the code \documentclass{article} \usepackage{listings} \usepackage{cleveref} \crefname{lstnumber}{line}{lines} \Crefname{lstnumber}{Line}{Lines} \begin{document} \begin{lstlisting}[...
1
vote
2answers
74 views

How to configure \cref to write “Appendix A” instead of “Chapter A” when referring to appendix?

I want to configure \cref to write "Appendix A" instead of misleading "Chapter A". Minimum Working Example (MWE): \documentclass{scrbook} \usepackage[toc,page]{appendix} \usepackage{cleveref} \...
0
votes
1answer
35 views

Subfigure range in caption with cleveref and besidecaption

I originally asked for a solution which would automatically give me the range of subfigures in a caption. Skillmon came up with something which did work with my original MWE, but which gives problems ...
0
votes
1answer
38 views

Cryptic error message when using cleveref and hyperref with subequations

Compiling the following document with pdflatex gives me a cryptic error message. \documentclass{article} \usepackage{amsmath} \usepackage{cleveref} \usepackage{hyperref} \begin{document} \begin{...
3
votes
2answers
47 views

Reference to proof prints section instead

I have several theorems in a document with the proofs in the appendix. After some theorem, I want to refer to the proof and, using the hyperref package, I want to make the reference clickable to avoid ...
3
votes
2answers
127 views

Clever references to equations

In this question the author expressed the following desire if Corollary 1.2 contains parts (a) and (b), I want \cref to output “Corollary 1.2(a)” when referring to that theorem part. Horever, in ...
0
votes
1answer
46 views

Special section names and counter in memoir with cleveref

I'm trying to have separately numbered "Resource" sections in a memoir document, but have produced clevereferences that refer to the "current" Resource counter value instead of the referenced Resource'...
4
votes
2answers
101 views

Custom label for references using tasks inside a xsim exercise

In order to create an assignment sheet, I am using the xsim package and to create subquestions within a question, I use the package tasks. The problem comes while referring to the subquestions. ...
0
votes
1answer
31 views

Why does not cross-referencing of end nodes work with `enotez` and `cleveref`?

It does not seem that cref works with enotez. The output refers to the chapter number rather than the number of the end note. I had similar issue in this question: Why does not cross-referencing of ...
1
vote
0answers
38 views

cleveref switches the reference order

Suddenly, in a unique example that I can't seem to reproduce in a MWE, cleveref switches the order of my references. Here's my configuration of cleveref and the theorems: \usepackage[backref=page]{...
1
vote
1answer
50 views

Why does not cross-referencing of exercises work with `exsheets`?

I am trying to use cleveref package to create custom referencing scheme for exercises created using exsheets. I customize cross-referencing of floats and equations very well using codes similar to the ...
2
votes
1answer
27 views

Changing subsubsection numbering without changing cleveref numbering

I managed to change the subsubsection numbering with the following command : \renewcommand*{\thesubsubsection}{\arabic{subsubsection}.} However, the cleveref \Cref{mysubsubsection} return Section 1....
1
vote
2answers
53 views

Is it necessary to use a non-breaking space when using cleveref?

I came across this question about the instances wherein non-breaking space should be used. For cross-referencing, I am using cleveref. Although its documentation does not indicate anything about non-...
1
vote
0answers
11 views

Using \cref with consecutively numbered definitions and theorems [duplicate]

I'd like to number definitions and theorems consecutively, and I'd like to reference them with package cleveref's \cref command. Here's my attempt. \documentclass{article} \usepackage{amsthm} \...
0
votes
0answers
36 views

Why losing shared counters in combination of thmtools, cleverref, assoccnt and thmbox?

Although I finally found a working option, I'd like to ask this question ... I don't have a clue which of the packages (cleveref, assoccnt or thmtools) rises the issue but I seems that the handling ...
3
votes
1answer
49 views

Having the first letter F in uppercase in cross-reference to a 'figure' object

I want the first letter of the paragraph to be in uppercase. Suppose that we have this sentence: \cref{fig:moon} shows the color of the moon. I want the output to look like this: Fig. 1 shows ...
0
votes
2answers
44 views

Include/exclude section number in equation references depending on where the reference appears?

I'd like to have references to an equation exclude the section number when the equation is referenced within the same section, but include it when it's referenced in a different section. Here's an ...
1
vote
1answer
54 views

Passing label as argument for tcolorbox so that it is accessible by cleveref

I have recently started working with the fabulous tcolorbox package and have successfully been able to generate the boxes I need with the label as an argument. However, I want to be able to use that ...
2
votes
1answer
102 views

How to make cleveref compress different-level theorems?

Whenever you have differently deep sections in your document and wish to number your theorems (as well as notes, lemmas, propositions, ...) according to the currently deepest level, you tend to write ...
3
votes
2answers
115 views

How to cross-reference chapter as section

I am using cleveref to cross-reference my thesis. When I use \Cref to reference chapter 1, in the text it appears as "Chapter 1". I was wondering if there I still use the chapter structure for the ...
2
votes
1answer
47 views

Why does not `\cref` command yield proper output when certain equation is removed from its range?

It is odd to see that \cref does not work when Eq. (2) is removed from its range. When I remove another equation, it just works perfectly. Reordering the equations labels does not seem to work. ...
3
votes
1answer
156 views

'Smart' cross-referencing of paragraphs

I'm writing a large document where I'm using pretty much every level of sectioning from Part right down to paragraph. I've been using varioref in conjunction with hyperref and cleverref to '...
3
votes
1answer
51 views

Use Numberstring in cref call

Trying to conform to what my GF wants in her thesis: she would like chapter references as "Chapter One", "Chapter Two", etc. I found this answer, which looks to work, but I was hoping to use these ...
4
votes
1answer
105 views

Is \@ and \- needed in crefname?

Using cleveref I sometimes write stuff such as \documentclass[deutsch,graybox,envcountchap]{svmono} \usepackage[T2A,T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[USenglish,british,canadian,...
1
vote
1answer
85 views

Custom clever ref and and short captions giving error

I have been using the following modification of \Cref in my document to provide names to theorems and lemmas if one is given (as I think it reads nicer). As in the MWE (based on this answer to a ...
1
vote
1answer
43 views

interactive algorithm line numbering hyperref

I needed two algorithms where client-server interact. I wrote a figure with two minipages each containing an algorithm. \begin{figure}[!htb] \begin{minipage}[t]{.48\linewidth} \algrenewcommand\...
3
votes
2answers
69 views

Clever Ref to only give theorem names.

I have tried (with partial success) to modify the solution here to the question: Cleveref and named theorems. The idea is that I want to overload cleverref's Cref (and also cref) to give the name of ...
3
votes
1answer
28 views

How to force cleveref to change “Definitions 1 and 2” for “Definitions 1 or 2”?

I am using the powerful cleveref package in order to manage the references of my Thesis. At some point, I'm doing something similar to the following MWE: \documentclass{minimal} \usepackage[...
0
votes
0answers
20 views

How to adopt the ieeeannot.bst to show the bib entry ordering chronologically?

I was trying to adapt the IEEEannot.bst to show the abstract from the entry in the references section. Now the entries in the references are not sorted chronologically. References are ordered ...
0
votes
1answer
30 views

Labelling subfigures with cleveref

I have an image image.png that has some parts: a), b) and c). I put it in my text like \begin{figure} \centering \includegraphics[width=\textwidth]{image.png} \caption{Some text here \label{fig:myfig}...
1
vote
1answer
30 views

Automatic cross reference prefix from different sections in figures, tables, etc

Is there a way that \cref can be set up such that it appends a prefix to references of figures placed in the Appendix? \documentclass{article} \usepackage{appendix} \usepackage{cleveref} \usepackage{...
1
vote
1answer
36 views

How to automatically insert footnote separator in mixed setup with \footnote and \footnoteref and cref

I have a document with cleveref and hyperref, both of which I don't want to miss. I need to reuse footnotes using cleveref which works fine thanks to https://tex.stackexchange.com/a/10116. I also want ...