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

Lines Matching +defs:reftex +defs:mode

0 ;;; reftex-vars.el --- configuration variables for RefTeX
30 (eval-when-compile (defvar reftex-tables-dirty))
33 (defun reftex-set-dirty (symbol value)
34 (setq reftex-tables-dirty t)
40 (defconst reftex-label-alist-builtin
132 (defconst reftex-cite-format-builtin
212 (defconst reftex-index-macros-builtin
226 "Builtin stuff for reftex-index-macros.
233 (defgroup reftex nil
237 "http://staff.science.uva.nl/~dominik/Tools/reftex/")
238 :link '(emacs-commentary-link :tag "Commentary in reftex.el" "reftex.el")
239 :link '(custom-manual "(reftex)Top")
240 :prefix "reftex-"
246 (defgroup reftex-table-of-contents-browser nil
248 :group 'reftex)
250 (defcustom reftex-include-file-commands '("include" "input")
254 :group 'reftex-table-of-contents-browser
257 (defcustom reftex-max-section-depth 12
261 :group 'reftex-table-of-contents-browser
265 (defcustom reftex-section-levels
290 :group 'reftex-table-of-contents-browser
291 :set 'reftex-set-dirty
298 (defcustom reftex-toc-max-level 100
303 :group 'reftex-table-of-contents-browser
306 (defcustom reftex-part-resets-chapter nil
312 :group 'reftex-table-of-contents-browser
316 (defcustom reftex-auto-recenter-toc 'frame
320 more than `reftex-idle-time' seconds.
333 :group 'reftex-table-of-contents-browser
339 (defcustom reftex-toc-split-windows-horizontally nil
341 :group 'reftex-table-of-contents-browser
344 (defcustom reftex-toc-split-windows-fraction .3
346 See also `reftex-toc-split-windows-horizontally'."
347 :group 'reftex-table-of-contents-browser
350 (defvar reftex-toc-split-windows-horizontally-fraction 0.5
351 "This variable is obsolete, use `reftex-toc-split-windows-fraction' instead.")
353 (defcustom reftex-toc-keep-other-windows t
358 :group 'reftex-table-of-contents-browser
361 (defcustom reftex-toc-include-file-boundaries nil
364 :group 'reftex-table-of-contents-browser
367 (defcustom reftex-toc-include-labels nil
370 :group 'reftex-table-of-contents-browser
373 (defcustom reftex-toc-include-index-entries nil
376 :group 'reftex-table-of-contents-browser
379 (defcustom reftex-toc-confirm-promotion 2
384 :group 'reftex-table-of-contents-browser
390 (defcustom reftex-toc-include-context nil
394 :group 'reftex-table-of-contents-browser
397 (defcustom reftex-toc-follow-mode nil
401 :group 'reftex-table-of-contents-browser
404 (defcustom reftex-revisit-to-follow nil
405 "*Non-nil means, follow-mode will revisit files if necessary.
406 When nil, follow-mode will be suspended for stuff in unvisited files."
407 :group 'reftex-table-of-contents-browser
408 :group 'reftex-referencing-labels
411 (defcustom reftex-toc-mode-hook nil
412 "Mode hook for reftex-toc-mode."
413 :group 'reftex-table-of-contents-browser
418 (defgroup reftex-label-support nil
420 :group 'reftex)
422 (defgroup reftex-defining-label-environments nil
424 :group 'reftex-label-support)
426 (defcustom reftex-default-label-alist-entries
431 constant `reftex-label-alist-builtin'. Check that constant for a full list
433 :group 'reftex-defining-label-environments
434 :set 'reftex-set-dirty
444 reftex-label-alist-builtin)))
446 (defcustom reftex-label-alist nil
450 examples in `reftex.el'. Looking at the builtin defaults in the constant
451 `reftex-label-alist-builtin' may also be instructive.
508 %S A section prefix derived with variable `reftex-section-prefixes'.
536 (see also the variable `reftex-default-context-regexps').
559 `reftex-reference', the label list offered will be automatically
567 table of contents. See also `reftex-section-levels'. A positive
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
583 :set 'reftex-set-dirty
624 reftex-label-alist-builtin)))))
626 (defcustom reftex-section-prefixes '((0 . "part:") (1 . "cha:") (t . "sec:"))
628 When the label prefix given in an entry in `reftex-label-alist' contains `%S',
633 \(as given in `reftex-section-levels'), and t for the default."
634 :group 'reftex-defining-label-environments
643 (defcustom reftex-default-context-regexps
652 :group 'reftex-defining-label-environments
655 (defcustom reftex-trust-label-prefix nil
665 `reftex-label-alist' and derive the correct label type in this way.
684 :group 'reftex-defining-label-environments
692 (defcustom reftex-special-environment-functions nil
700 `reftex-label-alist'.
724 1. Define a dummy environment for this in `reftex-label-alist'. Dummy means,
728 (setq reftex-label-alist
752 (setq reftex-special-environment-functions '(my-detect-linguex-list))
754 :group 'reftex-defining-label-environments
759 (defgroup reftex-making-and-inserting-labels nil
761 :group 'reftex-label-support)
763 (defcustom reftex-insert-label-flags '("s" "sft")
769 specifications given in `reftex-derive-label-parameters'.
798 `reftex-label-alist'."
799 :group 'reftex-making-and-inserting-labels
810 (defcustom reftex-string-to-label-function 'reftex-string-to-label
812 RefTeX's default function uses the variable `reftex-derive-label-parameters'."
813 :group 'reftex-making-and-inserting-labels
816 (defcustom reftex-translate-to-ascii-function 'reftex-latin1-to-ascii
822 :group 'reftex-making-and-inserting-labels
825 (defcustom reftex-derive-label-parameters '(3 20 t 1 "-"
835 t: Always abbreviate words (see `reftex-abbrev-parameters').
841 :group 'reftex-making-and-inserting-labels
857 (defcustom reftex-label-illegal-re "[^-a-zA-Z0-9_+=:;,.]"
859 :group 'reftex-making-and-inserting-labels
862 (defcustom reftex-abbrev-parameters '(4 2 "^aeiou" "aeiou")
870 :group 'reftex-making-and-inserting-labels
877 (defcustom reftex-format-label-function nil
883 :group 'reftex-making-and-inserting-labels
888 (defgroup reftex-referencing-labels nil
890 :group 'reftex-label-support)
893 (defconst reftex-tmp
898 (defcustom reftex-label-menu-flags '(t t nil nil nil nil t nil)
917 e (equation), n (footnote), plus any definitions in `reftex-label-alist'.
922 :group 'reftex-referencing-labels
925 (choice :tag "Embed in table of contents " ,@reftex-tmp)
926 (choice :tag "Show section numbers " ,@reftex-tmp)
927 (choice :tag "Show individual counters " ,@reftex-tmp)
928 (choice :tag "Hide short context " ,@reftex-tmp)
929 (choice :tag "Follow context in other window " ,@reftex-tmp)
930 (choice :tag "Show commented labels " ,@reftex-tmp)
931 (choice :tag "Obsolete flag, Don't use. " ,@reftex-tmp)
932 (choice :tag "Show begin/end of included files" ,@reftex-tmp)))
934 (defcustom reftex-multiref-punctuation '((?, . ", ") (?- . "--") (?+ . " and "))
940 `eqs. 1,2,3-5,6 and 7' in a single call to `reftex-reference'. See manual."
941 :group 'reftex-referencing-labels
944 (defcustom reftex-vref-is-default nil
951 :group 'reftex-referencing-labels
952 :type `(choice :tag "\\vref is default macro" ,@reftex-tmp))
953 ;;;###autoload(put 'reftex-vref-is-default 'safe-local-variable (lambda (x) (or (stringp x) (symbolp x))))
955 (defcustom reftex-fref-is-default nil
962 :group 'reftex-referencing-labels
963 :type `(choice :tag "\\fref is default macro" ,@reftex-tmp))
964 ;;;###autoload(put 'reftex-fref-is-default 'safe-local-variable (lambda (x) (or (stringp x) (symbolp x))))
966 (defcustom reftex-level-indent 2
968 :group 'reftex-referencing-labels
970 ;;;###autoload(put 'reftex-level-indent 'safe-local-variable 'integerp)
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
978 :group 'reftex-referencing-labels
980 ;;;###autoload(put 'reftex-guess-label-type 'safe-local-variable (lambda (x) (memq x '(nil t))))
982 (defcustom reftex-format-ref-function nil
985 already be specified in `reftex-label-alist'.
992 :group 'reftex-referencing-labels
995 (defcustom reftex-select-label-mode-hook nil
996 "Mode hook for reftex-select-label-mode."
997 :group 'reftex-referencing-labels
1002 (defgroup reftex-citation-support nil
1004 :group 'reftex)
1006 (defcustom reftex-bibliography-commands '("bibliography" "nobibliography")
1008 :group 'reftex-citation-support
1012 (defvar reftex-bibfile-ignore-list nil) ; compatibility
1013 (defcustom reftex-bibfile-ignore-regexps nil
1018 :group 'reftex-citation-support
1019 :set 'reftex-set-dirty
1022 (defcustom reftex-default-bibliography nil
1024 When `reftex-citation' is called from a document which has neither a
1026 RefTeX will scan these files instead. Intended for using `reftex-citation'
1029 :group 'reftex-citation-support
1032 (defcustom reftex-sort-bibtex-matches 'reverse-year
1033 "*Sorting of the entries found in BibTeX databases by reftex-citation.
1039 :group 'reftex-citation-support
1045 (defcustom reftex-cite-format 'default
1049 definition of `reftex-cite-format-builtin' for more complex examples.
1051 If `reftex-cite-format' is a string, it will be used as the format.
1055 %a List of author names, see also `reftex-cite-punctuation'.
1069 display, and for (setq reftex-comment-citations t).
1081 If `reftex-cite-format' is an alist of characters and strings, the user
1085 `reftex-cite-format' directly yourself or set it to the SYMBOL of one of
1087 association in the constant `reftex-cite-format-builtin'.
1088 E.g.: (setq reftex-cite-format 'natbib)"
1089 :group 'reftex-citation-support
1101 reftex-cite-format-builtin))
1109 (defcustom reftex-cite-prompt-optional-args 'maybe
1111 When an entry in `reftex-cite-format' ist given with square brackets to
1117 maybe Prompt only if `reftex-citation' was called with C-u prefix arg
1120 the buffer. See `reftex-cite-cleanup-optional-args'."
1121 :group 'reftex-citation-support
1127 (defcustom reftex-cite-cleanup-optional-args t
1142 :group 'reftex-citation-support
1145 (defcustom reftex-comment-citations nil
1147 The comment is formatted according to `reftex-cite-comment-format'."
1148 :group 'reftex-citation-support
1151 (defcustom reftex-cite-comment-format
1154 See the variable `reftex-cite-format' for possible percent escapes."
1155 :group 'reftex-citation-support
1158 (defcustom reftex-cite-view-format "%2a %y, %T, %B, %j %v:%P, %s %<"
1160 Must NOT contain %l. See the variable `reftex-cite-format' for
1162 :group 'reftex-citation-support
1163 :group 'reftex-viewing-cross-references
1166 (defcustom reftex-cite-punctuation '(", " " \\& " " {\\it et al.}")
1172 :group 'reftex-citation-support
1178 (defcustom reftex-format-cite-function nil
1181 already be specified in `reftex-cite-format'.
1183 DEFAULT FORMAT, which is taken from `reftex-cite-format'. The function
1185 :group 'reftex-citation-support
1188 (defcustom reftex-select-bib-mode-hook nil
1189 "Mode hook for reftex-select-bib-mode."
1190 :group 'reftex-citation-support
1195 (defgroup reftex-index-support nil
1197 :group 'reftex)
1199 (defcustom reftex-support-index t
1205 :group 'reftex-index-support
1208 (defcustom reftex-index-special-chars '("!" "|" "@" "\"" "\\")
1211 :group 'reftex-index-support
1219 (defcustom reftex-index-macros nil
1234 \\[reftex-index]. ?i, ?I, and ?g are reserved for default index and glossary.
1246 Needed for `reftex-index-selection-or-word' and for indexing from the
1250 in the variable `reftex-index-macros-builtin' to specify the main
1260 :group 'reftex-index-support
1261 :set 'reftex-set-dirty
1283 reftex-index-macros-builtin)))))
1285 (defcustom reftex-index-default-macro '(?i "idx")
1286 "The default index macro for \\[reftex-index-selection-or-word].
1289 MACRO-KEY: Character identifying an index macro - see `reftex-index-macros'.
1294 :group 'reftex-index-support
1301 (defcustom reftex-index-default-tag "idx"
1311 :group 'reftex-index-support
1317 (defcustom reftex-index-math-format "$%s$"
1318 "Format of index entries when copied from inside math mode.
1319 When `reftex-index-selection-or-word' is executed inside TeX math mode,
1324 :group 'reftex-index-support
1327 (defcustom reftex-index-phrase-file-extension ".rip"
1330 :group 'reftex-index-support
1333 (defcustom reftex-index-phrases-logical-and-regexp " *&& *"
1341 `reftex-index-phrases-logical-or-regexp'."
1342 :group 'reftex-index-support
1345 (defcustom reftex-index-phrases-logical-or-regexp " *|| *"
1353 The logical `and' specified in `reftex-index-phrases-logical-or-regexp'
1355 :group 'reftex-index-support
1358 (defcustom reftex-index-phrases-search-whole-words t
1363 :group 'reftex-index-support
1366 (defcustom reftex-index-phrases-case-fold-search t
1368 :group 'reftex-index-support
1371 (defcustom reftex-index-verify-function nil
1374 :group 'reftex-index-support
1379 (defcustom reftex-index-phrases-skip-indexed-matches nil
1388 :group 'reftex-index-support
1391 (defcustom reftex-index-phrases-wrap-long-lines nil
1398 :group 'reftex-index-support
1401 (defcustom reftex-index-phrases-sort-prefers-entry nil
1407 :group 'reftex-index-support
1410 (defcustom reftex-index-phrases-sort-in-blocks t
1414 :group 'reftex-index-support
1417 (defcustom reftex-index-section-letters "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1426 :group 'reftex-index-support
1429 (defcustom reftex-index-include-context nil
1432 :group 'reftex-index-support
1435 (defcustom reftex-index-follow-mode nil
1439 :group 'reftex-table-of-contents-browser
1444 (defgroup reftex-viewing-cross-references nil
1446 :group 'reftex)
1448 (defcustom reftex-view-crossref-extra nil
1450 This is used when `reftex-view-crossref' is called with point in an
1462 :group 'reftex-viewing-cross-references
1467 (defcustom reftex-auto-view-crossref t
1470 Whenever point is idle for more than `reftex-idle-time' seconds on the
1477 :group 'reftex-viewing-cross-references
1482 (defcustom reftex-idle-time 1.2
1485 :group 'reftex-viewing-cross-references
1488 (defcustom reftex-revisit-to-echo nil
1492 :group 'reftex-viewing-cross-references
1495 (defcustom reftex-cache-cite-echo t
1498 survives document scans. In order to clear it, use M-x reftex-reset-mode."
1499 :group 'reftex-viewing-cross-references
1502 (defcustom reftex-display-copied-context-hook nil
1505 :group 'reftex-viewing-cross-references
1506 :group 'reftex-referencing-labels
1511 (defgroup reftex-finding-files nil
1513 :group 'reftex)
1515 (defcustom reftex-texpath-environment-variables '("TEXINPUTS")
1525 See also `reftex-use-external-file-finders'."
1526 :group 'reftex-finding-files
1527 :set 'reftex-set-dirty
1530 (defcustom reftex-bibpath-environment-variables '("BIBINPUTS" "TEXBIB")
1540 See also `reftex-use-external-file-finders'."
1541 :group 'reftex-citation-support
1542 :group 'reftex-finding-files
1543 :set 'reftex-set-dirty
1546 (defcustom reftex-file-extensions '(("tex" . (".tex" ".ltx"))
1560 :group 'reftex-finding-files
1564 (defcustom reftex-try-all-extensions nil
1565 "Non-nil means, try all extensions listed in `reftex-file-extensions'.
1571 `reftex-file-extensions'.
1573 :group 'reftex-finding-files
1576 (defcustom reftex-search-unrecursed-path-first t
1584 :group 'reftex-finding-files
1587 (defcustom reftex-use-external-file-finders nil
1592 option `reftex-external-file-finders' instead. As a side effect,
1593 the variables `reftex-texpath-environment-variables' and
1594 `reftex-bibpath-environment-variables' will be ignored."
1595 :group 'reftex-finding-files
1598 (defcustom reftex-external-file-finders '(("tex" . "kpsewhich -format=.tex %f")
1605 Only relevant when `reftex-use-external-file-finders' is non-nil."
1606 :group 'reftex-finding-files
1612 (defgroup reftex-optimizations-for-large-documents nil
1614 :group 'reftex)
1616 (defcustom reftex-keep-temporary-buffers 1
1634 upon the variable `reftex-initialize-temporary-buffers'."
1635 :group 'reftex-optimizations-for-large-documents
1641 (defcustom reftex-initialize-temporary-buffers nil
1648 :group 'reftex-optimizations-for-large-documents
1655 (defcustom reftex-no-include-regexps '("\\.pstex_t\\'")
1659 :group 'reftex-optimizations-for-large-documents
1662 (defcustom reftex-enable-partial-scans nil
1670 :group 'reftex-optimizations-for-large-documents
1673 (defcustom reftex-allow-automatic-rescan t
1678 :group 'reftex-optimizations-for-large-documents
1681 (defcustom reftex-save-parse-info nil
1687 - exiting Emacs or killing a buffer in reftex-mode will cause a new version
1689 :group 'reftex-optimizations-for-large-documents
1692 (defcustom reftex-parse-file-extension ".rel"
1695 :group 'reftex-optimizations-for-large-documents
1698 (defcustom reftex-use-multiple-selection-buffers nil
1704 `reftex-auto-update-selection-buffers'."
1705 :group 'reftex-optimizations-for-large-documents
1706 :group 'reftex-referencing-labels
1709 (defcustom reftex-auto-update-selection-buffers t
1711 When a new label is defined with `reftex-label', all selection buffers
1716 `reftex-use-multiple-selection-buffers' is non-nil."
1717 :group 'reftex-optimizations-for-large-documents
1718 :group 'reftex-referencing-labels
1723 (defgroup reftex-fontification-configurations nil
1726 :group 'reftex)
1728 (defcustom reftex-use-fonts t
1732 :group 'reftex-fontification-configurations
1735 (defcustom reftex-refontify-context 1
1744 The option is ignored when `reftex-use-fonts' is nil."
1745 :group 'reftex-fontification-configurations
1746 :group 'reftex-referencing-labels
1752 (defcustom reftex-highlight-selection 'cursor
1767 :group 'reftex-fontification-configurations
1774 (defcustom reftex-cursor-selected-face 'highlight
1776 See also the variable `reftex-highlight-selection'."
1777 :group 'reftex-fontification-configurations
1779 (defcustom reftex-mouse-selected-face 'secondary-selection
1781 See also the variable `reftex-highlight-selection'."
1782 :group 'reftex-fontification-configurations
1784 (defcustom reftex-file-boundary-face 'font-lock-comment-face
1786 :group 'reftex-fontification-configurations
1788 (defcustom reftex-label-face 'font-lock-constant-face
1790 :group 'reftex-fontification-configurations
1792 (defcustom reftex-section-heading-face 'font-lock-function-name-face
1794 :group 'reftex-fontification-configurations
1796 (defcustom reftex-toc-header-face 'font-lock-comment-face
1798 :group 'reftex-fontification-configurations
1800 (defcustom reftex-bib-author-face 'font-lock-keyword-face
1802 :group 'reftex-fontification-configurations
1804 (defcustom reftex-bib-year-face 'font-lock-comment-face
1806 :group 'reftex-fontification-configurations
1808 (defcustom reftex-bib-title-face 'font-lock-function-name-face
1810 :group 'reftex-fontification-configurations
1812 (defcustom reftex-bib-extra-face 'font-lock-comment-face
1814 :group 'reftex-fontification-configurations
1816 (defcustom reftex-select-mark-face 'bold
1818 :group 'reftex-fontification-configurations
1820 (defcustom reftex-index-header-face 'font-lock-comment-face
1822 :group 'reftex-fontification-configurations
1824 (defcustom reftex-index-section-face 'font-lock-function-name-face
1826 :group 'reftex-fontification-configurations
1828 (defcustom reftex-index-tag-face 'font-lock-keyword-face
1830 :group 'reftex-fontification-configurations
1832 (defcustom reftex-index-face 'font-lock-constant-face
1834 :group 'reftex-fontification-configurations
1837 (defcustom reftex-pre-refontification-functions nil
1841 :group 'reftex-fontification-configurations
1846 (defgroup reftex-miscellaneous-configurations nil
1848 :group 'reftex)
1850 (defcustom reftex-extra-bindings nil
1853 :group 'reftex-miscellaneous-configurations
1856 (defcustom reftex-plug-into-AUCTeX nil
1869 \\<LaTeX-mode-map>Supplying labels in new sections and environments applies when creating
1876 :group 'reftex-miscellaneous-configurations
1891 (defcustom reftex-allow-detached-macro-args nil
1895 :group 'reftex-miscellaneous-configurations
1899 (defcustom reftex-load-hook nil
1900 "Hook which is being run when loading reftex.el."
1901 :group 'reftex-miscellaneous-configurations
1904 (defcustom reftex-mode-hook nil
1905 "Hook which is being run when turning on RefTeX mode."
1906 :group 'reftex-miscellaneous-configurations
1910 (provide 'reftex-vars)
1913 ;;; reftex-vars.el ends here