{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
211 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 ...
1
vote
1answer
40 views

Right language for reference to appendix

I used the package "cleveref" to make references to appendix, so that: \documentclass[...(various arguments)...]{scrbook} \usepackage{cleveref} .... .... \begin{document} ... As I show in ...
3
votes
0answers
194 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 ...
3
votes
0answers
110 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 ...
2
votes
0answers
47 views

Cleveref: Change behaviour of \Cref to use the abbreviated form

The journal International Journal of Solids and Structures uses always capitalised and abbreviated form of references, i.e. Fig. 1, Eq. 1, even at the beginning of a sentence. I use the package ...
2
votes
0answers
69 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
0answers
118 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 ...
2
votes
0answers
138 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 ...
1
vote
0answers
24 views

Using cleveref with 2 different styles

I like to style my \cref as following (Geophysical Prospecting): Type 1: Fig. 1, Fig. 1(a), Fig. 1(a,b), Figs 1 and 2 Type 2: (Fig. 1), (Fig. 1a), (Fig. 1a,b), (Figs 1 and 2) I have tried with ...
1
vote
0answers
80 views

Cleveref's \cpageref{} command leads to “Missing number, treated as zero” error, when used in a document using (at least) two page numbering schemes

Update: I have updated this question & the corresponding code. The minimal working example code was overhauled after receiving some valuable suggestions from @Johannes_B regarding how to make it ...
1
vote
0answers
38 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} ...
0
votes
0answers
13 views

Parenthesized subfigure references except when already in parenthesis

I would like to style my subfigure references as Fig. 1(a) in running text and (Fig. 1a) when parenthetical. The subfigure labels are created using this code. (I would prefer to use subcaption like in ...
0
votes
0answers
22 views

Varioref and Cleveref inconsistent while redefining page

I am trying to use cleveref and varioref. I read here how should be the correct order of loading the packages. Also saying that \vref and friends would become clever since cleveref changes the ...
0
votes
0answers
18 views

Special cref display for sections and subsections in external documents

This is a variation of Special \cref display for \externaldocument where the solution by @David Carlisle takes us almost there. The question is how to get \cref to generate special prefixes for ...
0
votes
0answers
107 views

How to use autoref or cleveref when the theorem environments are in the class file?

The journal LMCS provides a style, lmcs.cls, that contains definition of theorems environments : %%% Theorem environments % the following environments switch to a slanted font: \theoremstyle{plain} ...
0
votes
0answers
93 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} ...
0
votes
0answers
51 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} ...
0
votes
0answers
188 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 ...