Function: LaTeX-command-section-change-level
LaTeX-command-section-change-level is an interactive and byte-compiled
function defined in tex.el.
Signature
(LaTeX-command-section-change-level ARG)
Documentation
Change LaTeX-command-section-level(var)/LaTeX-command-section-level(fun) by ARG.
LaTeX-command-section-level(var)/LaTeX-command-section-level(fun) is the sectioning level used to
determine the current section by LaTeX-command-section.
The levels are defined by LaTeX-section-list.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun LaTeX-command-section-change-level (arg)
"Change `LaTeX-command-section-level' by ARG.
`LaTeX-command-section-level' is the sectioning level used to
determine the current section by `LaTeX-command-section'.
The levels are defined by `LaTeX-section-list'."
(interactive "p")
(let ((old-level (LaTeX-section-name (LaTeX-command-section-level))))
(setq LaTeX-command-section-level (+ LaTeX-command-section-level arg))
(cond
((> LaTeX-command-section-level 6)
(setq LaTeX-command-section-level 6)
(message "Cannot shrink LaTeX-command-section-level below subparagraph."))
((< LaTeX-command-section-level 0)
(setq LaTeX-command-section-level 0)
(message "Cannot enlarge LaTeX-command-section-level above part."))
(t (message "Changed level from %s to %s."
old-level (LaTeX-section-name
LaTeX-command-section-level))))))