Mercurial > hgrepos > hgweb.cgi > yatex
annotate yatexpkg.el @ 510:7a64b7761d6b dev
Add completion set for "\includesvg"
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 03 Jan 2018 23:58:59 +0900 |
parents | c0827f80b18e |
children | 603acc1caec7 |
rev | line source |
---|---|
395 | 1 ;;; yatexpkg.el --- YaTeX package manager -*- coding: sjis -*- |
287 | 2 ;;; |
510
7a64b7761d6b
Add completion set for "\includesvg"
HIROSE Yuuji <yuuji@gentei.org>
parents:
497
diff
changeset
|
3 ;;; (c)2003-2018 by HIROSE, Yuuji [yuuji@yatex.org] |
7a64b7761d6b
Add completion set for "\includesvg"
HIROSE Yuuji <yuuji@gentei.org>
parents:
497
diff
changeset
|
4 ;;; Last modified Wed Jan 3 23:57:28 2018 on firestorm |
366 | 5 ;;; $Id$ |
78 | 6 |
287 | 7 ;;; Code: |
80 | 8 (defvar YaTeX-package-ams-envs |
9 (mapcar 'car YaTeX-ams-env-table)) | |
10 | |
78 | 11 (defvar YaTeX-package-alist-default |
193 | 12 '(("version" (env "comment") ;by tsuchiya<at>pine.kuee.kyoto-u.ac.jp |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
13 (section "includeversion" "excludeversion")) |
78 | 14 |
193 | 15 ("plext" (section "bou")) ;by yas.axis<at>ma.mni.ne.jp |
78 | 16 |
193 | 17 ("url" (section "url")) ;by fujieda<at>jaist.ac.jp |
78 | 18 |
19 ("fancybox" (section "shadowbox" "doublebox" "ovalbox" "Ovalbox")) | |
80 | 20 ("slashbox" (section "slashbox" "backslashbox")) |
78 | 21 ("pifont" (section "ding")) |
22 ("longtable" (env "longtable")) | |
23 ("ascmac" (env "screen" "boxnote" "shadebox" "itembox") | |
24 (maketitle "return" "Return" "yen") | |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
25 (section "keytop") ("mask") ("maskbox")) |
193 | 26 ("bm" (section "bm")) ;by aoyama<at>le.chiba-u.ac.jp |
78 | 27 |
28 ("alltt" (env "alltt")) | |
29 ("misc" (section "verbfile" "listing")) | |
441
564510b9caca
Add verbatim package for verbatiminput macro
HIROSE Yuuji <yuuji@gentei.org>
parents:
418
diff
changeset
|
30 ("verbatim" (section "verbatiminput")) |
80 | 31 ("eclbkbox" (env "breakbox")) |
32 ("supertabular" (env "supertabular")) | |
33 ("amsmath" (env . YaTeX-package-ams-envs) | |
34 (section "tag" "tag*")) | |
134 | 35 ("amssymb" (maketitle "leqq" "geqq" "mathbb" "mathfrak" |
305
53709ee88448
Add \because and \therefore to math-image completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
304
diff
changeset
|
36 "fallingdotseq" "therefore" "because" |
460
1790e0d35156
Capitalized varGREEK with amssymb, added
HIROSE Yuuji <yuuji@gentei.org>
parents:
456
diff
changeset
|
37 "varDelta" "varTheta" "varLambda" "varXi" "varPi" |
1790e0d35156
Capitalized varGREEK with amssymb, added
HIROSE Yuuji <yuuji@gentei.org>
parents:
456
diff
changeset
|
38 "varSigma" "varUpsilon" "varPhi" "varPsi" "varOmega" |
134 | 39 "lll" "ggg")) ;very few. Please tell us! |
456 | 40 ("mathrsfs" (section "mathscr")) |
80 | 41 ("graphicx" (section "includegraphics" |
42 "rotatebox" "scalebox" "resizebox" "reflectbox") | |
43 (option . YaTeX-package-graphics-driver-alist)) | |
510
7a64b7761d6b
Add completion set for "\includesvg"
HIROSE Yuuji <yuuji@gentei.org>
parents:
497
diff
changeset
|
44 ("svg") (section "includesvg") |
80 | 45 ("color" (section "textcolor" "colorbox" "pagecolor" "color") |
303
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
46 (option . YaTeX-package-graphics-driver-alist) |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
47 (default-option . "usenames,dvipsnames")) |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
48 ("xcolor" (same-as . "color")) |
80 | 49 ("ulem" (section "uline" "uuline" "uwave") |
50 (option ("normalem"))) | |
312 | 51 ("multicol" (env "multicols")) |
314
fae84a98372c
("crefrange") ("cpageref") ("labelcref") ("labelcpageref") for cleveref
HIROSE Yuuji <yuuji@gentei.org>
parents:
313
diff
changeset
|
52 ("cref" (section "cleveref")) |
fae84a98372c
("crefrange") ("cpageref") ("labelcref") ("labelcpageref") for cleveref
HIROSE Yuuji <yuuji@gentei.org>
parents:
313
diff
changeset
|
53 ("crefrange" (same-as . "cref")) |
fae84a98372c
("crefrange") ("cpageref") ("labelcref") ("labelcpageref") for cleveref
HIROSE Yuuji <yuuji@gentei.org>
parents:
313
diff
changeset
|
54 ("cpageref" (same-as . "cref")) |
fae84a98372c
("crefrange") ("cpageref") ("labelcref") ("labelcpageref") for cleveref
HIROSE Yuuji <yuuji@gentei.org>
parents:
313
diff
changeset
|
55 ("labelcref" (same-as . "cref")) |
fae84a98372c
("crefrange") ("cpageref") ("labelcref") ("labelcpageref") for cleveref
HIROSE Yuuji <yuuji@gentei.org>
parents:
313
diff
changeset
|
56 ("labelcpageref" (same-as . "cref")) |
346 | 57 ("wrapfig" (env "wrapfigure" "wraptable")) |
418 | 58 ("setspace" (env "spacing") (section "setstretch")) |
449
c2c547e147c7
YaTeX-math-other-env-alist-* for additional math-environments
HIROSE Yuuji <yuuji@gentei.org>
parents:
443
diff
changeset
|
59 ("cases" (env "numcases" "subnumcases")) |
314
fae84a98372c
("crefrange") ("cpageref") ("labelcref") ("labelcpageref") for cleveref
HIROSE Yuuji <yuuji@gentei.org>
parents:
313
diff
changeset
|
60 ) |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
61 "Default package vs. macro list. |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
62 Alists contains '(PACKAGENAME . MACROLIST) |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
63 PACKAGENAME Basename of package(String). |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
64 MACROLIST List of '(TYPE . MACROS) |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
65 TYPE One of 'env, 'section or 'maketitle according to completion-type |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
66 MACROS List of macros |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
67 |
80 | 68 If TYPE is 'option, its cdr is alist of completion candidates for that |
69 package. Its cdr can be a symbol whose value is alist. | |
70 | |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
78
diff
changeset
|
71 An good example is the value of YaTeX-package-alist-default.") |
78 | 72 |
80 | 73 (defvar YaTeX-package-graphics-driver-alist |
303
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
74 '(("dvips") ("dvipsnames") ("usenames") |
333
30a8f68abe0a
Supply `dvipdfmx' completion instead of `dvipdf'
HIROSE Yuuji <yuuji@gentei.org>
parents:
314
diff
changeset
|
75 ("xdvi") ("dvipdfmx") ("pdftex") ("dvipsone") ("dviwindo") |
80 | 76 ("emtex") ("dviwin") ("oztex") ("textures") ("pctexps") ("pctexwin") |
77 ("pctexhp") ("pctex32") ("truetex") ("tcidvi") ("vtex")) | |
78 "Drivers alist of graphics/color stylefile's supporting deveces. | |
79 This list is taken from | |
80 %% graphics.dtx Copyright (C) 1994 David Carlisle Sebastian Rahtz | |
81 %% Copyright (C) 1995 1996 1997 1998 David Carlisle | |
82 as of 2004/1/19. Thanks.") | |
83 | |
78 | 84 (defvar YaTeX-package-alist-private nil |
85 "*User defined package vs. macro list. See also YaTeX-package-alist-default") | |
86 | |
87 (defun YaTeX-package-lookup (macro &optional type) | |
88 "Look up a package which contains a definition of MACRO. | |
89 Optional second argument TYPE limits the macro type. | |
90 TYPE is a symbol, one of 'env, 'section, 'maketitle." | |
91 (let ((list (append YaTeX-package-alist-private YaTeX-package-alist-default)) | |
304
a57f4c74179a
(yatexpkg)YaTeX-package-lookup sees 'same-as entry.
HIROSE Yuuji <yuuji@gentei.org>
parents:
303
diff
changeset
|
92 origlist element x sameas val pkg pkglist r) |
a57f4c74179a
(yatexpkg)YaTeX-package-lookup sees 'same-as entry.
HIROSE Yuuji <yuuji@gentei.org>
parents:
303
diff
changeset
|
93 (setq origlist list) |
78 | 94 (while list |
95 (setq element (car list) | |
96 pkg (car element) | |
97 element (cdr element)) | |
304
a57f4c74179a
(yatexpkg)YaTeX-package-lookup sees 'same-as entry.
HIROSE Yuuji <yuuji@gentei.org>
parents:
303
diff
changeset
|
98 (if (setq sameas (assq 'same-as element)) ;non-recursive retrieval |
a57f4c74179a
(yatexpkg)YaTeX-package-lookup sees 'same-as entry.
HIROSE Yuuji <yuuji@gentei.org>
parents:
303
diff
changeset
|
99 (setq element (cdr (assoc (cdr sameas) origlist)))) |
78 | 100 (if (setq r (catch 'found |
101 (while element | |
80 | 102 (setq x (car element) |
103 val (cdr x)) | |
104 (if (symbolp val) (setq val (symbol-value val))) | |
105 (and (or (null type) | |
78 | 106 (eq type (car x))) |
80 | 107 (YaTeX-member macro val) |
78 | 108 (throw 'found (car x))) ;car x is type |
109 (setq element (cdr element))))) | |
110 (setq pkglist (cons (cons pkg r) pkglist))) | |
111 (setq list (cdr list))) | |
112 pkglist)) | |
113 | |
303
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
114 (defun YaTeX-package-option-lookup (pkg &optional key) |
80 | 115 "Look up options for specified pkg and returne them in alist form. |
303
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
116 Just only associng against the alist of YaTeX-package-alist-*" |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
117 (let*((list (append YaTeX-package-alist-private YaTeX-package-alist-default)) |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
118 (l (cdr (assq (or key 'option) (assoc pkg list)))) |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
119 (recur (cdr (assq 'same-as (assoc pkg list))))) |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
120 (cond |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
121 (recur (YaTeX-package-option-lookup recur key)) |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
122 ((symbolp l) (symbol-value l)) |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
123 (t l)))) |
80 | 124 |
78 | 125 (defvar YaTeX-package-resolved-list nil |
126 "List of macros whose package is confirmed to be loaded.") | |
127 | |
356
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
128 (defun YaTeX-package-auto-usepackage (macro type &optional autopkg autoopt) |
78 | 129 "(Semi)Automatically add the \\usepackage line to main-file. |
356
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
130 Search the usepackage for MACRO of the TYPE. |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
131 Optional second and third argument AUTOPKG, AUTOOPT are selected |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
132 without query. Thus those two argument (Full)automatically add |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
133 a \\usepackage line." |
78 | 134 (let ((cb (current-buffer)) |
135 (wc (current-window-configuration)) | |
136 (usepackage (concat YaTeX-ec "usepackage")) | |
80 | 137 (pkglist (YaTeX-package-lookup macro type)) |
78 | 138 (usepkgrx (concat |
139 YaTeX-ec-regexp | |
140 "\\(usepackage\\|include\\)\\b")) | |
353
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
346
diff
changeset
|
141 (register (function |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
346
diff
changeset
|
142 (lambda () (set-buffer cb) |
78 | 143 (set (make-local-variable 'YaTeX-package-resolved-list) |
353
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
346
diff
changeset
|
144 (cons macro YaTeX-package-resolved-list))))) |
78 | 145 (begdoc (concat YaTeX-ec "begin{document}")) |
80 | 146 pb pkg optlist (option "") mb0 uspkgargs) |
78 | 147 (if (or (YaTeX-member macro YaTeX-package-resolved-list) |
148 (null pkglist)) | |
149 nil ;nothing to do | |
150 ;; Search `usepackage' into main-file | |
151 (YaTeX-visit-main t) ;set buffer to parent file | |
152 (setq pb (current-buffer)) | |
153 (save-excursion | |
154 (save-restriction | |
155 (if (catch 'found | |
156 (goto-char (point-min)) | |
157 (YaTeX-search-active-forward ;if search fails, goto eob | |
158 begdoc YaTeX-comment-prefix nil 1) | |
80 | 159 (while ;(YaTeX-re-search-active-backward |
160 ;usepkgrx YaTeX-comment-prefix nil t) | |
161 ;;allow commented out \usepackages 2004/3/16 | |
162 (re-search-backward usepkgrx nil t) | |
78 | 163 (setq mb0 (match-beginning 0)) |
164 (skip-chars-forward "^{") | |
80 | 165 (setq uspkgargs (YaTeX-buffer-substring |
166 (point) | |
167 (progn | |
168 ;;(forward-list 1) is more precise, | |
169 ;; but higher risk. | |
170 (skip-chars-forward "^}\n")(point)))) | |
78 | 171 (let ((pl pkglist)) |
172 (while pl ;(car pl)'s car is package, cdr is type | |
80 | 173 (if (string-match |
174 (concat "[{,]\\s *" | |
175 (regexp-quote (car (car pl))) | |
176 "\\>") | |
177 uspkgargs) | |
78 | 178 (throw 'found t)) |
179 (setq pl (cdr pl))) | |
180 (goto-char mb0)))) | |
181 ;;corresponding \usepackage found | |
182 (funcall register) | |
183 ;; not found, insert it. | |
356
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
184 (if (or |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
185 autopkg |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
186 (y-or-n-p |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
187 (format "`%s' requires package. Put \\usepackage now?" |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
188 macro))) |
78 | 189 (progn |
80 | 190 (require 'yatexadd) |
78 | 191 (setq pkg |
356
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
192 (or autopkg |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
193 (completing-read |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
194 "Load which package?(TAB for list): " |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
195 pkglist nil nil |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
196 ;;initial input |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
197 (if (= (length pkglist) 1) |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
198 (let ((w (car (car pkglist)))) |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
199 (if YaTeX-emacs-19 (cons w 0) w))))) |
80 | 200 optlist |
201 (YaTeX-package-option-lookup pkg)) | |
202 (if optlist | |
203 (let ((minibuffer-completion-table optlist) | |
303
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
204 (delim ",") (w (car (car optlist))) |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
205 (dflt (YaTeX-package-option-lookup |
13a62b7c8354
(yatexpkg)Add default option for package completion.
HIROSE Yuuji <yuuji@gentei.org>
parents:
294
diff
changeset
|
206 pkg 'default-option))) |
80 | 207 (setq option |
356
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
208 (or |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
209 autoopt |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
210 (read-from-minibuffer |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
211 (format "Any option for {%s}?: " pkg) |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
212 (let ((v (or dflt |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
213 (and (= (length optlist) 1) w)))) |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
214 (and v (if YaTeX-emacs-19 (cons v 0) v))) |
af0bd0f86b27
Now YaTeX-package-auto-usepackage can insert aline full-automaticaly
HIROSE Yuuji <yuuji@gentei.org>
parents:
353
diff
changeset
|
215 YaTeX-minibuffer-completion-map)) |
80 | 216 option (if (string< "" option) |
217 (concat "[" option "]") | |
218 "")))) | |
78 | 219 (set-buffer pb) |
220 (goto-char (point-min)) | |
221 (if (YaTeX-re-search-active-forward | |
222 (concat YaTeX-ec-regexp | |
223 "document\\(style\\|class\\){") | |
224 YaTeX-comment-prefix nil t) | |
225 (forward-line 1)) | |
226 (if (YaTeX-search-active-forward | |
227 begdoc YaTeX-comment-prefix nil t) | |
228 (goto-char (match-beginning 0))) | |
229 (insert | |
230 usepackage | |
80 | 231 (format "%s{%s}\t%% required for `\\%s' (yatex added)\n" |
232 option pkg macro)) | |
78 | 233 (funcall register)) |
120
8772bd5d1f02
Do not ask again when user answer n to usepackage addition.
yuuji@gentei.org
parents:
80
diff
changeset
|
234 (funcall register) |
78 | 235 (message "Don't forget to put \\usepackage{%s} yourself later" |
236 (car (car pkglist)))) ;doing car car is negligence... | |
237 )))))) |