diff options
| author | Carsten Dominik | 1999-09-24 10:03:11 +0000 |
|---|---|---|
| committer | Carsten Dominik | 1999-09-24 10:03:11 +0000 |
| commit | 531377fdf29e4fc123f3f1981f5e7cabaca70266 (patch) | |
| tree | 1db8d5ca1722fb3b76085d4058c7ee8cef973bf8 | |
| parent | 28b707f9bc95181855a7293f4d7b6d23a964a511 (diff) | |
| download | emacs-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.el | 16 |
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. | ||
| 440 | Standard LaTeX needs default is 7, but there are packages for which this | ||
| 441 | needs 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). | |||
| 455 | The car of each cons cell is the name of the section macro (without | 462 | The car of each cons cell is the name of the section macro (without |
| 456 | the backslash). The cdr is a number indicating its level. A negative | 463 | the backslash). The cdr is a number indicating its level. A negative |
| 457 | level means the same level as the positive value, but the section will | 464 | level means the same level as the positive value, but the section will |
| 458 | never get a number." | 465 | never get a number. The cdr may also be a function which will be called |
| 466 | to 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. |