Questions tagged [cleveref]

{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.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

back referencing end notes

I want to have some of my equations listed at an appendix, and referenced back from there. I am currently using end notes and cref, the problem being that I can't dynamically set a label for each one ...
4
votes
1answer
95 views

“Extra \else” error when combining breqn, thm-restate, and cleveref

I have a document that uses breqn, thm-restate (thmtools), and cleveref. I can't get it to compile. Here is a minimal example: \documentclass{article} \usepackage{thm-restate} \usepackage{breqn} \...
2
votes
1answer
18 views

Cref customization output

I want to add ( ) parenthesis in subfigure references when using \cref. \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption} \usepackage[capitalize]{cleveref} \begin{document}...
0
votes
0answers
13 views

reaction numbering with chapter numbers chemmacro [duplicate]

I am trying to use the reaction environment from chemmacro. How to get the numbers with chapter number like for equation numbers (e.g 1.1, 2.1 and so on) \chapter{The First Chapter} \begin{reaction} ...
0
votes
0answers
22 views

Legrands orange book with cleveref

I'm using the Legrand's orange book template from the LaTeX Templates website and trying to incorporate cleveref package. It already works well when referencing to sectioning, Tables, Figures etc but ...
1
vote
1answer
38 views

How to locally change equation referencing

Using the cleveref package, I created some formatting for constraints. \usepackage{cleveref} \crefformat{cons}{#2constraint~\textup{(#1)}#3} Assume, I have the following equation with a label ...
2
votes
1answer
45 views

Where does cleveref construct its label?

I am trying to adjust the rendering of a reference to a nested enum. Here is my MWE: \documentclass[a4paper,14pt,openany]{memoir} \usepackage{cleveref} \renewcommand{\theenumi}{\arabic{enumi}} \...
1
vote
1answer
24 views

Cleveref. Disable 'nameinlink' for specific \cref{}

How can I disable the nameinlink feature of cleveref for a specific \cref instance?
4
votes
1answer
64 views

Cleverref package returns an extra parentheses

I am using the \cleveref package to reference subfigures. I am using the \crefmultiformat to customize the referencing style. I am trying to achieve Figures 1.1 (a) and (b) but with the attached code ...
2
votes
1answer
53 views

Cleveref format, accessing label

In this question a solution is proposed to patch cleveref \crefformat in order to give access to the last used label. Unfortunately, it seems that the patch is not sufficient to handle cases where ...
2
votes
1answer
47 views

Capitalise letter when using cref (cleveref) for subfig

Is it possible to have cleveref capitalise the letter when cross referencing a subfigure? Currently my subfigures are configured to capitalise the letter in a subfig (i.e A B C D E) but when i use ...
0
votes
1answer
23 views

cleveref list to use “or” instead of “and”

Sometimes I would like \cref{item1,,item2,,item3} to write "Item 1, Item 2, or Item 3" instead of "Item 1, Item 2, and Item 3". Can this be done on an ad-hoc basis?
1
vote
1answer
28 views

How to remove the space between the name and the counter of a cross reference?

I have two types of Theorems (Theorem A and Theorem B) and some enumeration lists below the Theorems. If would like to reference to the items as follows: A1.1 to 1.3 and B1.1 However, using the ...
2
votes
0answers
28 views

How to cross reference nested enumeration lists?

Within theorems, I have nested enumeration lists: 1.1, 1.2, 1.3, 1.4, etc. 2.1, 2.2, 2.3, 2.4, etc. For referencing to 1.1 to 1.3 and 2.4 I tried to use the usual command \cref{en1-1,...
0
votes
1answer
42 views

How to include a prefix in a cross-reference?

I have two parts (Part A and Part B) in my paper, their theorems are called Theorem A and Theorem B, accordingly. The numbering in Part B again starts with 1. I have a lot of cross-references ...
1
vote
1answer
34 views

cleveref capitalise option not working with babel translations

When using the cleveref capitalize option, all my references should be capitalized. But this is only working if I do not add new babel translations. Running the following example results in figura ...
1
vote
0answers
25 views

How to create different cross-referencing types

I need to reference to consecutive points, that sometimes should be conjucted with "and" and sometimes with "or", i.e. either 1.1a, b, c and d or 1.1a, b, c or d Here is an MWE that provides ...
0
votes
0answers
29 views

Generating warning message about referring to labels later in document

I'm in the process of drafting a long paper comprising many sections that I'm writing in parallel. As a sanity check, I'd like to make sure that whenever I cite, say Lemma A, then I've already stated ...
2
votes
1answer
82 views

Cleveref - use both abbreviations and full reference names

I was wondering if it is possible to use both options (full reference name and abbreviations of reference names) in the cleveref package. The case at hand is a document containing both references ...
1
vote
2answers
40 views

Memoir’s subfigures vs cleveref: how to set the ref label format

I have a giant document based on memoir class and tightly integrated with its subfigure infrastructure - i.e. adding packages like subfloat/subfig/subcaption is extremely undesirable (AFAIK it’s ...
1
vote
1answer
41 views

\Cref{} Figure in Short?

How can we use \Cref to obtain the format "Figs." or "Fig." in PDF? If I only use \Cref, then I always get Figures, Figure ...
0
votes
1answer
35 views

Cross reference to chapter or section name using \autoref

I want a link to a chapter or subsection name... ... \begin{document} \chapter{Laravel installation} \label{laravelinstallation} Install Laravel by... \section{PhpStorm} \label{phpstorm} After ...
1
vote
0answers
33 views

Beamer class identifies table as figure when using subcaption

The Tex Version in my office was recently updated and I am having trouble getting everything back in order. Specifically, I want to use the subcaption package, which seems to mark tables as figures. ...
2
votes
1answer
38 views

How to get around cref reference format undefined when using * variant of newtheorem

I would like to know a way to use newtheorem* and use cref on the labelled theorem. cleveref doesn't seem to work nicely with this * variant. Example resulting in "cref reference format for label ...
3
votes
1answer
179 views

Undefined control sequence while adding a new parameter to a existing \ExplSyntaxOn code

I am fixing my command \fullref, which internally uses \nameref and does not support multiple labels to be used simultaneously. However, on the question How to nameref multiple labels simultaneously?, ...
0
votes
0answers
59 views

How can I make hyperref stop thinking there are undefined references?

I am using my variation of the \fullref command from the question \nameref -- How to display section name AND its number, my one is called \typeref: \documentclass[12pt,a4paper,english]{abntex2} \...
1
vote
0answers
26 views

Incompatibility of thmtools, IEEEtrantools, and cleveref in Tex Live 2018-2019

Using Tex Live 2018 or 2019, IEEEtrantools, thmtools and cleveref are incompatible. I.e., if one loads these packages together, the project does not compile. Here is a minimal example: \...
1
vote
3answers
64 views

Cross reference reaction using cleveref in chemformula package

I want to cross-refer a chemical reaction and to write chemical reactions I am using \usepackage{chemformula} to cite I am using \usepackage{cleveref} I want to cross-refer reactions using \cref{...
1
vote
0answers
22 views

Cross reference lemma from one chapter in another chapter with the cleveref package

I tried \documentclass[10pt]{amsbook} \usepackage[francais,english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsthm} \usepackage{xparse} \usepackage{hyperref} \usepackage{cleveref} \...
1
vote
0answers
24 views

Using cleveref with thesis template

I am using the thesis template provided at LaTeX Templates http://www.latextemplates.com/template/masters-doctoral-thesis. I would like to use the cleveref package for cross-referencing within my ...
6
votes
0answers
18 views

\crefstripprefix not working for 10 or more cross-refs

The following MWE gives an error; if the number of cross-referenced equations is reduced to below 10, the error disappears. The \crefrangeformat is totally standard and is taken from many answers on ...
0
votes
0answers
21 views

Fix capitalization in reference to named theorem

Common practice in mathematical writing is that names of theorems (e.g., "fundamental theorem of calculus") are not capitalized when referred to in the body of the text. However, if such a name is ...
3
votes
1answer
83 views

hyperref warns when using cleveref in \section

I encounter a small but annoying problem with the following MWE \documentclass{article} \usepackage{hyperref,cleveref} \newtheorem{thm}{Theorem} \begin{document} \begin{thm}\label{good} ...
1
vote
0answers
42 views

Why `\crefname` command generates error?

Does anybody know why \crefname{thm}{AAAA}{AAAAs} command generates error? \documentclass{article} \usepackage{amsthm} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[...
2
votes
0answers
57 views

How to redefine label such that it recognizes its environment

How to redefine label command such that if it is inside a environment (e.g. theorem) then \label{thm:2} becomes \label[Theorem]{thm:2}? \documentclass{article} \usepackage{amsthm} \usepackage{amsmath}...
6
votes
1answer
70 views

\crefrange doesn't work for “assumption” environments using amsmath

I am using \cleveref package for which the \crefrange feature is not working for assumption environments. Can anybody tell me how I may fix this? Here's the code: \documentclass[12pt]{article} \...
3
votes
1answer
142 views

Defining a new language in Cref

I am preparing a document whose main language is arabic, I am using babel+Lualatex I followed the procedure discussed in Redefine \cref for non-English languages However, it gives an error saying "...
2
votes
2answers
81 views

No hyphenation on “section”, “Table”, etc. with Cleveref package

I'd like to remove hyphenation at the end of a line on words like 'section', 'Table', 'Figure' etc. when using the \cref command with the Cleveref package. My current solution is the following: \...
1
vote
1answer
141 views

Comparing strings; genitiv version of \cref command

I am working with cleveref in a German document and i need in some cases the genitive of the word given by \cref{}. The problem is, that the German genitive is not equally build for all words, so i ...
1
vote
1answer
59 views

How to nameref multiple labels simultaneously?

On this example, I use \cref{first,second} and cleveref correctly labels them: \documentclass[10pt,a5paper]{memoir} \usepackage[brazil]{babel} \usepackage{hyperref} \usepackage{cleveref} \begin{...
0
votes
2answers
59 views

automatic \texorpdfstring for \ref in pdf bookmarks (section titles) [duplicate]

\section{Proof of Theorem~\ref{thm:main}} doesn't produce the correct pdf bookmark (using the hyperref package). \section{Proof of \texorpdfstring{Theorem~\ref{thm:main}}{Theorem 3.1.7}} would give ...
1
vote
1answer
35 views

Using varioref and cleveref, does cleveref diagnose a document that LaTeX always wants to re-run?

I've got a large document that LaTeX always wants to re-run. Using the technique described at How to diagnose a permanent "Label(s) may have changed" warning?, I traced the problem to some \...
0
votes
0answers
60 views

Change the style of cleveref references to sections of other chapters

When I use cleveref-based cross-references to, say, sections in another chapter, these references just print Section n. It's then difficult to distinguish references to a section of another chapter ...
0
votes
0answers
24 views

cleveref: How include Oxford comma in \cref argument having several items? [duplicate]

I always use the Oxford comma — the comma between the penultimate item and the last item in a list of three or more items — as in: The sailors were Wynken, Blynken, and Nod How can I get ...
0
votes
1answer
37 views

cleveref: How reference several items in an unnumbered theorem-like environment?

I want the output from the command \cref{prob:third-problem,prob:fourth-problem} on the first line of the content of the first chapter — the one whose output (with two ??s) is marked in the ...
1
vote
2answers
26 views

Locally redefine cleveref’s reference name for chapters

Consider the following MWE: \documentclass{scrbook} \usepackage{appendix} \usepackage{cleveref} \usepackage{etoolbox} \BeforeBeginEnvironment{appendices}{% \crefname{chapter}{appendix}{...
1
vote
0answers
72 views

How to crossreference nested enumeration lists? (Advanced Cross-Reference Formating with cleveref)

I need to reference nested enumeration lists and do not want to repeat the highest level if several points of a lower level are mentioned consecutively. Thus, instead of a list like 1.1a(i), 1.1b, ...
1
vote
1answer
45 views

How to add babel translations to cleveref-based cross-references to my custom floating environment?

I created a custom float environment, but my translations of the labels for use with cleveref are not working: \cref@addlanguagedefs{brazilian}{% \AtBeginDocument{% \Crefname@preamble{...
0
votes
1answer
37 views

Cleveref (Cref) Format for Appendix

I wish to reference-call my sections in the style "(curly-S)2.1". Looking at the documentation, Section 8.2.1, I can achieve this as \Crefformat{section}{\S#2#1#3}. However, this doesn't work when the ...
4
votes
2answers
57 views

Cleveref - Conditional label formats

I am trying to define a new reference style with cleveref: \crefname{prop}{property}{properties} \creflabelformat{prop}{#2#1.\@#3} This is meant to be used in a list of numbered properties in an ...

1 2 3 4 5 13