• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/emacs-93/emacs/lisp/textmodes/

Lines Matching +defs:case +defs:label

40 (defconst reftex-label-alist-builtin
123 ;; The label macro is hard coded, but it *could* be defined like this:
124 ;;("\\label{*}" nil nil nil nil)
128 "The default label environment descriptions.
129 Lower-case symbols correspond to a style file of the same name in the LaTeX
130 distribution. Mixed-case symbols are convenience aliases.")
227 Lower-case symbols correspond to a style file of the same name in the LaTeX
228 distribution. Mixed-case symbols are convenience aliases.")
234 "LaTeX label and citation support."
418 (defgroup reftex-label-support nil
422 (defgroup reftex-defining-label-environments nil
423 "Definition of environments and macros to do with label."
424 :group 'reftex-label-support)
426 (defcustom reftex-default-label-alist-entries
429 "Default label alist specifications. LaTeX should always be the last entry.
431 constant `reftex-label-alist-builtin'. Check that constant for a full list
433 :group 'reftex-defining-label-environments
444 reftex-label-alist-builtin)))
446 (defcustom reftex-label-alist nil
447 "Alist with information on environments for \\label-\\ref use.
451 `reftex-label-alist-builtin' may also be instructive.
455 labels, and SPC for the `any' label type. These are hard-coded at other
465 with \\label and \\ref, or a LaTeX macro defining a label as (or inside)
472 a star to mark the label argument, if any. The macro does not have to
473 have a label argument - you could also use \\label{..} inside one of
479 to be in a non-standard label environment. The function must take
490 The type indicator is a single character which defines a label type.
491 Any label inside the environment or macro is assumed to belong to this
493 cases in which different environments carry the same label type (like
495 If the type indicator is nil and the macro has a label argument {*},
496 the macro defines neutral labels just like \\label. In this case
501 The prefix is a short string used as the start of a label. It may be the
514 the label.
520 - If nil, use the text following the \\label{...} macro.
527 - If an integer, use the nth argument of the macro. As a special case,
529 - If a string, use as regexp to search *backward* from the label. Context
538 as argument. On call, point will be just after the \\label macro. The
542 the label macro as context:
549 Label context is used in two ways by RefTeX: For display in the label
550 menu, and to derive a label string. If you want to use a different
552 E.g. `(nil . t)' uses the text after the label (nil) for display, and
553 text from the default position (t) to derive a label string. This is
559 `reftex-reference', the label list offered will be automatically
579 `reftex-label-alist-builtin', the cddr of that association is spliced into the
581 `reftex-default-label-alist-entries."
582 :group 'reftex-defining-label-environments
595 (const :tag "unspecified, like in \\label" nil)
605 (const :tag "After label" nil)
624 reftex-label-alist-builtin)))))
628 When the label prefix given in an entry in `reftex-label-alist' contains `%S',
634 :group 'reftex-defining-label-environments
652 :group 'reftex-defining-label-environments
655 (defcustom reftex-trust-label-prefix nil
656 "Non-nil means, trust the label prefix when determining label type.
657 It is customary to use special label prefixes to distinguish different label
658 types. The label prefixes have no syntactic meaning in LaTeX (unless
660 default does parse around each label to detect the correct label type,
662 labels. If you use label prefixes consistently, you may speed up
664 will then compare the label prefix with the prefixes found in
665 `reftex-label-alist' and derive the correct label type in this way.
668 t This means to trust any label prefixes found.
672 nil Never trust a label prefix.
674 The only disadvantage of using this feature is that the label context
675 displayed in the label selection buffer along with each label is
676 simply some text after the label definition. This is no problem if you
684 :group 'reftex-defining-label-environments
699 carries a label, you must also set up an entry for it in
700 `reftex-label-alist'.
716 \\ex. \\label{ex:12} Some text in an exotic language ...
717 \\a. \\label{ex:13} more stuff
718 \\b. \\label{ex:14} still more stuff
724 1. Define a dummy environment for this in `reftex-label-alist'. Dummy means,
728 (setq reftex-label-alist
754 :group 'reftex-defining-label-environments
761 :group 'reftex-label-support)
763 (defcustom reftex-insert-label-flags '("s" "sft")
764 "Flags governing label insertion. First flag DERIVE, second flag PROMPT.
766 If DERIVE is t, RefTeX will try to derive a sensible label from context.
767 A section label for example will be derived from the section heading.
768 The conversion of the context to a valid label is governed by the
769 specifications given in `reftex-derive-label-parameters'.
770 If RefTeX fails to derive a label, it will prompt the user.
771 If DERIVE is nil, the label generated will consist of the prefix and a
774 If PROMPT is t, the user will be prompted for a label string. The prompt will
775 already contain the prefix, and (if DERIVE is t) a default label derived from
776 context. When PROMPT is nil, the default label will be inserted without
779 So the combination of DERIVE and PROMPT controls label insertion. Here is a
784 nil nil Insert simple label, like eq:22 or sec:13. No query.
785 nil t Prompt for label.
786 t nil Derive a label from context and insert without query.
787 t t Derive a label from context and prompt for confirmation.
789 Each flag may be set to t, nil, or a string of label type letters
790 indicating the label types for which it should be true. The strings work
792 Thus, the combination may be set differently for each label type. The
796 The available label types are: s (section), f (figure), t (table), i (item),
798 `reftex-label-alist'."
800 :type '(list (choice :tag "Derive label from context"
803 (string :tag "selected label types" ""))
804 (choice :tag "Prompt for label string "
808 (string :tag "selected label types" ""))))
810 (defcustom reftex-string-to-label-function 'reftex-string-to-label
811 "Function to turn an arbitrary string into a valid label.
812 RefTeX's default function uses the variable `reftex-derive-label-parameters'."
818 to derive a label from it. The intended application is to convert ISO or
825 (defcustom reftex-derive-label-parameters '(3 20 t 1 "-"
827 "Parameters for converting a string into a label.
831 MAXCHAR Maximum number of characters in a label string.
837 label string below MAXCHAR.
838 SEPARATOR String separating different words in the label.
843 (integer :tag "Maximum label length " 20)
850 (const :tag "when label is too long" 1))
857 (defcustom reftex-label-illegal-re "[^-a-zA-Z0-9_+=:;,.]"
877 (defcustom reftex-format-label-function nil
878 "Function which produces the string to insert as a label definition.
881 FORMAT, which usually is `\\label{%s}'. The function should return the
890 :group 'reftex-label-support)
896 (string :tag "Selected label types"))))
898 (defcustom reftex-label-menu-flags '(t t nil nil nil nil t nil)
899 "List of flags governing the label menu makeup.
912 indicating the label types for which it should be true. These strings work
916 The available label types are: s (section), f (figure), t (table), i (item),
917 e (equation), n (footnote), plus any definitions in `reftex-label-alist'.
919 Most options can also be switched from the label menu itself - so if you
920 decide here to not have a table of contents in the label menu, you can still
921 get one interactively during selection from the label menu."
950 the label types for which it should be true."
961 the label types for which it should be true."
972 (defcustom reftex-guess-label-type t
973 "*Non-nil means, `reftex-reference' will try to guess the label type.
975 the words given in `reftex-label-alist'. When it finds a match, RefTeX will
976 immediately offer the correct label menu - otherwise it will prompt you for
977 a label type. If you set this variable to nil, RefTeX will always prompt."
980 ;;;###autoload(put 'reftex-guess-label-type 'safe-local-variable (lambda (x) (memq x '(nil t))))
985 already be specified in `reftex-label-alist'.
995 (defcustom reftex-select-label-mode-hook nil
996 "Mode hook for reftex-select-label-mode."
1047 It can be a string or an alist or a symbol. In the simplest case this
1054 %l The BibTeX label of the citation.
1366 (defcustom reftex-index-phrases-case-fold-search t
1367 "*Non-nil means, searching for index phrases will ignore case."
1386 before or after the phrase. If that is the case, that match will
1474 this case a small temporary window is used for the display.
1622 to display label context, etc.
1666 we will only parse the current buffer, or the file associated with the label
1675 Currently this applies only to rescanning after label insertion, when
1676 the new label cannot be inserted correctly into the internal label
1699 "*Non-nil means use a separate selection buffer for each label type.
1711 When a new label is defined with `reftex-label', all selection buffers
1712 associated with that label category are emptied, in order to force an
1714 updated by hand, with the `g' key from the label selection process.
1736 "*Non-nil means, re-fontify the context in the label menu with font-lock.
1737 This slightly slows down the creation of the label menu. It is only necessary
1788 (defcustom reftex-label-face 'font-lock-constant-face
1862 - supply arguments for macros like `\\label'. (flag 2)
1884 (boolean :tag "supply label in new sections and environments")
1885 (boolean :tag "supply argument for macros like `\\label' ")