How can I set up cleveref to work with AUCTeX and RefTeX? I have tried the advice on Emacs, RefTeX and Cleveref – can they work together? but it didn't work.
Additionally, when I hit enter, \ref{} portion is always enclosed in ( ). How can I get rid of ( ) enclosing the ref{}?
I also checked out:
AUCTeX – new commands recognized as such
this post but all the information is relatively old so maybe there is a newer answer?
C-c C-m cref RET, I get\cref, not\ref, it's impossible you get a\ref. Please explain better what's your problem and, if you can, post all AUCTeX/RefTeX related customizations in your.emacs. – giordano Jun 15 '13 at 15:12TeX-parse-selfandTeX-auto-savevariables tot? – giordano Jun 19 '13 at 23:38TeX-parse-selfandTeX-auto-saveare non nil, it must work. When you have a\usepackage{cleveref}in your documentcleverefappears inTeX-style-listvariable (check its value in your buffer) and the hook associated tocleverefis run, that is the hook I wrote in the answer. – giordano Jun 19 '13 at 23:57TeX-active-stylesin the LaTeX buffer (the previous mentionedTeX-style-listdoesn't exist, my fault): is"cleveref"present? Check the value ofTeX-style-hook-list: is the hook I wrote present? – giordano Jun 20 '13 at 00:03C-h v, soC-h v TeX-active-styles RETandC-h v TeX-style-hook-list RET(you can use auto completion with TAB). These variables are buffer local, so you must issue those commands in the same buffer of the document you are editing. – giordano Jun 20 '13 at 00:09.emacsexcept for settingTeX-auto-save,TeX-parse-selftotand the code I posted in the answer. – giordano Jun 20 '13 at 10:36:-|That should be completely unrelated to the distribution you are using. – giordano Jun 20 '13 at 21:54TeX-active-styles. I include the package with\usepackage[capitalise,noabbrev]{cleveref}in my master document, butreftex-ref-style-alistis never updated. How should the "cleveref" style become active? – robin Mar 19 '14 at 22:58TeX-parse-self,TeX-auto-saveandreftex-plug-into-AUCTeXare set tot– robin Mar 20 '14 at 10:50cleverrefstyle does not get activated… :/ Is there a way to forcefully enable the style? – Flow Apr 13 '23 at 11:52