{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.

learn more… | top users | synonyms

2
votes
2answers
321 views

Extra “appendix” when referencing using cleveref in elsarticle

How do I get rid of the extra "appendix" appearing when I cross-reference an appendix section? Example output is "...see appendix Appendix A". MWE as follows: \documentclass[preprint,3p]{elsarticle} ...
1
vote
1answer
89 views

What is the counter name for verbments?

I'm trying to use the verbments package with the cleveref package. I need to find the name of the counter which is usually used for \ref{listing_label} to be able to define the name cleveref uses for ...
0
votes
0answers
27 views

Cleveref reference table as section [duplicate]

I am using cleveref for my references, and I just noticed that a reference to a table is actually resolved by cleveref into “section”. Is that indended behaviour? Is there maybe something wrong with ...
5
votes
1answer
65 views

Setting minimal number of references for cleveref's compression feature

I am using cleveref for cross-referencing. The default sort&compress option compresses three or more consecutive references into a range. I would like to get this compression already for two ...
4
votes
1answer
61 views

Automatic switching of arrows in references

I would like to use references in a way that an arrow is in front of the referenc and points in the direction depending on whether the referenced instance is a above or below the reference (→ chapter ...
3
votes
1answer
799 views

cleveref fails to reference algorithms

In the following example document, both \autoref and plain ref will correctly link and number an algorithm reference, but cleveref fails that task. It will just insert question marks instead. In ...
0
votes
0answers
35 views

Problem when using hyperref together with cleveref [duplicate]

As it says in the cleveref documentation hyperref must be loaded before cleveref. But at me I have to load at least one package between them and I would really like to know why. The not working ...
7
votes
1answer
128 views

Collapse “on page”s for multiple references in \vref

The code at the bottom produces See equations (1) and (2) on page 6 and on page 11. What I'd like is See equations (1) and (2) on pages 6 and 11. Otherwise it looks quite strange in my ...
13
votes
3answers
512 views

Cleveref and named theorems

Is it possible with Cleverref to reference not only the number of an environment but the "name" (the thing that is passed to it in square brackets? In the following example I want to replace the line ...
10
votes
2answers
183 views

Two colors in one hyperlink

As usual writing a few documents. As one can see having too much color and gloss in a document is never good. Therefore having boxes, and a myriad of colors in the hyperlinks is a bad idea. I really ...
8
votes
1answer
4k views

Tex capacity exceeded sorry input stacksize=5000

I am getting this error while trying to build my tex file. As soon as I include the cleveref package, I get this error and it shows cleveref.sty with the cursor at the bolded part of the file. ...
10
votes
1answer
117 views

Kerning in \Cref of cleveref

When I use the \Cref command of cleveref package, it doesn't apply the corresponding kerning: Here is a minimal example: \documentclass{scrartcl} \usepackage[thref]{ntheorem} \usepackage{cleveref} ...
3
votes
1answer
73 views

cleveref: \lcnamecref fails to work with theorem names that are not pre-defined

I'm using cleveref with the capitalise option, and I'd like to use the \lcnamecref command to give the name of one of my theorems in the text. But if this is not one of the theorem types pre-defined ...
9
votes
3answers
448 views

algorithm2e + cleveref: problem with wrong reference to line numbers

For some reason I do not understand, cleverefproduces wrong references to line numbers of listings produces with the algorithm2e package. I hope that I did not miss a simple solution ... My example ...
4
votes
1answer
506 views

cref reference format for label type `' undefined

I have this error that I suspect comes from the fact that my tables and figures are in a slave file. It seems that cleveref does not manage to see the "class" of my float. I tried with varioref and I ...
2
votes
0answers
35 views

Problem with hyperref/cleveref interaction and specially tagged equations [duplicate]

I would like to resolve the infamous warning destination with the same identifier (name{equation.0.1}) has been already used, duplicate ignored in my MWE below. Reading around this site, the package ...
5
votes
1answer
309 views

\crefname for several layers of an enumerate: problem with enumitem

I want to use the \crefname macro from the cleveref package to set the label names on several layers of an enumerate environment. The following code works very well: \documentclass{article} ...
1
vote
1answer
620 views

\autoref with links that include only the number, but not the text, and have counter-dependent colors

I would like the functionality of hyperref's \autoref, but in a way that the link border box covers only the number and not the preceding text (e.g. "section"). This is normally possible with the ...
6
votes
1answer
445 views

Multiple labels in Cref

Following is a simple code to show my problem with the cleveref package. When using multiple labels it breaks on the second label... \documentclass[11pt]{article} ...
3
votes
1answer
92 views

Switch off “on page” for varioref

For referencing I'm using the three packages \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} In the text I cite with \vref, which is redefined by cleveref and does its job very ...
6
votes
1answer
720 views

Lightweight equivalent of \cref and \Cref

I'm trying to convert my LaTeX document to HTML using HeVeA and I'm facing a problem with cleveref package -- my LaTeX file uses \cref and \Cref heavily, but hevea doesn't support this package by ...
13
votes
1answer
135 views

Using babel and cleveref causes unnecessary horizontal space in header

Update This bug has been fixed with version 0.18.9 of cleveref, which is currently on ctan. Question Babel and cleveref do not seem to work flawlessy together when they share the same language ...
3
votes
1answer
123 views

Using cleveref with newenvironment

I am trying to refer to a newenvironment using cref from the cleveref package. Here is a MWE that demonstrates what I am trying to do. \documentclass{article} \usepackage{cleveref} % define a ...
8
votes
1answer
286 views

Making refcheck work with cleveref

It seems that refcheck does not recognize references made by cleveref: \documentclass{article} \usepackage{amsmath} \usepackage{cleveref} \usepackage{refcheck} \begin{document} \begin{align} a ...
8
votes
1answer
192 views

cleveref doesn't print correct caption for listings

I want to set the caption for referenced listings: \documentclass{scrbook} \usepackage{listings} \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} \begin{document} ...
5
votes
1answer
113 views

cleveref & varioref : Missing \endcsname inserted

I read the excellent question Difference between ref, varioref and cleveref. Decision for a thesis and various doc on the net (the varioref package documentation) and tried to use it... but with many ...
39
votes
1answer
2k views

Difference between ref, varioref and cleveref. Decision for a thesis

How can one make a quick decision what the best "ref" for a thesis in pdflatex with hyperref is? After a few hours reading I do not know more than ref is used by everyone who does not know about ...
6
votes
4answers
257 views

cleveref: configure symbol §/§§ for all sectioning types once time

I want to configure the section symbol § (singular and plural form §§) indistinctly for all types of sections (part, chapter, section, subsection, paragraph and so on). I use the cleveref package, but ...
3
votes
2answers
187 views

cleveref counter and ref label number format with padding zeroes

I am using cleverref and a custom counter to typeset a special kind of reference, where I need the same text on the definition side and the reference side. Currently I use ...
1
vote
1answer
164 views

pgfplots externalize and references: some work, some don't

I have started using the tikz externalization library for my current project. From here I learned to use \pgfplotsset{invoke before crossref tikzpicture={\tikzexternaldisable},invoke after crossref ...
8
votes
1answer
2k views

Is it possible to make a reference to a subfigure to appear Figure 2(a) with cleveref?

I am new here, and also new to LaTeX, so apologies if I have included too much or too little! I have been using the subfig package, and just today added in cleveref. The subfig package labels my ...
3
votes
2answers
514 views

acronym \acresetall & cleveref: multiply defined labels

I'm using the acronym package to expand acronyms and I'm also using the cleveref package. I would like to have acronyms expanded once per chapter. For instance in the following code, both acronyms ...
5
votes
1answer
483 views

Reference algorithmic line numbers using cleveref

consider the following example: \documentclass[a4paper,final]{report} \usepackage{cleveref} \usepackage{algorithmic} \Crefname{ALC@unique}{Line}{Lines} \begin{document} Tests: ...
5
votes
1answer
1k views

Hyperlinking problems when using subequations, hyperref and cleveref

The problem Hi. I'm currently writing my thesis and have my equations numbered within sections. I also use subequations from amsmath. When I use amsmath, hyperref and cleveref together, however, I ...
1
vote
0answers
52 views

Why doesn't cleveref's \namecref work? [duplicate]

Possible Duplicate: Which packages should be loaded after hyperref instead of before? I'm trying to use cleveref's \namecref command to get the name of the type of section a label is in, ...
7
votes
2answers
440 views

Two labels in one caption possible?

In a lot of journals it is common to have single digit figure numbers and denote parts in the figures as (a), (b), and so on. I wanted to use a similar style. After reading the documentation to the ...
2
votes
1answer
356 views

flalign and alignat break autonum

After yesterday's unsuccessful attempt, I am continuing in my attempts to find out the limits of autonum. It seems that flalign and alignat environments break autonum. Here is an MWE that works fine: ...
8
votes
1answer
774 views

cleveref, autonum and labeling only referenced equations

User MMM recommended that I use the new autonum package in reply to my query. However, I am having some difficulty getting the package to work. Here is a minimal working example that compiles with ...
6
votes
4answers
1k views

Adding words to links generated by hyperref

\documentclass{article} \usepackage{hyperref} \usepackage{lipsum} \usepackage{polski} \begin{document} \begin{figure} . \caption{A figure} \label{fff} \end{figure} \lipsum[1] Rysunek~\ref{fff} jest ...
2
votes
1answer
235 views

Reference Lemma from the same document

I am writing a document, where I have 3-4 Theorems, and a Lemma. I want to refer to the Lemma in the Theorems (possibly highlighted and a link to the Lemma). How should I go about doing it? I tried ...
10
votes
2answers
575 views

Section based linguistic example numbering with brackets

I would like to have examples in my document look like this: Section 2 (2.1) This is an example. This is a reference to example (2.1). That is: the section number appears both next ...
4
votes
2answers
139 views

How to avoid long space when cross-reference name is empty?

When using cleveref one may want to use its macros for making all cross-references, even those where the cross-reference name is empty. The cross-reference name is the name that is appended to a ...
10
votes
1answer
442 views

showonlyrefs and cleveref

This question led to a new package: autonum I know that cleveref is not compatible with showonlyrefs as it says in the cleveref manual. But I have a book-length document that depends on ...
14
votes
4answers
894 views

Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used

The problem I'm writing a document where all of my equations are labeled, not by numbers, but by names, which I provide with amsmath's \tag command. I also use cleveref for ease of ...
8
votes
2answers
730 views

\veqref{} command like \vref…from varioref package

1) The varioref package gives \vref, which gives output as follows... figure~\ref{fig:test} on page~\pageref{fig:test}. 2) The amsmath package gives \eqref{}, which gives output as follows... ...
11
votes
1answer
528 views

Getting cleveref to mark all of “Lemma 1” as a hyperlink, not just “1”

I recently discovered the very nice cleveref package, and really like. Works much better than autoref (from hyperref) for me. There is only one thing I don't like: If, for example, the \cref command ...
25
votes
1answer
1k views

Impact of hyperref, when varioref and cleveref are used

I think I may have found a bug in either hyperref, cleverefoder varioref but can't determine the details any further. If do not load hyperref in the following example, the result is fine. ...
8
votes
1answer
597 views

Cleveref can't refer to line numbers in listings

Consider the following minimal example: \documentclass{article} \usepackage{listings} \usepackage{cleveref} % \crefname{lstnumber}{line}{Line} \begin{document} % \section{Section} ...
2
votes
1answer
213 views

Creating hyperlinks with imakeidx using cleveref

I'm using imakeidx to create the index of my thesis and I would like to have hyperlinks to the pages that are hereby cited. Unlike this discussion, I'm using the cleveref package. Here is the MWE ...
10
votes
2answers
6k views

Multiple items/equations in single eqref call

How can I reference multiple items/equations in a single \eqref call? I want, e.g., "In (1,2)..." instead of "In (1) and (2)...". I'd think I could do something like \begin{enumerate} \item blah ...