[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] [PATCH] Small patch against reftex-vars.el
From: |
Arash Esbati |
Subject: |
[AUCTeX-devel] [PATCH] Small patch against reftex-vars.el |
Date: |
Sat, 26 Sep 2015 16:04:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 |
Hi all,
I have a small patch against reftex-vars.el. The first part corrects
the wrapfig description-string and adds wraptable to
`reftex-label-alist-builtin'. The second part extends the
caption-regexp in `reftex-default-context-regexps'.
I have not signed the FSF papers for Emacs, I hope we consider this
change trivial enough so I don't have to go through that procedure. I'm
also not familiar with Emacs contributions, if I can prepare a better
patch, please give me hint.
--8<---------------cut here---------------start------------->8---
--- reftex-vars.el~ 2015-09-26 00:25:33.982178200 +0200
+++ reftex-vars.el 2015-09-26 15:20:49.954255800 +0200
@@ -85,8 +85,9 @@
(supertab "Supertabular environment"
(("supertabular" ?t nil nil "\\tablecaption{")))
- (wrapfig "The wrapfigure environment"
- (("wrapfigure" ?f nil nil caption)))
+ (wrapfig "The wrapfig package"
+ (("wrapfigure" ?f nil nil caption)
+ ("wraptable" ?t nil nil caption)))
(ctable "The ctable package"
(("\\ctable[]{}{}{}" ?t "tab:" "~\\ref{%s}" 1 ("table" "Tabelle"))))
@@ -653,7 +654,7 @@
(string :tag "Prefix"))))
(defcustom reftex-default-context-regexps
- '((caption . "\\\\\\(rot\\)?caption\\*?[[{]")
+ '((caption . "\\\\\\(rot\\|bi\\)?\\(sub\\)?caption\\(box\\)?\\*?[[{]")
(item . "\\\\item\\(\\[[^]]*\\]\\)?")
(eqnarray-like . "\\\\begin{%s}\\|\\\\\\\\")
(alignat-like . "\\\\begin{%s}{[0-9]*}\\|\\\\\\\\"))
--8<---------------cut here---------------end--------------->8---
Best, Arash
- [AUCTeX-devel] [PATCH] Small patch against reftex-vars.el,
Arash Esbati <=