Tagged Questions

{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
1answer
26 views

cref multiple labels don't grab the label type

I have a strange situation where cref is working great for single labels, i.e. \cref{eq:some equation} and for the first two multiple references of the form \cref{thm:first theorem,thm:second ...
3
votes
1answer
36 views

Can cleveref treat sections in other chapters as chapters?

I am using cleveref for my thesis. When referencing another chapter, if I put the label at the top of the chapter, it will say "chapter X", but if I put the label after defining a new section or ...
1
vote
1answer
28 views

ams math + AUCTeX + refTeX causing label references to always be \eqref not the desired \vref

As stated on the reftex documentation “Note that this is automatically done by the ‘amsmath.el’ style file of AUCTEX, see Section 7.8.2, page 38 – so if you use AUCTEX, this configuration will not be ...
6
votes
1answer
59 views

Cleveref and ametsoc

I really like cleveref. And I've been using it when writing a manuscript with the ametsoc style file But there is at least one problem: The appendix letters (which must be manually assigned and ...
1
vote
1answer
24 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 ...
6
votes
0answers
49 views

Cleveref isn't sorting nested lists properly

I wanted to use the cleveref to automatically sort cross-references, but for some reason it isn't sorting labels in nested enumerate environments properly. This is my reduced code: ...
5
votes
1answer
52 views

Can I use cleveref and endnotes together?

I'm trying to setup my article with notes such that: Notes are not shown at the bottom of the page Notes are shown at the end of the article (no need to show them after each section or so) I can ...
0
votes
1answer
47 views

Figure reference numbers off by one with cleveref

I am having an issue with generating my dissertation using cleveref, where the figure references are references are off by one, such that the reference to figure 1.1 says Fig. 1.0. Anyone have any ...
4
votes
1answer
27 views

Is there a workaround to this cleveref/thmtools bug: they think, multiple references is sequential

I have a latex file that exhibits a cleveref/thmtools bug. In short: I have \cref{problem:5,problem:4,problem:2} in the file, and I expected to have, in the output problems 2.1, 2.2, and 1.3. ...
0
votes
1answer
30 views

compatibility cleveref and varioref amsmath [duplicate]

I try to use cleveref and varioref and ams* packages together. But I get some trouble, equations and sections label type seems to change and that does work well. Here is my example: ...
5
votes
1answer
57 views

enumitem: using label for a defined item

Whenever I try to label an item that is defined, it never seems to work. For example, consider the following: \documentclass{article} \usepackage{enumitem} \usepackage[noabbrev]{cleveref} ...
3
votes
1answer
39 views

Varioref's “Preceding Page” broken when cleveref is loaded

I'm using varioref together with hyperref and cleveref. Everything works fine except that as soon as I load cleveref, varioref forgets about "on the preceding page" and simply uses "on page N". ...
0
votes
1answer
25 views

change the reference format for subfigures

I am using \subfigures to plot multiple figures on two pages: \begin{subfigures} \setlength\figureheight{4cm} \setlength\figurewidth{5cm} \begin{figure}[htb] \centering \input{Figure2a_1.tikz} ...
4
votes
1answer
59 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} ...
4
votes
2answers
101 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
36 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 ...
1
vote
0answers
53 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 ...
2
votes
0answers
42 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}} ...
0
votes
0answers
60 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
40 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 ...
3
votes
2answers
79 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
41 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
1answer
28 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
64 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
73 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") ...
4
votes
1answer
78 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 ...
2
votes
1answer
81 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
41 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 ...
4
votes
0answers
68 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} ...
1
vote
0answers
97 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
46 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
95 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 ...
1
vote
1answer
95 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 ...
3
votes
1answer
155 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
99 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
86 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
81 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
286 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
43 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
77 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
2answers
107 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 ...
1
vote
0answers
23 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
106 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 ...
3
votes
1answer
92 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 ...
6
votes
1answer
124 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
70 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 ...
4
votes
3answers
136 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 ...
2
votes
1answer
43 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 ...
2
votes
0answers
114 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: ...