yatex
changeset 271:d467c0fb6083 dev
Preparing for 1.76 release
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 10 May 2012 11:40:02 +0900 |
parents | 1b4e0acd0106 |
children | 78d0fdc0459c |
files | docs/yahtmle docs/yahtmle.tex docs/yahtmlj docs/yahtmlj.tex docs/yatexe docs/yatexe.tex docs/yatexj docs/yatexj.tex makefile yahtml.el yatex.el |
diffstat | 11 files changed, 6376 insertions(+), 6382 deletions(-) [+] |
line diff
1.1 --- a/docs/yahtmle Thu May 10 11:10:13 2012 +0900 1.2 +++ b/docs/yahtmle Thu May 10 11:40:02 2012 +0900 1.3 @@ -1,531 +1,531 @@ 1.4 -Info file: yahtmle, -*-Text-*- 1.5 -produced by `texinfo-format-buffer' 1.6 -from file `yahtmle.tex' 1.7 -using `texinfmt.el' version 2.38 of 3 July 1998. 1.8 - 1.9 - 1.10 - 1.11 - 1.12 - 1.13 - 1.14 -File: yahtmle, Node: Top, Next: Intro, Prev: (dir), Up: (dir) 1.15 - 1.16 -* Menu: 1.17 - 1.18 -* Intro:: Introduction 1.19 -* Installation:: Installing yahtml 1.20 -* Command Invocation:: Using External Commands 1.21 -* Completion:: Input with Completion 1.22 -* Jump:: Moving the Cursor 1.23 -* Changing and Deleting:: Changing and Deleting 1.24 -* CSS Support:: Style Sheet Support 1.25 -* Customizations:: List of Customize Variables 1.26 -* Copying:: Copyright 1.27 -* Concept Index:: Index 1.28 - 1.29 - 1.30 - 1.31 -File: yahtmle, Node: Intro, Next: Installation, Prev: Top, Up: Top 1.32 - 1.33 -Introduction 1.34 -************ 1.35 - 1.36 -yahtml is a package to support creating HTML documents on Emacsens. Easy 1.37 -input of elements (tags) by completion, syntax checking with programs like 1.38 -weblint, and invoking the appropriate browser or image viewer depending on 1.39 -the cursor position is its main features. 1.40 - 1.41 -(This Info is still incomplete) 1.42 - 1.43 - 1.44 - 1.45 -File: yahtmle, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top 1.46 - 1.47 -Installing yahtml 1.48 -***************** 1.49 -* Menu: 1.50 - 1.51 -* Setting up yahtml:: 1.52 -* Setting environments for weblint browsers and image viewers:: 1.53 -* Setting environment variables for WWW pages:: 1.54 - 1.55 - 1.56 - 1.57 -File: yahtmle, Node: Setting up yahtml, Next: Setting environments for weblint browsers and image viewers, Prev: Installation, Up: Installation 1.58 - 1.59 -Setting up yahtml 1.60 -================= 1.61 - 1.62 - 1.63 -Add the following to `~/.emacs' 1.64 - 1.65 - (setq auto-mode-alist 1.66 - (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist)) 1.67 - (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t) 1.68 - 1.69 -Next, add to load-path the directory with the yahtml files (`yahtml.el', 1.70 -`yatexlib.el', `yatexprc.el'). For example, if you put them in 1.71 -`~/src/emacs/yahtml', 1.72 - 1.73 - (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path)) 1.74 - 1.75 -is what you add. 1.76 - 1.77 -By this, yahtml will be automatically loaded when editing files with .html 1.78 -extensions. "yahtml" will be displayed on the mode line if no errors 1.79 -occurred. 1.80 - 1.81 - 1.82 - 1.83 -File: yahtmle, Node: Setting environments for weblint browsers and image viewers, Next: Setting environment variables for WWW pages, Prev: Setting up yahtml, Up: Installation 1.84 - 1.85 -Setting environments for weblint, browsers, and image viewers 1.86 -============================================================= 1.87 - 1.88 -Check the variables for invoking external commands and modify as needed. 1.89 -Defaults are in parenthesis. 1.90 - 1.91 -`yahtml-www-browser' 1.92 - ... browser command name (netscape) 1.93 -`yahtml-image-viewer' 1.94 - ... image viewer command name (xv) 1.95 -`yahtml-lint-program' 1.96 - ... syntax check programs command name (jweblint) 1.97 -`yahtml-kanji-code' 1.98 - ... kanji code for HTML files 1.99 - 1.100 - 1.101 - 1.102 -File: yahtmle, Node: Setting environment variables for WWW pages, Prev: Setting environments for weblint browsers and image viewers, Up: Installation 1.103 - 1.104 -Setting environment variables for WWW pages 1.105 -=========================================== 1.106 - 1.107 -Variables regarding path names for files that will be your home page. 1.108 -`yahtml-path-url-alist' 1.109 - ... list of matching path name on file system and URLs 1.110 -`yahtml-directory-index' 1.111 - ... index file displayed when none is given in URL. Usually 1.112 - `index.html' on NCSA type httpd and `Welcome.html' on CERN types. 1.113 - 1.114 -Examples for `yahtml-path-url-alist'. If `/home/yuuji/http/' is 1.115 -`http://localhost/~yuuji' at home and `/usr/home/yuuji/www/' is 1.116 -`http://www.keio.ac.jp/~yuuji/' at work, then 1.117 - 1.118 - (setq yahtml-path-url-alist 1.119 - '(("/home/yuuji/http" . "http://localhost/~yuuji") 1.120 - ("/usr/home/yuuji/www" . "http://www.keio.ac.jp/~yuuji"))) 1.121 - 1.122 -Any number of additions can be made to this list. 1.123 - 1.124 - 1.125 - 1.126 -File: yahtmle, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top 1.127 - 1.128 -Invoking external commands 1.129 -************************** 1.130 - 1.131 -For easy use of commands that are handy when editing HTML files. 1.132 -`[prefix] t j' 1.133 - ... Invoke HTML syntax checker (jweblint) 1.134 -`[prefix] t p' 1.135 - ... Display current page in browser 1.136 -`[prefix] t r' 1.137 - ... Reload current page if browser is already running 1.138 - 1.139 - 1.140 - 1.141 -File: yahtmle, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top 1.142 - 1.143 -Completion Input 1.144 -**************** 1.145 - 1.146 -Completion input of HTML elements is done through the same key strokes as 1.147 -YaTeX's begin-type completion, section-type completion, large-type 1.148 -completion, maketitle-type completion, and accent completion. 1.149 -Corresponding elements in this order is; elements that span multiple 1.150 -lines, empty elements such as img, tags that start and end in a single 1.151 -line, elements with no attributes or contents, and special or symbol 1.152 -entities. 1.153 - 1.154 -`[prefix] b (YaTeX begin-type completion)' 1.155 - ... 1.156 - <ul> 1.157 - </ul> 1.158 - 1.159 - Completion for elements that the start tag and the end tag span 1.160 - multiple lines. Mostly block-level elements. 1.161 - 1.162 -`[prefix] s (YateX section-type completion)' 1.163 - ... 1.164 - <img src="foo.gif" alt="photo"> 1.165 - 1.166 - Completion for elements that do not have end tags and require only 1.167 - attributes. Possible completions are, <img>, <input>. 1.168 - 1.169 -`[prefix] l (YaTeX large-type completion)' 1.170 - ... 1.171 - 1.172 - <big> $B!A(B </big> 1.173 - 1.174 - Similar to begin-type completion but used for elements that start and 1.175 - end on a single line. 1.176 - 1.177 - 1.178 -`[prefix] m (YaTeX maketitle-type completion)' 1.179 - ... Completion for elements without attributes or contents. Possible 1.180 - completion is <br> 1.181 - 1.182 -`[prefix] a (YaTeX accent completion)' 1.183 - ... Used to enter special or symbol entities. By default completion 1.184 - for < (<), > (>), & (&), " ("), ' ('), blank 1.185 - ( ) is possible. 1.186 - 1.187 - 1.188 - 1.189 -File: yahtmle, Node: Jump, Next: Changing and Deleting, Prev: Completion, Up: Top 1.190 - 1.191 -Cursor Movement 1.192 -*************** 1.193 -By using 1.194 - 1.195 -`[prefix] g' 1.196 - ... move to corresponding object 1.197 - 1.198 -the cursor will go to the corresponding object according to the context. 1.199 -Recognized contexts are 1.200 - 1.201 - * `<TAG>' <--> `</TAG>' 1.202 - * `<img src="image.file">' -> invoke viewer 1.203 - * `<a href="link.to.somewhere">' -> move cursor to linked target 1.204 - * `<applet code="program">' -> open Java source 1.205 - 1.206 - 1.207 - 1.208 -File: yahtmle, Node: Changing and Deleting, Next: CSS Support, Prev: Jump, Up: Top 1.209 - 1.210 -Changing and Deleting 1.211 -********************* 1.212 - 1.213 -* Menu: 1.214 - 1.215 -* Changing tags in pairs:: 1.216 -* Changing entities:: 1.217 -* URLencoding of strings within region:: 1.218 - 1.219 - 1.220 - 1.221 -File: yahtmle, Node: Changing tags in pairs, Next: Changing entities, Prev: Changing and Deleting, Up: Changing and Deleting 1.222 - 1.223 -Changing tags in pairs 1.224 -====================== 1.225 -By using 1.226 - 1.227 -`[prefix] c' 1.228 - ... change tags in matching pairs 1.229 - 1.230 -the content can be changed according to the context of the HTML document 1.231 -where the cursor is located. 1.232 - 1.233 - * `<TAG>'$B!A(B`</TAG>' 1.234 - ... change `TAG' element name 1.235 - * attributes such as `<img src="image.file" alt="photo">' 1.236 - ... change attributes 1.237 - 1.238 - 1.239 - 1.240 -File: yahtmle, Node: Changing entities, Next: URLencoding of strings within region, Prev: Changing tags in pairs, Up: Changing and Deleting 1.241 - 1.242 -Changing entities 1.243 -================= 1.244 -Special characters such as < or > must be written as < and >. Easy 1.245 -conversion of these characters can be done when importing text from non 1.246 -HTML files. 1.247 - 1.248 - 1.249 -`[prefix] ;' 1.250 - ... convert char to special entity in marked region 1.251 -`[prefix] :' 1.252 - ... convert special entity to original char in marked region 1.253 - (reverse of [prefix] ;) 1.254 - 1.255 - 1.256 - 1.257 - 1.258 -File: yahtmle, Node: URLencoding of strings within region, Next: td-enclosure/tr-enclosure, Prev: Changing entities, Up: Changing and Deleting 1.259 - 1.260 -URLencoding of strings within region 1.261 -==================================== 1.262 - 1.263 -`[prefix] #' 1.264 - ... encode chars that needs to be URLencoded within region 1.265 - 1.266 - 1.267 - 1.268 -File: yahtmle, Node: td-enclosure/tr-enclosure, Prev: URLencoding of strings within region, Up: Changing and Deleting 1.269 - 1.270 -td-enclosure/tr-enclosure 1.271 -========================= 1.272 -If you wan to convert series of field into <td>...</td> repetitions for 1.273 -table element, td-enclosure or tr-enclosure is convenient. 1.274 - 1.275 - `[prefix] '} 1.276 - 1.277 - ... Enclose each field in a region into <td>...</td>'s. 1.278 - `[prefix] ]' 1.279 - 1.280 - ... Enclose each line in a region into <tr>...</tr>'s, with every 1.281 -line converted to <td>...</td> repetition. They presume white space as 1.282 -field separator by default. To change this, enter other delimiting 1.283 -character for a query. You can convert CSV, for example, into table by 1.284 -specifying comma(,) as a delimiter. 1.285 - 1.286 -If you want to enclose fields with th, call with universal-argument 1.287 -(`C-u'). Enter `th' to enclose fields with <th>...</th>. The special 1.288 -answer `thd' means that enclose the only first column with th, and the 1.289 -rest with td. 1.290 - 1.291 - 1.292 - 1.293 -File: yahtmle, Node: CSS Support, Next: Customizations, Prev: Changing and Deleting, Up: Top 1.294 - 1.295 -CSS(Style Sheets) Support 1.296 -************************* 1.297 - 1.298 -* Menu: 1.299 - 1.300 -* CSS-class completion:: 1.301 -* Reread CSS definition:: 1.302 - 1.303 - 1.304 - 1.305 -File: yahtmle, Node: CSS-class completion, Next: Reread CSS definition, Prev: CSS Support, Up: CSS Support 1.306 - 1.307 -CSS class-name completion 1.308 -========================= 1.309 -You can input a class name in your CSS definition with completion. If you 1.310 -have CSS defined as below; 1.311 - 1.312 - h1.foo, h2.foo { background-color: 0xffffff; } 1.313 - h1.bar, h2.bar { font-size: 120%; } 1.314 - 1.315 -when you input h1(or h2) tag with completing-read by [prefix] b or 1.316 -[prefix] l, yahtml prompts you to input class name with completion from 1.317 -the words which are effective to h1 or h2. And if you defined global 1.318 -class like this; 1.319 - 1.320 - .caution { font-size: 120%; background-color: 0xc00000;} 1.321 - 1.322 -when you input any tags via completing-read, yahtml prompts you to input 1.323 -class name. If this is bothering, typing `C-j' instead of `RET' (or 1.324 -`C-m') cancels the next prompt to class name completion. 1.325 - 1.326 - 1.327 - 1.328 -File: yahtmle, Node: Reread CSS definition, Prev: CSS-class completion, Up: CSS Support 1.329 - 1.330 -Re-reading CSS definition 1.331 -========================= 1.332 -If you add some class to your CSS file and you want yahtml to load new 1.333 -definitions, type `M-x yahtml-mode RET' to make yahtml do. 1.334 - 1.335 - 1.336 - 1.337 -File: yahtmle, Node: Customizations, Next: Copying, Prev: CSS Support, Up: Top 1.338 - 1.339 -Customizations 1.340 -************** 1.341 - 1.342 -Variables that modify yahtml's behavior. 1.343 - 1.344 -* Menu: 1.345 - 1.346 -* All customizable variables:: List of customizable variables 1.347 -* Hook variables:: hook variables 1.348 - 1.349 - 1.350 - 1.351 -File: yahtmle, Node: All customizable variables, Next: Hook variables, Prev: Customizations, Up: Customizations 1.352 - 1.353 -List of customizable variables. Defaults in parenthesis 1.354 -======================================================== 1.355 - 1.356 - -- Variable: yahtml-prefix 1.357 - Prefix key for yahtml-mode. (`\C-c') 1.358 - 1.359 - -- Variable: yahtml-image-viewer 1.360 - Command to view image files refered by img. (xv) 1.361 - 1.362 - -- Variable: yahtml-www-browser 1.363 - Browser to view external pages with `[prefix]g'. (netscape) 1.364 - 1.365 - -- Variable: yahtml-kanji-code 1.366 - Default kanji code. 1=sjis, 2=jis, 3=euc, 4=utf-8 (2) If AddType 1.367 - "text/html; charset=xxx" .html is written in .htaccess, this will 1.368 - override yahtml-kanji-code. 1.369 - 1.370 - -- Variable: yahtml-fill-column 1.371 - Columns to auto-fill (72) 1.372 - 1.373 - -- Variable: yahtml-fill-prefix 1.374 - fill-prefix specific to yahtml-mode. (`nil') 1.375 - 1.376 - -- Variable: yahtml-path-url-alist 1.377 - Matching list of URL and full path name on OS's file system. 1.378 - 1.379 - -- Variable: yahtml-directory-index 1.380 - Default index filed opened when accessing a server without a 1.381 - filename, usually index.html. (`"index.html"') 1.382 - 1.383 - -- Variable: yahtml-lint-program 1.384 - HTML syntax check program. (`"jweblint"') 1.385 - 1.386 - -- Variable: yahtml-hate-too-deep-indentation 1.387 - setq to t when indentations for nested enumerate elements are too 1.388 - deep. (`nil') 1.389 - 1.390 - -- Variable: yahtml-always-/p 1.391 - setq to t if you always want `</p>' after `</p>'. `nil' 1.392 - 1.393 - -- Variable: yahtml-p-prefered-env-regexp 1.394 - Elements that `<p>' will be automatically inserted. 1.395 - (`"^\\(body\\|dl\\|blockquote\\)"') 1.396 - 1.397 - -- Variable: yahtml-template-file 1.398 - File to automatically insert when editing a new HTML file. 1.399 - `"~/http/template.html"' 1.400 - 1.401 - -- Variable: yahtml-prefer-upcases 1.402 - Use uppercase for tags. `nil' 1.403 - 1.404 - -- Variable: yahtml-prefer-upcase-attributes 1.405 - Use uppercase for attributes. `nil' 1.406 - 1.407 - -- Variable: yahtml-server-type 1.408 - setq to 'apache if using a Apache server, and will refer ./.htaccess. 1.409 - `'apache' 1.410 - 1.411 - -- Variable: yahtml-apache-access-file 1.412 - When `yahtml-server-type' is `'apache', define name of access 1.413 - restriction file. `".htaccess"' 1.414 - 1.415 - -- Variable: yahtml-shell-command-option 1.416 - Options needed to invoke shell commands. 1.417 - 1.418 - -- Variable: yahtml-translate-hyphens-when-comment-region 1.419 - Whether to change hyphens to `-' when commenting out region. 1.420 - (`t') 1.421 - 1.422 - -- Variable: yahtml-entity-reference-chars-alist 1.423 - alist of characters that needs to be written by Entity Reference. 1.424 - Enter as `'(?char . "EntityReference")'. By default, `<', `>', `&', 1.425 - `'', is set. Add as needed. Do not include `&' at beginning and `;' 1.426 - at end of cdr portion of `"EntityReference"'. 1.427 - 1.428 - -- Variable: yahtml-faithful-to-htmllint 1.429 - When using htmllint to check syntax, it will complain about excess 1.430 - spaces. setq to `t' to avoid this. 1.431 - 1.432 - -- Variable: yahtml-use-css 1.433 - Use style-sheet support or not (`t') 1.434 - 1.435 - -- Variable: yahtml-image-inspection-bytes 1.436 - Number of bytes to inspect the image for geometry information 1.437 - (`10000') 1.438 - 1.439 - -- Variable: yahtml:img-default-alt-format 1.440 - format of img entity's ALT attributes. %x: width, %y: height, %s: 1.441 - size in bytes, %c: first comment string, %f: filename 1.442 - (`"%xx%y(%sbytes)"') 1.443 - 1.444 - -- Variable: yahtml-escape-chars 1.445 - When, completing href-s, Escape reserved characters to URL-encoding 1.446 - or not. Nil for never, t for everytime, and 'ask for inquiring at 1.447 - each reserved chars. (`'ask') 1.448 - 1.449 - -- Variable: yahtml-use-font-lock 1.450 - Use font-lock to fontify buffer or not (`(featurep 'font-lock)') 1.451 - 1.452 - -- Variable: yahtml-use-hilit19 1.453 - Use hilit19 to highlight buffer or not (`(featurep 'hilit19)') 1.454 - 1.455 - -- Variable: yahtml-indentation-boundary 1.456 - Boundary regexp for indentation calculation. (`"^\\s *<h[1-3]>"') 1.457 - 1.458 - 1.459 - 1.460 -File: yahtmle, Node: Hook variables, Prev: All customizable variables, Up: Customizations 1.461 - 1.462 -hook variables 1.463 -============== 1.464 - 1.465 - 1.466 - 1.467 - 1.468 -File: yahtmle, Node: Copying, Next: Concept Index, Prev: Customizations, Up: Top 1.469 - 1.470 -Copying 1.471 -******* 1.472 - 1.473 -This program is distributed as freesoftware. The author will take no 1.474 -responsibility to any damages due to the usage of this software 1.475 -whatsoever. There are no restrictions to its redistribution, just use 1.476 -common sense. Mail me your thoughts on this program and I will be more 1.477 -than willing to help. 1.478 - 1.479 -Complaints, requests, bug reports and comments are welcome. Make contacts 1.480 -to yuuji@yatex.org$B!!(B(as of December 2000) 1.481 - 1.482 -If you like this program and use it on a regular basis, please join the 1.483 -mailing list "fj Wild Bird Society". Procedures can be found in the "etc" 1.484 -section of `docs/htmlqa.eng' in this package. 1.485 - 1.486 - 1.487 - HIROSE, Yuuji 1.488 - 1.489 - 1.490 - 1.491 - 1.492 -File: yahtmle, Node: Concept Index, Prev: Copying, Up: Top 1.493 - 1.494 -Index 1.495 -***** 1.496 - 1.497 -* Menu: 1.498 - 1.499 -* Customize: Customizations. 4. 1.500 -* Demacs: Intro. 4. 1.501 -* Key Assign: Customizations. 4. 1.502 -* LaTeX: Intro. 4. 1.503 -* Mule: Intro. 4. 1.504 -* yahtml: Intro. 4. 1.505 - 1.506 - 1.507 - 1.508 - 1.509 - 1.510 -Tag table: 1.511 -Node: Top148 1.512 -Node: Intro725 1.513 -Node: Installation1123 1.514 -Node: Setting up yahtml1404 1.515 -Node: Setting environments for weblint browsers and image viewers2195 1.516 -Node: Setting environment variables for WWW pages2891 1.517 -Node: Command Invocation3862 1.518 -Node: Completion4290 1.519 -Node: Jump5807 1.520 -Node: Changing and Deleting6287 1.521 -Node: Changing tags in pairs6538 1.522 -Node: Changing entities7033 1.523 -Node: URLencoding of strings within region7569 1.524 -Node: td-enclosure/tr-enclosure7870 1.525 -Node: CSS Support8836 1.526 -Node: CSS-class completion9062 1.527 -Node: Reread CSS definition9915 1.528 -Node: Customizations10190 1.529 -Node: All customizable variables10466 1.530 -Node: Hook variables14234 1.531 -Node: Copying14360 1.532 -Node: Concept Index15151 1.533 - 1.534 -End tag table 1.535 +Info file: yahtmle, -*-Text-*- 1.536 +produced by `texinfo-format-buffer' 1.537 +from file `yahtmle.tex' 1.538 +using `texinfmt.el' version 2.38 of 3 July 1998. 1.539 + 1.540 + 1.541 + 1.542 + 1.543 + 1.544 + 1.545 +File: yahtmle, Node: Top, Next: Intro, Prev: (dir), Up: (dir) 1.546 + 1.547 +* Menu: 1.548 + 1.549 +* Intro:: Introduction 1.550 +* Installation:: Installing yahtml 1.551 +* Command Invocation:: Using External Commands 1.552 +* Completion:: Input with Completion 1.553 +* Jump:: Moving the Cursor 1.554 +* Changing and Deleting:: Changing and Deleting 1.555 +* CSS Support:: Style Sheet Support 1.556 +* Customizations:: List of Customize Variables 1.557 +* Copying:: Copyright 1.558 +* Concept Index:: Index 1.559 + 1.560 + 1.561 + 1.562 +File: yahtmle, Node: Intro, Next: Installation, Prev: Top, Up: Top 1.563 + 1.564 +Introduction 1.565 +************ 1.566 + 1.567 +yahtml is a package to support creating HTML documents on Emacsens. Easy 1.568 +input of elements (tags) by completion, syntax checking with programs like 1.569 +weblint, and invoking the appropriate browser or image viewer depending on 1.570 +the cursor position is its main features. 1.571 + 1.572 +(This Info is still incomplete) 1.573 + 1.574 + 1.575 + 1.576 +File: yahtmle, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top 1.577 + 1.578 +Installing yahtml 1.579 +***************** 1.580 +* Menu: 1.581 + 1.582 +* Setting up yahtml:: 1.583 +* Setting environments for weblint browsers and image viewers:: 1.584 +* Setting environment variables for WWW pages:: 1.585 + 1.586 + 1.587 + 1.588 +File: yahtmle, Node: Setting up yahtml, Next: Setting environments for weblint browsers and image viewers, Prev: Installation, Up: Installation 1.589 + 1.590 +Setting up yahtml 1.591 +================= 1.592 + 1.593 + 1.594 +Add the following to `~/.emacs' 1.595 + 1.596 + (setq auto-mode-alist 1.597 + (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist)) 1.598 + (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t) 1.599 + 1.600 +Next, add to load-path the directory with the yahtml files (`yahtml.el', 1.601 +`yatexlib.el', `yatexprc.el'). For example, if you put them in 1.602 +`~/src/emacs/yahtml', 1.603 + 1.604 + (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path)) 1.605 + 1.606 +is what you add. 1.607 + 1.608 +By this, yahtml will be automatically loaded when editing files with .html 1.609 +extensions. "yahtml" will be displayed on the mode line if no errors 1.610 +occurred. 1.611 + 1.612 + 1.613 + 1.614 +File: yahtmle, Node: Setting environments for weblint browsers and image viewers, Next: Setting environment variables for WWW pages, Prev: Setting up yahtml, Up: Installation 1.615 + 1.616 +Setting environments for weblint, browsers, and image viewers 1.617 +============================================================= 1.618 + 1.619 +Check the variables for invoking external commands and modify as needed. 1.620 +Defaults are in parenthesis. 1.621 + 1.622 +`yahtml-www-browser' 1.623 + ... browser command name (netscape) 1.624 +`yahtml-image-viewer' 1.625 + ... image viewer command name (xv) 1.626 +`yahtml-lint-program' 1.627 + ... syntax check programs command name (jweblint) 1.628 +`yahtml-kanji-code' 1.629 + ... kanji code for HTML files 1.630 + 1.631 + 1.632 + 1.633 +File: yahtmle, Node: Setting environment variables for WWW pages, Prev: Setting environments for weblint browsers and image viewers, Up: Installation 1.634 + 1.635 +Setting environment variables for WWW pages 1.636 +=========================================== 1.637 + 1.638 +Variables regarding path names for files that will be your home page. 1.639 +`yahtml-path-url-alist' 1.640 + ... list of matching path name on file system and URLs 1.641 +`yahtml-directory-index' 1.642 + ... index file displayed when none is given in URL. Usually 1.643 + `index.html' on NCSA type httpd and `Welcome.html' on CERN types. 1.644 + 1.645 +Examples for `yahtml-path-url-alist'. If `/home/yuuji/http/' is 1.646 +`http://localhost/~yuuji' at home and `/usr/home/yuuji/www/' is 1.647 +`http://www.keio.ac.jp/~yuuji/' at work, then 1.648 + 1.649 + (setq yahtml-path-url-alist 1.650 + '(("/home/yuuji/http" . "http://localhost/~yuuji") 1.651 + ("/usr/home/yuuji/www" . "http://www.keio.ac.jp/~yuuji"))) 1.652 + 1.653 +Any number of additions can be made to this list. 1.654 + 1.655 + 1.656 + 1.657 +File: yahtmle, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top 1.658 + 1.659 +Invoking external commands 1.660 +************************** 1.661 + 1.662 +For easy use of commands that are handy when editing HTML files. 1.663 +`[prefix] t j' 1.664 + ... Invoke HTML syntax checker (jweblint) 1.665 +`[prefix] t p' 1.666 + ... Display current page in browser 1.667 +`[prefix] t r' 1.668 + ... Reload current page if browser is already running 1.669 + 1.670 + 1.671 + 1.672 +File: yahtmle, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top 1.673 + 1.674 +Completion Input 1.675 +**************** 1.676 + 1.677 +Completion input of HTML elements is done through the same key strokes as 1.678 +YaTeX's begin-type completion, section-type completion, large-type 1.679 +completion, maketitle-type completion, and accent completion. 1.680 +Corresponding elements in this order is; elements that span multiple 1.681 +lines, empty elements such as img, tags that start and end in a single 1.682 +line, elements with no attributes or contents, and special or symbol 1.683 +entities. 1.684 + 1.685 +`[prefix] b (YaTeX begin-type completion)' 1.686 + ... 1.687 + <ul> 1.688 + </ul> 1.689 + 1.690 + Completion for elements that the start tag and the end tag span 1.691 + multiple lines. Mostly block-level elements. 1.692 + 1.693 +`[prefix] s (YateX section-type completion)' 1.694 + ... 1.695 + <img src="foo.gif" alt="photo"> 1.696 + 1.697 + Completion for elements that do not have end tags and require only 1.698 + attributes. Possible completions are, <img>, <input>. 1.699 + 1.700 +`[prefix] l (YaTeX large-type completion)' 1.701 + ... 1.702 + 1.703 + <big> 〜 </big> 1.704 + 1.705 + Similar to begin-type completion but used for elements that start and 1.706 + end on a single line. 1.707 + 1.708 + 1.709 +`[prefix] m (YaTeX maketitle-type completion)' 1.710 + ... Completion for elements without attributes or contents. Possible 1.711 + completion is <br> 1.712 + 1.713 +`[prefix] a (YaTeX accent completion)' 1.714 + ... Used to enter special or symbol entities. By default completion 1.715 + for < (<), > (>), & (&), " ("), ' ('), blank 1.716 + ( ) is possible. 1.717 + 1.718 + 1.719 + 1.720 +File: yahtmle, Node: Jump, Next: Changing and Deleting, Prev: Completion, Up: Top 1.721 + 1.722 +Cursor Movement 1.723 +*************** 1.724 +By using 1.725 + 1.726 +`[prefix] g' 1.727 + ... move to corresponding object 1.728 + 1.729 +the cursor will go to the corresponding object according to the context. 1.730 +Recognized contexts are 1.731 + 1.732 + * `<TAG>' <--> `</TAG>' 1.733 + * `<img src="image.file">' -> invoke viewer 1.734 + * `<a href="link.to.somewhere">' -> move cursor to linked target 1.735 + * `<applet code="program">' -> open Java source 1.736 + 1.737 + 1.738 + 1.739 +File: yahtmle, Node: Changing and Deleting, Next: CSS Support, Prev: Jump, Up: Top 1.740 + 1.741 +Changing and Deleting 1.742 +********************* 1.743 + 1.744 +* Menu: 1.745 + 1.746 +* Changing tags in pairs:: 1.747 +* Changing entities:: 1.748 +* URLencoding of strings within region:: 1.749 +* td-enclosure/tr-enclosure:: 1.750 + 1.751 + 1.752 + 1.753 +File: yahtmle, Node: Changing tags in pairs, Next: Changing entities, Prev: Changing and Deleting, Up: Changing and Deleting 1.754 + 1.755 +Changing tags in pairs 1.756 +====================== 1.757 +By using 1.758 + 1.759 +`[prefix] c' 1.760 + ... change tags in matching pairs 1.761 + 1.762 +the content can be changed according to the context of the HTML document 1.763 +where the cursor is located. 1.764 + 1.765 + * `<TAG>'〜`</TAG>' 1.766 + ... change `TAG' element name 1.767 + * attributes such as `<img src="image.file" alt="photo">' 1.768 + ... change attributes 1.769 + 1.770 + 1.771 + 1.772 +File: yahtmle, Node: Changing entities, Next: URLencoding of strings within region, Prev: Changing tags in pairs, Up: Changing and Deleting 1.773 + 1.774 +Changing entities 1.775 +================= 1.776 +Special characters such as < or > must be written as < and >. Easy 1.777 +conversion of these characters can be done when importing text from non 1.778 +HTML files. 1.779 + 1.780 + 1.781 +`[prefix] ;' 1.782 + ... convert char to special entity in marked region 1.783 +`[prefix] :' 1.784 + ... convert special entity to original char in marked region 1.785 + (reverse of [prefix] ;) 1.786 + 1.787 + 1.788 + 1.789 + 1.790 +File: yahtmle, Node: URLencoding of strings within region, Next: td-enclosure/tr-enclosure, Prev: Changing entities, Up: Changing and Deleting 1.791 + 1.792 +URLencoding of strings within region 1.793 +==================================== 1.794 + 1.795 +`[prefix] #' 1.796 + ... encode chars that needs to be URLencoded within region 1.797 + 1.798 + 1.799 + 1.800 +File: yahtmle, Node: td-enclosure/tr-enclosure, Prev: URLencoding of strings within region, Up: Changing and Deleting 1.801 + 1.802 +td-enclosure/tr-enclosure 1.803 +========================= 1.804 +If you wan to convert series of field into <td>...</td> repetitions for 1.805 +table element, td-enclosure or tr-enclosure is convenient. 1.806 + 1.807 + `[prefix] }' 1.808 + 1.809 + ... Enclose each field in a region into <td>...</td>'s. 1.810 + `[prefix] ]' 1.811 + 1.812 + ... Enclose each line in a region into <tr>...</tr>'s, with every 1.813 +line converted to <td>...</td> repetition. They presume white space as 1.814 +field separator by default. To change this, enter other delimiting 1.815 +character for a query. You can convert CSV, for example, into table by 1.816 +specifying comma(,) as a delimiter. 1.817 + 1.818 +If you want to enclose fields with th, call with universal-argument 1.819 +(`C-u'). Enter `th' to enclose fields with <th>...</th>. The special 1.820 +answer `thd' means that enclose the only first column with th, and the 1.821 +rest with td. 1.822 + 1.823 + 1.824 + 1.825 +File: yahtmle, Node: CSS Support, Next: Customizations, Prev: Changing and Deleting, Up: Top 1.826 + 1.827 +CSS(Style Sheets) Support 1.828 +************************* 1.829 + 1.830 +* Menu: 1.831 + 1.832 +* CSS-class completion:: 1.833 +* Reread CSS definition:: 1.834 + 1.835 + 1.836 + 1.837 +File: yahtmle, Node: CSS-class completion, Next: Reread CSS definition, Prev: CSS Support, Up: CSS Support 1.838 + 1.839 +CSS class-name completion 1.840 +========================= 1.841 +You can input a class name in your CSS definition with completion. If you 1.842 +have CSS defined as below; 1.843 + 1.844 + h1.foo, h2.foo { background-color: 0xffffff; } 1.845 + h1.bar, h2.bar { font-size: 120%; } 1.846 + 1.847 +when you input h1(or h2) tag with completing-read by [prefix] b or 1.848 +[prefix] l, yahtml prompts you to input class name with completion from 1.849 +the words which are effective to h1 or h2. And if you defined global 1.850 +class like this; 1.851 + 1.852 + .caution { font-size: 120%; background-color: 0xc00000;} 1.853 + 1.854 +when you input any tags via completing-read, yahtml prompts you to input 1.855 +class name. If this is bothering, typing `C-j' instead of `RET' (or 1.856 +`C-m') cancels the next prompt to class name completion. 1.857 + 1.858 + 1.859 + 1.860 +File: yahtmle, Node: Reread CSS definition, Prev: CSS-class completion, Up: CSS Support 1.861 + 1.862 +Re-reading CSS definition 1.863 +========================= 1.864 +If you add some class to your CSS file and you want yahtml to load new 1.865 +definitions, type `M-x yahtml-mode RET' to make yahtml do. 1.866 + 1.867 + 1.868 + 1.869 +File: yahtmle, Node: Customizations, Next: Copying, Prev: CSS Support, Up: Top 1.870 + 1.871 +Customizations 1.872 +************** 1.873 + 1.874 +Variables that modify yahtml's behavior. 1.875 + 1.876 +* Menu: 1.877 + 1.878 +* All customizable variables:: List of customizable variables 1.879 +* Hook variables:: hook variables 1.880 + 1.881 + 1.882 + 1.883 +File: yahtmle, Node: All customizable variables, Next: Hook variables, Prev: Customizations, Up: Customizations 1.884 + 1.885 +List of customizable variables. Defaults in parenthesis 1.886 +======================================================== 1.887 + 1.888 + -- Variable: yahtml-prefix 1.889 + Prefix key for yahtml-mode. (`\C-c') 1.890 + 1.891 + -- Variable: yahtml-image-viewer 1.892 + Command to view image files refered by img. (xv) 1.893 + 1.894 + -- Variable: yahtml-www-browser 1.895 + Browser to view external pages with `[prefix]g'. (netscape) 1.896 + 1.897 + -- Variable: yahtml-kanji-code 1.898 + Default kanji code. 1=sjis, 2=jis, 3=euc, 4=utf-8 (2) If AddType 1.899 + "text/html; charset=xxx" .html is written in .htaccess, this will 1.900 + override yahtml-kanji-code. 1.901 + 1.902 + -- Variable: yahtml-fill-column 1.903 + Columns to auto-fill (72) 1.904 + 1.905 + -- Variable: yahtml-fill-prefix 1.906 + fill-prefix specific to yahtml-mode. (`nil') 1.907 + 1.908 + -- Variable: yahtml-path-url-alist 1.909 + Matching list of URL and full path name on OS's file system. 1.910 + 1.911 + -- Variable: yahtml-directory-index 1.912 + Default index filed opened when accessing a server without a 1.913 + filename, usually index.html. (`"index.html"') 1.914 + 1.915 + -- Variable: yahtml-lint-program 1.916 + HTML syntax check program. (`"jweblint"') 1.917 + 1.918 + -- Variable: yahtml-hate-too-deep-indentation 1.919 + setq to t when indentations for nested enumerate elements are too 1.920 + deep. (`nil') 1.921 + 1.922 + -- Variable: yahtml-always-/p 1.923 + setq to t if you always want `</p>' after `</p>'. `nil' 1.924 + 1.925 + -- Variable: yahtml-p-prefered-env-regexp 1.926 + Elements that `<p>' will be automatically inserted. 1.927 + (`"^\\(body\\|dl\\|blockquote\\)"') 1.928 + 1.929 + -- Variable: yahtml-template-file 1.930 + File to automatically insert when editing a new HTML file. 1.931 + `"~/http/template.html"' 1.932 + 1.933 + -- Variable: yahtml-prefer-upcases 1.934 + Use uppercase for tags. `nil' 1.935 + 1.936 + -- Variable: yahtml-prefer-upcase-attributes 1.937 + Use uppercase for attributes. `nil' 1.938 + 1.939 + -- Variable: yahtml-server-type 1.940 + setq to 'apache if using a Apache server, and will refer ./.htaccess. 1.941 + `'apache' 1.942 + 1.943 + -- Variable: yahtml-apache-access-file 1.944 + When `yahtml-server-type' is `'apache', define name of access 1.945 + restriction file. `".htaccess"' 1.946 + 1.947 + -- Variable: yahtml-shell-command-option 1.948 + Options needed to invoke shell commands. 1.949 + 1.950 + -- Variable: yahtml-translate-hyphens-when-comment-region 1.951 + Whether to change hyphens to `-' when commenting out region. 1.952 + (`t') 1.953 + 1.954 + -- Variable: yahtml-entity-reference-chars-alist 1.955 + alist of characters that needs to be written by Entity Reference. 1.956 + Enter as `'(?char . "EntityReference")'. By default, `<', `>', `&', 1.957 + `'', is set. Add as needed. Do not include `&' at beginning and `;' 1.958 + at end of cdr portion of `"EntityReference"'. 1.959 + 1.960 + -- Variable: yahtml-faithful-to-htmllint 1.961 + When using htmllint to check syntax, it will complain about excess 1.962 + spaces. setq to `t' to avoid this. 1.963 + 1.964 + -- Variable: yahtml-use-css 1.965 + Use style-sheet support or not (`t') 1.966 + 1.967 + -- Variable: yahtml-image-inspection-bytes 1.968 + Number of bytes to inspect the image for geometry information 1.969 + (`10000') 1.970 + 1.971 + -- Variable: yahtml:img-default-alt-format 1.972 + format of img entity's ALT attributes. %x: width, %y: height, %s: 1.973 + size in bytes, %c: first comment string, %f: filename 1.974 + (`"%xx%y(%sbytes)"') 1.975 + 1.976 + -- Variable: yahtml-escape-chars 1.977 + When, completing href-s, Escape reserved characters to URL-encoding 1.978 + or not. Nil for never, t for everytime, and 'ask for inquiring at 1.979 + each reserved chars. (`'ask') 1.980 + 1.981 + -- Variable: yahtml-use-font-lock 1.982 + Use font-lock to fontify buffer or not (`(featurep 'font-lock)') 1.983 + 1.984 + -- Variable: yahtml-use-hilit19 1.985 + Use hilit19 to highlight buffer or not (`(featurep 'hilit19)') 1.986 + 1.987 + -- Variable: yahtml-indentation-boundary 1.988 + Boundary regexp for indentation calculation. (`"^\\s *<h[1-3]>"') 1.989 + 1.990 + 1.991 + 1.992 +File: yahtmle, Node: Hook variables, Prev: All customizable variables, Up: Customizations 1.993 + 1.994 +hook variables 1.995 +============== 1.996 + 1.997 + 1.998 + 1.999 + 1.1000 +File: yahtmle, Node: Copying, Next: Concept Index, Prev: Customizations, Up: Top 1.1001 + 1.1002 +Copying 1.1003 +******* 1.1004 + 1.1005 +This program is distributed as freesoftware. The author will take no 1.1006 +responsibility to any damages due to the usage of this software 1.1007 +whatsoever. There are no restrictions to its redistribution, just use 1.1008 +common sense. Mail me your thoughts on this program and I will be more 1.1009 +than willing to help. 1.1010 + 1.1011 +Complaints, requests, bug reports and comments are welcome. Make contacts 1.1012 +to yuuji@yatex.org (as of December 2000) 1.1013 + 1.1014 +If you like this program and use it on a regular basis, please join the 1.1015 +mailing list "fj Wild Bird Society". Procedures can be found in the "etc" 1.1016 +section of `docs/htmlqa.eng' in this package. 1.1017 + 1.1018 + 1.1019 + HIROSE, Yuuji 1.1020 + 1.1021 + 1.1022 + 1.1023 + 1.1024 +File: yahtmle, Node: Concept Index, Prev: Copying, Up: Top 1.1025 + 1.1026 +Index 1.1027 +***** 1.1028 + 1.1029 +* Menu: 1.1030 + 1.1031 +* Customize: Customizations. 4. 1.1032 +* Demacs: Intro. 4. 1.1033 +* Key Assign: Customizations. 4. 1.1034 +* LaTeX: Intro. 4. 1.1035 +* Mule: Intro. 4. 1.1036 +* yahtml: Intro. 4. 1.1037 + 1.1038 + 1.1039 + 1.1040 + 1.1041 +Tag table: 1.1042 +Node: Top151 1.1043 +Node: Intro728 1.1044 +Node: Installation1126 1.1045 +Node: Setting up yahtml1407 1.1046 +Node: Setting environments for weblint browsers and image viewers2198 1.1047 +Node: Setting environment variables for WWW pages2894 1.1048 +Node: Command Invocation3865 1.1049 +Node: Completion4293 1.1050 +Node: Jump5809 1.1051 +Node: Changing and Deleting6289 1.1052 +Node: Changing tags in pairs6573 1.1053 +Node: Changing entities7068 1.1054 +Node: URLencoding of strings within region7604 1.1055 +Node: td-enclosure/tr-enclosure7905 1.1056 +Node: CSS Support8871 1.1057 +Node: CSS-class completion9097 1.1058 +Node: Reread CSS definition9950 1.1059 +Node: Customizations10225 1.1060 +Node: All customizable variables10501 1.1061 +Node: Hook variables14269 1.1062 +Node: Copying14395 1.1063 +Node: Concept Index15186 1.1064 + 1.1065 +End tag table
2.1 --- a/docs/yahtmle.tex Thu May 10 11:10:13 2012 +0900 2.2 +++ b/docs/yahtmle.tex Thu May 10 11:40:02 2012 +0900 2.3 @@ -5,7 +5,7 @@ 2.4 2.5 @iftex 2.6 @c @syncodeindex fn cp 2.7 -@c Last modified Sun Apr 15 22:52:03 2012 on firestorm 2.8 +@c Last modified Thu May 10 11:13:19 2012 on firestorm 2.9 @syncodeindex vr cp 2.10 @end iftex 2.11 2.12 @@ -15,7 +15,7 @@ 2.13 @subtitle Yet Another html-mode for emacs 2.14 @title // yahtml // 2.15 %@subtitle // yahtml // 2.16 -@author @copyright{} 1994-1997 by HIROSE, Yuuji [yuuji@@yatex.org] 2.17 +@author @copyright{} 1994-2012 by HIROSE, Yuuji [yuuji@@yatex.org] 2.18 @end titlepage 2.19 2.20 @node Top, Intro, (dir), (dir)
3.1 --- a/docs/yahtmlj Thu May 10 11:10:13 2012 +0900 3.2 +++ b/docs/yahtmlj Thu May 10 11:40:02 2012 +0900 3.3 @@ -1,542 +1,541 @@ 3.4 -Info file: yahtmlj, -*-Text-*- 3.5 -produced by `texinfo-format-buffer' 3.6 -from file `yahtmlj.tex' 3.7 -using `texinfmt.el' version 2.38 of 3 July 1998. 3.8 - 3.9 - 3.10 - 3.11 - 3.12 - 3.13 - 3.14 -File: yahtmlj, Node: Top, Next: Intro, Prev: (dir), Up: (dir) 3.15 - 3.16 -* Menu: 3.17 - 3.18 -* Intro:: $(B$O$8$a$K 3.19 -(B* Installation:: $(B%$%s%9%H!<%k 3.20 -(B* Command Invocation:: $(B30It%3%^%s%I5/F0 3.21 -(B* Completion:: $(BJd40F~NO 3.22 -(B* Jump:: $(B%+!<%=%k%8%c%s%W 3.23 -(B* Changing and Deleting:: $(BJQ99$H:o=| 3.24 -(B* CSS Support:: $(B%9%?%$%k%7!<%HJd40 3.25 -(B* Customizations:: $(B%+%9%?%^%$%:JQ?t0lMw 3.26 -(B* Copying:: $(B$H$j$"$D$+$$ 3.27 -(B* Concept Index:: $(B:w0z 3.28 - 3.29 - 3.30 - 3.31 - 3.32 -(BFile: yahtmlj, Node: Intro, Next: Installation, Prev: Top, Up: Top 3.33 - 3.34 -$(B$O$8$a$K 3.35 -(B******** 3.36 - 3.37 -yahtml$(B$O (BGNU Emacs $(B>e$G (BHTML$(BJ8=q$r:n@.$9$k;~$K!"HK;($J(BHTML$(B%?%0$NF~NO$rJd40 3.38 -5!G=$K$h$C$F%9%`!<%:$K9T$($k$h$&$K$9$k$@$1$G$J$/!"(Bweblint$(B$J$I$N9=J8%A%'%C 3.39 -%/%W%m%0%i%`!"%+!<%=%k0LCV$N(BURL$(B$d%U%!%$%kL>$K0MB8$7$?%V%i%&%6(B/$(B%$%a!<%8%t%e!< 3.40 -%"$N5/F0$J$I$r (BEmacs $(BJT=82hLLCf$+$i9T$($k$h$&$K$9$k%Q%C%1!<%8$G$9!# 3.41 - 3.42 -(B($(B$3$N(BInfo$(B$OL$40@.$G$9(B(__)$(B!D(B) 3.43 - 3.44 - 3.45 - 3.46 -File: yahtmlj, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top 3.47 - 3.48 -$(B%$%s%9%H!<%k 3.49 -(B************ 3.50 -* Menu: 3.51 - 3.52 -* yahtml$(B5/F0$N$?$a$N@_Dj(B:: 3.53 -* lint$(B%W%m%0%i%`(B/$(B%V%i%&%6(B/$(B%$%a!<%8%t%e!<%"4D6-Ey$N@_Dj(B:: 3.54 -* WWW$(B%Z!<%84D6-MQJQ?t$N@_Dj(B:: 3.55 - 3.56 - 3.57 - 3.58 -File: yahtmlj, Node: yahtml$(B5/F0$N$?$a$N@_Dj(B, Next: lint$(B%W%m%0%i%`(B/$(B%V%i%&%6(B/$(B%$%a!<%8%t%e!<%"4D6-Ey$N@_Dj(B, Prev: Installation, Up: Installation 3.59 - 3.60 -yahtml$(B5/F0$N$?$a$N@_Dj 3.61 -(B====================== 3.62 - 3.63 - 3.64 -`~/.emacs'$(B$K2<$N(B2$(B9`L\$r2C$($^$9!# 3.65 - 3.66 - (B(setq auto-mode-alist 3.67 - (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist)) 3.68 - (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t) 3.69 - 3.70 -$(B<!$K(Byahtml$(B$KI,MW$J%U%!%$%k(B(`yahtml.el', `yatexlib.el', `yatexprc.el') $(B$rCV 3.71 -$/%G%#%l%/%H%j$r (Bload-path $(B$K2C$($^$9!#$?$H$($P!" (B`~/src/emacs/yahtml'$(B$KCV 3.72 -$/$N$G$"$l$P!" 3.73 - 3.74 - (B(setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path)) 3.75 - 3.76 -$(B$J$I$H$7$^$9!# 3.77 - 3.78 - 0J>e$N@_Dj$K$h$j!"3HD%;R$, (B.html $(B$G$"$k%U%!%$%k$rJT=8$9$k$H<+F0E*$K 3.79 -(Byahtml $(B$,%m!<%I$5$l$^$9!#(Byahtml$(B$,@5>o$K5/F0$G$-$?$H$-$O%b!<%I%i%$%s$NI=<( 3.80 -$,!V(Byahtml$(B!W$KJQ$o$j$^$9!# 3.81 - 3.82 - 3.83 - 3.84 -(BFile: yahtmlj, Node: lint$(B%W%m%0%i%`(B/$(B%V%i%&%6(B/$(B%$%a!<%8%t%e!<%"4D6-Ey$N@_Dj(B, Next: WWW$(B%Z!<%84D6-MQJQ?t$N@_Dj(B, Prev: yahtml$(B5/F0$N$?$a$N@_Dj(B, Up: Installation 3.85 - 3.86 -lint$(B%W%m%0%i%`(B/$(B%V%i%&%6(B/$(B%$%a!<%8%t%e!<%"4D6-Ey$N@_Dj 3.87 -(B==================================================== 3.88 - 3.89 -$(BMxMQ$9$k30It%W%m%0%i%`$J$I$K4X$9$k0J2<$NJQ?t$r3NG'$7!"I,MW$J$i@5$7$$CM$KJQ 3.90 -99$7$^$9(B($(B3g8LFb$O%G%U%)%k%HCM(B)$(B!# 3.91 -(B`yahtml-www-browser' 3.92 - ... $(B5/F0$9$k%V%i%&%6$N%3%^%s%IL>(B(netscape) 3.93 -`yahtml-image-viewer' 3.94 - ... $(B5/F0$9$k2hA|%S%e!<%"$N%3%^%s%IL>(B(xv) 3.95 -`yahtml-lint-program' 3.96 - ... $(B9=J8%A%'%C%/%W%m%0%i%`$N%3%^%s%IL>(B(jweblint) 3.97 -`yahtml-kanji-code' 3.98 - ... html$(B%U%!%$%k$N4A;z%3!<%I 3.99 - 3.100 - 3.101 - 3.102 -(BFile: yahtmlj, Node: WWW$(B%Z!<%84D6-MQJQ?t$N@_Dj(B, Prev: lint$(B%W%m%0%i%`(B/$(B%V%i%&%6(B/$(B%$%a!<%8%t%e!<%"4D6-Ey$N@_Dj(B, Up: Installation 3.103 - 3.104 -WWW$(B%Z!<%84D6-MQJQ?t$N@_Dj 3.105 -(B========================= 3.106 - 3.107 -$(B%[!<%`%Z!<%8$H$J$k%U%!%$%k$,B8:_$9$k(BPATH$(BL>$K4X$9$kJQ?t$r@_Dj$7$^$9!# 3.108 -(B`yahtml-path-url-alist' 3.109 - ... $(B%U%!%$%k%7%9%F%`>e$N(BPATH$(BL>$H!"(BURL$(B$NBP1~I= 3.110 -(B`yahtml-directory-index' 3.111 - ... URL$(B;XDj$G%U%!%$%kL>$r>JN,$7$?$H$-$KI=<($5$l$k%$%s%G%C%/%9 3.112 - %U%!%$%kL>(B(NCSA$(B7O(Bhttpd$(B$J$i (B`index.html', CERN$(B7O$J$i(B`Welcome.html'$(B$,0l 3.113 - HLE*(B) 3.114 - 3.115 -$(BJQ?t (B`yahtml-path-url-alist' $(B$N@_DjNc$r<($7$^$9!#Nc$($P!"<+Bp$G$O!" 3.116 -(B`/home/yuuji/http/' $(B$, (B`http://localhost/~yuuji' $(B$G;2>H$G$-!"?&>l$G$O 3.117 -(B`/usr/home/yuuji/www/' $(B$,(B`http://www.keio.ac.jp/~yuuji/' $(B$G;2>H$G$-$k$h$& 3.118 -$K$J$C$F$$$k>l9g$O0J2<$N$h$&$K@_Dj$7$^$9!# 3.119 - 3.120 - (B(setq yahtml-path-url-alist 3.121 - '(("/home/yuuj/http" . "http://localhost/~yuuji") 3.122 - ("/usr/home/yuuj/www" . "http://www.keio.ac.jp/~yuuji"))) 3.123 - 3.124 -$(B$3$NBP1~AH$O$$$/$i$G$b@_Dj$9$k$3$H$,$G$-$^$9!# 3.125 - 3.126 - 3.127 - 3.128 -(BFile: yahtmlj, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top 3.129 - 3.130 -$(B30It%3%^%s%I5/F0 3.131 -(B**************** 3.132 - 3.133 -HTML$(B%U%!%$%kJT=8$K$+$+$o$k$$$/$D$+$N%3%^%s%I$rB(:B$K8F$V$3$H$,$G$-$^$9!# 3.134 -(B`[prefix] t j' 3.135 - ... HTML$(B9=J8%A%'%C%+(B(jweblint)$(B5/F0 3.136 -(B`[prefix] t p' 3.137 - ... $(B8=:_$N%Z!<%8$rBP>]$H$7$?%V%i%&%65/F0 3.138 -(B`[prefix] t r' 3.139 - ... $(B8=:_$N%Z!<%8$,%V%i%&%6$KI=<($5$l$F$$$k$H$-$N(Breload$(B;XDj 3.140 - 3.141 - 3.142 - 3.143 -(BFile: yahtmlj, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top 3.144 - 3.145 -$(BJd40F~NO 3.146 -(B******** 3.147 - 3.148 -$(B!VLnD;!W$GMxMQ$G$-$k!"!V(Bbegin$(B7?Jd40!W!"!V(Bsection$(B7?Jd40!W!"!V(Blarge$(B7?Jd40!W!" 3.149 -!V(Bmaketitle$(B7?Jd40!W!"!V%"%/%;%s%HJd40!W$HA4$/F1$8%-!<A`:n$GBP1~$9$k(BHTML$(B%? 3.150 -%0$NJd40F~NO$,$G$-$^$9!#$=$l$>$l$N7?$NJd40$O=g$K!"!VJ#?t9T$KEO$k%?%0F~NO!W!" 3.151 -!V6uMWAG%?%0(B(img$(B$J$I(B)$(B$NJd40!W!"!V0l9TFb$G$N3+;O(B/$(B=*N;%?%0$NF~NO!W!"!V6uMWAG 3.152 -6uB0@-%?%0$NF~NO!W!"!VJ8;z;2>HF~NO!W$KBP1~$7$F$$$^$9!#6qBNE*$K$O 3.153 - 3.154 -(B`[prefix] b ($(BLnD;$N(Bbegin$(BJd40$KBP1~(B)' 3.155 - ... 3.156 - <ul> 3.157 - </ul> 3.158 - 3.159 - $(B$N$h$&$K3+;O%?%0$H=*N;%?%0$rFs9T$KEO$C$F=q$-$?$$>l9g$NJd40$r;X$7$^$9!# 3.160 - $*$b$K%V%m%C%/7?%?%0$,Jd408uJd$K4^$^$l$^$9!# 3.161 - 3.162 -(B`[prefix] s ($(BLnD;$N(Bsection$(B7?Jd40$KBP1~(B)' 3.163 - ... 3.164 - <img src="foo.gif" alt="photo"> 3.165 - 3.166 - $(B$N$h$&$K=*N;%?%0$r;}$?$:!"$+$DB0@-CM$N$_$G5!G=$r;XDj$9$k%?%0$rJd40$7 3.167 - $^$9!#Jd408uJd$H$7$F$O!"(Bimg, input $(B$,B8:_$7$^$9!# 3.168 - 3.169 -(B`[prefix] l ($(BLnD;$N(Blarge$(B7?Jd40$KBP1~(B)' 3.170 - ... begin$(B7?Jd40$H$[$\F1$8$G$9$,!" 3.171 - 3.172 - (B<big> $(B!A (B</big> 3.173 - 3.174 - $(B$N$h$&$K0l9TFb$K3+;O(B/$(B=*N;%?%0$rF~$l$?$$$H$-$KMxMQ$7$^$9!# 3.175 - 3.176 -(B`[prefix] m ($(BLnD;$N(Bmaketitle$(B7?Jd40$KBP1~(B)' 3.177 - ... $(BMWAG$bB0@-CM$b;}$?$J$$%?%0$rJd40F~NO$7$^$9!#(B<br> 3.178 - $(B$J$I$,Jd408uJd$KAjEv$7$^$9!# 3.179 - 3.180 -(B`[prefix] a ($(BLnD;$N%"%/%;%s%HJd40$KBP1~(B)' 3.181 - ... $(B%(%s%F%#%F%#;2>H$K$h$kJ8;zI=5-$rF~NO$9$k$H$-$KMQ$$$^$9!# 3.182 - %G%U%)%k%H$G$O (B< (<), > (>), & (&), " ("), ' ('), 3.183 - $(B%V%i%s%/ (B( ) $(B$NJd40F~NO$,9T$($^$9!# 3.184 - 3.185 - 3.186 - 3.187 -(BFile: yahtmlj, Node: Jump, Next: Changing and Deleting, Prev: Completion, Up: Top 3.188 - 3.189 -$(B%+!<%=%k%8%c%s%W 3.190 -(B**************** 3.191 -$(BJ8=qCf$N$$$m$$$m$J>l=j$G 3.192 - 3.193 -(B`[prefix] g' 3.194 - ... $(BBP1~$9$k%*%V%8%'%/%H$K%8%c%s%W 3.195 - 3.196 -$r2!$9$3$H$K$h$j!"%+!<%=%k0LCV$N(BHTML$(B9=J8$KBP1~$9$k>l=j$K%8%c%s%W$7$^$9!#BP 3.197 -1~4X78$,B8:_$9$k$H2r<a$5$l$k%3%^%s%I$K$O0J2<$N$b$N$,$"$j$^$9!# 3.198 - 3.199 - (B* `<TAG>' $(B"+"* (B`</TAG>' 3.200 - * `<img src="$(B2hA|%U%!%$%k(B">' $(B"* BP1~$9$k(Bviewer$(B5/F0 3.201 - (B* `<a href="$(B%j%s%/@h(B">' $(B"* %j%s%/@h$X$N%]%$%s%H0\F0 3.202 - (B* `<applet code="$(B%W%m%0%i%`(B">' $(B"* (BJava$(B%=!<%9%W%m%0%i%`$X$N0\F0 3.203 - 3.204 - 3.205 - 3.206 -(BFile: yahtmlj, Node: Changing and Deleting, Next: CSS Support, Prev: Jump, Up: Top 3.207 - 3.208 -$(BJQ99(B/$(B:o=| 3.209 -(B********* 3.210 - 3.211 -* Menu: 3.212 - 3.213 -* $(BBP%?%0$NJQ99(B:: 3.214 -* $(BJ8;z;2>H$X$NJQ99(B:: 3.215 -* $(B%j%8%g%sFbJ8;z$N(BURLencode:: 3.216 -* td$(B3g$j(B/tr$(B3g$j(B:: 3.217 - 3.218 - 3.219 - 3.220 -File: yahtmlj, Node: $(BBP%?%0$NJQ99(B, Next: $(BJ8;z;2>H$X$NJQ99(B, Prev: Changing and Deleting, Up: Changing and Deleting 3.221 - 3.222 -$(BBP%?%0$NJQ99 3.223 -(B============ 3.224 -$(BJ8=qCf$N$$$m$$$m$J>l=j$G 3.225 - 3.226 -(B`[prefix] c' 3.227 - ... $(BBP1~$9$k%?%0Ey$rJQ99 3.228 - 3.229 -$r2!$9$3$H$K$h$j!"%+!<%=%k0LCV$N(BHTML$(B9=J8$K1~$8$?5-=RFbMF$NJQ99$r9T$$$^$9!# 3.230 -%+!<%=%k0LCV$HJQ99$9$kFbMF$NBP1~$O0J2<$NDL$j$G$9!# 3.231 - 3.232 - (B* `<TAG>'$(B!A(B`</TAG>' 3.233 - ... `TAG' $(B$NJQ99 3.234 - (B* `<img src="$(B2hA|%U%!%$%k(B" alt="photo">' $(B$J$I$NB0@-CM 3.235 - (B... $(BB0@-CM$NJQ99 3.236 - 3.237 - 3.238 - 3.239 -(BFile: yahtmlj, Node: $(BJ8;z;2>H$X$NJQ99(B, Prev: $(BBP%?%0$NJQ99(B, Up: Changing and Deleting 3.240 - 3.241 -$(BJ8;z;2>H$X$NJQ99 3.242 -(B================ 3.243 -$(BJ8;z$H$7$F$N (B< $(B$d (B> $(B$rI=8=$9$k$H$-$O!"J8;z;2>H$rMQ$$$F(B< $(B$d (B> $(B$HI=5- 3.244 -$9$kI,MW$,$"$j$^$9$,!"(BHTML$(B0J30$N%U%!%$%k$+$i$3$l$i$NJ8;z$r4^$`%F%-%9%H$rD% 3.245 -$j9~$s$@>l9g$J$I$K!"$3$l$i$NJ8;z$r0l3g$7$FJ8;z;2>H7A<0$KJQ49$G$-$^$9!# 3.246 - 3.247 -(B`[prefix] ;' 3.248 - ... $(B;XDj$7$?NN0h$NJ8;z;2>H$KCV$-49$($k$Y$-J8;z$NCV49 3.249 -(B`[prefix] :' 3.250 - ... $(B;XDj$7$?NN0h$NJ8;z;2>H$r;2>HJ8;z$=$N$b$N$KCV49(B([prefix] ; 3.251 - $(B$N5UJQ49(B) 3.252 - 3.253 - 3.254 - 3.255 - 3.256 -File: yahtmlj, Node: $(B%j%8%g%sFbJ8;z$N(BURLencode, Next: td$(B3g$j(B/tr$(B3g$j(B, Prev: $(BJ8;z;2>H$X$NJQ99(B, Up: Changing and Deleting 3.257 - 3.258 -$(B%j%8%g%sFbJ8;z$N(BURLencode 3.259 -========================= 3.260 - [prefix] # 3.261 - 3.262 - ... $(B;XDj$7$?NN0hFb$K (BURLencode $(B$9$Y$-J8;z$,$"$l$P$=$l$i$r%(%s 3.263 - %3!<%II=5-$KCV49!# 3.264 - 3.265 - 3.266 - 3.267 -(BFile: yahtmlj, Node: td$(B3g$j(B/tr$(B3g$j(B, Prev: $(B%j%8%g%sFbJ8;z$N(BURLencode, Up: Changing and Deleting 3.268 - 3.269 -td$(B3g$j(B/tr$(B3g$j 3.270 -(B============= 3.271 -$(B6uGr6h@Z$j$G=q$$$?I=7A<0$N9T%l%3!<%I$r (B<td> $(B3g$j$NJB$S!$$"$k$$$O$=$l$i$r$5 3.272 -$i$K (B<tr> $(B$G3g$C$?9TJB$S$KJQ49$G$-$^$9!# 3.273 - (B`[prefix] '} 3.274 - 3.275 - ... $(B8=:_$N%j%8%g%s$K$"$k%G!<%?$r6uGr6h@Z$j$4$H$K 3.276 - (B<td>...</td> $(B$G3g$k 3.277 - (B`[prefix] ]' 3.278 - 3.279 - ... $(B8=:_$N%j%8%g%s$K$"$k9T$r>e5-(Btd$(B3g$j$r$[$I$3$7$F$+$i$5$i$K9T$4$H 3.280 -$K (B<tr>...</tr> $(B$G3g$k%G%U%)%k%H$G$O6uGr6h@Z$j$G$9$,!$$3$l$rJQ$($k$H$-$O 3.281 -(BDelimiter: $(B$NLd$$9g$o$;$K6h@Z$jJ8;z$r;XDj$7$^$9!#$?$H$($P%+%s%^(B(,) $(B$r;XDj 3.282 -$9$k$H(BCSV$(B$+$iI=$r:n$k$3$H$,$G$-$^$9!# 3.283 - 3.284 -(Btd$(B0J30$NMWAG!$6qBNE*$K$O (Bth $(B$G3g$j$?$$>l9g$O (Buniversal-argument (`C-u') $(B$r 3.285 -$D$1$F>e5-(B2$(B$D$N%3%^%s%I$r8F$S$^$9!#$I$NMWAG$G3g$k$+$N<ALd$,A}$($k$N$G$=$l 3.286 -$K (Bth $(B$HF~$l$l$P!$3F%U%#!<%k%I$r (B<th>...</th> $(B$G3g$j$^$9!#$b$7!$Bh(B1$(B%U%#!< 3.287 -%k%I$N$_ (Bth $(B$G!$;D$j$rA4It (Btd $(B3g$j$K$7$?$$$H$-$O (Bthd $(B$HF~NO$7$F2<$5$$!# 3.288 - 3.289 - 3.290 - 3.291 -(BFile: yahtmlj, Node: CSS Support, Next: Customizations, Prev: Changing and Deleting, Up: Top 3.292 - 3.293 -CSS($(B%9%?%$%k%7!<%H(B)$(B%5%]!<%H 3.294 -(B*************************** 3.295 - 3.296 -* Menu: 3.297 - 3.298 -* CSS-class completion:: 3.299 -* Reread CSS file:: 3.300 - 3.301 - 3.302 - 3.303 -File: yahtmlj, Node: CSS-class completion, Next: Reread CSS file, Prev: CSS Support, Up: CSS Support 3.304 - 3.305 -CSS$(B%/%i%9L>Jd40 3.306 -(B=============== 3.307 -HTML$(B20$O(BCSS(Cascading Style Sheets)$(B$N%/%i%9L>$rJd40F~NO$9$k$3$H$,$G$-$^$9!# 3.308 -%9%?%$%kDj5A$H$7$F 3.309 - 3.310 - (Bh1.foo, h2.foo { background-color: 0xffffff; } 3.311 - h1.bar, h2.bar { font-size: 120%; } 3.312 - 3.313 -$(B$N$h$&$J$b$N$,$"$C$?>l9g$K!"(Bh1$(B$^$?$O(Bh2$(B%?%0$r (B[prefix] b $(B$d (B[prefix] l $(B$GJd 3.314 -40F~NO$7$?>l9g$K!"$=$l$i$KM-8z$J (Bclass $(BL>$G$"$k (Bfoo, bar $(B$r8uJd$H$7$FJd40 3.315 -F~NO$9$k$3$H$,2DG=$G$9!#$^$? 3.316 - 3.317 - (B.caution { font-size: 120%; background-color: 0xc00000;} 3.318 - 3.319 -$(B$N$h$&$JA4$F$N%(%l%a%s%H$KF/$/(Bclass$(B$,Dj5A$5$l$F$$$?>l9g$O!"A4$F$N%?%0$NJd 3.320 -40F~NO;~$K(Bclass$(B;2>HF~NO$r5a$a$i$l$^$9!#$3$l$,HQ$o$7$$>l9g$O%(%l%a%s%HL>F~ 3.321 -NO3NDj$N$H$-$K%j%?!<%s%-!<(B($(B$^$?$O(BC-m)$(B$G$O$J$/!"(BC-j$(B$r2!$;$P(Bclass$(BJd40F~NO$r 3.322 -%-%c%s%;%k$G$-$^$9!#$?$H$($P 3.323 - 3.324 - (B`[prefix] l' $(B9TFb%?%0Jd40$r5/F0 3.325 - (B($(B$^$?$O(B`[prefix] l SPC') 3.326 - tt <tt></tt>$(B$r$$$l$?$$$N$G(Btt$(B$HF~NO 3.327 - (B`C-m' 3.328 - 3.329 -$(B$H$7$?>l9g$OB3$$$F (Bclass= $(B$HJd40%W%m%s%W%H$,=P$^$9$,!" 3.330 - 3.331 - (B`[prefix] l' $(B9TFb%?%0Jd40$r5/F0 3.332 - (B($(B$^$?$O(B`[prefix] l SPC') 3.333 - tt <tt></tt>$(B$r$$$l$?$$$N$G(Btt$(B$HF~NO 3.334 - (B`C-j' 3.335 - 3.336 -$(B$H:G8e$r (B`C-j' $(B$GF~NO$7$?>l9g$O (Bclass $(BJd40%W%m%s%W%H$O=P$^$;$s!# 3.337 - 3.338 - 3.339 - 3.340 -(BFile: yahtmlj, Node: Reread CSS file, Prev: CSS-class completion, Up: CSS Support 3.341 - 3.342 -CSS$(BDj5A%U%!%$%k$NFI$_D>$7 3.343 -(B========================= 3.344 -html$(B%U%!%$%k$rJT=8Cf$K(BCSS$(BDj5A%U%!%$%k$r=$@5$7!"DI2C$7$?(Bclass$(B$rJd408uJd$H$7 3.345 -$FD>$A$KFI$_9~$^$;$?$$>l9g$O!"(B`M-x yahtml-mode' $(B$H$7$F:F5/F0$r9T$C$F$/$@$5 3.346 -$$!# 3.347 - 3.348 - 3.349 - 3.350 -(BFile: yahtmlj, Node: Customizations, Next: Copying, Prev: CSS Support, Up: Top 3.351 - 3.352 -$(B%+%9%?%^%$%: 3.353 -(B************ 3.354 - 3.355 -yahtml$(B$NF0:n$r@)8f$9$kJQ?t$K$D$$$F@bL@$7$^$9!# 3.356 - 3.357 -(B* Menu: 3.358 - 3.359 -* All customizable variables:: $(B%+%9%?%^%$%:JQ?t0lMw 3.360 -(B* Hook variables:: hook$(BJQ?t 3.361 - 3.362 - 3.363 - 3.364 -(BFile: yahtmlj, Node: All customizable variables, Next: Hook variables, Prev: Customizations, Up: Customizations 3.365 - 3.366 -$(B%+%9%?%^%$%:JQ?t0lMw 3.367 -(B==================== 3.368 - 3.369 - -- Variable: yahtml-prefix 3.370 - yahtml-mode $(BCf$N%W%j%U%#%/%9%-!< (B(`\C-c') 3.371 - 3.372 - -- Variable: yahtml-image-viewer 3.373 - img$(B$G;2>H$7$F$$$k2hA|%U%!%$%k$rI=<($9$k$H$-$K5/F0$9$k%3%^%s%I (B(xv) 3.374 - 3.375 - -- Variable: yahtml-www-browser 3.376 - `[prefix]g' $(B$G30It%Z!<%8$rI=<($9$k$H$-$K5/F0$9$k%V%i%&%6 (B(netscape) 3.377 - 3.378 - -- Variable: yahtml-kanji-code 3.379 - $(B%G%U%)%k%H$N4A;z%3!<%I!#(B1=sjis, 2=jis, 3=euc, 4=utf-8 (2) 3.380 - .htaccess $(B%U%!%$%k$K 3.381 - (BAddType "text/html; charset=xxx" .html $(B$N5-=R$,$"$C$?>l9g$O$=$l 3.382 - $K=>$& 3.383 - 3.384 - (B-- Variable: yahtml-fill-column 3.385 - auto-fill$(B$9$k$H$-$N%+%i%`?t (B(72) 3.386 - 3.387 - -- Variable: yahtml-fill-prefix 3.388 - yahtml-mode $(B8GM-$N(Bfill-prefix (`nil') 3.389 - 3.390 - -- Variable: yahtml-path-url-alist 3.391 - OS$(B$N%U%!%$%k%7%9%F%`>e$G$N%U%k%Q%9L>$H!"$=$N30It8x3+;~$N(BURL$(B$NBP1~I=!# 3.392 - 3.393 - (B-- Variable: yahtml-directory-index 3.394 - $(B%5!<%P%"%/%;%9;~%U%!%$%kL>$r>JN,$7$?$H$-$K%G%U%)%k%H$G3+$+$l$k%$%s%G%C 3.395 - %/%9%U%!%$%k$NL>A0!#B?$/$N>l9g (Bindex.html$(B!#(B(`"index.html"') 3.396 - 3.397 - -- Variable: yahtml-lint-program 3.398 - HTML$(B9=J8%A%'%C%/%W%m%0%i%`!#(B(`"jweblint"') 3.399 - 3.400 - -- Variable: yahtml-hate-too-deep-indentation 3.401 - $(B%M%9%H$7$?Ns5s7O4D6-$G$N%$%s%G%s%H$,?<$9$.$k$H$-$K(Bt$(B$K$9$k!#(B(`nil') 3.402 - 3.403 - -- Variable: yahtml-always-/p 3.404 - `<p>' $(B$r$$$l$?$iI,$: (B`</p>' $(B$7$?$$?M8~$1!#(B`nil' 3.405 - 3.406 - -- Variable: yahtml-p-prefered-env-regexp 3.407 - $(B<+F0E*$K (B`<p>' $(B$rF~$l$FM_$7$$4D6-!# 3.408 - (B(`"^\\(body\\|dl\\|blockquote\\)"') 3.409 - 3.410 - -- Variable: yahtml-template-file 3.411 - $(B?75,(BHTML$(B%U%!%$%k:n@.;~$K<+F0E*$KA^F~$7$FM_$7$$%U%!%$%kL>!# 3.412 - (B`"~/http/template.html"' 3.413 - 3.414 - -- Variable: yahtml-prefer-upcases 3.415 - $(B%?%0$KBgJ8;z$r;H$$$?$$!#(B`nil' 3.416 - 3.417 - -- Variable: yahtml-prefer-upcase-attributes 3.418 - $(BB0@-;XDj;R$KBgJ8;z$r;H$$$?$$!#(B`nil' 3.419 - 3.420 - -- Variable: yahtml-server-type 3.421 - Apache$(B7O$N%5!<%P$rMxMQ$7$F$$$k>l9g$O (B'apache $(B$r%;%C%H$9$k!# 3.422 - (B./.htaccess $(B$r;2>H$9$k$+$I$&$+$r7hDj$9$k!#(B`'apache' 3.423 - 3.424 - -- Variable: yahtml-apache-access-file 3.425 - `yahtml-server-type' $(B$, (B`'apache' $(B$N$H$-$K%"%/%;%9@)8B%U%!%$%kL>$r;X 3.426 - Dj!#(B`".htaccess"' 3.427 - 3.428 - -- Variable: yahtml-shell-command-option 3.429 - $(B%7%'%k$GJL%3%^%s%I$r5/F0$9$k$H$-$N%*%W%7%g%s!# 3.430 - 3.431 - (B-- Variable: yahtml-translate-hyphens-when-comment-region 3.432 - $(BNN0h%3%a%s%H%"%&%H$r$9$k$H$-$K4{$KB8:_$9$k%O%$%U%s$r (B`-' $(B$KJQ99$9 3.433 - $k$+$I$&$+!#(B(`t') 3.434 - 3.435 - -- Variable: yahtml-entity-reference-chars-alist 3.436 - $(B%(%s%F%#%F%#;2>H(B(Entity Reference)$(B$G5-=R$9$Y$-J8;z72$r(B`'(?$(BJ8;z (B. "$(B%( 3.437 - %s%F%#%F%#I=5-(B")' $(B$H$$$&7A<0$rNs5s$7$?(Balist$(B$GJB$Y$k!#%G%U%)%k%H$G 3.438 - (B`<', `>', `&', `'', `"' $(B$KBP$9$k(Balist$(B$,@_Dj$5$l$F$$$k$N$G!"DI2C$7$?$$ 3.439 - J,$@$1$r5-=R$9$l$PNI$$!#(Bcdr$(BIt (B`"$(B%(%s%F%#%F%#I=5-(B"' $(B$O!"@hF,$N (B`&' $(B$H 3.440 - KvHx$N(B`;' $(B$O4^$a$:$K=q$/!# 3.441 - 3.442 - (B-- Variable: yahtml-faithful-to-htmllint 3.443 - $(B9=J8%A%'%C%+$H$7$F (Bhtmllint $(B$rMxMQ$9$k>l9g$A$g$C$H$7$?M>7W$J6uGr$J$I 3.444 - $KBP$7$F$b7Y9p$r<($9$N$G!"$3$l$r2sHr$9$k$H$-$K$O$3$NJQ?t$r(B`t'$(B$K$9$k!# 3.445 - 3.446 - (B-- Variable: yahtml-use-css 3.447 - CSS$(B$NJd405!G=$r;H$&$+$I$&$+ (B(`t') 3.448 - 3.449 - -- Variable: yahtml-image-inspection-bytes 3.450 - $(B2hA|%U%!%$%k$N%5%$%:$rD4$Y$k$H$-$KFI$_9~$`%P%$%H?t (B(`10000') 3.451 - 3.452 - -- Variable: yahtml:img-default-alt-format 3.453 - <img src...>$(B$N(BALT$(BB0@-$N%G%U%)%k%HJ8;zNs$N=q<0!#(B%x$(B$O2hA|$NI}!"(B%y$(B$O2hA| 3.454 - $N9b$5!"(B%s$(B$O%U%!%$%k%5%$%:$KCV49$5$l$k (B(`"%xx%y(%sbytes)"') 3.455 - 3.456 - -- Variable: yahtml-escape-chars 3.457 - href$(BJd40$J$I$N$H$-$KM=LsJ8;z$r(BURL$(B%(%s%3!<%I$9$k$+(B; 'ask$(B$N$H$-$O3NG'$7 3.458 - $F$+$iCV49$9$k (B(`'ask') 3.459 - 3.460 - -- Variable: yahtml-use-font-lock 3.461 - $(B%=!<%9$N?'$E$1%Q%C%1!<%8$H$7$F (Bfont-lock $(B$rMxMQ$9$k$+(B(`(featurep 3.462 - 'font-lock)') 3.463 - 3.464 - -- Variable: yahtml-use-hilit19 3.465 - $(B%=!<%9$N?'$E$1%Q%C%1!<%8$H$7$F (Bhilit19 $(B$rMxMQ$9$k$+(B(`(featurep 3.466 - 'hilit19)') 3.467 - 3.468 - -- Variable: yahtml-indentation-boundary 3.469 - $(B%$%s%G%s%H7W;;$rBG$A@Z$C$F$h$$6-3&$H$J$k@55,I=8=(B(`"^\\s *<h[1-3]>"') 3.470 - 3.471 - 3.472 - 3.473 -File: yahtmlj, Node: Hook variables, Prev: All customizable variables, Up: Customizations 3.474 - 3.475 -hook$(BJQ?t 3.476 -(B======== 3.477 - 3.478 - 3.479 - 3.480 - 3.481 -File: yahtmlj, Node: Copying, Next: Concept Index, Prev: Customizations, Up: Top 3.482 - 3.483 -$(B<h$j07$$ 3.484 -(B******** 3.485 - 3.486 - $(BK\%W%m%0%i%`$O%U%j!<%=%U%H%&%'%"$G$9!#K\%W%m%0%i%`$r;HMQ$7$F@8$8$?$$$+$J 3.487 -$k7k2L$KBP$7$F$b:n<T$O@UG$$rIi$o$J$$$3$H$H$7$^$9!#E>:\Ey$K4X$7$F$O@)8B$$$? 3.488 -$7$^$;$s!#>o<1E*$K07$C$F$/$@$5$$!#$^$?!";HMQ$7$F$$$k;]$r%a%$%k$G$*CN$i$;$$ 3.489 -$?$@$/$H!":n<T$O4n$s$G%5%]!<%H$KNe$`$3$H$G$7$g$&!# 3.490 - 3.491 - 6l>p!"4uK>!"%P%0Js9p!"46A[Ey$O4?7^$$$?$7$^$9!#O"Mm$O (Byuuji@yatex.org $(B$^ 3.492 -$G(B(2000$(BG/(B12$(B7n8=:_(B)$(B!#7QB3E*$K;HMQ$7$F$/$@$5$kJ}$O%a%$%j%s%0%j%9%H!V(Bfj$(BLnD;$N 3.493 -2q!W$K@'Hs2CF~$7$F$/$@$5$$!#2CF~J}K!$K$D$$$F$OK\%Q%C%1!<%8$N (B`docs/htmlqa' 3.494 -$(B%U%!%$%k$N!V$=$NB>!W$N>O$r8fMw$/$@$5$$!# 3.495 - 3.496 -;EMM$O!"M=9p$J$/3N<B$K(B($(B5$J,<!Bh$G(B)$(BJQ99$5$l$^$9(B:-p$(B!# 3.497 - 3.498 - 9-@%M:Fs 3.499 - 3.500 - 3.501 - 3.502 - 3.503 -(BFile: yahtmlj, Node: Concept Index, Prev: Copying, Up: Top 3.504 - 3.505 -$(B:w0z 3.506 -(B**** 3.507 - 3.508 -* Menu: 3.509 - 3.510 -* カスタマイズ[,B)7=\"7(B]: Customizations. 4. 3.511 -* キーアサイン[,B+" 3"q(B]: Customizations. 4. 3.512 -* Demacs: Intro. 4. 3.513 -* HTML(I.(B[HTML,Bb(B]: Intro. 4. 3.514 -* LaTeX: Intro. 4. 3.515 -* Mule: Intro. 4. 3.516 - 3.517 - 3.518 - 3.519 - 3.520 - 3.521 -Tag table: 3.522 -Node: Top148 3.523 -Node: Intro617 3.524 -Node: Installation896 3.525 -Node: yahtml$(B5/F0$N$?$a$N@_Dj(B1095 3.526 -Node: lint$(B%W%m%0%i%`(B/$(B%V%i%&%6(B/$(B%$%a!<%8%t%e!<%"4D6-Ey$N@_Dj(B1749 3.527 -Node: WWW$(B%Z!<%84D6-MQJQ?t$N@_Dj(B2249 3.528 -Node: Command Invocation3020 3.529 -Node: Completion3347 3.530 -Node: Jump4331 3.531 -Node: Changing and Deleting4730 3.532 -Node: $(BBP%?%0$NJQ99(B4950 3.533 -Node: $(BJ8;z;2>H$X$NJQ99(B5300 3.534 -Node: $(B%j%8%g%sFbJ8;z$N(BURLencode5658 3.535 -Node: td$(B3g$j(B/tr$(B3g$j(B5890 3.536 -Node: CSS Support6519 3.537 -Node: CSS-class completion6738 3.538 -Node: Reread CSS file7734 3.539 -Node: Customizations7956 3.540 -Node: All customizable variables8180 3.541 -Node: Hook variables11178 3.542 -Node: Copying11290 3.543 -Node: Concept Index11793 3.544 - 3.545 -End tag table 3.546 +Info file: yahtmlj, -*-Text-*- 3.547 +produced by `texinfo-format-buffer' 3.548 +from file `yahtmlj.tex' 3.549 +using `texinfmt.el' version 2.38 of 3 July 1998. 3.550 + 3.551 + 3.552 + 3.553 + 3.554 + 3.555 + 3.556 +File: yahtmlj, Node: Top, Next: Intro, Prev: (dir), Up: (dir) 3.557 + 3.558 +* Menu: 3.559 + 3.560 +* Intro:: はじめに 3.561 +* Installation:: インストール 3.562 +* Command Invocation:: 外部コマンド起動 3.563 +* Completion:: 補完入力 3.564 +* Jump:: カーソルジャンプ 3.565 +* Changing and Deleting:: 変更と削除 3.566 +* CSS Support:: スタイルシート補完 3.567 +* Customizations:: カスタマイズ変数一覧 3.568 +* Copying:: とりあつかい 3.569 +* Concept Index:: 索引 3.570 + 3.571 + 3.572 + 3.573 + 3.574 +File: yahtmlj, Node: Intro, Next: Installation, Prev: Top, Up: Top 3.575 + 3.576 +はじめに 3.577 +******** 3.578 + 3.579 +yahtmlは GNU Emacs 上で HTML文書を作成する時に、繁雑なHTMLタグの入力を補完 3.580 +機能によってスムーズに行えるようにするだけでなく、weblintなどの構文チェッ 3.581 +クプログラム、カーソル位置のURLやファイル名に依存したブラウザ/イメージヴュー 3.582 +アの起動などを Emacs 編集画面中から行えるようにするパッケージです。 3.583 + 3.584 +(このInfoは未完成です(__)…) 3.585 + 3.586 + 3.587 + 3.588 +File: yahtmlj, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top 3.589 + 3.590 +インストール 3.591 +************ 3.592 +* Menu: 3.593 + 3.594 +* yahtml起動のための設定:: 3.595 +* lintプログラム/ブラウザ/イメージヴューア環境等の設定:: 3.596 +* WWWページ環境用変数の設定:: 3.597 + 3.598 + 3.599 + 3.600 +File: yahtmlj, Node: yahtml起動のための設定, Next: lintプログラム/ブラウザ/イメージヴューア環境等の設定, Prev: Installation, Up: Installation 3.601 + 3.602 +yahtml起動のための設定 3.603 +====================== 3.604 + 3.605 + 3.606 +`~/.emacs'に下の2項目を加えます。 3.607 + 3.608 + (setq auto-mode-alist 3.609 + (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist)) 3.610 + (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t) 3.611 + 3.612 +次にyahtmlに必要なファイル(`yahtml.el', `yatexlib.el', `yatexprc.el') を置 3.613 +くディレクトリを load-path に加えます。たとえば、 `~/src/emacs/yahtml'に置 3.614 +くのであれば、 3.615 + 3.616 + (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path)) 3.617 + 3.618 +などとします。 3.619 + 3.620 + 以上の設定により、拡張子が .html であるファイルを編集すると自動的に 3.621 +yahtml がロードされます。yahtmlが正常に起動できたときはモードラインの表示 3.622 +が「yahtml」に変わります。 3.623 + 3.624 + 3.625 + 3.626 +File: yahtmlj, Node: lintプログラム/ブラウザ/イメージヴューア環境等の設定, Next: WWWページ環境用変数の設定, Prev: yahtml起動のための設定, Up: Installation 3.627 + 3.628 +lintプログラム/ブラウザ/イメージヴューア環境等の設定 3.629 +==================================================== 3.630 + 3.631 +利用する外部プログラムなどに関する以下の変数を確認し、必要なら正しい値に変 3.632 +更します(括弧内はデフォルト値)。 3.633 +`yahtml-www-browser' 3.634 + ... 起動するブラウザのコマンド名(netscape) 3.635 +`yahtml-image-viewer' 3.636 + ... 起動する画像ビューアのコマンド名(xv) 3.637 +`yahtml-lint-program' 3.638 + ... 構文チェックプログラムのコマンド名(jweblint) 3.639 +`yahtml-kanji-code' 3.640 + ... htmlファイルの漢字コード 3.641 + 3.642 + 3.643 + 3.644 +File: yahtmlj, Node: WWWページ環境用変数の設定, Prev: lintプログラム/ブラウザ/イメージヴューア環境等の設定, Up: Installation 3.645 + 3.646 +WWWページ環境用変数の設定 3.647 +========================= 3.648 + 3.649 +ホームページとなるファイルが存在するPATH名に関する変数を設定します。 3.650 +`yahtml-path-url-alist' 3.651 + ... ファイルシステム上のPATH名と、URLの対応表 3.652 +`yahtml-directory-index' 3.653 + ... URL指定でファイル名を省略したときに表示されるインデックス 3.654 + ファイル名(NCSA系httpdなら `index.html', CERN系なら`Welcome.html'が一 3.655 + 般的) 3.656 + 3.657 +変数 `yahtml-path-url-alist' の設定例を示します。例えば、自宅では、 3.658 +`/home/yuuji/http/' が `http://localhost/~yuuji' で参照でき、職場では 3.659 +`/usr/home/yuuji/www/' が`http://www.keio.ac.jp/~yuuji/' で参照できるよう 3.660 +になっている場合は以下のように設定します。 3.661 + 3.662 + (setq yahtml-path-url-alist 3.663 + '(("/home/yuuj/http" . "http://localhost/~yuuji") 3.664 + ("/usr/home/yuuj/www" . "http://www.keio.ac.jp/~yuuji"))) 3.665 + 3.666 +この対応組はいくらでも設定することができます。 3.667 + 3.668 + 3.669 + 3.670 +File: yahtmlj, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top 3.671 + 3.672 +外部コマンド起動 3.673 +**************** 3.674 + 3.675 +HTMLファイル編集にかかわるいくつかのコマンドを即座に呼ぶことができます。 3.676 +`[prefix] t j' 3.677 + ... HTML構文チェッカ(jweblint)起動 3.678 +`[prefix] t p' 3.679 + ... 現在のページを対象としたブラウザ起動 3.680 +`[prefix] t r' 3.681 + ... 現在のページがブラウザに表示されているときのreload指定 3.682 + 3.683 + 3.684 + 3.685 +File: yahtmlj, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top 3.686 + 3.687 +補完入力 3.688 +******** 3.689 + 3.690 +「野鳥」で利用できる、「begin型補完」、「section型補完」、「large型補完」、 3.691 +「maketitle型補完」、「アクセント補完」と全く同じキー操作で対応するHTMLタ 3.692 +グの補完入力ができます。それぞれの型の補完は順に、「複数行に渡るタグ入力」、 3.693 +「空要素タグ(imgなど)の補完」、「一行内での開始/終了タグの入力」、「空要素 3.694 +空属性タグの入力」、「文字参照入力」に対応しています。具体的には 3.695 + 3.696 +`[prefix] b (野鳥のbegin補完に対応)' 3.697 + ... 3.698 + <ul> 3.699 + </ul> 3.700 + 3.701 + のように開始タグと終了タグを二行に渡って書きたい場合の補完を指します。 3.702 + おもにブロック型タグが補完候補に含まれます。 3.703 + 3.704 +`[prefix] s (野鳥のsection型補完に対応)' 3.705 + ... 3.706 + <img src="foo.gif" alt="photo"> 3.707 + 3.708 + のように終了タグを持たず、かつ属性値のみで機能を指定するタグを補完し 3.709 + ます。補完候補としては、img, input が存在します。 3.710 + 3.711 +`[prefix] l (野鳥のlarge型補完に対応)' 3.712 + ... begin型補完とほぼ同じですが、 3.713 + 3.714 + <big> 〜 </big> 3.715 + 3.716 + のように一行内に開始/終了タグを入れたいときに利用します。 3.717 + 3.718 +`[prefix] m (野鳥のmaketitle型補完に対応)' 3.719 + ... 要素も属性値も持たないタグを補完入力します。<br> 3.720 + などが補完候補に相当します。 3.721 + 3.722 +`[prefix] a (野鳥のアクセント補完に対応)' 3.723 + ... エンティティ参照による文字表記を入力するときに用います。 3.724 + デフォルトでは < (<), > (>), & (&), " ("), ' ('), 3.725 + ブランク ( ) の補完入力が行えます。 3.726 + 3.727 + 3.728 + 3.729 +File: yahtmlj, Node: Jump, Next: Changing and Deleting, Prev: Completion, Up: Top 3.730 + 3.731 +カーソルジャンプ 3.732 +**************** 3.733 +文書中のいろいろな場所で 3.734 + 3.735 +`[prefix] g' 3.736 + ... 対応するオブジェクトにジャンプ 3.737 + 3.738 +を押すことにより、カーソル位置のHTML構文に対応する場所にジャンプします。対 3.739 +応関係が存在すると解釈されるコマンドには以下のものがあります。 3.740 + 3.741 + * `<TAG>' ←→ `</TAG>' 3.742 + * `<img src="画像ファイル">' → 対応するviewer起動 3.743 + * `<a href="リンク先">' → リンク先へのポイント移動 3.744 + * `<applet code="プログラム">' → Javaソースプログラムへの移動 3.745 + 3.746 + 3.747 + 3.748 +File: yahtmlj, Node: Changing and Deleting, Next: CSS Support, Prev: Jump, Up: Top 3.749 + 3.750 +変更/削除 3.751 +********* 3.752 + 3.753 +* Menu: 3.754 + 3.755 +* 対タグの変更:: 3.756 +* 文字参照への変更:: 3.757 +* リジョン内文字のURLencode:: 3.758 +* td括り/tr括り:: 3.759 + 3.760 + 3.761 + 3.762 +File: yahtmlj, Node: 対タグの変更, Next: 文字参照への変更, Prev: Changing and Deleting, Up: Changing and Deleting 3.763 + 3.764 +対タグの変更 3.765 +============ 3.766 +文書中のいろいろな場所で 3.767 + 3.768 +`[prefix] c' 3.769 + ... 対応するタグ等を変更 3.770 + 3.771 +を押すことにより、カーソル位置のHTML構文に応じた記述内容の変更を行います。 3.772 +カーソル位置と変更する内容の対応は以下の通りです。 3.773 + 3.774 + * `<TAG>'〜`</TAG>' 3.775 + ... `TAG' の変更 3.776 + * `<img src="画像ファイル" alt="photo">' などの属性値 3.777 + ... 属性値の変更 3.778 + 3.779 + 3.780 + 3.781 +File: yahtmlj, Node: 文字参照への変更, Next: リジョン内文字のURLencode, Prev: 対タグの変更, Up: Changing and Deleting 3.782 + 3.783 +文字参照への変更 3.784 +================ 3.785 +文字としての < や > を表現するときは、文字参照を用いて< や > と表記 3.786 +する必要がありますが、HTML以外のファイルからこれらの文字を含むテキストを張 3.787 +り込んだ場合などに、これらの文字を一括して文字参照形式に変換できます。 3.788 + 3.789 +`[prefix] ;' 3.790 + ... 指定した領域の文字参照に置き換えるべき文字の置換 3.791 +`[prefix] :' 3.792 + ... 指定した領域の文字参照を参照文字そのものに置換([prefix] ; 3.793 + の逆変換) 3.794 + 3.795 + 3.796 + 3.797 + 3.798 +File: yahtmlj, Node: リジョン内文字のURLencode, Next: td括り/tr括り, Prev: 文字参照への変更, Up: Changing and Deleting 3.799 + 3.800 +リジョン内文字のURLencode 3.801 +========================= 3.802 + `[prefix] #' 3.803 + 3.804 + ... 指定した領域内に URLencode すべき文字があればそれらをエン 3.805 + コード表記に置換。 3.806 + 3.807 + 3.808 + 3.809 +File: yahtmlj, Node: td括り/tr括り, Prev: リジョン内文字のURLencode, Up: Changing and Deleting 3.810 + 3.811 +td括り/tr括り 3.812 +============= 3.813 +空白区切りで書いた表形式の行レコードを <td> 括りの並び,あるいはそれらをさ 3.814 +らに <tr> で括った行並びに変換できます。 3.815 + `[prefix] }' 3.816 + 3.817 + ... 現在のリジョンにあるデータを空白区切りごとに 3.818 + <td>...</td> で括る 3.819 + `[prefix] ]' 3.820 + 3.821 + ... 現在のリジョンにある行を上記td括りをほどこしてからさらに行ごと 3.822 +に <tr>...</tr> で括るデフォルトでは空白区切りですが,これを変えるときは 3.823 +Delimiter: の問い合わせに区切り文字を指定します。たとえばカンマ(,) を指定 3.824 +するとCSVから表を作ることができます。 3.825 + 3.826 +td以外の要素,具体的には th で括りたい場合は universal-argument (`C-u') を 3.827 +つけて上記2つのコマンドを呼びます。どの要素で括るかの質問が増えるのでそれ 3.828 +に th と入れれば,各フィールドを <th>...</th> で括ります。もし,第1フィー 3.829 +ルドのみ th で,残りを全部 td 括りにしたいときは thd と入力して下さい。 3.830 + 3.831 + 3.832 + 3.833 +File: yahtmlj, Node: CSS Support, Next: Customizations, Prev: Changing and Deleting, Up: Top 3.834 + 3.835 +CSS(スタイルシート)サポート 3.836 +*************************** 3.837 + 3.838 +* Menu: 3.839 + 3.840 +* CSS-class completion:: 3.841 +* Reread CSS file:: 3.842 + 3.843 + 3.844 + 3.845 +File: yahtmlj, Node: CSS-class completion, Next: Reread CSS file, Prev: CSS Support, Up: CSS Support 3.846 + 3.847 +CSSクラス名補完 3.848 +=============== 3.849 +HTML屋はCSS(Cascading Style Sheets)のクラス名を補完入力することができます。 3.850 +スタイル定義として 3.851 + 3.852 + h1.foo, h2.foo { background-color: 0xffffff; } 3.853 + h1.bar, h2.bar { font-size: 120%; } 3.854 + 3.855 +のようなものがあった場合に、h1またはh2タグを [prefix] b や [prefix] l で補 3.856 +完入力した場合に、それらに有効な class 名である foo, bar を候補として補完 3.857 +入力することが可能です。また 3.858 + 3.859 + .caution { font-size: 120%; background-color: 0xc00000;} 3.860 + 3.861 +のような全てのエレメントに働くclassが定義されていた場合は、全てのタグの補 3.862 +完入力時にclass参照入力を求められます。これが煩わしい場合はエレメント名入 3.863 +力確定のときにリターンキー(またはC-m)ではなく、C-jを押せばclass補完入力を 3.864 +キャンセルできます。たとえば 3.865 + 3.866 + [prefix] l 行内タグ補完を起動 3.867 + (または[prefix] l SPC) 3.868 + tt <tt></tt>をいれたいのでttと入力 3.869 + C-m 3.870 + 3.871 +とした場合は続いて class= と補完プロンプトが出ますが、 3.872 + 3.873 + [prefix] l 行内タグ補完を起動 3.874 + (または[prefix] l SPC) 3.875 + tt <tt></tt>をいれたいのでttと入力 3.876 + C-j 3.877 + 3.878 +と最後を `C-j' で入力した場合は class 補完プロンプトは出ません。 3.879 + 3.880 + 3.881 + 3.882 +File: yahtmlj, Node: Reread CSS file, Prev: CSS-class completion, Up: CSS Support 3.883 + 3.884 +CSS定義ファイルの読み直し 3.885 +========================= 3.886 +htmlファイルを編集中にCSS定義ファイルを修正し、追加したclassを補完候補とし 3.887 +て直ちに読み込ませたい場合は、`M-x yahtml-mode' として再起動を行ってくださ 3.888 +い。 3.889 + 3.890 + 3.891 + 3.892 +File: yahtmlj, Node: Customizations, Next: Copying, Prev: CSS Support, Up: Top 3.893 + 3.894 +カスタマイズ 3.895 +************ 3.896 + 3.897 +yahtmlの動作を制御する変数について説明します。 3.898 + 3.899 +* Menu: 3.900 + 3.901 +* All customizable variables:: カスタマイズ変数一覧 3.902 +* Hook variables:: hook変数 3.903 + 3.904 + 3.905 + 3.906 +File: yahtmlj, Node: All customizable variables, Next: Hook variables, Prev: Customizations, Up: Customizations 3.907 + 3.908 +カスタマイズ変数一覧 3.909 +==================== 3.910 + 3.911 + -- Variable: yahtml-prefix 3.912 + yahtml-mode 中のプリフィクスキー (`\C-c') 3.913 + 3.914 + -- Variable: yahtml-image-viewer 3.915 + imgで参照している画像ファイルを表示するときに起動するコマンド (xv) 3.916 + 3.917 + -- Variable: yahtml-www-browser 3.918 + `[prefix]g' で外部ページを表示するときに起動するブラウザ (netscape) 3.919 + 3.920 + -- Variable: yahtml-kanji-code 3.921 + デフォルトの漢字コード。1=sjis, 2=jis, 3=euc, 4=utf-8 (2) 3.922 + .htaccess ファイルに 3.923 + AddType "text/html; charset=xxx" .html の記述があった場合はそれ 3.924 + に従う 3.925 + 3.926 + -- Variable: yahtml-fill-column 3.927 + auto-fillするときのカラム数 (72) 3.928 + 3.929 + -- Variable: yahtml-fill-prefix 3.930 + yahtml-mode 固有のfill-prefix (`nil') 3.931 + 3.932 + -- Variable: yahtml-path-url-alist 3.933 + OSのファイルシステム上でのフルパス名と、その外部公開時のURLの対応表。 3.934 + 3.935 + -- Variable: yahtml-directory-index 3.936 + サーバアクセス時ファイル名を省略したときにデフォルトで開かれるインデッ 3.937 + クスファイルの名前。多くの場合 index.html。(`"index.html"') 3.938 + 3.939 + -- Variable: yahtml-lint-program 3.940 + HTML構文チェックプログラム。(`"jweblint"') 3.941 + 3.942 + -- Variable: yahtml-hate-too-deep-indentation 3.943 + ネストした列挙系環境でのインデントが深すぎるときにtにする。(`nil') 3.944 + 3.945 + -- Variable: yahtml-always-/p 3.946 + `<p>' をいれたら必ず `</p>' したい人向け。`nil' 3.947 + 3.948 + -- Variable: yahtml-p-prefered-env-regexp 3.949 + 自動的に `<p>' を入れて欲しい環境。 3.950 + (`"^\\(body\\|dl\\|blockquote\\)"') 3.951 + 3.952 + -- Variable: yahtml-template-file 3.953 + 新規HTMLファイル作成時に自動的に挿入して欲しいファイル名。 3.954 + `"~/http/template.html"' 3.955 + 3.956 + -- Variable: yahtml-prefer-upcases 3.957 + タグに大文字を使いたい。`nil' 3.958 + 3.959 + -- Variable: yahtml-prefer-upcase-attributes 3.960 + 属性指定子に大文字を使いたい。`nil' 3.961 + 3.962 + -- Variable: yahtml-server-type 3.963 + Apache系のサーバを利用している場合は 'apache をセットする。 3.964 + ./.htaccess を参照するかどうかを決定する。`'apache' 3.965 + 3.966 + -- Variable: yahtml-apache-access-file 3.967 + `yahtml-server-type' が `'apache' のときにアクセス制限ファイル名を指 3.968 + 定。`".htaccess"' 3.969 + 3.970 + -- Variable: yahtml-shell-command-option 3.971 + シェルで別コマンドを起動するときのオプション。 3.972 + 3.973 + -- Variable: yahtml-translate-hyphens-when-comment-region 3.974 + 領域コメントアウトをするときに既に存在するハイフンを `-' に変更す 3.975 + るかどうか。(`t') 3.976 + 3.977 + -- Variable: yahtml-entity-reference-chars-alist 3.978 + エンティティ参照(Entity Reference)で記述すべき文字群を`'(?文字 . "エ 3.979 + ンティティ表記")' という形式を列挙したalistで並べる。デフォルトで 3.980 + `<', `>', `&', `'', `"' に対するalistが設定されているので、追加したい 3.981 + 分だけを記述すれば良い。cdr部 `"エンティティ表記"' は、先頭の `&' と 3.982 + 末尾の`;' は含めずに書く。 3.983 + 3.984 + -- Variable: yahtml-faithful-to-htmllint 3.985 + 構文チェッカとして htmllint を利用する場合ちょっとした余計な空白など 3.986 + に対しても警告を示すので、これを回避するときにはこの変数を`t'にする。 3.987 + 3.988 + -- Variable: yahtml-use-css 3.989 + CSSの補完機能を使うかどうか (`t') 3.990 + 3.991 + -- Variable: yahtml-image-inspection-bytes 3.992 + 画像ファイルのサイズを調べるときに読み込むバイト数 (`10000') 3.993 + 3.994 + -- Variable: yahtml:img-default-alt-format 3.995 + <img src...>のALT属性のデフォルト文字列の書式。%xは画像の幅、%yは画像 3.996 + の高さ、%sはファイルサイズに置換される (`"%xx%y(%sbytes)"') 3.997 + 3.998 + -- Variable: yahtml-escape-chars 3.999 + href補完などのときに予約文字をURLエンコードするか; 'askのときは確認し 3.1000 + てから置換する (`'ask') 3.1001 + 3.1002 + -- Variable: yahtml-use-font-lock 3.1003 + ソースの色づけパッケージとして font-lock を利用するか(`(featurep 3.1004 + 'font-lock)') 3.1005 + 3.1006 + -- Variable: yahtml-use-hilit19 3.1007 + ソースの色づけパッケージとして hilit19 を利用するか(`(featurep 3.1008 + 'hilit19)') 3.1009 + 3.1010 + -- Variable: yahtml-indentation-boundary 3.1011 + インデント計算を打ち切ってよい境界となる正規表現(`"^\\s *<h[1-3]>"') 3.1012 + 3.1013 + 3.1014 + 3.1015 +File: yahtmlj, Node: Hook variables, Prev: All customizable variables, Up: Customizations 3.1016 + 3.1017 +hook変数 3.1018 +======== 3.1019 + 3.1020 + 3.1021 + 3.1022 + 3.1023 +File: yahtmlj, Node: Copying, Next: Concept Index, Prev: Customizations, Up: Top 3.1024 + 3.1025 +取り扱い 3.1026 +******** 3.1027 + 3.1028 + 本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな 3.1029 +る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた 3.1030 +しません。常識的に扱ってください。また、使用している旨をメイルでお知らせい 3.1031 +ただくと、作者は喜んでサポートに励むことでしょう。 3.1032 + 3.1033 + 苦情、希望、バグ報告、感想等は歓迎いたします。連絡は yuuji@yatex.org ま 3.1034 +で(2000年12月現在)。継続的に使用してくださる方はメイリングリスト「fj野鳥の 3.1035 +会」に是非加入してください。加入方法については本パッケージの `docs/htmlqa' 3.1036 +ファイルの「その他」の章を御覧ください。 3.1037 + 3.1038 +仕様は、予告なく確実に(気分次第で)変更されます:-p。 3.1039 + 3.1040 + 広瀬雄二 3.1041 + 3.1042 + 3.1043 + 3.1044 + 3.1045 +File: yahtmlj, Node: Concept Index, Prev: Copying, Up: Top 3.1046 + 3.1047 +索引 3.1048 +**** 3.1049 + 3.1050 +* Menu: 3.1051 + 3.1052 +* カスタマイズ[かすたまいす]: Customizations. 4. 3.1053 +* キーアサイン[きいあさいん]: Customizations. 4. 3.1054 +* Demacs: Intro. 4. 3.1055 +* HTML屋[HTMLや]: Intro. 4. 3.1056 +* LaTeX: Intro. 4. 3.1057 +* Mule: Intro. 4. 3.1058 + 3.1059 + 3.1060 + 3.1061 + 3.1062 +Tag table: 3.1063 +Node: Top151 3.1064 +Node: Intro620 3.1065 +Node: Installation899 3.1066 +Node: yahtml起動のための設定1087 3.1067 +Node: lintプログラム/ブラウザ/イメージヴューア環境等の設定1741 3.1068 +Node: WWWページ環境用変数の設定2241 3.1069 +Node: Command Invocation3012 3.1070 +Node: Completion3339 3.1071 +Node: Jump4323 3.1072 +Node: Changing and Deleting4722 3.1073 +Node: 対タグの変更4896 3.1074 +Node: 文字参照への変更5246 3.1075 +Node: リジョン内文字のURLencode5629 3.1076 +Node: td括り/tr括り5863 3.1077 +Node: CSS Support6492 3.1078 +Node: CSS-class completion6690 3.1079 +Node: Reread CSS file7674 3.1080 +Node: Customizations7896 3.1081 +Node: All customizable variables8120 3.1082 +Node: Hook variables11118 3.1083 +Node: Copying11230 3.1084 +Node: Concept Index11733 3.1085 + 3.1086 +End tag table
4.1 --- a/docs/yahtmlj.tex Thu May 10 11:10:13 2012 +0900 4.2 +++ b/docs/yahtmlj.tex Thu May 10 11:40:02 2012 +0900 4.3 @@ -5,7 +5,7 @@ 4.4 4.5 @iftex 4.6 @c @syncodeindex fn cp 4.7 -@c Last modified Wed Feb 29 09:18:14 2012 on firestorm 4.8 +@c Last modified Thu May 10 11:13:11 2012 on firestorm 4.9 @syncodeindex vr cp 4.10 @end iftex 4.11 4.12 @@ -15,7 +15,7 @@ 4.13 @subtitle Yet Another html-mode for emacs 4.14 @title 『HTML屋』 4.15 @subtitle // yahtml // 4.16 -@author @copyright{} 1994-1997 by HIROSE, Yuuji [yuuji@@yatex.org] 4.17 +@author @copyright{} 1994-2012 by HIROSE, Yuuji [yuuji@@yatex.org] 4.18 @end titlepage 4.19 4.20 @node Top, Intro, (dir), (dir)
5.1 --- a/docs/yatexe Thu May 10 11:10:13 2012 +0900 5.2 +++ b/docs/yatexe Thu May 10 11:40:02 2012 +0900 5.3 @@ -1,2219 +1,2242 @@ 5.4 -Info file: yatexe, -*-Text-*- 5.5 -produced by `texinfo-format-buffer' 5.6 -from file `yatexe.tex' 5.7 -using `texinfmt.el' version 2.38 of 3 July 1998. 5.8 - 5.9 - 5.10 - 5.11 - 5.12 - 5.13 - 5.14 -File: yatexe, Node: Top, Next: What is YaTeX?, Prev: (dir), Up: (dir) 5.15 - 5.16 -* Menu: 5.17 - 5.18 -* What is YaTeX?:: 5.19 -* Main features:: What YaTeX can do 5.20 -* Installation:: Guide to install 5.21 -* Typesetting:: Call typesetting processes 5.22 -* %#notation:: Meta-keyword `%#' 5.23 -* Completion:: Input LaTeX commands with completion 5.24 -* Local dictionaries:: Directory dependent completion 5.25 -* Commenting out:: Commenting/uncommenting text 5.26 -* Cursor jump:: Jumping to related position 5.27 -* Changing and Deleting:: Changing/deleting certain unit of text 5.28 -* Filling:: Filling an item or paragraph 5.29 -* Updation of includeonly:: Free from maintaining includeonly 5.30 -* What column:: Check what table-column the cursor belong 5.31 -* Intelligent newline:: Guess requisites of new line 5.32 -* Usepackage checker:: Selecting correct \usepackage is YaTeX's job 5.33 -* Online help:: On-line documentation of LaTeX 5.34 -* Browsing file hierarchy:: Walking through file hierarchy 5.35 -* Cooperation with other packages:: Work well with gmhist, min-out 5.36 -* Customizations:: How to breed `Wild Bird' 5.37 -* Etcetera:: YaTeX is acquisitive. 5.38 -* Copying:: Redistribution 5.39 - 5.40 - 5.41 - 5.42 - 5.43 -File: yatexe, Node: What is YaTeX?, Next: Main features, Prev: Top, Up: Top 5.44 - 5.45 -What is YaTeX? 5.46 -************** 5.47 - 5.48 - YaTeX automates typesetting and previewing of LaTeX and enables 5.49 -completing input of LaTeX mark-up command such as 5.50 -`\begin{}'..`\end{}'. 5.51 - 5.52 - YaTeX also supports Demacs which runs on MS-DOS(386), Mule (Multi 5.53 -Language Enhancement to GNU Emacs), and latex on DOS. 5.54 - 5.55 - 5.56 - 5.57 -File: yatexe, Node: Main features, Next: Installation, Prev: What is YaTeX?, Up: Top 5.58 - 5.59 -Main features 5.60 -************* 5.61 - 5.62 - * Invocation of typesetter, previewer and related programs(`C-c t') 5.63 - * Typesetting on static region which is independent from point 5.64 - * Semiautomatic replacing of `\includeonly' 5.65 - * Jumping to error line(`C-c '') 5.66 - * Completing-read of LaTeX commands such as `\begin{}', 5.67 - `\section' etc. 5.68 - (`C-c b', `C-c s', `C-c l', `C-c m') 5.69 - * Enclosing text into LaTeX environments or commands 5.70 - (`C-u' ABOVEKEYSTROKES) 5.71 - * Displaying the structure of text at entering sectioning commands 5.72 - * Lump shifting of sectioning commands (*Note view-sectioning::) 5.73 - * Learning unknown/new LaTeX commands for the next completion 5.74 - * Argument reading with a guide for complicated LaTeX commands 5.75 - * Generating argument-readers for new/unsupported commands(`yatexgen') 5.76 - * Quick changing or deleting of LaTeX commands(`C-c c', `C-c k') 5.77 - * Jumping from and to inter-file, begin<->end, ref<->label(`C-c g') 5.78 - * Blanket commenting out or uncommenting 5.79 - (`C-c >', `C-c <', `C-c ,', `C-c .') 5.80 - * Easy input of accent mark, math-mode's commands and Greek letters 5.81 - (`C-c a', `;', `:') 5.82 - * Online help for the popular LaTeX commands 5.83 - (`C-c ?', `C-c /') 5.84 - * Document files hierarchy browser (`C-c d') 5.85 - * Adding automatically \usepackage corresponding to inputting LaTeX 5.86 - macro with completion 5.87 - * Allow you to forget creating \label{}s, \ref or \cite completion 5.88 - automatically generate labels. 5.89 - 5.90 - 5.91 - 5.92 -File: yatexe, Node: Installation, Next: Typesetting, Prev: Main features, Up: Top 5.93 - 5.94 -Installation 5.95 -************ 5.96 - 5.97 - Put next two expressions into your `~/.emacs'. 5.98 - 5.99 - (setq auto-mode-alist 5.100 - (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) 5.101 - (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) 5.102 - 5.103 -Next, add certain path name where you put files of YaTeX to your 5.104 -load-path. If you want to put them in `~/src/emacs', write 5.105 - 5.106 - (setq load-path 5.107 - (cons (expand-file-name "~/src/emacs") load-path)) 5.108 - 5.109 -in your `~/.emacs' 5.110 - 5.111 - Then, yatex-mode will be automatically loaded when you visit a 5.112 -file which has extension `.tex'. If yatex-mode is successfully 5.113 -loaded, mode string on mode line will be turned to "YaTeX". 5.114 - 5.115 - 5.116 - 5.117 - 5.118 -File: yatexe, Node: Typesetting, Next: %#notation, Prev: Installation, Up: Top 5.119 - 5.120 -Typesetting 5.121 -*********** 5.122 - 5.123 - The prefix key stroke of yatex-mode is `C-c' (Press 'C' with Control 5.124 -key) by default. If you don't intend to change the prefix key stroke, 5.125 -assume all `[prefix]' as `C-c' in this document. These key 5.126 -strokes execute typeset or preview command. 5.127 - 5.128 -`[prefix] t j' 5.129 - ... invoke latex 5.130 -`[prefix] t r' 5.131 - ... invoke latex on region 5.132 -`[prefix] t e' 5.133 - ... invoke latex on current environment or whole 5.134 - portion of current formulas in math-mode. 5.135 -`[prefix] t k' 5.136 - ... kill current typesetting process 5.137 -`[prefix] t b' 5.138 - ... invoke bibtex 5.139 -`[prefix] t i' 5.140 - ... invoke makeindex 5.141 -`[prefix] t d' 5.142 - ... invoke latex && dvipdfmx 5.143 -`[prefix] t p' 5.144 - ... preview 5.145 -`[prefix] t l' 5.146 - ... lpr dvi-file 5.147 -`[prefix] t s' 5.148 - ... search current string on xdvi-remote 5.149 - 5.150 -* Menu: 5.151 - 5.152 -* Calling typesetter:: 5.153 -* Calling previewer:: 5.154 -* Printing out:: 5.155 - 5.156 - 5.157 - 5.158 -File: yatexe, Node: Calling typesetter, Next: Calling previewer, Prev: Typesetting, Up: Typesetting 5.159 - 5.160 -Calling typesetter 5.161 -================== 5.162 - 5.163 - Typing `[prefix] t j', the current editing window will be divided 5.164 -horizontally when you invoke latex command, and log message of LaTeX 5.165 -typesetting will be displayed in the other window; called typesetting 5.166 -buffer. The typesetting buffer automatically scrolls up and traces LaTeX 5.167 -warnings and error messages. If you see latex stopping by an error, you 5.168 -can send string to latex in the typesetting buffer. 5.169 - 5.170 - If an error stops the LaTeX typesetting, this key stroke will move the 5.171 -cursor to the line where LaTeX error is detected. 5.172 - 5.173 -`[prefix] '' 5.174 -`([prefix]+single quotation)' 5.175 - 5.176 - ... jump to the previous error or warning 5.177 - 5.178 - If you find a noticeable error, move to the typesetting buffer and move 5.179 -the cursor on the line of error message and type `SPACE' key. This makes 5.180 -the cursor move to corresponding source line. 5.181 - 5.182 - YaTeX-typeset-region invoked by `[prefix] tr' call typesetter for 5.183 -region. The region is specified by standard point and mark, or by 5.184 -`%#BEGIN' and `%#END' marks. Selected region will be copied to the 5.185 -temporary file `texput.tex' with the same preamble as the main file of 5.186 -current editing sources. Be sure to put all local macro settings in 5.187 -preamble, not after `\begin{document}'. The method of specification of 5.188 -the region is shown in the section *Note %#notation::. 5.189 - 5.190 - The documentclass for typeset-region is the same as that of editing file 5.191 -if you edit one file, and is the same as main file's if you edit splitting 5.192 -files. 5.193 - 5.194 - The `[prefix] te' key automatically marks current inner environment or 5.195 -inner math mode and then call typeset-region with marked region. This is 5.196 -convenient to quick view of current tabular environment or current editing 5.197 -formulas. Keeping previewer window for `texput.dvi' is handy for 5.198 -debugging. Since `[prefix] te' selects the inner-most environment as 5.199 -region, it is not suitable for partial typesetting of doubly or more 5.200 -composed environment. If you want to do partial typesetting for a nested 5.201 -environment, use `[prefix] tr' for static-region, which is described in 5.202 -the section *Note %#notation::. 5.203 - 5.204 - 5.205 - 5.206 -File: yatexe, Node: Calling previewer, Next: Printing out, Prev: Calling typesetter, Up: Typesetting 5.207 - 5.208 -Calling previewer 5.209 -================= 5.210 - 5.211 - `[prefix] t p' invokes the TeX previewer. And if you are using 5.212 -xdvi-remote, which can be controled from other terminals, `[prefix] t s' 5.213 -enables you to search current string at the cursor on the running xdvi 5.214 -window. 5.215 - 5.216 - 5.217 - 5.218 -File: yatexe, Node: Printing out, Prev: Calling previewer, Up: Typesetting 5.219 - 5.220 -Printing out 5.221 -============ 5.222 - 5.223 - When you type `[preifx] t l', YaTeX asks you the range of dvi-printing 5.224 -by default. You can skip this by invoking it with universal-argument as 5.225 -follows: 5.226 - 5.227 - C-u [prefix] tl 5.228 - 5.229 - 5.230 - 5.231 -File: yatexe, Node: %#notation, Next: Completion, Prev: Typesetting, Up: Top 5.232 - 5.233 -%# notation 5.234 -*********** 5.235 - 5.236 - You can control the typesetting process by describing `%#' notations in 5.237 -the source text. 5.238 - 5.239 -* Menu: 5.240 - 5.241 -* Changing typesetter:: 5.242 -* Splitting input files:: 5.243 -* Static region for typesetting:: 5.244 -* Lpr format:: 5.245 -* Editing %# notation:: 5.246 - 5.247 - 5.248 - 5.249 -File: yatexe, Node: Changing typesetter, Next: Splitting input files, Prev: %#notation, Up: %#notation 5.250 - 5.251 -To change the `latex' command or to split a source text. 5.252 -======================================================== 5.253 - 5.254 - To change the typesetting command, write 5.255 - 5.256 - %#!latex-big 5.257 - 5.258 -anywhere in the source text. This is useful for changing typesetter. 5.259 - 5.260 - 5.261 - 5.262 -File: yatexe, Node: Splitting input files, Next: Static region for typesetting, Prev: Changing typesetter, Up: %#notation 5.263 - 5.264 -Splitting input files 5.265 -===================== 5.266 - 5.267 - And if you split the source text and edit subfile that should be 5.268 -included from main text. 5.269 - 5.270 - %#!latex main.tex 5.271 - 5.272 -will be helpful to execute latex on main file from sub text buffer. Since 5.273 -this command line after `%#!' will be sent to shell literally, next 5.274 -description makes it convenient to use ghostview as dvi-previewer. 5.275 - 5.276 - %#!latex main ; dvi2ps main.dvi > main 5.277 - 5.278 -Note that YaTeX assumes the component before the last period of the last 5.279 -word in this line as base name of the main LaTeX source. The `%f' 5.280 -notation in this line is replaced by main file name, and `%r' replaced by 5.281 -root name of main file name. If you specify `%f' or `%r', YaTeX always 5.282 -ask you the name of main file at the first typesetting. 5.283 - 5.284 - To make best use of the feature of inter-file jumping by `[prefix] g' 5.285 -(see *Note Cursor jump::), take described below into consideration. 5.286 - 5.287 - * You can put split texts in sub directory, but not in sub directory of 5.288 - sub directory. 5.289 - * In the main text, specify the child file name with relative path name 5.290 - such as \include{chap1/sub}, when you include the file in a 5.291 - sub-directory. 5.292 - * In a sub-text, write `%#!latex main.tex' even if `main.tex' is in the 5.293 - parent directory(not %#!latex ../main.tex). 5.294 - 5.295 - 5.296 - 5.297 -File: yatexe, Node: Static region for typesetting, Next: Lpr format, Prev: Splitting input files, Up: %#notation 5.298 - 5.299 -Static region 5.300 -============= 5.301 - 5.302 - Typeset-region by `[prefix] tr' passes the region between point and mark 5.303 -to typesetting command by default. But when you want to typeset static 5.304 -region, enclose the region by `%#BEGIN' and `%#END' as follows. 5.305 - 5.306 - %#BEGIN 5.307 - TheRegionYouWantToTypesetManyTimes 5.308 - %#END 5.309 - 5.310 -This is the rule of deciding the region. 5.311 - 5.312 - 1. If there exists %#BEGIN before point, 5.313 - 5.314 - 1. If there exists %#END after %#BEGIN, 5.315 - * From %#BEGIN to %#END. 5.316 - 5.317 - 2. If %#END does not exist after %#BEGIN, 5.318 - * From %#BEGIN to the end of buffer. 5.319 - 5.320 - 2. If there does not exist %#BEGIN before point, 5.321 - * Between point and mark(standard method of Emacs). 5.322 - 5.323 - It is useful to write `%#BEGIN' in the previous line of \begin and 5.324 -`%#END' in the next line of \`end' when you try complex environment such 5.325 -as `tabular' many times. It is also useful to put only `%#BEGIN' alone at 5.326 -the middle of very long text. Do not forget to erase `%#BEGIN' `%#END' 5.327 -pair. 5.328 - 5.329 - 5.330 - 5.331 -File: yatexe, Node: Lpr format, Next: Editing %# notation, Prev: Static region for typesetting, Up: %#notation 5.332 - 5.333 -Lpr format 5.334 -========== 5.335 - 5.336 - Lpr format is specified by three Lisp variables. Here are the default 5.337 -values of them. 5.338 - 5.339 -`(1)dviprint-command-format' 5.340 - `"dvi2ps %f %t %s | lpr"' 5.341 -`(2)dviprint-from-format' 5.342 - `"-f %b"' 5.343 -`(3)dviprint-to-format' 5.344 - `"-t %e"' 5.345 - 5.346 - On YaTeX-lpr, `%s' in (1) is replaced by the file name of main text, 5.347 -`%f' by contents of (2), %t by contents of (3). At these replacements, 5.348 -`%b' in (2) is also replaced by the number of beginning page, `%e' in (3) 5.349 -is replaced by the number of ending page. But `%f' and `%t' are ignored 5.350 -when you omit the range of print-out by `C-u [prefix] tl'. 5.351 - 5.352 - If you want to change this lpr format temporarily, put a command such as 5.353 -follows somewhere in the text: 5.354 - 5.355 - %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2 5.356 - 5.357 - And if you want YaTeX not to ask you the range of printing out, the next 5.358 -example may be helpful. 5.359 - 5.360 - %#LPR dvi2ps %s | lpr 5.361 - 5.362 - 5.363 - 5.364 -File: yatexe, Node: Editing %# notation, Prev: Lpr format, Up: %#notation 5.365 - 5.366 -Editing %# notation 5.367 -=================== 5.368 - 5.369 - To edit `%#' notation described above, type 5.370 - 5.371 -`[prefix] %' 5.372 - ... editing %# notation menu 5.373 - 5.374 -and select one of the entry of the menu as follows. 5.375 - 5.376 - !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR 5.377 - 5.378 -Type `!' to edit `%#!' entry, `b' to enclose the region with `%#BEGIN' and 5.379 -`%#END', and `l' to edit `%#LPR' entry. When you type `b', all `%#BEGIN' 5.380 -and `%#END' are automatically erased. 5.381 - 5.382 - 5.383 - 5.384 -File: yatexe, Node: Completion, Next: Local dictionaries, Prev: %#notation, Up: Top 5.385 - 5.386 -Completion 5.387 -********** 5.388 - 5.389 - YaTeX makes it easy to input the LaTeX commands. There are several 5.390 -kinds of completion type, begin-type, section-type, large-type, etc... 5.391 - 5.392 -* Menu: 5.393 - 5.394 -* Begin-type completion:: 5.395 -* Section-type completion:: 5.396 -* Large-type completion:: 5.397 -* Maketitle-type completion:: 5.398 -* Arbitrary completion:: 5.399 -* End completion:: 5.400 -* Accent completion:: 5.401 -* Image completion:: 5.402 -* Greek letters completion:: 5.403 - 5.404 - 5.405 - 5.406 -File: yatexe, Node: Begin-type completion, Next: Section-type completion, Prev: Completion, Up: Completion 5.407 - 5.408 -Begin-type completion 5.409 -===================== 5.410 - 5.411 - "Begin-type completion" completes commands of `\begin{env}' ... 5.412 -`\end{env}'. All of the begin-type completions begin with this key 5.413 -sequence. 5.414 - 5.415 -`[prefix] b' 5.416 - ... start begin-type completion 5.417 - 5.418 -An additional key stroke immediately completes a frequently used LaTeX 5.419 -`\begin{}'...`\`end'{}' environment. 5.420 - 5.421 -`[prefix] b c' 5.422 - ... `\begin{center}...\end{center}' 5.423 -`[prefix] b d' 5.424 - ... `\begin{document}...\end{document}' 5.425 -`[prefix] b D' 5.426 - ... `\begin{description}...\end{description}' 5.427 -`[prefix] b e' 5.428 - ... `\begin{enumerate}...\end{enumerate}' 5.429 -`[prefix] b E' 5.430 - ... `\begin{equation}...\end{equation}' 5.431 -`[prefix] b i' 5.432 - ... `\begin{itemize}...\end{itemize}' 5.433 -`[prefix] b l' 5.434 - ... `\begin{flushleft}...\end{flushleft}' 5.435 -`[prefix] b m' 5.436 - ... `\begin{minipage}...\end{minipage}' 5.437 -`[prefix] b t' 5.438 - ... `\begin{tabbing}...\end{tabbing}' 5.439 -`[prefix] b T' 5.440 - ... `\begin{tabular}...\end{tabular}' 5.441 -`[prefix] b^T' 5.442 - ... `\begin{table}...\end{table}' 5.443 -`[prefix] b p' 5.444 - ... `\begin{picture}...\end{picture}' 5.445 -`[prefix] b q' 5.446 - ... `\begin{quote}...\end{quote}' 5.447 -`[prefix] b Q' 5.448 - ... `\begin{quotation}...\end{quotation}' 5.449 -`[prefix] b r' 5.450 - ... `\begin{flushright}...\end{flushright}' 5.451 -`[prefix] b v' 5.452 - ... `\begin{verbatim}...\end{verbatim}' 5.453 -`[prefix] b V' 5.454 - ... `\begin{verse}...\end{verse}' 5.455 - 5.456 - Any other LaTeX environments are made by completing-read of the Emacs 5.457 -function. 5.458 - 5.459 -`[prefix] b SPACE' 5.460 - ... begin-type completion 5.461 - 5.462 -The next message will show up in the minibuffer 5.463 - 5.464 - Begin environment(default document): 5.465 - 5.466 -by typing `[prefix] b'. Put the wishing environment with completion in 5.467 -the minibuffer, and `\begin{env}'...\`\end{env}' will be inserted in the 5.468 -LaTeX source text. If the environment you want to put does not exist in 5.469 -the YaTeX completion table, it will be registered in the user completion 5.470 -table. YaTeX automatically saves the user completion table in the user 5.471 -dictionary file at exiting of emacs. 5.472 - 5.473 -At the completion of certain environments, the expected initial entry will 5.474 -automatically inserted such as `\item' for `itemize' environment. If you 5.475 -don't want the entry, it can be removed by undoing. 5.476 - 5.477 - If you want to enclose some paragraphs which have already been written, 5.478 -invoke the begin-type completion with changing the case of `b' of key 5.479 -sequence upper(or invoke it with universal argument by `C-u' prefix). 5.480 - 5.481 - The following example encloses a region with `description' environment. 5.482 - 5.483 -`[prefix] B D' 5.484 -`(or ESC 1 [prefix] b D)' 5.485 -`(or C-u [prefix] b D)' 5.486 - 5.487 - ... begin-type completion for region 5.488 - 5.489 - This enclosing holds good for the completing input by `[prefix] b SPC'. 5.490 -`[prefix] B SPC' enclose a region with the environment selected by 5.491 -completing-read. 5.492 - 5.493 - 5.494 - 5.495 -File: yatexe, Node: Section-type completion, Next: Large-type completion, Prev: Begin-type completion, Up: Completion 5.496 - 5.497 -Section-type completion 5.498 -======================= 5.499 - 5.500 - "Section-type completion" completes section-type commands which take an 5.501 -argument or more such as `\section{foo}'. To invoke section-type 5.502 -completion, type 5.503 - 5.504 -`[prefix] s' 5.505 - ... section-type completion 5.506 - 5.507 -then the prompt 5.508 - 5.509 - (C-v for view) \???{} (default documentclass): 5.510 - 5.511 -will show up in the minibuffer. Section-type LaTeX commands are completed 5.512 -by space key, and the default value is selected when you type nothing in 5.513 -the minibuffer. 5.514 - 5.515 - Next, 5.516 - 5.517 - \section{???}: 5.518 - 5.519 -prompts you the argument of section-type LaTeX command. For example, the 5.520 -following inputs 5.521 - 5.522 - \???{} (default documentclass): section 5.523 - \section{???}: Hello world. 5.524 - 5.525 -will insert the string 5.526 - 5.527 - \section{Hello world.} 5.528 - 5.529 -in your LaTeX source. When you neglect argument such as 5.530 - 5.531 - (C-v for view) \???{} (default section): vspace* 5.532 - \vspace*{???}: 5.533 - 5.534 -YaTeX puts 5.535 - 5.536 - \vspace*{} 5.537 - 5.538 -and move the cursor in the braces. 5.539 - 5.540 - In LaTeX command, there are commands which take more than one arguments 5.541 -such as `\addtolength{\topmargin}{8mm}'. To complete these commands, 5.542 -invoke section-type completion with universal argument as, 5.543 - 5.544 - C-u 2 [prefix] s (or ESC 2 [prefix] s) 5.545 - 5.546 -and make answers in minibuffer like this. 5.547 - 5.548 - (C-v for view) \???{} (default vspace*): addtolength 5.549 - \addtolength{???}: \topmargin 5.550 - Argument 2: 8mm 5.551 - 5.552 -`\addtolength' and the first argument `\topmargin' can be typed easily by 5.553 -completing read. Since YaTeX also learns the number of arguments of 5.554 -section-type command and will ask that many arguments in future 5.555 -completion, you had better tell the number of arguments to YaTeX at the 5.556 -first completion of the new word. But you can change the number of 5.557 -arguments by calling the completion with different universal argument 5.558 -again. 5.559 - 5.560 - 5.561 - Invoking section-type completion with `[Prefix] S' (Capital `S') 5.562 -includes the region as the first argument of section-type command. 5.563 - 5.564 - The section/large/maketitle type completion can work at the prompt for 5.565 -the argument of other section-type completion. Nested LaTeX commands are 5.566 -efficiently read with the recursive completion by typing YaTeX's 5.567 -completion key sequence in the minibuffer. 5.568 - 5.569 -* Menu: 5.570 - 5.571 -* view-sectioning:: 5.572 - 5.573 - 5.574 - 5.575 -File: yatexe, Node: view-sectioning, Prev: Section-type completion, Up: Section-type completion 5.576 - 5.577 -view-sectioning 5.578 ---------------- 5.579 - 5.580 - In the minibuffer at the prompt of section-type command completion, 5.581 -typing `C-v' shows a list of sectioning commands in source text(The line 5.582 -with `<<--' mark is the nearest sectioning command). Then, default 5.583 -sectioning command appears in the minibuffer. You can go up/down 5.584 -sectioning command by typing `C-p'/`C-n', can scrolls up/down the listing 5.585 -buffer by `C-v'/`M-v', and can hide sectioning commands under certain 5.586 -level by 0 through 6. Type `?' in the minibuffer of sectioning prompt 5.587 -for more information. 5.588 - 5.589 - You can generate this listing buffer (`*Sectioning Lines*' buffer) by 5.590 -typing 5.591 -`M-x YaTeX-section-overview' 5.592 - ... Generate *Sectioning Lines* buffer 5.593 - 5.594 -from the LaTeX source buffer. In this listing buffer, typing `u' on the 5.595 -sectioning command shifts up the corresponding sectioning command in 5.596 -source text and `d' shifts down. After marking lines in the listing 5.597 -buffer, typing `U' shifts up all sectioning commands in the region, and 5.598 -`U' shifts down. Here are all the key bindings of `*Sectioning Lines*' 5.599 -buffer. 5.600 - 5.601 -`SPC' 5.602 - ... Jump to corresponding source line 5.603 -`.' 5.604 - ... Display corresponding source line 5.605 -`u' 5.606 - ... Shift up a sectioning line 5.607 -`d' 5.608 - ... Shift down a sectioning line 5.609 -`U' 5.610 - ... Shift up sectioning lines in region 5.611 -`D' 5.612 - ... Shift down sectioning lines in region 5.613 -`0...6' 5.614 - ... Hide sectioning commands whose level is lower than n 5.615 - 5.616 - 5.617 - 5.618 - 5.619 -File: yatexe, Node: Large-type completion, Next: Maketitle-type completion, Prev: Section-type completion, Up: Completion 5.620 - 5.621 -Large-type completion 5.622 -===================== 5.623 - 5.624 - "Large-type completion" inputs the font or size changing descriptions 5.625 -such as `{\large }'. When you type 5.626 - 5.627 -`[prefix] l' 5.628 - ... large-type completion 5.629 - 5.630 -the message in the minibuffer 5.631 - 5.632 - {\??? } (default large): 5.633 - 5.634 -prompts prompts you large-type command with completing-read. There are 5.635 -TeX commands to change fonts or sizes, `it', `huge' and so on, in the 5.636 -completion table. 5.637 - 5.638 - Region-based completion is also invoked by changing the letter after 5.639 -prefix key stroke as `[prefix] L'. It encloses the region by braces with 5.640 -large-type command. 5.641 - 5.642 - 5.643 - 5.644 -File: yatexe, Node: Maketitle-type completion, Next: Arbitrary completion, Prev: Large-type completion, Up: Completion 5.645 - 5.646 -Maketitle-type completion 5.647 -========================= 5.648 - 5.649 - We call it "maketitle-type completion" which completes commands such as 5.650 -`\maketitle'. Take notice that maketitle-type commands take no arguments. 5.651 -Then, typing 5.652 - 5.653 -`[prefix] m' 5.654 - ... maketitle-type completion 5.655 - 5.656 -begins maketitle-completion. Above mentioned method is true for 5.657 -maketitle-completion, and there are LaTeX commands with no arguments in 5.658 -completion table. 5.659 - 5.660 - 5.661 - 5.662 -File: yatexe, Node: Arbitrary completion, Next: End completion, Prev: Maketitle-type completion, Up: Completion 5.663 - 5.664 -Arbitrary completion 5.665 -==================== 5.666 - 5.667 - You can complete certain LaTeX command anywhere without typical 5.668 -completing method as described, by typing 5.669 - 5.670 -`[prefix] SPC' 5.671 - ... arbitrary completion 5.672 - 5.673 -after the initial string of LaTeX command that is preceded by `\'. 5.674 - 5.675 - 5.676 - 5.677 -File: yatexe, Node: End completion, Next: Accent completion, Prev: Arbitrary completion, Up: Completion 5.678 - 5.679 -End completion 5.680 -============== 5.681 - 5.682 - YaTeX automatically detects the opened environment and close it with 5.683 -\`\end{environment}'. Though proficient YaTeX users never fail to make 5.684 -environment with begin-type completion, some may begin an environment 5.685 -manually. In that case, type 5.686 - 5.687 -`[prefix] e' 5.688 - ... `end' completion 5.689 - 5.690 -at the end of the opened environment. 5.691 - 5.692 - 5.693 - 5.694 -File: yatexe, Node: Accent completion, Next: Image completion, Prev: End completion, Up: Completion 5.695 - 5.696 -Accent completion 5.697 -================= 5.698 - 5.699 - When you want to write the European accent marks(like `\`{o}'), 5.700 - 5.701 -`[prefix] a' 5.702 - ... accent completion 5.703 - 5.704 -shows the menu 5.705 - 5.706 - 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b 5.707 - 5.708 -in the minibuffer. Chose one character or corresponding numeric, and you 5.709 -will see 5.710 - 5.711 - \`{} 5.712 - 5.713 -in the editing buffer with the cursor positioned in braces. Type one more 5.714 -character `o' for example, then 5.715 - 5.716 - \`{o} 5.717 - 5.718 -will be completed, and the cursor gets out from braces. 5.719 - 5.720 - 5.721 - 5.722 -File: yatexe, Node: Image completion, Next: Greek letters completion, Prev: Accent completion, Up: Completion 5.723 - 5.724 -Image completion of mathematical sign 5.725 -===================================== 5.726 - 5.727 - Arrow marks, sigma mark and those signs mainly used in the TeX's math 5.728 -environment are completed by key sequences which imitate the corresponding 5.729 -symbols graphically. This completion only works in the math environment. 5.730 -YaTeX automatically detects whether the cursor located in math environment 5.731 -or not, and change the behavior of key strokes `;' and `:'. 5.732 - 5.733 - By the way, we often express the leftarrow mark by `<-' for example. 5.734 -Considering such image, you can write `\leftarrow' by typing `<-' after 5.735 -`;' (semicolon) as a prefix. In the same way, `\longleftarrow' (`<--') is 5.736 -completed by typing `;<--', infinity mark which is imitated by `oo' is 5.737 -completed by typing `;oo'. 5.738 - 5.739 - Here are the sample operations in YaTeX math-mode. 5.740 - 5.741 - INPUT Completed LaTeX commands 5.742 - ; < - `\leftarrow' 5.743 - ; < - - `\longleftarrow' 5.744 - ; < - - > `\longleftrightarrow' 5.745 - ; o `\circ' 5.746 - ; o o `\infty' 5.747 - 5.748 - In any case, you can quit from image completion and can move to the next 5.749 -editing operation if the LaTeX command you want is shown in the buffer. 5.750 - 5.751 - `;' itself in math-environment is inserted by `;;'. Typing `TAB' in the 5.752 -midst of image completion shows all of the LaTeX commands that start with 5.753 -the same name as string you previously typed in. In this menu buffer, 5.754 -press `RET' after moving the cursor (by `n', `p', `b', `f') to insert the 5.755 -LaTeX command. 5.756 - 5.757 - To know all of the completion table, type `TAB' just after `;'. And 5.758 -here is the sample menu by `TAB' after `;<'. 5.759 - 5.760 - KEY LaTeX sequence sign 5.761 - < \leq < 5.762 - ~ 5.763 - << \ll << 5.764 - <- \leftarrow <- 5.765 - <= \Leftarrow <= 5.766 - 5.767 - You can define your favorite key-vs-sequence completion table in the 5.768 -Emacs-Lisp variable `YaTeX-math-sign-alist-private'. See also 5.769 -`yatexmth.el' for the information of the structure of this variable. 5.770 - 5.771 - 5.772 - 5.773 -File: yatexe, Node: Greek letters completion, Prev: Image completion, Up: Completion 5.774 - 5.775 -Greek letters completion 5.776 -======================== 5.777 - 5.778 - Math-mode of YaTeX provides another image completion, Greek letters 5.779 -completion in the same method. After prefix `:', typing `a' makes 5.780 -`\alpha', `b' makes `\beta' and `g' makes `\gamma' and so on. First, type 5.781 -`:TAB' to know all the correspondence of alphabets vs. Greek letters. 5.782 - 5.783 - If you will find `;' or `:' doesn't work in correct position of math 5.784 -environment, it may be a bug of YaTeX. Please send me a bug report with 5.785 -the configuration of your text, and avoid it temporarily by typing `;' or 5.786 -`:' after universal-argument(`C-u') which forces `;' and `:' to work as 5.787 -math-prefix. 5.788 - 5.789 - 5.790 - 5.791 -File: yatexe, Node: Local dictionaries, Next: Commenting out, Prev: Completion, Up: Top 5.792 - 5.793 -Local dictionaries 5.794 -****************** 5.795 - 5.796 - Tables for completion consist of three dictionaries; `standard 5.797 -dictionary' built in `yatex.el', `user dictionary' for your common private 5.798 -commands, and `local dictionary' that is effective in a certain directory. 5.799 - 5.800 - When you input the command unknown to YaTeX at a completion in the 5.801 -minibuffer, YaTeX asks you with the following prompt; 5.802 - 5.803 - `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard 5.804 - 5.805 -In this menu, typing `u' updates your `user dictionary', `l' updates your 5.806 -local dictionary, `n' updates only on-memory dictionary which go through 5.807 -only current Emacs session, and `d' updates no dictionary and throws the 5.808 -new word away. 5.809 - 5.810 - If you find this switching feature meaningless and bothersome, put the 5.811 -next expression into your `~/.emacs' 5.812 - 5.813 - (setq YaTeX-nervous nil) 5.814 - 5.815 - 5.816 - 5.817 -File: yatexe, Node: Commenting out, Next: Cursor jump, Prev: Local dictionaries, Up: Top 5.818 - 5.819 -Commenting out 5.820 -************** 5.821 - 5.822 - You may want to comment out some region. 5.823 - 5.824 -`[prefix] >' 5.825 - ... comment out region by % 5.826 -`[prefix] <' 5.827 - ... uncomment region 5.828 - 5.829 -cause an operation to the region between point and mark. 5.830 - 5.831 -`[prefix] .' 5.832 - ... comment out current paragraph 5.833 -`[prefix] ,' 5.834 - ... uncomment current paragraph 5.835 - 5.836 -comments or uncomments the paragraph where the cursor belongs. This 5.837 -`paragraph' means the region marked by the function mark-paragraph, bound 5.838 -to `ESC h' by default. It is NOT predictable what will happen when you 5.839 -continuously comment out some paragraph many times. 5.840 - 5.841 - You can also comment out an environment between `\begin' and `\end', or 5.842 -a `\begin'-\`\end' pair themselves, by making the following key strokes on 5.843 -the line where `\begin{}' or `\end{}' exists. 5.844 - 5.845 -`[prefix] >' 5.846 - ... comment out from \begin to \`end' 5.847 -`[prefix] <' 5.848 - ... uncomment from \begin to \`end' 5.849 - 5.850 -comment whole the contents of environment. Moreover, 5.851 - 5.852 -`[prefix] .' 5.853 - ... comment out \begin and \`end' 5.854 -`[prefix] ,' 5.855 - ... uncomment \begin and \`end' 5.856 - 5.857 -(un)comments out only environment declaration: `\begin{}' and `\end{}'. 5.858 -NOTE that even if you intend to comment out some region, invoking 5.859 -`[prefix] >' on the `\begin',`\end' line decides to work in `commenting 5.860 -out from `\begin' to `\end'' mode. 5.861 - 5.862 - 5.863 - 5.864 - 5.865 -File: yatexe, Node: Cursor jump, Next: Changing and Deleting, Prev: Commenting out, Up: Top 5.866 - 5.867 -Cursor jump 5.868 -*********** 5.869 - 5.870 - 5.871 -* Menu: 5.872 - 5.873 -* Jump to corresponding object:: 5.874 -* Invoking image processor:: 5.875 -* Jump to main file:: 5.876 -* Jumping around the environment:: 5.877 -* Jumping to last completion position:: 5.878 - 5.879 - 5.880 - 5.881 -File: yatexe, Node: Jump to corresponding object, Next: Invoking image processor, Prev: Cursor jump, Up: Cursor jump 5.882 - 5.883 -Jump to corresponding object 5.884 -============================ 5.885 - 5.886 - Typing 5.887 - 5.888 -`[prefix] g' 5.889 - ... go to corresponding object 5.890 - 5.891 -in a certain place move the cursor to the place corresponding to the LaTeX 5.892 -command of last place. YaTeX recognize the followings as pairs that have 5.893 -relation each other. 5.894 - 5.895 - * `\begin{}' <-> `\end{}' 5.896 - * `%#BEGIN' <-> `%#END' 5.897 - * On the image-including line -> corresponding viewer or drawing tool 5.898 - * `\label{}' <-> `\ref{}' 5.899 - * `\include(\input)' -> included file 5.900 - * `\bibitem{}' <-> `\cite{}' 5.901 - 5.902 - On a `\begin',`\end' line, typing `[prefix] g' moves the cursor to the 5.903 -corresponding `\end',`\begin' line, if its partner really exists. The 5.904 -behavior on the line `%#BEGIN' and `%#END' are the same. Note that if the 5.905 -correspondent of `label/ref' or `cite/bibitem' exists in another file, 5.906 -that file have to be opened to make a round trip between references by 5.907 -`[prefix] g'. 5.908 - 5.909 - If you type `[prefix] g' on the line of `\include{chap1}', typically in 5.910 -the main text, YaTeX switches buffer to `chap1.tex'. 5.911 - 5.912 -`[prefix] 4 g' 5.913 - ... go to corresponding object in other window 5.914 - 5.915 -do the same job as `[prefix] g' except it's done in other window. Note 5.916 -that this function doesn't work on `begin/end', `%#BEGIN/%#END' pairs 5.917 -because it is meaningless. 5.918 - 5.919 - 5.920 - 5.921 -File: yatexe, Node: Invoking image processor, Next: Jump to main file, Prev: Jump to corresponding object, Up: Cursor jump 5.922 - 5.923 -Invoking image processor 5.924 -======================== 5.925 - 5.926 - 5.927 -`image-including line' described above means such lines as 5.928 -`\epsfile{file=foo.ps}'. If you type `[prefix] g' on that line, YaTeX 5.929 -automatically searches source of `foo.ps' and invokes image viewer or 5.930 -drawing tool correspoinding to it. For example; if you draw an image 5.931 -foo.obj with Tgif and enclose its product named foo.eps by `\epsfile' 5.932 -command. Typing `[prefix] g' on `\epsfile' line make YaTeX invoke `tgif 5.933 -foo.obj'. How a processor is choosen is as follows. 5.934 - 5.935 - 1. If there is an expression matching with one of the pattern defined in 5.936 - `YaTeX-processed-file-regexp-alist', extract file name from regexp 5.937 - group surrounded by \\(\\). (Which group corresponds is written in 5.938 - the cdr part of each list.) If no matches were found, do nothing. 5.939 - 2. If there is a pattern as `%PROCESSOR' which is defined in the 5.940 - variable `YaTeX-file-processor-alist', call that processor giving the 5.941 - file name with corresponding extension. 5.942 - 3. If not, check the existence of each file which is supplied the 5.943 - extension in the cdr part of each list of 5.944 - `YaTeX-file-processor-alist'. If any, call the corresponding image 5.945 - viewer or drawing tool. 5.946 - 5.947 - 5.948 - 5.949 -File: yatexe, Node: Jump to main file, Next: Jumping around the environment, Prev: Invoking image processor, Up: Cursor jump 5.950 - 5.951 -Jump to main file 5.952 -================= 5.953 - 5.954 - Typing 5.955 - 5.956 -`[prefix] ^' 5.957 - ... visit main file 5.958 -`[prefix] 4^' 5.959 - ... visit main file in other buffer 5.960 - 5.961 -in a sub text switch the buffer to the main text specified by `%#!' 5.962 -notation. 5.963 - 5.964 - 5.965 - 5.966 -File: yatexe, Node: Jumping around the environment, Next: Jumping to last completion position, Prev: Jump to main file, Up: Cursor jump 5.967 - 5.968 -Jumping around the environment 5.969 -============================== 5.970 - 5.971 - And these are the functions which work on the current LaTeX environment: 5.972 - 5.973 -`M-C-a' 5.974 - ... beginning of environment 5.975 -`M-C-e' 5.976 - ... `end' of environment 5.977 -`M-C-@' 5.978 - ... mark environment 5.979 - 5.980 - 5.981 - 5.982 -File: yatexe, Node: Jumping to last completion position, Prev: Jumping around the environment, Up: Cursor jump 5.983 - 5.984 -Jumping to last completion position 5.985 -=================================== 5.986 - 5.987 -YaTeX always memorize the position of completion into register `3'. So 5.988 -every time you make a trip to any other part of text other than you are 5.989 -writing, you can return to the editing paragraph by calling 5.990 -register-to-point with argument YaTeX-current-position-register, which is 5.991 -achieved by typing `C-x j 3'(by default). 5.992 - 5.993 - 5.994 - 5.995 -File: yatexe, Node: Changing and Deleting, Next: Filling, Prev: Cursor jump, Up: Top 5.996 - 5.997 -Changing and Deleting 5.998 -********************* 5.999 - 5.1000 - These functions are for change or deletion of LaTeX commands already 5.1001 -entered. 5.1002 - 5.1003 -`[prefix] c' 5.1004 - ... change LaTeX command 5.1005 -`[prefix] k' 5.1006 - ... kill LaTeX command 5.1007 - 5.1008 -* Menu: 5.1009 - 5.1010 -* Changing LaTeX commands:: 5.1011 -* Killing LaTeX commands:: 5.1012 - 5.1013 - 5.1014 - 5.1015 -File: yatexe, Node: Changing LaTeX commands, Next: Killing LaTeX commands, Prev: Changing and Deleting, Up: Changing and Deleting 5.1016 - 5.1017 -Changing LaTeX commands 5.1018 -======================= 5.1019 - 5.1020 -`[prefix] c' can change the various (La)TeX commands. This can change the 5.1021 -followings. 5.1022 - * Environment names 5.1023 - * Section-type commands 5.1024 - * Argument of section-type commands 5.1025 - * Optional parameters (enclosed by []) of section-type commands 5.1026 - * Font/size designators 5.1027 - * Math-mode's maketitle-type commands that can be inputted with image 5.1028 - completion 5.1029 - 5.1030 - Typing `[prefix] c' on one of above objects you want to change brings a 5.1031 -suitable reading function sometimes with completion. Note: If you want to 5.1032 -change the argument of section-type command that contains other LaTeX 5.1033 -commands, type `[prefix] c' either of surrounding braces of the argument 5.1034 -in order to make YaTeX ignore the internal LaTeX sequences as an object of 5.1035 -changing. Anyway, it is very difficult to know which argument position 5.1036 -the cursor belongs because the LaTeX commands can be nested and braces can 5.1037 -freely emerge. So keep it mind to put the cursor on a brace when you are 5.1038 -thinking of changing a complicated argument. 5.1039 - 5.1040 - 5.1041 - 5.1042 -File: yatexe, Node: Killing LaTeX commands, Prev: Changing LaTeX commands, Up: Changing and Deleting 5.1043 - 5.1044 -Killing LaTeX commands 5.1045 -====================== 5.1046 - 5.1047 - `[prefix] k' kills the LaTeX commands sometimes with their arguments. 5.1048 -Following table illustrates the correspondence of the invoking position 5.1049 -and what is killed. 5.1050 - 5.1051 - [Invoking position] [action] 5.1052 - \begin, \end line kill \begin,\end pairs 5.1053 - %#BEGIN, %#END line kill %#BEGIN,%#END pairs 5.1054 - on a Section-type command kill section-type command 5.1055 - on a parenthesis kill parentheses 5.1056 - 5.1057 -Note that when killing `\begin, \end' or `%#BEGIN, %#END' pair, the lines 5.1058 -`\begin, \end' or `%#BEGIN, %#END' exist will be killed entirely. So take 5.1059 -care not to create any line that contains more than one `\begin' or so. 5.1060 - 5.1061 -While all operations above are to kill `containers' which surround some 5.1062 -text, universal argument (`C-u') for these commands kills not only 5.1063 -`containers' but also `contents' of them. See below as a sample. 5.1064 - 5.1065 - Original text: [prefix] k C-u [prefix] k 5.1066 - Main \footnote{note} here. Main note here. Main here. 5.1067 - ~(cursor) 5.1068 - 5.1069 - 5.1070 - 5.1071 -File: yatexe, Node: Filling, Next: Updation of includeonly, Prev: Changing and Deleting, Up: Top 5.1072 - 5.1073 -Filling 5.1074 -******* 5.1075 - 5.1076 - 5.1077 -Filling an item 5.1078 -=============== 5.1079 - 5.1080 - To fill a term (descriptive sentences) of `\item', type 5.1081 - 5.1082 -`M-q' 5.1083 - ... fill item 5.1084 - 5.1085 -on that item. 5.1086 - 5.1087 - YaTeX uses the value of the variable `YaTeX-item-regexp' as the regular 5.1088 -expression to search item header in itemize environment. If you make a 5.1089 -newcommand to itemize terms(e.g. `\underlineitem'), put 5.1090 - 5.1091 - (setq YaTeX-item-regexp 5.1092 - "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)") 5.1093 - 5.1094 -in your `~/.emacs'. If you are not familiar with regular expression for 5.1095 -Emacs-Lisp, name a newcommand for `itemize' beginning with `\item' such as 5.1096 -`\itembf', not `\bfitem'. 5.1097 - 5.1098 - This function reformats the `\item' into `hang-indented' style. For 5.1099 -example: 5.1100 - 5.1101 - itemize, enumerate environment: 5.1102 - > 5.1103 - >\item[foo] `foo' is the typical word for describing an 5.1104 - > arbitrarily written.... 5.1105 - description environment: 5.1106 - > \item[bar] When the word `for' is used as an arbitrarily 5.1107 - > word, `bar' is bound to follow it. 5.1108 - 5.1109 - Note that the indent depth of an `\item' word and its descriptive 5.1110 -paragraph are the same in latter case. If you want to use different 5.1111 -depth, invoke fill-paragraph at the beginning of non-whitespace 5.1112 -character(see below). 5.1113 - 5.1114 - 5.1115 -Filling paragraph 5.1116 -================= 5.1117 - 5.1118 - Fill-paragraph is little bit adapted for LaTeX sources. It retains from 5.1119 -filling in certain environments where formatting leads to a disaster such 5.1120 -as verbatim, tabular, or so. And it protects `\verb' expressions from 5.1121 -being folded (The variable `YaTeX-verb-regexp' controls this). Besides, 5.1122 -putting cursor on the first occurrence of non-whitespace character on a 5.1123 -line changes the fill-prefix temporarily to the depth of the line. 5.1124 - 5.1125 - 5.1126 - 5.1127 -File: yatexe, Node: Updation of includeonly, Next: What column, Prev: Filling, Up: Top 5.1128 - 5.1129 -Updation of `\includeonly' 5.1130 -************************** 5.1131 - 5.1132 - When you edit splitting source texts, the notation 5.1133 - 5.1134 - \includeonly{CurrentEditingFileName} 5.1135 - 5.1136 -in the main file reduces the time of typesetting. If you want to hack 5.1137 -other file a little however, you have to rewrite it to 5.1138 - 5.1139 - \includeonly{OtherFileNameYouWantToFix} 5.1140 - 5.1141 -in the main file. YaTeX automatically detects that the current edited 5.1142 -text is not in includeonly list and prompts you 5.1143 - 5.1144 - A)dd R)eplace %)comment? 5.1145 - 5.1146 -in the minibuffer. Type `a' if you want to add the current file name to 5.1147 -`\includeonly' list, `r' to replace \`includeonly' list with the current 5.1148 -file, and type `%' to comment out the `\includeonly' line. 5.1149 - 5.1150 - 5.1151 - 5.1152 -File: yatexe, Node: What column, Next: Intelligent newline, Prev: Updation of includeonly, Up: Top 5.1153 - 5.1154 -What column? 5.1155 -************ 5.1156 - 5.1157 - We are often get tired of finding the corresponding column in large 5.1158 -tabulars. For example, 5.1159 - 5.1160 - \begin{tabular}{|c|c|c|c|c|c|c|c|}\hline 5.1161 - Name&Position&Post No.&Addr.&Phone No.&FAX No.& 5.1162 - Home Addr.&Home Phone\\ \hline 5.1163 - Thunder Bird & 6 & 223 & LA & xxx-yyy & 5.1164 - zzz-www & Japan & 9876-54321 \\ 5.1165 - & 2 & \multicolumn{2}{c|}{Unknown} 5.1166 - &&&(???) 5.1167 - \\ \hline 5.1168 - \end{tabular} 5.1169 - 5.1170 -Suppose you have the cursor located at `(???)' mark, can you tell which 5.1171 -column it is belonging at once? Maybe no. In such case, type 5.1172 - 5.1173 -`[prefix] &' 5.1174 - ... What column 5.1175 - 5.1176 -in that position. YaTeX tells you the column header of the current field. 5.1177 -Since YaTeX assumes the first line of tabular environment as a row of 5.1178 -column headers, you can create a row of virtual column headers by putting 5.1179 -them in the first line and commenting that line with `%'. 5.1180 - 5.1181 - 5.1182 - 5.1183 -File: yatexe, Node: Intelligent newline, Next: Usepackage checker, Prev: What column, Up: Top 5.1184 - 5.1185 -Intelligent newline 5.1186 -******************* 5.1187 - 5.1188 - At the end of begin-type completion of tabular[*], array, itemize, 5.1189 -enumerate or tabbing environment, or typing 5.1190 - 5.1191 -`ESC RET' 5.1192 - ... Intelligent newline 5.1193 - 5.1194 -in these environments inserts the contents corresponding to the current 5.1195 -environment in the next line. (At the begin-type completion, this 5.1196 -contents can be removed by `undo'.) In `tabular' environment, for 5.1197 -example, `ESC RET' inserts the certain number of `&' and trailing `\\', 5.1198 -and `\hline' if other `\hline' is found in backward. Here are the list of 5.1199 -contents vs. environments. 5.1200 - 5.1201 - * `tabular', `tabular*', `array' 5.1202 - 5.1203 - Corresponding number of `&' and `\\'. And `\hline' if 5.1204 - needed. 5.1205 - 5.1206 - * `tabbing' 5.1207 - 5.1208 - The same number of `\>' as `\=' in the first line. 5.1209 - 5.1210 - * `itemize', `enumerate', `description', `list' 5.1211 - 5.1212 - `\item' or `item[]'. 5.1213 - 5.1214 - Note that since this function works seeing the contents of the first 5.1215 -line, please call this after the second line if possible. 5.1216 - 5.1217 - If you want to apply these trick to other environments, `foo' 5.1218 -environment for example, define the function named 5.1219 -`YaTeX-intelligent-newline-foo' to insert corresponding contents. That 5.1220 -function will be called at the beginning of the next line after the 5.1221 -newline is inserted to the current line. Since the function 5.1222 -`YaTeX-indent-line' is designed to indent the current line properly, 5.1223 -calling this function before your code to insert certain contents must be 5.1224 -useful. See the definition of the function 5.1225 -`YaTeX-intelligent-newline-itemize' as an example. 5.1226 - 5.1227 - 5.1228 - 5.1229 -File: yatexe, Node: Usepackage checker, Next: Online help, Prev: Intelligent newline, Up: Top 5.1230 - 5.1231 -Usepackage checker 5.1232 -****************** 5.1233 - 5.1234 -When you input begint-type, section-type, maketitle-type macros with 5.1235 -completion, and it requires some LaTeX2e package, YaTeX examines the 5.1236 -existence of correct `\usepackage'. If not, YaTeX inserts the 5.1237 -`\usepackage{}' declaration corresponding to input macro. 5.1238 - 5.1239 -To activate the package completion for your favarite package, set the 5.1240 -variable `YaTeX-package-alist-private' correctly. Please refere the value 5.1241 -of `YaTeX-package-alist-default' as an example. 5.1242 - 5.1243 - 5.1244 - 5.1245 -File: yatexe, Node: Online help, Next: Browsing file hierarchy, Prev: Usepackage checker, Up: Top 5.1246 - 5.1247 -Online help 5.1248 -*********** 5.1249 - 5.1250 - YaTeX provides you the online help with popular LaTeX commands. 5.1251 - 5.1252 - Here are the key strokes for the online help. 5.1253 - 5.1254 -`[prefix] ?' 5.1255 - ... Online help 5.1256 -`[prefix] /' 5.1257 - ... Online apropos 5.1258 - 5.1259 - 5.1260 -Online help 5.1261 -=========== 5.1262 - 5.1263 - `Online help' shows the documentation for the popular LaTeX 5.1264 -commands(defaults to the commands on the cursor) in the next buffer. 5.1265 -There are two help file, `global help' and `private help'. The former 5.1266 -file contains the descriptions on the standard LaTeX command and is 5.1267 -specified its name by variable `YaTeX-help-file'. Usually, the global 5.1268 -help file should be located in public space (`$EMACSEXECPATH' by default) 5.1269 -and should be world writable so that anyone can update it to enrich its 5.1270 -contents. The latter file contains descriptions on non-standard or 5.1271 -personal command definitions and is specified by 5.1272 -`YaTeX-help-file-private'. This file should be put into private 5.1273 -directory. 5.1274 - 5.1275 - 5.1276 -Online apropos 5.1277 -============== 5.1278 - 5.1279 - `Online apropos' is an equivalent of GNU Emacs's apropos. It shows all 5.1280 -the documentations that contains the keyword entered by the user. 5.1281 - 5.1282 - 5.1283 -When no descriptions are found... 5.1284 -================================= 5.1285 - 5.1286 - If there is no description on a command in help files, YaTeX requires 5.1287 -you to write a description on that command. If you are willing to do, 5.1288 -determine which help file to add and write the description on it referring 5.1289 -your manual of (La)TeX. Please send me your additional descriptions if 5.1290 -you describe the help on some standard commands. I might want to include 5.1291 -it in the next distribution. 5.1292 - 5.1293 - 5.1294 - 5.1295 -File: yatexe, Node: Browsing file hierarchy, Next: Cooperation with other packages, Prev: Online help, Up: Top 5.1296 - 5.1297 -Browsing file hierarchy 5.1298 -*********************** 5.1299 - 5.1300 - When you are editing multi-file source, typing 5.1301 - 5.1302 -`[prefix] d' 5.1303 - ... browse file hierarchy 5.1304 - 5.1305 -asks you the parent-most file (which may be defaulted) and displays the 5.1306 -documentation hierarchy in the next window. In this buffer, the following 5.1307 -commands are available. 5.1308 - 5.1309 -`n' 5.1310 - ... move to the next line and show its contents 5.1311 -`p' 5.1312 - ... move to the previous line and show its contents 5.1313 -`N' 5.1314 - ... move to the next file in the same inclusion level 5.1315 -`P' 5.1316 - ... move to the previous file in the same inclusion level 5.1317 -`j' 5.1318 - ... move to the next line 5.1319 -`k' 5.1320 - ... move to the previous line 5.1321 -`u' 5.1322 - ... move to the parent file 5.1323 -`.' 5.1324 - ... show the current files contents in the next window 5.1325 -`SPC' 5.1326 - ... scroll up the current file window 5.1327 -`DEL, b' 5.1328 - ... scroll down the current file window 5.1329 -`<' 5.1330 - ... show the beginning of the current file 5.1331 -`>' 5.1332 - ... show the end of the current file 5.1333 -`>' 5.1334 - ... return to the previous postion after `<' or `>' 5.1335 -`RET, g' 5.1336 - ... open the current file in the next window 5.1337 -`mouse-2' 5.1338 - ... same as RET(available only with window system) 5.1339 -`o' 5.1340 - ... other window 5.1341 -`1' 5.1342 - ... delete other windows 5.1343 -`-' 5.1344 - ... shrink hierarchy buffer window 5.1345 -`+' 5.1346 - ... enlarge hierarchy buffer window 5.1347 -`?' 5.1348 - ... describe mode 5.1349 -`q' 5.1350 - ... quit 5.1351 - 5.1352 - Note that operations on the file contents in the next window do not work 5.1353 -correctly when you close the corresponding file. 5.1354 - 5.1355 - 5.1356 - 5.1357 -File: yatexe, Node: Cooperation with other packages, Next: Customizations, Prev: Browsing file hierarchy, Up: Top 5.1358 - 5.1359 -Cooperation with other packages 5.1360 -******************************* 5.1361 - 5.1362 - YaTeX works better with other brilliant packages. 5.1363 - 5.1364 - 5.1365 -gmhist 5.1366 -====== 5.1367 - 5.1368 - When you are loading `gmhist.el' and `gmhist-mh.el', you can use 5.1369 -independent command history list at the prompt of preview command 5.1370 -(`[prefix] tp') and print command (`[prefix] tl'). On each prompt, you 5.1371 -can enter the previous command line string repeatedly by typing `M-p'. 5.1372 - 5.1373 - 5.1374 -min-out 5.1375 -======= 5.1376 - 5.1377 - `min-out', the outline minor mode, can be used in yatex-mode buffers. 5.1378 -If you want to use it with YaTeX, please refer the file `yatexm-o.el' as 5.1379 -an example. 5.1380 - 5.1381 - 5.1382 - 5.1383 -File: yatexe, Node: Customizations, Next: Etcetera, Prev: Cooperation with other packages, Up: Top 5.1384 - 5.1385 -Customizations 5.1386 -************** 5.1387 - 5.1388 - You can customize YaTeX by setting Emacs-Lisp variables and by making 5.1389 -add-in functions. 5.1390 - 5.1391 -* Menu: 5.1392 - 5.1393 -* Lisp variables:: 5.1394 -* Add-in functions:: 5.1395 -* Add-in generator:: 5.1396 - 5.1397 - 5.1398 - 5.1399 -File: yatexe, Node: Lisp variables, Next: Add-in functions, Prev: Customizations, Up: Customizations 5.1400 - 5.1401 -Lisp variables 5.1402 -============== 5.1403 - 5.1404 - You can change the key assignments or make completion more comfortable 5.1405 -by setting the values of various variables which control the movement of 5.1406 -yatex-mode. 5.1407 - 5.1408 - For example, if you want to change the prefix key stroke from `C-c' to 5.1409 -any other sequence, set YaTeX-prefix to whatever you want to use. If you 5.1410 -don't want to use the key sequence `C-c letter' which is assumed to be the 5.1411 -user reserved sequence in Emacs world, set `YaTeX-inhibit-prefix-letter' 5.1412 -to `t', and all of the default key bind of `C-c letter' will turn to the 5.1413 -corresponding `C-c C-letter' (but the region based completions that is 5.1414 -invoked with `C-c Capital-letter' remain valid, if you want to disable 5.1415 -those bindings, set that variable to 1 instead of `t'). 5.1416 - 5.1417 -* Menu: 5.1418 - 5.1419 -* All customizable variables:: 5.1420 -* Sample definitions:: 5.1421 -* Hook variables:: 5.1422 -* Hook file:: 5.1423 - 5.1424 - 5.1425 - 5.1426 -File: yatexe, Node: All customizable variables, Next: Sample definitions, Prev: Lisp variables, Up: Lisp variables 5.1427 - 5.1428 -All customizable variables 5.1429 --------------------------- 5.1430 - 5.1431 - Here are the customizable variables of yatex-mode. Each value setq-ed 5.1432 -in `~/.emacs' is preferred and that of defined in `yatex.el' is neglected. 5.1433 -Parenthesized contents stands for the default value. When you are to 5.1434 -change some of these variables, see more detailed documentation of the 5.1435 -variable by `M-x describe-variable'. 5.1436 - 5.1437 - -- Variable: YaTeX-japan 5.1438 - Set this nil to produce all messages in English (`Depends on Japanese 5.1439 - feature of Emacs') 5.1440 - 5.1441 - -- Variable: YaTeX-kanji-code 5.1442 - Default buffer-file-coding-system for YaTeX modes' buffer. Set this 5.1443 - 0 to no language conversion. Nil to preserve original 5.1444 - coding-system. 1=Shift JIS, 2=JIS, 3=EUC, 4=UTF-8 (`1 or 2') 5.1445 - 5.1446 - -- Variable: YaTeX-prefix 5.1447 - Prefix key stroke (`C-c') 5.1448 - 5.1449 - -- Variable: YaTeX-inhibit-prefix-letter 5.1450 - Change key stroke from `C-c letter' to `C-c C-letter' (`nil') 5.1451 - 5.1452 - -- Variable: YaTeX-fill-prefix 5.1453 - Fill-prefix used in yatex-mode (`nil') 5.1454 - 5.1455 - -- Variable: YaTeX-user-completion-table 5.1456 - Name of user dictionary where learned completion table will be 5.1457 - stored. (`"~/.yatexrc"') 5.1458 - 5.1459 - -- Variable: tex-command 5.1460 - LaTeX typesetter command (`"latex"') 5.1461 - 5.1462 - -- Variable: dvi2-command 5.1463 - Preview command (`"xdvi -geo +0+0 -s 4"') 5.1464 - 5.1465 - -- Variable: dviprint-command-format 5.1466 - Command format to print dvi file (`"dvi2ps %f %t %s | lpr"') 5.1467 - 5.1468 - -- Variable: dviprint-from-format 5.1469 - Start page format of above %f. %b will turn to start page (`"-f %b"') 5.1470 - 5.1471 - -- Variable: dviprint-to-format 5.1472 - End page format of above %t. %e will turn to `end' page (`"-t %e"') 5.1473 - 5.1474 - -- Variable: makeindex-command 5.1475 - Default makeindex command (`"makeindex"' (`"makeind"' on MS-DOS)) 5.1476 - 5.1477 - -- Variable: YaTeX-dvipdf-command 5.1478 - Default command name to convert .dvi to PDF (`"dvipdfmx"') 5.1479 - 5.1480 - -- Variable: YaTeX-need-nonstop 5.1481 - Put `\nonstopmode{}' or not (`nil') 5.1482 - 5.1483 - -- Variable: latex-warning-regexp 5.1484 - Regular expression of warning message latex command puts out 5.1485 - (`"line.* [0-9]*"') 5.1486 - 5.1487 - -- Variable: latex-error-regexp 5.1488 - Regular expression of error message (`"l\\.[1-9][0-9]*"') 5.1489 - 5.1490 - -- Variable: latex-dos-emergency-message 5.1491 - Message latex command running on DOS puts at abort (`"Emergency 5.1492 - stop"') 5.1493 - 5.1494 - -- Variable: YaTeX-item-regexp 5.1495 - Regular expression of item command (`"\\\\item"') 5.1496 - 5.1497 - -- Variable: YaTeX-verb-regexp 5.1498 - Regexp of verb family. Omit \\\\. (`"verb\\*?\\|path"') 5.1499 - 5.1500 - -- Variable: YaTeX-nervous 5.1501 - T for using local dictionary (`t') 5.1502 - 5.1503 - -- Variable: YaTeX-sectioning-regexp 5.1504 - Regexp of LaTeX sectioning command 5.1505 - (`"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"') 5.1506 - 5.1507 - -- Variable: YaTeX-fill-inhibit-environments 5.1508 - Inhibit fill in these environments (`'("tabular" "tabular*" "array" 5.1509 - "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" 5.1510 - "verbatim" "verbatim*")') 5.1511 - 5.1512 - -- Variable: YaTeX-uncomment-once 5.1513 - T for deleting all preceding `%' (`nil') 5.1514 - 5.1515 - -- Variable: YaTeX-close-paren-always 5.1516 - T for always close all parenthesis automatically, `nil' for only eol 5.1517 - (`t') 5.1518 - 5.1519 - -- Variable: YaTeX-auto-math-mode 5.1520 - Switch math-mode automatically (`t') 5.1521 - 5.1522 - -- Variable: YaTeX-math-key-list-private 5.1523 - User defined alist, math-mode-prefix vs completion alist used in 5.1524 - image completion (`nil'). See `yatexmth.el' for the information 5.1525 - about how to define a completion alist. 5.1526 - 5.1527 - -- Variable: YaTeX-default-pop-window-height 5.1528 - Initial height of typesetting buffer when one-window. Number for the 5.1529 - lines of the buffer, numerical string for the percentage of the 5.1530 - screen-height. `nil' for half height (10) 5.1531 - 5.1532 - -- Variable: YaTeX-help-file 5.1533 - Global online help file name 5.1534 - (`$doc-directory/../../site-lisp/YATEXHLP.eng') 5.1535 - 5.1536 - -- Variable: YaTeX-help-file-private 5.1537 - Private online help file name (`"~/YATEXHLP.eng"') 5.1538 - 5.1539 - -- Variable: YaTeX-no-begend-shortcut 5.1540 - Disable [prefix] b ?? shortcut (`nil)' 5.1541 - 5.1542 - -- Variable: YaTeX-hilit-pattern-adjustment-private 5.1543 - List of the list that contain the regular expression and the symbol 5.1544 - of logical meaning of the string that matches the pattern. See also 5.1545 - the value from `(assq 'yatex-mode hilit-patterns-alist)' and the 5.1546 - value of `YaTeX-hilit-pattern-adjustment-default' (and even the 5.1547 - document of hilit19.el). 5.1548 - 5.1549 - -- Variable: YaTeX-sectioning-level 5.1550 - Alist of LaTeX's sectioning command vs its height. 5.1551 - 5.1552 - -- Variable: YaTeX-hierarchy-ignore-heading-regexp 5.1553 - `YaTeX-display-hierarchy' searches for sectioning command first, and 5.1554 - comment line secondary as a file headings. In latter case, ignore lines 5.1555 - that match with regular expression of this variable. Default value of 5.1556 - this variable is RCS header expressions and mode specifying line `-*- xxxx 5.1557 - -*'. 5.1558 - 5.1559 - -- Variable: YaTeX-skip-default-reader 5.1560 - Non-nil for this variable skips the default argument reader of 5.1561 - section-type command when add-in function for it is not defined 5.1562 - (`nil') 5.1563 - 5.1564 - -- Variable: YaTeX-create-file-prefix-g 5.1565 - When typing `prefix g' on the `\include' line, open the target file 5.1566 - even if the file doesn't exist (`nil') 5.1567 - 5.1568 - -- Variable: YaTeX-simple-messages 5.1569 - Simplyfy messages of various completions (`nil') 5.1570 - 5.1571 - -- Variable: YaTeX-hilit-sectioning-face 5.1572 - When hilit19 and yatex19 is active, YaTeX colors the sectioning 5.1573 - commands. This variable specifies the foreground and background 5.1574 - color of `\part' macro. The default value is `'(yellow/dodgerblue 5.1575 - yellow/slateblue)'. The first element of this list is for the screen 5.1576 - when `hilit-background-mode' is `'light', and the second element is 5.1577 - for `'dark'. You should specify both color as `forecolor/backcolor'. 5.1578 - 5.1579 - -- Variable: YaTeX-hilit-sectioning-attenuation-rate 5.1580 - When color mode, this variable specifies how much attenuate the color 5.1581 - density of `\subparagraph' compared with that of `\chapter' (`'(15 5.1582 - 40)') See also `YaTeX-hilit-sectioning-face'. 5.1583 - 5.1584 - -- Variable: YaTeX-use-AMS-LaTeX 5.1585 - If you use AMS-LaTeX, set to `t' (`nil') 5.1586 - 5.1587 - -- Variable: YaTeX-use-LaTeX2e 5.1588 - If you use LaTeX2e, set to `t' (`t') 5.1589 - 5.1590 - -- Variable: YaTeX-template-file 5.1591 - File name which is automatically inserted at creation 5.1592 - (`~/work/template.tex') 5.1593 - 5.1594 - -- Variable: YaTeX-search-file-from-top-directory 5.1595 - Non-nil means to search input-files from the directory where main 5.1596 - file exists (`t') 5.1597 - 5.1598 - -- Variable: YaTeX-use-font-lock 5.1599 - Use font-lock to fontify buffer or not (`(featurep 'font-lock)' 5.1600 - 5.1601 - -- Variable: YaTeX-use-hilit19 5.1602 - Use hilit19 to highlight buffer or not (`(featurep 'hilit19)' 5.1603 - 5.1604 - -- Variable: YaTeX-use-italic-bold 5.1605 - YaTeX tries to search italic, bold fontsets or not (`t' if Emacs-20 5.1606 - or later). This variable is effective only when font-lock is used. 5.1607 - (`(featurep 'hilit19)' 5.1608 - 5.1609 - -- Variable: YaTeX-singlecmd-suffix 5.1610 - Suffix which is always inserted after maketitle-type macros. `"{}"' 5.1611 - is recommended. 5.1612 - 5.1613 - -- Variable: YaTeX-package-alist-private 5.1614 - Alist of LaTeX2e-package name vs. lists of macros in it. Set this 5.1615 - alist properly and YaTeX automatically check the declaratiion of 5.1616 - `usepackage' for corresponding macro, when you input that macro with 5.1617 - completion. If required `usepackage' is not found, YaTeX also 5.1618 - automatically inserts `\usepackage'. Alist is as follows; 5.1619 - '((PackageName1 (completionType ListOfMacro) (completionType 5.1620 - ListOfMacro)) (PackageName2 (completionType ListOfMacro) 5.1621 - (completionType ListOfMacro...))....) completionType is one of `env, 5.1622 - section, maketitle'. Consult the value of 5.1623 - `YaTeX-package-alist-default' as an example. 5.1624 - 5.1625 - -- Variable: YaTeX-tabular-indentation 5.1626 - At indentation by `C-i' in tabular or array environment, YaTeX put 5.1627 - the additional spaces to the normail indentation depth. The number 5.1628 - of additional spaces is the product of YaTeX-tabular-indentation and 5.1629 - the number of column position in tabular. 5.1630 - 5.1631 - -- Variable: YaTeX-noindent-env-regexp 5.1632 - Regexp of environment names that should begin with no indentation. 5.1633 - All verbatime-like environment name should match with. 5.1634 - 5.1635 - -- Variable: YaTeX-ref-default-label-string 5.1636 - Default \\ref time string format. This format is like strftime(3) 5.1637 - but allowed conversion char are as follows; %y -> Last 2 digit of 5.1638 - year, %b -> Month name, %m -> Monthe number(1-12), %d -> Day, %H -> 5.1639 - Hour, %M -> Minute, %S -> Second, %qx -> alphabetical-decimal 5.1640 - conversion of yymmdd. %qX -> alphabetical-decimal conversion of 5.1641 - HHMMSS. Beware defualt label-string should be always unique. So 5.1642 - this format string should have both time part (%H+%M+%S or %qX) and 5.1643 - date part (%y+(%b|%m)+%d or %qx). 5.1644 - 5.1645 - -- Variable: YaTeX-ref-generate-label-function 5.1646 - Function to generate default label string for unnamed \\label{}s. 5.1647 - The function pointed to this value should take two arguments. First 5.1648 - argument is LaTeX macro's name, second is macro's argument. Here is 5.1649 - an example for using this value. 5.1650 - (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label) 5.1651 - (defun my-yatex-generate-label (command value) 5.1652 - (and (string= command "caption") 5.1653 - (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t) 5.1654 - (setq command (match-string 1))) 5.1655 - (let ((alist '(("chapter" . "chap") 5.1656 - ("section" . "sec") 5.1657 - ("subsection" . "subsec") 5.1658 - ("figure" . "fig") 5.1659 - ("table" . "tbl")))) 5.1660 - (if (setq command (cdr (assoc command alist))) 5.1661 - (concat command ":" value) 5.1662 - (YaTeX::ref-generate-label nil nil)))) 5.1663 - 5.1664 - 5.1665 - 5.1666 - 5.1667 -File: yatexe, Node: Sample definitions, Next: Hook variables, Prev: All customizable variables, Up: Lisp variables 5.1668 - 5.1669 -Sample definitions 5.1670 ------------------- 5.1671 - 5.1672 - For instance, to change the prefix key stroke to `ESC', and name of the 5.1673 -user dictionary `~/src/emacs/yatexrc', and set `fill-prefix' to single TAB 5.1674 -character, add the following `setq' to `~/.emacs'. 5.1675 - 5.1676 - (setq YaTeX-prefix "\e" 5.1677 - YaTeX-user-completion-table "~/src/emacs/yatexrc" 5.1678 - YaTeX-fill-prefix " ") 5.1679 - 5.1680 - 5.1681 - 5.1682 -File: yatexe, Node: Hook variables, Next: Hook file, Prev: Sample definitions, Up: Lisp variables 5.1683 - 5.1684 -Hook variables 5.1685 --------------- 5.1686 - 5.1687 - More customizations will be done by the hook-function defined in 5.1688 -hook-variable `yatex-mode-hook'. This is useful to define a shortcut key 5.1689 -sequence to enter some environments other than `document' and `enumerate' 5.1690 -etc. The following statement defines `[prefix] ba' to enter 5.1691 -`\begin{abstract}' ... `=end{abstract}' immediately. 5.1692 - 5.1693 - (setq yatex-mode-hook 5.1694 - '(lambda() (YaTeX-define-begend-key "ba" "abstract"))) 5.1695 - 5.1696 - You should use functions `YaTeX-define-key', or 5.1697 -`YaTeX-define-begend-key' to define all the key sequences of yatex-mode. 5.1698 - 5.1699 - 5.1700 - 5.1701 -File: yatexe, Node: Hook file, Prev: Hook variables, Up: Lisp variables 5.1702 - 5.1703 -Hook file 5.1704 ---------- 5.1705 - 5.1706 - You can stuff all of YaTeX related expressions into a file named 5.1707 -`yatexhks.el' if you have a lot of codes. YaTeX automatically load this 5.1708 -file at the initialization of itself. Using `yatexhks.el' makes 5.1709 -`yatex-mode-load-hook' unnecessary. 5.1710 - 5.1711 - 5.1712 - 5.1713 -File: yatexe, Node: Add-in functions, Next: Add-in generator, Prev: Lisp variables, Up: Customizations 5.1714 - 5.1715 -Add-in functions 5.1716 -================ 5.1717 - 5.1718 - You can easily define a function to input detailed arguments with 5.1719 -completion according to LaTeX environments or commands. 5.1720 - 5.1721 - 5.1722 -What is add-in functions? 5.1723 -------------------------- 5.1724 - 5.1725 - When you input `tabular' environment, don't you think "I want YaTeX to 5.1726 -complete its argument toward my favorite one such as `{|c|c|c|}'..."? 5.1727 -Yes, you can define the function to complete arguments for any environment 5.1728 -and any LaTeX commands. 5.1729 - 5.1730 - 5.1731 -Procedure 5.1732 ---------- 5.1733 - 5.1734 - Here is the procedure to define add-in functions. 5.1735 - 1. Define the function 5.1736 - 2. Put the function into `yatexhks.el' 5.1737 - 5.1738 -* Menu: 5.1739 - 5.1740 -* How the add-in function works:: 5.1741 -* How the function is called:: 5.1742 -* Useful functions for creating add-in:: 5.1743 -* Contribution:: 5.1744 - 5.1745 - 5.1746 - 5.1747 -File: yatexe, Node: How the add-in function works, Next: How the function is called, Prev: Add-in functions, Up: Add-in functions 5.1748 - 5.1749 -How the add-in function works 5.1750 ------------------------------ 5.1751 - 5.1752 -There are three types of add-in. 5.1753 - 5.1754 - 1. Option add-in 5.1755 - 2. argument add-in 5.1756 - 3. enclosing add-in 5.1757 - 5.1758 -"Option add-in" returns the LaTeX's optional parameters such as optional 5.1759 -strings after `\begin{ENV}', optional strings between a section-type 5.1760 -command and its first argument, and optional strings just after type 5.1761 -maketitle-type command. The following illustrates the name of add-in 5.1762 -functions, where underlined strings are generated by add-in functions. 5.1763 - 5.1764 - \begin{table}[ht] (Function name: YaTeX:table) 5.1765 - ~~~~ 5.1766 - \put(100,200){} (Function name: YaTeX:put) 5.1767 - ~~~~~~~~~ 5.1768 - \sum_{i=0}^{n} (Function name: YaTeX:sum) 5.1769 - ~~~~~~~~~~ 5.1770 - 5.1771 - Obviously, the function name is decided by concatenating the prefix 5.1772 -`YaTeX:' and LaTeX command's name. 5.1773 - 5.1774 - Another add-in type is "argument add-in", which completes arguments for 5.1775 -section-type commands. 5.1776 - 5.1777 - \newcommand{\foo}{bar} (Function name: YaTeX::newcommand) 5.1778 - ~~~~ ~~~ 5.1779 - 5.1780 - When the section-type command is inputted, the function named by 5.1781 -concatenating `YaTeX::' and section-type command, is called automatically 5.1782 -with an integer argument which indicates which argument of section-type 5.1783 -command is being read. Thus the add-in should determine the job referring 5.1784 -the value of its argument. 5.1785 - 5.1786 - "enclosing add-in" is for modifying and/or checking the region that will 5.1787 -be enclosed by section-type commands via `[prefix] S'. An enclosing 5.1788 -add-in function will be called with two arguments, beginning of the 5.1789 -enclosed region and end of the region. Suppose you want to enclose the 5.1790 -existing text `(a+b)/c' by `\frac{}'. 5.1791 - 5.1792 - a/c 5.1793 - | | 5.1794 - A B 5.1795 - 5.1796 -You do set-mark-command at point A and then move to point B. Typing 5.1797 -`[prefix] S' and input `frac' enclose the region like this; 5.1798 - 5.1799 - \frac{a/c} 5.1800 - 5.1801 -Normally, the expression `a/c' is translated to `\frac{a}{c}'. An 5.1802 -enclosing add-in is useful for modifying `/' to `}{'. 5.1803 - 5.1804 -* Menu: 5.1805 - 5.1806 -* Defining option-add-in:: 5.1807 -* Defining argument-add-in:: 5.1808 -* Defining enclosing-add-in:: 5.1809 - 5.1810 - 5.1811 - 5.1812 -File: yatexe, Node: Defining option-add-in, Next: Defining argument-add-in, Prev: How the add-in function works, Up: How the add-in function works 5.1813 - 5.1814 -Defining `option add-in' 5.1815 -........................ 5.1816 - 5.1817 - If you want `{|c|c|c|}' for all `tabular' environment, 5.1818 - 5.1819 - (defun YaTeX:tabular () 5.1820 - "{|c|c|c|}") 5.1821 - 5.1822 -is enough. If you want more complicated format, define as below. 5.1823 - 5.1824 - (defun YaTeX:tabular () 5.1825 - "{@{\\vrule width 1pt\\ }|||@{\\ \\vrule width 1pt}}") 5.1826 - 5.1827 -Note that the character `\' must be described as `\\' in Emacs-Lisp. The 5.1828 -next example reads the tabular format from keyboard. 5.1829 - (defun YaTeX:tabular () 5.1830 - (concat "{" (read-string "Rule: ") "}")) 5.1831 - 5.1832 - 5.1833 - 5.1834 -File: yatexe, Node: Defining argument-add-in, Next: Defining enclosing-add-in, Prev: Defining option-add-in, Up: How the add-in function works 5.1835 - 5.1836 -Defining `argument add-in' 5.1837 -.......................... 5.1838 - 5.1839 - This section describes how to define the add-in function for 5.1840 -`\newcommand'. 5.1841 - 5.1842 - The first argument of `\newcommand' begins always with `\'. The second 5.1843 -argument is usually so complex that we can not edit them in the 5.1844 -minibuffer. Here is the created function considering this. 5.1845 - 5.1846 - (defun YaTeX::newcommand (n) ;n is argument position 5.1847 - (cond 5.1848 - ((= n 1) ;1st argument is macro name 5.1849 - (read-string "Command: " "\\")) ;initial input `\' 5.1850 - ((= n 2) "") ;do nothing when reading arg#2 5.1851 - (t nil))) 5.1852 - 5.1853 - Note that when the `argument add-in' function return `nil', normal 5.1854 -argument reader will be called. 5.1855 - 5.1856 - 5.1857 - 5.1858 -File: yatexe, Node: Defining enclosing-add-in, Prev: Defining argument-add-in, Up: How the add-in function works 5.1859 - 5.1860 -Defining `enclosing add-in' 5.1861 -........................... 5.1862 - 5.1863 - This section describes how to define the add-in function for text 5.1864 -enclosed by `\frac{}'. 5.1865 - 5.1866 - When enclosing the text `5/3' by `\frac{}', you might want to replace 5.1867 -`/' with `}{'. Enclosing function `YaTeX::frac-region' is called with two 5.1868 -arguments, beginning of enclosed text and end of enclosed text. The 5.1869 -function is expected to replace `/' with `}{'. Here is an example 5.1870 -expression. 5.1871 - 5.1872 - (defun YaTeX::frac-region (beg end) 5.1873 - (catch 'done 5.1874 - (while (search-forward "/" end t) 5.1875 - (goto-char (match-beginning 0)) 5.1876 - (if (y-or-n-p "Replace this slash(/) with `}{'") 5.1877 - (throw 'done (replace-match "}{"))) 5.1878 - (goto-char (match-end 0))))) 5.1879 - 5.1880 - 5.1881 - 5.1882 -File: yatexe, Node: How the function is called, Next: Useful functions for creating add-in, Prev: How the add-in function works, Up: Add-in functions 5.1883 - 5.1884 -How the function is called 5.1885 --------------------------- 5.1886 - 5.1887 - YaTeX calls the add-in functions for specified begin-type, section-type, 5.1888 -and maketitle-type command, if any. `Option add-in' functions for 5.1889 -begin-type are called when `\begin{ENV}' has been inserted, functions for 5.1890 -section-type are called just before input of the first argument, and 5.1891 -functions for maketitle-type is called after maketitle-type command has 5.1892 -been inserted. `Argument add-in' functions are called at each entry of 5.1893 -arguments for section-type commands. 5.1894 - 5.1895 - 5.1896 - 5.1897 -File: yatexe, Node: Useful functions for creating add-in, Next: Contribution, Prev: How the function is called, Up: Add-in functions 5.1898 - 5.1899 -Useful functions for creating add-in 5.1900 ------------------------------------- 5.1901 - 5.1902 - Many add-in functions for typical LaTeX commands are defined in 5.1903 -`yatexadd.el'. Those are also useful as references. Here are the short 5.1904 -descriptions on useful functions, where [F] means function, [A] means 5.1905 -arguments, [D] means description. 5.1906 - 5.1907 -`[F]' 5.1908 - YaTeX:read-position 5.1909 -`[A]' 5.1910 - Character list which can show up in the brackets 5.1911 -`[D]' 5.1912 - Return the location specifier such as `[htb]'. When nothing is 5.1913 - entered, omit [] itself. If the possible characters are "htbp", call 5.1914 - this function as `(YaTeX:read-position "htbp")' 5.1915 - 5.1916 -`[F]' 5.1917 - YaTeX:read-coordinates 5.1918 -`[A]' 5.1919 - Base prompt, X-axis prompt, Y-axis prompt (each optional) 5.1920 -`[D]' 5.1921 - Read the coordinates with the prompt "BasePrompt X-axisPrompt:" for 5.1922 - X-axis, "BasePrompt Y-axisPrompt:" for Y-axis, and return it in the 5.1923 - form of "(X,Y)". The default prompts are `Dimension', `X', `Y' 5.1924 - respectively. 5.1925 - 5.1926 -`[F]' 5.1927 - YaTeX:check-completion-type 5.1928 -`[A]' 5.1929 - One of the symbols: 'begin, 'section, or 'maketitle 5.1930 -`[D]' 5.1931 - Check the current completion type is specified one and cause error 5.1932 - if not. The variable `YaTeX-current-completion-type' holds the symbol 5.1933 - according to the current completion type. 5.1934 - 5.1935 - 5.1936 - 5.1937 -File: yatexe, Node: Contribution, Prev: Useful functions for creating add-in, Up: Add-in functions 5.1938 - 5.1939 -Contribution 5.1940 ------------- 5.1941 - 5.1942 - If you make your own pretty function and you let it be in public, please 5.1943 -send me the function. I'm going to include it in the next release. 5.1944 - 5.1945 - 5.1946 - 5.1947 -File: yatexe, Node: Add-in generator, Prev: Add-in functions, Up: Customizations 5.1948 - 5.1949 -Add-in generator 5.1950 -================ 5.1951 - 5.1952 - First, don't forget to read the section of add-in functions *Note Add-in 5.1953 -functions::. If you easily understand how to define them, there's no need 5.1954 -to read this section. But being not familiar with Emacs-Lisp, when you 5.1955 -don't have clear idea what to do, this section describes how to get YaTeX 5.1956 -make add-in function. 5.1957 - 5.1958 - There are two methods of generation. One is for fully interactive 5.1959 -generator for beginners and another requires little knowledge of 5.1960 -Emacs-Lisp. 5.1961 - 5.1962 - 5.1963 -Generator for beginners 5.1964 ------------------------ 5.1965 - The former generator is called by 5.1966 - `M-x YaTeX-generate' 5.1967 - 5.1968 -strokes. All you have to do is follow the guidances. Defying them may 5.1969 -cases the disaster (I wonder what is it???). So when you make some 5.1970 -mistake, it is recommendable to type `C-g' and start afresh. 5.1971 - 5.1972 - 5.1973 -Simple generator 5.1974 ----------------- 5.1975 - 5.1976 - The latter generator is invoked by the next sequence. `M-x 5.1977 -YaTeX-generate-simple' This generator can make both "option add-in" and 5.1978 -"argument add-in" (*refer the section add-in functions* *Note How the 5.1979 -add-in function works::), whereas `YaTeX-generate' cannot make "argument 5.1980 -addin". 5.1981 - 5.1982 - For example, assume you have the LaTeX command as follows. 5.1983 - 5.1984 - \epsinput[t](250,50){hoge.eps}{plain}{Picture of foo} 5.1985 - (A) (B) (1) (2) (3) 5.1986 - (A)Optional parameter to specify the position 5.1987 - One of t(top), b(bottom), l(left), r(right) 5.1988 - (B)Maximum size of frame 5.1989 - (1)1st argument is filename of EPS file 5.1990 - (2)2nd argument indicates 5.1991 - plain do nothing 5.1992 - frame make frame around image 5.1993 - dframe make double-frame around image 5.1994 - for included EPS file. 5.1995 - (3)Caption for the picture 5.1996 - 5.1997 - Now get start with generation. Typing `M-x YaTeX-generate-simple' 5.1998 -brings the prompt: 5.1999 - (O)ption? (A)rgument? 5.2000 - 5.2001 - 5.2002 -Generating "option add-in" 5.2003 -.......................... 5.2004 - 5.2005 - Since (A), (B) above are optional argument, all we have to do to 5.2006 -complete them is define the option add-in for them. Let's generate the 5.2007 -function to complete (A). 5.2008 - 5.2009 - M-x YaTeX-generate-simple RET 5.2010 - epsinput RET 5.2011 - o 5.2012 - 5.2013 -Typing as above leads the next prompt. 5.2014 - 5.2015 - Read type(1): (S)tring (C)omplete (F)ile ([)option (P)osition co(O)rd. (q)uit 5.2016 - 5.2017 - This asks that "Which type is the completion style of 1st argument?". 5.2018 -Here are the possible completion style. 5.2019 - 5.2020 -`String' 5.2021 - read plain string 5.2022 -`Complete' 5.2023 - read with completion 5.2024 -`File' 5.2025 - read file name 5.2026 -`Option' 5.2027 - read optional string (if string omitted, omit [] too) 5.2028 -`Position' 5.2029 - read positional option (like [htbp]) 5.2030 -`Coord.' 5.2031 - read coordinates 5.2032 -`Quit' 5.2033 - quit from generating 5.2034 - 5.2035 - Since (A) is the optional argument to specify the location of included 5.2036 -EPS file, the completion style is `Position', and the possible characters 5.2037 -are t, b, l, and r. To tell these information to generator, operate as 5.2038 -follows. 5.2039 - 5.2040 - Read type(1).... p 5.2041 - Acceptable characters: tblr RET 5.2042 - 5.2043 - (B) is coordinate. So its completion style is coOrd. We want a prompt 5.2044 -meaning "Maximum size" when completion. 5.2045 - 5.2046 - Read type(2).... o 5.2047 - Prompt for coordinates: Max size RET 5.2048 - 5.2049 - That's all for optional argument. Select quit. 5.2050 - 5.2051 - Read type(3).... q 5.2052 - 5.2053 - Then the generated option add-in function for \epsinput will be shown in 5.2054 -the next window. 5.2055 - 5.2056 - 5.2057 -Generating "argument add-in" 5.2058 -............................ 5.2059 - 5.2060 - Next, create the argument add-in. The arguments for \epsinput are EPS 5.2061 -file name, framing style, and caption string in sequence. 5.2062 - 5.2063 - M-x YaTeX-generate-simple RET 5.2064 - epsinput RET 5.2065 - a 5.2066 - 5.2067 - Above key strokes bring the prompt that asks the number of argument. 5.2068 -Answer it with 3. 5.2069 - 5.2070 - How many arguments?: 3 RET 5.2071 - 5.2072 - Then the generator asks the completion style and prompt for completion. 5.2073 -Answer them. `f' for FileName and prompt string. 5.2074 - 5.2075 - Read type(1).... f 5.2076 - Prompt for argument#1 EPS file name RET 5.2077 - 5.2078 - The second argument is one of selected symbol. So the completion type 5.2079 -is `Completion'. 5.2080 - 5.2081 - Read type(2).... c 5.2082 - Prompt for argument#2 Include style RET 5.2083 - 5.2084 - Then all the candidates ready to be read. Type single RET after 5.2085 -entering all. 5.2086 - 5.2087 - Item[1](RET to exit): plain RET 5.2088 - Item[2](RET to exit): frame RET 5.2089 - Item[3](RET to exit): dframe RET 5.2090 - Item[4](RET to exit): RET 5.2091 - 5.2092 - The following prompt asks whether the entered string must belong to 5.2093 -candidates or not. In this case, since the argument must be one of 5.2094 -`plain', `frame', and `dframe', type `y'. 5.2095 - 5.2096 - Require match? (y or n) y 5.2097 - 5.2098 - The last argument is the caption string for which any completion is 5.2099 -needed. 5.2100 - 5.2101 - Read type(3).... s 5.2102 - Prompt for argument#3 Caption RET 5.2103 - default: Figure of RET 5.2104 - 5.2105 - Finally we'll get the argument add-in in the next window. 5.2106 - 5.2107 - 5.2108 -Contribution 5.2109 ------------- 5.2110 - 5.2111 - If you get your own pretty function and you let it be in public, please 5.2112 -steel yourself in the happy atmosphere and do not send me the function. I 5.2113 -do know it is not fine because it is generated by yatexgen:-p. 5.2114 - 5.2115 - 5.2116 - 5.2117 -File: yatexe, Node: Etcetera, Next: Copying, Prev: Customizations, Up: Top 5.2118 - 5.2119 -Etcetera 5.2120 -******** 5.2121 - 5.2122 - The standard completion tables provided in `yatex.el' contain a few 5.2123 -LaTeX commands I frequently use. This is to lessen the key strokes to 5.2124 -complete entire word, because too many candidates rarely used often cause 5.2125 -too many hits. Therefore always try to use completion in order to enrich 5.2126 -your dictionary, and you will also find `Wild Bird' growing suitable for 5.2127 -your LaTeX style. 5.2128 - 5.2129 - The package name `Wild Bird' is the English translation of Japanese 5.2130 -title `Yachou', which is a trick on words of Japanese. 5.2131 - 5.2132 - 5.2133 - 5.2134 -File: yatexe, Node: Copying, Prev: Etcetera, Up: Top 5.2135 - 5.2136 -Copying 5.2137 -******* 5.2138 - 5.2139 - This program is distributed as a free software. You can 5.2140 -use/copy/modify/redistribute this software freely but with NO warranty to 5.2141 -anything as a result of using this software. Adopting code from this 5.2142 -program is also free. But I would not do contract act. 5.2143 - 5.2144 -Any reports and suggestions are welcome as long as I feel interests in 5.2145 -this software. My possible e-mail address is `yuuji@yatex.org'. (as of 5.2146 -Jan.2004) And there is mailing list for YaTeX. Although the common 5.2147 -language is Japanese, questions in English will be welcome. To join the 5.2148 -ML, send the mail whose subject is `append' to the address 5.2149 -`yatex@yatex.org. If you have some question, please ask to 5.2150 -`yatex-admin@yatex.org'. 5.2151 - 5.2152 - The specification of this software will be surely modified (depending on 5.2153 -my feelings) without notice :-p. 5.2154 - 5.2155 - 5.2156 - HIROSE Yuuji 5.2157 - 5.2158 - 5.2159 -Tag table: 5.2160 -Node: Top146 5.2161 -Node: What is YaTeX?1487 5.2162 -Node: Main features1860 5.2163 -Node: Installation3452 5.2164 -Node: Typesetting4229 5.2165 -Node: Calling typesetter5298 5.2166 -Node: Calling previewer7502 5.2167 -Node: Printing out7863 5.2168 -Node: %#notation8155 5.2169 -Node: Changing typesetter8531 5.2170 -Node: Splitting input files8895 5.2171 -Node: Static region for typesetting10319 5.2172 -Node: Lpr format11448 5.2173 -Node: Editing %# notation12505 5.2174 -Node: Completion13024 5.2175 -Node: Begin-type completion13584 5.2176 -Node: Section-type completion16627 5.2177 -Node: view-sectioning19062 5.2178 -Node: Large-type completion20642 5.2179 -Node: Maketitle-type completion21373 5.2180 -Node: Arbitrary completion21925 5.2181 -Node: End completion22315 5.2182 -Node: Accent completion22785 5.2183 -Node: Image completion23402 5.2184 -Node: Greek letters completion25659 5.2185 -Node: Local dictionaries26386 5.2186 -Node: Commenting out27323 5.2187 -Node: Cursor jump28782 5.2188 -Node: Jump to corresponding object29094 5.2189 -Node: Invoking image processor30495 5.2190 -Node: Jump to main file31838 5.2191 -Node: Jumping around the environment32203 5.2192 -Node: Jumping to last completion position32621 5.2193 -Node: Changing and Deleting33130 5.2194 -Node: Changing LaTeX commands33522 5.2195 -Node: Killing LaTeX commands34699 5.2196 -Node: Filling35884 5.2197 -Node: Updation of includeonly37735 5.2198 -Node: What column38532 5.2199 -Node: Intelligent newline39617 5.2200 -Node: Usepackage checker41271 5.2201 -Node: Online help41862 5.2202 -Node: Browsing file hierarchy43537 5.2203 -Node: Cooperation with other packages45274 5.2204 -Node: Customizations45979 5.2205 -Node: Lisp variables46313 5.2206 -Node: All customizable variables47317 5.2207 -Node: Sample definitions57116 5.2208 -Node: Hook variables57629 5.2209 -Node: Hook file58333 5.2210 -Node: Add-in functions58672 5.2211 -Node: How the add-in function works59532 5.2212 -Node: Defining option-add-in61731 5.2213 -Node: Defining argument-add-in62453 5.2214 -Node: Defining enclosing-add-in63335 5.2215 -Node: How the function is called64189 5.2216 -Node: Useful functions for creating add-in64865 5.2217 -Node: Contribution66270 5.2218 -Node: Add-in generator66544 5.2219 -Node: Etcetera71916 5.2220 -Node: Copying72521 5.2221 - 5.2222 -End tag table 5.2223 +Info file: yatexe, -*-Text-*- 5.2224 +produced by `texinfo-format-buffer' 5.2225 +from file `yatexe.tex' 5.2226 +using `texinfmt.el' version 2.38 of 3 July 1998. 5.2227 + 5.2228 + 5.2229 + 5.2230 + 5.2231 + 5.2232 + 5.2233 +File: yatexe, Node: Top, Next: What is YaTeX?, Prev: (dir), Up: (dir) 5.2234 + 5.2235 +* Menu: 5.2236 + 5.2237 +* What is YaTeX?:: 5.2238 +* Main features:: What YaTeX can do 5.2239 +* Installation:: Guide to install 5.2240 +* Typesetting:: Call typesetting processes 5.2241 +* %#notation:: Meta-keyword `%#' 5.2242 +* Completion:: Input LaTeX commands with completion 5.2243 +* Local dictionaries:: Directory dependent completion 5.2244 +* Commenting out:: Commenting/uncommenting text 5.2245 +* Cursor jump:: Jumping to related position 5.2246 +* Changing and Deleting:: Changing/deleting certain unit of text 5.2247 +* Filling:: Filling an item or paragraph 5.2248 +* Updation of includeonly:: Free from maintaining includeonly 5.2249 +* What column:: Check what table-column the cursor belong 5.2250 +* Intelligent newline:: Guess requisites of new line 5.2251 +* Usepackage checker:: Selecting correct \usepackage is YaTeX's job 5.2252 +* Online help:: On-line documentation of LaTeX 5.2253 +* Browsing file hierarchy:: Walking through file hierarchy 5.2254 +* Cooperation with other packages:: Work well with gmhist, min-out 5.2255 +* Customizations:: How to breed `Wild Bird' 5.2256 +* Etcetera:: YaTeX is acquisitive. 5.2257 +* Copying:: Redistribution 5.2258 + 5.2259 + 5.2260 + 5.2261 + 5.2262 +File: yatexe, Node: What is YaTeX?, Next: Main features, Prev: Top, Up: Top 5.2263 + 5.2264 +What is YaTeX? 5.2265 +************** 5.2266 + 5.2267 + YaTeX automates typesetting and previewing of LaTeX and enables 5.2268 +completing input of LaTeX mark-up command such as `\begin{}'..`\end{}'. 5.2269 + 5.2270 + YaTeX also supports Demacs which runs on MS-DOS(386), Mule (Multi 5.2271 +Language Enhancement to GNU Emacs), and latex on DOS. 5.2272 + 5.2273 + 5.2274 + 5.2275 +File: yatexe, Node: Main features, Next: Installation, Prev: What is YaTeX?, Up: Top 5.2276 + 5.2277 +Main features 5.2278 +************* 5.2279 + 5.2280 + * Invocation of typesetter, previewer and related programs(`C-c t') 5.2281 + * Typesetting on static region which is independent from point 5.2282 + * Semiautomatic replacing of `\includeonly' 5.2283 + * Jumping to error line(`C-c '') 5.2284 + * Completing-read of LaTeX commands such as `\begin{}', `\section' etc. 5.2285 + (`C-c b', `C-c s', `C-c l', `C-c m') 5.2286 + * Enclosing text into LaTeX environments or commands (`C-u' 5.2287 + ABOVEKEYSTROKES) 5.2288 + * Displaying the structure of text at entering sectioning commands 5.2289 + * Lump shifting of sectioning commands (*Note view-sectioning::) 5.2290 + * Learning unknown/new LaTeX commands for the next completion 5.2291 + * Argument reading with a guide for complicated LaTeX commands 5.2292 + * Generating argument-readers for new/unsupported commands(`yatexgen') 5.2293 + * Quick changing or deleting of LaTeX commands(`C-c c', `C-c k') 5.2294 + * Jumping from and to inter-file, begin<->end, ref<->label(`C-c g') 5.2295 + * Blanket commenting out or uncommenting (`C-c >', `C-c <', `C-c ,', 5.2296 + `C-c .') 5.2297 + * Easy input of accent mark, math-mode's commands and Greek letters 5.2298 + (`C-c a', `;', `:') 5.2299 + * Online help for the popular LaTeX commands (`C-c ?', `C-c /') 5.2300 + * Document files hierarchy browser (`C-c d') 5.2301 + * Adding automatically \usepackage corresponding to inputting LaTeX 5.2302 + macro with completion 5.2303 + * Allow you to forget creating \label{}s, \ref{} or \cite{} completion 5.2304 + automatically generate labels. 5.2305 + 5.2306 + 5.2307 + 5.2308 +File: yatexe, Node: Installation, Next: Typesetting, Prev: Main features, Up: Top 5.2309 + 5.2310 +Installation 5.2311 +************ 5.2312 + 5.2313 + Put next two expressions into your `~/.emacs'. 5.2314 + 5.2315 + (setq auto-mode-alist 5.2316 + (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) 5.2317 + (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) 5.2318 + 5.2319 +Next, add certain path name where you put files of YaTeX to your 5.2320 +load-path. If you want to put them in `~/src/emacs', write 5.2321 + 5.2322 + (setq load-path 5.2323 + (cons (expand-file-name "~/src/emacs") load-path)) 5.2324 + 5.2325 +in your `~/.emacs' 5.2326 + 5.2327 + Then, yatex-mode will be automatically loaded when you visit a file 5.2328 +which has extension `.tex'. If yatex-mode is successfully loaded, mode 5.2329 +string on mode line will be turned to "YaTeX". 5.2330 + 5.2331 + 5.2332 + 5.2333 + 5.2334 +File: yatexe, Node: Typesetting, Next: %#notation, Prev: Installation, Up: Top 5.2335 + 5.2336 +Typesetting 5.2337 +*********** 5.2338 + 5.2339 + The prefix key stroke of yatex-mode is `C-c' (Press 'C' with Control 5.2340 +key) by default. If you don't intend to change the prefix key stroke, 5.2341 +assume all `[prefix]' as `C-c' in this document. These key strokes 5.2342 +execute typeset or preview command. 5.2343 + 5.2344 +`[prefix] t j' 5.2345 + ... invoke latex 5.2346 +`[prefix] t r' 5.2347 + ... invoke latex on region 5.2348 +`[prefix] t e' 5.2349 + ... invoke latex on current environment or whole portion of 5.2350 + current formulas in math-mode. 5.2351 +`[prefix] t d' 5.2352 + ... invoke dvipdfmx after successful typesetting 5.2353 +`[prefix] t k' 5.2354 + ... kill current typesetting process 5.2355 +`[prefix] t b' 5.2356 + ... invoke bibtex 5.2357 +`[prefix] t i' 5.2358 + ... invoke makeindex 5.2359 +`[prefix] t d' 5.2360 + ... invoke latex && dvipdfmx 5.2361 +`[prefix] t p' 5.2362 + ... preview 5.2363 +`[prefix] t l' 5.2364 + ... lpr dvi-file 5.2365 +`[prefix] t s' 5.2366 + ... search current string on xdvi-remote 5.2367 + 5.2368 +* Menu: 5.2369 + 5.2370 +* Calling typesetter:: 5.2371 +* Calling previewer:: 5.2372 +* Printing out:: 5.2373 + 5.2374 + 5.2375 + 5.2376 +File: yatexe, Node: Calling typesetter, Next: Calling previewer, Prev: Typesetting, Up: Typesetting 5.2377 + 5.2378 +Calling typesetter 5.2379 +================== 5.2380 + 5.2381 + Typing `[prefix] t j', the current editing window will be divided 5.2382 +horizontally when you invoke latex command, and log message of LaTeX 5.2383 +typesetting will be displayed in the other window; called typesetting 5.2384 +buffer. The typesetting buffer automatically scrolls up and traces LaTeX 5.2385 +warnings and error messages. If you see latex stopping by an error, you 5.2386 +can send string to latex in the typesetting buffer. 5.2387 + 5.2388 + If an error stops the LaTeX typesetting, this key stroke will move the 5.2389 +cursor to the line where LaTeX error is detected. 5.2390 + 5.2391 +`[prefix] '' 5.2392 +`([prefix]+single quotation)' 5.2393 + 5.2394 + ... jump to the previous error or warning 5.2395 + 5.2396 + If you find a noticeable error, move to the typesetting buffer and move 5.2397 +the cursor on the line of error message and type `SPACE' key. This makes 5.2398 +the cursor move to corresponding source line. 5.2399 + 5.2400 + YaTeX-typeset-region invoked by `[prefix] tr' call typesetter for 5.2401 +region. The region is specified by standard point and mark, or by 5.2402 +`%#BEGIN' and `%#END' marks. Selected region will be copied to the 5.2403 +temporary file `texput.tex' with the same preamble as the main file of 5.2404 +current editing sources. Be sure to put all local macro settings in 5.2405 +preamble, not after `\begin{document}'. The method of specification of 5.2406 +the region is shown in the section *Note %#notation::. 5.2407 + 5.2408 + The documentclass for typeset-region is the same as that of editing file 5.2409 +if you edit one file, and is the same as main file's if you edit splitting 5.2410 +files. 5.2411 + 5.2412 + The `[prefix] te' key automatically marks current inner environment or 5.2413 +inner math mode and then call typeset-region with marked region. This is 5.2414 +convenient to quick view of current tabular environment or current editing 5.2415 +formulas. Keeping previewer window for `texput.dvi' is handy for 5.2416 +debugging. Since `[prefix] te' selects the inner-most environment as 5.2417 +region, it is not suitable for partial typesetting of doubly or more 5.2418 +composed environment. If you want to do partial typesetting for a nested 5.2419 +environment, use `[prefix] tr' for static-region, which is described in 5.2420 +the section *Note %#notation::. 5.2421 + 5.2422 + 5.2423 + 5.2424 +File: yatexe, Node: Calling previewer, Next: Printing out, Prev: Calling typesetter, Up: Typesetting 5.2425 + 5.2426 +Calling previewer 5.2427 +================= 5.2428 + 5.2429 + `[prefix] t p' invokes the TeX previewer. And if you are using 5.2430 +xdvi-remote, which can be controled from other terminals, `[prefix] t s' 5.2431 +enables you to search current string at the cursor on the running xdvi 5.2432 +window. 5.2433 + 5.2434 + 5.2435 + 5.2436 +File: yatexe, Node: Printing out, Prev: Calling previewer, Up: Typesetting 5.2437 + 5.2438 +Printing out 5.2439 +============ 5.2440 + 5.2441 + When you type `[preifx] t l', YaTeX asks you the range of dvi-printing 5.2442 +by default. You can skip this by invoking it with universal-argument as 5.2443 +follows: 5.2444 + 5.2445 + C-u [prefix] tl 5.2446 + 5.2447 + 5.2448 + 5.2449 +File: yatexe, Node: %#notation, Next: Completion, Prev: Typesetting, Up: Top 5.2450 + 5.2451 +%# notation 5.2452 +*********** 5.2453 + 5.2454 + You can control the typesetting process by describing `%#' notations in 5.2455 +the source text. 5.2456 + 5.2457 +* Menu: 5.2458 + 5.2459 +* Changing typesetter:: 5.2460 +* Splitting input files:: 5.2461 +* Static region for typesetting:: 5.2462 +* Lpr format:: 5.2463 +* Controlling which command to invoke:: 5.2464 +* Editing %# notation:: 5.2465 + 5.2466 + 5.2467 + 5.2468 +File: yatexe, Node: Changing typesetter, Next: Splitting input files, Prev: %#notation, Up: %#notation 5.2469 + 5.2470 +To change the `latex' command or to split a source text. 5.2471 +======================================================== 5.2472 + 5.2473 + To change the typesetting command, write 5.2474 + 5.2475 + %#!latex-big 5.2476 + 5.2477 +anywhere in the source text. This is useful for changing typesetter. 5.2478 + 5.2479 + 5.2480 + 5.2481 +File: yatexe, Node: Splitting input files, Next: Static region for typesetting, Prev: Changing typesetter, Up: %#notation 5.2482 + 5.2483 +Splitting input files 5.2484 +===================== 5.2485 + 5.2486 + And if you split the source text and edit subfile that should be 5.2487 +included from main text. 5.2488 + 5.2489 + %#!latex main.tex 5.2490 + 5.2491 +will be helpful to execute latex on main file from sub text buffer. Since 5.2492 +this command line after `%#!' will be sent to shell literally, next 5.2493 +description makes it convenient to use ghostview as dvi-previewer. 5.2494 + 5.2495 + %#!latex main && dvi2ps main.dvi > main 5.2496 + 5.2497 +Note that YaTeX assumes the component before the last period of the last 5.2498 +word in this line as base name of the main LaTeX source. The `%f' 5.2499 +notation in this line is replaced by main file name, and `%r' replaced by 5.2500 +root name of main file name. If you specify `%f' or `%r', YaTeX always 5.2501 +ask you the name of main file at the first typesetting. 5.2502 + 5.2503 + To make best use of the feature of inter-file jumping by `[prefix] g' 5.2504 +(see *Note Cursor jump::), take described below into consideration. 5.2505 + 5.2506 + * You can put split texts in sub directory, but not in sub directory of 5.2507 + sub directory. 5.2508 + * In the main text, specify the child file name with relative path name 5.2509 + such as \include{chap1/sub}, when you include the file in a 5.2510 + sub-directory. 5.2511 + * In a sub-text, write `%#!latex main.tex' even if `main.tex' is in the 5.2512 + parent directory(not %#!latex ../main.tex). 5.2513 + 5.2514 + 5.2515 + 5.2516 +File: yatexe, Node: Static region for typesetting, Next: Lpr format, Prev: Splitting input files, Up: %#notation 5.2517 + 5.2518 +Static region 5.2519 +============= 5.2520 + 5.2521 + Typeset-region by `[prefix] tr' passes the region between point and mark 5.2522 +to typesetting command by default. But when you want to typeset static 5.2523 +region, enclose the region by `%#BEGIN' and `%#END' as follows. 5.2524 + 5.2525 + %#BEGIN 5.2526 + TheRegionYouWantToTypesetManyTimes 5.2527 + %#END 5.2528 + 5.2529 +This is the rule of deciding the region. 5.2530 + 5.2531 + 1. If there exists %#BEGIN before point, 5.2532 + 5.2533 + 1. If there exists %#END after %#BEGIN, 5.2534 + * From %#BEGIN to %#END. 5.2535 + 5.2536 + 2. If %#END does not exist after %#BEGIN, 5.2537 + * From %#BEGIN to the end of buffer. 5.2538 + 5.2539 + 2. If there does not exist %#BEGIN before point, 5.2540 + * Between point and mark(standard method of Emacs). 5.2541 + 5.2542 + It is useful to write `%#BEGIN' in the previous line of \begin and 5.2543 +`%#END' in the next line of \`end' when you try complex environment such 5.2544 +as `tabular' many times. It is also useful to put only `%#BEGIN' alone at 5.2545 +the middle of very long text. Do not forget to erase `%#BEGIN' `%#END' 5.2546 +pair. 5.2547 + 5.2548 + 5.2549 + 5.2550 +File: yatexe, Node: Lpr format, Next: Controlling which command to invoke, Prev: Static region for typesetting, Up: %#notation 5.2551 + 5.2552 +Lpr format 5.2553 +========== 5.2554 + 5.2555 + Lpr format is specified by three Lisp variables. Here are the default 5.2556 +values of them. 5.2557 + 5.2558 +`(1)dviprint-command-format' 5.2559 + `"dvi2ps %f %t %s | lpr"' 5.2560 +`(2)dviprint-from-format' 5.2561 + `"-f %b"' 5.2562 +`(3)dviprint-to-format' 5.2563 + `"-t %e"' 5.2564 + 5.2565 + On YaTeX-lpr, `%s' in (1) is replaced by the file name of main text, 5.2566 +`%f' by contents of (2), %t by contents of (3). At these replacements, 5.2567 +`%b' in (2) is also replaced by the number of beginning page, `%e' in (3) 5.2568 +is replaced by the number of ending page. But `%f' and `%t' are ignored 5.2569 +when you omit the range of print-out by `C-u [prefix] tl'. 5.2570 + 5.2571 + If you want to change this lpr format temporarily, put a command such as 5.2572 +follows somewhere in the text: 5.2573 + 5.2574 + %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2 5.2575 + 5.2576 + And if you want YaTeX not to ask you the range of printing out, the next 5.2577 +example may be helpful. 5.2578 + 5.2579 + %#LPR dvi2ps %s | lpr 5.2580 + 5.2581 + 5.2582 + 5.2583 +File: yatexe, Node: Controlling which command to invoke, Next: Editing %# notation, Prev: Lpr format, Up: %#notation 5.2584 + 5.2585 +Controlling which command to invoke 5.2586 +=================================== 5.2587 + 5.2588 +These %# notation below can control which command to invoke for LaTeX 5.2589 +related process. 5.2590 + 5.2591 + `%#BIBTEX' 5.2592 + 5.2593 + ... Command line for makeindex ([prefix] t i) 5.2594 + `%#MAKEINDEX' 5.2595 + 5.2596 + ... Command line for bibtex ([prefix] t b) 5.2597 + 5.2598 +If you want to invoke "makeidx hogehoge" to update index, put the next 5.2599 +line some upper place in the source, for example. 5.2600 + 5.2601 + %#MAKEINDEX makeidx hogehoge 5.2602 + 5.2603 + 5.2604 + 5.2605 + 5.2606 +File: yatexe, Node: Editing %# notation, Prev: Controlling which command to invoke, Up: %#notation 5.2607 + 5.2608 +Editing %# notation 5.2609 +=================== 5.2610 + 5.2611 + To edit `%#' notation described above, type 5.2612 + 5.2613 +`[prefix] %' 5.2614 + ... editing %# notation menu 5.2615 + 5.2616 +and select one of the entry of the menu as follows. 5.2617 + 5.2618 + !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR 5.2619 + 5.2620 +Type `!' to edit `%#!' entry, `b' to enclose the region with `%#BEGIN' and 5.2621 +`%#END', and `l' to edit `%#LPR' entry. When you type `b', all `%#BEGIN' 5.2622 +and `%#END' are automatically erased. 5.2623 + 5.2624 + 5.2625 + 5.2626 +File: yatexe, Node: Completion, Next: Local dictionaries, Prev: %#notation, Up: Top 5.2627 + 5.2628 +Completion 5.2629 +********** 5.2630 + 5.2631 + YaTeX makes it easy to input the LaTeX commands. There are several 5.2632 +kinds of completion type, begin-type, section-type, large-type, etc... 5.2633 + 5.2634 +* Menu: 5.2635 + 5.2636 +* Begin-type completion:: 5.2637 +* Section-type completion:: 5.2638 +* Large-type completion:: 5.2639 +* Maketitle-type completion:: 5.2640 +* Arbitrary completion:: 5.2641 +* End completion:: 5.2642 +* Accent completion:: 5.2643 +* Image completion:: 5.2644 +* Greek letters completion:: 5.2645 + 5.2646 + 5.2647 + 5.2648 +File: yatexe, Node: Begin-type completion, Next: Section-type completion, Prev: Completion, Up: Completion 5.2649 + 5.2650 +Begin-type completion 5.2651 +===================== 5.2652 + 5.2653 + "Begin-type completion" completes commands of `\begin{env}' ... 5.2654 +`\end{env}'. All of the begin-type completions begin with this key 5.2655 +sequence. 5.2656 + 5.2657 +`[prefix] b' 5.2658 + ... start begin-type completion 5.2659 + 5.2660 +An additional key stroke immediately completes a frequently used LaTeX 5.2661 +`\begin{}'...`\`end'{}' environment. 5.2662 + 5.2663 +`[prefix] b c' 5.2664 + ... `\begin{center}...\end{center}' 5.2665 +`[prefix] b d' 5.2666 + ... `\begin{document}...\end{document}' 5.2667 +`[prefix] b D' 5.2668 + ... `\begin{description}...\end{description}' 5.2669 +`[prefix] b e' 5.2670 + ... `\begin{enumerate}...\end{enumerate}' 5.2671 +`[prefix] b E' 5.2672 + ... `\begin{equation}...\end{equation}' 5.2673 +`[prefix] b i' 5.2674 + ... `\begin{itemize}...\end{itemize}' 5.2675 +`[prefix] b l' 5.2676 + ... `\begin{flushleft}...\end{flushleft}' 5.2677 +`[prefix] b m' 5.2678 + ... `\begin{minipage}...\end{minipage}' 5.2679 +`[prefix] b t' 5.2680 + ... `\begin{tabbing}...\end{tabbing}' 5.2681 +`[prefix] b T' 5.2682 + ... `\begin{tabular}...\end{tabular}' 5.2683 +`[prefix] b^T' 5.2684 + ... `\begin{table}...\end{table}' 5.2685 +`[prefix] b p' 5.2686 + ... `\begin{picture}...\end{picture}' 5.2687 +`[prefix] b q' 5.2688 + ... `\begin{quote}...\end{quote}' 5.2689 +`[prefix] b Q' 5.2690 + ... `\begin{quotation}...\end{quotation}' 5.2691 +`[prefix] b r' 5.2692 + ... `\begin{flushright}...\end{flushright}' 5.2693 +`[prefix] b v' 5.2694 + ... `\begin{verbatim}...\end{verbatim}' 5.2695 +`[prefix] b V' 5.2696 + ... `\begin{verse}...\end{verse}' 5.2697 + 5.2698 + Any other LaTeX environments are made by completing-read of the Emacs 5.2699 +function. 5.2700 + 5.2701 +`[prefix] b SPACE' 5.2702 + ... begin-type completion 5.2703 + 5.2704 +The next message will show up in the minibuffer 5.2705 + 5.2706 + Begin environment(default document): 5.2707 + 5.2708 +by typing `[prefix] b'. Put the wishing environment with completion in 5.2709 +the minibuffer, and `\begin{env}'...\`\end{env}' will be inserted in the 5.2710 +LaTeX source text. If the environment you want to put does not exist in 5.2711 +the YaTeX completion table, it will be registered in the user completion 5.2712 +table. YaTeX automatically saves the user completion table in the user 5.2713 +dictionary file at exiting of emacs. 5.2714 + 5.2715 +At the completion of certain environments, the expected initial entry will 5.2716 +automatically inserted such as `\item' for `itemize' environment. If you 5.2717 +don't want the entry, it can be removed by undoing. 5.2718 + 5.2719 + If you want to enclose some paragraphs which have already been written, 5.2720 +invoke the begin-type completion with changing the case of `b' of key 5.2721 +sequence upper(or invoke it with universal argument by `C-u' prefix). 5.2722 + 5.2723 + The following example encloses a region with `description' environment. 5.2724 + 5.2725 +`[prefix] B D' 5.2726 +`(or ESC 1 [prefix] b D)' 5.2727 +`(or C-u [prefix] b D)' 5.2728 + 5.2729 + ... begin-type completion for region 5.2730 + 5.2731 + This enclosing holds good for the completing input by `[prefix] b SPC'. 5.2732 +`[prefix] B SPC' enclose a region with the environment selected by 5.2733 +completing-read. 5.2734 + 5.2735 + 5.2736 + 5.2737 +File: yatexe, Node: Section-type completion, Next: Large-type completion, Prev: Begin-type completion, Up: Completion 5.2738 + 5.2739 +Section-type completion 5.2740 +======================= 5.2741 + 5.2742 + "Section-type completion" completes section-type commands which take an 5.2743 +argument or more such as `\section{foo}'. To invoke section-type 5.2744 +completion, type 5.2745 + 5.2746 +`[prefix] s' 5.2747 + ... section-type completion 5.2748 + 5.2749 +then the prompt 5.2750 + 5.2751 + (C-v for view) \???{} (default documentclass): 5.2752 + 5.2753 +will show up in the minibuffer. Section-type LaTeX commands are completed 5.2754 +by space key, and the default value is selected when you type nothing in 5.2755 +the minibuffer. 5.2756 + 5.2757 + Next, 5.2758 + 5.2759 + \section{???}: 5.2760 + 5.2761 +prompts you the argument of section-type LaTeX command. For example, the 5.2762 +following inputs 5.2763 + 5.2764 + \???{} (default documentclass): section 5.2765 + \section{???}: Hello world. 5.2766 + 5.2767 +will insert the string 5.2768 + 5.2769 + \section{Hello world.} 5.2770 + 5.2771 +in your LaTeX source. When you neglect argument such as 5.2772 + 5.2773 + (C-v for view) \???{} (default section): vspace* 5.2774 + \vspace*{???}: 5.2775 + 5.2776 +YaTeX puts 5.2777 + 5.2778 + \vspace*{} 5.2779 + 5.2780 +and move the cursor in the braces. 5.2781 + 5.2782 + In LaTeX command, there are commands which take more than one arguments 5.2783 +such as `\addtolength{\topmargin}{8mm}'. To complete these commands, 5.2784 +invoke section-type completion with universal argument as, 5.2785 + 5.2786 + C-u 2 [prefix] s (or ESC 2 [prefix] s) 5.2787 + 5.2788 +and make answers in minibuffer like this. 5.2789 + 5.2790 + (C-v for view) \???{} (default vspace*): addtolength 5.2791 + \addtolength{???}: \topmargin 5.2792 + Argument 2: 8mm 5.2793 + 5.2794 +`\addtolength' and the first argument `\topmargin' can be typed easily by 5.2795 +completing read. Since YaTeX also learns the number of arguments of 5.2796 +section-type command and will ask that many arguments in future 5.2797 +completion, you had better tell the number of arguments to YaTeX at the 5.2798 +first completion of the new word. But you can change the number of 5.2799 +arguments by calling the completion with different universal argument 5.2800 +again. 5.2801 + 5.2802 + 5.2803 + Invoking section-type completion with `[Prefix] S' (Capital `S') 5.2804 +includes the region as the first argument of section-type command. 5.2805 + 5.2806 + The section/large/maketitle type completion can work at the prompt for 5.2807 +the argument of other section-type completion. Nested LaTeX commands are 5.2808 +efficiently read with the recursive completion by typing YaTeX's 5.2809 +completion key sequence in the minibuffer. 5.2810 + 5.2811 +* Menu: 5.2812 + 5.2813 +* view-sectioning:: 5.2814 + 5.2815 + 5.2816 + 5.2817 +File: yatexe, Node: view-sectioning, Prev: Section-type completion, Up: Section-type completion 5.2818 + 5.2819 +view-sectioning 5.2820 +--------------- 5.2821 + 5.2822 + In the minibuffer at the prompt of section-type command completion, 5.2823 +typing `C-v' shows a list of sectioning commands in source text(The line 5.2824 +with `<<--' mark is the nearest sectioning command). Then, default 5.2825 +sectioning command appears in the minibuffer. You can go up/down 5.2826 +sectioning command by typing `C-p'/`C-n', can scrolls up/down the listing 5.2827 +buffer by `C-v'/`M-v', and can hide sectioning commands under certain 5.2828 +level by 0 through 6. Type `?' in the minibuffer of sectioning prompt 5.2829 +for more information. 5.2830 + 5.2831 + You can generate this listing buffer (`*Sectioning Lines*' buffer) by 5.2832 +typing 5.2833 +`M-x YaTeX-section-overview' 5.2834 + ... Generate *Sectioning Lines* buffer 5.2835 + 5.2836 +from the LaTeX source buffer. In this listing buffer, typing `u' on the 5.2837 +sectioning command shifts up the corresponding sectioning command in 5.2838 +source text and `d' shifts down. After marking lines in the listing 5.2839 +buffer, typing `U' shifts up all sectioning commands in the region, and 5.2840 +`U' shifts down. Here are all the key bindings of `*Sectioning Lines*' 5.2841 +buffer. 5.2842 + 5.2843 +`SPC' 5.2844 + ... Jump to corresponding source line 5.2845 +`.' 5.2846 + ... Display corresponding source line 5.2847 +`u' 5.2848 + ... Shift up a sectioning line 5.2849 +`d' 5.2850 + ... Shift down a sectioning line 5.2851 +`U' 5.2852 + ... Shift up sectioning lines in region 5.2853 +`D' 5.2854 + ... Shift down sectioning lines in region 5.2855 +`0...6' 5.2856 + ... Hide sectioning commands whose level is lower than n 5.2857 + 5.2858 + 5.2859 + 5.2860 + 5.2861 +File: yatexe, Node: Large-type completion, Next: Maketitle-type completion, Prev: Section-type completion, Up: Completion 5.2862 + 5.2863 +Large-type completion 5.2864 +===================== 5.2865 + 5.2866 + "Large-type completion" inputs the font or size changing descriptions 5.2867 +such as `{\large }'. When you type 5.2868 + 5.2869 +`[prefix] l' 5.2870 + ... large-type completion 5.2871 + 5.2872 +the message in the minibuffer 5.2873 + 5.2874 + {\??? } (default large): 5.2875 + 5.2876 +prompts prompts you large-type command with completing-read. There are 5.2877 +TeX commands to change fonts or sizes, `it', `huge' and so on, in the 5.2878 +completion table. 5.2879 + 5.2880 + Region-based completion is also invoked by changing the letter after 5.2881 +prefix key stroke as `[prefix] L'. It encloses the region by braces with 5.2882 +large-type command. 5.2883 + 5.2884 + 5.2885 + 5.2886 +File: yatexe, Node: Maketitle-type completion, Next: Arbitrary completion, Prev: Large-type completion, Up: Completion 5.2887 + 5.2888 +Maketitle-type completion 5.2889 +========================= 5.2890 + 5.2891 + We call it "maketitle-type completion" which completes commands such as 5.2892 +`\maketitle'. Take notice that maketitle-type commands take no arguments. 5.2893 +Then, typing 5.2894 + 5.2895 +`[prefix] m' 5.2896 + ... maketitle-type completion 5.2897 + 5.2898 +begins maketitle-completion. Above mentioned method is true for 5.2899 +maketitle-completion, and there are LaTeX commands with no arguments in 5.2900 +completion table. 5.2901 + 5.2902 + 5.2903 + 5.2904 +File: yatexe, Node: Arbitrary completion, Next: End completion, Prev: Maketitle-type completion, Up: Completion 5.2905 + 5.2906 +Arbitrary completion 5.2907 +==================== 5.2908 + 5.2909 + You can complete certain LaTeX command anywhere without typical 5.2910 +completing method as described, by typing 5.2911 + 5.2912 +`[prefix] SPC' 5.2913 + ... arbitrary completion 5.2914 + 5.2915 +after the initial string of LaTeX command that is preceded by `\'. 5.2916 + 5.2917 + 5.2918 + 5.2919 +File: yatexe, Node: End completion, Next: Accent completion, Prev: Arbitrary completion, Up: Completion 5.2920 + 5.2921 +End completion 5.2922 +============== 5.2923 + 5.2924 + YaTeX automatically detects the opened environment and close it with 5.2925 +\`\end{environment}'. Though proficient YaTeX users never fail to make 5.2926 +environment with begin-type completion, some may begin an environment 5.2927 +manually. In that case, type 5.2928 + 5.2929 +`[prefix] e' 5.2930 + ... `end' completion 5.2931 + 5.2932 +at the end of the opened environment. 5.2933 + 5.2934 + 5.2935 + 5.2936 +File: yatexe, Node: Accent completion, Next: Image completion, Prev: End completion, Up: Completion 5.2937 + 5.2938 +Accent completion 5.2939 +================= 5.2940 + 5.2941 + When you want to write the European accent marks(like `\`{o}'), 5.2942 + 5.2943 +`[prefix] a' 5.2944 + ... accent completion 5.2945 + 5.2946 +shows the menu 5.2947 + 5.2948 + 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b 5.2949 + 5.2950 +in the minibuffer. Chose one character or corresponding numeric, and you 5.2951 +will see 5.2952 + 5.2953 + \`{} 5.2954 + 5.2955 +in the editing buffer with the cursor positioned in braces. Type one more 5.2956 +character `o' for example, then 5.2957 + 5.2958 + \`{o} 5.2959 + 5.2960 +will be completed, and the cursor gets out from braces. 5.2961 + 5.2962 + 5.2963 + 5.2964 +File: yatexe, Node: Image completion, Next: Greek letters completion, Prev: Accent completion, Up: Completion 5.2965 + 5.2966 +Image completion of mathematical sign 5.2967 +===================================== 5.2968 + 5.2969 + Arrow marks, sigma mark and those signs mainly used in the TeX's math 5.2970 +environment are completed by key sequences which imitate the corresponding 5.2971 +symbols graphically. This completion only works in the math environment. 5.2972 +YaTeX automatically detects whether the cursor located in math environment 5.2973 +or not, and change the behavior of key strokes `;' and `:'. 5.2974 + 5.2975 + By the way, we often express the leftarrow mark by `<-' for example. 5.2976 +Considering such image, you can write `\leftarrow' by typing `<-' after 5.2977 +`;' (semicolon) as a prefix. In the same way, `\longleftarrow' (`<--') is 5.2978 +completed by typing `;<--', infinity mark which is imitated by `oo' is 5.2979 +completed by typing `;oo'. 5.2980 + 5.2981 + Here are the sample operations in YaTeX math-mode. 5.2982 + 5.2983 + INPUT Completed LaTeX commands 5.2984 + ; < - `\leftarrow' 5.2985 + ; < - - `\longleftarrow' 5.2986 + ; < - - > `\longleftrightarrow' 5.2987 + ; o `\circ' 5.2988 + ; o o `\infty' 5.2989 + 5.2990 + In any case, you can quit from image completion and can move to the next 5.2991 +editing operation if the LaTeX command you want is shown in the buffer. 5.2992 + 5.2993 + `;' itself in math-environment is inserted by `;;'. Typing `TAB' in the 5.2994 +midst of image completion shows all of the LaTeX commands that start with 5.2995 +the same name as string you previously typed in. In this menu buffer, 5.2996 +press `RET' after moving the cursor (by `n', `p', `b', `f') to insert the 5.2997 +LaTeX command. 5.2998 + 5.2999 + To know all of the completion table, type `TAB' just after `;'. And 5.3000 +here is the sample menu by `TAB' after `;<'. 5.3001 + 5.3002 + KEY LaTeX sequence sign 5.3003 + < \leq < 5.3004 + ~ 5.3005 + << \ll << 5.3006 + <- \leftarrow <- 5.3007 + <= \Leftarrow <= 5.3008 + 5.3009 + You can define your favorite key-vs-sequence completion table in the 5.3010 +Emacs-Lisp variable `YaTeX-math-sign-alist-private'. See also 5.3011 +`yatexmth.el' for the information of the structure of this variable. 5.3012 + 5.3013 + 5.3014 + 5.3015 +File: yatexe, Node: Greek letters completion, Prev: Image completion, Up: Completion 5.3016 + 5.3017 +Greek letters completion 5.3018 +======================== 5.3019 + 5.3020 + Math-mode of YaTeX provides another image completion, Greek letters 5.3021 +completion in the same method. After prefix `:', typing `a' makes 5.3022 +`\alpha', `b' makes `\beta' and `g' makes `\gamma' and so on. First, type 5.3023 +`:TAB' to know all the correspondence of alphabets vs. Greek letters. 5.3024 + 5.3025 + If you will find `;' or `:' doesn't work in correct position of math 5.3026 +environment, it may be a bug of YaTeX. Please send me a bug report with 5.3027 +the configuration of your text, and avoid it temporarily by typing `;' or 5.3028 +`:' after universal-argument(`C-u') which forces `;' and `:' to work as 5.3029 +math-prefix. 5.3030 + 5.3031 + 5.3032 + 5.3033 +File: yatexe, Node: Local dictionaries, Next: Commenting out, Prev: Completion, Up: Top 5.3034 + 5.3035 +Local dictionaries 5.3036 +****************** 5.3037 + 5.3038 + Tables for completion consist of three dictionaries; `standard 5.3039 +dictionary' built in `yatex.el', `user dictionary' for your common private 5.3040 +commands, and `local dictionary' that is effective in a certain directory. 5.3041 + 5.3042 + When you input the command unknown to YaTeX at a completion in the 5.3043 +minibuffer, YaTeX asks you with the following prompt; 5.3044 + 5.3045 + `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard 5.3046 + 5.3047 +In this menu, typing `u' updates your `user dictionary', `l' updates your 5.3048 +local dictionary, `n' updates only on-memory dictionary which go through 5.3049 +only current Emacs session, and `d' updates no dictionary and throws the 5.3050 +new word away. 5.3051 + 5.3052 + If you find this switching feature meaningless and bothersome, put the 5.3053 +next expression into your `~/.emacs' 5.3054 + 5.3055 + (setq YaTeX-nervous nil) 5.3056 + 5.3057 + 5.3058 + 5.3059 +File: yatexe, Node: Commenting out, Next: Cursor jump, Prev: Local dictionaries, Up: Top 5.3060 + 5.3061 +Commenting out 5.3062 +************** 5.3063 + 5.3064 + You may want to comment out some region. 5.3065 + 5.3066 +`[prefix] >' 5.3067 + ... comment out region by % 5.3068 +`[prefix] <' 5.3069 + ... uncomment region 5.3070 + 5.3071 +cause an operation to the region between point and mark. 5.3072 + 5.3073 +`[prefix] .' 5.3074 + ... comment out current paragraph 5.3075 +`[prefix] ,' 5.3076 + ... uncomment current paragraph 5.3077 + 5.3078 +comments or uncomments the paragraph where the cursor belongs. This 5.3079 +`paragraph' means the region marked by the function mark-paragraph, bound 5.3080 +to `ESC h' by default. It is NOT predictable what will happen when you 5.3081 +continuously comment out some paragraph many times. 5.3082 + 5.3083 + You can also comment out an environment between `\begin' and `\end', or 5.3084 +a `\begin'-\`\end' pair themselves, by making the following key strokes on 5.3085 +the line where `\begin{}' or `\end{}' exists. 5.3086 + 5.3087 +`[prefix] >' 5.3088 + ... comment out from \begin to \`end' 5.3089 +`[prefix] <' 5.3090 + ... uncomment from \begin to \`end' 5.3091 + 5.3092 +comment whole the contents of environment. Moreover, 5.3093 + 5.3094 +`[prefix] .' 5.3095 + ... comment out \begin and \`end' 5.3096 +`[prefix] ,' 5.3097 + ... uncomment \begin and \`end' 5.3098 + 5.3099 +(un)comments out only environment declaration: `\begin{}' and `\end{}'. 5.3100 +NOTE that even if you intend to comment out some region, invoking 5.3101 +`[prefix] >' on the `\begin',`\end' line decides to work in `commenting 5.3102 +out from `\begin' to `\end'' mode. 5.3103 + 5.3104 + 5.3105 + 5.3106 + 5.3107 +File: yatexe, Node: Cursor jump, Next: Changing and Deleting, Prev: Commenting out, Up: Top 5.3108 + 5.3109 +Cursor jump 5.3110 +*********** 5.3111 + 5.3112 + 5.3113 +* Menu: 5.3114 + 5.3115 +* Jump to corresponding object:: 5.3116 +* Invoking image processor:: 5.3117 +* Jump to main file:: 5.3118 +* Jumping around the environment:: 5.3119 +* Jumping to last completion position:: 5.3120 + 5.3121 + 5.3122 + 5.3123 +File: yatexe, Node: Jump to corresponding object, Next: Invoking image processor, Prev: Cursor jump, Up: Cursor jump 5.3124 + 5.3125 +Jump to corresponding object 5.3126 +============================ 5.3127 + 5.3128 + Typing 5.3129 + 5.3130 +`[prefix] g' 5.3131 + ... go to corresponding object 5.3132 + 5.3133 +in a certain place move the cursor to the place corresponding to the LaTeX 5.3134 +command of last place. YaTeX recognize the followings as pairs that have 5.3135 +relation each other. 5.3136 + 5.3137 + * `\begin{}' <-> `\end{}' 5.3138 + * `%#BEGIN' <-> `%#END' 5.3139 + * On the image-including line -> corresponding viewer or drawing tool 5.3140 + * `\label{}' <-> `\ref{}' 5.3141 + * `\include(\input)' -> included file 5.3142 + * `\bibitem{}' <-> `\cite{}' 5.3143 + 5.3144 + On a `\begin',`\end' line, typing `[prefix] g' moves the cursor to the 5.3145 +corresponding `\end',`\begin' line, if its partner really exists. The 5.3146 +behavior on the line `%#BEGIN' and `%#END' are the same. Note that if the 5.3147 +correspondent of `label/ref' or `cite/bibitem' exists in another file, 5.3148 +that file have to be opened to make a round trip between references by 5.3149 +`[prefix] g'. 5.3150 + 5.3151 + If you type `[prefix] g' on the line of `\include{chap1}', typically in 5.3152 +the main text, YaTeX switches buffer to `chap1.tex'. 5.3153 + 5.3154 +`[prefix] 4 g' 5.3155 + ... go to corresponding object in other window 5.3156 + 5.3157 +do the same job as `[prefix] g' except it's done in other window. Note 5.3158 +that this function doesn't work on `begin/end', `%#BEGIN/%#END' pairs 5.3159 +because it is meaningless. 5.3160 + 5.3161 + 5.3162 + 5.3163 +File: yatexe, Node: Invoking image processor, Next: Jump to main file, Prev: Jump to corresponding object, Up: Cursor jump 5.3164 + 5.3165 +Invoking image processor 5.3166 +======================== 5.3167 + 5.3168 + 5.3169 +`image-including line' described above means such lines as 5.3170 +`\epsfile{file=foo.ps}'. If you type `[prefix] g' on that line, YaTeX 5.3171 +automatically searches source of `foo.ps' and invokes image viewer or 5.3172 +drawing tool correspoinding to it. For example; if you draw an image 5.3173 +foo.obj with Tgif and enclose its product named foo.eps by `\epsfile' 5.3174 +command. Typing `[prefix] g' on `\epsfile' line make YaTeX invoke `tgif 5.3175 +foo.obj'. How a processor is choosen is as follows. 5.3176 + 5.3177 + 1. If there is an expression matching with one of the pattern defined in 5.3178 + `YaTeX-processed-file-regexp-alist', extract file name from regexp 5.3179 + group surrounded by \\(\\). (Which group corresponds is written in 5.3180 + the cdr part of each list.) If no matches were found, do nothing. 5.3181 + 2. If there is a pattern as `%PROCESSOR' which is defined in the 5.3182 + variable `YaTeX-file-processor-alist', call that processor giving the 5.3183 + file name with corresponding extension. 5.3184 + 3. If not, check the existence of each file which is supplied the 5.3185 + extension in the cdr part of each list of 5.3186 + `YaTeX-file-processor-alist'. If any, call the corresponding image 5.3187 + viewer or drawing tool. 5.3188 + 5.3189 + 5.3190 + 5.3191 +File: yatexe, Node: Jump to main file, Next: Jumping around the environment, Prev: Invoking image processor, Up: Cursor jump 5.3192 + 5.3193 +Jump to main file 5.3194 +================= 5.3195 + 5.3196 + Typing 5.3197 + 5.3198 +`[prefix] ^' 5.3199 + ... visit main file 5.3200 +`[prefix] 4^' 5.3201 + ... visit main file in other buffer 5.3202 + 5.3203 +in a sub text switch the buffer to the main text specified by `%#!' 5.3204 +notation. 5.3205 + 5.3206 + 5.3207 + 5.3208 +File: yatexe, Node: Jumping around the environment, Next: Jumping to last completion position, Prev: Jump to main file, Up: Cursor jump 5.3209 + 5.3210 +Jumping around the environment 5.3211 +============================== 5.3212 + 5.3213 + And these are the functions which work on the current LaTeX environment: 5.3214 + 5.3215 +`M-C-a' 5.3216 + ... beginning of environment 5.3217 +`M-C-e' 5.3218 + ... `end' of environment 5.3219 +`M-C-@' 5.3220 + ... mark environment 5.3221 + 5.3222 + 5.3223 + 5.3224 +File: yatexe, Node: Jumping to last completion position, Prev: Jumping around the environment, Up: Cursor jump 5.3225 + 5.3226 +Jumping to last completion position 5.3227 +=================================== 5.3228 + 5.3229 +YaTeX always memorize the position of completion into register `3'. So 5.3230 +every time you make a trip to any other part of text other than you are 5.3231 +writing, you can return to the editing paragraph by calling 5.3232 +register-to-point with argument YaTeX-current-position-register, which is 5.3233 +achieved by typing `C-x j 3'(by default). 5.3234 + 5.3235 + 5.3236 + 5.3237 +File: yatexe, Node: Changing and Deleting, Next: Filling, Prev: Cursor jump, Up: Top 5.3238 + 5.3239 +Changing and Deleting 5.3240 +********************* 5.3241 + 5.3242 + These functions are for change or deletion of LaTeX commands already 5.3243 +entered. 5.3244 + 5.3245 +`[prefix] c' 5.3246 + ... change LaTeX command 5.3247 +`[prefix] k' 5.3248 + ... kill LaTeX command 5.3249 + 5.3250 +* Menu: 5.3251 + 5.3252 +* Changing LaTeX commands:: 5.3253 +* Killing LaTeX commands:: 5.3254 + 5.3255 + 5.3256 + 5.3257 +File: yatexe, Node: Changing LaTeX commands, Next: Killing LaTeX commands, Prev: Changing and Deleting, Up: Changing and Deleting 5.3258 + 5.3259 +Changing LaTeX commands 5.3260 +======================= 5.3261 + 5.3262 +`[prefix] c' can change the various (La)TeX commands. This can change the 5.3263 +followings. 5.3264 + * Environment names 5.3265 + * Section-type commands 5.3266 + * Argument of section-type commands 5.3267 + * Optional parameters (enclosed by []) of section-type commands 5.3268 + * Font/size designators 5.3269 + * Math-mode's maketitle-type commands that can be inputted with image 5.3270 + completion 5.3271 + 5.3272 + Typing `[prefix] c' on one of above objects you want to change brings a 5.3273 +suitable reading function sometimes with completion. Note: If you want to 5.3274 +change the argument of section-type command that contains other LaTeX 5.3275 +commands, type `[prefix] c' either of surrounding braces of the argument 5.3276 +in order to make YaTeX ignore the internal LaTeX sequences as an object of 5.3277 +changing. Anyway, it is very difficult to know which argument position 5.3278 +the cursor belongs because the LaTeX commands can be nested and braces can 5.3279 +freely emerge. So keep it mind to put the cursor on a brace when you are 5.3280 +thinking of changing a complicated argument. 5.3281 + 5.3282 + 5.3283 + 5.3284 +File: yatexe, Node: Killing LaTeX commands, Prev: Changing LaTeX commands, Up: Changing and Deleting 5.3285 + 5.3286 +Killing LaTeX commands 5.3287 +====================== 5.3288 + 5.3289 + `[prefix] k' kills the LaTeX commands sometimes with their arguments. 5.3290 +Following table illustrates the correspondence of the invoking position 5.3291 +and what is killed. 5.3292 + 5.3293 + [Invoking position] [action] 5.3294 + \begin, \end line kill \begin,\end pairs 5.3295 + %#BEGIN, %#END line kill %#BEGIN,%#END pairs 5.3296 + on a Section-type command kill section-type command 5.3297 + on a parenthesis kill parentheses 5.3298 + 5.3299 +Note that when killing `\begin, \end' or `%#BEGIN, %#END' pair, the lines 5.3300 +`\begin, \end' or `%#BEGIN, %#END' exist will be killed entirely. So take 5.3301 +care not to create any line that contains more than one `\begin' or so. 5.3302 + 5.3303 +While all operations above are to kill `containers' which surround some 5.3304 +text, universal argument (`C-u') for these commands kills not only 5.3305 +`containers' but also `contents' of them. See below as a sample. 5.3306 + 5.3307 + Original text: [prefix] k C-u [prefix] k 5.3308 + Main \footnote{note} here. Main note here. Main here. 5.3309 + ~(cursor) 5.3310 + 5.3311 + 5.3312 + 5.3313 +File: yatexe, Node: Filling, Next: Updation of includeonly, Prev: Changing and Deleting, Up: Top 5.3314 + 5.3315 +Filling 5.3316 +******* 5.3317 + 5.3318 + 5.3319 +Filling an item 5.3320 +=============== 5.3321 + 5.3322 + To fill a term (descriptive sentences) of `\item', type 5.3323 + 5.3324 +`M-q' 5.3325 + ... fill item 5.3326 + 5.3327 +on that item. 5.3328 + 5.3329 + YaTeX uses the value of the variable `YaTeX-item-regexp' as the regular 5.3330 +expression to search item header in itemize environment. If you make a 5.3331 +newcommand to itemize terms(e.g. `\underlineitem'), put 5.3332 + 5.3333 + (setq YaTeX-item-regexp 5.3334 + "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)") 5.3335 + 5.3336 +in your `~/.emacs'. If you are not familiar with regular expression for 5.3337 +Emacs-Lisp, name a newcommand for `itemize' beginning with `\item' such as 5.3338 +`\itembf', not `\bfitem'. 5.3339 + 5.3340 + This function reformats the `\item' into `hang-indented' style. For 5.3341 +example: 5.3342 + 5.3343 + itemize, enumerate environment: 5.3344 + > 5.3345 + >\item[foo] `foo' is the typical word for describing an 5.3346 + > arbitrarily written.... 5.3347 + description environment: 5.3348 + > \item[bar] When the word `for' is used as an arbitrarily 5.3349 + > word, `bar' is bound to follow it. 5.3350 + 5.3351 + Note that the indent depth of an `\item' word and its descriptive 5.3352 +paragraph are the same in latter case. If you want to use different 5.3353 +depth, invoke fill-paragraph at the beginning of non-whitespace 5.3354 +character(see below). 5.3355 + 5.3356 + 5.3357 +Filling paragraph 5.3358 +================= 5.3359 + 5.3360 + Fill-paragraph is little bit adapted for LaTeX sources. It retains from 5.3361 +filling in certain environments where formatting leads to a disaster such 5.3362 +as verbatim, tabular, or so. And it protects `\verb' expressions from 5.3363 +being folded (The variable `YaTeX-verb-regexp' controls this). Besides, 5.3364 +putting cursor on the first occurrence of non-whitespace character on a 5.3365 +line changes the fill-prefix temporarily to the depth of the line. 5.3366 + 5.3367 + 5.3368 + 5.3369 +File: yatexe, Node: Updation of includeonly, Next: What column, Prev: Filling, Up: Top 5.3370 + 5.3371 +Updation of `\includeonly' 5.3372 +************************** 5.3373 + 5.3374 + When you edit splitting source texts, the notation 5.3375 + 5.3376 + \includeonly{CurrentEditingFileName} 5.3377 + 5.3378 +in the main file reduces the time of typesetting. If you want to hack 5.3379 +other file a little however, you have to rewrite it to 5.3380 + 5.3381 + \includeonly{OtherFileNameYouWantToFix} 5.3382 + 5.3383 +in the main file. YaTeX automatically detects that the current edited 5.3384 +text is not in includeonly list and prompts you 5.3385 + 5.3386 + A)dd R)eplace %)comment? 5.3387 + 5.3388 +in the minibuffer. Type `a' if you want to add the current file name to 5.3389 +`\includeonly' list, `r' to replace \`includeonly' list with the current 5.3390 +file, and type `%' to comment out the `\includeonly' line. 5.3391 + 5.3392 + 5.3393 + 5.3394 +File: yatexe, Node: What column, Next: Intelligent newline, Prev: Updation of includeonly, Up: Top 5.3395 + 5.3396 +What column? 5.3397 +************ 5.3398 + 5.3399 + We are often get tired of finding the corresponding column in large 5.3400 +tabulars. For example, 5.3401 + 5.3402 + \begin{tabular}{|c|c|c|c|c|c|c|c|}\hline 5.3403 + Name&Position&Post No.&Addr.&Phone No.&FAX No.& 5.3404 + Home Addr.&Home Phone\\ \hline 5.3405 + Thunder Bird & 6 & 223 & LA & xxx-yyy & 5.3406 + zzz-www & Japan & 9876-54321 \\ 5.3407 + & 2 & \multicolumn{2}{c|}{Unknown} 5.3408 + &&&(???) 5.3409 + \\ \hline 5.3410 + \end{tabular} 5.3411 + 5.3412 +Suppose you have the cursor located at `(???)' mark, can you tell which 5.3413 +column it is belonging at once? Maybe no. In such case, type 5.3414 + 5.3415 +`[prefix] &' 5.3416 + ... What column 5.3417 + 5.3418 +in that position. YaTeX tells you the column header of the current field. 5.3419 +Since YaTeX assumes the first line of tabular environment as a row of 5.3420 +column headers, you can create a row of virtual column headers by putting 5.3421 +them in the first line and commenting that line with `%'. 5.3422 + 5.3423 + 5.3424 + 5.3425 +File: yatexe, Node: Intelligent newline, Next: Usepackage checker, Prev: What column, Up: Top 5.3426 + 5.3427 +Intelligent newline 5.3428 +******************* 5.3429 + 5.3430 + At the end of begin-type completion of tabular[*], array, itemize, 5.3431 +enumerate or tabbing environment, or typing 5.3432 + 5.3433 +`ESC RET' 5.3434 + ... Intelligent newline 5.3435 + 5.3436 +in these environments inserts the contents corresponding to the current 5.3437 +environment in the next line. (At the begin-type completion, this 5.3438 +contents can be removed by `undo'.) In `tabular' environment, for 5.3439 +example, `ESC RET' inserts the certain number of `&' and trailing `\\', 5.3440 +and `\hline' if other `\hline' is found in backward. Here are the list of 5.3441 +contents vs. environments. 5.3442 + 5.3443 + * `tabular', `tabular*', `array' 5.3444 + 5.3445 + Corresponding number of `&' and `\\'. And `\hline' if 5.3446 + needed. 5.3447 + 5.3448 + * `tabbing' 5.3449 + 5.3450 + The same number of `\>' as `\=' in the first line. 5.3451 + 5.3452 + * `itemize', `enumerate', `description', `list' 5.3453 + 5.3454 + `\item' or `item[]'. 5.3455 + 5.3456 + Note that since this function works seeing the contents of the first 5.3457 +line, please call this after the second line if possible. 5.3458 + 5.3459 + If you want to apply these trick to other environments, `foo' 5.3460 +environment for example, define the function named 5.3461 +`YaTeX-intelligent-newline-foo' to insert corresponding contents. That 5.3462 +function will be called at the beginning of the next line after the 5.3463 +newline is inserted to the current line. Since the function 5.3464 +`YaTeX-indent-line' is designed to indent the current line properly, 5.3465 +calling this function before your code to insert certain contents must be 5.3466 +useful. See the definition of the function 5.3467 +`YaTeX-intelligent-newline-itemize' as an example. 5.3468 + 5.3469 + 5.3470 + 5.3471 +File: yatexe, Node: Usepackage checker, Next: Online help, Prev: Intelligent newline, Up: Top 5.3472 + 5.3473 +Usepackage checker 5.3474 +****************** 5.3475 + 5.3476 +When you input begint-type, section-type, maketitle-type macros with 5.3477 +completion, and it requires some LaTeX2e package, YaTeX examines the 5.3478 +existence of correct `\usepackage'. If not, YaTeX inserts the 5.3479 +`\usepackage{}' declaration corresponding to input macro. 5.3480 + 5.3481 +To activate the package completion for your favarite package, set the 5.3482 +variable `YaTeX-package-alist-private' correctly. Please refere the value 5.3483 +of `YaTeX-package-alist-default' as an example. 5.3484 + 5.3485 + 5.3486 + 5.3487 +File: yatexe, Node: Online help, Next: Browsing file hierarchy, Prev: Usepackage checker, Up: Top 5.3488 + 5.3489 +Online help 5.3490 +*********** 5.3491 + 5.3492 + YaTeX provides you the online help with popular LaTeX commands. 5.3493 + 5.3494 + Here are the key strokes for the online help. 5.3495 + 5.3496 +`[prefix] ?' 5.3497 + ... Online help 5.3498 +`[prefix] /' 5.3499 + ... Online apropos 5.3500 + 5.3501 + 5.3502 +Online help 5.3503 +=========== 5.3504 + 5.3505 + `Online help' shows the documentation for the popular LaTeX 5.3506 +commands(defaults to the commands on the cursor) in the next buffer. 5.3507 +There are two help file, `global help' and `private help'. The former 5.3508 +file contains the descriptions on the standard LaTeX command and is 5.3509 +specified its name by variable `YaTeX-help-file'. Usually, the global 5.3510 +help file should be located in public space (`$EMACSEXECPATH' by default) 5.3511 +and should be world writable so that anyone can update it to enrich its 5.3512 +contents. The latter file contains descriptions on non-standard or 5.3513 +personal command definitions and is specified by 5.3514 +`YaTeX-help-file-private'. This file should be put into private 5.3515 +directory. 5.3516 + 5.3517 + 5.3518 +Online apropos 5.3519 +============== 5.3520 + 5.3521 + `Online apropos' is an equivalent of GNU Emacs's apropos. It shows all 5.3522 +the documentations that contains the keyword entered by the user. 5.3523 + 5.3524 + 5.3525 +When no descriptions are found... 5.3526 +================================= 5.3527 + 5.3528 + If there is no description on a command in help files, YaTeX requires 5.3529 +you to write a description on that command. If you are willing to do, 5.3530 +determine which help file to add and write the description on it referring 5.3531 +your manual of (La)TeX. Please send me your additional descriptions if 5.3532 +you describe the help on some standard commands. I might want to include 5.3533 +it in the next distribution. 5.3534 + 5.3535 + 5.3536 + 5.3537 +File: yatexe, Node: Browsing file hierarchy, Next: Cooperation with other packages, Prev: Online help, Up: Top 5.3538 + 5.3539 +Browsing file hierarchy 5.3540 +*********************** 5.3541 + 5.3542 + When you are editing multi-file source, typing 5.3543 + 5.3544 +`[prefix] d' 5.3545 + ... browse file hierarchy 5.3546 + 5.3547 +asks you the parent-most file (which may be defaulted) and displays the 5.3548 +documentation hierarchy in the next window. In this buffer, the following 5.3549 +commands are available. 5.3550 + 5.3551 +`n' 5.3552 + ... move to the next line and show its contents 5.3553 +`p' 5.3554 + ... move to the previous line and show its contents 5.3555 +`N' 5.3556 + ... move to the next file in the same inclusion level 5.3557 +`P' 5.3558 + ... move to the previous file in the same inclusion level 5.3559 +`j' 5.3560 + ... move to the next line 5.3561 +`k' 5.3562 + ... move to the previous line 5.3563 +`u' 5.3564 + ... move to the parent file 5.3565 +`.' 5.3566 + ... show the current files contents in the next window 5.3567 +`SPC' 5.3568 + ... scroll up the current file window 5.3569 +`DEL, b' 5.3570 + ... scroll down the current file window 5.3571 +`<' 5.3572 + ... show the beginning of the current file 5.3573 +`>' 5.3574 + ... show the end of the current file 5.3575 +`>' 5.3576 + ... return to the previous postion after `<' or `>' 5.3577 +`RET, g' 5.3578 + ... open the current file in the next window 5.3579 +`mouse-2' 5.3580 + ... same as RET(available only with window system) 5.3581 +`o' 5.3582 + ... other window 5.3583 +`1' 5.3584 + ... delete other windows 5.3585 +`-' 5.3586 + ... shrink hierarchy buffer window 5.3587 +`+' 5.3588 + ... enlarge hierarchy buffer window 5.3589 +`?' 5.3590 + ... describe mode 5.3591 +`q' 5.3592 + ... quit 5.3593 + 5.3594 + Note that operations on the file contents in the next window do not work 5.3595 +correctly when you close the corresponding file. 5.3596 + 5.3597 + 5.3598 + 5.3599 +File: yatexe, Node: Cooperation with other packages, Next: Customizations, Prev: Browsing file hierarchy, Up: Top 5.3600 + 5.3601 +Cooperation with other packages 5.3602 +******************************* 5.3603 + 5.3604 + YaTeX works better with other brilliant packages. 5.3605 + 5.3606 + 5.3607 +gmhist 5.3608 +====== 5.3609 + 5.3610 + When you are loading `gmhist.el' and `gmhist-mh.el', you can use 5.3611 +independent command history list at the prompt of preview command 5.3612 +(`[prefix] tp') and print command (`[prefix] tl'). On each prompt, you 5.3613 +can enter the previous command line string repeatedly by typing `M-p'. 5.3614 + 5.3615 + 5.3616 +min-out 5.3617 +======= 5.3618 + 5.3619 + `min-out', the outline minor mode, can be used in yatex-mode buffers. 5.3620 +If you want to use it with YaTeX, please refer the file `yatexm-o.el' as 5.3621 +an example. 5.3622 + 5.3623 + 5.3624 + 5.3625 +File: yatexe, Node: Customizations, Next: Etcetera, Prev: Cooperation with other packages, Up: Top 5.3626 + 5.3627 +Customizations 5.3628 +************** 5.3629 + 5.3630 + You can customize YaTeX by setting Emacs-Lisp variables and by making 5.3631 +add-in functions. 5.3632 + 5.3633 +* Menu: 5.3634 + 5.3635 +* Lisp variables:: 5.3636 +* Add-in functions:: 5.3637 +* Add-in generator:: 5.3638 + 5.3639 + 5.3640 + 5.3641 +File: yatexe, Node: Lisp variables, Next: Add-in functions, Prev: Customizations, Up: Customizations 5.3642 + 5.3643 +Lisp variables 5.3644 +============== 5.3645 + 5.3646 + You can change the key assignments or make completion more comfortable 5.3647 +by setting the values of various variables which control the movement of 5.3648 +yatex-mode. 5.3649 + 5.3650 + For example, if you want to change the prefix key stroke from `C-c' to 5.3651 +any other sequence, set YaTeX-prefix to whatever you want to use. If you 5.3652 +don't want to use the key sequence `C-c letter' which is assumed to be the 5.3653 +user reserved sequence in Emacs world, set `YaTeX-inhibit-prefix-letter' 5.3654 +to `t', and all of the default key bind of `C-c letter' will turn to the 5.3655 +corresponding `C-c C-letter' (but the region based completions that is 5.3656 +invoked with `C-c Capital-letter' remain valid, if you want to disable 5.3657 +those bindings, set that variable to 1 instead of `t'). 5.3658 + 5.3659 +* Menu: 5.3660 + 5.3661 +* All customizable variables:: 5.3662 +* Sample definitions:: 5.3663 +* Hook variables:: 5.3664 +* Hook file:: 5.3665 + 5.3666 + 5.3667 + 5.3668 +File: yatexe, Node: All customizable variables, Next: Sample definitions, Prev: Lisp variables, Up: Lisp variables 5.3669 + 5.3670 +All customizable variables 5.3671 +-------------------------- 5.3672 + 5.3673 + Here are the customizable variables of yatex-mode. Each value setq-ed 5.3674 +in `~/.emacs' is preferred and that of defined in `yatex.el' is neglected. 5.3675 +Parenthesized contents stands for the default value. When you are to 5.3676 +change some of these variables, see more detailed documentation of the 5.3677 +variable by `M-x describe-variable'. 5.3678 + 5.3679 + -- Variable: YaTeX-japan 5.3680 + Set this nil to produce all messages in English (`Depends on Japanese 5.3681 + feature of Emacs') 5.3682 + 5.3683 + -- Variable: YaTeX-kanji-code 5.3684 + Default buffer-file-coding-system for YaTeX modes' buffer. Set this 5.3685 + 0 to no language conversion. Nil to preserve original 5.3686 + coding-system. 1=Shift JIS, 2=JIS, 3=EUC, 4=UTF-8 (`1 or 2') 5.3687 + 5.3688 + -- Variable: YaTeX-prefix 5.3689 + Prefix key stroke (`C-c') 5.3690 + 5.3691 + -- Variable: YaTeX-inhibit-prefix-letter 5.3692 + Change key stroke from `C-c letter' to `C-c C-letter' (`nil') 5.3693 + 5.3694 + -- Variable: YaTeX-fill-prefix 5.3695 + Fill-prefix used in yatex-mode (`nil') 5.3696 + 5.3697 + -- Variable: YaTeX-user-completion-table 5.3698 + Name of user dictionary where learned completion table will be 5.3699 + stored. (`"~/.yatexrc"') 5.3700 + 5.3701 + -- Variable: tex-command 5.3702 + LaTeX typesetter command (`"latex"') 5.3703 + 5.3704 + -- Variable: dvi2-command 5.3705 + Preview command (`"xdvi -geo +0+0 -s 4"') 5.3706 + 5.3707 + -- Variable: dviprint-command-format 5.3708 + Command format to print dvi file (`"dvi2ps %f %t %s | lpr"') 5.3709 + 5.3710 + -- Variable: dviprint-from-format 5.3711 + Start page format of above %f. %b will turn to start page (`"-f %b"') 5.3712 + 5.3713 + -- Variable: dviprint-to-format 5.3714 + End page format of above %t. %e will turn to `end' page (`"-t %e"') 5.3715 + 5.3716 + -- Variable: makeindex-command 5.3717 + Default makeindex command (`"makeindex"' (`"makeind"' on MS-DOS)) 5.3718 + 5.3719 + -- Variable: YaTeX-dvipdf-command 5.3720 + Default command name to convert .dvi to PDF (`"dvipdfmx"') 5.3721 + 5.3722 + -- Variable: YaTeX-need-nonstop 5.3723 + Put `\nonstopmode{}' or not (`nil') 5.3724 + 5.3725 + -- Variable: latex-warning-regexp 5.3726 + Regular expression of warning message latex command puts out 5.3727 + (`"line.* [0-9]*"') 5.3728 + 5.3729 + -- Variable: latex-error-regexp 5.3730 + Regular expression of error message (`"l\\.[1-9][0-9]*"') 5.3731 + 5.3732 + -- Variable: latex-dos-emergency-message 5.3733 + Message latex command running on DOS puts at abort (`"Emergency 5.3734 + stop"') 5.3735 + 5.3736 + -- Variable: YaTeX-item-regexp 5.3737 + Regular expression of item command (`"\\\\item"') 5.3738 + 5.3739 + -- Variable: YaTeX-verb-regexp 5.3740 + Regexp of verb family. Omit \\\\. (`"verb\\*?\\|path"') 5.3741 + 5.3742 + -- Variable: YaTeX-nervous 5.3743 + T for using local dictionary (`t') 5.3744 + 5.3745 + -- Variable: YaTeX-sectioning-regexp 5.3746 + Regexp of LaTeX sectioning command 5.3747 + (`"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"') 5.3748 + 5.3749 + -- Variable: YaTeX-fill-inhibit-environments 5.3750 + Inhibit fill in these environments (`'("tabular" "tabular*" "array" 5.3751 + "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" 5.3752 + "verbatim" "verbatim*")') 5.3753 + 5.3754 + -- Variable: YaTeX-uncomment-once 5.3755 + T for deleting all preceding `%' (`nil') 5.3756 + 5.3757 + -- Variable: YaTeX-close-paren-always 5.3758 + T for always close all parenthesis automatically, `nil' for only eol 5.3759 + (`t') 5.3760 + 5.3761 + -- Variable: YaTeX-auto-math-mode 5.3762 + Switch math-mode automatically (`t') 5.3763 + 5.3764 + -- Variable: YaTeX-math-key-list-private 5.3765 + User defined alist, math-mode-prefix vs completion alist used in 5.3766 + image completion (`nil'). See `yatexmth.el' for the information 5.3767 + about how to define a completion alist. 5.3768 + 5.3769 + -- Variable: YaTeX-default-pop-window-height 5.3770 + Initial height of typesetting buffer when one-window. Number for the 5.3771 + lines of the buffer, numerical string for the percentage of the 5.3772 + screen-height. `nil' for half height (10) 5.3773 + 5.3774 + -- Variable: YaTeX-help-file 5.3775 + Global online help file name 5.3776 + (`$doc-directory/../../site-lisp/YATEXHLP.eng') 5.3777 + 5.3778 + -- Variable: YaTeX-help-file-private 5.3779 + Private online help file name (`"~/YATEXHLP.eng"') 5.3780 + 5.3781 + -- Variable: YaTeX-no-begend-shortcut 5.3782 + Disable [prefix] b ?? shortcut (`nil)' 5.3783 + 5.3784 + -- Variable: YaTeX-hilit-pattern-adjustment-private 5.3785 + List of the list that contain the regular expression and the symbol 5.3786 + of logical meaning of the string that matches the pattern. See also 5.3787 + the value from `(assq 'yatex-mode hilit-patterns-alist)' and the 5.3788 + value of `YaTeX-hilit-pattern-adjustment-default' (and even the 5.3789 + document of hilit19.el). 5.3790 + 5.3791 + -- Variable: YaTeX-sectioning-level 5.3792 + Alist of LaTeX's sectioning command vs its height. 5.3793 + 5.3794 + -- Variable: YaTeX-hierarchy-ignore-heading-regexp 5.3795 + `YaTeX-display-hierarchy' searches for sectioning command first, and 5.3796 + comment line secondary as a file headings. In latter case, ignore lines 5.3797 + that match with regular expression of this variable. Default value of 5.3798 + this variable is RCS header expressions and mode specifying line `-*- xxxx 5.3799 + -*'. 5.3800 + 5.3801 + -- Variable: YaTeX-skip-default-reader 5.3802 + Non-nil for this variable skips the default argument reader of 5.3803 + section-type command when add-in function for it is not defined 5.3804 + (`nil') 5.3805 + 5.3806 + -- Variable: YaTeX-create-file-prefix-g 5.3807 + When typing `prefix g' on the `\include' line, open the target file 5.3808 + even if the file doesn't exist (`nil') 5.3809 + 5.3810 + -- Variable: YaTeX-simple-messages 5.3811 + Simplyfy messages of various completions (`nil') 5.3812 + 5.3813 + -- Variable: YaTeX-hilit-sectioning-face 5.3814 + When hilit19 and yatex19 is active, YaTeX colors the sectioning 5.3815 + commands. This variable specifies the foreground and background 5.3816 + color of `\part' macro. The default value is `'(yellow/dodgerblue 5.3817 + yellow/slateblue)'. The first element of this list is for the screen 5.3818 + when `hilit-background-mode' is `'light', and the second element is 5.3819 + for `'dark'. You should specify both color as `forecolor/backcolor'. 5.3820 + 5.3821 + -- Variable: YaTeX-hilit-sectioning-attenuation-rate 5.3822 + When color mode, this variable specifies how much attenuate the color 5.3823 + density of `\subparagraph' compared with that of `\chapter' (`'(15 5.3824 + 40)') See also `YaTeX-hilit-sectioning-face'. 5.3825 + 5.3826 + -- Variable: YaTeX-use-AMS-LaTeX 5.3827 + If you use AMS-LaTeX, set to `t' (`nil') 5.3828 + 5.3829 + -- Variable: YaTeX-use-LaTeX2e 5.3830 + If you use LaTeX2e, set to `t' (`t') 5.3831 + 5.3832 + -- Variable: YaTeX-template-file 5.3833 + File name which is automatically inserted at creation 5.3834 + (`~/work/template.tex') 5.3835 + 5.3836 + -- Variable: YaTeX-search-file-from-top-directory 5.3837 + Non-nil means to search input-files from the directory where main 5.3838 + file exists (`t') 5.3839 + 5.3840 + -- Variable: YaTeX-use-font-lock 5.3841 + Use font-lock to fontify buffer or not (`(featurep 'font-lock)' 5.3842 + 5.3843 + -- Variable: YaTeX-use-hilit19 5.3844 + Use hilit19 to highlight buffer or not (`(featurep 'hilit19)' 5.3845 + 5.3846 + -- Variable: YaTeX-use-italic-bold 5.3847 + YaTeX tries to search italic, bold fontsets or not (`t' if Emacs-20 5.3848 + or later). This variable is effective only when font-lock is used. 5.3849 + (`(featurep 'hilit19)' 5.3850 + 5.3851 + -- Variable: YaTeX-singlecmd-suffix 5.3852 + Suffix which is always inserted after maketitle-type macros. `"{}"' 5.3853 + is recommended. 5.3854 + 5.3855 + -- Variable: YaTeX-package-alist-private 5.3856 + Alist of LaTeX2e-package name vs. lists of macros in it. Set this 5.3857 + alist properly and YaTeX automatically check the declaratiion of 5.3858 + `usepackage' for corresponding macro, when you input that macro with 5.3859 + completion. If required `usepackage' is not found, YaTeX also 5.3860 + automatically inserts `\usepackage'. Alist is as follows; 5.3861 + '((PackageName1 (completionType ListOfMacro) (completionType 5.3862 + ListOfMacro)) (PackageName2 (completionType ListOfMacro) 5.3863 + (completionType ListOfMacro...))....) completionType is one of `env, 5.3864 + section, maketitle'. Consult the value of 5.3865 + `YaTeX-package-alist-default' as an example. 5.3866 + 5.3867 + -- Variable: YaTeX-tabular-indentation 5.3868 + At indentation by `C-i' in tabular or array environment, YaTeX put 5.3869 + the additional spaces to the normail indentation depth. The number 5.3870 + of additional spaces is the product of YaTeX-tabular-indentation and 5.3871 + the number of column position in tabular. 5.3872 + 5.3873 + -- Variable: YaTeX-noindent-env-regexp 5.3874 + Regexp of environment names that should begin with no indentation. 5.3875 + All verbatime-like environment name should match with. 5.3876 + 5.3877 + -- Variable: YaTeX-ref-default-label-string 5.3878 + Default \\ref time string format. This format is like strftime(3) 5.3879 + but allowed conversion char are as follows; %y -> Last 2 digit of 5.3880 + year, %b -> Month name, %m -> Monthe number(1-12), %d -> Day, %H -> 5.3881 + Hour, %M -> Minute, %S -> Second, %qx -> alphabetical-decimal 5.3882 + conversion of yymmdd. %qX -> alphabetical-decimal conversion of 5.3883 + HHMMSS. Beware defualt label-string should be always unique. So 5.3884 + this format string should have both time part (%H+%M+%S or %qX) and 5.3885 + date part (%y+(%b|%m)+%d or %qx). 5.3886 + 5.3887 + -- Variable: YaTeX-ref-generate-label-function 5.3888 + Function to generate default label string for unnamed \\label{}s. 5.3889 + The function pointed to this value should take two arguments. First 5.3890 + argument is LaTeX macro's name, second is macro's argument. Here is 5.3891 + an example for using this value. 5.3892 + (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label) 5.3893 + (defun my-yatex-generate-label (command value) 5.3894 + (and (string= command "caption") 5.3895 + (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t) 5.3896 + (setq command (match-string 1))) 5.3897 + (let ((alist '(("chapter" . "chap") 5.3898 + ("section" . "sec") 5.3899 + ("subsection" . "subsec") 5.3900 + ("figure" . "fig") 5.3901 + ("table" . "tbl")))) 5.3902 + (if (setq command (cdr (assoc command alist))) 5.3903 + (concat command ":" value) 5.3904 + (YaTeX::ref-generate-label nil nil)))) 5.3905 + 5.3906 + 5.3907 + 5.3908 + 5.3909 +File: yatexe, Node: Sample definitions, Next: Hook variables, Prev: All customizable variables, Up: Lisp variables 5.3910 + 5.3911 +Sample definitions 5.3912 +------------------ 5.3913 + 5.3914 + For instance, to change the prefix key stroke to `ESC', and name of the 5.3915 +user dictionary `~/src/emacs/yatexrc', and set `fill-prefix' to single TAB 5.3916 +character, add the following `setq' to `~/.emacs'. 5.3917 + 5.3918 + (setq YaTeX-prefix "\e" 5.3919 + YaTeX-user-completion-table "~/src/emacs/yatexrc" 5.3920 + YaTeX-fill-prefix " ") 5.3921 + 5.3922 + 5.3923 + 5.3924 +File: yatexe, Node: Hook variables, Next: Hook file, Prev: Sample definitions, Up: Lisp variables 5.3925 + 5.3926 +Hook variables 5.3927 +-------------- 5.3928 + 5.3929 + More customizations will be done by the hook-function defined in 5.3930 +hook-variable `yatex-mode-hook'. This is useful to define a shortcut key 5.3931 +sequence to enter some environments other than `document' and `enumerate' 5.3932 +etc. The following statement defines `[prefix] ba' to enter 5.3933 +`\begin{abstract}' ... `=end{abstract}' immediately. 5.3934 + 5.3935 + (setq yatex-mode-hook 5.3936 + '(lambda() (YaTeX-define-begend-key "ba" "abstract"))) 5.3937 + 5.3938 + You should use functions `YaTeX-define-key', or 5.3939 +`YaTeX-define-begend-key' to define all the key sequences of yatex-mode. 5.3940 + 5.3941 + 5.3942 + 5.3943 +File: yatexe, Node: Hook file, Prev: Hook variables, Up: Lisp variables 5.3944 + 5.3945 +Hook file 5.3946 +--------- 5.3947 + 5.3948 + You can stuff all of YaTeX related expressions into a file named 5.3949 +`yatexhks.el' if you have a lot of codes. YaTeX automatically load this 5.3950 +file at the initialization of itself. Using `yatexhks.el' makes 5.3951 +`yatex-mode-load-hook' unnecessary. 5.3952 + 5.3953 + 5.3954 + 5.3955 +File: yatexe, Node: Add-in functions, Next: Add-in generator, Prev: Lisp variables, Up: Customizations 5.3956 + 5.3957 +Add-in functions 5.3958 +================ 5.3959 + 5.3960 + You can easily define a function to input detailed arguments with 5.3961 +completion according to LaTeX environments or commands. 5.3962 + 5.3963 + 5.3964 +What is add-in functions? 5.3965 +------------------------- 5.3966 + 5.3967 + When you input `tabular' environment, don't you think "I want YaTeX to 5.3968 +complete its argument toward my favorite one such as `{|c|c|c|}'..."? 5.3969 +Yes, you can define the function to complete arguments for any environment 5.3970 +and any LaTeX commands. 5.3971 + 5.3972 + 5.3973 +Procedure 5.3974 +--------- 5.3975 + 5.3976 + Here is the procedure to define add-in functions. 5.3977 + 1. Define the function 5.3978 + 2. Put the function into `yatexhks.el' 5.3979 + 5.3980 +* Menu: 5.3981 + 5.3982 +* How the add-in function works:: 5.3983 +* How the function is called:: 5.3984 +* Useful functions for creating add-in:: 5.3985 +* Contribution:: 5.3986 + 5.3987 + 5.3988 + 5.3989 +File: yatexe, Node: How the add-in function works, Next: How the function is called, Prev: Add-in functions, Up: Add-in functions 5.3990 + 5.3991 +How the add-in function works 5.3992 +----------------------------- 5.3993 + 5.3994 +There are three types of add-in. 5.3995 + 5.3996 + 1. Option add-in 5.3997 + 2. argument add-in 5.3998 + 3. enclosing add-in 5.3999 + 5.4000 +"Option add-in" returns the LaTeX's optional parameters such as optional 5.4001 +strings after `\begin{ENV}', optional strings between a section-type 5.4002 +command and its first argument, and optional strings just after type 5.4003 +maketitle-type command. The following illustrates the name of add-in 5.4004 +functions, where underlined strings are generated by add-in functions. 5.4005 + 5.4006 + \begin{table}[ht] (Function name: YaTeX:table) 5.4007 + ~~~~ 5.4008 + \put(100,200){} (Function name: YaTeX:put) 5.4009 + ~~~~~~~~~ 5.4010 + \sum_{i=0}^{n} (Function name: YaTeX:sum) 5.4011 + ~~~~~~~~~~ 5.4012 + 5.4013 + Obviously, the function name is decided by concatenating the prefix 5.4014 +`YaTeX:' and LaTeX command's name. 5.4015 + 5.4016 + Another add-in type is "argument add-in", which completes arguments for 5.4017 +section-type commands. 5.4018 + 5.4019 + \newcommand{\foo}{bar} (Function name: YaTeX::newcommand) 5.4020 + ~~~~ ~~~ 5.4021 + 5.4022 + When the section-type command is inputted, the function named by 5.4023 +concatenating `YaTeX::' and section-type command, is called automatically 5.4024 +with an integer argument which indicates which argument of section-type 5.4025 +command is being read. Thus the add-in should determine the job referring 5.4026 +the value of its argument. 5.4027 + 5.4028 + "enclosing add-in" is for modifying and/or checking the region that will 5.4029 +be enclosed by section-type commands via `[prefix] S'. An enclosing 5.4030 +add-in function will be called with two arguments, beginning of the 5.4031 +enclosed region and end of the region. Suppose you want to enclose the 5.4032 +existing text `(a+b)/c' by `\frac{}'. 5.4033 + 5.4034 + a/c 5.4035 + | | 5.4036 + A B 5.4037 + 5.4038 +You do set-mark-command at point A and then move to point B. Typing 5.4039 +`[prefix] S' and input `frac' enclose the region like this; 5.4040 + 5.4041 + \frac{a/c} 5.4042 + 5.4043 +Normally, the expression `a/c' is translated to `\frac{a}{c}'. An 5.4044 +enclosing add-in is useful for modifying `/' to `}{'. 5.4045 + 5.4046 +* Menu: 5.4047 + 5.4048 +* Defining option-add-in:: 5.4049 +* Defining argument-add-in:: 5.4050 +* Defining enclosing-add-in:: 5.4051 + 5.4052 + 5.4053 + 5.4054 +File: yatexe, Node: Defining option-add-in, Next: Defining argument-add-in, Prev: How the add-in function works, Up: How the add-in function works 5.4055 + 5.4056 +Defining `option add-in' 5.4057 +........................ 5.4058 + 5.4059 + If you want `{|c|c|c|}' for all `tabular' environment, 5.4060 + 5.4061 + (defun YaTeX:tabular () 5.4062 + "{|c|c|c|}") 5.4063 + 5.4064 +is enough. If you want more complicated format, define as below. 5.4065 + 5.4066 + (defun YaTeX:tabular () 5.4067 + "{@{\\vrule width 1pt\\ }|||@{\\ \\vrule width 1pt}}") 5.4068 + 5.4069 +Note that the character `\' must be described as `\\' in Emacs-Lisp. The 5.4070 +next example reads the tabular format from keyboard. 5.4071 + (defun YaTeX:tabular () 5.4072 + (concat "{" (read-string "Rule: ") "}")) 5.4073 + 5.4074 + 5.4075 + 5.4076 +File: yatexe, Node: Defining argument-add-in, Next: Defining enclosing-add-in, Prev: Defining option-add-in, Up: How the add-in function works 5.4077 + 5.4078 +Defining `argument add-in' 5.4079 +.......................... 5.4080 + 5.4081 + This section describes how to define the add-in function for 5.4082 +`\newcommand'. 5.4083 + 5.4084 + The first argument of `\newcommand' begins always with `\'. The second 5.4085 +argument is usually so complex that we can not edit them in the 5.4086 +minibuffer. Here is the created function considering this. 5.4087 + 5.4088 + (defun YaTeX::newcommand (n) ;n is argument position 5.4089 + (cond 5.4090 + ((= n 1) ;1st argument is macro name 5.4091 + (read-string "Command: " "\\")) ;initial input `\' 5.4092 + ((= n 2) "") ;do nothing when reading arg#2 5.4093 + (t nil))) 5.4094 + 5.4095 + Note that when the `argument add-in' function return `nil', normal 5.4096 +argument reader will be called. 5.4097 + 5.4098 + 5.4099 + 5.4100 +File: yatexe, Node: Defining enclosing-add-in, Prev: Defining argument-add-in, Up: How the add-in function works 5.4101 + 5.4102 +Defining `enclosing add-in' 5.4103 +........................... 5.4104 + 5.4105 + This section describes how to define the add-in function for text 5.4106 +enclosed by `\frac{}'. 5.4107 + 5.4108 + When enclosing the text `5/3' by `\frac{}', you might want to replace 5.4109 +`/' with `}{'. Enclosing function `YaTeX::frac-region' is called with two 5.4110 +arguments, beginning of enclosed text and end of enclosed text. The 5.4111 +function is expected to replace `/' with `}{'. Here is an example 5.4112 +expression. 5.4113 + 5.4114 + (defun YaTeX::frac-region (beg end) 5.4115 + (catch 'done 5.4116 + (while (search-forward "/" end t) 5.4117 + (goto-char (match-beginning 0)) 5.4118 + (if (y-or-n-p "Replace this slash(/) with `}{'") 5.4119 + (throw 'done (replace-match "}{"))) 5.4120 + (goto-char (match-end 0))))) 5.4121 + 5.4122 + 5.4123 + 5.4124 +File: yatexe, Node: How the function is called, Next: Useful functions for creating add-in, Prev: How the add-in function works, Up: Add-in functions 5.4125 + 5.4126 +How the function is called 5.4127 +-------------------------- 5.4128 + 5.4129 + YaTeX calls the add-in functions for specified begin-type, section-type, 5.4130 +and maketitle-type command, if any. `Option add-in' functions for 5.4131 +begin-type are called when `\begin{ENV}' has been inserted, functions for 5.4132 +section-type are called just before input of the first argument, and 5.4133 +functions for maketitle-type is called after maketitle-type command has 5.4134 +been inserted. `Argument add-in' functions are called at each entry of 5.4135 +arguments for section-type commands. 5.4136 + 5.4137 + 5.4138 + 5.4139 +File: yatexe, Node: Useful functions for creating add-in, Next: Contribution, Prev: How the function is called, Up: Add-in functions 5.4140 + 5.4141 +Useful functions for creating add-in 5.4142 +------------------------------------ 5.4143 + 5.4144 + Many add-in functions for typical LaTeX commands are defined in 5.4145 +`yatexadd.el'. Those are also useful as references. Here are the short 5.4146 +descriptions on useful functions, where [F] means function, [A] means 5.4147 +arguments, [D] means description. 5.4148 + 5.4149 +`[F]' 5.4150 + YaTeX:read-position 5.4151 +`[A]' 5.4152 + Character list which can show up in the brackets 5.4153 +`[D]' 5.4154 + Return the location specifier such as `[htb]'. When nothing is 5.4155 + entered, omit [] itself. If the possible characters are "htbp", call 5.4156 + this function as `(YaTeX:read-position "htbp")' 5.4157 + 5.4158 +`[F]' 5.4159 + YaTeX:read-coordinates 5.4160 +`[A]' 5.4161 + Base prompt, X-axis prompt, Y-axis prompt (each optional) 5.4162 +`[D]' 5.4163 + Read the coordinates with the prompt "BasePrompt X-axisPrompt:" for 5.4164 + X-axis, "BasePrompt Y-axisPrompt:" for Y-axis, and return it in the 5.4165 + form of "(X,Y)". The default prompts are `Dimension', `X', `Y' 5.4166 + respectively. 5.4167 + 5.4168 +`[F]' 5.4169 + YaTeX:check-completion-type 5.4170 +`[A]' 5.4171 + One of the symbols: 'begin, 'section, or 'maketitle 5.4172 +`[D]' 5.4173 + Check the current completion type is specified one and cause error 5.4174 + if not. The variable `YaTeX-current-completion-type' holds the symbol 5.4175 + according to the current completion type. 5.4176 + 5.4177 + 5.4178 + 5.4179 +File: yatexe, Node: Contribution, Prev: Useful functions for creating add-in, Up: Add-in functions 5.4180 + 5.4181 +Contribution 5.4182 +------------ 5.4183 + 5.4184 + If you make your own pretty function and you let it be in public, please 5.4185 +send me the function. I'm going to include it in the next release. 5.4186 + 5.4187 + 5.4188 + 5.4189 +File: yatexe, Node: Add-in generator, Prev: Add-in functions, Up: Customizations 5.4190 + 5.4191 +Add-in generator 5.4192 +================ 5.4193 + 5.4194 + First, don't forget to read the section of add-in functions *Note Add-in 5.4195 +functions::. If you easily understand how to define them, there's no need 5.4196 +to read this section. But being not familiar with Emacs-Lisp, when you 5.4197 +don't have clear idea what to do, this section describes how to get YaTeX 5.4198 +make add-in function. 5.4199 + 5.4200 + There are two methods of generation. One is for fully interactive 5.4201 +generator for beginners and another requires little knowledge of 5.4202 +Emacs-Lisp. 5.4203 + 5.4204 + 5.4205 +Generator for beginners 5.4206 +----------------------- 5.4207 + The former generator is called by 5.4208 + `M-x YaTeX-generate' 5.4209 + 5.4210 +strokes. All you have to do is follow the guidances. Defying them may 5.4211 +cases the disaster (I wonder what is it???). So when you make some 5.4212 +mistake, it is recommendable to type `C-g' and start afresh. 5.4213 + 5.4214 + 5.4215 +Simple generator 5.4216 +---------------- 5.4217 + 5.4218 + The latter generator is invoked by the next sequence. `M-x 5.4219 +YaTeX-generate-simple' This generator can make both "option add-in" and 5.4220 +"argument add-in" (*refer the section add-in functions* *Note How the 5.4221 +add-in function works::), whereas `YaTeX-generate' cannot make "argument 5.4222 +addin". 5.4223 + 5.4224 + For example, assume you have the LaTeX command as follows. 5.4225 + 5.4226 + \epsinput[t](250,50){hoge.eps}{plain}{Picture of foo} 5.4227 + (A) (B) (1) (2) (3) 5.4228 + (A)Optional parameter to specify the position 5.4229 + One of t(top), b(bottom), l(left), r(right) 5.4230 + (B)Maximum size of frame 5.4231 + (1)1st argument is filename of EPS file 5.4232 + (2)2nd argument indicates 5.4233 + plain do nothing 5.4234 + frame make frame around image 5.4235 + dframe make double-frame around image 5.4236 + for included EPS file. 5.4237 + (3)Caption for the picture 5.4238 + 5.4239 + Now get start with generation. Typing `M-x YaTeX-generate-simple' 5.4240 +brings the prompt: 5.4241 + (O)ption? (A)rgument? 5.4242 + 5.4243 + 5.4244 +Generating "option add-in" 5.4245 +.......................... 5.4246 + 5.4247 + Since (A), (B) above are optional argument, all we have to do to 5.4248 +complete them is define the option add-in for them. Let's generate the 5.4249 +function to complete (A). 5.4250 + 5.4251 + M-x YaTeX-generate-simple RET 5.4252 + epsinput RET 5.4253 + o 5.4254 + 5.4255 +Typing as above leads the next prompt. 5.4256 + 5.4257 + Read type(1): (S)tring (C)omplete (F)ile ([)option (P)osition co(O)rd. (q)uit 5.4258 + 5.4259 + This asks that "Which type is the completion style of 1st argument?". 5.4260 +Here are the possible completion style. 5.4261 + 5.4262 +`String' 5.4263 + read plain string 5.4264 +`Complete' 5.4265 + read with completion 5.4266 +`File' 5.4267 + read file name 5.4268 +`Option' 5.4269 + read optional string (if string omitted, omit [] too) 5.4270 +`Position' 5.4271 + read positional option (like [htbp]) 5.4272 +`Coord.' 5.4273 + read coordinates 5.4274 +`Quit' 5.4275 + quit from generating 5.4276 + 5.4277 + Since (A) is the optional argument to specify the location of included 5.4278 +EPS file, the completion style is `Position', and the possible characters 5.4279 +are t, b, l, and r. To tell these information to generator, operate as 5.4280 +follows. 5.4281 + 5.4282 + Read type(1).... p 5.4283 + Acceptable characters: tblr RET 5.4284 + 5.4285 + (B) is coordinate. So its completion style is coOrd. We want a prompt 5.4286 +meaning "Maximum size" when completion. 5.4287 + 5.4288 + Read type(2).... o 5.4289 + Prompt for coordinates: Max size RET 5.4290 + 5.4291 + That's all for optional argument. Select quit. 5.4292 + 5.4293 + Read type(3).... q 5.4294 + 5.4295 + Then the generated option add-in function for \epsinput will be shown in 5.4296 +the next window. 5.4297 + 5.4298 + 5.4299 +Generating "argument add-in" 5.4300 +............................ 5.4301 + 5.4302 + Next, create the argument add-in. The arguments for \epsinput are EPS 5.4303 +file name, framing style, and caption string in sequence. 5.4304 + 5.4305 + M-x YaTeX-generate-simple RET 5.4306 + epsinput RET 5.4307 + a 5.4308 + 5.4309 + Above key strokes bring the prompt that asks the number of argument. 5.4310 +Answer it with 3. 5.4311 + 5.4312 + How many arguments?: 3 RET 5.4313 + 5.4314 + Then the generator asks the completion style and prompt for completion. 5.4315 +Answer them. `f' for FileName and prompt string. 5.4316 + 5.4317 + Read type(1).... f 5.4318 + Prompt for argument#1 EPS file name RET 5.4319 + 5.4320 + The second argument is one of selected symbol. So the completion type 5.4321 +is `Completion'. 5.4322 + 5.4323 + Read type(2).... c 5.4324 + Prompt for argument#2 Include style RET 5.4325 + 5.4326 + Then all the candidates ready to be read. Type single RET after 5.4327 +entering all. 5.4328 + 5.4329 + Item[1](RET to exit): plain RET 5.4330 + Item[2](RET to exit): frame RET 5.4331 + Item[3](RET to exit): dframe RET 5.4332 + Item[4](RET to exit): RET 5.4333 + 5.4334 + The following prompt asks whether the entered string must belong to 5.4335 +candidates or not. In this case, since the argument must be one of 5.4336 +`plain', `frame', and `dframe', type `y'. 5.4337 + 5.4338 + Require match? (y or n) y 5.4339 + 5.4340 + The last argument is the caption string for which any completion is 5.4341 +needed. 5.4342 + 5.4343 + Read type(3).... s 5.4344 + Prompt for argument#3 Caption RET 5.4345 + default: Figure of RET 5.4346 + 5.4347 + Finally we'll get the argument add-in in the next window. 5.4348 + 5.4349 + 5.4350 +Contribution 5.4351 +------------ 5.4352 + 5.4353 + If you get your own pretty function and you let it be in public, please 5.4354 +steel yourself in the happy atmosphere and do not send me the function. I 5.4355 +do know it is not fine because it is generated by yatexgen:-p. 5.4356 + 5.4357 + 5.4358 + 5.4359 +File: yatexe, Node: Etcetera, Next: Copying, Prev: Customizations, Up: Top 5.4360 + 5.4361 +Etcetera 5.4362 +******** 5.4363 + 5.4364 + The standard completion tables provided in `yatex.el' contain a few 5.4365 +LaTeX commands I frequently use. This is to lessen the key strokes to 5.4366 +complete entire word, because too many candidates rarely used often cause 5.4367 +too many hits. Therefore always try to use completion in order to enrich 5.4368 +your dictionary, and you will also find `Wild Bird' growing suitable for 5.4369 +your LaTeX style. 5.4370 + 5.4371 + The package name `Wild Bird' is the English translation of Japanese 5.4372 +title `Yachou', which is a trick on words of Japanese. 5.4373 + 5.4374 + 5.4375 + 5.4376 +File: yatexe, Node: Copying, Prev: Etcetera, Up: Top 5.4377 + 5.4378 +Copying 5.4379 +******* 5.4380 + 5.4381 + This program is distributed as a free software. You can 5.4382 +use/copy/modify/redistribute this software freely but with NO warranty to 5.4383 +anything as a result of using this software. Adopting code from this 5.4384 +program is also free. But I would not do contract act. 5.4385 + 5.4386 +Any reports and suggestions are welcome as long as I feel interests in 5.4387 +this software. My possible e-mail address is `yuuji@yatex.org'. (as of 5.4388 +Jan.2004) And there is mailing list for YaTeX. Although the common 5.4389 +language is Japanese, questions in English will be welcome. To join the 5.4390 +ML, send the mail whose subject is `append' to the address 5.4391 +`yatex@yatex.org. If you have some question, please ask to 5.4392 +`yatex-admin@yatex.org'. 5.4393 + 5.4394 + The specification of this software will be surely modified (depending on 5.4395 +my feelings) without notice :-p. 5.4396 + 5.4397 + 5.4398 + HIROSE Yuuji 5.4399 + 5.4400 +Tag table: 5.4401 +Node: Top149 5.4402 +Node: What is YaTeX?1490 5.4403 +Node: Main features1863 5.4404 +Node: Installation3392 5.4405 +Node: Typesetting4169 5.4406 +Node: Calling typesetter5299 5.4407 +Node: Calling previewer7503 5.4408 +Node: Printing out7864 5.4409 +Node: %#notation8156 5.4410 +Node: Changing typesetter8574 5.4411 +Node: Splitting input files8938 5.4412 +Node: Static region for typesetting10363 5.4413 +Node: Lpr format11492 5.4414 +Node: Controlling which command to invoke12565 5.4415 +Node: Editing %# notation13158 5.4416 +Node: Completion13702 5.4417 +Node: Begin-type completion14262 5.4418 +Node: Section-type completion17305 5.4419 +Node: view-sectioning19740 5.4420 +Node: Large-type completion21320 5.4421 +Node: Maketitle-type completion22051 5.4422 +Node: Arbitrary completion22603 5.4423 +Node: End completion22993 5.4424 +Node: Accent completion23463 5.4425 +Node: Image completion24080 5.4426 +Node: Greek letters completion26337 5.4427 +Node: Local dictionaries27064 5.4428 +Node: Commenting out28001 5.4429 +Node: Cursor jump29460 5.4430 +Node: Jump to corresponding object29772 5.4431 +Node: Invoking image processor31173 5.4432 +Node: Jump to main file32516 5.4433 +Node: Jumping around the environment32881 5.4434 +Node: Jumping to last completion position33299 5.4435 +Node: Changing and Deleting33808 5.4436 +Node: Changing LaTeX commands34200 5.4437 +Node: Killing LaTeX commands35377 5.4438 +Node: Filling36562 5.4439 +Node: Updation of includeonly38413 5.4440 +Node: What column39210 5.4441 +Node: Intelligent newline40295 5.4442 +Node: Usepackage checker41949 5.4443 +Node: Online help42540 5.4444 +Node: Browsing file hierarchy44215 5.4445 +Node: Cooperation with other packages45952 5.4446 +Node: Customizations46657 5.4447 +Node: Lisp variables46991 5.4448 +Node: All customizable variables47995 5.4449 +Node: Sample definitions57794 5.4450 +Node: Hook variables58307 5.4451 +Node: Hook file59011 5.4452 +Node: Add-in functions59350 5.4453 +Node: How the add-in function works60210 5.4454 +Node: Defining option-add-in62409 5.4455 +Node: Defining argument-add-in63131 5.4456 +Node: Defining enclosing-add-in64013 5.4457 +Node: How the function is called64867 5.4458 +Node: Useful functions for creating add-in65543 5.4459 +Node: Contribution66948 5.4460 +Node: Add-in generator67222 5.4461 +Node: Etcetera72594 5.4462 +Node: Copying73199 5.4463 + 5.4464 +End tag table
6.1 --- a/docs/yatexe.tex Thu May 10 11:10:13 2012 +0900 6.2 +++ b/docs/yatexe.tex Thu May 10 11:40:02 2012 +0900 6.3 @@ -5,7 +5,7 @@ 6.4 6.5 @iftex 6.6 @c @syncodeindex fn cp 6.7 -@c Last modified Sun Apr 15 22:51:34 2012 on firestorm 6.8 +@c Last modified Thu May 10 11:12:44 2012 on firestorm 6.9 @syncodeindex vr cp 6.10 @end iftex 6.11 6.12 @@ -15,7 +15,7 @@ 6.13 @subtitle Yet Another tex-mode for emacs 6.14 @title Wild Bird 6.15 @subtitle // YaTeX // 6.16 -@author @copyright{} 1991-2003 by HIROSE, Yuuji [yuuji@@yatex.org] 6.17 +@author @copyright{} 1991-2012 by HIROSE, Yuuji [yuuji@@yatex.org] 6.18 @end titlepage 6.19 6.20 @node Top, What is YaTeX?, (dir), (dir)
7.1 --- a/docs/yatexj Thu May 10 11:10:13 2012 +0900 7.2 +++ b/docs/yatexj Thu May 10 11:40:02 2012 +0900 7.3 @@ -1,7 +1,7 @@ 7.4 Info file: yatexj, -*-Text-*- 7.5 produced by `texinfo-format-buffer' 7.6 from file `yatexj.tex' 7.7 -using `texinfmt.el' version 2.42 of 7 Jul 2006. 7.8 +using `texinfmt.el' version 2.38 of 3 July 1998. 7.9 7.10 7.11 7.12 @@ -45,11 +45,11 @@ 7.13 はじめに 7.14 ******** 7.15 7.16 - 野鳥は、GNU Emacs で LaTeX 用の文書を作成する時に pLaTeX などのタイプ 7.17 -セットコマンドや、プレヴューアの起動を Emacs 編集画面中から行えるように 7.18 -すると共に、拡張性の高い種々の補完機能によりソーステキストの編集を支援 7.19 -します。さらに LaTeX コマンドのオンラインヘルプによりマニュアルを調べる 7.20 -手間を軽減します。 7.21 + 野鳥は、GNU Emacs で LaTeX 用の文書を作成する時に pLaTeX などのタイプセッ 7.22 +トコマンドや、プレヴューアの起動を Emacs 編集画面中から行えるようにすると 7.23 +共に、拡張性の高い種々の補完機能によりソーステキストの編集を支援します。さ 7.24 +らに LaTeX コマンドのオンラインヘルプによりマニュアルを調べる手間を軽減し 7.25 +ます。 7.26 7.27 English manual *Note Top: (yatexe)Top. 7.28 7.29 @@ -69,24 +69,23 @@ 7.30 7.31 * section型コマンド 7.32 7.33 - `\section{タイトル}'や`\mbox{内容}'のように引数を取るLaTeXコマンド 7.34 - を指します。 7.35 + `\section{タイトル}'や`\mbox{内容}'のように引数を取るLaTeXコマンドを 7.36 + 指します。 7.37 7.38 * maketitle型コマンド 7.39 7.40 - `\maketitle'や`\tableofcontents'のように引数を取らないLaTeXコマン 7.41 - ドを指します。 7.42 + `\maketitle'や`\tableofcontents'のように引数を取らないLaTeXコマンドを 7.43 + 指します。 7.44 7.45 * large型コマンド 7.46 7.47 - `{\large ...}' や `{\tt ...}' のようなフォント/サイズ指定子を指し 7.48 - ます。 7.49 + `{\large ...}' や `{\tt ...}' のようなフォント/サイズ指定子を指します。 7.50 7.51 * `[prefix]' 7.52 7.53 - 野鳥の機能を呼び出すためのプリフィクスキー。デフォルトでは`C-c'に 7.54 - 割り当てられているので、特に変更していない場合本マニュアルの 7.55 - `[prefix]' という表記は、`C-c' と読み換えてください。 7.56 + 野鳥の機能を呼び出すためのプリフィクスキー。デフォルトでは`C-c'に割り 7.57 + 当てられているので、特に変更していない場合本マニュアルの `[prefix]' 7.58 + という表記は、`C-c' と読み換えてください。 7.59 7.60 7.61 7.62 @@ -99,27 +98,25 @@ 7.63 * カーソル位置によらない固定リジョンの部分タイプセット 7.64 * \includeonlyのワンタッチ更新 7.65 * エラー箇所への自動ジャンプ(`C-c '') 7.66 - * `\begin{}, \end{}, \section...' などの LaTeXコマンドの補完入力 7.67 - (`C-c b', `C-c s', `C-c l', `C-c m') 7.68 - * 既に入力したテキストを環境やコマンド引数の中に取り込む括り補完 7.69 - (`C-u' +通常補完キー) 7.70 + * `\begin{}, \end{}, \section...' などの LaTeX コマンドの補完入力(`C-c 7.71 + b', `C-c s', `C-c l', `C-c m') 7.72 + * 既に入力したテキストを環境やコマンド引数の中に取り込む括り補完(`C-u' 7.73 + +通常補完キー) 7.74 * セクション区切り入力時の文書構造アウトライン表示 7.75 * セクションコマンドの一括シフト (*Note view-sectioning::) 7.76 * 補完辞書の学習 7.77 * LaTeX の環境やコマンドに応じたガイド付き引数入力 7.78 * 野鳥にないガイド付き引数入力関数の自動生成(`yatexgen.el') 7.79 * LaTeX コマンドの削除/変更(`C-c k', `C-c c') 7.80 - * ファイル間、`\begin'<->`\end'間、 7.81 - `\ref'<->`\label'間、 7.82 - `\cite'<->`\bibitem'ジャンプ(`C-c g') 7.83 - * 一括コメントアウト/アンコメントアウト(`C-c >', `C-c <', `C-c ,', 7.84 - `C-c .') 7.85 + * ファイル間、`\begin'<->`\end'間、`\ref'<->`\label'間、 7.86 + `\cite'<->`\bibitem'ジャンプ(`C-c g') 7.87 + * 一括コメントアウト/アンコメントアウト(`C-c >', `C-c <', `C-c ,', `C-c 7.88 + .') 7.89 * アクセント記号/数式環境用コマンド/ギリシャ文字の入力支援(`C-c a', 7.90 `;', `/') 7.91 * tabular/array環境のカラム位置ガイド 7.92 * 標準的 LaTeX コマンドのオンラインヘルプ(`C-c ?', `C-c /') 7.93 - * ドキュメントのインクルード構造の視覚的表示とバッファ切り替え(`C-c 7.94 - d') 7.95 + * ドキュメントのインクルード構造の視覚的表示とバッファ切り替え(`C-c d') 7.96 * 補完入力したマクロに応じて必要な \userpackage を入れてくれる先回り 7.97 userpackage 7.98 * \labelを打つことはもう忘れよう! refやcite補完入力で自動生成します 7.99 @@ -140,31 +137,31 @@ 7.100 (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) 7.101 (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) 7.102 7.103 -次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に加えま 7.104 -す。たとえば、 `~/src/emacs/yatex'に置くのであれば、 7.105 +次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に加えます。 7.106 +たとえば、 `~/src/emacs/yatex'に置くのであれば、 7.107 7.108 (setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path)) 7.109 7.110 などとします。 7.111 7.112 - 以上の設定により、拡張子が .tex であるファイルを編集すると自動的に野 7.113 -鳥がロードされます。野鳥が正常に起動できたときはモードラインの表示が 7.114 -「やてふ」に変わります。 7.115 + 以上の設定により、拡張子が .tex であるファイルを編集すると自動的に野鳥が 7.116 +ロードされます。野鳥が正常に起動できたときはモードラインの表示が「やてふ」 7.117 +に変わります。 7.118 7.119 7.120 タイプセッタ/プレヴューア環境の設定 7.121 =================================== 7.122 7.123 - 利用する外部プログラムに関する以下の変数を確認し、必要なら正しい値に 7.124 -変更します。 7.125 + 利用する外部プログラムに関する以下の変数を確認し、必要なら正しい値に変更 7.126 +します。 7.127 `tex-command' 7.128 ... 起動するタイプセッタのコマンド名 7.129 `dvi2-command' 7.130 ... 起動するプレヴューアのコマンド名 7.131 `NTT-jTeX' 7.132 - ... 改行+インデントによって、タイプセット後の字間が空いて 7.133 - しまうのを抑制する場合にtにする(古いNTT-jTeXで顕著に現れる)。具体 7.134 - 的には、fillするときに各行の終わりに%を付加するようになる。 7.135 + ... 改行+インデントによって、タイプセット後の字間が空いてしま 7.136 + うのを抑制する場合にtにする(古いNTT-jTeXで顕著に現れる)。具体的には、 7.137 + fillするときに各行の終わりに%を付加するようになる。 7.138 `YaTeX-kanji-code' 7.139 ... 文書を作成する時の漢字コード 7.140 `dviprint-command-format' 7.141 @@ -172,10 +169,9 @@ 7.142 `makeindex-command' 7.143 ... makeindexコマンド 7.144 7.145 -これらを変更する場合は、やはり`~/.emacs'にて、たとえば 7.146 - (setq tex-command "pdflatex") 7.147 -のようにしてください。どのような値をセットすれば良いかについては、 7.148 -*Note All customizable variables::を参照してください。 7.149 +これらを変更する場合は、やはり`~/.emacs'にて、たとえば(setq tex-command 7.150 +"pdflatex") のようにしてください。どのような値をセットすれば良いかについて 7.151 +は、*Note All customizable variables::を参照してください。 7.152 7.153 7.154 7.155 @@ -185,16 +181,16 @@ 7.156 latexコマンド起動 7.157 ***************** 7.158 7.159 -LaTeXソースの編集中、次のキー入力により、platex などのタイプセットプロ 7.160 -グラム(以後タイプセッタと呼ぶ)、プレヴューアなどの起動ができます。 7.161 +LaTeXソースの編集中、次のキー入力により、platex などのタイプセットプログラ 7.162 +ム(以後タイプセッタと呼ぶ)、プレヴューアなどの起動ができます。 7.163 7.164 `[prefix] t j' 7.165 ... タイプセッタ(platex)起動 7.166 `[prefix] t r' 7.167 ... タイプセッタ起動(領域指定) 7.168 `[prefix] t e' 7.169 - ... タイプセッタ起動(ポイント位置の環境または数式モードの 7.170 - み対象) 7.171 + ... タイプセッタ起動(ポイント位置の環境または数式モードのみ対 7.172 + 象) 7.173 `[prefix] t k' 7.174 ... 動作中のタイプセッタの停止 7.175 `[prefix] t b' 7.176 @@ -202,7 +198,7 @@ 7.177 `[prefix] t i' 7.178 ... makeindex起動 7.179 `[prefix] t d' 7.180 - ... タイプセット完了後dvipdfmx起動 7.181 + ... タイプセット完了後dvipdfmx起動 7.182 `[prefix] t p' 7.183 ... プレヴューア起動 7.184 `[prefix] t l' 7.185 @@ -223,49 +219,49 @@ 7.186 タイプセッタ起動 7.187 ================ 7.188 7.189 - タイプセッタを起動すると、編集ウィンドウが2つに分割され、片方のウィン 7.190 -ドウにタイプセット画面が表示されます。出力されるメッセージと連動しタイ 7.191 -プセットバッファは自動的にスクロールします。もし、途中でエラーが起こっ 7.192 -て止まってしまった場合にはタイプセットバッファに移り、(`C-x o') タイプ 7.193 -セッタの出している ? プロンプトに対して、`x' (処理の中断)などの指示を送 7.194 -ることができます。エラーを修正する場合は、 7.195 + タイプセッタを起動すると、編集ウィンドウが2つに分割され、片方のウィンド 7.196 +ウにタイプセット画面が表示されます。出力されるメッセージと連動しタイプセッ 7.197 +トバッファは自動的にスクロールします。もし、途中でエラーが起こって止まって 7.198 +しまった場合にはタイプセットバッファに移り、(`C-x o') タイプセッタの出して 7.199 +いる ? プロンプトに対して、`x' (処理の中断)などの指示を送ることができます。 7.200 +エラーを修正する場合は、 7.201 7.202 `[prefix] '' 7.203 `(prefix+アポストロフィ)' 7.204 ... 直前のエラー発生行へジャンプ 7.205 7.206 -を入力することにより、タイプセッタがエラーを発生した行に移ることができ 7.207 -ます。また、タイプセッタの出力する overfull hbox などのウォーニング行に 7.208 -も対応していますので、順次 `[prefix] '' を押すことにより、一つ前のウォー 7.209 -ニング発生行にジャンプしていきます。 7.210 - 7.211 - もし、気になるエラー行があった場合は、タイプセットバッファで、エラー 7.212 -の表示されている行にカーソルを合わせスペースキーを押すと LaTeX ソースの 7.213 -対応する行にジャンプします。 7.214 +を入力することにより、タイプセッタがエラーを発生した行に移ることができます。 7.215 +また、タイプセッタの出力する overfull hbox などのウォーニング行にも対応し 7.216 +ていますので、順次 `[prefix] '' を押すことにより、一つ前のウォーニング発生 7.217 +行にジャンプしていきます。 7.218 + 7.219 + もし、気になるエラー行があった場合は、タイプセットバッファで、エラーの表 7.220 +示されている行にカーソルを合わせスペースキーを押すと LaTeX ソースの対応す 7.221 +る行にジャンプします。 7.222 7.223 7.224 領域タイプセット 7.225 ---------------- 7.226 7.227 - ポイントとマークの間、あるいはテキスト中に埋め込んだ `%#BEGIN' と 7.228 -`%#END'の間の領域(*Note %#notation::)だけを切り取ってタイプセットするこ 7.229 -とができます。この場合メインファイルのプリアンブルが一時ファイルのプリ 7.230 -アンブルとして使われます。したがってプリアンブルにないマクロ定義が領域 7.231 -内にあるとエラーになります。領域タイプセットを使う場合、必ずマクロ定義 7.232 -はプリアンブル(`\begin{document}'より前)に置くようにして下さい。一時ファ 7.233 -イルはメインファイルのあるディレクトリの`texput.tex'という名前で出力さ 7.234 -れるので、上書きには注意してください。 7.235 + ポイントとマークの間、あるいはテキスト中に埋め込んだ `%#BEGIN' と`%#END' 7.236 +の間の領域(*Note %#notation::)だけを切り取ってタイプセットすることができま 7.237 +す。この場合メインファイルのプリアンブルが一時ファイルのプリアンブルとして 7.238 +使われます。したがってプリアンブルにないマクロ定義が領域内にあるとエラーに 7.239 +なります。領域タイプセットを使う場合、必ずマクロ定義はプリアンブル 7.240 +(`\begin{document}'より前)に置くようにして下さい。一時ファイルはメインファ 7.241 +イルのあるディレクトリの`texput.tex'という名前で出力されるので、上書きには 7.242 +注意してください。 7.243 7.244 7.245 環境タイプセット 7.246 ---------------- 7.247 7.248 - `[prefix] te' を押すと、ポイント位置の最も内側の環境、または数式モー 7.249 -ド内の場合はその数式モード全体が自動的に領域選択されて、領域タイプセッ 7.250 -トを呼び出します。tabular環境や数式モードで複雑なものを作っている場合は 7.251 -確かめたい部分だけを確認できるので便利です。これも `texput.tex' に該当 7.252 -部分を書き出します。プレヴューアで `texput.dvi' を開いたままにしておけ 7.253 -ば修正と確認が素早くできるでしょう。 7.254 + `[prefix] te' を押すと、ポイント位置の最も内側の環境、または数式モード内 7.255 +の場合はその数式モード全体が自動的に領域選択されて、領域タイプセットを呼び 7.256 +出します。tabular環境や数式モードで複雑なものを作っている場合は確かめたい 7.257 +部分だけを確認できるので便利です。これも `texput.tex' に該当部分を書き出し 7.258 +ます。プレヴューアで `texput.dvi' を開いたままにしておけば修正と確認が素早 7.259 +くできるでしょう。 7.260 7.261 7.262 7.263 @@ -273,11 +269,11 @@ 7.264 7.265 プレヴューア起動 7.266 ================ 7.267 - `[prefix] t p' によりプレヴューアの起動ができます。さらに、もしあなた 7.268 -が、-remote 機能つきのxdviを利用している場合は `[prefix] t s' を押すこ 7.269 -とによりカーソル位置の文字列を検索してそのページを表示するようにすでに 7.270 -起動中のxdviに命令を送ります。これにより、現在編集中の箇所のタイプセッ 7.271 -ト結果を即座に見ることができます。 7.272 + `[prefix] t p' によりプレヴューアの起動ができます。さらに、もしあなたが、- 7.273 +remote 機能つきのxdviを利用している場合は `[prefix] t s' を押すことにより 7.274 +カーソル位置の文字列を検索してそのページを表示するようにすでに起動中のxdvi 7.275 +に命令を送ります。これにより、現在編集中の箇所のタイプセット結果を即座に見 7.276 +ることができます。 7.277 7.278 7.279 7.280 @@ -287,8 +283,8 @@ 7.281 プリントアウト 7.282 ============== 7.283 7.284 - `[prefix] t l'を押してプリントアウトを指示すると、出力開始/終了ページ 7.285 -を聞いてくるので、それぞれに答えます。これを省略したい時は、 7.286 + `[prefix] t l'を押してプリントアウトを指示すると、出力開始/終了ページを 7.287 +聞いてくるので、それぞれに答えます。これを省略したい時は、 7.288 universal-argument をつけ、 7.289 7.290 7.291 @@ -304,8 +300,8 @@ 7.292 %#記法 7.293 ****** 7.294 7.295 - 本文中に`%#'ではじまるキーワードを埋め込むことでタイプセッタ起動等の 7.296 -制御をすることができます。 7.297 + 本文中に`%#'ではじまるキーワードを埋め込むことでタイプセッタ起動等の制御 7.298 +をすることができます。 7.299 7.300 * Menu: 7.301 7.302 @@ -313,6 +309,7 @@ 7.303 * Splitting input files:: 入力ファイル分割 7.304 * Fix region for typesetting:: 領域の固定 7.305 * lpr format:: プリントアウトコマンド用フォーマット 7.306 +* Controlling which command to invoke:: その他の起動コマンド制御 7.307 * Editing %# notation:: %#記法の編集 7.308 7.309 7.310 @@ -337,35 +334,33 @@ 7.311 入力ファイル分割 7.312 ================ 7.313 7.314 -また、章毎に別ファイルの .tex を作成している場合で、`main.tex'から 7.315 -`sub.tex' を `\include'しているような時は、`sub.tex'の任意の位置に次の 7.316 -ような行を埋め込みます。 7.317 +また、章毎に別ファイルの .tex を作成している場合で、`main.tex'から 7.318 +`sub.tex' を `\include'しているような時は、`sub.tex'の任意の位置に次のよう 7.319 +な行を埋め込みます。 7.320 7.321 %#!platex main.tex 7.322 7.323 7.324 -上の例のようにコマンド名だけでなく引数も書いた場合には、全てをそのまま 7.325 -shell に渡すので次のように書けば、ghostview などをプレヴューアに使う時 7.326 -に便利です。 7.327 +上の例のようにコマンド名だけでなく引数も書いた場合には、全てをそのまま 7.328 +shell に渡すので次のように書けば、ghostview などをプレヴューアに使う時に便 7.329 +利です。 7.330 7.331 7.332 %#!platex main && dvi2ps main.dvi > main 7.333 7.334 -なお、この行の最後の単語のピリオド以前を「メインファイル」のベースネー 7.335 -ムであると仮定します(上の2つの場合どちらも`main')。この行に記述した、 7.336 -`%f'はメインファイル名に、 `%r' はメインファイルの拡張子を取り除いた部 7.337 -分に置換されます。ただし、`%f,%r'を利用した場合、初回タイプセット時に必 7.338 -ずメインファイル名の入力を促されます。 7.339 - 7.340 - `[prefix] g' (*Note Cursor jump::参照) でのファイル間ジャンプを有効に 7.341 -機能させるため、入力ファイル分割時には次のことに注意して下さい。 7.342 - 7.343 - 1. サブディレクトリを作って、その中にサブファイルを置くことはできるが 7.344 - サブディレクトリのサブディレクトリには置けない。 7.345 - 2. メインファイルからサブディレクトリ内のファイルを 7.346 - include 7.347 - する時には、相対パス指定を用いて、 7.348 - `\include{chap1/sub}'のように記述。 7.349 +なお、この行の最後の単語のピリオド以前を「メインファイル」のベースネームで 7.350 +あると仮定します(上の2つの場合どちらも`main')。この行に記述した、`%f'はメ 7.351 +インファイル名に、 `%r' はメインファイルの拡張子を取り除いた部分に置換され 7.352 +ます。ただし、`%f,%r'を利用した場合、初回タイプセット時に必ずメインファイ 7.353 +ル名の入力を促されます。 7.354 + 7.355 + `[prefix] g' (*Note Cursor jump::参照) でのファイル間ジャンプを有効に機 7.356 +能させるため、入力ファイル分割時には次のことに注意して下さい。 7.357 + 7.358 + 1. サブディレクトリを作って、その中にサブファイルを置くことはできるがサ 7.359 + ブディレクトリのサブディレクトリには置けない。 7.360 + 2. メインファイルからサブディレクトリ内のファイルを include する時には、 7.361 + 相対パス指定を用いて、`\include{chap1/sub}'のように記述。 7.362 3. メインファイルが一つ上のディレクトリにある場合も、サブファイルには 7.363 %#!platex main.tex のように記述する(../mainではない)。 7.364 7.365 @@ -378,36 +373,35 @@ 7.366 領域の固定 7.367 ========== 7.368 7.369 - `[prefix] tr' の領域指定のタイプセットでは、とくに指定のないかぎり、 7.370 -`C-SPC'でマークした位置と、ポイント(カーソル位置)の間を領域とみなします 7.371 -が、必ず決まった領域をタイプセットしたい場合は、その領域を 7.372 + `[prefix] tr' の領域指定のタイプセットでは、とくに指定のないかぎり、 7.373 +`C-SPC'でマークした位置と、ポイント(カーソル位置)の間を領域とみなしますが、 7.374 +必ず決まった領域をタイプセットしたい場合は、その領域を 7.375 7.376 %#BEGIN 7.377 <渡したい領域> 7.378 %#END 7.379 7.380 -のように`%#BEGIN'と`%#END'で囲み、カーソルを「`%#BEGIN'以降」に置いてく 7.381 -ださい。この時の領域決定規則をまとめると次のようになります。 7.382 - 7.383 - 7.384 - 1. カーソル位置よりバッファの先頭方向に`%#BEGIN'というキーワードがあ 7.385 - る場合 7.386 +のように`%#BEGIN'と`%#END'で囲み、カーソルを「`%#BEGIN'以降」に置いてくだ 7.387 +さい。この時の領域決定規則をまとめると次のようになります。 7.388 + 7.389 + 7.390 + 1. カーソル位置よりバッファの先頭方向に`%#BEGIN'というキーワードがある場 7.391 + 合 7.392 7.393 1. `%#BEGIN'よりバッファの末尾方向に`%#END'というキーワードが見つかっ 7.394 た場合。 7.395 =>`%#BEGIN' から、その `%#END' のある位置まで。 7.396 - 2. `%#END' が見つからなかった場合。 7.397 - =>バッファの最後尾まで。 7.398 + 2. `%#END' が見つからなかった場合。=>バッファの最後尾まで。 7.399 7.400 2. カーソル位置よりバッファの先頭方向に `%#BEGIN' というキーワードが 7.401 見つからなかった場合。 7.402 =>マーク(`C-SPC'位置)とポイント(カーソル位置)の間の領域。 7.403 7.404 - tabular 環境を何度も試行錯誤しているような場合は、`\begin'の前の行に 7.405 -`%#BEGIN' と書き、`\end' の次の行に `%#END' と書いておくと簡単に作表結 7.406 -果をテストすることができます。また、長い .tex ファイルの後半に 7.407 -`%#BEGIN' を書いておけば、前半の部分は無視できます。このBEGINとENDの消 7.408 -し忘れには十分ご注意下さい。 7.409 + tabular 環境を何度も試行錯誤しているような場合は、`\begin'の前の行に 7.410 +`%#BEGIN' と書き、`\end' の次の行に `%#END' と書いておくと簡単に作表結果を 7.411 +テストすることができます。また、長い .tex ファイルの後半に `%#BEGIN' を書 7.412 +いておけば、前半の部分は無視できます。このBEGINとEND の消し忘れには十分ご 7.413 +注意下さい。 7.414 7.415 7.416 7.417 @@ -417,9 +411,9 @@ 7.418 lprフォーマット 7.419 =============== 7.420 7.421 - まず、プリントアウト用コマンド列のフォーマットについて説明します。コ 7.422 -マンド列フォーマットは、3つの Lisp 変数によって表現されます。デフォルト 7.423 -の dvi2ps 用のフォーマットを例に説明します。 7.424 + まず、プリントアウト用コマンド列のフォーマットについて説明します。コマン 7.425 +ド列フォーマットは、3つの Lisp 変数によって表現されます。デフォルトの 7.426 +dvi2ps 用のフォーマットを例に説明します。 7.427 7.428 `(1)dviprint-command-format' 7.429 `"dvi2ps %f %t %s | lpr"' 7.430 @@ -430,19 +424,18 @@ 7.431 `(3)dviprint-to-format' 7.432 `"-t %e"' 7.433 7.434 -実際にプリントアウトする時は、(1)中の %s がファイル名に置き換えられ、 7.435 -%f が(2)の内容、%t が(3)の内容に置き換えられます。その際に(2)の文字列中 7.436 -の %b は「出力開始ページ」、(3)の文字列中の %e は「出力終了ページ」に置 7.437 -き換えられます。もし、ページを指定しない時には、%f, %t 両方とも無視され 7.438 -ます。 7.439 - 7.440 - この、dviprint-command-format を臨時に変えたい時は、LaTeX のソーステ 7.441 -キスト中の任意の場所に、 7.442 +実際にプリントアウトする時は、(1)中の %s がファイル名に置き換えられ、%f が 7.443 +(2)の内容、%t が(3)の内容に置き換えられます。その際に(2)の文字列中の %b は 7.444 +「出力開始ページ」、(3)の文字列中の %e は「出力終了ページ」に置き換えられ 7.445 +ます。もし、ページを指定しない時には、%f, %t 両方とも無視されます。 7.446 + 7.447 + この、dviprint-command-format を臨時に変えたい時は、LaTeX のソーステキス 7.448 +ト中の任意の場所に、 7.449 7.450 %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2 7.451 7.452 -のように書いて下さい。プリントアウトするページ範囲をいちいち聞かせない 7.453 -ようにする時に 7.454 +のように書いて下さい。プリントアウトするページ範囲をいちいち聞かせないよう 7.455 +にする時に 7.456 7.457 %#LPR dvi2ps %s | lpr 7.458 7.459 @@ -458,14 +451,14 @@ 7.460 LaTeX 文書に関連するコマンドは以下の %# 記法で指定することができます。 7.461 7.462 `%#BIBTEX' 7.463 - 7.464 - ... makeindexを行なうコマンドライン([prefix] t b) 7.465 + 7.466 + ... makeindexを行なうコマンドライン([prefix] t b) 7.467 `%#MAKEINDEX' 7.468 - 7.469 - ... bibtexを行なうコマンドライン([prefix] t i) 7.470 - 7.471 -行頭がこれらのキーワードで始まる行をLaTeX文書の先頭付近に書いておけば、 7.472 -それで指定したコマンドを起動できます。 7.473 + 7.474 + ... bibtexを行なうコマンドライン([prefix] t i) 7.475 + 7.476 +行頭がこれらのキーワードで始まる行をLaTeX文書の先頭付近に書いておけば、そ 7.477 +れで指定したコマンドを起動できます。 7.478 7.479 7.480 7.481 @@ -483,11 +476,10 @@ 7.482 7.483 !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR 7.484 7.485 -というメニューが出て来るので、`%#!'に続くコマンドを変更したい時には 7.486 -`!'を、`%#LPR'で lpr フォーマットを変えたい時は`l'を、あらか 7.487 -じめ設定したリジョンを `%#BEGIN' 〜 `%#END' で括りたい時は、 7.488 -`b'を押します。`b'を選んだ時には、それまでバッファ中に置かれていた 7.489 -`%#BEGIN', `%#END' が自動的に消去されます。 7.490 +というメニューが出て来るので、`%#!'に続くコマンドを変更したい時には`!'を、 7.491 +`%#LPR'で lpr フォーマットを変えたい時は`l'を、あらかじめ設定したリジョン 7.492 +を `%#BEGIN' 〜 `%#END' で括りたい時は、`b'を押します。`b'を選んだ時には、 7.493 +それまでバッファ中に置かれていた`%#BEGIN', `%#END' が自動的に消去されます。 7.494 7.495 7.496 7.497 @@ -496,17 +488,17 @@ 7.498 補完入力 7.499 ******** 7.500 7.501 - LaTeX での環境名などは、野鳥の補完機能を利用して能率的に入力すること 7.502 -ができます。 7.503 + LaTeX での環境名などは、野鳥の補完機能を利用して能率的に入力することがで 7.504 +きます。 7.505 7.506 * Menu: 7.507 7.508 -* begin型補完:: 7.509 -* section型補完:: 7.510 -* large型補完:: 7.511 -* maketitle型補完:: 7.512 +* begin型補完:: 7.513 +* section型補完:: 7.514 +* large型補完:: 7.515 +* maketitle型補完:: 7.516 * Arbitrary completion:: 随時補完 7.517 -* end補完:: 7.518 +* end補完:: 7.519 * Accent mark completion:: アクセント記号補完 7.520 * Image completion:: 数式記号イメージ補完 7.521 * Greek letter completion:: ギリシャ文字補完 7.522 @@ -518,14 +510,14 @@ 7.523 begin型補完 7.524 =========== 7.525 7.526 - `\begin{env}...\end{env}'の様な形式の入力の補完をbegin型補完と呼ぶこ 7.527 -とにします。begin 型補完は、 7.528 + `\begin{env}...\end{env}'の様な形式の入力の補完をbegin型補完と呼ぶことに 7.529 +します。begin 型補完は、 7.530 7.531 `[prefix] b' 7.532 ... begin 型補完開始(標準では `C-c b') 7.533 7.534 -で始まります。頻繁に用いられる次の LaTeX 環境の補完は、[prefix] `b'に続 7.535 -く次の1文字を入力するだけで、`\begin{xxx}...\end{xxx}'を完成させます。 7.536 +で始まります。頻繁に用いられる次の LaTeX 環境の補完は、[prefix] `b' に続く 7.537 +次の1文字を入力するだけで、`\begin{xxx}...\end{xxx}'を完成させます。 7.538 7.539 `[prefix] b c' 7.540 ... `\begin{center}...\end{center}' 7.541 @@ -562,8 +554,8 @@ 7.542 `[prefix] b V' 7.543 ... `\begin{verse}...\end{verse}' 7.544 7.545 - 上記のもの以外の環境名は Emacs の持つインクリメンタルな補完機能を用い 7.546 -て入力します(上記の環境名も以下の補完入力可能)。 7.547 + 上記のもの以外の環境名は Emacs の持つインクリメンタルな補完機能を用いて 7.548 +入力します(上記の環境名も以下の補完入力可能)。 7.549 7.550 `[prefix] b SPC' 7.551 ... begin 型補完入力 7.552 @@ -572,39 +564,39 @@ 7.553 7.554 Begin environment(default document): 7.555 7.556 -と表示されます。ここで、何も入れずにリターンキーのみ押すと、括弧内に出 7.557 -ているデフォルトの環境名が入力されますが、適当な環境名を入力すると、 7.558 -`\begin{環境名} … \end{環境名}'が文書中に挿入されます。ミニバッファで 7.559 -環境名を入力するときに、環境名の頭文字を入力し「スペース」をたたくと、 7.560 -一致する環境名が内部テーブルに存在した場合、正しい環境名に補完されるの 7.561 -で、入力の手間が省けます。内部テーブルに存在しない環境名を入力した時は 7.562 -ユーザ専用のテーブルに登録され、さらにそのテーブルを自動的に、ユーザ辞 7.563 -書(デフォルトでは `~/.yatexrc')に保存します。 7.564 - 7.565 -さらに、特定の環境を補完入力した時にはその環境で必ず用いられるエントリ 7.566 -を自動挿入します(例: `itemize'環境における`\item'など)。挿入されたエン 7.567 -トリが不要な場合にはundoによって消去して下さい。 7.568 +と表示されます。ここで、何も入れずにリターンキーのみ押すと、括弧内に出てい 7.569 +るデフォルトの環境名が入力されますが、適当な環境名を入力すると、`\begin{環 7.570 +境名} … \end{環境名}'が文書中に挿入されます。ミニバッファで環境名を入力す 7.571 +るときに、環境名の頭文字を入力し「スペース」をたたくと、一致する環境名が内 7.572 +部テーブルに存在した場合、正しい環境名に補完されるので、入力の手間が省けま 7.573 +す。内部テーブルに存在しない環境名を入力した時はユーザ専用のテーブルに登録 7.574 +され、さらにそのテーブルを自動的に、ユーザ辞書(デフォルトでは 7.575 +`~/.yatexrc')に保存します。 7.576 + 7.577 +さらに、特定の環境を補完入力した時にはその環境で必ず用いられるエントリを自 7.578 +動挿入します(例: `itemize'環境における`\item'など)。挿入されたエントリが不 7.579 +要な場合にはundoによって消去して下さい。 7.580 7.581 7.582 既に書いたテキストを環境で括る 7.583 ------------------------------ 7.584 7.585 - ところで、最初に書いてしまったブロックを後から、itemize 環境の中 7.586 -に閉じこめたいと思うことがありますが、そのようなときは、あらかじめ 7.587 -閉じこめたい段落をマークして、begin 型補完の各コマンドの `[prefix]' 7.588 -の次の『小文字の 'b'』 を『大文字』に変えて起動して下さい。(または、 7.589 -`C-u' を先に打ち、universal argument をつけても可能です) 7.590 - 7.591 - 例えばあるパラグラフを description 環境の中に入れたいときは、そのパラ 7.592 -グラフをマークしてから、 7.593 + ところで、最初に書いてしまったブロックを後から、itemize 環境の中に閉じこ 7.594 +めたいと思うことがありますが、そのようなときは、あらかじめ閉じこめたい段落 7.595 +をマークして、begin 型補完の各コマンドの `[prefix]' の次の『小文字の 'b'』 7.596 +を『大文字』に変えて起動して下さい。(または、`C-u' を先に打ち、universal 7.597 +argument をつけても可能です) 7.598 + 7.599 + 例えばあるパラグラフを description 環境の中に入れたいときは、そのパラグ 7.600 +ラフをマークしてから、 7.601 7.602 `[prefix] B D' 7.603 `(または ESC 1 [prefix] b D)' 7.604 `(または C-u [prefix] b D など)' 7.605 7.606 とタイプしてください。これは、`[prefix] b SPC'の補完入力にもあてはまり、 7.607 -`b' を大文字に変えて、`[prefix] B SPC' とタイプすれば、あらかじめマーク 7.608 -しておいたリジョンを、begin と end の環境で括ります。 7.609 +`b' を大文字に変えて、`[prefix] B SPC' とタイプすれば、あらかじめマークし 7.610 +ておいたリジョンを、begin と end の環境で括ります。 7.611 7.612 7.613 7.614 @@ -613,8 +605,8 @@ 7.615 section型補完 7.616 ============= 7.617 7.618 - `\section{目的}' のような形式の入力の補完を section 型補完と呼ぶこと 7.619 -にします。section 型補完は、 7.620 + `\section{目的}' のような形式の入力の補完を section 型補完と呼ぶことにし 7.621 +ます。section 型補完は、 7.622 7.623 `[prefix] s' 7.624 ... section 型補完 7.625 @@ -624,15 +616,15 @@ 7.626 7.627 (C-v for view-section) \???{} (default documentclass): 7.628 7.629 -というプロンプトが現れるので、そこで `section' のような LaTeX コマンド 7.630 -名を入力します。ここでもリターンキーのみで括弧内のデフォルト値が選択さ 7.631 -れるほか、`chapter'などのような頻度の高い名称入力にはスペースキーによる 7.632 -補完機能が有効です。 次に、{}の中身の入力を促す、 7.633 +というプロンプトが現れるので、そこで `section' のような LaTeX コマンド名を 7.634 +入力します。ここでもリターンキーのみで括弧内のデフォルト値が選択されるほか、 7.635 +`chapter'などのような頻度の高い名称入力にはスペースキーによる補完機能が有 7.636 +効です。 次に、{}の中身の入力を促す、 7.637 7.638 \section{???}: 7.639 7.640 -というプロンプトが現れるので、セクションのタイトルなどを入力します。た 7.641 -とえば、 7.642 +というプロンプトが現れるので、セクションのタイトルなどを入力します。たとえ 7.643 +ば、 7.644 7.645 (C-v for view-section) \???{} (default documentclass): section 7.646 \section{???}: 目的 7.647 @@ -654,7 +646,7 @@ 7.648 7.649 * Menu: 7.650 7.651 -* 2個以上の引数をとる section型コマンド:: 7.652 +* 2個以上の引数をとる section型コマンド:: 7.653 * Enclose section-type command:: 括り補完 7.654 * Recursive completion:: 再帰補完 7.655 * view-sectioning:: セクション区切りのアウトライン表示 7.656 @@ -667,10 +659,10 @@ 7.657 2個以上の引数をとる section型コマンド 7.658 ------------------------------------- 7.659 7.660 - ところで、`\addtolength{\topmargin}{8mm}' などのように、引数を二つ以 7.661 -上取る LaTeX コマンドがあります。このようなコマンドの補完入力には、 7.662 -section 型補完呼び出しに引数を付けてください。例えば上の`addtolength'の 7.663 -例であれば、引数2を指定します。つまり、 7.664 + ところで、`\addtolength{\topmargin}{8mm}' などのように、引数を二つ以上取 7.665 +る LaTeX コマンドがあります。このようなコマンドの補完入力には、 section 型 7.666 +補完呼び出しに引数を付けてください。例えば上の`addtolength' の例であれば、 7.667 +引数2を指定します。つまり、 7.668 7.669 C-u 2 [prefix] s (または、ESC 2 [prefix] s) 7.670 7.671 @@ -680,13 +672,12 @@ 7.672 \addtolength{???}: \topmargin 7.673 Argument 2: 8mm 7.674 7.675 -のように入力してください。最初の addtolength の部分と、第一引数である 7.676 -topmargin の入力は当然スペースによる補完入力が可能です。ユーザ辞書に登 7.677 -録される LaTeX コマンドには、この引数の数も学習されるので、最初の補完の 7.678 -時引数の数を指定して起動しておけば、以後の補完時には、記憶された個数だ 7.679 -け引数を聞いて来るようになります。あとで引数の個数を変えたい時は、再び 7.680 -`C-u'を用いて個数を指定し直すことで、自動的に辞書中の引数の個数の部分を 7.681 -更新します。 7.682 +のように入力してください。最初の addtolength の部分と、第一引数である 7.683 +\topmargin の入力は当然スペースによる補完入力が可能です。ユーザ辞書に登録 7.684 +される LaTeX コマンドには、この引数の数も学習されるので、最初の補完の時引 7.685 +数の数を指定して起動しておけば、以後の補完時には、記憶された個数だけ引数を 7.686 +聞いて来るようになります。あとで引数の個数を変えたい時は、再び `C-u' を用 7.687 +いて個数を指定し直すことで、自動的に辞書中の引数の個数の部分を更新します。 7.688 7.689 7.690 7.691 @@ -696,8 +687,8 @@ 7.692 既に書いたテキストを括る 7.693 ------------------------ 7.694 7.695 - また、起動コマンドの`s'を大文字に変えて起動すると、あらかじめ書いた文 7.696 -章を section 型コマンドの第一引数として括ります。 7.697 + また、起動コマンドの`s'を大文字に変えて起動すると、あらかじめ書いた文章 7.698 +を section 型コマンドの第一引数として括ります。 7.699 7.700 7.701 7.702 @@ -706,10 +697,10 @@ 7.703 再帰補完 7.704 -------- 7.705 7.706 - 高度な使い方になるかもしれませんが、section型補完の引数の入力時にさら 7.707 -に補完入力を利用することができます(section/large/maketitle型に限る)。 7.708 -section型コマンドの引数に更に LaTeX コマンドが来る場合にはミニバッファ 7.709 -で野鳥の補完キーを再帰的に入力することで引数の入力も効率的に行なえます。 7.710 + 高度な使い方になるかもしれませんが、section型補完の引数の入力時にさらに 7.711 +補完入力を利用することができます(section/large/maketitle型に限る)。section 7.712 +型コマンドの引数に更に LaTeX コマンドが来る場合にはミニバッファで野鳥の補 7.713 +完キーを再帰的に入力することで引数の入力も効率的に行なえます。 7.714 7.715 7.716 7.717 @@ -718,28 +709,27 @@ 7.718 セクション区切りのアウトライン表示 7.719 ---------------------------------- 7.720 7.721 - 通常のsection型補完の時にミニバッファで`C-v'を押すと現在存在するセク 7.722 -ション区切りコマンド全てを `*Sectioning Lines*'というバッファに一覧表示 7.723 -します(「<<--」のついている行がもっとも近いセクション区切り)。この時ミ 7.724 -ニバッファで`C-p', `C-n' を押すと`part', `chapter', ..., 7.725 -`subparagraph' のコマンドが論理階層の高さにしたがって上下します。また、 7.726 -`C-v', `M-v' を押すとセクション区切り一覧バッファがスクロールし、数字の 7.727 -`0'〜`7'を押すとある高さ以上のセクション区切りだけを選んで表示します(実 7.728 -際にやって見れば分かります)。 7.729 + 通常のsection型補完の時にミニバッファで`C-v'を押すと現在存在するセクショ 7.730 +ン区切りコマンド全てを `*Sectioning Lines*'というバッファに一覧表示します 7.731 +(「<<--」のついている行がもっとも近いセクション区切り)。この時ミニバッファ 7.732 +で`C-p', `C-n' を押すと`part', `chapter', ..., `subparagraph' のコマンドが 7.733 +論理階層の高さにしたがって上下します。また、`C-v', `M-v' を押すとセクショ 7.734 +ン区切り一覧バッファがスクロールし、数字の`0'〜`7'を押すとある高さ以上のセ 7.735 +クション区切りだけを選んで表示します(実際にやって見れば分かります)。 7.736 7.737 `*Sectioning Lines*'バッファは、 7.738 7.739 `M-x YaTeX-section-overview' 7.740 ... セクション区切り一覧バッファを生成 7.741 7.742 -で作成することができます。このバッファを選択し任意の行でスペースを押す 7.743 -と、該当するセクション区切りのある本文中の場所にジャンプします。さらに、 7.744 -同バッファで `u' を押すと、ソーステキストの対応するセクションコマンドが 7.745 -一階層上がり(例: subsection が section に変わる)、`d'を押すと一階層下が 7.746 -ります。`*Sectioning Lines*'バッファにあるセクション区切りの行をマーク 7.747 -しておいて`U'を押すとリジョン内のものに対応するソーステキストのセクショ 7.748 -ンコマンドすべてが一階層上がり、`D'を押すと下がります。セクション区切り 7.749 -一覧バッファで利用できるキーコマンドには以下のものがあります。 7.750 +で作成することができます。このバッファを選択し任意の行でスペースを押すと、 7.751 +該当するセクション区切りのある本文中の場所にジャンプします。さらに、同バッ 7.752 +ファで `u' を押すと、ソーステキストの対応するセクションコマンドが一階層上 7.753 +がり(例: subsection が section に変わる)、`d'を押すと一階層下がります。 7.754 +`*Sectioning Lines*'バッファにあるセクション区切りの行をマークしておいて 7.755 +`U'を押すとリジョン内のものに対応するソーステキストのセクションコマンドす 7.756 +べてが一階層上がり、`D'を押すと下がります。セクション区切り一覧バッファで 7.757 +利用できるキーコマンドには以下のものがあります。 7.758 7.759 `SPC' 7.760 ... 対応するソース行へジャンプ 7.761 @@ -764,13 +754,12 @@ 7.762 ラベル自動生成 7.763 -------------- 7.764 7.765 - `\ref{}' や `\cite{}' マクロをsection型補完で入れた場合参照先となり得 7.766 -るものを全て探してメニューにして選択できます。参照先には`\label{}'をつ 7.767 -けておく必要はありません。もしあれば、そのラベルを使い、なければその場 7.768 -で参照先に`\label{}'を作らせてくれます。ラベル名を考えるのは苦痛に感じ 7.769 -るものです。全てのカウンタにラベルをつけるのもたいへんです。もうラベル 7.770 -名に何をつけるか、ラベルをつけるかつけまいか、などということは忘れましょ 7.771 -う! 7.772 + `\ref{}' や `\cite{}' マクロをsection型補完で入れた場合参照先となり得る 7.773 +ものを全て探してメニューにして選択できます。参照先には`\label{}'をつけてお 7.774 +く必要はありません。もしあれば、そのラベルを使い、なければその場で参照先に 7.775 +`\label{}'を作らせてくれます。ラベル名を考えるのは苦痛に感じるものです。全 7.776 +てのカウンタにラベルをつけるのもたいへんです。もうラベル名に何をつけるか、 7.777 +ラベルをつけるかつけまいか、などということは忘れましょう! 7.778 7.779 7.780 7.781 @@ -789,18 +778,18 @@ 7.782 {\??? } (default large): 7.783 7.784 7.785 -と表示されるので、上記のものと同じ要領で補完入力して下さい。補完候補に 7.786 -用意されているのは、`footnotesize' や `huge' のような文字サイズ指定子と、 7.787 -`bf'や`dg'のようなフォント指定子です。 7.788 +と表示されるので、上記のものと同じ要領で補完入力して下さい。補完候補に用意 7.789 +されているのは、`footnotesize' や `huge' のような文字サイズ指定子と、`bf' 7.790 +や`dg'のようなフォント指定子です。 7.791 7.792 7.793 既に書いた文字を括る 7.794 -------------------- 7.795 7.796 - また、begin型補完の時と同様、先に書いてしまった一連の文章の文字のサイ 7.797 -ズを変えたいと思う時がありますが、そのような時は、サイズや大きさを変え 7.798 -たい文字の範囲をマークしてから、呼び出しキーを `[prefix] L' と、大文字 7.799 -の Lに変えて呼び出せば、そのリジョン全体が、ブレースで囲まれます。 7.800 + また、begin型補完の時と同様、先に書いてしまった一連の文章の文字のサイズ 7.801 +を変えたいと思う時がありますが、そのような時は、サイズや大きさを変えたい文 7.802 +字の範囲をマークしてから、呼び出しキーを `[prefix] L' と、大文字の L に変 7.803 +えて呼び出せば、そのリジョン全体が、ブレースで囲まれます。 7.804 7.805 7.806 7.807 @@ -814,8 +803,8 @@ 7.808 `[prefix] m' 7.809 ... maketitle 型補完開始 7.810 7.811 -で、maketitle 型補完を開始します。補完の要領は今までのものとまったく同 7.812 -じです。LaTeX 用のコマンド名が補完候補として用意されています。 7.813 +で、maketitle 型補完を開始します。補完の要領は今までのものとまったく同じで 7.814 +す。LaTeX 用のコマンド名が補完候補として用意されています。 7.815 7.816 7.817 7.818 @@ -824,15 +813,15 @@ 7.819 随時補完 7.820 ======== 7.821 7.822 - さて、今まで述べた典型的な LaTeX コマンド形式の補完入力を用いずに、今 7.823 -入力しようとしている LaTeX コマンドを文書中の任意の位置で随時補完するこ 7.824 -ともできます。LaTeX コマンド(先頭が\で始まる)を入力している途中で、 7.825 + さて、今まで述べた典型的な LaTeX コマンド形式の補完入力を用いずに、今入 7.826 +力しようとしている LaTeX コマンドを文書中の任意の位置で随時補完することも 7.827 +できます。LaTeX コマンド(先頭が\で始まる)を入力している途中で、 7.828 7.829 `[prefix] SPC' 7.830 ... 随時補完 7.831 7.832 -を入力すれば、全ての補完候補の中から一致するものが選ばれカーソル位置に 7.833 -挿入されます。 7.834 +を入力すれば、全ての補完候補の中から一致するものが選ばれカーソル位置に挿入 7.835 +されます。 7.836 7.837 7.838 7.839 @@ -842,9 +831,9 @@ 7.840 ======= 7.841 7.842 現在開いたままの環境名を自動的に検出し、`\end{環境名}'を挿入します。 7.843 -begin 型補完を用いれば環境の閉じ忘れはないのですが、時にはついつい手で 7.844 -`\begin{環境名}' を入れてしまい、悲しい思いをすることがあります。そのよ 7.845 -うな時には気にせず続けて文章を入力し、しかるのちに 7.846 +begin 型補完を用いれば環境の閉じ忘れはないのですが、時にはついつい手で 7.847 +`\begin{環境名}' を入れてしまい、悲しい思いをすることがあります。そのよう 7.848 +な時には気にせず続けて文章を入力し、しかるのちに 7.849 7.850 `[prefix] e' 7.851 ... end 補完 7.852 @@ -867,8 +856,8 @@ 7.853 7.854 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b 7.855 7.856 -というメニューが出て来るので、数字、または対応する記号/英字を入力して下 7.857 -さい。すると編集バッファに、 7.858 +というメニューが出て来るので、数字、または対応する記号/英字を入力して下さ 7.859 +い。すると編集バッファに、 7.860 7.861 \`{} 7.862 7.863 @@ -886,17 +875,17 @@ 7.864 ==================== 7.865 7.866 主に数式モードで使用される、矢印やΣなどの記号を擬似的に表現するキー入力 7.867 -で、LaTeX コマンドを入力できます。これは野鳥自身の「数式モード」でのみ 7.868 -動作します。野鳥はカーソルがTeXの数式環境の中にある時に`;'や、 7.869 -`:'に特殊な機能を持たせます。 7.870 - 7.871 - さて、例えば、←(leftarrow)をASCII文字だけで表現する場合、一般的には 7.872 -「<-」のようにしますが、これを利用して、数式記号イメージ入力モードで 7.873 -`\leftarrow'を入力するには、`;'(セミコロン)を打ってから`<-'と入力します。 7.874 -同様に、長い矢印←-(long-leftarrow) をASCII文字だけで表現する場合「<--」 7.875 -とするので、`\longleftarrow'を入力するためには、`;<--'と入力します。あ 7.876 -るいは無限大記号をASCII文字だけで表現する時は「oo」のようにすることから、 7.877 -`\infty' を入力する時は、`;oo'とキー入力します。 7.878 +で、LaTeX コマンドを入力できます。これは野鳥自身の「数式モード」でのみ動作 7.879 +します。野鳥はカーソルがTeXの数式環境の中にある時に`;'や、`:'に特殊な機能 7.880 +を持たせます。 7.881 + 7.882 + さて、例えば、←(leftarrow)をASCII文字だけで表現する場合、一般的には「<-」 7.883 +のようにしますが、これを利用して、数式記号イメージ入力モードで`\leftarrow' 7.884 +を入力するには、`;'(セミコロン)を打ってから`<-'と入力します。同様に、長い 7.885 +矢印←-(long-leftarrow) をASCII文字だけで表現する場合「<--」とするので、 7.886 +`\longleftarrow'を入力するためには、`;<--' と入力します。あるいは無限大記 7.887 +号をASCII文字だけで表現する時は「oo」のようにすることから、`\infty' を入力 7.888 +する時は、`;oo'とキー入力します。 7.889 7.890 これらの操作をまとめると次のようになります。 7.891 7.892 @@ -909,18 +898,16 @@ 7.893 7.894 7.895 7.896 - いずれの場合も、イメージ入力を行っている途中で望みのものがバッファに 7.897 -表示されたなら、そこでイメージ入力を止めて次の編集動作に移っても構いま 7.898 -せん。 7.899 - 7.900 - 数式環境中で`;'自身を入力するには`;;'のようにします。イメージ入力の途 7.901 -中でTABを押すと、それまで入力した文字で始まるもの一覧が表示されます。こ 7.902 -こで目的の LaTeX コマンドまでカーソルを移動し再度TABを押すことでその 7.903 -LaTeX コマンドがバッファに挿入されます。 7.904 - 7.905 - どのキー入力にどの記号が対応しているか全て知りたい時は、`;'を押した直 7.906 -後にTABを押してください。以下の例は、`;<'と押した後にTABを押したもので 7.907 -す。 7.908 + いずれの場合も、イメージ入力を行っている途中で望みのものがバッファに表示 7.909 +されたなら、そこでイメージ入力を止めて次の編集動作に移っても構いません。 7.910 + 7.911 + 数式環境中で`;'自身を入力するには`;;'のようにします。イメージ入力の途中 7.912 +でTABを押すと、それまで入力した文字で始まるもの一覧が表示されます。ここで 7.913 +目的の LaTeX コマンドまでカーソルを移動し再度TABを押すことでその LaTeX コ 7.914 +マンドがバッファに挿入されます。 7.915 + 7.916 + どのキー入力にどの記号が対応しているか全て知りたい時は、`;'を押した直後 7.917 +にTABを押してください。以下の例は、`;<'と押した後にTABを押したものです。 7.918 7.919 KEY LaTeX sequence sign 7.920 < \leq ≦ 7.921 @@ -928,18 +915,17 @@ 7.922 <- \leftarrow ← 7.923 <= \Leftarrow <= 7.924 7.925 -左から[入力キー]、[対応する LaTeX コマンド]、[(擬似)記号図示]、という順 7.926 -でメニューが出て来るので、よく使うものを覚えておくと良いでしょう。もの 7.927 -によってはASCII文字で表現することが困難なので、あまり覚えやすいキー並び 7.928 -ではないものがあるでしょうから、そのような場合は\maketitle 型補完で入力 7.929 -するか、以下に述べる対応表の設定を行って単純なキー並びのものを設定する 7.930 -と良いでしょう。 7.931 - 7.932 - 入力キーと LaTeX コマンド、記号の対応表を個人的に設定したい場合は 7.933 -Emacs-Lisp 変数 `YaTeX-math-sign-alist-private' に定義してください。そ 7.934 -の内容とデフォルトのものを合わせたものが対応表として使用されます 7.935 -(privateの方が優先される)。なお、この変数の構造については 7.936 -`yatexmth.el' を参照してください。 7.937 +左から[入力キー]、[対応する LaTeX コマンド]、[(擬似)記号図示]、という順で 7.938 +メニューが出て来るので、よく使うものを覚えておくと良いでしょう。ものによっ 7.939 +てはASCII文字で表現することが困難なので、あまり覚えやすいキー並びではない 7.940 +ものがあるでしょうから、そのような場合は \maketitle 型補完で入力するか、以 7.941 +下に述べる対応表の設定を行って単純なキー並びのものを設定すると良いでしょう。 7.942 + 7.943 + 入力キーと LaTeX コマンド、記号の対応表を個人的に設定したい場合は 7.944 +Emacs-Lisp 変数 `YaTeX-math-sign-alist-private' に定義してください。その内 7.945 +容とデフォルトのものを合わせたものが対応表として使用されます(private の方 7.946 +が優先される)。なお、この変数の構造については `yatexmth.el' を参照してくだ 7.947 +さい。 7.948 7.949 7.950 7.951 @@ -948,16 +934,16 @@ 7.952 ギリシャ文字補完 7.953 ================ 7.954 7.955 - もう一つ、数式環境中で`:'を押すとギリシャ文字入力モードに入ります。 7.956 -`:'を押した直後に`a'を押すと`\alpha'が、`g' を押すと `\gamma'が、などア 7.957 -ルファベットに対応したギリシャ文字が挿入されます。操作方法は;の数式記号 7.958 -補完とまったく同じです。まずは`:'の直後にTABを押してどのアルファベット 7.959 -にどのギリシャ文字が対応しているか調べてみてください。 7.960 - 7.961 - `;'と`:'を数式環境中で押しているにもかかわらず、イメージ補完が働かな 7.962 -い場合は、`C-u ;'のように universal-argument をつけてキーを押すことによ 7.963 -り、強制的にイメージ補完に入ることができます。また、この時にどのような 7.964 -状態で数式環境内判定に失敗したかをご連絡下さい。 7.965 + もう一つ、数式環境中で`:'を押すとギリシャ文字入力モードに入ります。`:'を 7.966 +押した直後に`a'を押すと`\alpha'が、`g' を押すと `\gamma'が、などアルファベッ 7.967 +トに対応したギリシャ文字が挿入されます。操作方法は;の数式記号補完とまった 7.968 +く同じです。まずは`:'の直後にTABを押してどのアルファベットにどのギリシャ文 7.969 +字が対応しているか調べてみてください。 7.970 + 7.971 + `;'と`:'を数式環境中で押しているにもかかわらず、イメージ補完が働かない場 7.972 +合は、`C-u ;'のように universal-argument をつけてキーを押すことにより、強 7.973 +制的にイメージ補完に入ることができます。また、この時にどのような状態で数式 7.974 +環境内判定に失敗したかをご連絡下さい。 7.975 7.976 7.977 7.978 @@ -966,23 +952,23 @@ 7.979 ローカル辞書 7.980 ************ 7.981 7.982 - 補完入力用の候補は三種類の辞書から構成されています。一つは`yatex.el' 7.983 -に組み込まれた「標準辞書」、もう一つはユーザが個人的に常用するコマンド 7.984 -を保存する「ユーザ辞書」、そしてもうひとつはあるディレクトリでのみ有効 7.985 -なコマンドを保存する「ローカル辞書」です。 7.986 - 7.987 - 補完入力時に新しい単語を入れた場合に、その単語をどの辞書に入れるか聞 7.988 -いて来ます。 7.989 + 補完入力用の候補は三種類の辞書から構成されています。一つは`yatex.el'に組 7.990 +み込まれた「標準辞書」、もう一つはユーザが個人的に常用するコマンドを保存す 7.991 +る「ユーザ辞書」、そしてもうひとつはあるディレクトリでのみ有効なコマンドを 7.992 +保存する「ローカル辞書」です。 7.993 + 7.994 + 補完入力時に新しい単語を入れた場合に、その単語をどの辞書に入れるか聞いて 7.995 +来ます。 7.996 7.997 `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard 7.998 7.999 -というプロンプトに対し、`u'と答えると「ユーザ辞書」を、`l'と答えるとロー 7.1000 -カル辞書を更新し、`n'と答えると辞書ファイルは更新せず現在のEmacsセッショ 7.1001 -ンのみ有効な単語とし、`d'と答えると新たな単語を学習せずに捨てることにな 7.1002 -ります。 7.1003 - 7.1004 - もし、ローカル辞書の機能はいらず、全てユーザ辞書の更新のみでよいと言 7.1005 -う場合には`~/.emacs'などで、 7.1006 +というプロンプトに対し、`u'と答えると「ユーザ辞書」を、`l'と答えるとローカ 7.1007 +ル辞書を更新し、`n'と答えると辞書ファイルは更新せず現在のEmacs セッション 7.1008 +のみ有効な単語とし、`d'と答えると新たな単語を学習せずに捨てることになりま 7.1009 +す。 7.1010 + 7.1011 + もし、ローカル辞書の機能はいらず、全てユーザ辞書の更新のみでよいと言う場 7.1012 +合には`~/.emacs'などで、 7.1013 7.1014 (setq YaTeX-nervous nil) 7.1015 7.1016 @@ -996,8 +982,8 @@ 7.1017 ************** 7.1018 7.1019 7.1020 - LaTeXの編集には試行錯誤がつきものです。ある部分を一括でコメントアウト 7.1021 -したり、コメントを外したりしたいことがあります。 7.1022 + LaTeXの編集には試行錯誤がつきものです。ある部分を一括でコメントアウトし 7.1023 +たり、コメントを外したりしたいことがあります。 7.1024 7.1025 `[prefix] >' 7.1026 ... リジョンを % でコメントアウト 7.1027 @@ -1011,15 +997,15 @@ 7.1028 `[prefix] ,' 7.1029 ... 現在のパラグラフのコメントを外す 7.1030 7.1031 -は、カーソルの位置するパラグラフ全体に対しての操作です。なお、ここでい 7.1032 -う「パラグラフ」は (`mark-paragraph') 関数によりマークされる範囲を指し 7.1033 -ます(標準設定で`ESC h'にバインドされている)。なお、既に`%'でコメントア 7.1034 -ウトされているパラグラフに対して繰り返しパラグラフのコメントを使用した 7.1035 -場合の動作は保証しませんので御注意ください。 7.1036 - 7.1037 - さて、文章に対してだけでなく、時には`\begin', `\end' 自体に対 7.1038 -してもコメントアウトの操作をしたいときがあります。このようなときは、 7.1039 -`\begin{}' あるいは `\end{}' の行にカーソルを合わせ、 7.1040 +は、カーソルの位置するパラグラフ全体に対しての操作です。なお、ここでいう 7.1041 +「パラグラフ」は (`mark-paragraph') 関数によりマークされる範囲を指します 7.1042 +(標準設定で`ESC h'にバインドされている)。なお、既に`%'でコメントアウトされ 7.1043 +ているパラグラフに対して繰り返しパラグラフのコメントを使用した場合の動作は 7.1044 +保証しませんので御注意ください。 7.1045 + 7.1046 + さて、文章に対してだけでなく、時には`\begin', `\end' 自体に対してもコメ 7.1047 +ントアウトの操作をしたいときがあります。このようなときは、`\begin{}' ある 7.1048 +いは `\end{}' の行にカーソルを合わせ、 7.1049 7.1050 `[prefix] >' 7.1051 ... `\begin{}'〜`\end{}' 全てコメントアウト 7.1052 @@ -1033,11 +1019,10 @@ 7.1053 `[prefix] ,' 7.1054 ... `\begin{}' と `\end{}' のコメントを外す 7.1055 7.1056 -は、対応する `\begin' と `\end' 2行だけを、コメント操作の対象とします。 7.1057 -リジョンをコメントアウトしようとして、マークを設定したのちにカーソルを 7.1058 -移動し`[preifx] >' を押してもカーソルが `\begin{}' の上にあると 7.1059 -`\begin{}'〜`\end{}'モードでコメント機能が働いてしまうので注意して下さ 7.1060 -い。 7.1061 +は、対応する `\begin' と `\end' 2行だけを、コメント操作の対象とします。リ 7.1062 +ジョンをコメントアウトしようとして、マークを設定したのちにカーソルを移動し 7.1063 +`[preifx] >' を押してもカーソルが `\begin{}' の上にあると`\begin{}'〜 7.1064 +`\end{}'モードでコメント機能が働いてしまうので注意して下さい。 7.1065 7.1066 7.1067 7.1068 @@ -1049,11 +1034,11 @@ 7.1069 7.1070 * Menu: 7.1071 7.1072 -* 対応オブジェクトへのジャンプ:: 7.1073 -* お絵描きツール起動:: 7.1074 -* メインファイルへのジャンプ:: 7.1075 -* 環境を単位としたジャンプ:: 7.1076 -* 最後の補完位置へのジャンプ:: 7.1077 +* 対応オブジェクトへのジャンプ:: 7.1078 +* お絵描きツール起動:: 7.1079 +* メインファイルへのジャンプ:: 7.1080 +* 環境を単位としたジャンプ:: 7.1081 +* 最後の補完位置へのジャンプ:: 7.1082 7.1083 7.1084 7.1085 @@ -1067,8 +1052,8 @@ 7.1086 `[prefix] g' 7.1087 ... 対応するオブジェクトにジャンプ 7.1088 7.1089 -を押すことにより、カーソル位置のLaTeXコマンドに対応する場所にジャンプし 7.1090 -ます。対応関係が存在すると解釈されるコマンドには以下のものがあります。 7.1091 +を押すことにより、カーソル位置のLaTeXコマンドに対応する場所にジャンプしま 7.1092 +す。対応関係が存在すると解釈されるコマンドには以下のものがあります。 7.1093 7.1094 * `\begin{}' ←→ `\end{}' 7.1095 * `%#BEGIN' ←→ `%#END' 7.1096 @@ -1077,23 +1062,22 @@ 7.1097 * `\include(\input)' → 対応するファイル 7.1098 * `\bibitem{}' ←→ `\cite{}' 7.1099 7.1100 - `\begin{}' か `\end{}' の行で`[prefix] g'を押すことに 7.1101 -より、対応する`end/begin'の行にジャンプします。もちろん対応するものが 7.1102 -ない場合はエラーになります。またこれは、領域固定のための `%#BEGIN' と 7.1103 -`%#END' のペアに対しても同様に動作します。なお、`label/ref'や 7.1104 -`cite/bibitem'対応するものが別ファイルにある時は、ジャンプ先となるファ 7.1105 -イルがオープンされていなければなりません。*Note %#notation::. 7.1106 -メインの .tex ファイルの `\include{chap1}' などにカーソルを合わせ、 7.1107 -`[prefix] g' を押すと、`chap1.tex' にジャンプします。 7.1108 + `\begin{}' か `\end{}' の行で`[prefix] g'を押すことにより、対応する 7.1109 +`end/begin'の行にジャンプします。もちろん対応するものがない場合はエラーに 7.1110 +なります。またこれは、領域固定のための `%#BEGIN' と `%#END' のペアに対して 7.1111 +も同様に動作します。なお、`label/ref'や`cite/bibitem'対応するものが別ファ 7.1112 +イルにある時は、ジャンプ先となるファイルがオープンされていなければなりませ 7.1113 +ん。*Note %#notation::. メインの .tex ファイルの `\include{chap1}' などに 7.1114 +カーソルを合わせ、`[prefix] g' を押すと、`chap1.tex' にジャンプします。 7.1115 7.1116 また、 7.1117 7.1118 `[prefix] 4 g' 7.1119 ... 別ウィンドウで対応オブジェクトにジャンプ 7.1120 7.1121 -を押すと、対応するオブジェクトへのジャンプを別ウィンドウで行います。た 7.1122 -だし、この機能は `begin/end', `%#BEGIN/%#END' 間のジャンプに対しては(意 7.1123 -味がないと思われるので)機能しないので注意してください。 7.1124 +を押すと、対応するオブジェクトへのジャンプを別ウィンドウで行います。ただし、 7.1125 +この機能は `begin/end', `%#BEGIN/%#END' 間のジャンプに対しては(意味がない 7.1126 +と思われるので)機能しないので注意してください。 7.1127 7.1128 7.1129 7.1130 @@ -1102,29 +1086,28 @@ 7.1131 お絵描きツール起動 7.1132 ================== 7.1133 7.1134 -上記の「画像ファイルの取り込みマクロ」とは、例えば 7.1135 -`\epsfile{file=foo}' のような挿絵取り込みコマンドのことで、この行にカー 7.1136 -ソルを合わせて`[prefix] g'を押すとその画像ファイルの元となったファイル 7.1137 -を対応するお絵描きツールを起動してオープンします。起動するツールの判定 7.1138 -は以下のようになされます。 7.1139 - 7.1140 - 1. カレント行が変数 `YaTeX-processed-file-regexp-alist' に定義されて 7.1141 - いる正規表現のいずれかとマッチしたら、ファイル名に相当する部分を 7.1142 - (\\)から抜き出して覚えておく(何番目の\\(\\)かは変数の各リストの 7.1143 - cdr 部に入れておく)。マッチしなければ何もしない。 7.1144 - 2. 行末に、変数 `YaTeX-file-processor-alist' に登録されているコマンド 7.1145 - が「%コマンド」 のように書いてあれば強制的に「コマンド ファイル 7.1146 - 名.拡張子」を起動。 7.1147 - 3. なければ、変数 `YaTeX-file-processor-alist' の各リストのcdr部に入っ 7.1148 - ている拡張子を「ファイル名」の後ろに足したファイルが存在するか順次 7.1149 - 調べて、存在した場合car部に入っているコマンドを起動する。 7.1150 +上記の「画像ファイルの取り込みマクロ」とは、例えば `\epsfile{file=foo}' の 7.1151 +ような挿絵取り込みコマンドのことで、この行にカーソルを合わせて`[prefix] g' 7.1152 +を押すとその画像ファイルの元となったファイルを対応するお絵描きツールを起動 7.1153 +してオープンします。起動するツールの判定は以下のようになされます。 7.1154 + 7.1155 + 1. カレント行が変数 `YaTeX-processed-file-regexp-alist' に定義されている 7.1156 + 正規表現のいずれかとマッチしたら、ファイル名に相当する部分を \\(\\)か 7.1157 + ら抜き出して覚えておく(何番目の\\(\\)かは変数の各リストの cdr 部に入 7.1158 + れておく)。マッチしなければ何もしない。 7.1159 + 2. 行末に、変数 `YaTeX-file-processor-alist' に登録されているコマンドが 7.1160 + 「%コマンド」 のように書いてあれば強制的に「コマンド ファイル名.拡張 7.1161 + 子」を起動。 7.1162 + 3. なければ、変数 `YaTeX-file-processor-alist' の各リストのcdr部に入って 7.1163 + いる拡張子を「ファイル名」の後ろに足したファイルが存在するか順次調べ 7.1164 + て、存在した場合car部に入っているコマンドを起動する。 7.1165 4. 以上どれかにマッチしなければあきらめる。 7.1166 7.1167 7.1168 -変数 `YaTeX-file-processor-alist' と変数 `YaTeX-file-processor-alist' 7.1169 -の設定方法についてはそれぞれの変数について describe-variable して説明を 7.1170 -読んで下さい。うまく設定すると、画像ファイルにかぎらず、任意の形式のファ 7.1171 -イルを任意のプロセッサで処理するコマンドを簡単に呼び出すことができます。 7.1172 +変数 `YaTeX-file-processor-alist' と変数 `YaTeX-file-processor-alist' の設 7.1173 +定方法についてはそれぞれの変数について describe-variable して説明を読んで 7.1174 +下さい。うまく設定すると、画像ファイルにかぎらず、任意の形式のファイルを任 7.1175 +意のプロセッサで処理するコマンドを簡単に呼び出すことができます。 7.1176 7.1177 7.1178 7.1179 @@ -1140,9 +1123,9 @@ 7.1180 `[prefix] 4 ^' 7.1181 ... 別ウィンドウでメインファイルにジャンプ 7.1182 7.1183 -を押すと、メインファイルの編集バッファに切替えます。もし、メインファイ 7.1184 -ルをオープンしていない場合は、カレントディレクトリから探して自動的にオー 7.1185 -プンします。 7.1186 +を押すと、メインファイルの編集バッファに切替えます。もし、メインファイルを 7.1187 +オープンしていない場合は、カレントディレクトリから探して自動的にオープンし 7.1188 +ます。 7.1189 7.1190 7.1191 7.1192 @@ -1160,8 +1143,8 @@ 7.1193 `M-C-@' 7.1194 ... 環境全体をマーク 7.1195 7.1196 -上記のコマンドは通常の`[prefix]'キーではなく`META'キーをプリフィクスと 7.1197 -して機能するのでご注意下さい。 7.1198 +上記のコマンドは通常の`[prefix]'キーではなく`META'キーをプリフィクスとして 7.1199 +機能するのでご注意下さい。 7.1200 7.1201 7.1202 7.1203 @@ -1170,10 +1153,9 @@ 7.1204 最後の補完位置へのジャンプ 7.1205 ========================== 7.1206 7.1207 -野鳥は補完入力した位置を常にレジスタ `3'に保存しています。入力途中で如 7.1208 -何なるファイルの如何なる位置に行ったとしても、`C-x j 7.1209 -3'(`jump-to-register')を使って直ちに最後の補完入力位置に戻ることができ 7.1210 -ます。 7.1211 +野鳥は補完入力した位置を常にレジスタ `3'に保存しています。入力途中で如何な 7.1212 +るファイルの如何なる位置に行ったとしても、`C-x j 3'(`jump-to-register')を 7.1213 +使って直ちに最後の補完入力位置に戻ることができます。 7.1214 7.1215 7.1216 7.1217 @@ -1182,8 +1164,8 @@ 7.1218 変更/削除 7.1219 ********* 7.1220 7.1221 - 既に入力されている LaTeX コマンドの変更/削除のために以下の機能が用意 7.1222 -されています。 7.1223 + 既に入力されている LaTeX コマンドの変更/削除のために以下の機能が用意され 7.1224 +ています。 7.1225 7.1226 `[prefix] c' 7.1227 ... カーソル位置の LaTeX コマンドの変更 7.1228 @@ -1191,8 +1173,8 @@ 7.1229 ... カーソル位置の LaTeX コマンドの削除 7.1230 7.1231 7.1232 -これらのコマンドは、コマンドを起動する場所によって動作を決定するので注 7.1233 -意して下さい。 7.1234 +これらのコマンドは、コマンドを起動する場所によって動作を決定するので注意し 7.1235 +て下さい。 7.1236 7.1237 * Menu: 7.1238 7.1239 @@ -1206,9 +1188,9 @@ 7.1240 LaTeX コマンドの変更 7.1241 ==================== 7.1242 7.1243 -変更したい LaTeX コマンドにカーソルを合わせて `[prefix] c' 7.1244 -を押すとそのコマンドを補完入力などを用いて手軽に変えることができます。 7.1245 -`[prefix] c' で変更できるコマンドには以下のものがあります。 7.1246 +変更したい LaTeX コマンドにカーソルを合わせて `[prefix] c' を押すとそのコ 7.1247 +マンドを補完入力などを用いて手軽に変えることができます。`[prefix] c' で変 7.1248 +更できるコマンドには以下のものがあります。 7.1249 7.1250 * `begin/end' の環境名 7.1251 * section型コマンドのコマンド名 7.1252 @@ -1217,9 +1199,9 @@ 7.1253 * large型コマンド 7.1254 * (イメージ補完で入力可能な)数式モード専用のmaketitle型コマンド 7.1255 7.1256 - 変えたいsection型コマンドの引数がさらに LaTeX コマンドを含む場合は、 7.1257 -その引数を囲む中括弧の上で `[prefix] c' を押すことで中のコマンドを変更 7.1258 -対象判定から除外することができます。 7.1259 + 変えたいsection型コマンドの引数がさらに LaTeX コマンドを含む場合は、その 7.1260 +引数を囲む中括弧の上で `[prefix] c' を押すことで中のコマンドを変更対象判定 7.1261 +から除外することができます。 7.1262 7.1263 7.1264 7.1265 @@ -1240,13 +1222,12 @@ 7.1266 括弧の上 対をなす括弧の削除 7.1267 7.1268 7.1269 -`\begin, \end' および `%#BEGIN, %#END' を削除する場合、`\begin, \end' 7.1270 -や `%#BEGIN, %#END' の存在する行はまるごと削除されるので、それらの一行 7.1271 -に `\begin' などを二つ以上連ねて書かないように注意してください。上記の 7.1272 -ものはすべて本文を囲う「容器」を削除するように働きますが、 7.1273 -universal-argument (`C-u') を打った後で`[prefix] k'をタイプすると、それ 7.1274 -ぞれの「容器」に含まれる「中身」も一気に削除します。以下の例を参考にし 7.1275 -て下さい。 7.1276 +`\begin, \end' および `%#BEGIN, %#END' を削除する場合、`\begin, \end' や 7.1277 +`%#BEGIN, %#END' の存在する行はまるごと削除されるので、それらの一行に 7.1278 +`\begin' などを二つ以上連ねて書かないように注意してください。上記のものは 7.1279 +すべて本文を囲う「容器」を削除するように働きますが、universal-argument 7.1280 +(`C-u') を打った後で`[prefix] k'をタイプすると、それぞれの「容器」に含まれ 7.1281 +る「中身」も一気に削除します。以下の例を参考にして下さい。 7.1282 7.1283 元のテキスト: [prefix] k C-u [prefix] k 7.1284 本文\footnote{脚注}です。 本文脚注です。 本文です。 7.1285 @@ -1263,21 +1244,21 @@ 7.1286 itemの桁揃え 7.1287 ============ 7.1288 7.1289 - itemize 環境中にある`\item'の項目(文章)が複数行に渡る場合に、項目の先 7.1290 -頭を桁揃えしたい場合には、 7.1291 + itemize 環境中にある`\item'の項目(文章)が複数行に渡る場合に、項目の先頭 7.1292 +を桁揃えしたい場合には、 7.1293 7.1294 7.1295 `M-q' 7.1296 ... 桁揃え 7.1297 7.1298 -によって、その item のインデントの深さに応じて fill されます。なお、古 7.1299 -いNTT jTeX を使用している場合には、Lisp 変数`NTT-jTeX'を`t'にセットして 7.1300 -下さい。 7.1301 - 7.1302 - このとき、変数`YaTeX-item-regexp'の値(標準では `"\\\\item"')を 7.1303 -項目指定コマンドの正規表現として検索に使用します。itemize 環境で、独自のコ 7.1304 -マンドを定義して項目を列挙している場合(例えば`\underlineitem')は、 7.1305 -`~/.emacs' で次のように指定して下さい。 7.1306 +によって、その item のインデントの深さに応じて fill されます。なお、古い 7.1307 +NTT jTeX を使用している場合には、Lisp 変数`NTT-jTeX'を`t'にセットして下さ 7.1308 +い。 7.1309 + 7.1310 + このとき、変数`YaTeX-item-regexp'の値(標準では `"\\\\item"')を項目指定コ 7.1311 +マンドの正規表現として検索に使用します。itemize 環境で、独自のコマンドを定 7.1312 +義して項目を列挙している場合(例えば`\underlineitem')は、`~/.emacs' で次の 7.1313 +ように指定して下さい。 7.1314 7.1315 (setq YaTeX-item-regexp 7.1316 "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)") 7.1317 @@ -1286,8 +1267,8 @@ 7.1318 この変数の指定の仕方がよく分からない場合は、独自の項目列挙コマンドの名前を 7.1319 ``"\item"'で始まるものにして下さい(例えば"\itembf"')。 7.1320 7.1321 -野鳥の `M-q' では `\item' を環境に応じて以下のように「ハングインデント」 7.1322 -します。 7.1323 +野鳥の `M-q' では `\item' を環境に応じて以下のように「ハングインデント」し 7.1324 +ます。 7.1325 7.1326 itemize, enumerate環境: 7.1327 >\item[ほげほげ] 英語では、特に意味のない単語を `foo' であらわしま 7.1328 @@ -1302,13 +1283,12 @@ 7.1329 パラグラフの桁揃え 7.1330 ================== 7.1331 7.1332 - itemize環境以外でのパラグラフの桁揃え(fill)は、基本的に他のモードと同 7.1333 -じように機能しますが、verbatim環境や、tabular環境など桁揃えをすると悲惨 7.1334 -な状況になるような環境中では機能しません。また、\verb で括ってあるもの 7.1335 -は決して行分割されません(変数 `YaTeX-verb-regexp' で制御) )。さらに、一 7.1336 -時的にインデントの深さを変えてある箇所では、そのインデントの先頭で 7.1337 -`M-q'を押すことにより fill-prefix をいちいち変更しなくて桁揃えができま 7.1338 -す。 7.1339 + itemize環境以外でのパラグラフの桁揃え(fill)は、基本的に他のモードと同じ 7.1340 +ように機能しますが、verbatim環境や、tabular環境など桁揃えをすると悲惨な状 7.1341 +況になるような環境中では機能しません。また、\verb で括ってあるものは決して 7.1342 +行分割されません(変数 `YaTeX-verb-regexp' で制御) )。さらに、一時的にイン 7.1343 +デントの深さを変えてある箇所では、そのインデントの先頭で`M-q'を押すことに 7.1344 +より fill-prefix をいちいち変更しなくて桁揃えができます。 7.1345 7.1346 7.1347 7.1348 @@ -1322,23 +1302,22 @@ 7.1349 7.1350 \includeonly{現在編集中のファイル名} 7.1351 7.1352 -のように書いておくことで、タイプセットの時間を節約できますが、ちょっと 7.1353 -他のファイルを手直ししたい時には 7.1354 +のように書いておくことで、タイプセットの時間を節約できますが、ちょっと他の 7.1355 +ファイルを手直ししたい時には 7.1356 7.1357 \includeonly{ちょっと手直ししたいファイル名} 7.1358 7.1359 7.1360 -と書き直さなければならず手間がかかります。野鳥では現在編集しているファ 7.1361 -イル名がメインファイルの`\includeonly'にない場合には自動的にこれを検出 7.1362 -し、次の指示を仰ぎます。 7.1363 +と書き直さなければならず手間がかかります。野鳥では現在編集しているファイル 7.1364 +名がメインファイルの`\includeonly'にない場合には自動的にこれを検出し、次の 7.1365 +指示を仰ぎます。 7.1366 7.1367 A)dd R)eplace %)comment? 7.1368 7.1369 7.1370 -現在編集中のファイルを `\includeonly' のリストに加えたい時には`a'を、現 7.1371 -在編集中のファイルだけを `\includeonly' にしたい時は`r'を、 7.1372 -`\includeonly' の行をコメントアウトして無効化したい時には、`%'をそれぞ 7.1373 -れ押して下さい。 7.1374 +現在編集中のファイルを `\includeonly' のリストに加えたい時には`a' を、現在 7.1375 +編集中のファイルだけを `\includeonly' にしたい時は`r'を、`\includeonly' の 7.1376 +行をコメントアウトして無効化したい時には、`%'をそれぞれ押して下さい。 7.1377 7.1378 7.1379 7.1380 @@ -1347,9 +1326,9 @@ 7.1381 ここはどこ? 7.1382 *********** 7.1383 7.1384 - 項目数の多い tabular などをたくさん書いていると下の方の行で、いま書い 7.1385 -ている桁がどこに対応するのかわからなくなってしまうことがあります。例え 7.1386 -ば、以下のような tabular において、 7.1387 + 項目数の多い tabular などをたくさん書いていると下の方の行で、いま書いて 7.1388 +いる桁がどこに対応するのかわからなくなってしまうことがあります。例えば、以 7.1389 +下のような tabular において、 7.1390 7.1391 \begin{tabular}{|c|c|c|c|c|c|c|c|}\hline 7.1392 氏名&所属&〒&住所&電話&FAX&帰省先&帰省先電話\\ \hline 7.1393 @@ -1366,10 +1345,10 @@ 7.1394 `[prefix] &' 7.1395 ... 現在のカラム表示 7.1396 7.1397 -を押すとカーソル位置のカラムがどの項目に該当するかをミニバッファに表示 7.1398 -します。tabular/array環境の第1行目を項目名の並びとみなして対応するもの 7.1399 -を探します。もし項目名として別のものを表示して欲しい場合は、行頭を`%'に 7.1400 -してダミーの項目並びを作っておくと良いでしょう。 7.1401 +を押すとカーソル位置のカラムがどの項目に該当するかをミニバッファに表示しま 7.1402 +す。tabular/array環境の第1行目を項目名の並びとみなして対応するものを探しま 7.1403 +す。もし項目名として別のものを表示して欲しい場合は、行頭を`%'にしてダミー 7.1404 +の項目並びを作っておくと良いでしょう。 7.1405 7.1406 7.1407 7.1408 @@ -1378,18 +1357,18 @@ 7.1409 おまかせ改行 7.1410 ************ 7.1411 7.1412 - tabular[*], array, itemize, enumerate, tabbing 環境をbegin型補完で入 7.1413 -力した時、または各環境内で 7.1414 + tabular[*], array, itemize, enumerate, tabbing 環境をbegin型補完で入力し 7.1415 +た時、または各環境内で 7.1416 7.1417 `ESC RET' 7.1418 ... おまかせ改行 7.1419 7.1420 7.1421 -を押すと、その環境に応じた行エントリを次の行に挿入します(begin型補完時 7.1422 -に自動挿入されたエントリが不要な場合は undo によって消去できます)。例え 7.1423 -ば、tabular環境では、その環境のカラム数に対応した個数の `&' に加え、行 7.1424 -末の `\\' を入れます。この時それ以前に `\hline' があればそれも付け加え 7.1425 -ます。環境とそれに応じて自動入力するものの対応は以下のようになります。 7.1426 +を押すと、その環境に応じた行エントリを次の行に挿入します(begin型補完時に自 7.1427 +動挿入されたエントリが不要な場合は undo によって消去できます)。例えば、 7.1428 +tabular環境では、その環境のカラム数に対応した個数の `&' に加え、行末の 7.1429 +`\\' を入れます。この時それ以前に `\hline' があればそれも付け加えます。環 7.1430 +境とそれに応じて自動入力するものの対応は以下のようになります。 7.1431 7.1432 * `tabular', `tabular*', `array' 7.1433 7.1434 @@ -1403,16 +1382,16 @@ 7.1435 7.1436 `\item' または `item[]' 7.1437 7.1438 - tabular 環境の例のように、本機能は各環境の一行目の内容を参考にして動 7.1439 -作するので、なるべく二行目以降で呼び出すようにしてください。 7.1440 - 7.1441 - もし、その他の環境、例えば `foo'、に対して`おまかせ改行'を動作 7.1442 -させたい時は、`YaTeX-intelligent-newline-foo' という名前の関数を定義 7.1443 -します。定義した関数は、現在の行に改行を挿入した直後の行頭の位置で呼ばれま 7.1444 -す。関数 `YaTeX-indent-line' を呼ぶと現在の環境のネストに応じた深さに 7.1445 -インデントされるので、これを呼んでから何かを挿入するようなコードを書くとよ 7.1446 -いでしょう。`yatexenv.el'内の関数 7.1447 -`YaTeX-intelligent-newline-itemize' の定義などを参考にしてください。 7.1448 + tabular 環境の例のように、本機能は各環境の一行目の内容を参考にして動作す 7.1449 +るので、なるべく二行目以降で呼び出すようにしてください。 7.1450 + 7.1451 + もし、その他の環境、例えば `foo'、に対して`おまかせ改行'を動作させたい時 7.1452 +は、`YaTeX-intelligent-newline-foo' という名前の関数を定義します。定義した 7.1453 +関数は、現在の行に改行を挿入した直後の行頭の位置で呼ばれます。関数 7.1454 +`YaTeX-indent-line' を呼ぶと現在の環境のネストに応じた深さにインデントされ 7.1455 +るので、これを呼んでから何かを挿入するようなコードを書くとよいでしょう。 7.1456 +`yatexenv.el'内の関数 `YaTeX-intelligent-newline-itemize' の定義などを参考 7.1457 +にしてください。 7.1458 7.1459 7.1460 7.1461 @@ -1422,15 +1401,14 @@ 7.1462 先回りusepackage 7.1463 **************** 7.1464 7.1465 - begin型、section型、maketitle型、いずれかのLaTeX2eマクロを補完入力す 7.1466 -ると、そのマクロの利用に外部パッケージを必要とする場合、そのパッケージ 7.1467 -を本文中で `\usepackage{}' しているかどうかを調査し、もししていなければ 7.1468 -プリアンブルに対応するパッケージを引数にした `\usepackage' 文を(確認後 7.1469 -に)挿入します。 7.1470 - 7.1471 - ただしこの機能が働くためには、パッケージ名とその中で定義されているマ 7.1472 -クロ群をalistの形式で変数 `YaTeX-package-alist-private' に設定しておく 7.1473 -必要があります。 7.1474 + begin型、section型、maketitle型、いずれかのLaTeX2eマクロを補完入力すると、 7.1475 +そのマクロの利用に外部パッケージを必要とする場合、そのパッケージを本文中で 7.1476 +`\usepackage{}' しているかどうかを調査し、もししていなければプリアンブルに 7.1477 +対応するパッケージを引数にした `\usepackage' 文を(確認後に)挿入します。 7.1478 + 7.1479 + ただしこの機能が働くためには、パッケージ名とその中で定義されているマクロ 7.1480 +群をalistの形式で変数 `YaTeX-package-alist-private' に設定しておく必要があ 7.1481 +ります。 7.1482 7.1483 7.1484 7.1485 @@ -1447,15 +1425,15 @@ 7.1486 * 修正モード 7.1487 * 野鳥数式モード 7.1488 7.1489 -修正モードは、開き括弧入力時の処理をコントロールし、修正モードONの時は 7.1490 -開き括弧の入力は開き括弧のみの入力になり、修正モードOFFの時は開き括弧の 7.1491 -入力だけで閉じ括弧まで入力します。デフォルト(起動時)の設定は*OFF*です。 7.1492 - 7.1493 - 野鳥数式モードは、変数 `YaTeX-auto-math-mode' が `nil' の時の 7.1494 -み有効で、このとき`;'や`:'を押した時(*Note Image completion::参照)に、 7.1495 -どのようなイメージ補完を機能させるか、通常のキーとして機能させるかを手動で 7.1496 -切り替えます。自動判定が遅いマシンでは`YaTeX-auto-math-mode' 7.1497 -`nil'にセットし、野鳥数式モードを手動で切り替えると良いでしょう。 7.1498 +修正モードは、開き括弧入力時の処理をコントロールし、修正モードONの時は開き 7.1499 +括弧の入力は開き括弧のみの入力になり、修正モードOFFの時は開き括弧の入力だ 7.1500 +けで閉じ括弧まで入力します。デフォルト(起動時)の設定は*OFF*です。 7.1501 + 7.1502 + 野鳥数式モードは、変数 `YaTeX-auto-math-mode' が `nil' の時のみ有効で、 7.1503 +このとき`;'や`:'を押した時(*Note Image completion::参照)に、どのようなイメー 7.1504 +ジ補完を機能させるか、通常のキーとして機能させるかを手動で切り替えます。自 7.1505 +動判定が遅いマシンでは`YaTeX-auto-math-mode' `nil'にセットし、野鳥数式モー 7.1506 +ドを手動で切り替えると良いでしょう。 7.1507 7.1508 7.1509 7.1510 @@ -1465,8 +1443,8 @@ 7.1511 オンラインヘルプ 7.1512 **************** 7.1513 7.1514 - 使おうとする LaTeX コマンドの用法がよく分からない時は、オンラインヘル 7.1515 -プをひきましょう。ヘルプに関するキーには以下のものがあります。 7.1516 + 使おうとする LaTeX コマンドの用法がよく分からない時は、オンラインヘルプ 7.1517 +をひきましょう。ヘルプに関するキーには以下のものがあります。 7.1518 7.1519 `[prefix] ?' 7.1520 ... オンラインヘルプ 7.1521 @@ -1477,29 +1455,28 @@ 7.1522 オンラインヘルプ 7.1523 ================ 7.1524 7.1525 - 「オンラインヘルプ」は、一般的な LaTeX コマンド(デフォルトでカーソル 7.1526 -位置のコマンド)に対する説明を隣のバッファに表示します。この時参照される 7.1527 -ヘルプ用ファイルには「グローバルヘルプ」と「プライベートヘルプ」の二種 7.1528 -類があり、前者は LaTeX の標準コマンドの主なものの説明を含むファイルで、 7.1529 -変数`YaTeX-help-file'の値で指定されます。このファイルは通常公共の場所 7.1530 -(デフォルトで`$EMACSEXECPATH')に置かれ、誰もがその内容を更新できるよう 7.1531 -に全員に書き込み権が与えられるべきものです。後者は、非標準もしくは個人 7.1532 -的なマクロ定義に関する説明が書かれているファイルで、変数 7.1533 -`YaTeX-help-file-private'の値で指定されます。こちらはユーザのホームディ 7.1534 -レクトリの下などに置かれます。 7.1535 + 「オンラインヘルプ」は、一般的な LaTeX コマンド(デフォルトでカーソル位置 7.1536 +のコマンド)に対する説明を隣のバッファに表示します。この時参照されるヘルプ 7.1537 +用ファイルには「グローバルヘルプ」と「プライベートヘルプ」の二種類があり、 7.1538 +前者は LaTeX の標準コマンドの主なものの説明を含むファイルで、変数 7.1539 +`YaTeX-help-file'の値で指定されます。このファイルは通常公共の場所(デフォル 7.1540 +トで`$EMACSEXECPATH')に置かれ、誰もがその内容を更新できるように全員に書き 7.1541 +込み権が与えられるべきものです。後者は、非標準もしくは個人的なマクロ定義に 7.1542 +関する説明が書かれているファイルで、変数`YaTeX-help-file-private'の値で指 7.1543 +定されます。こちらはユーザのホームディレクトリの下などに置かれます。 7.1544 7.1545 7.1546 オンラインapropos 7.1547 ================= 7.1548 7.1549 - 「オンラインapropos」は GNU Emacs の apropos と同様、ユーザが指定した 7.1550 -キーワードを説明文に含む項目すべてを隣のバッファに表示します。 7.1551 - 7.1552 - もし、調べようとしたLaTeXコマンドに対する説明がヘルプファイル中に見つ 7.1553 -からなかった場合は、説明文の入力を求めてくるので、可能であれば参考書な 7.1554 -どを調べてそのコマンドの説明を入力してください。もし、なにか標準的なコ 7.1555 -マンドに対する説明を書いたならばぜひ私までその説明をお送り下さい。次回 7.1556 -の配布に含めたいと思います。 7.1557 + 「オンラインapropos」は GNU Emacs の apropos と同様、ユーザが指定したキー 7.1558 +ワードを説明文に含む項目すべてを隣のバッファに表示します。 7.1559 + 7.1560 + もし、調べようとしたLaTeXコマンドに対する説明がヘルプファイル中に見つか 7.1561 +らなかった場合は、説明文の入力を求めてくるので、可能であれば参考書などを調 7.1562 +べてそのコマンドの説明を入力してください。もし、なにか標準的なコマンドに対 7.1563 +する説明を書いたならばぜひ私までその説明をお送り下さい。次回の配布に含めた 7.1564 +いと思います。 7.1565 7.1566 7.1567 7.1568 @@ -1513,10 +1490,10 @@ 7.1569 `[prefix] d' 7.1570 ... インクルード構造ブラウズ 7.1571 7.1572 -を押すと、そのドキュメントの親ファイルを聞いて来ます。ここで全てのファ 7.1573 -イルの親となるファイル(デフォルトが示されているので大抵はRETのみ)を入力 7.1574 -するとインクルードしている全てのファイルを解析し、インクルード状況を視 7.1575 -覚的に表示します。このバッファでは以下のキー操作が有効です。 7.1576 +を押すと、そのドキュメントの親ファイルを聞いて来ます。ここで全てのファイル 7.1577 +の親となるファイル(デフォルトが示されているので大抵はRETのみ)を入力すると 7.1578 +インクルードしている全てのファイルを解析し、インクルード状況を視覚的に表示 7.1579 +します。このバッファでは以下のキー操作が有効です。 7.1580 7.1581 `n' 7.1582 ... 次の行に移動し対応するファイルを隣のバッファに表示 7.1583 @@ -1561,8 +1538,8 @@ 7.1584 `q' 7.1585 ... 表示前の状態に戻る 7.1586 7.1587 - ただし、隣のウィンドウのファイルの内容を表示する機能に関しては、対応 7.1588 -するファイルをクローズしてしまうとうまく働きませんのでご注意ください。 7.1589 + ただし、隣のウィンドウのファイルの内容を表示する機能に関しては、対応する 7.1590 +ファイルをクローズしてしまうとうまく働きませんのでご注意ください。 7.1591 7.1592 7.1593 7.1594 @@ -1575,17 +1552,17 @@ 7.1595 gmhist 7.1596 ====== 7.1597 7.1598 - `gmhist.el'と`gmhist-mh.el' をロードしている場合、プレヴューコマンド 7.1599 -の入力(`[prefix] tp]')、印刷コマンドの入力(`[prefix] tl')の時に独立した 7.1600 -ヒストリを利用できます。それぞれのプロンプトで、`M-p' を押すと直前に利 7.1601 -用したコマンド文字列をくり返し呼び出すことができます。 7.1602 + `gmhist.el'と`gmhist-mh.el' をロードしている場合、プレヴューコマンドの入 7.1603 +力(`[prefix] tp]')、印刷コマンドの入力(`[prefix] tl')の時に独立したヒスト 7.1604 +リを利用できます。それぞれのプロンプトで、`M-p' を押すと直前に利用したコマ 7.1605 +ンド文字列をくり返し呼び出すことができます。 7.1606 7.1607 7.1608 min-out 7.1609 ======= 7.1610 7.1611 - `min-out.el' (`outline-minor-mode') と野鳥を組み合わせて使うこともも 7.1612 -ちろん可能です。設定の方法に関しては`yatexm-o.el'をご覧ください。 7.1613 + `min-out.el' (`outline-minor-mode') と野鳥を組み合わせて使うことももちろ 7.1614 +ん可能です。設定の方法に関しては`yatexm-o.el'をご覧ください。 7.1615 7.1616 7.1617 7.1618 @@ -1594,9 +1571,9 @@ 7.1619 カスタマイズ 7.1620 ************ 7.1621 7.1622 - 野鳥の動作を制御する種々の変数を独自に設定することにより、補完入力を 7.1623 -起動するキーアサインを変えたり、環境名の補完候補をさらに充実させること 7.1624 -などができます。 7.1625 + 野鳥の動作を制御する種々の変数を独自に設定することにより、補完入力を起動 7.1626 +するキーアサインを変えたり、環境名の補完候補をさらに充実させることなどがで 7.1627 +きます。 7.1628 7.1629 * Menu: 7.1630 7.1631 @@ -1610,13 +1587,13 @@ 7.1632 lisp 変数 7.1633 ========= 7.1634 7.1635 - 例えば prefix キーを `C-c' 以外のキーにしたい場合は、`YaTeX-prefix'に 7.1636 -prefix キーにしたいシンボルを定義してください。さらに、「`C-c 英字'」と 7.1637 -いうキーバインドは独自の関数が割り当ててあるので使いたくない。このよう 7.1638 -な時は、`YaTeX-inhibit-prefix-letter' を `t' に設定することにより、 7.1639 -`C-c 英字…'のバインドが全て、対応する`C-c C-英字…'に変わります(ただし、 7.1640 -begin型 large型補完の大文字起動によるリジョン指定は可能なままです。これ 7.1641 -も無効にしたい場合は`t'ではなく 1 にセットして下さい。)。 7.1642 + 例えば prefix キーを `C-c' 以外のキーにしたい場合は、`YaTeX-prefix'に 7.1643 +prefix キーにしたいシンボルを定義してください。さらに、「`C-c 英字'」とい 7.1644 +うキーバインドは独自の関数が割り当ててあるので使いたくない。このような時は、 7.1645 +`YaTeX-inhibit-prefix-letter' を `t' に設定することにより、`C-c 英字…'の 7.1646 +バインドが全て、対応する`C-c C-英字…'に変わります(ただし、begin型 large型 7.1647 +補完の大文字起動によるリジョン指定は可能なままです。これも無効にしたい場合 7.1648 +は`t'ではなく 1 にセットして下さい。)。 7.1649 7.1650 * Menu: 7.1651 7.1652 @@ -1632,32 +1609,31 @@ 7.1653 カスタマイズ変数一覧 7.1654 -------------------- 7.1655 7.1656 - yatex-mode における次の変数がカスタマイズ可能です。`~/.emacs' で 7.1657 -`setq' しておけば、そちらの定義が優先されます。括弧の中はデフォルト値で 7.1658 -す。実際に変数の値を変更する場合は `M-x describe-variable' で変数の詳細 7.1659 -な説明を参照してください。 7.1660 + yatex-mode における次の変数がカスタマイズ可能です。`~/.emacs' で `setq' 7.1661 +しておけば、そちらの定義が優先されます。括弧の中はデフォルト値です。実際に 7.1662 +変数の値を変更する場合は `M-x describe-variable' で変数の詳細な説明を参照 7.1663 +してください。 7.1664 7.1665 -- Variable: YaTeX-prefix 7.1666 yatex-mode 中のプリフィクスキー (`\C-c') 7.1667 7.1668 -- Variable: YaTeX-inhibit-prefix-letter 7.1669 - prefix キーの直後のキーバインドで `英字' のものを `C-英字' に変更 7.1670 + prefix キーの直後のキーバインドで `英字' のものを `C-英字' に変更 7.1671 (`nil') 7.1672 7.1673 -- Variable: YaTeX-fill-prefix 7.1674 - 本文を書く時の行頭に挿入する接頭辞すなわち fill-prefix 7.1675 - (`""(nil)') 7.1676 + 本文を書く時の行頭に挿入する接頭辞すなわち fill-prefix (`""(nil)') 7.1677 7.1678 -- Variable: YaTeX-user-completion-table 7.1679 学習したLaTeXコマンド保存ファイル名 (`"~/.yatexrc"') 7.1680 7.1681 -- Variable: YaTeX-kanji-code 7.1682 - 文書を作成する時の漢字コードnil=既存のコードのまま 7.1683 - 0=no-conversion 1=Shift JIS, 2=JIS, 3=EUC, 4=UTF-8 (2 (MS-DOSでは 7.1684 - 1)) 7.1685 + 文書を作成する時の漢字コードnil=既存のコードのまま 0=no-conversion 7.1686 + 1=Shift JIS, 2=JIS, 3=EUC, 4=UTF-8 (2 (MS-DOSでは1)) 7.1687 7.1688 -- Variable: tex-command 7.1689 - LaTeXタイプセッタコマンド名 (`"platex"') 7.1690 7.1691 + LaTeXタイプセッタコマンド名 (`"platex"') 7.1692 + 7.1693 7.1694 -- Variable: dvi2-command 7.1695 プレヴューアコマンド名 (`"xdvi -geo +0+0 -s 4"') 7.1696 @@ -1666,12 +1642,12 @@ 7.1697 dviファイルの印刷に使われるコマンド式 (`"dvi2ps %f %t %s | lpr"') 7.1698 7.1699 -- Variable: dviprint-from-format 7.1700 - 上の`%f'に相当する開始ページ指定書式、`%b' が開始ページ番号に変わ 7.1701 - る (`"-f %b"') 7.1702 + 上の`%f'に相当する開始ページ指定書式、`%b' が開始ページ番号に変わる 7.1703 + (`"-f %b"') 7.1704 7.1705 -- Variable: dviprint-to-format 7.1706 - `%t' に相当する終了ページ指定書式、`%e'が終了ページ番号に変わる 7.1707 - (`"-t %e"') 7.1708 + `%t' に相当する終了ページ指定書式、`%e'が終了ページ番号に変わる (`"-t 7.1709 + %e"') 7.1710 7.1711 -- Variable: makeindex-command 7.1712 makeindexコマンド (`"makeindex"' (MS-DOSでは`"makeind"')) 7.1713 @@ -1683,42 +1659,40 @@ 7.1714 `\nonstopmode{}'を自動的に付加するか (`nil') 7.1715 7.1716 -- Variable: latex-warning-regexp 7.1717 - latexコマンドの出力するウォーニング行の正規表現 (`"line.* 7.1718 - [0-9]*"') 7.1719 + latexコマンドの出力するウォーニング行の正規表現 (`"line.* [0-9]*"') 7.1720 7.1721 -- Variable: latex-error-regexp 7.1722 同じくエラー行の正規表現 (`"l\\.[1-9][0-9]*"') 7.1723 7.1724 -- Variable: latex-dos-emergency-message 7.1725 - MS-DOS上で動作する latex コマンドが、エラーにより停止するとき出力 7.1726 - するメッセージ (`"Emergency stop"') 7.1727 + MS-DOS上で動作する latex コマンドが、エラーにより停止するとき出力する 7.1728 + メッセージ (`"Emergency stop"') 7.1729 7.1730 -- Variable: latex-message-kanji-code 7.1731 - タイプセッタの出力するメッセージの漢字コード.タイプセットバッファ 7.1732 - の出力が化ける時は、これを設定する (2, Nemacsでのみ有効) 7.1733 + タイプセッタの出力するメッセージの漢字コード.タイプセットバッファの出 7.1734 + 力が化ける時は、これを設定する (2, Nemacsでのみ有効) 7.1735 7.1736 -- Variable: NTT-jTeX 7.1737 - 古いNTT-jTeX使用時のようにインデントした行の先頭と前の行の(タイプ 7.1738 - セット後の)字間が空いてしまうのを嫌う場合は`t'にする(`nil') 7.1739 + 古いNTT-jTeX使用時のようにインデントした行の先頭と前の行の(タイプセッ 7.1740 + ト後の)字間が空いてしまうのを嫌う場合は`t'にする(`nil') 7.1741 7.1742 -- Variable: YaTeX-item-regexp 7.1743 itemの桁揃えの時に用いる、itemの正規表現 (`"\\\\(sub\\)*item"') 7.1744 7.1745 -- Variable: YaTeX-verb-regexp 7.1746 - verbコマンドの正規表現。先頭の\\\\はつけない 7.1747 - (`"verb\\*?\\|path"') 7.1748 + verbコマンドの正規表現。先頭の\\\\はつけない (`"verb\\*?\\|path"') 7.1749 7.1750 -- Variable: YaTeX-nervous 7.1751 ローカル辞書を用いる時 `t' (`t') 7.1752 7.1753 -- Variable: YaTeX-sectioning-regexp 7.1754 - セクション区切り設定コマンドの正規表現 7.1755 + セクション区切り設定コマンドの正規表現 7.1756 (`"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"') 7.1757 7.1758 -- Variable: YaTeX-fill-inhibit-environments 7.1759 fill を抑止する環境名のリスト (`'("tabular" "tabular*" "array" 7.1760 - picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" 7.1761 - verbatim" "verbatim*")') 7.1762 + "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" 7.1763 + "verbatim" "verbatim*")') 7.1764 7.1765 -- Variable: YaTeX-uncomment-once 7.1766 領域uncommentで行頭の複数の`%'を全て削除するか (`nil') 7.1767 @@ -1734,8 +1708,8 @@ 7.1768 alist (`nil')。補完テーブルの書き方については`yatexmth.el'を参照。 7.1769 7.1770 -- Variable: YaTeX-default-pop-window-height 7.1771 - 1画面の時にタイプセットバッファを初めて作成する時の高さ。数値で行 7.1772 - 数、数字文字列でEmacsウィンドウに対する百分率 (10) 7.1773 + 1画面の時にタイプセットバッファを初めて作成する時の高さ。数値で行数、 7.1774 + 数字文字列でEmacsウィンドウに対する百分率 (10) 7.1775 7.1776 -- Variable: YaTeX-help-file 7.1777 共用ヘルプファイル (`$doc-directory/../../site-lisp/YATEXHLP.jp') 7.1778 @@ -1744,46 +1718,45 @@ 7.1779 個人用ヘルプファイル (`"~/YATEXHLP.jp"') 7.1780 7.1781 -- Variable: YaTeX-no-begend-shortcut 7.1782 - `[prefix] b ??' のショートカットを使わず、`[prefix] b' だけで補完 7.1783 - 入力に入る (`nil') 7.1784 + `[prefix] b ??' のショートカットを使わず、`[prefix] b' だけで補完入力 7.1785 + に入る (`nil') 7.1786 7.1787 -- Variable: YaTeX-hilit-pattern-adjustment-private 7.1788 - 正規表現とそれにマッチするものの論理的意味をシンボルであらわしたも 7.1789 - ののリスト…のリスト。hilit19 を組み込んでいる時のみ有効。詳しくは 7.1790 - `(assq 'yatex-mode hilit-patterns-alist)' した結果と、変数 7.1791 - `YaTeX-hilit-pattern-adjustment-default' の値(と場合によっては 7.1792 + 正規表現とそれにマッチするものの論理的意味をシンボルであらわしたもの 7.1793 + のリスト…のリスト。hilit19 を組み込んでいる時のみ有効。詳しくは 7.1794 + `(assq 'yatex-mode hilit-patterns-alist)' した結果と、変数 7.1795 + `YaTeX-hilit-pattern-adjustment-default' の値(と場合によっては 7.1796 hilit19 のドキュメント)を参照せよ。 7.1797 7.1798 -- Variable: YaTeX-sectioning-level 7.1799 LaTeXのセクション単位宣言コマンドとその論理的高さのalist。 7.1800 7.1801 -- Variable: YaTeX-hierarchy-ignore-heading-regexp 7.1802 - Hierarchy バッファは通常ファイルヘッダとして、LaTeXのセクション宣 7.1803 - 言コマンドの引数を検索し、それがなければコメント行を探すが、その際 7.1804 - にヘッダとしては意味を持たないパターンをこの変数に設定する。デフォ 7.1805 - ルトでは RCS ヘッダとモード指定行(-*- xxx -*-)が設定されている。 7.1806 + Hierarchy バッファは通常ファイルヘッダとして、LaTeXのセクション宣言コ 7.1807 + マンドの引数を検索し、それがなければコメント行を探すが、その際にヘッ 7.1808 + ダとしては意味を持たないパターンをこの変数に設定する。デフォルトでは 7.1809 + RCS ヘッダとモード指定行(-*- xxx -*-)が設定されている。 7.1810 7.1811 -- Variable: YaTeX-skip-default-reader 7.1812 - Non-nil に設定するとsection型コマンドの引数入力時、アドイン関数が 7.1813 - なければミニバッファでの読み込みをせずに入力を完了させる (`nil') 7.1814 + Non-nil に設定するとsection型コマンドの引数入力時、アドイン関数がなけ 7.1815 + ればミニバッファでの読み込みをせずに入力を完了させる (`nil') 7.1816 7.1817 -- Variable: YaTeX-create-file-prefix-g 7.1818 - `\include'などで `prefix g'した時に、ジャンプ先が存在しないファイ 7.1819 - ルであってもオープンする (`nil') 7.1820 + `\include'などで `prefix g'した時に、ジャンプ先が存在しないファイルで 7.1821 + あってもオープンする (`nil') 7.1822 7.1823 -- Variable: YaTeX-simple-messages 7.1824 各種補完時のメッセージ出力を簡素化する (`nil') 7.1825 7.1826 -- Variable: YaTeX-hilit-sectioning-face 7.1827 色付けが有効な時の `\part' の色 (`'(yellow/dodgerblue 7.1828 - yellow/slateblue)')。リストの第一要素は `hilit-background-mode' が 7.1829 - `'light' の時の、第二要素は `'dark' の時の `\chapter' の色で、文字 7.1830 - 色/背景色 のように指定する。 7.1831 + yellow/slateblue)')。リストの第一要素は `hilit-background-mode' が 7.1832 + `'light' の時の、第二要素は `'dark' の時の `\chapter' の色で、文字色/ 7.1833 + 背景色 のように指定する。 7.1834 7.1835 -- Variable: YaTeX-hilit-sectioning-attenuation-rate 7.1836 - 色付けが有効な時の、`\subparagraph' の色を `\chapter' の濃度の何% 7.1837 - 薄くしたものにするか (`'(15 40)') `YaTeX-hilit-sectioning-face'の 7.1838 - 項参照。 7.1839 + 色付けが有効な時の、`\subparagraph' の色を `\chapter' の濃度の何%薄く 7.1840 + したものにするか (`'(15 40)') `YaTeX-hilit-sectioning-face' の項参照。 7.1841 7.1842 -- Variable: YaTeX-use-AMS-LaTeX 7.1843 AMS-LaTeX を使用する場合は `t' に設定する (`nil') 7.1844 @@ -1792,61 +1765,59 @@ 7.1845 LaTeX2e を使用する場合は `t' に設定する (`t') 7.1846 7.1847 -- Variable: YaTeX-template-file 7.1848 - 新規ファイル作成時に自動挿入するファイル名 7.1849 - (`~/work/template.tex') 7.1850 + 新規ファイル作成時に自動挿入するファイル名 (`~/work/template.tex') 7.1851 7.1852 -- Variable: YaTeX-search-file-from-top-directory 7.1853 - inputするファイルを探すときの基準ディレクトリをmainファイルのある 7.1854 - ディレクトリにするか (`t') 7.1855 + inputするファイルを探すときの基準ディレクトリをmainファイルのあるディ 7.1856 + レクトリにするか (`t') 7.1857 -- Variable: YaTeX-use-font-lock 7.1858 ソースの色づけパッケージとして font-lock を利用するかどうか 7.1859 (`(featurep 'font-lock)') 7.1860 7.1861 -- Variable: YaTeX-use-hilit19 7.1862 - ソースの色づけパッケージとして hilit19 を利用するかどうか 7.1863 - (`(featurep 'hilit19)') 7.1864 + ソースの色づけパッケージとして hilit19 を利用するかどうか(`(featurep 7.1865 + 'hilit19)') 7.1866 7.1867 -- Variable: YaTeX-use-italic-bold 7.1868 italic, boldフォントを野鳥が探すかどうか (Emacs20以降なら`t') 7.1869 font-lock利用時のみ有効。(`(featurep 'hilit19)' 7.1870 7.1871 -- Variable: YaTeX-singlecmd-suffix 7.1872 - 全てのmaketitle型コマンドの補完入力直後に挿入する文字列。 7.1873 - `"{}"' などがお勧め。 7.1874 + 全てのmaketitle型コマンドの補完入力直後に挿入する文字列。`"{}"' など 7.1875 + がお勧め。 7.1876 7.1877 -- Variable: YaTeX-package-alist-private 7.1878 - LaTeX2eのパッケージ名とその中に含まれるマクロのリスト。適切に設定 7.1879 - しておくと本文入力時にマクロを補完入力するとそのマクロに必要なパッ 7.1880 - ケージを usepackage するか自動的に検査してくれる。していなければ 7.1881 - usepackage を自動追加することもできる。リストは'((パッケージ名1 7.1882 - (補完タイプ マクロのリスト……) (補完タイプ マクロのリスト……)) 7.1883 - (パッケージ名2 (補完タイプ マクロのリスト……) (補完タイプ マクロ 7.1884 - のリスト……))………)という形式にする。補完タイプは `env, 7.1885 - section, maketitle' のどれか。具体例は変数 7.1886 - `YaTeX-package-alist-default'の値参照。 7.1887 + LaTeX2eのパッケージ名とその中に含まれるマクロのリスト。適切に設定して 7.1888 + おくと本文入力時にマクロを補完入力するとそのマクロに必要なパッケージ 7.1889 + を usepackage するか自動的に検査してくれる。していなければ 7.1890 + \usepackage を自動追加することもできる。リストは'((パッケージ名1 (補 7.1891 + 完タイプ マクロのリスト……) (補完タイプ マクロのリスト……)) (パッケー 7.1892 + ジ名2 (補完タイプ マクロのリスト……) (補完タイプ マクロのリス 7.1893 + ト……))………) という形式にする。補完タイプは `env, section, 7.1894 + maketitle' のどれか。具体例は変数 `YaTeX-package-alist-default' の値 7.1895 + 参照。 7.1896 7.1897 -- Variable: YaTeX-tabular-indentation 7.1898 - tabular/array 環境で現在行の先頭位置が表の第Nカラムのときは標準イ 7.1899 - ンデント位置から N*YaTeX-tabular-indentation 桁下げたインデントに 7.1900 - する。 7.1901 + tabular/array 環境で現在行の先頭位置が表の第Nカラムのときは標準インデ 7.1902 + ント位置から N*YaTeX-tabular-indentation 桁下げたインデントにする。 7.1903 7.1904 -- Variable: YaTeX-noindent-env-regexp 7.1905 別の環境内にあっても \begin{} が行頭から始まるべき環境名の正規表現。 7.1906 verbatim環境などを指定する。 7.1907 7.1908 -- Variable: YaTeX-ref-default-label-string 7.1909 - \ref{} のラベル補完でラベル未設定のものに自動的に生成するラベル名 7.1910 - の書式。strftime(3)関数に似た日付ベースで指定する。利用できる書式 7.1911 - は以下のとおり。%y -> 西暦下二桁, %b -> 月の英名, %m -> 月(1〜12) 7.1912 - %d -> 日, %H -> 時, %M -> 分, %S -> 秒, %qx -> アルファベットで26 7.1913 - 進数化した yymmdd. %qX -> アルファベットで26進数化した HHMMSS. デ 7.1914 - フォルトは "%H%M%S_%d%b%y" 7.1915 + \ref{} のラベル補完でラベル未設定のものに自動的に生成するラベル名の書 7.1916 + 式。strftime(3)関数に似た日付ベースで指定する。利用できる書式は以下の 7.1917 + とおり。%y -> 西暦下二桁, %b -> 月の英名, %m -> 月(1〜12) %d -> 日, 7.1918 + %H -> 時, %M -> 分, %S -> 秒, %qx -> アルファベットで26進数化した 7.1919 + yymmdd. %qX -> アルファベットで26進数化した HHMMSS. デフォルトは 7.1920 + "%H%M%S_%d%b%y" 7.1921 7.1922 -- Variable: YaTeX-ref-generate-label-function 7.1923 - \ref{}のラベル名自動生成のときに使う関数のシンボル。デフォルトは標 7.1924 - 準の YaTeX::ref-generate-label 関数が割り当ててある。引数を2つ取る 7.1925 - 関数を定義して、この変数にセットするとその関数を呼んだ結果をデフォ 7.1926 - ルトのラベル名候補とする。設定例: 7.1927 + \ref{}のラベル名自動生成のときに使う関数のシンボル。デフォルトは標準 7.1928 + の YaTeX::ref-generate-label 関数が割り当ててある。引数を2つ取る関数 7.1929 + を定義して、この変数にセットするとその関数を呼んだ結果をデフォルトの 7.1930 + ラベル名候補とする。設定例: 7.1931 (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label) 7.1932 (defun my-yatex-generate-label (command value) 7.1933 (and (string= command "caption") 7.1934 @@ -1868,9 +1839,9 @@ 7.1935 カスタマイズ変数設定例 7.1936 ---------------------- 7.1937 7.1938 - たとえば、prefix キーとして`ESC'を使用し、新たな補完候補を格納するファ 7.1939 -イルを、`~/src/emacs/yatexrc' にし、行頭の prefix をタブ文字一つに変え 7.1940 -たいときは、 7.1941 + たとえば、prefix キーとして`ESC'を使用し、新たな補完候補を格納するファイ 7.1942 +ルを、`~/src/emacs/yatexrc' にし、行頭の prefix をタブ文字一つに変えたいと 7.1943 +きは、 7.1944 7.1945 (setq YaTeX-prefix "\e" 7.1946 YaTeX-user-completion-table "~/src/emacs/yatexrc" 7.1947 @@ -1885,22 +1856,21 @@ 7.1948 hook変数 7.1949 -------- 7.1950 7.1951 - また、hook 変数 `yatex-mode-hook', `yatex-mode-load-hook' を用意して 7.1952 -います。すべての yatex-mode のバッファで作用させたいものは、 7.1953 -`yatex-mode-hook' に記述し、`yatex.el' をロードする時だけ作用させたいも 7.1954 -のは`yatex-mode-load-hook' に記述します。例えば、`outline-minor-mode' 7.1955 -を利用する場合、それぞれのバッファで `outline-minor-mode' を有効にした 7.1956 -いので、`yatex-mode-hook' を次のように設定します。 7.1957 + また、hook 変数 `yatex-mode-hook', `yatex-mode-load-hook' を用意していま 7.1958 +す。すべての yatex-mode のバッファで作用させたいものは、`yatex-mode-hook' 7.1959 +に記述し、`yatex.el' をロードする時だけ作用させたいものは 7.1960 +`yatex-mode-load-hook' に記述します。例えば、`outline-minor-mode' を利用す 7.1961 +る場合、それぞれのバッファで `outline-minor-mode' を有効にしたいので、 7.1962 +`yatex-mode-hook' を次のように設定します。 7.1963 7.1964 (setq yatex-mode-hook 7.1965 '(lambda () (outline-minor-mode t))) 7.1966 7.1967 7.1968 -逆に、独自のキー定義を行いたい時などは、`yatex-mode-load-hook' を利用し 7.1969 -ます。例えば、begin 型補完において、 document や、enumerate 以外の環境 7.1970 -名もショートカットキーで入れたいなどという時は、次のようにします。以下 7.1971 -の例は、`[prefix] ba' で `\begin{abstract}', `\end{abstract}' を挿入し 7.1972 -ます。 7.1973 +逆に、独自のキー定義を行いたい時などは、`yatex-mode-load-hook' を利用しま 7.1974 +す。例えば、begin 型補完において、 document や、enumerate 以外の環境名も 7.1975 +ショートカットキーで入れたいなどという時は、次のようにします。以下の例は、 7.1976 +`[prefix] ba' で `\begin{abstract}', `\end{abstract}' を挿入します。 7.1977 7.1978 (setq yatex-mode-load-hook 7.1979 '(lambda() (YaTeX-define-begend-key "ba" "abstract"))) 7.1980 @@ -1915,9 +1885,9 @@ 7.1981 hook用ファイル 7.1982 -------------- 7.1983 7.1984 - 変数 `yatex-mode-load-hook' で定義する内容が多い時は、`yatexhks.el'と 7.1985 -いうファイルを作り、その中に野鳥関連の設定を書く事で、初期化の時に自動 7.1986 -的にロードします。 7.1987 + 変数 `yatex-mode-load-hook' で定義する内容が多い時は、`yatexhks.el'とい 7.1988 +うファイルを作り、その中に野鳥関連の設定を書く事で、初期化の時に自動的にロー 7.1989 +ドします。 7.1990 7.1991 7.1992 7.1993 @@ -1927,9 +1897,9 @@ 7.1994 付加関数(アドイン関数) 7.1995 ====================== 7.1996 7.1997 - 各種補完時に、環境名やコマンド名に応じたきめ細やかな補完入力機能を実 7.1998 -現するための関数を作成することができます。この関数の作成方法や、組み込 7.1999 -み方法に関しては、`yatexadd.doc' をご覧ください。 7.2000 + 各種補完時に、環境名やコマンド名に応じたきめ細やかな補完入力機能を実現す 7.2001 +るための関数を作成することができます。この関数の作成方法や、組み込み方法に 7.2002 +関しては、`yatexadd.doc' をご覧ください。 7.2003 7.2004 7.2005 7.2006 @@ -1938,12 +1908,11 @@ 7.2007 その他 7.2008 ****** 7.2009 7.2010 - 野鳥の標準の LaTeX コマンドの辞書には、作者が頻繁に使うものしか登録さ 7.2011 -れていません。これは、補完候補に使いそうもないコマンドが存在して、補完 7.2012 -したいコマンドを出すまでのストローク数を増やしてしまう事を防止するため 7.2013 -です。標準辞書にないコマンドも、できるだけ補完入力方式を利用し、ユーザ 7.2014 -辞書を充実させることで、あなたの LaTeX スタイルにあった野鳥へと育ってい 7.2015 -くことでしょう。 7.2016 + 野鳥の標準の LaTeX コマンドの辞書には、作者が頻繁に使うものしか登録され 7.2017 +ていません。これは、補完候補に使いそうもないコマンドが存在して、補完したい 7.2018 +コマンドを出すまでのストローク数を増やしてしまう事を防止するためです。標準 7.2019 +辞書にないコマンドも、できるだけ補完入力方式を利用し、ユーザ辞書を充実させ 7.2020 +ることで、あなたの LaTeX スタイルにあった野鳥へと育っていくことでしょう。 7.2021 7.2022 7.2023 7.2024 @@ -1952,23 +1921,23 @@ 7.2025 取り扱い 7.2026 ******** 7.2027 7.2028 - 本プログラムはフリーソフトウェアです。本プログラムを使用して生じたい 7.2029 -かなる結果に対しても作者は責任を負わないこととします。転載等に関しては 7.2030 -制限いたしません。常識的に扱ってください。また、本プログラムに含まれる 7.2031 -コードを利用すること、改造することも自由に行なって構いませんが、流用す 7.2032 -ることにより契約締結の必要が生じる場合、私はいかなる契約も締結しません。 7.2033 -具体的にはGPLへのサインはしませんので、GNUに寄贈するものを作っている場 7.2034 -合私の作品から取り込んだコードを流用すると苦労するかもしれません。いか 7.2035 -なるコード流用も拒否しませんが契約締結は辞退します。 7.2036 - 7.2037 - 苦情、希望、バグ報告、感想等は歓迎いたします。連絡は yuuji@yatex.org 7.2038 -まで(2004年1月現在)。継続的に使用してくださる方はメイリングリスト「fj野 7.2039 -鳥の会」に是非加入してください。加入方法については本パッケージの 7.2040 -`docs/qanda'ファイルの「その他」の章を御覧ください。 7.2041 + 本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな 7.2042 +る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた 7.2043 +しません。常識的に扱ってください。また、本プログラムに含まれるコードを利用 7.2044 +すること、改造することも自由に行なって構いませんが、流用することにより契約 7.2045 +締結の必要が生じる場合、私はいかなる契約も締結しません。具体的にはGPLへの 7.2046 +サインはしませんので、GNUに寄贈するものを作っている場合私の作品から取り込 7.2047 +んだコードを流用すると苦労するかもしれません。いかなるコード流用も拒否しま 7.2048 +せんが契約締結は辞退します。 7.2049 + 7.2050 + 苦情、希望、バグ報告、感想等は歓迎いたします。連絡は yuuji@yatex.org ま 7.2051 +で(2004年1月現在)。継続的に使用してくださる方はメイリングリスト「fj野鳥の 7.2052 +会」に是非加入してください。加入方法については本パッケージの `docs/qanda' 7.2053 +ファイルの「その他」の章を御覧ください。 7.2054 7.2055 仕様は、予告なく確実に(気分次第で)変更されます:-p。 7.2056 7.2057 - 広瀬雄二 7.2058 + 広瀬雄二 7.2059 7.2060 7.2061 7.2062 @@ -1979,214 +1948,217 @@ 7.2063 7.2064 * Menu: 7.2065 7.2066 -* :: Greek letter completion. (line 5) 7.2067 7.2068 -* ;: Image completion. (line 5) 7.2069 7.2070 -* Σ[しくま]: Image completion. (line 5) 7.2071 7.2072 -* 括る[くくる]: Enclose section-type command. (line 5) 7.2073 7.2074 -* 括る[くくる]: large型補完. (line 23) 7.2075 7.2076 -* 引数[ひきすう]: 2個以上の引数をとる section型コマンド. (line 5) 7.2077 7.2078 -* 欧文[おうふん]: Accent mark completion. (line 5) 7.2079 7.2080 -* ∞[むけんたい]: Image completion. (line 5) 7.2081 7.2082 -* 矢印[やしるし]: Image completion. (line 5) 7.2083 7.2084 -* ;ゥ身[;ししん]: Image completion. (line 34) 7.2085 7.2086 -* ブロック[ふろつく]: begin型補完. (line 82) 7.2087 7.2088 -* ヒストリ[ひすとり]: Cooperation with other packages. (line 9) 7.2089 7.2090 -* 桁揃え[けたそろえ]: Filling. (line 5) 7.2091 7.2092 -* やちょう[やちよう]: Intro. (line 5) 7.2093 7.2094 -* ジャンプ[しやんふ]: view-sectioning. (line 44) 7.2095 7.2096 -* &入力[&にゆうりよく]: Intelligent newline. (line 5) 7.2097 7.2098 -* 設定例[せつていれい]: Sample definitions. (line 5) 7.2099 7.2100 -* 随時補完[すいしほかん]: Arbitrary completion. (line 5) 7.2101 7.2102 -* 閉じ込める[としこめる]: begin型補完. (line 82) 7.2103 7.2104 -* 再帰補完[さいきほかん]: Recursive completion. (line 5) 7.2105 7.2106 -* ユーザォ書[ゆうさししよ]: begin型補完. (line 72) 7.2107 7.2108 -* 論理階層[ろんりかいそう]: view-sectioning. (line 44) 7.2109 7.2110 -* ここはどこ?[ここはとこ?]: What column. (line 5) 7.2111 7.2112 -* カスタマイズ[かすたまいす]: Customizations. (line 5) 7.2113 7.2114 -* キーアサイン[きいあさいん]: Customizations. (line 5) 7.2115 7.2116 -* 数ョモード[すうしきもおと]: Image completion. (line 5) 7.2117 7.2118 -* インストール[いんすとおる]: Installation. (line 5) 7.2119 7.2120 -* タイプセッタ[たいふせつた]: Invocation. (line 5) 7.2121 7.2122 -* プレヴューア[ふれひゆうあ]: Invocation. (line 5) 7.2123 7.2124 -* お絵描きツール起動[おえかきつうるきとう]: お絵描きツール起動. (line 5) 7.2125 7.2126 -* 環境の先頭へ[かんきようのせんとうへ]: 環境を単位としたジャンプ. (line 8) 7.2127 7.2128 -* 環境の末尾へ[かんきようのまつひへ]: 環境を単位としたジャンプ. (line 8) 7.2129 7.2130 -* 環境をマーク[かんきようをまあく]: 環境を単位としたジャンプ. (line 8) 7.2131 7.2132 -* アウトライン[あうとらいん]: view-sectioning. (line 5) 7.2133 7.2134 -* 引数の個数を変える[ひきすうのこすうをかえる]: 2個以上の引数をとる section型コマンド. (line 26) 7.2135 7.2136 -* アクセント記号補完[あくせんときこうほかん]: Accent mark completion. (line 5) 7.2137 7.2138 -* カスタマイズ変数一覧[かすたまいすへんすういちらん]: All customizable variables. (line 5) 7.2139 7.2140 -* 環境名の補完[かんきようめいのほかん]: begin型補完. (line 5) 7.2141 7.2142 -* エラー修正[えらあしゆうせい]: Calling typesetter. (line 5) 7.2143 7.2144 -* タイプセッタ起動[たいふせつたきとう]: Calling typesetter. (line 5) 7.2145 7.2146 -* タイプセットエラー[たいふせつとえらあ]: Calling typesetter. (line 5) 7.2147 7.2148 -* 環境名の変更[かんきようめいのへんこう]: Changing LaTeX command. (line 21) 7.2149 7.2150 -* モード切り替え[もうときりかえ]: Changing mode of YaTeX. (line 5) 7.2151 7.2152 -* 起動するコマンドを変える[きとうするこまんとをかえる]: Changing typesetter. (line 8) 7.2153 7.2154 -* タイプセッタの使い分け[たいふせつたのつかいわけ]: Changing typesetter. (line 13) 7.2155 7.2156 -* コメントアウト[こめんとあうと]: Commenting out. (line 5) 7.2157 7.2158 -* その他のコマンド制御[そのたのこまんとせいきよ]: Controlling which command to invoke. (line 5) 7.2159 7.2160 -* 他パッケージとの連携[たはつけえしとのれんけい]: Cooperation with other packages. (line 5) 7.2161 7.2162 -* コマンドヒストリ[こまんとひすとり]: Cooperation with other packages. (line 9) 7.2163 7.2164 -* カーソルジャンプ[かあそるしやんふ]: Cursor jump. (line 5) 7.2165 7.2166 -* %#記法ゥ体の編集[%#きほうしたいのへんしゆう]: Editing %# notation. (line 5) 7.2167 7.2168 -* パラグラフの桁揃え[はらくらふのけたそろえ]: Filling. (line 48) 7.2169 7.2170 -* 固定領域のタイプセット[こていりよういきのたいふせつと]: Fix region for typesetting. (line 5) 7.2171 7.2172 -* 領域決定規則[りよういきけつていきそく]: Fix region for typesetting. (line 27) 7.2173 7.2174 -* 長いファイルの編集[なかいふあいるのへんしゆう]: Fix region for typesetting. (line 36) 7.2175 7.2176 -* ギリシャ文字補完[きりしやもしほかん]: Greek letter completion. (line 5) 7.2177 7.2178 -* イメージ補完[いめえしほかん]: Image completion. (line 5) 7.2179 7.2180 -* 数ョ記号イメージ補完[すうしききこういめえしほかん]: Image completion. (line 5) 7.2181 7.2182 -* 他のファイルの手直し[ほかのふあいるのてなおし]: Includeonly. (line 12) 7.2183 7.2184 -* インクルード構造[いんくるうとこうそう]: Inclusion hierarchy browser. (line 5) 7.2185 7.2186 -* おまかせ改行[おまかせかいきよう]: Intelligent newline. (line 5) 7.2187 7.2188 -* プリントアウト[ふりんとあうと]: Invocation. (line 5) 7.2189 7.2190 -* 環境の削除[かんきようのさくしよ]: Killing LaTeX command. (line 7) 7.2191 7.2192 -* ラベルゥ動生成[らへるしとうせいせい]: label-generation. (line 5) 7.2193 7.2194 -* フォント指定子[ふおんとしていし]: large型補完. (line 19) 7.2195 7.2196 -* 文字サイズ指定子[もしさいすしていし]: large型補完. (line 19) 7.2197 7.2198 -* ローカルォ書[ろおかるししよ]: Local dictionary. (line 5) 7.2199 7.2200 -* 変更/削除[へんこう/さくしよ]: Modifying/Deleting. (line 5) 7.2201 7.2202 -* オンラインヘルプ[おんらいんへるふ]: Online help. (line 5) 7.2203 7.2204 -* キーワード検索[きいわあとけんさく]: Online help. (line 5) 7.2205 7.2206 -* グローバルヘルプ[くろおはるへるふ]: Online help. (line 17) 7.2207 7.2208 -* プライベートヘルプ[ふらいへえとへるふ]: Online help. (line 17) 7.2209 7.2210 -* 入力ファイル分割[にゆうりよくふあいるふんかつ]: Splitting input files. (line 12) 7.2211 7.2212 -* セクション区切り一覧バッファ[せくしよんくきりいちらんはつふあ]: view-sectioning. (line 20) 7.2213 7.2214 -* セクション区切り[せくしよんくきり]: view-sectioning. (line 44) 7.2215 7.2216 -* 現在のカラム表ヲ[けんさいのからむひようし]: What column. (line 24) 7.2217 7.2218 -* apropos: Online help. (line 5) 7.2219 7.2220 -* autoload: Installation. (line 5) 7.2221 7.2222 -* auto-mode-alist: Installation. (line 5) 7.2223 7.2224 -* %#BEGIN: Fix region for typesetting. (line 5) 7.2225 7.2226 -* begin型補完[beginかたほかん]: begin型補完. (line 5) 7.2227 7.2228 -* C-c: Invocation. (line 5) 7.2229 7.2230 -* Demacs: Intro. (line 5) 7.2231 7.2232 -* .emacs: Installation. (line 5) 7.2233 7.2234 -* %#END: Fix region for typesetting. (line 5) 7.2235 7.2236 -* end補完[endほかん]: end補完. (line 5) 7.2237 7.2238 -* ghostview: Splitting input files. (line 17) 7.2239 7.2240 -* gmhist: Cooperation with other packages. (line 9) 7.2241 7.2242 -* hook変数[hookへんすう]: Hook variables. (line 5) 7.2243 7.2244 -* 出力終了ページ[しゆつりよくしゆうりようへえし]: Print out. (line 10) 7.2245 7.2246 -* includeonly: Includeonly. (line 5) 7.2247 7.2248 -* Install: Installation. (line 5) 7.2249 7.2250 -* itemなどの桁揃え[itemなとのけたそろえ]: Filling. (line 9) 7.2251 7.2252 -* 出力開始ページ[しゆつりよくかいしへえし]: Print out. (line 10) 7.2253 7.2254 -* jlatex: Invocation. (line 5) 7.2255 7.2256 -* large型補完[largeかたほかん]: large型補完. (line 5) 7.2257 7.2258 -* LaTeX: Intro. (line 5) 7.2259 7.2260 -* leftarrow: Image completion. (line 5) 7.2261 7.2262 -* lpr format: lpr format. (line 5) 7.2263 7.2264 -* lprフォーマットの変更[lprふおおまつとのへんこう]: Editing %# notation. (line 20) 7.2265 7.2266 -* lprふぉーまっと[lprふおおまつと]: lpr format. (line 5) 7.2267 7.2268 -* lprフォーマット[lprふおおまつと]: lpr format. (line 5) 7.2269 7.2270 -* maketitle型補完[maketitleかたほかん]: maketitle型補完. (line 5) 7.2271 7.2272 -* M-C-@: 環境を単位としたジャンプ. (line 8) 7.2273 7.2274 -* M-C-a: 環境を単位としたジャンプ. (line 8) 7.2275 7.2276 -* M-C-e: 環境を単位としたジャンプ. (line 8) 7.2277 7.2278 -* min-out: Cooperation with other packages. (line 18) 7.2279 7.2280 -* M-q: Filling. (line 48) 7.2281 7.2282 -* Mule: Intro. (line 5) 7.2283 7.2284 -* 勝手にincludeonly[かつてにincludeonly]: Includeonly. (line 5) 7.2285 7.2286 -* NTT-jTeX[えぬていいていいしえいてつく]: Filling. (line 16) 7.2287 7.2288 -* platex: Invocation. (line 5) 7.2289 7.2290 -* prefix ,: Commenting out. (line 5) 7.2291 7.2292 -* prefix .: Commenting out. (line 5) 7.2293 7.2294 -* prefix <: Commenting out. (line 5) 7.2295 7.2296 -* prefix >: Commenting out. (line 5) 7.2297 7.2298 -* prefix /: Online help. (line 5) 7.2299 7.2300 -* prefix ?: Online help. (line 5) 7.2301 7.2302 -* prefix &: What column. (line 5) 7.2303 7.2304 -* prefix a: Accent mark completion. (line 5) 7.2305 7.2306 -* prefix b: begin型補完. (line 5) 7.2307 7.2308 -* prefix c: Modifying/Deleting. (line 5) 7.2309 7.2310 -* prefix d: Inclusion hierarchy browser. (line 5) 7.2311 7.2312 -* prefix e: end補完. (line 5) 7.2313 7.2314 -* prefix g: Cursor jump. (line 5) 7.2315 7.2316 -* prefix i: Filling. (line 9) 7.2317 7.2318 -* prefix k: Modifying/Deleting. (line 5) 7.2319 7.2320 -* prefix key: Invocation. (line 5) 7.2321 7.2322 -* prefix l: large型補完. (line 5) 7.2323 7.2324 -* prefix m: maketitle型補完. (line 5) 7.2325 7.2326 -* prefix s: section型補完. (line 5) 7.2327 7.2328 -* prefix SPC: Arbitrary completion. (line 5) 7.2329 7.2330 -* prefix w: Changing mode of YaTeX. (line 5) 7.2331 7.2332 -* prefixキー変更[prefixきいへんこう]: Lisp variables. (line 5) 7.2333 7.2334 -* ページ確認省略lpr起動[へえしかくにんしようりやくlprきとう]: Print out. (line 13) 7.2335 7.2336 -* section型補完[sectionかたほかん]: section型補完. (line 5) 7.2337 7.2338 -* 複雑なtabular[ふくさつなtabular]: What column. (line 5) 7.2339 7.2340 -* 先回りusepackage[さきまわり]: Usepackage cheker. (line 5) 7.2341 7.2342 -* YaTeX-help-file: Online help. (line 17) 7.2343 7.2344 -* YaTeX-help-file-private: Online help. (line 17) 7.2345 7.2346 -* YaTeX-item-regexp: Filling. (line 21) 7.2347 7.2348 -* YaTeX-math-sign-alist-private: Image completion. (line 61) 7.2349 7.2350 -* yatex-mode-hook: Hook variables. (line 5) 7.2351 7.2352 -* yatex-mode-load-hook: Hook variables. (line 5) 7.2353 7.2354 -* YaTeX-nervous: Local dictionary. (line 23) 7.2355 7.2356 -* .yatexrc: Local dictionary. (line 5) 7.2357 7.2358 +* :: Greek letter completion. 4. 7.2359 +* ;: Image completion. 4. 7.2360 +* Σ[しくま]: Image completion. 4. 7.2361 +* 括る[くくる]: Enclose section-type command. 4. 7.2362 +* 括る[くくる]: large型補完. 22. 7.2363 +* 引数[ひきすう]: 2個以上の引数をとる section型コマンド. 4. 7.2364 +* 欧文[おうふん]: Accent mark completion. 4. 7.2365 +* ;自身[;ししん]: Image completion. 32. 7.2366 +* ∞[むけんたい]: Image completion. 4. 7.2367 +* 矢印[やしるし]: Image completion. 4. 7.2368 +* ブロック[ふろつく]: begin型補完. 81. 7.2369 +* ヒストリ[ひすとり]: Cooperation with other packages. 8. 7.2370 +* 桁揃え[けたそろえ]: Filling. 4. 7.2371 +* やちょう[やちよう]: Intro. 4. 7.2372 +* ジャンプ[しやんふ]: view-sectioning. 42. 7.2373 +* &入力[&にゆうりよく]: Intelligent newline. 4. 7.2374 +* 設定例[せつていれい]: Sample definitions. 4. 7.2375 +* 随時補完[すいしほかん]: Arbitrary completion. 4. 7.2376 +* 閉じ込める[としこめる]: begin型補完. 81. 7.2377 +* 再帰補完[さいきほかん]: Recursive completion. 4. 7.2378 +* ユーザ辞書[ゆうさししよ]: begin型補完. 71. 7.2379 +* 論理階層[ろんりかいそう]: view-sectioning. 42. 7.2380 +* ここはどこ?[ここはとこ?]: What column. 4. 7.2381 +* お絵描きツール起動[おえかきつうるきとう]: お絵描きツール起動. 4. 7.2382 +* 環境の先頭へ[かんきようのせんとうへ]: 環境を単位としたジャンプ. 7. 7.2383 +* 環境の末尾へ[かんきようのまつひへ]: 環境を単位としたジャンプ. 7. 7.2384 +* 環境をマーク[かんきようをまあく]: 環境を単位としたジャンプ. 7. 7.2385 +* カスタマイズ[かすたまいす]: Customizations. 4. 7.2386 +* キーアサイン[きいあさいん]: Customizations. 4. 7.2387 +* 数式モード[すうしきもおと]: Image completion. 4. 7.2388 +* インストール[いんすとおる]: Installation. 4. 7.2389 +* タイプセッタ[たいふせつた]: Invocation. 4. 7.2390 +* プレヴューア[ふれひゆうあ]: Invocation. 4. 7.2391 +* アウトライン[あうとらいん]: view-sectioning. 4. 7.2392 +* 引数の個数を変える[ひきすうのこすうをかえる]: 2個以上の引数をとる section型コマンド. 24. 7.2393 +* アクセント記号補完[あくせんときこうほかん]: Accent mark completion. 4. 7.2394 +* カスタマイズ変数一覧[かすたまいすへんすういちらん]: All customizable variables. 4. 7.2395 +* 環境名の補完[かんきようめいのほかん]: begin型補完. 4. 7.2396 +* エラー修正[えらあしゆうせい]: Calling typesetter. 4. 7.2397 +* タイプセッタ起動[たいふせつたきとう]: Calling typesetter. 4. 7.2398 +* タイプセットエラー[たいふせつとえらあ]: Calling typesetter. 4. 7.2399 +* 環境名の変更[かんきようめいのへんこう]: Changing LaTeX command. 20. 7.2400 +* モード切り替え[もうときりかえ]: Changing mode of YaTeX. 4. 7.2401 +* タイプセッタの使い分け[たいふせつたのつかいわけ]: Changing typesetter. 12. 7.2402 +* 起動するコマンドを変える[きとうするこまんとをかえる]: Changing typesetter. 7. 7.2403 +* コメントアウト[こめんとあうと]: Commenting out. 4. 7.2404 +* その他のコマンド制御[そのたのこまんとせいきよ]: Controlling which command to invoke. 4. 7.2405 +* 他パッケージとの連携[たはつけえしとのれんけい]: Cooperation with other packages. 4. 7.2406 +* コマンドヒストリ[こまんとひすとり]: Cooperation with other packages. 8. 7.2407 +* カーソルジャンプ[かあそるしやんふ]: Cursor jump. 4. 7.2408 +* %#記法自体の編集[%#きほうしたいのへんしゆう]: Editing %# notation. 4. 7.2409 +* パラグラフの桁揃え[はらくらふのけたそろえ]: Filling. 47. 7.2410 +* 領域決定規則[りよういきけつていきそく]: Fix region for typesetting. 25. 7.2411 +* 長いファイルの編集[なかいふあいるのへんしゆう]: Fix region for typesetting. 34. 7.2412 +* 固定領域のタイプセット[こていりよういきのたいふせつと]: Fix region for typesetting. 4. 7.2413 +* ギリシャ文字補完[きりしやもしほかん]: Greek letter completion. 4. 7.2414 +* イメージ補完[いめえしほかん]: Image completion. 4. 7.2415 +* 数式記号イメージ補完[すうしききこういめえしほかん]: Image completion. 4. 7.2416 +* 他のファイルの手直し[ほかのふあいるのてなおし]: Includeonly. 11. 7.2417 +* インクルード構造[いんくるうとこうそう]: Inclusion hierarchy browser. 4. 7.2418 +* おまかせ改行[おまかせかいきよう]: Intelligent newline. 4. 7.2419 +* プリントアウト[ふりんとあうと]: Invocation. 4. 7.2420 +* 環境の削除[かんきようのさくしよ]: Killing LaTeX command. 6. 7.2421 +* ラベル自動生成[らへるしとうせいせい]: label-generation. 4. 7.2422 +* フォント指定子[ふおんとしていし]: large型補完. 18. 7.2423 +* 文字サイズ指定子[もしさいすしていし]: large型補完. 18. 7.2424 +* ローカル辞書[ろおかるししよ]: Local dictionary. 4. 7.2425 +* 変更/削除[へんこう/さくしよ]: Modifying/Deleting. 4. 7.2426 +* グローバルヘルプ[くろおはるへるふ]: Online help. 16. 7.2427 +* オンラインヘルプ[おんらいんへるふ]: Online help. 4. 7.2428 +* キーワード検索[きいわあとけんさく]: Online help. 4. 7.2429 +* プライベートヘルプ[ふらいへえとへるふ]: Online help. 16. 7.2430 +* 入力ファイル分割[にゆうりよくふあいるふんかつ]: Splitting input files. 11. 7.2431 +* セクション区切り一覧バッファ[せくしよんくきりいちらんはつふあ]: view-sectioning. 18. 7.2432 +* セクション区切り[せくしよんくきり]: view-sectioning. 42. 7.2433 +* 現在のカラム表示[けんさいのからむひようし]: What column. 23. 7.2434 +* apropos: Online help. 4. 7.2435 +* autoload: Installation. 4. 7.2436 +* auto-mode-alist: Installation. 4. 7.2437 +* %#BEGIN: Fix region for typesetting. 4. 7.2438 +* begin型補完[beginかたほかん]: begin型補完. 4. 7.2439 +* C-c: Invocation. 4. 7.2440 +* Demacs: Intro. 4. 7.2441 +* .emacs: Installation. 4. 7.2442 +* %#END: Fix region for typesetting. 4. 7.2443 +* end補完[endほかん]: end補完. 4. 7.2444 +* ghostview: Splitting input files. 16. 7.2445 +* gmhist: Cooperation with other packages. 8. 7.2446 +* hook変数[hookへんすう]: Hook variables. 4. 7.2447 +* 出力終了ページ[しゆつりよくしゆうりようへえし]: Print out. 9. 7.2448 +* includeonly: Includeonly. 4. 7.2449 +* Install: Installation. 4. 7.2450 +* itemなどの桁揃え[itemなとのけたそろえ]: Filling. 8. 7.2451 +* 出力開始ページ[しゆつりよくかいしへえし]: Print out. 9. 7.2452 +* jlatex: Invocation. 4. 7.2453 +* large型補完[largeかたほかん]: large型補完. 4. 7.2454 +* LaTeX: Intro. 4. 7.2455 +* leftarrow: Image completion. 4. 7.2456 +* lpr format: lpr format. 4. 7.2457 +* lprフォーマットの変更[lprふおおまつとのへんこう]: Editing %# notation. 18. 7.2458 +* lprふぉーまっと[lprふおおまつと]: lpr format. 4. 7.2459 +* lprフォーマット[lprふおおまつと]: lpr format. 4. 7.2460 +* maketitle型補完[maketitleかたほかん]: maketitle型補完. 4. 7.2461 +* M-C-@: 環境を単位としたジャンプ. 7. 7.2462 +* M-C-a: 環境を単位としたジャンプ. 7. 7.2463 +* M-C-e: 環境を単位としたジャンプ. 7. 7.2464 +* min-out: Cooperation with other packages. 17. 7.2465 +* M-q: Filling. 47. 7.2466 +* Mule: Intro. 4. 7.2467 +* 勝手にincludeonly[かつてにincludeonly]: Includeonly. 4. 7.2468 +* NTT-jTeX[えぬていいていいしえいてつく]: Filling. 15. 7.2469 +* platex: Invocation. 4. 7.2470 +* prefix ,: Commenting out. 4. 7.2471 +* prefix .: Commenting out. 4. 7.2472 +* prefix <: Commenting out. 4. 7.2473 +* prefix >: Commenting out. 4. 7.2474 +* prefix /: Online help. 4. 7.2475 +* prefix ?: Online help. 4. 7.2476 +* prefix &: What column. 4. 7.2477 +* prefix a: Accent mark completion. 4. 7.2478 +* prefix b: begin型補完. 4. 7.2479 +* prefix c: Modifying/Deleting. 4. 7.2480 +* prefix d: Inclusion hierarchy browser. 4. 7.2481 +* prefix e: end補完. 4. 7.2482 +* prefix g: Cursor jump. 4. 7.2483 +* prefix i: Filling. 8. 7.2484 +* prefix k: Modifying/Deleting. 4. 7.2485 +* prefix key: Invocation. 4. 7.2486 +* prefix l: large型補完. 4. 7.2487 +* prefix m: maketitle型補完. 4. 7.2488 +* prefix s: section型補完. 4. 7.2489 +* prefix SPC: Arbitrary completion. 4. 7.2490 +* prefix w: Changing mode of YaTeX. 4. 7.2491 +* prefixキー変更[prefixきいへんこう]: Lisp variables. 4. 7.2492 +* ページ確認省略lpr起動[へえしかくにんしようりやくlprきとう]: Print out. 12. 7.2493 +* section型補完[sectionかたほかん]: section型補完. 4. 7.2494 +* 複雑なtabular[ふくさつなtabular]: What column. 4. 7.2495 +* 先回りusepackage[さきまわり]: Usepackage cheker. 4. 7.2496 +* YaTeX-help-file: Online help. 16. 7.2497 +* YaTeX-help-file-private: Online help. 16. 7.2498 +* YaTeX-item-regexp: Filling. 20. 7.2499 +* YaTeX-math-sign-alist-private: Image completion. 57. 7.2500 +* yatex-mode-hook: Hook variables. 4. 7.2501 +* yatex-mode-load-hook: Hook variables. 4. 7.2502 +* YaTeX-nervous: Local dictionary. 22. 7.2503 +* .yatexrc: Local dictionary. 4. 7.2504 + 7.2505 + 7.2506 + 7.2507 7.2508 Tag table: 7.2509 Node: Top149 7.2510 Node: Intro1203 7.2511 Node: Terminology1506 7.2512 -Node: Main features2146 7.2513 -Node: Installation3207 7.2514 -Node: Invocation4431 7.2515 -Node: Calling typesetter5252 7.2516 -Node: Calling previewer6489 7.2517 -Node: Print out6805 7.2518 -Node: %#notation7071 7.2519 -Node: Changing typesetter7445 7.2520 -Node: Splitting input files7703 7.2521 -Node: Fix region for typesetting8664 7.2522 -Node: lpr format9572 7.2523 -Node: Controlling which command to invoke10382 7.2524 -Node: Editing %# notation10777 7.2525 -Node: Completion11235 7.2526 -Node: begin型補完11625 7.2527 -Node: section型補完14208 7.2528 -Node: 2個以上の引数をとる section型コマンド15301 7.2529 -Node: Enclose section-type command16114 7.2530 -Node: Recursive completion16351 7.2531 -Node: view-sectioning16656 7.2532 -Node: label-generation17852 7.2533 -Node: large型補完18202 7.2534 -Node: maketitle型補完18781 7.2535 -Node: Arbitrary completion19080 7.2536 -Node: end補完19393 7.2537 -Node: Accent mark completion19734 7.2538 -Node: Image completion20159 7.2539 -Node: Greek letter completion21973 7.2540 -Node: Local dictionary22433 7.2541 -Node: Commenting out23037 7.2542 -Node: Cursor jump24197 7.2543 -Node: 対応オブジェクトへのジャンプ24414 7.2544 -Node: お絵描きツール起動25400 7.2545 -Node: メインファイルへのジャンプ26315 7.2546 -Node: 環境を単位としたジャンプ26651 7.2547 -Node: 最後の補完位置へのジャンプ27008 7.2548 -Node: Modifying/Deleting27245 7.2549 -Node: Changing LaTeX command27651 7.2550 -Node: Killing LaTeX command28201 7.2551 -Node: Filling29073 7.2552 -Node: Includeonly30403 7.2553 -Node: What column30964 7.2554 -Node: Intelligent newline31743 7.2555 -Node: Usepackage cheker32775 7.2556 -Node: Changing mode of YaTeX33202 7.2557 -Node: Online help33777 7.2558 -Node: Inclusion hierarchy browser34754 7.2559 -Node: Cooperation with other packages36032 7.2560 -Node: Customizations36487 7.2561 -Node: Lisp variables36784 7.2562 -Node: All customizable variables37390 7.2563 -Node: Sample definitions44712 7.2564 -Node: Hook variables45146 7.2565 -Node: Hook file46040 7.2566 -Node: Add-in functions46246 7.2567 -Node: Etc46473 7.2568 -Node: Copying46758 7.2569 -Node: Concept Index47382 7.2570 +Node: Main features2141 7.2571 +Node: Installation3174 7.2572 +Node: Invocation4392 7.2573 +Node: Calling typesetter5211 7.2574 +Node: Calling previewer6448 7.2575 +Node: Print out6764 7.2576 +Node: %#notation7030 7.2577 +Node: Changing typesetter7458 7.2578 +Node: Splitting input files7716 7.2579 +Node: Fix region for typesetting8668 7.2580 +Node: lpr format9569 7.2581 +Node: Controlling which command to invoke10378 7.2582 +Node: Editing %# notation10779 7.2583 +Node: Completion11236 7.2584 +Node: begin型補完11709 7.2585 +Node: section型補完14293 7.2586 +Node: 2個以上の引数をとる section型コマンド15388 7.2587 +Node: Enclose section-type command16206 7.2588 +Node: Recursive completion16443 7.2589 +Node: view-sectioning16749 7.2590 +Node: label-generation17945 7.2591 +Node: large型補完18294 7.2592 +Node: maketitle型補完18874 7.2593 +Node: Arbitrary completion19173 7.2594 +Node: end補完19486 7.2595 +Node: Accent mark completion19828 7.2596 +Node: Image completion20253 7.2597 +Node: Greek letter completion22070 7.2598 +Node: Local dictionary22530 7.2599 +Node: Commenting out23135 7.2600 +Node: Cursor jump24294 7.2601 +Node: 対応オブジェクトへのジャンプ24531 7.2602 +Node: お絵描きツール起動25519 7.2603 +Node: メインファイルへのジャンプ26439 7.2604 +Node: 環境を単位としたジャンプ26775 7.2605 +Node: 最後の補完位置へのジャンプ27132 7.2606 +Node: Modifying/Deleting27369 7.2607 +Node: Changing LaTeX command27775 7.2608 +Node: Killing LaTeX command28326 7.2609 +Node: Filling29197 7.2610 +Node: Includeonly30526 7.2611 +Node: What column31087 7.2612 +Node: Intelligent newline31866 7.2613 +Node: Usepackage cheker32899 7.2614 +Node: Changing mode of YaTeX33325 7.2615 +Node: Online help33901 7.2616 +Node: Inclusion hierarchy browser34877 7.2617 +Node: Cooperation with other packages36155 7.2618 +Node: Customizations36610 7.2619 +Node: Lisp variables36907 7.2620 +Node: All customizable variables37514 7.2621 +Node: Sample definitions44815 7.2622 +Node: Hook variables45249 7.2623 +Node: Hook file46143 7.2624 +Node: Add-in functions46349 7.2625 +Node: Etc46576 7.2626 +Node: Copying46860 7.2627 +Node: Concept Index47491 7.2628 7.2629 End tag table
8.1 --- a/docs/yatexj.tex Thu May 10 11:10:13 2012 +0900 8.2 +++ b/docs/yatexj.tex Thu May 10 11:40:02 2012 +0900 8.3 @@ -1,2256 +1,2256 @@ 8.4 -\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 8.5 -\input texinfo 8.6 -@setfilename yatexj 8.7 -@settitle Yet Another tex-mode for Emacs 8.8 - 8.9 -@iftex 8.10 -@c @syncodeindex fn cp 8.11 -@c いつも忘れるのでここに書いとくか。 8.12 -@c C-l C-c n でノード入れ 8.13 -@c ノードいじったら C-l C-u C-n 全部のノード更新 C-l C-u C-e 8.14 -@c メニュー増やしたら C-l C-u C-m 全部のメニュー更新 C-l C-u C-a 8.15 -@c フォーマットするときは C-l C-e C-b 8.16 -@c Last modified Sun Apr 15 22:53:14 2012 on firestorm 8.17 -@syncodeindex vr cp 8.18 -@end iftex 8.19 - 8.20 -@titlepage 8.21 -@sp 10 8.22 -@center 8.23 -@subtitle Yet Another tex-mode for emacs 8.24 -@title 『野鳥』 8.25 -@subtitle // YaTeX // 8.26 -@author @copyright{} 1991-2004 by HIROSE, Yuuji [yuuji@@yatex.org] 8.27 -@end titlepage 8.28 - 8.29 -@node Top, Intro, (dir), (dir) 8.30 -@comment node-name, next, previous, up 8.31 - 8.32 -@menu 8.33 -* Intro:: はじめに 8.34 -* Terminology:: マニュアル参照上の注意 8.35 -* Main features:: 主な機能 8.36 -* Installation:: インストール 8.37 -* Invocation:: プロセス起動 8.38 -* %#notation :: %#記法 8.39 -* Completion:: 補完入力 8.40 -* Local dictionary:: ローカル辞書 8.41 -* Commenting out:: コメントアウト 8.42 -* Cursor jump:: カーソルジャンプ 8.43 -* Modifying/Deleting:: LaTeXコマンドの変更/削除 8.44 -* Filling:: 桁揃え 8.45 -* Includeonly:: 勝手に includeonly 8.46 -* What column:: カラム位置ガイド 8.47 -* Intelligent newline:: おまかせ改行 8.48 -* Usepackage cheker:: 先回りusepackage 8.49 -* Changing mode of YaTeX:: 野鳥動作モード変更 8.50 -* Online help:: LaTeXオンラインヘルプ 8.51 -* Inclusion hierarchy browser:: ファイル分割階層構造の表示 8.52 -* Cooperation with other packages:: 他パッケージとの連携 8.53 -* Customizations:: カスタマイズ 8.54 -* Etc:: その他 8.55 -* Copying:: 取り扱い 8.56 -* Concept Index:: 索引 8.57 - 8.58 -@end menu 8.59 - 8.60 -@node Intro, Terminology, Top, Top 8.61 -@comment node-name, next, previous, up 8.62 -@chapter はじめに 8.63 -@cindex Demacs 8.64 -@cindex Mule 8.65 -@cindex LaTeX 8.66 -@cindex やちょう[やちよう] 8.67 - 8.68 - 野鳥は、GNU Emacs で La@TeX{} 用の文書を作成する時に pLa@TeX{} などの 8.69 -タイプセットコマンドや、プレヴューアの起動を Emacs 編集画面中から 8.70 -行えるようにすると共に、拡張性の高い種々の補完機能によりソーステキ 8.71 -ストの編集を支援します。さらに La@TeX{} コマンドのオンラインヘルプに 8.72 -よりマニュアルを調べる手間を軽減します。 8.73 - 8.74 - English manual @xref{Top, , , yatexe,YaTeX English info}. 8.75 - 8.76 -@node Terminology, Main features, Intro, Top 8.77 -@comment node-name, next, previous, up 8.78 -@chapter 本マニュアル参照上の注意 8.79 - 8.80 - 本マニュアルでは以下の表記を用います。 8.81 - 8.82 -@itemize @bullet 8.83 -@item 8.84 -begin型コマンド 8.85 - 8.86 -@code{\begin@{環境@} 〜 \end@{環境@}}という形式のLaTeXコマンドを指します。 8.87 -begin型コマンドを補完入力することをbegin型補完と呼びます。 8.88 - 8.89 -@item 8.90 -section型コマンド 8.91 - 8.92 -@code{\section@{タイトル@}}や@code{\mbox@{内容@}}のように 8.93 -引数を取るLaTeXコマンドを指します。 8.94 - 8.95 -@item 8.96 -maketitle型コマンド 8.97 - 8.98 -@code{\maketitle}や@code{\tableofcontents}のように引数を取らないLaTeXコマ 8.99 -ンドを指します。 8.100 - 8.101 -@item 8.102 -large型コマンド 8.103 - 8.104 -@code{@{\large ...@}} や @code{@{\tt ...@}} のようなフォント/サイズ指定子 8.105 -を指します。 8.106 - 8.107 -@item @kbd{[prefix]} 8.108 - 8.109 -野鳥の機能を呼び出すためのプリフィクスキー。デフォルトでは@kbd{C-c}に割り 8.110 -当てられているので、特に変更していない場合本マニュアルの @kbd{[prefix]} と 8.111 -いう表記は、@kbd{C-c} と読み換えてください。 8.112 -@end itemize 8.113 - 8.114 -@node Main features, Installation, Terminology, Top 8.115 -@comment node-name, next, previous, up 8.116 -@chapter 主な機能 8.117 - 8.118 -@itemize @bullet 8.119 -@item タイプセッタやプレヴューアなどの編集画面からの起動(@kbd{C-c t}) 8.120 -@item カーソル位置によらない固定リジョンの部分タイプセット 8.121 -@item \includeonlyのワンタッチ更新 8.122 -@item エラー箇所への自動ジャンプ(@kbd{C-c '}) 8.123 -@item @code{\begin@{@}, \end@{@}, \section...} などの La@TeX{} 8.124 -コマンドの補完入力 8.125 -(@kbd{C-c b}, @kbd{C-c s}, @kbd{C-c l}, @kbd{C-c m}) 8.126 -@item 既に入力したテキストを環境やコマンド引数の中に取り込む括り補完 8.127 -(@kbd{C-u} +通常補完キー) 8.128 -@item セクション区切り入力時の文書構造アウトライン表示 8.129 -@item セクションコマンドの一括シフト (@ref{view-sectioning}) 8.130 -@item 補完辞書の学習 8.131 -@item La@TeX{} の環境やコマンドに応じたガイド付き引数入力 8.132 -@item 野鳥にないガイド付き引数入力関数の自動生成(@file{yatexgen.el}) 8.133 -@item La@TeX{} コマンドの削除/変更(@kbd{C-c k}, @kbd{C-c c}) 8.134 -@item ファイル間、@code{\begin}<->@code{\end}間、 8.135 - @code{\ref}<->@code{\label}間、 8.136 - @code{\cite}<->@code{\bibitem}ジャンプ(@kbd{C-c g}) 8.137 -@item 一括コメントアウト/アンコメントアウト 8.138 - (@kbd{C-c >}, @kbd{C-c <}, @kbd{C-c ,}, @kbd{C-c .}) 8.139 -@item アクセント記号/数式環境用コマンド/ギリシャ文字の入力支援 8.140 - (@kbd{C-c a}, @kbd{;}, @kbd{/}) 8.141 -@item tabular/array環境のカラム位置ガイド 8.142 -@item 標準的 La@TeX{} コマンドのオンラインヘルプ(@kbd{C-c ?}, @kbd{C-c /}) 8.143 -@item ドキュメントのインクルード構造の視覚的表示とバッファ切り替え 8.144 -(@kbd{C-c d}) 8.145 -@item 補完入力したマクロに応じて必要な \userpackage を入れてくれる先回り 8.146 -userpackage 8.147 -@item \labelを打つことはもう忘れよう! refやcite補完入力で自動生成します 8.148 -@end itemize 8.149 - 8.150 -@node Installation, Invocation, Main features, Top 8.151 -@comment node-name, next, previous, up 8.152 -@chapter 起動法 8.153 -@cindex Install 8.154 -@cindex インストール[いんすとおる] 8.155 -@cindex .emacs 8.156 -@cindex auto-mode-alist 8.157 -@cindex autoload 8.158 -@section 野鳥起動のための設定 8.159 - 8.160 - ~/.emacsに下の2項目を加えます。 8.161 - 8.162 -@lisp 8.163 -(setq auto-mode-alist 8.164 - (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) 8.165 -(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) 8.166 -@end lisp 8.167 - 8.168 -次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に加えます。 8.169 -たとえば、 @file{~/src/emacs/yatex}に置くのであれば、 8.170 - 8.171 -@lisp 8.172 -(setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path)) 8.173 -@end lisp 8.174 - 8.175 -@noindent 8.176 -などとします。 8.177 - 8.178 - 以上の設定により、拡張子が .tex であるファイルを編集すると自動的に野鳥が 8.179 -ロードされます。野鳥が正常に起動できたときはモードラインの表示が「やてふ」 8.180 -に変わります。 8.181 - 8.182 -@section タイプセッタ/プレヴューア環境の設定 8.183 - 8.184 - 利用する外部プログラムに関する以下の変数を確認し、必要なら正しい値に変更 8.185 -します。 8.186 -@table @code 8.187 -@item tex-command 8.188 - @dots{} 起動するタイプセッタのコマンド名 8.189 -@item dvi2-command 8.190 - @dots{} 起動するプレヴューアのコマンド名 8.191 -@item NTT-jTeX 8.192 - @dots{} 改行+インデントによって、タイプセット後の字間が空いてしま 8.193 - うのを抑制する場合にtにする(古いNTT-jTeXで顕著に現れる)。具体的には、 8.194 - fillするときに各行の終わりに%を付加するようになる。 8.195 -@item YaTeX-kanji-code 8.196 - @dots{} 文書を作成する時の漢字コード 8.197 -@item dviprint-command-format 8.198 - @dots{} ファイルの印刷に使われるコマンド列の書式 8.199 -@item makeindex-command 8.200 - @dots{} makeindexコマンド 8.201 -@end table 8.202 - 8.203 -これらを変更する場合は、やはり@file{~/.emacs}にて、たとえば 8.204 -@lisp 8.205 -(setq tex-command "pdflatex") 8.206 -@end lisp 8.207 -のようにしてください。どのような値をセットすれば良いかについては、 8.208 -@ref{All customizable variables}を参照してください。 8.209 - 8.210 - 8.211 -@node Invocation, %#notation , Installation, Top 8.212 -@comment node-name, next, previous, up 8.213 -@chapter latexコマンド起動 8.214 -@cindex prefix key 8.215 -@cindex C-c 8.216 -@cindex タイプセッタ[たいふせつた] 8.217 -@cindex プレヴューア[ふれひゆうあ] 8.218 -@cindex jlatex 8.219 -@cindex platex 8.220 -@cindex プリントアウト[ふりんとあうと] 8.221 - 8.222 -LaTeXソースの編集中、次のキー入力により、platex などのタイプセットプログラ 8.223 -ム(以後タイプセッタと呼ぶ)、プレヴューアなどの起動ができます。 8.224 - 8.225 -@table @kbd 8.226 -@item [prefix] t j 8.227 - @dots{} タイプセッタ(platex)起動 8