New answers tagged

1

I suggest defining a new enumerate-like environment, with cross-references appropriately defined for cleverref. Note that if you have a cleveref.cfg file, you have to put the definitions in this file. \documentclass[11pt]{article} \usepackage{enumitem} \usepackage{cleveref} \newlist{postulates}{enumerate}{1} \setlist[postulates]{label = \arabic*, font = \...


1

You can make use of the \crefalias macro and cleveref's ability to provide an optional argument to \label to achieve your formatting objectives. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{enumitem} \usepackage{cleveref} % Create an alias for 'item' (of enumi level): \crefalias{postulate}{enumi} \crefname{postulate}{postulate}{postulates} \...


3

This is a compatibility issue between cleveref and thm-restate. Inside restatable environment, specific commands are ignored. \label is one of them. In LaTeX2e flavor, \label accepts only one mandatory argument, so it is ignored by \let\label\@gobble (inside the definition of thmt@restatable environment, in thm-restate.sty) But cleveref package extends the \...


5

This draws on Mico's answer, but also sets the anchors (approximately) at the right points: if you click on the links, you get moved to the proper subfigure. The idea is to produce four empty subfigure environments that take the same space as the subfigures (the “approximate” refers to the small gap between the images, but it should not be a big concern). ...


4

I suppose you could insert a dummy subfigure environment, containing no graphs but just four \refstepcounter and \label directives, inside the figure environment to create four implicit (but invisible) subfigures. That said, I can see nothing wrong in just writing "As shown in Panels A and B of \cref{fig:model}, ..." \documentclass[notitlepage, ...


0

I realised that the original \ref does not point to the right lines either. The problem was with hyperref the whole time, see this answer here. The workaround is simply the following: \usepackage[hypertexnames=false]{hyperref}


0

Alex's answer did not work for me at first (sed issues the error "char 14: Invalid content of {} "). I am not a regex expert, so I ended up rewriting the line that finds the labels. So far this works for any type of reference: echo "Checking for unreferenced labels..."; # find all label names labels=$(grep -oP 'label{[^}]+}' *.tex | sed -...


4

You need to define also \creflastgroupconjunction as mentioned at the end of section 8.1.1 of the manual (p. 14). \documentclass[]{article} \usepackage{amsthm} \usepackage{cleveref} \newtheorem{thm}{Theorem} \crefname{thm}{Theorem}{Theorems} \newtheorem{prop}[thm]{Proposition} \crefname{prop}{Proposition}{Propositions} \newtheorem{lem}[thm]{Lemma} \...


Top 50 recent answers are included