Skip to content

Instantly share code, notes, and snippets.

@jsrjenkins
Created May 28, 2016 20:11
Show Gist options
  • Save jsrjenkins/29a01f015e6a4981f1fe071058296e00 to your computer and use it in GitHub Desktop.
Save jsrjenkins/29a01f015e6a4981f1fe071058296e00 to your computer and use it in GitHub Desktop.
(eval-after-load
"latex"
'(TeX-add-style-hook
"cleveref"
(lambda ()
(if (boundp 'reftex-ref-style-alist)
(add-to-list
'reftex-ref-style-alist
'("Cleveref" "cleveref"
(("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D)))))
(reftex-ref-style-activate "Cleveref")
(TeX-add-symbols
'("cref" TeX-arg-ref)
'("Cref" TeX-arg-ref)
'("cpageref" TeX-arg-ref)
'("Cpageref" TeX-arg-ref)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment