{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

6
votes
2answers
216 views

Splitting(!) one latex document into two pdf outputs including references

I have a quite huge thesis-latex-document with lots of references to the appendix. The whole document I would like to split into two pdf-files. That means: I would like to have the thesis and the ...
2
votes
0answers
22 views

Error using hyperref, cleveref and \newtheorem: no counter defined [duplicate]

Here's my problem: I'm writing some mathematics lecture notes. I needed some different theorem types, such as propositions, lemmas, plus observations, examples and definitions whose numbering depends ...
9
votes
2answers
166 views

Cleveref: Parentheses around references to subequations using \labelcref

Using the Cleveref package (v0.19) i have a problem with missing parentheses when referencing to subequations, using the \labelcref command. Here is a MWE: \documentclass{article} ...
2
votes
1answer
77 views

Is it possible to use abbreviations with cleveref?

I would like to use the full name in most circumstances for references. But sometimes, e.g. in $\xRightarrow{\cref{prop:15.2d}}$ the full name might be too long. In this example, it gives ...
10
votes
1answer
131 views

How can I get cleveref / enumitem to print, not 'item (e)', but 'Proposition 1 (e)'?

I currently make use of enumitem and cleveref to show references to theorems. Sometimes, I want to reference a point in a list inside of a theorem. It should show [Name of theorem type, e.g. ...
6
votes
0answers
100 views

customizing cleveref for pair of subfigure references: [1a and b] instead of [1a and 1b]

I am using the cleveref package and I am very happy with it. However, I encountered one problem I wasn't able to solve. I am probably just not combining the syntax correctly. This is highly connected ...
2
votes
0answers
77 views

Cleveref's \crefrange and mixed equations and subequations

This example doesn't work with the latest version of cleveref. The line Refer to \crefrange{eqa}{eqc}. gives the output: Refer to ?? 1–3. It used to work before. Can anyone explain how to fix it? ...
6
votes
1answer
229 views

Reference equation in align* environment with cleveref

In order to control equations numbering I use the Align* environment where I put \numberthis at the end of the equation that I want to number. After, I label the numbered equation but when I want to ...
6
votes
2answers
132 views

How to customize cleveref package macro to be consistent when multiple figure references are used in this case?

The cleveref package does a very nice job of sorting the labels of the many references for you (whatever they are) in their natural order. However, I was stumbled by a special case when I wanted to ...
3
votes
1answer
243 views

Equation reference undefined when using \cref and package{amsmath}

When I attempt to reference an equation using \cref{..} while also using the package amsmath the references appear as ?? in the outputted pdf. For example \documentclass[]{article} ...
2
votes
0answers
102 views

Automatically change cref name on non-first mention

I'm using cleveref to make a references in format "img. NN". My university's instructions require to use "img. NN" format on the first reference and to write something like "see img. NN" on the second ...
3
votes
1answer
79 views

How to cross-reference a list of sub figures at once? [duplicate]

How can I define a command similar to \ref for referencing a list of subfigures at once? Just like what cite package does for citations. A command like \myref{a,c,d} which can be tuned to generate ...
7
votes
1answer
171 views

Using cleveref for cross-referencing to exsheets questions

I really like the functionalities offered by exsheets, a package for typesetting exercise sheets and exam papers (and their solutions). One particularly nice feature is the possiblity of assigning ...
13
votes
3answers
167 views

Question about the use of cleveref's \Crefrangeformat

I am trying to use the package cleveref to reference to a range of equations. I'd like to have the following result in the text: Eqs. (1)-(5) I want to be able to define the format once, using ...
5
votes
3answers
202 views

Why does cleveref's \crefname command have no effect when it appears within a \foreach?

This question follows on from this one, which I asked a few weeks ago. I have since discovered the cleveref package, and I would like to use it for ease in referring to theorem-like environments ...
1
vote
1answer
152 views

How to modify the label output in cleveref and varioref?

EDIT: The mentioned solution on the bottom of this page works perfectly for the label output. But now I am struggling with the distance of the \crefname and the counter. Instead of a space I would ...
3
votes
1answer
59 views

Change item font style when referencing

I constructed my own list longmainenum which has bold item labels. Now when referencing them with cleveref's \crefI want to have the bold font removed. A minimal example: \documentclass{scrartcl} ...
0
votes
0answers
22 views

Cleveref breakup on figure references [duplicate]

Consider this MWE: \documentclass[a4paper]{article} \usepackage{graphicx} \usepackage[dvips]{hyperref} \usepackage[noabbrev,nameinlink]{cleveref} \begin{document} \section{Abc} \begin{figure} ...
7
votes
1answer
125 views

Using showkeys and cleveref together

I'd like to use showkeys to show me the labels of my definitions (this works) and the labels of the used references (this does not work). The reason for the latter problem is that I use the cleveref ...
7
votes
1answer
82 views

Cleveref range format for gb4e “(1a-c)"

I managed to get cross-referencing with cleveref to examples in the format "examples (1a-1c)" using \crefrangeformat{xnumi}{examples~(#3#1#4--#5#2#6)} but how can I get "examples (1a-c)"? I found ...
2
votes
0answers
88 views

\MakeTextLowercase not working with \cref

I'm using cleveref and classicthesis. classicthesis defines section headings to use small caps and uses \MakeTextLowercase to achieve this. However, when using the capitalize option for cleveref, the ...
4
votes
1answer
120 views

\cref inside a heading breaks PDF bookmark

In the following MWE, the bookmark produced by hyperref is incorrect: \documentclass{article} \usepackage{hyperref} \usepackage[capitalize,nameinlink,noabbrev]{cleveref} \hypersetup{% ...
5
votes
1answer
80 views

Making uses of cleveref packages standalone

I have used cleveref package for referring to equations, figures, etc in an article. However, I wish to compile my tex file on another system which only has a basic version of tex. I wish to make my ...
3
votes
1answer
120 views

Editing cleveref's format for multiple label references

I am using the cleveref package to refer to theorems, equations, etc, in an article (LaTeX). I wish to have the format of reference as: Thm. (1) for single theorem (or equation, figure, etc) and Thms. ...
3
votes
1answer
135 views

Cross-ref an equation using RefTeX, AUCTeX and cleveref

After an updated of AUCTeX (to 11.87) the solution that worked wonderful from this answer stopped working. In particular, I got the following error: reftex-reference: Wrong number of arguments: ...
5
votes
2answers
121 views

Listings, Cleverref, and Appendix: Weird Alignment

I'm using the packages listings and cleverref in my thesis. When I put a listing in the appendix, however, it seems to be somehow indented: \documentclass{article} \usepackage{listings} ...
15
votes
2answers
270 views

Crossreference in Ref Range [(1a-1e) to (1a-e)]

I am just a beginner in LaTeX, I am facing a problem in Ref Range, \documentclass{article} \usepackage{amsmath,amsfonts,amssymb,cleveref} \begin{document} \ref{eq1a,eq1b,eq1c,eq1d,eq1e} ...
1
vote
1answer
290 views

Reference to multiple labels with \cref

I need to refer to seven figures which are not continuous in sequence (say figures 5.3b, 5.3d, 5.3f, 5.4b, 5.4d, 5.5b, 5.5d). When I am using \cref{5-3-b,5-3-d,,5-3-f,5-4-b,5-4-d,5-5-b,,5-5-d} It ...
6
votes
2answers
114 views

How to get cleveref to treat separate theorem-types as one?

Introduction I'm using a somewhat complex theorem-environment setup which, perhaps, is finally getting me into trouble. I use memoir, cleveref and ntheorem. There is a global thmcounter that all ...
5
votes
2answers
130 views

IEEEtrantools clash with cleveref

I have two rather complex equations I would like to align at the two points to the left and to the right of the '=' sign. Elsewhere in the document I am using cleveref's \cref command, but that ...
1
vote
1answer
112 views

Display reference name, label number and target name with cleveref

I want to reference a section with cleveref like in the following example: \section{Foobar} \label{sec:foobar} See \cref{sec:foobar}. The output of this is: See section 1. But what I would ...
3
votes
0answers
73 views

Reference source code line in minted environment with cleveref

I'd like to reference lines in the minted environment (solved here for regular \ref) using cleveref. MWE: % !TEX TS-program = arara % arara: pdflatex: { shell: yes } % arara: pdflatex: { shell: yes ...
4
votes
2answers
202 views

tcolorbox: \newtcbtheorem referencing

Using \newtcbtheorem, how do we reference the created environment? \documentclass{article} \usepackage[most]{tcolorbox} \tcbuselibrary{theorems} \usepackage{cleveref} \crefname{exa}{example}{Example} ...
6
votes
2answers
108 views

Referencing label with conditional page info

I would like to have an easy way to reference a label and if that label is not on the current page then its page should be printed in the reference like "See example 2.3 (p.4)". I tried the varioref ...
1
vote
1answer
118 views

Pagerefo on cref? Multiple pages?

I am using \cref to refer to different figures in the appendix: \cref{figure1,figure2,...} Now I want to create a \pageref{} to it, but I don't know how I can achieve this with multiple pages? So ...
5
votes
2answers
209 views

enumitem: referencing items in enumerate

Say we have a huge document with many sections, subsections, and subsubsections. In a few of these sections, we have enumerated environments. The package I am using is enumitem. One of the ...
11
votes
1answer
183 views

Strip section number from equation range reference

I am trying to adjust equation range numbering from (1.10)-(1.15) to (1.10-15). By calling this in the preamble: \crefrangelabelformat{equation}{(#3#1#4-#5#2#6)} and then this in the document: ...
3
votes
2answers
187 views

cleveref doesn't use correct capitalized name if used with amsthm?

It seems that the cleveref package does not capitalize properly when referring to a newtheorem if both \crefname and \Crefname have been defined. Or is it just me? Here is my MWE: ...
6
votes
1answer
117 views

What is the DRY way to get Theorem 1(a)?

I am typesetting a document with the memoir class and the cleveref package. Often I have a numbered theorem and enumerated parts. I would like to be able to refer to a part of a theorem as simply as ...
4
votes
1answer
101 views

Cleveref doesn't find the label

The following code gives me as reference the section and not the signpost. It is probably a beginner's mistake. \documentclass{article} \usepackage{tikz} \usepackage{mdframed} ...
2
votes
1answer
195 views

new command for including a custom string into \cref

In this thread here: Subfigure labelling for a single figure I suggested a solution how to include a custom string into the hyperlink created by the \cref command. I'd like to create a compact new ...
4
votes
1answer
150 views

Cross referencing tcolorbox with cleveref-package

Thanks to Thomas F. Sturm (http://tex.stackexchange.com/a/124688/15907) I have a little environment for creating nice looking source code in LaTeX. I started my enviroment with this here: ...
3
votes
1answer
129 views

Name formatting with cleveref - question about types

I want to customize the text that appears when I do a \cref{}, so for example, I want to make a link to section 0.1 but I want the text to say 'Summary' not section 0.1. I had this part working with ...
15
votes
1answer
212 views

Strange behaviour of \sbox

This question consists of two related parts. I already solved the original problem but still don't understand where it came from or why the solution works. I use the subcaption package so I can place ...
0
votes
1answer
74 views

Defaulting to clever references

I would like to redefine \ref to behave like \cref while still allowing \ref* to be used for the standard behavior of \ref. Here is my attempt to achieve this; I would like to use the commented lines ...
3
votes
1answer
94 views

Using a half-space with abbreviations in cleveref?

I'm using cleveref with abbreviated forms such as Fig. 1, and would like to have them typeset using a thin space/half-space rather than the ordinary non-breaking space. However, I'd only want this ...
2
votes
1answer
390 views

Defining cross-reference names for custom theorem environments in cleveref

I am concerned with the difference between this working example \documentclass{article} \usepackage{amsthm} \usepackage[capitalise]{cleveref} \newtheorem{thm}{Theorem} \begin{document} ...
8
votes
2answers
195 views

How to strip “eq.” from cleveref?

How can I make cleveref output (1) instead of eq. (1) when referencing equations only?
5
votes
1answer
57 views

How to disable sorting in cleveref for one instance?

I can disable reference sorting globally using the nosort or the compress package options, that's described in the docs. The same chapter explains how to disable compression for one instance of \cref. ...
9
votes
1answer
528 views

cleveref and appendix packages: appendix referenced as section

Using this example: \documentclass{scrartcl} \usepackage{lipsum} \usepackage{appendix} \usepackage{cleveref} \begin{document} \section{The first section}\label{sec:1} \lipsum[2] \section{The second ...