Function: ConTeXt-section
ConTeXt-section is an interactive and byte-compiled function defined
in context.el.
Signature
(ConTeXt-section ARG)
Documentation
Insert a template for a ConTeXt section.
Determinate the type of section to be inserted, by the argument ARG.
If ARG is nil or missing, use the current level.
If ARG is a list (selected by C-u (universal-argument)), go downward one level.
If ARG is negative, go up that many levels.
If ARG is positive or zero, use absolute level:
0 : part
1 : chapter
2 : section
3 : subsection
4 : subsubsection
5 : subsubsubsection
Or:
0 : title
1 : subject
2 : subsubject
3 : subsubsubject
The following variables can be set to customize:
ConTeXt-numbered-section-hook Hooks to run when inserting a section.
ConTeXt-section-ref Prefix to all section references.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/context.el
(defun ConTeXt-section (arg)
"Insert a template for a ConTeXt section.
Determinate the type of section to be inserted, by the argument ARG.
If ARG is nil or missing, use the current level.
If ARG is a list (selected by \\[universal-argument]), go downward one level.
If ARG is negative, go up that many levels.
If ARG is positive or zero, use absolute level:
0 : part
1 : chapter
2 : section
3 : subsection
4 : subsubsection
5 : subsubsubsection
Or:
0 : title
1 : subject
2 : subsubject
3 : subsubsubject
The following variables can be set to customize:
`ConTeXt-numbered-section-hook' Hooks to run when inserting a section.
`ConTeXt-section-ref' Prefix to all section references."
(interactive "*P")
(let* ((val (prefix-numeric-value arg))
(ConTeXt-level (cond ((null arg)
(ConTeXt-current-section))
((listp arg)
(ConTeXt-down-section))
((< val 0)
(ConTeXt-up-section (- val)))
(t val)))
(ConTeXt-name (ConTeXt-numbered-section-name ConTeXt-level))
(ConTeXt-title "")
(ConTeXt-reference nil)
(ConTeXt-done-mark (make-marker)))
(newline)
(run-hooks 'ConTeXt-numbered-section-hook)
(newline)
(if (marker-position ConTeXt-done-mark)
(goto-char (marker-position ConTeXt-done-mark)))
(set-marker ConTeXt-done-mark nil)))