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
1answer
18 views

Omit name in cleveref only in specific occasions

In the document I'm working on, in most cases I need \cref{eq:kolmogorov} to write, e.g., Equation (2.4). But in some specific cases I only need it to be (2.4), without Equation. How can I do this? ...
1
vote
1answer
13 views

Customize the cross-reference appearance when referring not-exist labels

Here is a MWE: \documentclass{article} \usepackage{cleveref} \begin{document} see \cref{fig-not-exist} \end{document} The reference appears as a double question mark by default. I want to show the ...
2
votes
1answer
22 views

cleveref: Change value of the word 'and'

What have I to do to manipulate the and-conjunction? I tested all the conjunctions I found in the manual, without success. \documentclass[]{scrreprt} \usepackage{amsmath} %\usepackage{showkeys} \...
2
votes
1answer
88 views

AUCTeX does not recognize cleveref labels

I use the cleveref package, which allows annotating \label commands with an optional argument. Unfortunately, this prevents the various functions in latex.el from detecting those labels. My guess is ...
0
votes
0answers
21 views

Make label reference contain section number

I have some code that looks like \section*{Problem 1} \begin{enumerate} \item Hello \item \label{problem-2b} Yes \item \cref{problem-2b} Welp \end{enumerate} I want the reference to appear ...
1
vote
0answers
34 views

tex4ht: incompatibility of cleveref and amsthm?

I found that tex4ht doesn't work with cleveref and amsthm. I just modified the HWE from an old post: \documentclass{article} \usepackage{hyperref} \usepackage{amsthm} \usepackage{cleveref} \...
1
vote
1answer
31 views

Cleverref reference not working in custom environment

I have a custom environment defined in a style file, for which I am trying to create a specific cref counter. Here is my environment and the code in mystyle.sty \newcounter{exampleCtr} \setcounter{...
0
votes
1answer
18 views

Cleveref with hyperref and clrscode3e

I am looking for a way to use cleveref and hyperref in combination with the clrscode3e package. Unfortunately, the packages do not work together out-of-the-box. More precisely, I am considering the ...
2
votes
1answer
52 views

Setting \crefname dynamically

My goal: \begin{equation}[singular=<sing_flag>,plural=<plur_flag>]\label{eq:1} a < b \end{equation} \cref{eq:1} yields <sing_flag> (1) for any input for singular and plural (...
1
vote
1answer
14 views

Hide cleveref links in section title

I would like links to be coloured in general, but not the cleveref links in section titles. MWE: \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage[nameinlink]{cleveref} \begin{...
1
vote
1answer
40 views

How can I remove the initial letter in the Appendix heading?

I am writing a paper for school in which I need to include appendices. Currently, I am using the \appendix command at the end of the document (just before \end{document}) to insert these appendices. ...
4
votes
1answer
61 views

Cleveref with clrscode3e

I would like to make use of the advantages of the cleveref package also for pseudocode I write. More precisely, I am looking for a way to get the cleveref package to work with clrscode3e such that ...
3
votes
1answer
31 views

Subcaption + clevered range parentheses

I'm trying to have subcaption labels of the form (a), (b), etc. references of the form fig. 1(a), and ranges of the form figs. 1(a--c). I cannot seem to get the last requirement. Here's my MWE (...
2
votes
1answer
24 views

Cleveref and equations label package conflict

I'm using this template http://www.latextemplates.com/template/masters-doctoral-thesis \documentclass[ 11pt, % The default document font size, options: 10pt, 11pt, 12pt english, % ngerman for German ...
1
vote
0answers
15 views

Overriding noun used by cleverref [duplicate]

I have a certain set of equations in my document which I would prefer cleverref to reference using a different noun. That is, for some equations I would like cleverref to reference those equations as ...
3
votes
1answer
39 views

Changing the cleveref package language conjunction definition

I am using the cleveref package with brazilian option. I want to change the native brazilian range conjunction, as in "Figuras 1 a 3", to new brazilian range conjunction, as in "Figuras 1 à 3". How ...
0
votes
2answers
25 views

Lower case “line” when referencing algorithmicx line with cleveref

MWE: \documentclass[12pt]{article} \usepackage{algpseudocode} \usepackage[capitalize]{cleveref} \begin{document} \begin{algorithmic}[1] \State\label{line} Hello World \end{algorithmic} This is a ...
3
votes
2answers
128 views

How can I get cleveref to surround references with parentheses automatically?

I use cleveref for in-document references, and find it to be clever. However, I typically want to refer to figures (for example) within parentheses. What I do now is this \usepackage{cleveref} ... X ...
0
votes
0answers
29 views

Incorrect section title in PDF outline when cref is used in section title

I have the following MWE: \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \begin{enumerate} \item\label{item:45} An item \end{enumerate} \section{About \...
0
votes
0answers
15 views

Making refcheck work with cleveref and amsmath

This is a follow-up question to Making refcheck work with cleveref about refcheck taking notice of references made with cleveref. The solution proposed by egreg there works fine if amsmath is not ...
2
votes
2answers
43 views

Problem with Counters and Cleveref

I like using amsthm for my theorems, etc, but to highlight their importance, I like exercises to be in tcolorboxes. I want the exercises in the boxes to share the same counter as my theorems. I ...
4
votes
1answer
35 views

Change equation numbering without changing labels

The crux of the issue is I want to refer to some equations as "Equation 1" in the body of the text. However, the actual numbering of the equations I want to appear as a right justified "eq. 1". Below ...
2
votes
1answer
29 views

Capacity exceeded error while using cleveref package with ifacconf class

I am using the cleveref package with the ifacconf class and it is returning the error as follow: TeX capacity exceeded, sorry [input stack size=5000]. }{} I could not identify the error. Can anybody ...
1
vote
1answer
78 views

Redefine \cref for non-English languages

Would it be possible to define another command \frcref that is similar to \cref, but when it is called, e.g. \frcref{ch:chapter1}, it displays the French word "Chapitre" instead of the English word "...
1
vote
0answers
35 views

Package autonum breaks all references when used with thm-restate

I have the following LaTeX file \documentclass{article} \usepackage{thm-restate, autonum} \newtheorem{lem}{lemma} \begin{document} \begin{restatable}[Embedding lemma]{lem}{embedding} \label{lem:...
0
votes
2answers
28 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
43 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
21 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
27 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
64 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
29 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
65 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
20 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 "...
4
votes
2answers
110 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
38 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
132 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
40 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
79 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
86 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
149 views

Use package cleveref in Chapters

\documentclass[a4paper,12pt]{report} %------------------------------------------------------------ \usepackage{amssymb,amsmath,amsthm,latexsym,mathrsfs,amsfonts,dsfont} %-----accent ...
1
vote
1answer
43 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
29 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
71 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
61 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
43 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
48 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
56 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
46 views

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

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
68 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
45 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 ...