yatex

diff yatexadd.el @ 615:f039d15cdba8

Add moreverb.sty
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 24 Nov 2024 21:04:11 +0900
parents 38a414d755c1
children aa395d5e3bf8
line diff
     1.1 --- a/yatexadd.el	Fri Dec 02 08:42:22 2022 +0859
     1.2 +++ b/yatexadd.el	Sun Nov 24 21:04:11 2024 +0900
     1.3 @@ -1,6 +1,6 @@
     1.4  ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*-
     1.5  ;;; (c)1991-2022 by HIROSE Yuuji.[yuuji@yatex.org]
     1.6 -;;; Last modified Fri Dec  2 08:40:27 2022 on firestorm
     1.7 +;;; Last modified Sun Nov 24 21:01:58 2024 on firestorm
     1.8  ;;; $Id$
     1.9  
    1.10  ;;; Code:
    1.11 @@ -2348,6 +2348,28 @@
    1.12      (if (string< "" opt)
    1.13  	(concat "[" opt "]"))))
    1.14  
    1.15 +;;; -------------------- moreverb stuff --------------------
    1.16 +;;; http://xyoshiki.web.fc2.com/tex/moreverb.html
    1.17 +(defun YaTeX:verbatimtab ()
    1.18 +  (let ((width (YaTeX-read-string-or-skip "Tab width: ")))
    1.19 +    (if (string< "" width)
    1.20 +	(concat "[" width "]"))))
    1.21 +(fset 'YaTeX:verbatimtabinput 'YaTeX:verbatimtab)
    1.22 +(defun YaTeX::verbatimtabinput (argp)
    1.23 +  (cond
    1.24 +   ((= argp 1)
    1.25 +    (YaTeX::include 1))))
    1.26 +(defun YaTeX:listinginput()
    1.27 +  (let ((interval (YaTeX-read-string-or-skip "Listing internavl: ")))
    1.28 +    (if (string< "" interval)
    1.29 +	(concat "[" interval "]"))))
    1.30 +(defun YaTeX::listinginput (argp)
    1.31 +  (cond
    1.32 +   ((= argp 1)
    1.33 +    (let ((int (YaTeX-read-string-or-skip "Start Line: " "1")))
    1.34 +      (if (string< "" int) int "1")))
    1.35 +   ((= argp 2) (YaTeX::verbatimtabinput 1))))
    1.36 +
    1.37  ;;; -------------------- math-mode stuff --------------------
    1.38  (defun YaTeX::tilde (&optional pos)
    1.39    "For accent macros in mathmode"