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

3
votes
2answers
210 views

cleveref counter and ref label number format with padding zeroes

I am using cleverref and a custom counter to typeset a special kind of reference, where I need the same text on the definition side and the reference side. Currently I use ...
1
vote
1answer
171 views

pgfplots externalize and references: some work, some don't

I have started using the tikz externalization library for my current project. From here I learned to use \pgfplotsset{invoke before crossref tikzpicture={\tikzexternaldisable},invoke after crossref ...
9
votes
1answer
4k 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 ...
4
votes
2answers
592 views

acronym \acresetall & cleveref: multiply defined labels

I'm using the acronym package to expand acronyms and I'm also using the cleveref package. I would like to have acronyms expanded once per chapter. For instance in the following code, both acronyms ...
6
votes
1answer
551 views

Reference algorithmic line numbers using cleveref

consider the following example: \documentclass[a4paper,final]{report} \usepackage{cleveref} \usepackage{algorithmic} \Crefname{ALC@unique}{Line}{Lines} \begin{document} Tests: ...
5
votes
1answer
1k 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 ...
1
vote
0answers
52 views

Why doesn't cleveref's \namecref work? [duplicate]

Possible Duplicate: Which packages should be loaded after hyperref instead of before? I'm trying to use cleveref's \namecref command to get the name of the type of section a label is in, ...
7
votes
2answers
532 views

Two labels in one caption possible?

In a lot of journals it is common to have single digit figure numbers and denote parts in the figures as (a), (b), and so on. I wanted to use a similar style. After reading the documentation to the ...
2
votes
1answer
382 views

flalign and alignat break autonum

After yesterday's unsuccessful attempt, I am continuing in my attempts to find out the limits of autonum. It seems that flalign and alignat environments break autonum. Here is an MWE that works fine: ...
9
votes
2answers
846 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 ...
7
votes
4answers
2k views

Adding words to links generated by hyperref

\documentclass{article} \usepackage{hyperref} \usepackage{lipsum} \usepackage{polski} \begin{document} \begin{figure} . \caption{A figure} \label{fff} \end{figure} \lipsum[1] Rysunek~\ref{fff} jest ...
2
votes
1answer
264 views

Reference Lemma from the same document

I am writing a document, where I have 3-4 Theorems, and a Lemma. I want to refer to the Lemma in the Theorems (possibly highlighted and a link to the Lemma). How should I go about doing it? I tried ...
10
votes
2answers
649 views

Section based linguistic example numbering with brackets

I would like to have examples in my document look like this: Section 2 (2.1) This is an example. This is a reference to example (2.1). That is: the section number appears both next ...
4
votes
2answers
144 views

How to avoid long space when cross-reference name is empty?

When using cleveref one may want to use its macros for making all cross-references, even those where the cross-reference name is empty. The cross-reference name is the name that is appended to a ...
11
votes
1answer
484 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 ...
15
votes
4answers
975 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 ...
8
votes
2answers
812 views

\veqref{} command like \vref…from varioref package

1) The varioref package gives \vref, which gives output as follows... figure~\ref{fig:test} on page~\pageref{fig:test}. 2) The amsmath package gives \eqref{}, which gives output as follows... ...
11
votes
1answer
605 views

Getting cleveref to mark all of “Lemma 1” as a hyperlink, not just “1”

I recently discovered the very nice cleveref package, and really like. Works much better than autoref (from hyperref) for me. There is only one thing I don't like: If, for example, the \cref command ...
25
votes
1answer
1k 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. ...
8
votes
1answer
628 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
233 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 ...
10
votes
2answers
7k 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 ...
18
votes
4answers
755 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} ...
5
votes
2answers
1k 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
624 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, ...
5
votes
1answer
2k 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} ...
2
votes
1answer
434 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
774 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
231 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 ...
3
votes
0answers
480 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
567 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
464 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, ...
5
votes
1answer
2k views

Reference part of a figure (with or without cleveref)

I have a figure with multiple parts (a, b, c, etc.) and in the text I would like to have a reference to the figure with the letter of the part (i.e. fig 1(b) ). Is there a way to pass this to \cref{} ...
3
votes
1answer
827 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
276 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 ...
9
votes
1answer
2k 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
1k 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 ...
6
votes
4answers
1k 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 ...
24
votes
1answer
976 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
195 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 ...
9
votes
3answers
289 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
222 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
3k 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} ...
8
votes
1answer
864 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} ...
12
votes
1answer
722 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: ...
4
votes
1answer
1k 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 ...
16
votes
3answers
1k 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
657 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
540 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
379 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 ...