yatex

changeset 615:f039d15cdba8 dev

Add moreverb.sty
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 24 Nov 2024 21:04:11 +0900
parents 37ed1980e6bd
children 5f6698326eea
files yatex.el yatexadd.el yatexpkg.el
diffstat 3 files changed, 32 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/yatex.el	Sun Nov 24 21:04:01 2024 +0900
     1.2 +++ b/yatex.el	Sun Nov 24 21:04:11 2024 +0900
     1.3 @@ -1,6 +1,6 @@
     1.4  ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*-
     1.5  ;;; (c)1991-2022 by HIROSE Yuuji.[yuuji@yatex.org]
     1.6 -;;; Last modified Sun Dec 25 13:57:49 2022 on firestorm
     1.7 +;;; Last modified Sun Nov 24 20:47:36 2024 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 @@ -351,6 +351,7 @@
    1.12  	 ("bm")				;deined in bm
    1.13  	 ("verbfile") ("listing")	;defined in misc
    1.14  	 ("slashbox" 2) ("backslashbox" 2) ;defined in slashbox
    1.15 +	 ("verbatimtabinput") ("listinginput" 2)
    1.16  	 ))
    1.17     (if YaTeX-use-AMS-LaTeX
    1.18         '(("DeclareMathOperator" 2) ("boldsymbol") ("pmb") ("eqref")
    1.19 @@ -412,6 +413,8 @@
    1.20         '(("comment")			;defined in version
    1.21  	 ("longtable")			;defined in longtable
    1.22  	 ("screen") ("boxnote") ("shadebox") ;; ("itembox") ;in ascmac
    1.23 +	 ("verbatimtab") ("listing") ("listingcont") ("verbatimwrite")
    1.24 +	 ("boxedverbatim")
    1.25  	 ("alltt")			;defined in alltt
    1.26  	 ("multicols")			;defined in multicol
    1.27  	 ("breakbox")))			;defined in eclbkbox
     2.1 --- a/yatexadd.el	Sun Nov 24 21:04:01 2024 +0900
     2.2 +++ b/yatexadd.el	Sun Nov 24 21:04:11 2024 +0900
     2.3 @@ -1,6 +1,6 @@
     2.4  ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*-
     2.5  ;;; (c)1991-2022 by HIROSE Yuuji.[yuuji@yatex.org]
     2.6 -;;; Last modified Fri Dec  2 08:40:27 2022 on firestorm
     2.7 +;;; Last modified Sun Nov 24 21:01:58 2024 on firestorm
     2.8  ;;; $Id$
     2.9  
    2.10  ;;; Code:
    2.11 @@ -2348,6 +2348,28 @@
    2.12      (if (string< "" opt)
    2.13  	(concat "[" opt "]"))))
    2.14  
    2.15 +;;; -------------------- moreverb stuff --------------------
    2.16 +;;; http://xyoshiki.web.fc2.com/tex/moreverb.html
    2.17 +(defun YaTeX:verbatimtab ()
    2.18 +  (let ((width (YaTeX-read-string-or-skip "Tab width: ")))
    2.19 +    (if (string< "" width)
    2.20 +	(concat "[" width "]"))))
    2.21 +(fset 'YaTeX:verbatimtabinput 'YaTeX:verbatimtab)
    2.22 +(defun YaTeX::verbatimtabinput (argp)
    2.23 +  (cond
    2.24 +   ((= argp 1)
    2.25 +    (YaTeX::include 1))))
    2.26 +(defun YaTeX:listinginput()
    2.27 +  (let ((interval (YaTeX-read-string-or-skip "Listing internavl: ")))
    2.28 +    (if (string< "" interval)
    2.29 +	(concat "[" interval "]"))))
    2.30 +(defun YaTeX::listinginput (argp)
    2.31 +  (cond
    2.32 +   ((= argp 1)
    2.33 +    (let ((int (YaTeX-read-string-or-skip "Start Line: " "1")))
    2.34 +      (if (string< "" int) int "1")))
    2.35 +   ((= argp 2) (YaTeX::verbatimtabinput 1))))
    2.36 +
    2.37  ;;; -------------------- math-mode stuff --------------------
    2.38  (defun YaTeX::tilde (&optional pos)
    2.39    "For accent macros in mathmode"
     3.1 --- a/yatexpkg.el	Sun Nov 24 21:04:01 2024 +0900
     3.2 +++ b/yatexpkg.el	Sun Nov 24 21:04:11 2024 +0900
     3.3 @@ -1,7 +1,7 @@
     3.4  ;;; yatexpkg.el --- YaTeX package manager -*- coding: sjis -*-
     3.5  ;;; 
     3.6  ;;; (c)2003-2022 by HIROSE, Yuuji [yuuji@yatex.org]
     3.7 -;;; Last modified Fri Dec  2 08:22:41 2022 on firestorm
     3.8 +;;; Last modified Sun Nov 24 20:43:19 2024 on firestorm
     3.9  ;;; $Id$
    3.10  
    3.11  ;;; Code:
    3.12 @@ -28,6 +28,8 @@
    3.13      ("alltt"	(env "alltt"))
    3.14      ("misc"	(section "verbfile" "listing"))
    3.15      ("verbatim"	(section "verbatiminput"))
    3.16 +    ("moreverb"	(env "verbatimtab" "listing" "listingcont")
    3.17 +		(section "verbattabiminput" "listinginput"))
    3.18      ("boites"	(env "breakbox"))
    3.19      ;;("eclbkbox"	(env "breakbox"))
    3.20      ("supertabular" (env "supertabular"))
    3.21 @@ -82,6 +84,8 @@
    3.22      ("booktab"	(section "toprule" "midrule" "bottomrule" "cmidrule"
    3.23  			 "addlinespace" "specialrule"))
    3.24      ("pxbase"	(section "UI"))
    3.25 +    ("hyperref"	(section "hyperref" "url" "nolinkurl" "href" "hyperref")
    3.26 +		(option "dvipdfmx" "luatex" "xetex" "hidelinks"))
    3.27      )
    3.28    "Default package vs. macro list.
    3.29  Alists contains '(PACKAGENAME . MACROLIST)