{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.
7
votes
1answer
325 views
Cleveref can't refer to line numbers in listings
Consider the following minimal example:
\documentclass{article}
\usepackage{listings}
\usepackage{cleveref}
% \crefname{lstnumber}{line}{Line}
\begin{document}
% \section{Section}
...
2
votes
1answer
119 views
Creating hyperlinks with imakeidx using cleveref
I'm using imakeidx to create the index of my thesis and I would like to have hyperlinks to the pages that are hereby cited. Unlike this discussion, I'm using the cleveref package.
Here is the MWE ...
7
votes
2answers
3k views
Multiple items/equations in single eqref call
How can I reference multiple items/equations in a single \eqref call? I want, e.g., "In (1,2)..." instead of "In (1) and (2)...". I'd think I could do something like
\begin{enumerate}
\item blah ...
14
votes
4answers
425 views
A problem with thmtools and cleveref
I am trying to use thmtools and cleveref and I am getting a quite peculiar error. Here's a minimal example.
\documentclass{article}
\usepackage{thmtools}
\usepackage{cleveref}
...
4
votes
2answers
578 views
`ntheorem` and `thmtools` seem incompatible
I am preparing the setup of the theorem environments for my thesis. I want to do this right before I have say 200 of those environments in my document, since changing them will likely break things at ...
6
votes
1answer
357 views
Unknown Option “noabbrev” for the package cleveref
In the cleveref package document, it is clearly stated that the noabbrev option prevents the names of the references to be abbreviated. For instance instead of "Fig. 1", I'll get "Figure 1". However, ...
2
votes
1answer
831 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}
...
0
votes
0answers
402 views
Cross-referencing with amsthm and cleveref [closed]
I have to reference lemmas and theorems I have created using amsthm, but I want the actual word (e.g"Lemma" or "Theorem") to show up whenever I reference them. \ref didn't do the trick, as that only ...
2
votes
1answer
282 views
Problem when using pdfcomment in figure captions and then referencing
This is possibly a bug in the pdfcomment package, maybe not. I use the \pdfmarkupcomment[]{}{} macro to insert highlighting into the caption of a figure. Then follows a lable. I reference the figure ...
2
votes
1answer
505 views
Referencing externalized pgfplots with subfig and cleverref
I use pgfplots to produce a vast amount of images in my document. Due to limited LaTeX memory, I am forced to use \tikzexternalize. Moreover, I also use the subfig package to group several pictures ...
3
votes
2answers
185 views
How to use an environment whose name comes from a reference?
Suppose somewhere in my long Ph.D. thesis I use a theorem-like environment (maybe it's a theorem, maybe it's a lemma, etc.), and label it. At another place I want to have an environment which is the ...
2
votes
0answers
332 views
Incompatibility of caption and cleveref package [closed]
The following code produced a TeX capacity exceeded error
\documentclass{scrbook}
\usepackage{caption}
\usepackage{cleveref}
\begin{document}
\begin{figure}
Text
\label{fig:figures:1}
...
8
votes
2answers
232 views
referencing main subequation
In the following example i labeled each subeqnation.
\begin{subequations}
\begin{gather}
R_0 = 0 \label{subeqn:ini-cond-r} \\
N_0 = 0 \label{subeqn:ini-cond-n}
\end{gather}
...
6
votes
2answers
312 views
cleveref gets names wrong when using the SIAM document class
When I try to use cleveref in conjunction with the SIAM style files, references to theorems, sections, figures and tables are accurate, but all other references' names (corollaries, definitions, ...
2
votes
1answer
442 views
cleveref, hyperref and algorithm2e package produce wrong hyperlink (though correct page reference)
I'm using the packages as stated above in their latest version (also oberdiek-package is up-to-date).
The following code produces the wrong pdf-link to a float environment (refers to the same page as ...
2
votes
1answer
214 views
cleveref and marginfigure in memoir
I'm running into a problem when using cleveref to refer to marginfigures in memoir. The following code illustrates the problem (apologies for the somewhat long preamble, but I need the space in the ...
8
votes
1answer
692 views
Referencing subequations with cleveref
I try to refer to the parent number of subequations with \cref from the cleveref package. However, I would like to change the output "eq. (...)" into "eqs. (...)" when I refer to parent numbers ...
2
votes
1answer
853 views
\ref not working with achemso
I'm trying to write a document with the achemso package, but my \ref are not working right. achemso links to a package called cleveref, then renames cleveref's \cref into \ref, so any answers for ...
5
votes
4answers
421 views
Footnotes in Tabulars?
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 ...
0
votes
0answers
287 views
cleveref package produces “??” [closed]
I've used the second answer in Multiple references to the same footnote with hyperref support - is there a better solution?, yet, like @Jake in the comments, it produces some ?? in my document. Anyone ...
22
votes
1answer
674 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 ...
5
votes
1answer
157 views
How can I force a compile error if a ref does not exist?
I was curious if there was a way to force the compile to fail if a ref was not already defined. I do not want the ref to actually output anything into the document, but rather just check the ...
8
votes
2answers
228 views
Cleveref and breqn packages don't play nice together
I have been using the breqn and cleveref packages independently, and I think they are both excellent packages; but recently I have tried using them together, but it appears that cleveref cannot ...
7
votes
1answer
154 views
Get \ref for equations working like \cite for contiguous references
When referencing a list of equations like see Eq.12, 13, 14 and 15 the \cite command behaviour, which allows a single list of references, should be preferred I think. Is there something equivalent for ...
7
votes
2answers
1k 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}
...
4
votes
1answer
456 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}
...
10
votes
1answer
458 views
Using cleveref with enumitem's newlists
I'm trying to typeset a proof of a theorem, and I'd like to produce the following output:
Case 3: my text goes here and it can wrap to
another line, wherein I have subcases:
Case 3.a: ...
3
votes
1answer
675 views
cleveref and titlesec, \section issues.
I have some problems with cleveref and titlesec, providing a minimal working example below:
\documentclass{report}
\usepackage{titlesec} %% <-- the issue as far as i know, but i need the package
...
8
votes
2answers
728 views
Emacs, RefTeX and Cleveref – can they work together?
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 ...
5
votes
1answer
550 views
Problem with ntheorem, mathtools and cleveref
I have two (related) problems.
I'm writing a project where the following is part of my preamble:
\documentclass[a4paper,11pt,oneside]{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} ...
14
votes
2answers
476 views
Error with cleveref + enumerate + tikz-qtree
I get an error in my document in the following circumstance:
Using the cleveref package
And the tikz-qtree package (for drawing syntax trees)
Inside an enumerate environment
Here's a MWE:
...
4
votes
3answers
318 views
References to lists in theorem-like environments/writing # symbol to files
A little warning in advance: This will be quite lenghty. I spent quite some time over the last few days trying to solve the following problem: I'm typesetting mathematical lecture notes and have used ...
5
votes
1answer
766 views
cleveref and algorithm2e
I'm currently working on a document where I was using algorithm+algorithmic along with cleveref. With this everything worked perfectly.
Now I had to replace algorithm+algorithmic with algorithm2e. ...
13
votes
1answer
1k views
How to reference ranges rather than separate numbers?
I would like to do the following:
Just type something like
... we describe this in sections \mycoolref{winter,spring,summer,fall} ...
and it will be typeset as something like
... we describe ...
9
votes
4answers
899 views
Not using abbreviations with cleveref
I’d like to use the cleveref package but I don’t like that it inserts most names as abbreviations; for instance, it will print “… fig. 2.1 …” instead of “… figure 2.1 …”.
Is there a way of changing ...
15
votes
3answers
542 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 ...
4
votes
1answer
847 views
Problem with hyperref / cleveref / thmtools
The following is a (fairly) minimal example:
\documentclass{book}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheoremstyle[
spaceabove=6pt, spacebelow=6pt,
...
3
votes
1answer
661 views
How to make sub figure referencing work in memoir + cleveref?
In the following example:
\documentclass{memoir}
\usepackage{cleveref}
\newsubfloat{figure}
\begin{document}
\chapter{Example}
\begin{figure}
\centering
\subtop[apple]{fig ...