Variable: LaTeX-section-label
LaTeX-section-label is a customizable variable defined in latex.el.
Value
(("part" . "part:") ("chapter" . "chap:") ("section" . "sec:")
("subsection" . "sec:") ("subsubsection" . "sec:"))
Documentation
Default prefix when asking for a label.
Some LaTeX packages (such as fancyref) look at the prefix to generate some
text around cross-references automatically. When using those packages, you
should not change this variable.
If it is a string, it it used unchanged for all kinds of sections. If it is nil, no label is inserted. If it is a list, the list is searched for a member whose car is equal to the name of the sectioning command being inserted. The cdr is then used as the prefix. If the name is not found, or if the cdr is nil, no label is inserted.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defcustom LaTeX-section-label
'(("part" . "part:")
("chapter" . "chap:")
("section" . "sec:")
("subsection" . "sec:")
("subsubsection" . "sec:"))
"Default prefix when asking for a label.
Some LaTeX packages \(such as `fancyref'\) look at the prefix to generate some
text around cross-references automatically. When using those packages, you
should not change this variable.
If it is a string, it it used unchanged for all kinds of sections.
If it is nil, no label is inserted.
If it is a list, the list is searched for a member whose car is equal
to the name of the sectioning command being inserted. The cdr is then
used as the prefix. If the name is not found, or if the cdr is nil,
no label is inserted."
:group 'LaTeX-label
:type '(choice (const :tag "none" nil)
(string :format "%v" :tag "Common")
(repeat :menu-tag "Level specific"
:format "\n%v%i"
(cons :format "%v"
(string :tag "Type")
(choice :tag "Prefix"
(const :tag "none" nil)
(string :format "%v"))))))