aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author(tiny change) Arash Esbati2015-09-28 08:30:01 +0200
committerTassilo Horn2015-09-28 08:31:57 +0200
commitd944f728b7190a6d7ad7d4390bad491ffe0e99e5 (patch)
tree3238bccf5c5820765e7df13eaad5d95733e19896
parente55460e53ca9b0e42beb2e5129f4beece2599a95 (diff)
downloademacs-d944f728b7190a6d7ad7d4390bad491ffe0e99e5.tar.gz
emacs-d944f728b7190a6d7ad7d4390bad491ffe0e99e5.zip
Improve wrapfig package support and caption parsing
* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Correct description string and add wraptable environment. (reftex-default-context-regexps): Improve caption regexp. Copyright-paperwork-exempt: yes
-rw-r--r--lisp/textmodes/reftex-vars.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 357a0938e6a..97c8af365e8 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -85,8 +85,9 @@
85 (supertab "Supertabular environment" 85 (supertab "Supertabular environment"
86 (("supertabular" ?t nil nil "\\tablecaption{"))) 86 (("supertabular" ?t nil nil "\\tablecaption{")))
87 87
88 (wrapfig "The wrapfigure environment" 88 (wrapfig "The wrapfig package"
89 (("wrapfigure" ?f nil nil caption))) 89 (("wrapfigure" ?f nil nil caption)
90 ("wraptable" ?t nil nil caption)))
90 91
91 (ctable "The ctable package" 92 (ctable "The ctable package"
92 (("\\ctable[]{}{}{}" ?t "tab:" "~\\ref{%s}" 1 ("table" "Tabelle")))) 93 (("\\ctable[]{}{}{}" ?t "tab:" "~\\ref{%s}" 1 ("table" "Tabelle"))))
@@ -653,7 +654,7 @@ Possible keys are sectioning macro names like `chapter', section levels
653 (string :tag "Prefix")))) 654 (string :tag "Prefix"))))
654 655
655(defcustom reftex-default-context-regexps 656(defcustom reftex-default-context-regexps
656 '((caption . "\\\\\\(rot\\)?caption\\*?[[{]") 657 '((caption . "\\\\\\(rot\\|bi\\)?\\(sub\\)?caption\\(box\\)?\\*?[[{]")
657 (item . "\\\\item\\(\\[[^]]*\\]\\)?") 658 (item . "\\\\item\\(\\[[^]]*\\]\\)?")
658 (eqnarray-like . "\\\\begin{%s}\\|\\\\\\\\") 659 (eqnarray-like . "\\\\begin{%s}\\|\\\\\\\\")
659 (alignat-like . "\\\\begin{%s}{[0-9]*}\\|\\\\\\\\")) 660 (alignat-like . "\\\\begin{%s}{[0-9]*}\\|\\\\\\\\"))