Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

5
votes
0answers
623 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
46 views

cleveref refers to appendix as chapter when titlesec is used

I use titlesec to adjust chapter headings for the report class (no page breaks in main report, but with page breaks in appendix). However, cleveref now refers to the appendix as "chapter A" instead of ...
3
votes
0answers
461 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 ...
2
votes
0answers
75 views

How do I define and link to a labelled list?

I want to define a labeled list and refer to the items by name, with hyperlinks. My first thought was to use the description environment, put a \label in each item and retrieve the values with \...
2
votes
0answers
60 views

Cleveref not working with Greek/Xetex

I've been having some issues with cleveref; Whenever I include it it throws the following error: $ xelatex mwe.tex ... ! Undefined control sequence. \@begindocumenthook ...sname extras\cref@language ...
2
votes
0answers
84 views

babel causing cref mistakes to labels when compiled with htlatex

Update: I'd be very interested to know what babel does to that enables the advanced hungarian accents to be loaded. The comments below indicate that it should really have no affect. Given the ...
2
votes
0answers
68 views

Showkeys: Omit optional argument of \label

I use cleveref and mathtools together with the showkeys package. However, since for some labels I'm using my own type, labels can get pretty long (in the following example the label will be [mytype]{...
2
votes
0answers
100 views

easylist and cleveref

I'm trying to reference an item in an easylist using cleveref's \cref. Here's a MWE: \documentclass{article} \usepackage[at, 5]{easylist} \usepackage{cleveref} \begin{document} \section{S1} \begin{...
2
votes
0answers
57 views

Incompatibility between `floatrow` and `cleveref`

Consider the following MWE. If you comment out the line \usepackage{cleveref}, it works fine. However, if this line is not commented, the pdflatex command just stalls (no error is shown). Any ...
1
vote
0answers
27 views

Package autonum breaks all references when used with thm-restate

I have the following LaTeX file \documentclass{article} \usepackage{thm-restate, autonum} \newtheorem{lem}{lemma} \begin{document} \begin{restatable}[Embedding lemma]{lem}{embedding} \label{lem:...
1
vote
0answers
42 views

cleveref switches the reference order

Suddenly, in a unique example that I can't seem to reproduce in a MWE, cleveref switches the order of my references. Here's my configuration of cleveref and the theorems: \usepackage[backref=page]{...
1
vote
0answers
68 views

Code breaks when exchanging \def with \edef

I am trying to make a command which creates automatically incrementing IDs for entries in some lists I have to manage. They have to follow a certain formatting (for example the first character has to ...
1
vote
0answers
39 views

Conditional pageref for labels that are in another section and on a page far away

Currently I am experimenting with the cleverref and the varioref package. These packages are great, however, I would like to have a reference command with the following subtle behavior: If the label ...
1
vote
0answers
65 views

cleveref sort&compress for subfigures in memoir

I am using memoir and cleveref with the sort&compress keyword (that I assumed was default actually). When referencing multiple subfigures with one \Cref command, there are not ranges given. Taken ...
1
vote
0answers
98 views

How to completely control the case of the first letter of a referred title

In How to control the case of the first letter of a referred title, I somehow ended up asking for a macro that would change the initial letter from lower case to upper caseand with his \NameRef, ...
1
vote
0answers
30 views

Issue with ASL class file and equation numbering/referencing

This is a (delayed) follow-up to this question. I am having two issues with equation numbering and referencing when using the ASL class file: Issue 1 Despite the command \nonumber in the definition ...
1
vote
0answers
63 views

Changing cleveref's format on an individual basis

Is it possible to change cleveref's \crefpairconjunction on a one-off basis. By default, \cref{eqn:1,eqn:2} outputs "eqs. 1 and 2". I would like to change this to "eq. 1 or 2" on just one occasion ...
1
vote
0answers
407 views

Setting the language for \IfLanguage

In my preamble I have \RequirePackage{cleveref} % Set names with both of the following % \crefname{environmentname}{singular}{plural}, to be used mid-sentence % \Crefname{environmentname}{...
1
vote
0answers
110 views

How to modify the sorting of cleveref?

In the backmatter of my document I have the part with plates. Each page is one plate with several figures in it. The counter for the figures starts on each page/plate, but the number of the figure ...
1
vote
0answers
103 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 \...
0
votes
0answers
11 views

Incorrect section title in PDF outline when cref is used in section title

I have the following MWE: \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \begin{enumerate} \item\label{item:45} An item \end{enumerate} \section{About \...
0
votes
0answers
9 views

Making refcheck work with cleveref and amsmath

This is a follow-up question to Making refcheck work with cleveref about refcheck taking notice of references made with cleveref. The solution proposed by egreg there works fine if amsmath is not ...
0
votes
0answers
45 views

the cleveref usepackage: \cref

When I run the following code (pdflatex), Command Line: pdflatex.exe --interaction=errorstopmode --synctex=1 "ex_article.tex" Startup Folder: C:\Users\wendy\Desktop\siamart_171218 This is pdfTeX, ...
0
votes
0answers
101 views

! Argument of \@firstoftwo has an extra }

I am attempting to write macro that extracts and formats information from a label. I get the messages ! Argument of \@firstoftwo has an extra }. <inserted text> \par l.84 ......
0
votes
0answers
25 views

How to fix a \cpageref link that's drives me to a wrong page?

I'm using hyperref and cleveref packages for to create link in my document. However, when I use \cpageref to reference a page, the link created drives me to a wrong page. In the following MWE, the ...
0
votes
0answers
33 views

Undefined control sequence error for \subref command used in svjour3 latex

I am trying to use the subfigure environment along with sub-reference using \subfloat and \subref command and have already installed and tried with the packages like \subfig, \subcaption, \float in ...
0
votes
0answers
65 views

Forcing cleverref to use another numbering system

I am fighting with this problem for a while now and all my partial solutions just don't fit together. I have to manage quite a few lists in a latex document and each entry has a certain ID like [X1234]...
0
votes
0answers
53 views

Cannot use nosort for cleveref

I found sorting and compressing not very intelligent for cleveref package when the labels are in different sections, so I decide to disable sorting and compressing. However I am unable to use nosort ...
0
votes
0answers
76 views

How to change case of first letter in a reference

How to completely control the case of the first letter of a referred title does exactly that but it seems to me that one command should do it *emphasized text*\documentclass[11pt]{book} \usepackage{...
0
votes
0answers
242 views

Plural cref to theorem-like environment, singular cref to enumerate item inside it

I have a theorem-like environment, examples that always will include an enumerate within its body. Using cleveref, how can I refer to the entire environment (i.e., all the enumerated items) with ...
0
votes
0answers
133 views

Place pictures and ref it without using subcaption

I am writing a paper using Springer LNCS format, which is incompatible with the package subcaption. It provides subfig package instead. I wish to achieve the following format (3-by-2, refer each one, ...
-1
votes
0answers
37 views

How to adopt the ieeeannot.bst to show the bib entry ordering chronologically?

I was trying to adapt the IEEEannot.bst to show the abstract from the entry in the references section. Now the entries in the references are not sorted chronologically. References are ordered ...