816 reputation
18
bio website dr-qubit.org
location
age
visits member for 1 year, 5 months
seen Jun 23 at 16:19

merge keep


Jul
11
awarded  Revival
Mar
22
awarded  Yearling
Jan
7
awarded  Nice Answer
Jan
7
revised Crossreference in Ref Range [(1a-1e) to (1a-e)]
typo fix
Jan
7
revised Setting minimal number of references for cleveref's compression feature
added 490 characters in body
Jan
7
comment Setting minimal number of references for cleveref's compression feature
I can see your argument for using 2-element ranges in your specific case, though it's not the formatting I'd choose. But in general, automatically compressing 2-element ranges gives bizarre results. It seems unlikely it's something you'd want to enable globally, and not worth the significant effort of coding and maintaining it. So I'm unlikely to add this feature myself. However, you can get the formatting you want with \def\crefpairconjunction{--} in your preamble and "\cref{eq1,eq2}, \labelcref{eq4,eq5}" in the text. I've edited my answer to include this.
Jan
7
comment Setting minimal number of references for cleveref's compression feature
Sorry, I understood "looks better" in your post to mean "looks aesthetically better" rather than "more readable" (so no, it wasn't clear to me). I'm not a grammar fascist. As I showed, it's simple to remove the final conjunction from enumerations. Nonetheless, adding a conjunction before the final element is the more common usage, so it's the default.
Nov
24
comment Defining cross-reference names for custom theorem environments in cleveref
You really don't want cleveref to try to (un)capitalise your own \crefname definitions for you automatically. Apart from the risk of this going wrong (your \crefname could involve arbitrarily complex LaTeX code), you might well want lower-case names in some cases. Cleveref is clever, but it's not telepathic! It can't tell when you want the capitalisation to respect the package option, and when you're intentionally overriding it. If you really need your \crefname definitions to respect capitalise, use \if@cref@capitalised in the definition \crefname definition.
Nov
24
comment Defining cross-reference names for custom theorem environments in cleveref
@KevinC Your solution is perfectly fine. If you want capitalised cross-reference names, define \crefname to use capitalised words. If you want non-capitalised names, define \crefname to use lower-case words. Yes, this does indeed mean that you'll need to change your \crefname definitions if you change your mind about using the capitalise package option.
Nov
24
answered Two colors in one hyperlink
Nov
24
answered Cleveref and named theorems
Nov
24
awarded  Revival
Nov
24
comment Cleveref and named theorems
Not related to the question, but don't use \Crefname in the middle of a sentence. \Crefname should only be used at the beginning of sentences. \Crefname is not the "capitalised variant" of \crefname. It is the start-of-sentence variant. It doesn't just capitalise the name, it also e.g. suppresses abbreviations. If you want capitalised reference names, use the capitalise (or capitalize) package option and/or use capitalised names in your \crefname definitions.
Nov
24
answered Setting minimal number of references for cleveref's compression feature
Nov
24
answered Extra “appendix” when referencing using cleveref in elsarticle
Nov
24
awarded  Supporter
Nov
24
answered How to strip “eq.” from cleveref?
Nov
24
comment Defining cross-reference names for custom theorem environments in cleveref
It's a common misconception that \Crefname means the "capitalised variant" of \crefname. It doesn't. \Crefname is the start-of-sentence variant of \crefname. E.g. it doesn't abbreviate names (since you standard style dictates that you shouldn't use abbreviations at the beginning of sentences in English).
Nov
24
comment Defining cross-reference names for custom theorem environments in cleveref
Of course there's no "conflict" between \crefname and the capitalise option. To quote the manual: "if you explicitly define a \cref variant to not be capitalised, cleveref will still honour your definition. In other words, you're responsible for defining the capitalisation correctly in your own format definitions." If you want capitalised names in your own format definitions, define \crefname to be capitalised.
Nov
24
comment Using a half-space with abbreviations in cleveref?
That's probably the best way to go. The other alternative is to use the low-level \crefformat customisation command, which lets you take full control over the complete cross-reference format. But unless you're very careful (see the manual) this will break things like babel support and automatic theorem names.