yatex

changeset 554:a6c72ad6445a dev

Add \ruby{}{} completion with okumacro package
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 07 Nov 2018 09:03:15 +0900
parents ae0b9fe6372a
children d3d69b669ef0
files yatex.el yatexadd.el yatexpkg.el
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/yatex.el	Mon Oct 22 11:49:20 2018 +0900
     1.2 +++ b/yatex.el	Wed Nov 07 09:03:15 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 Mon Oct 22 11:43:30 2018 on firestorm
     1.7 +;;; Last modified Wed Nov  7 08:56:44 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.4"
    1.16 +(defconst YaTeX-revision-number "1.80.5"
    1.17    "Revision number of running yatex.el")
    1.18  
    1.19  ;---------- Local variables ----------
    1.20 @@ -325,6 +325,7 @@
    1.21       ("cref") ("crefrange") ("cpageref") ("labelcref") ("labelcpageref")
    1.22       ("frametitle") ("framesubtitle") 				;; beamer
    1.23       ("subfigure")						;; subfigure
    1.24 +     ("ruby" 2) ("kenten")					;; okumacro
    1.25       )
    1.26     (if YaTeX-use-LaTeX2e
    1.27         '(("documentclass") ("usepackage")
     2.1 --- a/yatexadd.el	Mon Oct 22 11:49:20 2018 +0900
     2.2 +++ b/yatexadd.el	Wed Nov 07 09:03:15 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 Mon Oct 22 11:46:32 2018 on firestorm
     2.7 +;;; Last modified Wed Nov  7 09:01:08 2018 on firestorm
     2.8  ;;; $Id$
     2.9  
    2.10  ;;; Code:
    2.11 @@ -2142,6 +2142,11 @@
    2.12    (setq YaTeX-section-name "includegraphics")
    2.13    nil)
    2.14  
    2.15 +;; for okumacro
    2.16 +(defun YaTeX::ruby (argp)
    2.17 +  (cond
    2.18 +   ((= argp 1) (YaTeX-read-string-or-skip "Kanji: ")) 
    2.19 +   ((= argp 2) (YaTeX-read-string-or-skip "Yomi: "))))
    2.20  
    2.21  (defvar YaTeX::usepackage-alist-default
    2.22    '(("version") ("plext") ("url") ("fancybox") ("pifont") ("longtable")
    2.23 @@ -2150,7 +2155,7 @@
    2.24      ("a4j") ("array") ("epsf") ("color") ("xcolor") ("epsfig") ("floatfig")
    2.25      ("landscape") ("path") ("supertabular") ("twocolumn")
    2.26      ("latexsym") ("times") ("makeidx") ("geometry") ("type1cm")
    2.27 -    ("subfigure"))
    2.28 +    ("subfigure") ("okumacro"))
    2.29    "Default completion table for arguments of \\usepackage")
    2.30  
    2.31  (defvar YaTeX::usepackage-alist-private nil
     3.1 --- a/yatexpkg.el	Mon Oct 22 11:49:20 2018 +0900
     3.2 +++ b/yatexpkg.el	Wed Nov 07 09:03:15 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 Mon Oct 22 11:48:49 2018 on firestorm
     3.8 +;;; Last modified Wed Nov  7 08:57:36 2018 on firestorm
     3.9  ;;; $Id$
    3.10  
    3.11  ;;; Code:
    3.12 @@ -58,6 +58,7 @@
    3.13      ("setspace"	(env "spacing") (section "setstretch"))
    3.14      ("cases"	(env "numcases" "subnumcases"))
    3.15      ("subfigure"	(section "subfigure"))
    3.16 +    ("okumacro"	(section "ruby" "kenten"))
    3.17      )
    3.18    "Default package vs. macro list.
    3.19  Alists contains '(PACKAGENAME . MACROLIST)