{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

3
votes
1answer
157 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: ...
4
votes
1answer
45 views

cleveref and cases packages clash

In the MWE below cleveref produces `section 1' instead of a reference to equation 2. What's the easiest fix? (other than using \eqref or (\ref)) \documentclass{article} \usepackage{cleveref} ...
1
vote
0answers
38 views

Trouble creating custom algorithm environment with separate counter

I am trying to create a custom algorithm environment for CUDA kernel code that runs on the GPU, but have little experience with custom LaTeX. It should have a separate counter, be referenced as Kernel ...
4
votes
2answers
67 views

Cleveref reference name depending on label instead of counter?

Let's say I have this: \documentclass{article} \usepackage{cleveref} \begin{document} \section{Section One} \label{a:sec1} \cref{a:sec1} \section{Section Two} \label{b:sec2} \cref{b:sec2} ...
3
votes
1answer
19 views

Using \cref and custom labels for inference rule names

I have an array environment that is used to present inference rules (via a custom command). Now, these inference rules have names and i would like to refer to them using \label and \cref commands. I ...
2
votes
0answers
30 views

Include Chapter number in reference if target is in different chapter

I'm using a setup where the chapter numbers are in Roman and the normal referencing commands do not include a chapter reference: \renewcommand{\thechapter}{\Roman{chapter}} ...
2
votes
1answer
77 views

Editing the reference style for subfigures using cleveref and memoir

I'm using the cleveref package to reference floats (in this case subfigures) in the memoir class. Currently the output looks like this (sorry for the danish, I don't think it matters): Using the ...
12
votes
5answers
2k views

Not using abbreviations with cleveref

I’d like to use the cleveref package but I don’t like that it inserts most names as abbreviations; for instance, it will print “… fig. 2.1 …” instead of “… figure 2.1 …”. Is there a way of changing ...
0
votes
0answers
54 views

Why does hyperref return errors when options are included to this package?

When I include these options to the package hyperref I get error messages and the file doesn't compile! Please here is a minimal working environment: \documentclass[a4paper,10pt]{article} ...
4
votes
0answers
33 views

breqn not playing well with cleveref (or vice versa)

This is a little different from Cleveref and breqn packages don't play nice together, and may not have a simple answer. I was experimenting with breqn, and found some of my tagged equations were ...
15
votes
4answers
951 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 ...
3
votes
2answers
51 views

Change the output format of \cref from table to Table and from eq. to Equation

if you use \cref then you get references as eq. (1) / table (1) / fig. (1) but I want it to produce Equation 1 / Table 1 / Figure 1 how to I set this? I also want to know if it is possible to use ...
0
votes
0answers
32 views

Using cleveref for named referencing

This is what I have so far \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{tikz} \usepackage{tikz-cd} ...
19
votes
1answer
2k views

How to reference ranges rather than separate numbers?

I would like to do the following: Just type something like ... we describe this in sections \mycoolref{winter,spring,summer,fall} ... and it will be typeset as something like ... we describe ...
0
votes
1answer
22 views

cleveref, ntheorem and lj-igpl

The cleveref package doesn't work properly with the lj-igpl package. There are many discussions about cleveref, however, none of them solves my problem. I am using the ntheorem package as well, but ...
2
votes
1answer
44 views

Generate HTML from document that uses autoref/cleveref

I have an existing document that was written using hyperref and natbib, and am trying to generate a website alongside the PDF that is already built. The document was written using autoref references ...
6
votes
1answer
64 views

Mixing cleveref, vref and ref: Argument of \@firstoftwo has an extra }

I am using varioref and cleveref together. This works pretty well. I had to add a hack though, which modifies the strings used by varioref (in german it should read "ab Seite X" ("starting on page X") ...
1
vote
1answer
64 views

cleveref — using both abbreviated and full form references?

The words chapter, part, appendix, table, figure, and the like are lowercased and spelled out in text (though sometimes abbreviated in parenthetical references). (Chicago Manual of Style, 16th ...
4
votes
0answers
56 views

How to change cleveref references to 'verbal' varioref style?

I would like to use cleveref's automatic ref target type recognition but with the more verbal page reference of varioref. This is my MWE: \documentclass{report} \usepackage{varioref} ...
4
votes
1answer
64 views

How to reference an inequality with \cref?

I have inequalities being referenced by cref as equations. 1-) How can I change that? (and still have inequalities with the same numbering as equations) 2-) How can I change that and have ...
1
vote
1answer
66 views

Why cleveref references don´t works in this example?

I was compiling with PDFLATEX and appears ?? instead references. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} ...
2
votes
1answer
32 views

How can I refer to the bibliography chapter generated by biblatex using cleveref?

I am using biblatex to generate my bibliography using printbibliography. I want to reference the bibliography from another chapter, using cleveref like this: \Cref{chap:bibliography} lists the ...
2
votes
0answers
23 views

Is it a bug? (LuaLaTeX AND [russian](Polyglossia OR Babel) AND Cleveref) => ERROR [duplicate]

So, with the following code \documentclass[12pt, russian]{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures={TeX},Renderer=Basic} \setmainfont[Ligatures={TeX,Historical}]{Linux Libertine ...
16
votes
3answers
1k views

Emacs, RefTeX and Cleveref – can they work together?

Trying to look for an answer in the net yielded only one questions and one answer which I could neither understand nor use. On tex.stackexchange I found only this question which was answered but I'm ...
1
vote
0answers
69 views

amsmath package clash

Just this afternoon I seem to have a package clash that resulted in all my equation numbers disappearing. I seem to have resolved the issue by putting \usepackage{amsmath} at the top of the preamble ...
0
votes
0answers
32 views

Customize auto-completion in Texmaker to give multiple arguments to a function

So i saw this question, and it does what i want. Almost. yes it works for \cref{#label#}, but \cref{} can also take a list of labels, is there a way to make this work? I can't see any other options ...
4
votes
2answers
64 views

How to change the word “table”/“cuadro” for “tabla” using \cref?

I´m starting using cleveref package. I like it. But now I´m typing in spanish and when \cref is pointing to a table I want that use the word "tabla" instead "cuadro", in the text. When I type "is ...
3
votes
1answer
111 views

How to correctly label an included PDF?

I have this: \label{appendix:b} \includepdf[scale=0.8,pages=1,pagecommand=\chapter{interview}]{interview/interview} \includepdf[scale=0.8,pages=2-,pagecommand={}]{interview/interview} ...
4
votes
1answer
73 views

hyperref and cleveref together with enumitem

I am working on lecture paper and I am referencing theorem-like environments a lot. I have written down a simple example how my layout might look like: \documentclass[a4paper]{article} % ...
2
votes
1answer
63 views

Cleveref mislabels figures when using \ContinuedFloat

When using subfloats over multiple pages I have used \ContinuedFloat to carry on the figure environment which also preserves the numbering. However, when I try to reference the whole figure, cleveref ...
3
votes
1answer
70 views

Subcaption format with cleveref

I need to get Figure 1.1 (a) when i put \Cref{fig:NiceImage1}. I have to use \Cref{fig:NiceImage}\subref{fig:NiceImage1} for getting same result. \documentclass{scrbook} \usepackage[demo]{graphicx} ...
4
votes
1answer
139 views

removing underline from journal title when using hyperref

When I am using hyperref, the package puts underline to the journal title in my references. How can I get rid of this underline? A similar question is asked here: Turning underlines OFF in hyperref ...
3
votes
1answer
29 views

Change the \crefrange title once

I'm using cleveref and want to use \crefrange in a German sentence but it doesn't create the correct title for this case: In den Abschnitte 7.3.1 bis 7.3.3 wurde für den […] In den ...
3
votes
1answer
56 views

Hyperref, cleveref and algpseudocode same identifier warning

I get the warning pdfTeX warning (ext4): destination with the same identifier (name{ALG@line.2}) has been already used, duplicate ignored with the MWE down below. \documentclass{article} ...
3
votes
1answer
73 views

How can I set RefTex default reference format?

I'm using RefTex and cleveref. When I want to add a cross-reference I need to enter C-c ) C <SPC> to select the uppercase (\Cref) reference format and show all label types. I use this method to ...
4
votes
3answers
91 views

Using \cref on a \minipage label?

A couple of times I've had trouble using labels on minipage. I use minipage to create subfigures a) and b), each with their own \subcaption and \label, the whole figure also got a \caption with a ...
1
vote
0answers
19 views

Cleverref does not use default language after \foreignlanguage

I have the following code: \documentclass[a4paper]{article} % PACKAGES \usepackage[english,ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[ngerman]{varioref} \usepackage{hyperref} ...
2
votes
1answer
90 views

Cleveref displays ?? 3.2.2 instead of the correct reference name

I'm trying to use cleverref for my references but up to now it does not work for me. Currently my setup looks like this: \documentclass[a4paper]{article} % PACKAGES ...
6
votes
1answer
90 views

Theorem and lemma sharing counter with mdframed and cleveref

Problem Essentially I've got the same problem described in Cleveref with counters with same name: I've got theorems, lemmata and corollaries all sharing the same counter, and when referencing them ...
0
votes
0answers
51 views

cleveref and subcaption: how to handle subfigure reference?

Given \usepackage{caption} \usepackage{subcaption} \usepackage{cleveref} \crefname{subfigure}{figure}{figures} \Crefname{subfigure}{Figure}{Figures} \begin{figure}[h] \centering ...
2
votes
1answer
40 views

Change how hyperlinks are displayed

By using \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} one automatically gets hyperlinks in a red box or a green box . Is it possible to change this? For example instead of ...
5
votes
1answer
2k views

Reference part of a figure (with or without cleveref)

I have a figure with multiple parts (a, b, c, etc.) and in the text I would like to have a reference to the figure with the letter of the part (i.e. fig 1(b) ). Is there a way to pass this to \cref{} ...
2
votes
0answers
80 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
108 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 ...
3
votes
1answer
76 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
51 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
114 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 ...
1
vote
0answers
40 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
47 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
49 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} ...