Function: LaTeX-current-section

LaTeX-current-section is a byte-compiled function defined in latex.el.

Signature

(LaTeX-current-section)

Documentation

Return the level of the section that contain point.

See also LaTeX-section for description of levels.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX-current-section ()
  "Return the level of the section that contain point.
See also `LaTeX-section' for description of levels."
  (save-excursion
    (max (LaTeX-largest-level)
         (if (re-search-backward (LaTeX-outline-regexp) nil t)
             (- (LaTeX-outline-level) (LaTeX-outline-offset))
           (LaTeX-largest-level)))))