{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
0answers
115 views

\cref does not work for Section in emulateapj.cls

While \cref works quite well for me, it doesn't seem to recognise section labels when used in emulateapj.cls framework. Here's an example: ...
3
votes
1answer
95 views

including chapters in mdframed references

I'd like to have chapter.theorem numbers for an mdframed theorem environment. I can modify the environment definition to include this, as in: \documentclass{memoir} \usepackage{amsmath} ...
4
votes
1answer
63 views

Splitting a caption and cross-referencing

I'm currently writing my thesis and I'm struggling with my redefinition of the caption command. I've got large captions which I don't want to show up in my list of figures. Of each caption I want ...
7
votes
1answer
127 views

How to put numbers in parenthesis using cleveref

I am using the cleveref package for cross-referencing. When I use \cref{tab1} and \cref{fig1} I got the output as table 1 and fig. 1 respectively. I would instead like to get table ...
3
votes
1answer
136 views

chemmacros reaction environment and cleveref reference

I have a problem with the automatic reference by cleveref and the chemmacros package. When i refer to a reaction with cleveref, then cleveref types "eq. (1)" because chemmacros use the equation ...
1
vote
0answers
55 views

How can I make \cref{foo,bar} from cleveref work with htlatex?

I have the following test2.tex file: \documentclass{article} \usepackage{tex4ht} \usepackage{etoolbox} \usepackage{hyperref} \AtEndPreamble{\usepackage{cleveref}} \begin{document} ...
1
vote
1answer
62 views

How can I get htlatex to work with amsmath's align and cleveref?

I have a document test.tex: \documentclass{article} \usepackage{amsmath} \usepackage{etoolbox} \AtEndPreamble{\usepackage{cleveref}} \begin{document} \begin{align} . \end{align} \end{document} It ...
0
votes
1answer
72 views

How can I make amsthm and cleveref to work with htlatex?

I have the following test.tex document: \documentclass{article} \usepackage{hyperref} \usepackage{amsthm} \usepackage{cleveref} \newtheorem{thm}{Theorem}[section] \newtheorem{rmk}[thm]{Remark} ...
0
votes
2answers
59 views

How do I use aliascnt with cleveref?

I'm trying to compile the HoTT book with htlatex, and was trying to reproduce an issue that occurs with htlatex but not pdflatex. However, I couldn't even manage to get a small working example using ...
3
votes
1answer
85 views

How to place text flushed right in math mode (next to equation number)?

I have equations like this: \documentclass[DVI=17]{scrartcl} \usepackage{amsmath} \usepackage{cleveref} \DeclareMathOperator{\FA}{FA} \DeclareMathOperator{\RA}{RA} \DeclareMathOperator{\MD}{MD} ...
2
votes
0answers
56 views

No cleveref in beamer?

I am trying to get a math beamer presentation to work and it seems that cleveref is causing problems. The MWE below gives the error Paragraph ended before \@ynthm was complete In the ...
5
votes
1answer
53 views

How to change the number of a subsection used in a cross-reference? [duplicate]

I was wondering if I could change the number that appears in my "\labelcref"? (I use hyperref, cleveref and nameref packages) More precisely, I'm writing a document where there are several sections ...
4
votes
1answer
52 views

Suppress hyperlinks to current page

Is it possible to suppress hyperlinks pointing to the same page as the hyperlink? I currently use the hyperref and cleveref packages for the hyperlinks, but I don't find any option to disable ...
3
votes
1answer
63 views

Cleveref Links missing

i have a problem with cleveref. I'm using cleveref with the nameinlink-option but there is still no link. This is my header: \documentclass[12pt,a4paper]{scrreprt} \usepackage[latin1]{inputenc} ...
3
votes
0answers
98 views

Prefix for \externaldocument references in \cleveref

The question Special case for last element with \foreach manually changed the references, and added the ability to have a prefix on references. Can I do the same thing using \cleveref? (Note: This ...
4
votes
1answer
62 views

Gene-logic package and bizarre cross-referencing behavior

I am getting some bizarre behavior using the gn-logic (gene-logic) package with some of the various cross-referencing packages. In particular varioref and cleveref. Here is a MWE illustrating the ...
4
votes
1answer
141 views

Format reference to items in nested list with cleveref

I'm using the cleveref package to format references in my documents. However I am having difficulties implementing different formats for labels referring to enumerate-lists, in particular nested list. ...
0
votes
1answer
94 views

Are subcaption, cleveref and hyperref compatible? [duplicate]

I tried with this MWE: \documentclass{article} \usepackage{caption,subcaption} \usepackage{cleveref} \usepackage{hyperref} \begin{document} See \cref{subfig1}, \ref{subfig1} \begin{figure} ...
8
votes
1answer
45 views

eledmac and cleveref?

I'd like to use eledmac and cleveref in the same document, but I'm running into trouble with something like this: \documentclass{article} \usepackage{eledmac} \usepackage{cleveref} \begin{document} ...
6
votes
1answer
205 views

How to rename \cref{} for lstlisting

At the moment I'm working on my Diploma thesis and after a long time of searching and trying, I still can't find a solution for my problem. Long story short: I want to refer to a ...
21
votes
3answers
820 views

Can cleveref be made to use the Oxford comma for multiple citations?

Simple question: Is there a simple way to get cleveref to use the Oxford comma? \documentclass{article} \usepackage[standard]{ntheorem} \usepackage{cleveref} \begin{document} ...
3
votes
2answers
118 views

Cleveref to Nomenclature?

I am writing a book and use nomencl to print a list of symbols at the end. How do I cleveref to this list? In the introduction of the book, I would like to write something like "All the notation we ...
2
votes
0answers
119 views

Varioref, cleveref and autonum together

I'm trying to mix varioref, cleveref and autonum to have the following behaviors: Automatic adding of reference type (i.e. adding "section" when referencing a section). -> cleveref; Adding the "on ...
6
votes
2answers
415 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
23 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
359 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
118 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
187 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
148 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
140 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
465 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
170 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 ...
4
votes
1answer
534 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
106 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
82 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
192 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
209 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
285 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
221 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
67 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
167 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
95 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
101 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
136 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
89 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
158 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
181 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
127 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
294 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} ...