yatex
changeset 551:e7356faf50df dev
Add completion stuff of \subfigure{}.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 22 Oct 2018 11:44:45 +0900 |
parents | d97881f33e28 |
children | c3b9e81bd432 |
files | yatex.el yatexadd.el yatexpkg.el |
diffstat | 3 files changed, 18 insertions(+), 7 deletions(-) [+] |
line diff
1.1 --- a/yatex.el Tue Aug 21 10:49:30 2018 +0900 1.2 +++ b/yatex.el Mon Oct 22 11:44:45 2018 +0900 1.3 @@ -1,6 +1,6 @@ 1.4 ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*- 1.5 ;;; (c)1991-2018 by HIROSE Yuuji.[yuuji@yatex.org] 1.6 -;;; Last modified Sat Jun 2 14:13:17 2018 on firestorm 1.7 +;;; Last modified Mon Oct 22 11:43:30 2018 on firestorm 1.8 ;;; $Id$ 1.9 ;;; The latest version of this software is always available at; 1.10 ;;; https://www.yatex.org/ 1.11 @@ -16,7 +16,7 @@ 1.12 1.13 ;;; Code: 1.14 (require 'yatexlib) 1.15 -(defconst YaTeX-revision-number "1.80.3" 1.16 +(defconst YaTeX-revision-number "1.80.4" 1.17 "Revision number of running yatex.el") 1.18 1.19 ;---------- Local variables ---------- 1.20 @@ -323,8 +323,8 @@ 1.21 ("mathscr") ("mathrsfs") 1.22 ;;cleveref 1.23 ("cref") ("crefrange") ("cpageref") ("labelcref") ("labelcpageref") 1.24 - ;; beamer 1.25 - ("frametitle") ("framesubtitle") 1.26 + ("frametitle") ("framesubtitle") ;; beamer 1.27 + ("subfigure") ;; subfigure 1.28 ) 1.29 (if YaTeX-use-LaTeX2e 1.30 '(("documentclass") ("usepackage")
2.1 --- a/yatexadd.el Tue Aug 21 10:49:30 2018 +0900 2.2 +++ b/yatexadd.el Mon Oct 22 11:44:45 2018 +0900 2.3 @@ -1,6 +1,6 @@ 2.4 ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*- 2.5 ;;; (c)1991-2018 by HIROSE Yuuji.[yuuji@yatex.org] 2.6 -;;; Last modified Wed May 30 13:35:42 2018 on firestorm 2.7 +;;; Last modified Mon Oct 22 11:43:47 2018 on firestorm 2.8 ;;; $Id$ 2.9 2.10 ;;; Code: 2.11 @@ -2133,6 +2133,15 @@ 2.12 (setq YaTeX-section-name "label") 2.13 nil) 2.14 2.15 +(defun YaTeX:subfigure () 2.16 + (let ((subcap (YaTeX-read-string-or-skip "Sub-caption: "))) 2.17 + (if (string= "" subcap) "" 2.18 + (concat "[" subcap "]")))) 2.19 + 2.20 +(defun YaTeX::subfigure () 2.21 + (setq YaTeX-section-name "includegraphics") 2.22 + nil) 2.23 + 2.24 2.25 (defvar YaTeX::usepackage-alist-default 2.26 '(("version") ("plext") ("url") ("fancybox") ("pifont") ("longtable") 2.27 @@ -2140,7 +2149,8 @@ 2.28 ("amsmath") ("amssymb") ("xymtex") ("chemist") 2.29 ("a4j") ("array") ("epsf") ("color") ("xcolor") ("epsfig") ("floatfig") 2.30 ("landscape") ("path") ("supertabular") ("twocolumn") 2.31 - ("latexsym") ("times") ("makeidx") ("geometry") ("type1cm")) 2.32 + ("latexsym") ("times") ("makeidx") ("geometry") ("type1cm") 2.33 + ("subfigure")) 2.34 "Default completion table for arguments of \\usepackage") 2.35 2.36 (defvar YaTeX::usepackage-alist-private nil
3.1 --- a/yatexpkg.el Tue Aug 21 10:49:30 2018 +0900 3.2 +++ b/yatexpkg.el Mon Oct 22 11:44:45 2018 +0900 3.3 @@ -1,7 +1,7 @@ 3.4 ;;; yatexpkg.el --- YaTeX package manager -*- coding: sjis -*- 3.5 ;;; 3.6 ;;; (c)2003-2018 by HIROSE, Yuuji [yuuji@yatex.org] 3.7 -;;; Last modified Fri Jan 5 00:22:46 2018 on firestorm 3.8 +;;; Last modified Mon Oct 22 11:30:45 2018 on firestorm 3.9 ;;; $Id$ 3.10 3.11 ;;; Code: 3.12 @@ -57,6 +57,7 @@ 3.13 ("wrapfig" (env "wrapfigure" "wraptable")) 3.14 ("setspace" (env "spacing") (section "setstretch")) 3.15 ("cases" (env "numcases" "subnumcases")) 3.16 + ("subfigure" (section "subfigure")) 3.17 ) 3.18 "Default package vs. macro list. 3.19 Alists contains '(PACKAGENAME . MACROLIST)