Function: ConTeXt-section-section

ConTeXt-section-section is a byte-compiled function defined in context.el.

Signature

(ConTeXt-section-section)

Documentation

Hook to insert ConTeXt section command into the file.

Insert this hook into ConTeXt-numbered-section-hook after those hooks which sets the ConTeXt-name, ConTeXt-title, and ConTeXt-reference variables, but before those hooks which assumes the section already is inserted.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/context.el
(defun ConTeXt-section-section ()
  "Hook to insert ConTeXt section command into the file.
Insert this hook into `ConTeXt-numbered-section-hook' after those hooks
which sets the `ConTeXt-name', `ConTeXt-title', and
`ConTeXt-reference' variables, but before those hooks which
assumes the section already is inserted."
  (insert TeX-esc ConTeXt-name)
  (cond ((null ConTeXt-reference))
        ((zerop (length ConTeXt-reference))
         (insert ConTeXt-optop)
         (set-marker ConTeXt-done-mark (point))
         (insert ConTeXt-optcl))
        (t
         (insert ConTeXt-optop ConTeXt-reference ConTeXt-optcl)))
  (insert TeX-grop)
  (if (zerop (length ConTeXt-title))
      (set-marker ConTeXt-done-mark (point)))
  (insert ConTeXt-title TeX-grcl)
  (newline)
  ;; If RefTeX is available, tell it that we've just made a new section
  (and (fboundp 'reftex-notice-new-section)
       (reftex-notice-new-section)))