Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
31 votes
3 answers
6k views

How to get more complete references

Sometimes when I work I write something like \begin{proposition} \label{my new result} ... \end{proposition} ... blah blah in Proposition \ref{my new result} blah... but then I realize that the ...
Andrea's user avatar
  • 4,137
3 votes
2 answers
2k views

Refer to the "name" of an equation, while a List of Equations is generated using these names

I link two questions below because I use their solution, to number my equations and generate a list of my equations. My question about numbering equations: Number of Equation: 1, 1a, 1b Generate a ...
user69453's user avatar
  • 936
88 votes
1 answer
25k views

Difference between ref, varioref and cleveref. Decision for a thesis

How can one make a quick decision what the best "ref" for a thesis in pdflatex with hyperref is? After a few hours reading I do not know more than ref is used by everyone who does not know about the ...
Jonas Stein's user avatar
  • 8,929
26 votes
1 answer
3k views

Cleveref with counters with same name

I am trying to use the cleveref package. I have the following counters defined (hopefully this is the right way to do it!) \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \...
Qwirk's user avatar
  • 785
20 votes
2 answers
12k views

How do I get rid of particular pdftex warning message?

Here is a minimal example that showcases my problem: \documentclass{article} \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{thm}{Theorem} \newtheorem{lem}[thm]{Lemma} \...
tmoschou's user avatar
  • 351
17 votes
2 answers
2k views

Crossreference in Ref Range [(1a-1e) to (1a-e)]

I am just a beginner in LaTeX, I am facing a problem in Ref Range, \documentclass{article} \usepackage{amsmath,amsfonts,amssymb,cleveref} \begin{document} \ref{eq1a,eq1b,eq1c,eq1d,eq1e} \begin{...
Sathish V's user avatar
  • 293
42 votes
1 answer
12k views

Impact of hyperref, when varioref and cleveref are used

I think I may have found a bug in either hyperref, cleverefoder varioref but can't determine the details any further. If do not load hyperref in the following example, the result is fine. \...
Uwe Ziegenhagen's user avatar
20 votes
6 answers
5k views

Making refcheck work with cleveref

It seems that refcheck does not recognize references made by cleveref: \documentclass{article} \usepackage{amsmath} \usepackage{cleveref} \usepackage{refcheck} \begin{document} \begin{align} a &...
mafp's user avatar
  • 19.2k
23 votes
1 answer
27k views

Is it possible to make a reference to a subfigure to appear Figure 2(a) with cleveref?

I am new here, and also new to LaTeX, so apologies if I have included too much or too little! I have been using the subfig package, and just today added in cleveref. The subfig package labels my ...
FionaSmith's user avatar
  • 1,867
9 votes
1 answer
1k views

How to show also the name of the parent counter with cleveref?

Consider the following piece of code: \documentclass{book} \usepackage{cleveref} \usepackage{lipsum} \begin{document} \chapter{Chapter One} \section{Section One.One} \label{mysection} \...
Nicola Gigante's user avatar
0 votes
1 answer
310 views

Advanced Cross-Referencing with Linguex/Philex: Skipping and Stripping

\documentclass{report} \usepackage{philex} % Includes linguex. Only loading it for \phildashes. \usepackage{cleveref} % Referring to Subexample Ranges \crefname{ExNo}{}{} \crefname{SubExNo}{}{} \...
Vincent Krebs's user avatar
15 votes
2 answers
42k views

How to reference sections in other parts mentioning the part?

I have an article class document with a structure like this. Part A Section 1 Section 2 Part B Section 1 Section 2 I want to reference Section 1 in part A from Section 2 in part B. When I ...
falsePockets's user avatar
12 votes
2 answers
1k views

\cref inside a heading breaks PDF bookmark

In the following MWE, the bookmark produced by hyperref is incorrect: \documentclass{article} \usepackage{hyperref} \usepackage[capitalize,nameinlink,noabbrev]{cleveref} \hypersetup{% ...
rainer's user avatar
  • 2,077
8 votes
1 answer
904 views

cleveref and aliascnt: referring to subequations and inequalities in a smart way

Preliminary Remark: A document may contain labels referring to equations and subequations, respectively. Moreover, some of the equations may actually represent inequalities. When using the cleveref ...
Hendrik's user avatar
  • 567
4 votes
1 answer
349 views

Cleveref's \cpageref with range of labels

cleveref's \cpageref seems to have an issue when it receives three or more labels spanning a range of pages. When this happens, \cpageref prints the first and the last labels (the arguments) instead ...
gusbrs's user avatar
  • 13.9k
53 votes
2 answers
12k views

cleveref and appendix packages: appendix referenced as section

Using this example: \documentclass{scrartcl} \usepackage{lipsum} \usepackage{appendix} \usepackage{cleveref} \begin{document} \section{The first section}\label{sec:1} \lipsum[2] \section{The second ...
mSSM's user avatar
  • 3,152
28 votes
2 answers
2k views

Relative chapter references

(A follow-up of sorts on Variable chapter references, as per @werner 's suggestion) This is somewhere in between a request for comments and an actual question (as well as a summary of my experiences ...
mpr's user avatar
  • 3,646
23 votes
3 answers
13k views

Cleveref and named theorems

Is it possible with Cleverref to reference not only the number of an environment but the "name" (the thing that is passed to it in square brackets? In the following example I want to replace the line ...
born's user avatar
  • 332
22 votes
4 answers
3k 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 cross-referencing....
Antal Spector-Zabusky's user avatar
15 votes
5 answers
14k views

Footnotes in Tabulars? [duplicate]

Is there a simple, elegant solution to add footnotes in a table (tabular)? Preferably, the solution can also support the cleveref package. EDIT: My intended effect is that, the footnotes should be ...
Covi's user avatar
  • 7,095
15 votes
1 answer
2k views

showonlyrefs and cleveref

This question led to a new package: autonum I know that cleveref is not compatible with showonlyrefs as it says in the cleveref manual. But I have a book-length document that depends on ...
tchakravarty's user avatar
  • 2,457
12 votes
1 answer
2k views

texlive 2016 hyperref/cleverref incompatibility

I almost always use ShareLaTeX for my LaTeX needs, but I recently began work on a relatively large document, and so I figured I would give a local TeX distribution a try to see if I could speed up the ...
Jonathan Gleason's user avatar
8 votes
1 answer
393 views

Are htlatex (TeX4HT) and cleveref compatible?

Simple question: When I use cleveref and \Cref{} or \cref{} I am able to compile the code and produce a PDF. When I use htlatex I get ?? in place of what I expect would be the object name and ...
EngBIRD's user avatar
  • 3,985
6 votes
1 answer
957 views

Reference with just part of section number after decimal point

Within a chapter/section scheme, Sometimes I want to be able to have a reference to a section, which would normally appear in the form c.s, where c is the chapter number and s is the section number, ...
murray's user avatar
  • 8,366
4 votes
0 answers
285 views

Cross-referencing: more sublevels, and presets

I'm typing a lot of linguistic examples and I would like label formatting to gain flexibility, i.e. setting up presets would be great. That is, I'd like to be able to have ready-to-use setups ...
Vincent Krebs's user avatar
0 votes
2 answers
2k views

How to restate a theorem keeping the same number?

The question was asked in How do I repeat a theorem number and yasmar's answer there works for my tcolorbox theorem and even the link is live. But since yasmar uses amsthm's\theoremstyle, the ...
schremmer's user avatar
  • 2,107
23 votes
3 answers
4k views

Combining cleveref and subref

I recently switched to using cleveref in my latex document. However, I have one case I still don't quite get right (or maybe it is just not covered in cleveref): I use the subfigure-environment of ...
Dux's user avatar
  • 1,260
17 votes
2 answers
20k views

enumitem: referencing items in enumerate

Say we have a huge document with many sections, subsections, and subsubsections. In a few of these sections, we have enumerated environments. The package I am using is enumitem. One of the ...
dustin's user avatar
  • 18.7k
15 votes
3 answers
2k views

Automatically insert "in the next [chapter/section/subsection]" if reference is sequential

I'm aware of the cleveref package \cref which adds the correct reference name (see: Automatically inserting "Section", "Subsection", etc). I have a few references which refer to ...
jozxyqk's user avatar
  • 1,089
13 votes
1 answer
4k views

Hyperlinking problems when using subequations, hyperref and cleveref

The problem Hi. I'm currently writing my thesis and have my equations numbered within sections. I also use subequations from amsmath. When I use amsmath, hyperref and cleveref together, however, I ...
J-P's user avatar
  • 683
11 votes
2 answers
3k views

cleveref, autonum and labeling only referenced equations

User MMM recommended that I use the new autonum package in reply to my query. However, I am having some difficulty getting the package to work. Here is a minimal working example that compiles with "...
tchakravarty's user avatar
  • 2,457
11 votes
1 answer
2k views

How to cross-reference an inequality with \cref?

I have inequalities being cross-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 ...
Ararat's user avatar
  • 534
8 votes
1 answer
2k views

Cleveref: AUCTeX and RefTeX set-up

How can I set up cleveref to work with AUCTeX and RefTeX? I have tried the advice on Emacs, RefTeX and Cleveref – can they work together? but it didn't work. Additionally, when I hit enter, \ref{} ...
dustin's user avatar
  • 18.7k
7 votes
2 answers
1k views

Clever references to theorem lists

I would like an automatic solution to referencing theorem environments containing lists using cleveref. In other words, if Corollary 1.2 contains parts (a) and (b), I want \cref to output “Corollary 1....
Gaussler's user avatar
  • 12.8k
5 votes
2 answers
1k views

How to remove parentheses from single cref references?

I am using cleveref to cross-reference everything. Sometimes I write the reference inline like eq.(1). That is fine. But when it is enclosed in parenthesis it turns out like (eq.(2)). Which is not so ...
niclas ericsson's user avatar
4 votes
1 answer
2k views

Cross-reference to appendix sections in elsarticle document class

I am trying to reference a result given in the appendix, but cleveref is giving "Appendix Appendix" (doubling it). A way to solve this problem is to add \def\appendixname{}. Not surprisingly,...
Ararat's user avatar
  • 534
3 votes
1 answer
699 views

Hide cleveref links in section title

I would like links to be coloured in general, but not the cleveref links in section titles. MWE: \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage[nameinlink]{cleveref} \begin{...
gTcV's user avatar
  • 1,065
2 votes
1 answer
786 views

How use cleveref to get theorem-like name and list item number?

How do I need modify this source so that: The first output line of Chapter 1, currently "See ?? 1, below", becomes instead "See Problem 2.1, below" The first output line of Chapter 2, currently "...
murray's user avatar
  • 8,366
2 votes
2 answers
1k views

Access the original label in cleveref's \crefformat

Can I access the original label in cleveref's \crefformat? In this MWE, I am trying to get the same output as in the first line, but with the second line: \documentclass{article} \usepackage{...
bers's user avatar
  • 5,424
2 votes
1 answer
325 views

How to refer to indexed words

Given a text with an indexed word, say minimum, is it possible to have a command, call it \DEX{}, that would print a later occurrence of that word and link it to the original occurrence? For an on-...
schremmer's user avatar
  • 2,107
0 votes
2 answers
615 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 ...
Jakob's user avatar
  • 1,003
44 votes
3 answers
3k views

Can cleveref be made to use the Oxford comma for multiple citations?

Simple question: Is there a simple way to get cleveref to use the Oxford comma? \documentclass{article} \usepackage[standard]{ntheorem} \usepackage{cleveref} \begin{document} \begin{proposition}\...
Luke Maurer's user avatar
19 votes
3 answers
3k views

Emacs, RefTeX and Cleveref – can they work together? [duplicate]

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 ...
Dror's user avatar
  • 22.6k
19 votes
2 answers
16k views

cleveref doesn't use correct capitalized name if used with amsthm?

It seems that the cleveref package does not capitalize properly when referring to a newtheorem if both \crefname and \Crefname have been defined. Or is it just me? Here is my MWE: \documentclass[...
Peutch's user avatar
  • 2,192
15 votes
2 answers
6k views

Splitting(!) one latex document into two pdf outputs including references

I have a quite huge thesis-latex-document with lots of references to the appendix. The whole document I would like to split into two pdf-files. That means: I would like to have the thesis and the ...
Kris's user avatar
  • 299
14 votes
1 answer
8k views

cleveref + listings

\documentclass{scrbook} \usepackage{listings} \usepackage{cleveref} \begin{document} Ref: \ref{test}. Cref: \cref{test}. \begin{lstlisting}[caption={Test},label={test}] test \end{lstlisting} \end{...
Dennis's user avatar
  • 829
13 votes
1 answer
2k views

cleveref and amsthm -- incorrect environment name

I have theorem environments that have the same theoremstyle which I define through amsthm. I want them all to share the same counter. This way, a lemma that follows theorem 1.2.6 will have the number ...
Ritz's user avatar
  • 946
11 votes
1 answer
8k views

cleveref fails to reference algorithms

In the following example document, both \autoref and plain ref will correctly link and number an algorithm reference, but cleveref fails that task. It will just insert question marks instead. In ...
MvG's user avatar
  • 2,643
10 votes
1 answer
25k 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} \label{appendix:...
Kristian Nordestgaard's user avatar
9 votes
1 answer
2k views

cleveref hyperlink not working in beamer

I have a problem that i cannot find anywhere else. Consider the MWE below: \documentclass{beamer} \usepackage{cleveref} \begin{document} \begin{frame} \frametitle{toto} \begin{equation} ...
Napseis's user avatar
  • 510

1
2 3 4 5 6