yatex

changeset 560:637d152145d7

merged with dev
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 26 Dec 2018 08:11:24 +0900
parents 1ea3d99132fb 3f5ce5a755c4
children 70bb775b481c
files .hgtags
diffstat 7 files changed, 40 insertions(+), 13 deletions(-) [+]
line diff
     1.1 --- a/.hgtags	Tue Jul 31 08:22:31 2018 +0900
     1.2 +++ b/.hgtags	Wed Dec 26 08:11:24 2018 +0900
     1.3 @@ -20,3 +20,4 @@
     1.4  0e37ced833ef9388295be594da9bc91ff6eae037 yatex-1.80
     1.5  a2bb2426a15410438d5e5917ce939bd4bbbe8194 yatex-1.80
     1.6  ca7cf34e959cc35960081f25b0f903b1bd2a191f master-beginning
     1.7 +fbb636ff0fe3fd784af7697db5805a20d33b04d2 yatex-1.81
     2.1 --- a/yahtml.el	Tue Jul 31 08:22:31 2018 +0900
     2.2 +++ b/yahtml.el	Wed Dec 26 08:11:24 2018 +0900
     2.3 @@ -1623,7 +1623,8 @@
     2.4  
     2.5  (defvar yahtml:meta-attrs
     2.6    '(("charset" value)
     2.7 -    ("name" content ("keywords")("author")("copyright")("date")("GENERATOR"))
     2.8 +    ("name" content ("keywords")("author")("copyright")("date")("GENERATOR")
     2.9 +     ("viewport"))
    2.10      ("http-equiv" content)))
    2.11  
    2.12  (defun yahtml:meta ()
    2.13 @@ -1665,6 +1666,9 @@
    2.14  	      (error "Use <meta charset=\"...\" instead..  See docs/qanda.")
    2.15  	    (yahtml-make-optional-argument
    2.16  	     "content" (yahtml-read-parameter "content"))))
    2.17 +	 ((string-match "viewport" name)
    2.18 +	  ;; XXX: Very dirty static string
    2.19 +	  "width=device-width, initial-scale=1")
    2.20  	 (t (read-string-with-history (concat name ": ")))))))
    2.21       (t (yahtml-make-optional-argument
    2.22  	 attr (yahtml-read-parameter attr))))))
     3.1 --- a/yatex.el	Tue Jul 31 08:22:31 2018 +0900
     3.2 +++ b/yatex.el	Wed Dec 26 08:11:24 2018 +0900
     3.3 @@ -1,6 +1,6 @@
     3.4  ;;; yatex.el --- Yet Another tex-mode for emacs //野鳥// -*- coding: sjis -*-
     3.5  ;;; (c)1991-2018 by HIROSE Yuuji.[yuuji@yatex.org]
     3.6 -;;; Last modified Sat Jun  2 14:13:17 2018 on firestorm
     3.7 +;;; Last modified Tue Dec 25 20:03:02 2018 on firestorm
     3.8  ;;; $Id$
     3.9  ;;; The latest version of this software is always available at;
    3.10  ;;; https://www.yatex.org/
    3.11 @@ -16,7 +16,7 @@
    3.12  
    3.13  ;;; Code:
    3.14  (require 'yatexlib)
    3.15 -(defconst YaTeX-revision-number "1.80.3"
    3.16 +(defconst YaTeX-revision-number "1.81.1"
    3.17    "Revision number of running yatex.el")
    3.18  
    3.19  ;---------- Local variables ----------
    3.20 @@ -323,8 +323,9 @@
    3.21       ("mathscr") ("mathrsfs")
    3.22       ;;cleveref
    3.23       ("cref") ("crefrange") ("cpageref") ("labelcref") ("labelcpageref")
    3.24 -     ;; beamer
    3.25 -     ("frametitle") ("framesubtitle")
    3.26 +     ("frametitle") ("framesubtitle") 				;; beamer
    3.27 +     ("subfigure")						;; subfigure
    3.28 +     ("ruby" 2) ("kenten")					;; okumacro
    3.29       )
    3.30     (if YaTeX-use-LaTeX2e
    3.31         '(("documentclass") ("usepackage")
     4.1 --- a/yatex.new	Tue Jul 31 08:22:31 2018 +0900
     4.2 +++ b/yatex.new	Wed Dec 26 08:11:24 2018 +0900
     4.3 @@ -5,6 +5,10 @@
     4.4  	== yatex ==
     4.5  	タイプセットコマンド定義中の %k を漢字コード名に変換(-kanji=%k)
     4.6  	ドット環境で外部フィルタを自動起動する機能を追加。
     4.7 +	graphiz, blockdiagの変換結果も on-the-fly 表示。
     4.8 +	subfigure, bibliographystyle, includesvg補完。
     4.9 +	== yahtml ==
    4.10 +	meta要素で view-port を入れやすく。
    4.11  
    4.12  1.80	string-to-int除外と同時に emacs-18 をサポート外に。
    4.13  	2-Clause BSDでもOKという風に書いてみた。
     5.1 --- a/yatexadd.el	Tue Jul 31 08:22:31 2018 +0900
     5.2 +++ b/yatexadd.el	Wed Dec 26 08:11:24 2018 +0900
     5.3 @@ -1,6 +1,6 @@
     5.4  ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*-
     5.5  ;;; (c)1991-2018 by HIROSE Yuuji.[yuuji@yatex.org]
     5.6 -;;; Last modified Wed May 30 13:35:42 2018 on firestorm
     5.7 +;;; Last modified Wed Nov  7 09:01:08 2018 on firestorm
     5.8  ;;; $Id$
     5.9  
    5.10  ;;; Code:
    5.11 @@ -2133,6 +2133,20 @@
    5.12    (setq YaTeX-section-name "label")
    5.13    nil)
    5.14  
    5.15 +(defun YaTeX:subfigure ()
    5.16 +  (let ((subcap (YaTeX-read-string-or-skip "Sub-caption: ")))
    5.17 +    (if (string= "" subcap) ""
    5.18 +      (concat "[" subcap "]"))))
    5.19 +
    5.20 +(defun YaTeX::subfigure (argp)
    5.21 +  (setq YaTeX-section-name "includegraphics")
    5.22 +  nil)
    5.23 +
    5.24 +;; for okumacro
    5.25 +(defun YaTeX::ruby (argp)
    5.26 +  (cond
    5.27 +   ((= argp 1) (YaTeX-read-string-or-skip "Kanji: ")) 
    5.28 +   ((= argp 2) (YaTeX-read-string-or-skip "Yomi: "))))
    5.29  
    5.30  (defvar YaTeX::usepackage-alist-default
    5.31    '(("version") ("plext") ("url") ("fancybox") ("pifont") ("longtable")
    5.32 @@ -2140,7 +2154,8 @@
    5.33      ("amsmath") ("amssymb") ("xymtex") ("chemist")
    5.34      ("a4j") ("array") ("epsf") ("color") ("xcolor") ("epsfig") ("floatfig")
    5.35      ("landscape") ("path") ("supertabular") ("twocolumn")
    5.36 -    ("latexsym") ("times") ("makeidx") ("geometry") ("type1cm"))
    5.37 +    ("latexsym") ("times") ("makeidx") ("geometry") ("type1cm")
    5.38 +    ("subfigure") ("okumacro"))
    5.39    "Default completion table for arguments of \\usepackage")
    5.40  
    5.41  (defvar YaTeX::usepackage-alist-private nil
     6.1 --- a/yatexmth.el	Tue Jul 31 08:22:31 2018 +0900
     6.2 +++ b/yatexmth.el	Wed Dec 26 08:11:24 2018 +0900
     6.3 @@ -1,7 +1,7 @@
     6.4  ;;; yatexmth.el --- YaTeX math-mode-specific functions -*- coding: sjis -*-
     6.5  ;;; 
     6.6 -;;; (c)1993-2017 by HIROSE Yuuji [yuuji@yatex.org]
     6.7 -;;; Last modified Sat Feb 24 16:40:22 2018 on firestorm
     6.8 +;;; (c)1993-2018 by HIROSE Yuuji [yuuji@yatex.org]
     6.9 +;;; Last modified Tue Dec 25 20:02:12 2018 on firestorm
    6.10  ;;; $Id$
    6.11  
    6.12  ;;; Commentary:
    6.13 @@ -1014,7 +1014,7 @@
    6.14         (t
    6.15  	(delete-region (- (point) length) (- (point) paren-length))
    6.16  	(backward-char paren-length)))
    6.17 -      (insert-string newsize)
    6.18 +      (insert newsize)
    6.19        (if big-p (insert ?l))
    6.20        (unwind-protect
    6.21  	  (progn
    6.22 @@ -1029,7 +1029,7 @@
    6.23  	     (t
    6.24  	      (delete-region (- (point) length) (- (point) paren-length))
    6.25  	      (backward-char paren-length)
    6.26 -	      (insert-string newsize)
    6.27 +	      (insert newsize)
    6.28  	      (if big-p (insert ?r))
    6.29  	      (forward-char paren-length)))
    6.30  	    (if (string= lr "l") (backward-list)))
     7.1 --- a/yatexpkg.el	Tue Jul 31 08:22:31 2018 +0900
     7.2 +++ b/yatexpkg.el	Wed Dec 26 08:11:24 2018 +0900
     7.3 @@ -1,7 +1,7 @@
     7.4  ;;; yatexpkg.el --- YaTeX package manager -*- coding: sjis -*-
     7.5  ;;; 
     7.6  ;;; (c)2003-2018 by HIROSE, Yuuji [yuuji@yatex.org]
     7.7 -;;; Last modified Fri Jan  5 00:22:46 2018 on firestorm
     7.8 +;;; Last modified Wed Nov  7 08:57:36 2018 on firestorm
     7.9  ;;; $Id$
    7.10  
    7.11  ;;; Code:
    7.12 @@ -57,6 +57,8 @@
    7.13      ("wrapfig"	(env "wrapfigure" "wraptable"))
    7.14      ("setspace"	(env "spacing") (section "setstretch"))
    7.15      ("cases"	(env "numcases" "subnumcases"))
    7.16 +    ("subfigure"	(section "subfigure"))
    7.17 +    ("okumacro"	(section "ruby" "kenten"))
    7.18      )
    7.19    "Default package vs. macro list.
    7.20  Alists contains '(PACKAGENAME . MACROLIST)
    7.21 @@ -75,7 +77,7 @@
    7.22      ("xdvi") ("dvipdfmx") ("pdftex") ("dvipsone") ("dviwindo")
    7.23      ("emtex") ("dviwin") ("oztex") ("textures") ("pctexps") ("pctexwin")
    7.24      ("pctexhp") ("pctex32") ("truetex") ("tcidvi") ("vtex"))
    7.25 -  "Drivers alist of graphics/color stylefile's supporting deveces.
    7.26 +  "Drivers alist of graphics/color stylefile's supporting devices.
    7.27  This list is taken from
    7.28  %% graphics.dtx Copyright (C) 1994      David Carlisle Sebastian Rahtz
    7.29  %%              Copyright (C) 1995 1996 1997 1998 David Carlisle