comparison yatexadd.el @ 587:c6a26b422d30 draft

Add-in for wraptable added
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 21 Sep 2022 21:34:29 +0900
parents 907de32064c9
children e3b7e199a87d
comparison
equal deleted inserted replaced
586:91a6b97d01fa 587:c6a26b422d30
1 ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*- 1 ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*-
2 ;;; (c)1991-2019 by HIROSE Yuuji.[yuuji@yatex.org] 2 ;;; (c)1991-2019 by HIROSE Yuuji.[yuuji@yatex.org]
3 ;;; Last modified Sat Dec 4 07:11:07 2021 on firestorm 3 ;;; Last modified Wed Sep 21 21:22:37 2022 on firestorm
4 ;;; $Id$ 4 ;;; $Id$
5 5
6 ;;; Code: 6 ;;; Code:
7 ;;; 7 ;;;
8 ;;Sample functions for LaTeX environment. 8 ;;Sample functions for LaTeX environment.
191 (defun YaTeX:multicols () 191 (defun YaTeX:multicols ()
192 (concat "{" (read-string-with-history "Number of columns: ") "}")) 192 (concat "{" (read-string-with-history "Number of columns: ") "}"))
193 193
194 194
195 ;; wrapfig.sty 195 ;; wrapfig.sty
196 (defun YaTeX:wrapfigure () 196 (defun YaTeX:wrapfigure (&optional kind)
197 (YaTeX-help "wrapfigure") 197 (setq kind (or kind "figure"))
198 (concat 198 (YaTeX-help (concat "wrap" kind))
199 (let ((lines (YaTeX-read-string-or-skip "Wrap Lines(Optional): "))) 199 (prog1
200 (if (string< "" lines) 200 (concat
201 (concat "[" lines "]"))) 201 (let ((lines (YaTeX-read-string-or-skip "Wrap Lines(Optional): ")))
202 "{" (YaTeX:read-oneof "rlioRLIO" t) "}" 202 (if (string< "" lines)
203 "{" (YaTeX:read-length "Image width: ") "}")) 203 (concat "[" lines "]")))
204 204 "{" (YaTeX:read-oneof "rlioRLIO" t) "}"
205 "{" (YaTeX:read-length (concat (capitalize kind) " width: ")) "}")
206 (setq YaTeX-section-name "includegraphics")))
207
208 (defun YaTeX:wraptable ()
209 (prog1
210 (YaTeX:wrapfigure "table")
211 (setq YaTeX-env-name "tabular")))
205 212
206 ;;; 213 ;;;
207 ;;Sample functions for section-type command. 214 ;;Sample functions for section-type command.
208 ;;; 215 ;;;
209 (defun YaTeX:multiput () 216 (defun YaTeX:multiput ()

yatex.org