Variable: reftex-ref-style-alist

reftex-ref-style-alist is a customizable variable defined in reftex-vars.el.gz.

Value

(("Default" t
  (("\\ref" 13)
   ("\\Ref" 82)
   ("\\footref" 110)
   ("\\pageref" 112)))
 ("Varioref" "varioref"
  (("\\vref" 118)
   ("\\Vref" 86)
   ("\\vpageref" 103)))
 ("Fancyref" "fancyref"
  (("\\fref" 102)
   ("\\Fref" 70)))
 ("Hyperref" "hyperref"
  (("\\autoref" 97)
   ("\\autopageref" 117)))
 ("Cleveref" "cleveref"
  (("\\cref" 99)
   ("\\Cref" 67)
   ("\\cpageref" 100)
   ("\\Cpageref" 68)))
 ("AMSmath" "amsmath"
  (("\\eqref" 101))))

Documentation

Alist of reference styles.

Each element is a list of the style name, the name of the LaTeX package associated with the style or t for any package, and an alist of macros where the first entry of each item is the reference macro and the second a key for selecting the macro when the macro type is being prompted for. (See also
reftex-ref-macro-prompt.) The keys, represented as characters,
have to be unique.

This variable was added, or its default value changed, in Emacs 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-vars.el.gz
(defcustom reftex-ref-style-alist
  '(("Default" t
     (("\\ref" ?\C-m) ("\\Ref" ?R) ("\\footref" ?n) ("\\pageref" ?p)))
    ("Varioref" "varioref"
     (("\\vref" ?v) ("\\Vref" ?V) ("\\vpageref" ?g)))
    ("Fancyref" "fancyref"
     (("\\fref" ?f) ("\\Fref" ?F)))
    ("Hyperref" "hyperref"
     (("\\autoref" ?a) ("\\autopageref" ?u)))
    ("Cleveref" "cleveref"
     (("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D)))
    ("AMSmath" "amsmath"
     (("\\eqref" ?e))))
  "Alist of reference styles.
Each element is a list of the style name, the name of the LaTeX
package associated with the style or t for any package, and an
alist of macros where the first entry of each item is the
reference macro and the second a key for selecting the macro when
the macro type is being prompted for.  (See also
`reftex-ref-macro-prompt'.)  The keys, represented as characters,
have to be unique."
  :group 'reftex-referencing-labels
  :version "28.1"
  :type '(alist :key-type (string :tag "Style name")
		:value-type (group (choice :tag "Package"
					   (const :tag "Any package" t)
					   (string :tag "Name"))
				   (repeat :tag "Macros"
					   (group (string :tag "Macro")
						  (character :tag "Key"))))))