Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
2answers
18 views

lcnameref(s) with multiple references

The cleveref manual states (page 7): The \namecrefs and \nameCrefs commands produce the plural forms. The \lcnamecref and \lcnamecrefs commands force the reference name to lowercase, ...
0
votes
1answer
36 views

Cleveref lowercase for single references

The cleveref has two main citation commands: \Cref and \cref depending on whether you're referencing in the beginning of the sentence (producing Figure 1) or anywhere else (producing the abbreviated ...
1
vote
0answers
15 views

Referencing tables when they are inside `onlyenv` (beamer) [duplicate]

It seems that I cannot reference tables when they are placed inside onlyenv, but . This applies to both of \cref and the traditional \ref The topic Table numbers in beamer is not an answer to this ...
1
vote
1answer
26 views

cross-reference with improper link

In the MWE below, the first and second references link to eq. (I.1), and the third and fourth equation references both link to eq. (2.1). While they should link to eq. (I.1), (1.1), (II.1) and (2.1), ...
0
votes
1answer
35 views

Hyperlinks do not work with cleveref (beamer)

In the MWE below, you will see that \cref is not working with hyperref. Also, even with the conventional \ref command, hyperref leads to the wrong equation This is the output This is where \ref ...
0
votes
1answer
24 views

`cleveref` does not work inside a note page (beamer)

cleveref package works well in my beamer frames, but when it comes to note pages. The tags work well and cleveref can refer to items outside the note page, but not to items inside it \documentclass[...
0
votes
0answers
36 views

the cleveref usepackage: \cref

When I run the following code (pdflatex), Command Line: pdflatex.exe --interaction=errorstopmode --synctex=1 "ex_article.tex" Startup Folder: C:\Users\wendy\Desktop\siamart_171218 This is pdfTeX, ...
0
votes
1answer
14 views

Switch reference definition within document [cleveref]

I want tables in the main body to be numbered 1,2,3, ... and in the Appendix A4, A5, A6, .... References from the main body to tables should additionally make clear where that table is, by saying "...
3
votes
2answers
94 views

Is there a way to make cleveref distinguish two environments with the same counter?

I believe that usually you explicitly tell cleveref what to call your label using \crefname{type}{singular}{plural}, this doen't work however as here "type" has to be the name of the counter (I ...
2
votes
1answer
35 views

How to link words with cleveref?

Is it possible to link a word to the meaning at the end of file with cleveref? Heres a MWE of my code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{hyperref} \...
0
votes
0answers
89 views

! Argument of \@firstoftwo has an extra }

I am attempting to write macro that extracts and formats information from a label. I get the messages ! Argument of \@firstoftwo has an extra }. <inserted text> \par l.84 ......
2
votes
1answer
27 views

cleveref is using “table” instead of “tabela” when the document is set to Portuguese

I'm using cleveref in a document in Portuguese. The caption of the figure gets a label in Portuguese, but when referencing it on the text it goes wrong. I switched to German and it worked as expected. ...
1
vote
1answer
54 views

Making hyperlinks working with cleveref and htlatex/TeX4HT

Following Are htlatex (TeX4HT) and cleveref compatible? I am able to create cross-references with cleveref package with htlatex. Still, these cross-references are not hyperlinked, while those created ...
1
vote
1answer
49 views

Why \secref command in memoir with cleveref and nomencl no longer works

The document below, with a chapter/section scheme in a memoir class document, uses a custom \secref command. This command allows reference to a section in the shorter form "section s" that would ...
4
votes
1answer
91 views

Use package cleveref in Chapters

\documentclass[a4paper,12pt]{report} %------------------------------------------------------------ \usepackage{amssymb,amsmath,amsthm,latexsym,mathrsfs,amsfonts,dsfont} %-----accent ...
1
vote
1answer
19 views

Cross-referencing equations in subnumcases environment

When trying to cross-reference one of the multi-case equations in the subnumcases environment with cleveref, only the equation number is shown and not the letter. Example: \documentclass{article} \...
0
votes
0answers
25 views

How to fix a \cpageref link that's drives me to a wrong page?

I'm using hyperref and cleveref packages for to create link in my document. However, when I use \cpageref to reference a page, the link created drives me to a wrong page. In the following MWE, the ...
2
votes
1answer
68 views

Pagenumber within \cref command

I am writing a script for a lecture in math and have quite a few cross-references in it. Now i have the problem, that the cross-references are sometimes pretty far away from the theorems they refer to....
1
vote
1answer
50 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
36 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
38 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
53 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
32 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
55 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
41 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
78 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
37 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 ...
4
votes
3answers
59 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
197 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
31 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} \...
3
votes
1answer
55 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
21 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
100 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
43 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
59 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
103 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
39 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
48 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
56 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
134 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
47 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
121 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
37 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
40 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
56 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
29 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
56 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
14 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} \...
3
votes
1answer
71 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
47 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 ...