# HG changeset patch
# User HIROSE, Yuuji <55195691+hiroseyuuji@users.noreply.github.com>
# Date 1740394785 -32400
# Node ID cdc2fd370342ef0760efe54ae4e77d5a7afcec5a
# Parent dd4ed4c255c78d59c66a399eadaa0e99487e27f3# Parent d58c4f69369b0b8d8a3d2611a1640a41e4f6c43e
Merge pull request #1 from hiroseyuuji/devel
1.84
diff -r dd4ed4c255c7 -r cdc2fd370342 .hgtags
--- a/.hgtags Sun Dec 25 14:24:43 2022 +0900
+++ b/.hgtags Mon Feb 24 19:59:45 2025 +0900
@@ -23,3 +23,4 @@
fbb636ff0fe3fd784af7697db5805a20d33b04d2 yatex-1.81
4dad5f91b26cb44a8caa888fe8aa0aad1f1f10bb yatex-1.82
157aa7974191bbb4707d26b05ce830282ad70ef5 yatex-1.83
+b00018b5a0b487be347d1abf944f8ae165c5a50b yatex-1.84
diff -r dd4ed4c255c7 -r cdc2fd370342 yahtml.el
--- a/yahtml.el Sun Dec 25 14:24:43 2022 +0900
+++ b/yahtml.el Mon Feb 24 19:59:45 2025 +0900
@@ -1,8 +1,8 @@
;;; yahtml.el --- Yet Another HTML mode -*- coding: sjis -*-
-;;; (c) 1994-2022 by HIROSE Yuuji [yuuji(@)yatex.org]
+;;; (c) 1994-2025 by HIROSE Yuuji [yuuji(@)yatex.org]
;;; $Id$
-(defconst yahtml-revision-number "1.83"
+(defconst yahtml-revision-number "1.84"
"Revision number of running yahtml.el")
;;; Commentary:
@@ -298,13 +298,14 @@
(if (eq system-type 'ms-dos) "/c" "-c")))
(defvar yahtml-use-highlighting (or yahtml-use-font-lock yahtml-use-hilit19))
-(defun yahtml-define-begend-key-normal (key env &optional map)
+(defun yahtml-define-begend-key-normal (key env &optional map func)
"Define short cut yahtml-insert-begend key."
- (YaTeX-define-key
- key
- (list 'lambda '(arg) '(interactive "P")
- (list 'yahtml-insert-begend 'arg env))
- map))
+ (let ((func (or func 'yahtml-insert-begend)))
+ (YaTeX-define-key
+ key
+ (list 'lambda '(arg) '(interactive "P")
+ (list func 'arg env))
+ map)))
(defun yahtml-define-begend-region-key (key env &optional map)
"Define short cut yahtml-insert-begend-region key."
@@ -312,13 +313,24 @@
(list 'yahtml-insert-begend t env)) map))
(defun yahtml-define-begend-key (key env &optional map)
- "Define short cut key for begin type completion both for
-normal and region mode. To customize yahtml, user should use this function."
+ "Define short cut key for begin type completion.
+Both for normal and region mode.
+To customize yahtml, user should use this function."
(yahtml-define-begend-key-normal key env map)
(if YaTeX-inhibit-prefix-letter nil
(yahtml-define-begend-region-key
(concat (upcase (substring key 0 1)) (substring key 1)) env map)))
+(defun yahtml-define-instag-key (key tag &optional map)
+ "Define short cut key for inline-tag type completion.
+Both for normal and region mode.
+To customize yahtml, user should use this function."
+ (yahtml-define-begend-key-normal key tag map 'yahtml-insert-tag)
+ (if YaTeX-inhibit-prefix-letter nil
+ (yahtml-define-begend-region-key
+ (concat (upcase (substring key 0 1)) (substring key 1)) env map
+ 'yahtml-insert-tag)))
+
(if yahtml-mode-map nil
(setq yahtml-mode-map (make-sparse-keymap)
yahtml-prefix-map (make-sparse-keymap))
@@ -356,23 +368,23 @@
(YaTeX-define-key "b" 'yahtml-insert-begend map))
(yahtml-define-begend-key "bh" "html" map)
(yahtml-define-begend-key "bH" "head" map)
- (yahtml-define-begend-key "bt" "title" map)
+ (yahtml-define-instag-key "bt" "title" map)
(yahtml-define-begend-key "bT" "table" map)
(yahtml-define-begend-key "bb" "body" map)
- (yahtml-define-begend-key "bc" "center" map)
+ (yahtml-define-instag-key "bc" "code" map)
(yahtml-define-begend-key "bd" "dl" map)
(yahtml-define-begend-key "bD" "div" map)
(yahtml-define-begend-key "bu" "ul" map)
(yahtml-define-begend-key "bo" "ol" map)
- (yahtml-define-begend-key "b1" "h1" map)
- (yahtml-define-begend-key "b2" "h2" map)
- (yahtml-define-begend-key "b3" "h3" map)
- (yahtml-define-begend-key "ba" "a" map)
+ (yahtml-define-instag-key "b1" "h1" map)
+ (yahtml-define-instag-key "b2" "h2" map)
+ (yahtml-define-instag-key "b3" "h3" map)
+ (yahtml-define-instag-key "ba" "a" map)
(yahtml-define-begend-key "bf" "form" map)
- (yahtml-define-begend-key "bl" "label" map)
+ (yahtml-define-instag-key "bl" "label" map)
(yahtml-define-begend-key "bs" "select" map)
(yahtml-define-begend-key "bv" "div" map)
- (yahtml-define-begend-key "bS" "span" map)
+ (yahtml-define-instag-key "bS" "span" map)
(yahtml-define-begend-key "bp" "pre" map)
(yahtml-define-begend-key "bq" "blockquote" map)
(YaTeX-define-key "b " 'yahtml-insert-begend map)
@@ -447,6 +459,7 @@
;;HTML5
("video") ("audio") ("figure") ("iframe")
("header") ("footer") ("article") ("section") ("nav") ("main") ("aside")
+ ("meter") ("progress") ("details") ("summary")
))
(if yahtml-html4-strict
@@ -1727,6 +1740,26 @@
(defun yahtml::article ()
(setq yahtml-last-typeface-cmd "h1" yahtml-last-begend "h1"))
+(defun yahtml:meter ()
+ (concat
+ (yahtml-make-optional-argument
+ "min" (yahtml-read-parameter "min"))
+ (yahtml-make-optional-argument
+ "max" (yahtml-read-parameter "max"))
+ (yahtml-make-optional-argument
+ "low" (yahtml-read-parameter "low"))
+ (yahtml-make-optional-argument
+ "high" (yahtml-read-parameter "high"))
+ (yahtml-make-optional-argument
+ "value" (yahtml-read-parameter "value"))))
+
+(defun yahtml:progress ()
+ (concat
+ (yahtml-make-optional-argument
+ "max" (yahtml-read-parameter "max"))
+ (yahtml-make-optional-argument
+ "value" (yahtml-read-parameter "value"))))
+
;;; ---------- Simple tag ----------
(defun yahtml-insert-tag (region-mode &optional tag)
"Insert
に変更
+ details, summary要素補完を追加
1.83 == yatex ==
Evince-dbus連携見直し(Thanks to TeX Wiki)。
latex-message-kanji-code 0 でプロセスコード 'undicided にしてみた。
LuaTeX等で直接PDFが出されたときにはdvipdfmx省略。
uplatex関連のものなどをいくつか追加。
- ;di で \displaystyle 補完。
+ ;ds で \displaystyle 補完。
Dbusでのevince-reverse-search実験実装。
アドイン追加: wraptable, spacing, tablecolor
補完追加: fleqn
diff -r dd4ed4c255c7 -r cdc2fd370342 yatexadd.el
--- a/yatexadd.el Sun Dec 25 14:24:43 2022 +0900
+++ b/yatexadd.el Mon Feb 24 19:59:45 2025 +0900
@@ -1,6 +1,6 @@
;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*-
;;; (c)1991-2022 by HIROSE Yuuji.[yuuji@yatex.org]
-;;; Last modified Fri Dec 2 08:40:27 2022 on firestorm
+;;; Last modified Sun Nov 24 21:01:58 2024 on firestorm
;;; $Id$
;;; Code:
@@ -2348,6 +2348,28 @@
(if (string< "" opt)
(concat "[" opt "]"))))
+;;; -------------------- moreverb stuff --------------------
+;;; http://xyoshiki.web.fc2.com/tex/moreverb.html
+(defun YaTeX:verbatimtab ()
+ (let ((width (YaTeX-read-string-or-skip "Tab width: ")))
+ (if (string< "" width)
+ (concat "[" width "]"))))
+(fset 'YaTeX:verbatimtabinput 'YaTeX:verbatimtab)
+(defun YaTeX::verbatimtabinput (argp)
+ (cond
+ ((= argp 1)
+ (YaTeX::include 1))))
+(defun YaTeX:listinginput()
+ (let ((interval (YaTeX-read-string-or-skip "Listing internavl: ")))
+ (if (string< "" interval)
+ (concat "[" interval "]"))))
+(defun YaTeX::listinginput (argp)
+ (cond
+ ((= argp 1)
+ (let ((int (YaTeX-read-string-or-skip "Start Line: " "1")))
+ (if (string< "" int) int "1")))
+ ((= argp 2) (YaTeX::verbatimtabinput 1))))
+
;;; -------------------- math-mode stuff --------------------
(defun YaTeX::tilde (&optional pos)
"For accent macros in mathmode"
diff -r dd4ed4c255c7 -r cdc2fd370342 yatexpkg.el
--- a/yatexpkg.el Sun Dec 25 14:24:43 2022 +0900
+++ b/yatexpkg.el Mon Feb 24 19:59:45 2025 +0900
@@ -1,7 +1,7 @@
;;; yatexpkg.el --- YaTeX package manager -*- coding: sjis -*-
;;;
;;; (c)2003-2022 by HIROSE, Yuuji [yuuji@yatex.org]
-;;; Last modified Fri Dec 2 08:22:41 2022 on firestorm
+;;; Last modified Sun Nov 24 20:43:19 2024 on firestorm
;;; $Id$
;;; Code:
@@ -28,6 +28,8 @@
("alltt" (env "alltt"))
("misc" (section "verbfile" "listing"))
("verbatim" (section "verbatiminput"))
+ ("moreverb" (env "verbatimtab" "listing" "listingcont")
+ (section "verbattabiminput" "listinginput"))
("boites" (env "breakbox"))
;;("eclbkbox" (env "breakbox"))
("supertabular" (env "supertabular"))
@@ -82,6 +84,8 @@
("booktab" (section "toprule" "midrule" "bottomrule" "cmidrule"
"addlinespace" "specialrule"))
("pxbase" (section "UI"))
+ ("hyperref" (section "hyperref" "url" "nolinkurl" "href" "hyperref")
+ (option "dvipdfmx" "luatex" "xetex" "hidelinks"))
)
"Default package vs. macro list.
Alists contains '(PACKAGENAME . MACROLIST)