yatex
diff yatexpkg.el @ 582:f4c2dca86202
Add "mcfamily" and "gtfamily"
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sat, 08 Feb 2020 18:31:52 +0900 |
parents | 6c09561c22f0 |
children | e3b7e199a87d |
line diff
1.1 --- a/yatexpkg.el Thu Jan 24 15:16:07 2019 +0900 1.2 +++ b/yatexpkg.el Sat Feb 08 18:31:52 2020 +0900 1.3 @@ -1,7 +1,7 @@ 1.4 ;;; yatexpkg.el --- YaTeX package manager -*- coding: sjis -*- 1.5 ;;; 1.6 -;;; (c)2003-2018 by HIROSE, Yuuji [yuuji@yatex.org] 1.7 -;;; Last modified Thu Jan 24 14:13:01 2019 on firestorm 1.8 +;;; (c)2003-2019 by HIROSE, Yuuji [yuuji@yatex.org] 1.9 +;;; Last modified Sat May 25 14:46:27 2019 on firestorm 1.10 ;;; $Id$ 1.11 1.12 ;;; Code: 1.13 @@ -30,6 +30,7 @@ 1.14 ("verbatim" (section "verbatiminput")) 1.15 ("eclbkbox" (env "breakbox")) 1.16 ("supertabular" (env "supertabular")) 1.17 + ("tabularx" (env "tabularx")) 1.18 ("amsmath" (env . YaTeX-package-ams-envs) 1.19 (section "tag" "tag*")) 1.20 ("amsart" (same-as . "amsmath")) 1.21 @@ -155,7 +156,7 @@ 1.22 (pkglist (YaTeX-package-lookup macro type)) 1.23 (usepkgrx (concat 1.24 YaTeX-ec-regexp 1.25 - "\\(usepackage\\|include\\)\\b")) 1.26 + "\\(usepackage\\|include\\|documentclass\\)\\b")) 1.27 (register (function 1.28 (lambda () (set-buffer cb) 1.29 (set (make-local-variable 'YaTeX-package-resolved-list) 1.30 @@ -174,10 +175,8 @@ 1.31 (goto-char (point-min)) 1.32 (YaTeX-search-active-forward ;if search fails, goto eob 1.33 begdoc YaTeX-comment-prefix nil 1) 1.34 - (while ;(YaTeX-re-search-active-backward 1.35 - ;usepkgrx YaTeX-comment-prefix nil t) 1.36 - ;;allow commented out \usepackages 2004/3/16 1.37 - (re-search-backward usepkgrx nil t) 1.38 + (while (re-search-backward usepkgrx nil t) 1.39 + ;;allow commented out \usepackages 1.40 (setq mb0 (match-beginning 0)) 1.41 (skip-chars-forward "^{") 1.42 (setq uspkgargs (YaTeX-buffer-substring