{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
0answers
8 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
41 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 ...
2
votes
1answer
44 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
25 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
82 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 ...
7
votes
2answers
89 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
1answer
86 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 ...
6
votes
1answer
222 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.
...
8
votes
1answer
63 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
41 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 ...
8
votes
3answers
140 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 ...
2
votes
1answer
95 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
29 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 ...
4
votes
1answer
65 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
183 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 ...
5
votes
1answer
59 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
58 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 ...
5
votes
1answer
150 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 ...
12
votes
1answer
78 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 ...
0
votes
0answers
112 views
Bad references with \cref in Ubuntu [closed]
I've a problem with the references generated with \cref in Ubuntu. When I try to cite some figure or table I obtain ?? [table][1][1]1.1, with no link to go to the figure or table. In the table of this ...
3
votes
1answer
68 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 ...
7
votes
1answer
120 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 ...
0
votes
1answer
65 views
Problems using cleveref with ntheorem [closed]
I'm using ntheorem and cleveref to make my life easier. The problem is that the produced references look like:
If I use \cref : ?? [theorem][22][4]4.22
If I use \autoref, but cleveref is loaded : ?? ...
8
votes
1answer
88 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}
...
4
votes
1answer
52 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 ...
31
votes
1answer
594 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
170 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
118 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
92 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 ...
6
votes
1answer
198 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 ...
2
votes
2answers
198 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 ...
9
votes
2answers
467 views
How can I get utf8 character
I want to make cross references for sections to be symbols but after using the description given I got error report saying keyboard character used is undefined in inputencoding 'utf8'. What might be ...
5
votes
1answer
243 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
411 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
43 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, ...
6
votes
2answers
202 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
178 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:
...
7
votes
1answer
326 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
426 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
135 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 ...
9
votes
2answers
315 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
97 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
312 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 ...
12
votes
3answers
546 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
368 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...
...
9
votes
1answer
265 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 ...
21
votes
1answer
546 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.
...
7
votes
1answer
319 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
118 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 ...
7
votes
2answers
2k 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 ...