monnier pushed a commit to branch externals/auctex
in repository elpa.
commit e0258478cdb7835ca3664e85b7ad77bd69330a95
Author: Tassilo Horn <[email protected]>
Date: Thu Feb 14 07:24:35 2013 +0000
* style/subfigure.el: Expanded copyright range.
("subfigure"): Collapsed the two regular expressions for
completion. Added lengths, and commands for fonts.
---
ChangeLog | 6 ++++++
style/subfigure.el | 21 +++++++++++++--------
2 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b8239a6..03d0bdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-02-13 Mads Jensen <[email protected]>
+
+ * style/subfigure.el: Expanded copyright range.
+ ("subfigure"): Collapsed the two regular expressions for
+ completion. Added lengths, and commands for fonts.
+
2013-02-14 Tassilo Horn <[email protected]>
* style/fancyhdr.el (TeX-arg-fancyhdr-position): Document the
diff --git a/style/subfigure.el b/style/subfigure.el
index 945f540..b417cc6 100644
--- a/style/subfigure.el
+++ b/style/subfigure.el
@@ -1,6 +1,6 @@
;;; subfigure.el --- AUCTeX style file for subfigure.sty
-;; Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+;; Copyright (C) 2003, 2005, 2013 Free Software Foundation, Inc.
;; Author: Reiner Steib <[email protected]>
;; Maintainer: [email protected]
@@ -25,7 +25,7 @@
;;; Commentary:
-;; AUCTeX style file for subfigure.sty
+;; AUCTeX style file for `subfigure.sty'
;;; Code:
@@ -33,18 +33,23 @@
"subfigure"
(lambda ()
(TeX-add-symbols
- '("subfigure" [ "list entry" ] [ "sub caption" ] "figure")
- '("subtable" [ "list entry" ] [ "sub caption" ] "figure")
+ '("subfigure" [ "List entry" ] [ "Sub caption" ] "Figure")
+ '("subtable" [ "List entry" ] [ "Sub caption" ] "Figure")
'("Subref" TeX-arg-label)
- '("subref" TeX-arg-label))
- ;; TODO: add \subfig* lengths
+ '("subref" TeX-arg-label)
+ '("subcapsize" 0)
+ '("subcapfont" 0)
+ '("subcaplabelfont" 0)
+
+ (LaTeX-add-lengths "subfigtopskip" "subfigcapskip" "subfigcaptopadj"
+ "subfigbottomskip" "subfigcapmargin" "subfiglabelskip")
;; Install completion for labels:
(setq TeX-complete-list
(append
- '(("\\\\subref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")
- ("\\\\Subref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}"))
+ '(("\\\\[Ss]ubref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")))
TeX-complete-list))
+
;; Fontification
(when (and (featurep 'font-latex)
(eq TeX-install-font-lock 'font-latex-setup))