# HG changeset patch # User HIROSE Yuuji # Date 1732449851 -32400 # Node ID f039d15cdba834d6550fcf9fc7585b172e3b8200 # Parent 37ed1980e6bd81cd44de75f60b6b3a90d21d9f9b Add moreverb.sty diff -r 37ed1980e6bd -r f039d15cdba8 yatex.el --- a/yatex.el Sun Nov 24 21:04:01 2024 +0900 +++ b/yatex.el Sun Nov 24 21:04:11 2024 +0900 @@ -1,6 +1,6 @@ ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*- ;;; (c)1991-2022 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Sun Dec 25 13:57:49 2022 on firestorm +;;; Last modified Sun Nov 24 20:47:36 2024 on firestorm ;;; $Id$ ;;; The latest version of this software is always available at; ;;; https://www.yatex.org/ @@ -351,6 +351,7 @@ ("bm") ;deined in bm ("verbfile") ("listing") ;defined in misc ("slashbox" 2) ("backslashbox" 2) ;defined in slashbox + ("verbatimtabinput") ("listinginput" 2) )) (if YaTeX-use-AMS-LaTeX '(("DeclareMathOperator" 2) ("boldsymbol") ("pmb") ("eqref") @@ -412,6 +413,8 @@ '(("comment") ;defined in version ("longtable") ;defined in longtable ("screen") ("boxnote") ("shadebox") ;; ("itembox") ;in ascmac + ("verbatimtab") ("listing") ("listingcont") ("verbatimwrite") + ("boxedverbatim") ("alltt") ;defined in alltt ("multicols") ;defined in multicol ("breakbox"))) ;defined in eclbkbox diff -r 37ed1980e6bd -r f039d15cdba8 yatexadd.el --- a/yatexadd.el Sun Nov 24 21:04:01 2024 +0900 +++ b/yatexadd.el Sun Nov 24 21:04:11 2024 +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 37ed1980e6bd -r f039d15cdba8 yatexpkg.el --- a/yatexpkg.el Sun Nov 24 21:04:01 2024 +0900 +++ b/yatexpkg.el Sun Nov 24 21:04:11 2024 +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)