aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik1999-09-24 10:03:11 +0000
committerCarsten Dominik1999-09-24 10:03:11 +0000
commit531377fdf29e4fc123f3f1981f5e7cabaca70266 (patch)
tree1db8d5ca1722fb3b76085d4058c7ee8cef973bf8
parent28b707f9bc95181855a7293f4d7b6d23a964a511 (diff)
downloademacs-531377fdf29e4fc123f3f1981f5e7cabaca70266.tar.gz
emacs-531377fdf29e4fc123f3f1981f5e7cabaca70266.zip
(reftex-section-levels): Function allowed as cdr.
(reftex-max-section-depth) New option.
-rw-r--r--lisp/textmodes/reftex-vars.el16
1 files changed, 13 insertions, 3 deletions
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 7243641ea27..40af81b9d86 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -1,5 +1,5 @@
1;;; reftex-vars.el - Configuration variables for RefTeX 1;;; reftex-vars.el - Configuration variables for RefTeX
2;;; Version: 4.5 2;;; Version: 4.6
3;;; 3;;;
4;;; See main file reftex.el for licensing information 4;;; See main file reftex.el for licensing information
5 5
@@ -435,6 +435,13 @@ list. However, builtin defaults should normally be set with the variable
435 (nth 0 x))) 435 (nth 0 x)))
436 reftex-label-alist-builtin))))) 436 reftex-label-alist-builtin)))))
437 437
438(defcustom reftex-max-section-depth 12
439 "Maximum depth of section levels in document structure.
440Standard LaTeX needs default is 7, but there are packages for which this
441needs to be larger."
442 :group 'reftex-defining-label-environments
443 :type 'integer)
444
438;; LaTeX section commands and level numbers 445;; LaTeX section commands and level numbers
439(defcustom reftex-section-levels 446(defcustom reftex-section-levels
440 '( 447 '(
@@ -455,12 +462,15 @@ This is an alist with each element like (COMMAND-NAME . LEVEL).
455The car of each cons cell is the name of the section macro (without 462The car of each cons cell is the name of the section macro (without
456the backslash). The cdr is a number indicating its level. A negative 463the backslash). The cdr is a number indicating its level. A negative
457level means the same level as the positive value, but the section will 464level means the same level as the positive value, but the section will
458never get a number." 465never get a number. The cdr may also be a function which will be called
466to after the section-re matched to determine the level."
459 :group 'reftex-defining-label-environments 467 :group 'reftex-defining-label-environments
460 :set 'reftex-set-dirty 468 :set 'reftex-set-dirty
461 :type '(repeat 469 :type '(repeat
462 (cons (string :tag "sectioning macro" "") 470 (cons (string :tag "sectioning macro" "")
463 (number :tag "level " 0)))) 471 (choice
472 (number :tag "level " 0)
473 (symbol :tag "function " my-level-func)))))
464 474
465(defcustom reftex-section-prefixes '((0 . "part:") (1 . "cha:") (t . "sec:")) 475(defcustom reftex-section-prefixes '((0 . "part:") (1 . "cha:") (t . "sec:"))
466 "Prefixes for section labels. 476 "Prefixes for section labels.