yatex

changeset 277:29ab3f4fcd9e

The dev branch pulled up to the default branch
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 14 May 2012 18:39:05 +0900
parents 5d8f03ba4285 6188dcbf8d2f
children 130c104fe22e 784b25b062cc
files
diffstat 21 files changed, 8895 insertions(+), 8430 deletions(-) [+]
line diff
     1.1 --- a/.hgignore	Thu Jan 12 12:27:20 2012 +0900
     1.2 +++ b/.hgignore	Mon May 14 18:39:05 2012 +0900
     1.3 @@ -5,6 +5,15 @@
     1.4  .cvsignore
     1.5  [._]win*
     1.6  __emacs
     1.7 -docs/*
     1.8  *.swp
     1.9  trashbox
    1.10 +*.aux
    1.11 +*.cp
    1.12 +*.dvi
    1.13 +*.fn
    1.14 +*.ky
    1.15 +*.log
    1.16 +*.pg
    1.17 +*.toc
    1.18 +*.tp
    1.19 +*.vr
     2.1 --- a/.hgtags	Thu Jan 12 12:27:20 2012 +0900
     2.2 +++ b/.hgtags	Mon May 14 18:39:05 2012 +0900
     2.3 @@ -2,4 +2,5 @@
     2.4  ce2deaceb818dad84bb6a06079cceddeca2f3ef7 yatex-1.74
     2.5  801593454c59be43ddc14f725c647ab379b44c32 start-branch-for-1.75
     2.6  6be1692f81cd35d0ea6022840c9f7e28af6c8e66 start-for-1.75
     2.7 +cb1906082153a03966183a861889f5d96c73d399 start-for-1.76
     2.8  33c8875f52f9cc99f1f67cbad4e9145171d2d262 yatex-1.75
     3.1 --- a/docs/yahtmle	Thu Jan 12 12:27:20 2012 +0900
     3.2 +++ b/docs/yahtmle	Mon May 14 18:39:05 2012 +0900
     3.3 @@ -1,531 +1,535 @@
     3.4 -Info file: yahtmle,    -*-Text-*-
     3.5 -produced by `texinfo-format-buffer'
     3.6 -from file `yahtmle.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: yahtmle, Node: Top, Next: Intro, Prev: (dir), Up: (dir)
    3.15 -
    3.16 -* Menu:
    3.17 -
    3.18 -* Intro::                       Introduction
    3.19 -* Installation::                Installing yahtml
    3.20 -* Command Invocation::          Using External Commands
    3.21 -* Completion::                  Input with Completion
    3.22 -* Jump::                        Moving the Cursor
    3.23 -* Changing and Deleting::       Changing and Deleting
    3.24 -* CSS Support::                 Style Sheet Support
    3.25 -* Customizations::              List of Customize Variables
    3.26 -* Copying::                     Copyright
    3.27 -* Concept Index::               Index
    3.28 -
    3.29 -
    3.30 -
    3.31 -File: yahtmle, Node: Intro, Next: Installation, Prev: Top, Up: Top
    3.32 -
    3.33 -Introduction
    3.34 -************
    3.35 -
    3.36 -yahtml is a package to support creating HTML documents on Emacsens.  Easy
    3.37 -input of elements (tags) by completion, syntax checking with programs like
    3.38 -weblint, and invoking the appropriate browser or image viewer depending on
    3.39 -the cursor position is its main features.
    3.40 -
    3.41 -(This Info is still incomplete)
    3.42 -
    3.43 -
    3.44 -
    3.45 -File: yahtmle, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top
    3.46 -
    3.47 -Installing yahtml
    3.48 -*****************
    3.49 -* Menu:
    3.50 -
    3.51 -* Setting up yahtml::           
    3.52 -* Setting environments for weblint browsers and image viewers::  
    3.53 -* Setting environment variables for WWW pages::  
    3.54 -
    3.55 -
    3.56 -
    3.57 -File: yahtmle, Node: Setting up yahtml, Next: Setting environments for weblint browsers and image viewers, Prev: Installation, Up: Installation
    3.58 -
    3.59 -Setting up yahtml
    3.60 -=================
    3.61 -
    3.62 -
    3.63 -Add the following to `~/.emacs'
    3.64 -
    3.65 -     (setq auto-mode-alist
    3.66 -           (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
    3.67 -     (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
    3.68 -
    3.69 -Next, add to load-path the directory with the yahtml files (`yahtml.el',
    3.70 -`yatexlib.el', `yatexprc.el').  For example, if you put them in
    3.71 -`~/src/emacs/yahtml',
    3.72 -
    3.73 -     (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path))
    3.74 -
    3.75 -is what you add.
    3.76 -
    3.77 -By this, yahtml will be automatically loaded when editing files with .html
    3.78 -extensions.  "yahtml" will be displayed on the mode line if no errors
    3.79 -occurred.
    3.80 -
    3.81 -
    3.82 -
    3.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
    3.84 -
    3.85 -Setting environments for weblint, browsers, and image viewers
    3.86 -=============================================================
    3.87 -
    3.88 -Check the variables for invoking external commands and modify as needed.
    3.89 -Defaults are in parenthesis.
    3.90 -
    3.91 -`yahtml-www-browser'
    3.92 -             ... browser command name (netscape)
    3.93 -`yahtml-image-viewer'
    3.94 -             ... image viewer command name (xv)
    3.95 -`yahtml-lint-program'
    3.96 -             ... syntax check programs command name (jweblint)
    3.97 -`yahtml-kanji-code'
    3.98 -             ... kanji code for HTML files
    3.99 -
   3.100 -
   3.101 -
   3.102 -File: yahtmle, Node: Setting environment variables for WWW pages, Prev: Setting environments for weblint browsers and image viewers, Up: Installation
   3.103 -
   3.104 -Setting environment variables for WWW pages
   3.105 -===========================================
   3.106 -
   3.107 -Variables regarding path names for files that will be your home page.
   3.108 -`yahtml-path-url-alist'
   3.109 -             ... list of matching path name on file system and URLs
   3.110 -`yahtml-directory-index'
   3.111 -             ... index file displayed when none is given in URL.  Usually
   3.112 -     `index.html' on NCSA type httpd and `Welcome.html' on CERN types.
   3.113 -
   3.114 -Examples for `yahtml-path-url-alist'.  If `/home/yuuji/http/' is
   3.115 -`http://localhost/~yuuji' at home and `/usr/home/yuuji/www/' is
   3.116 -`http://www.keio.ac.jp/~yuuji/' at work, then
   3.117 -
   3.118 -     (setq yahtml-path-url-alist
   3.119 -           '(("/home/yuuji/http" . "http://localhost/~yuuji")
   3.120 -             ("/usr/home/yuuji/www" . "http://www.keio.ac.jp/~yuuji")))
   3.121 -
   3.122 -Any number of additions can be made to this list.
   3.123 -
   3.124 -
   3.125 -
   3.126 -File: yahtmle, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top
   3.127 -
   3.128 -Invoking external commands
   3.129 -**************************
   3.130 -
   3.131 -For easy use of commands that are handy when editing HTML files.
   3.132 -`[prefix] t j'
   3.133 -             ... Invoke HTML syntax checker (jweblint)
   3.134 -`[prefix] t p'
   3.135 -             ... Display current page in browser
   3.136 -`[prefix] t r'
   3.137 -             ... Reload current page if browser is already running
   3.138 -
   3.139 -
   3.140 -
   3.141 -File: yahtmle, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top
   3.142 -
   3.143 -Completion Input
   3.144 -****************
   3.145 -
   3.146 -Completion input of HTML elements is done through the same key strokes as
   3.147 -YaTeX's begin-type completion, section-type completion, large-type
   3.148 -completion, maketitle-type completion, and accent completion.
   3.149 -Corresponding elements in this order is; elements that span multiple
   3.150 -lines, empty elements such as img, tags that start and end in a single
   3.151 -line, elements with no attributes or contents, and special or symbol
   3.152 -entities.
   3.153 -
   3.154 -`[prefix] b (YaTeX begin-type completion)'
   3.155 -     ...
   3.156 -          <ul>
   3.157 -          </ul>
   3.158 -
   3.159 -     Completion for elements that the start tag and the end tag span
   3.160 -     multiple lines. Mostly block-level elements.
   3.161 -
   3.162 -`[prefix] s (YateX section-type completion)'
   3.163 -     ...
   3.164 -          <img src="foo.gif" alt="photo">
   3.165 -
   3.166 -     Completion for elements that do not have end tags and require only
   3.167 -     attributes.  Possible completions are, <img>, <input>.
   3.168 -
   3.169 -`[prefix] l (YaTeX large-type completion)'
   3.170 -     ... 
   3.171 -
   3.172 -          <big> $B!A(B </big>
   3.173 -
   3.174 -     Similar to begin-type completion but used for elements that start and
   3.175 -     end on a single line.
   3.176 -
   3.177 -
   3.178 -`[prefix] m (YaTeX maketitle-type completion)'
   3.179 -     ... Completion for elements without attributes or contents.  Possible
   3.180 -     completion is <br>
   3.181 -
   3.182 -`[prefix] a (YaTeX accent completion)'
   3.183 -     ... Used to enter special or symbol entities.  By default completion
   3.184 -     for < (&lt;), > (&gt;), & (&amp;), " (&quot;), ' (&apos;), blank
   3.185 -     (&nbsp;) is possible.
   3.186 -
   3.187 -
   3.188 -
   3.189 -File: yahtmle, Node: Jump, Next: Changing and Deleting, Prev: Completion, Up: Top
   3.190 -
   3.191 -Cursor Movement
   3.192 -***************
   3.193 -By using
   3.194 -
   3.195 -`[prefix] g'
   3.196 -             ... move to corresponding object
   3.197 -
   3.198 -the cursor will go to the corresponding object according to the context.
   3.199 -Recognized contexts are
   3.200 -
   3.201 -   * `<TAG>' <--> `</TAG>'
   3.202 -   * `<img src="image.file">' -> invoke viewer
   3.203 -   * `<a href="link.to.somewhere">' -> move cursor to linked target
   3.204 -   * `<applet code="program">' -> open Java source
   3.205 -
   3.206 -
   3.207 -
   3.208 -File: yahtmle, Node: Changing and Deleting, Next: CSS Support, Prev: Jump, Up: Top
   3.209 -
   3.210 -Changing and Deleting
   3.211 -*********************
   3.212 -
   3.213 -* Menu:
   3.214 -
   3.215 -* Changing tags in pairs::      
   3.216 -* Changing entities::           
   3.217 -* URLencoding of strings within region::  
   3.218 -
   3.219 -
   3.220 -
   3.221 -File: yahtmle, Node: Changing tags in pairs, Next: Changing entities, Prev: Changing and Deleting, Up: Changing and Deleting
   3.222 -
   3.223 -Changing tags in pairs
   3.224 -======================
   3.225 -By using
   3.226 -
   3.227 -`[prefix] c'
   3.228 -             ... change tags in matching pairs
   3.229 -
   3.230 -the content can be changed according to the context of the HTML document
   3.231 -where the cursor is located.
   3.232 -
   3.233 -   * `<TAG>'$B!A(B`</TAG>'
   3.234 -     ... change `TAG' element name
   3.235 -   * attributes such as `<img src="image.file" alt="photo">'
   3.236 -     ... change attributes
   3.237 -
   3.238 -
   3.239 -
   3.240 -File: yahtmle, Node: Changing entities, Next: URLencoding of strings within region, Prev: Changing tags in pairs, Up: Changing and Deleting
   3.241 -
   3.242 -Changing entities
   3.243 -=================
   3.244 -Special characters such as < or > must be written as &lt; and &gt;.  Easy
   3.245 -conversion of these characters can be done when importing text from non
   3.246 -HTML files.
   3.247 -
   3.248 -
   3.249 -`[prefix] ;'
   3.250 -             ... convert char to special entity in marked region
   3.251 -`[prefix] :'
   3.252 -             ... convert special entity to original char in marked region
   3.253 -     (reverse of [prefix] ;)
   3.254 -
   3.255 -
   3.256 -
   3.257 -
   3.258 -File: yahtmle, Node: URLencoding of strings within region, Next: td-enclosure/tr-enclosure, Prev: Changing entities, Up: Changing and Deleting
   3.259 -
   3.260 -URLencoding of strings within region
   3.261 -====================================
   3.262 -
   3.263 -`[prefix] #'
   3.264 -     	... encode chars that needs to be URLencoded within region
   3.265 -
   3.266 -
   3.267 -
   3.268 -File: yahtmle, Node: td-enclosure/tr-enclosure, Prev: URLencoding of strings within region, Up: Changing and Deleting
   3.269 -
   3.270 -td-enclosure/tr-enclosure
   3.271 -=========================
   3.272 -If you wan to convert series of field into <td>...</td> repetitions for
   3.273 -table element, td-enclosure or tr-enclosure is convenient.
   3.274 -
   3.275 -      `[prefix] '}
   3.276 -     
   3.277 -     	... Enclose each field in a region into <td>...</td>'s.
   3.278 -      `[prefix] ]'
   3.279 -     
   3.280 -     	... Enclose each line in a region into <tr>...</tr>'s, with every
   3.281 -line converted to <td>...</td> repetition.  They presume white space as
   3.282 -field separator by default.  To change this, enter other delimiting
   3.283 -character for a query.  You can convert CSV, for example, into table by
   3.284 -specifying comma(,) as a delimiter.
   3.285 -
   3.286 -If you want to enclose fields with th, call with universal-argument
   3.287 -(`C-u').  Enter `th' to enclose fields with <th>...</th>.  The special
   3.288 -answer `thd' means that enclose the only first column with th, and the
   3.289 -rest with td.
   3.290 -
   3.291 -
   3.292 -
   3.293 -File: yahtmle, Node: CSS Support, Next: Customizations, Prev: Changing and Deleting, Up: Top
   3.294 -
   3.295 -CSS(Style Sheets) Support
   3.296 -*************************
   3.297 -
   3.298 -* Menu:
   3.299 -
   3.300 -* CSS-class completion::        
   3.301 -* Reread CSS definition::       
   3.302 -
   3.303 -
   3.304 -
   3.305 -File: yahtmle, Node: CSS-class completion, Next: Reread CSS definition, Prev: CSS Support, Up: CSS Support
   3.306 -
   3.307 -CSS class-name completion
   3.308 -=========================
   3.309 -You can input a class name in your CSS definition with completion.  If you
   3.310 -have CSS defined as below;
   3.311 -
   3.312 -      h1.foo, h2.foo { background-color: 0xffffff; }
   3.313 -      h1.bar, h2.bar { font-size: 120%; }
   3.314 -
   3.315 -when you input h1(or h2) tag with completing-read by [prefix] b or
   3.316 -[prefix] l, yahtml prompts you to input class name with completion from
   3.317 -the words which are effective to h1 or h2.  And if you defined global
   3.318 -class like this;
   3.319 -
   3.320 -      .caution { font-size: 120%; background-color: 0xc00000;}
   3.321 -
   3.322 -when you input any tags via completing-read, yahtml prompts you to input
   3.323 -class name.  If this is bothering, typing `C-j' instead of `RET' (or
   3.324 -`C-m') cancels the next prompt to class name completion.
   3.325 -
   3.326 -
   3.327 -
   3.328 -File: yahtmle, Node: Reread CSS definition, Prev: CSS-class completion, Up: CSS Support
   3.329 -
   3.330 -Re-reading CSS definition
   3.331 -=========================
   3.332 -If you add some class to your CSS file and you want yahtml to load new
   3.333 -definitions, type `M-x yahtml-mode RET' to make yahtml do.
   3.334 -
   3.335 -
   3.336 -
   3.337 -File: yahtmle, Node: Customizations, Next: Copying, Prev: CSS Support, Up: Top
   3.338 -
   3.339 -Customizations
   3.340 -**************
   3.341 -
   3.342 -Variables that modify yahtml's behavior.
   3.343 -
   3.344 -* Menu:
   3.345 -
   3.346 -* All customizable variables::  List of customizable variables
   3.347 -* Hook variables::              hook variables
   3.348 -
   3.349 -
   3.350 -
   3.351 -File: yahtmle, Node: All customizable variables, Next: Hook variables, Prev: Customizations, Up: Customizations
   3.352 -
   3.353 -List of customizable variables.  Defaults in parenthesis
   3.354 -========================================================
   3.355 -
   3.356 - -- Variable: yahtml-prefix
   3.357 -     Prefix key for yahtml-mode.  (`\C-c')
   3.358 -
   3.359 - -- Variable: yahtml-image-viewer
   3.360 -     Command to view image files refered by img. (xv)
   3.361 -
   3.362 - -- Variable: yahtml-www-browser
   3.363 -     Browser to view external pages with `[prefix]g'. (netscape)
   3.364 -
   3.365 - -- Variable: yahtml-kanji-code
   3.366 -     Default kanji code. 1=sjis, 2=jis, 3=euc, 4=utf-8 (2) If AddType
   3.367 -     "text/html; charset=xxx" .html is written in .htaccess, this will
   3.368 -     override yahtml-kanji-code.
   3.369 -
   3.370 - -- Variable: yahtml-fill-column
   3.371 -     Columns to auto-fill (72)
   3.372 -
   3.373 - -- Variable: yahtml-fill-prefix
   3.374 -     fill-prefix specific to yahtml-mode. (`nil')
   3.375 -
   3.376 - -- Variable: yahtml-path-url-alist
   3.377 -     Matching list of URL and full path name on OS's file system.
   3.378 -
   3.379 - -- Variable: yahtml-directory-index
   3.380 -     Default index filed opened when accessing a server without a
   3.381 -     filename, usually index.html. (`"index.html"')
   3.382 -
   3.383 - -- Variable: yahtml-lint-program
   3.384 -     HTML syntax check program. (`"jweblint"')
   3.385 -
   3.386 - -- Variable: yahtml-hate-too-deep-indentation
   3.387 -     setq to t when indentations for nested enumerate elements are too
   3.388 -     deep.  (`nil')
   3.389 -
   3.390 - -- Variable: yahtml-always-/p
   3.391 -     setq to t if you always want `</p>' after `</p>'. `nil'
   3.392 -
   3.393 - -- Variable: yahtml-p-prefered-env-regexp
   3.394 -     Elements that `<p>' will be automatically inserted.
   3.395 -     (`"^\\(body\\|dl\\|blockquote\\)"')
   3.396 -
   3.397 - -- Variable: yahtml-template-file
   3.398 -     File to automatically insert when editing a new HTML file.
   3.399 -     `"~/http/template.html"'
   3.400 -
   3.401 - -- Variable: yahtml-prefer-upcases
   3.402 -     Use uppercase for tags. `nil'
   3.403 -
   3.404 - -- Variable: yahtml-prefer-upcase-attributes
   3.405 -     Use uppercase for attributes. `nil'
   3.406 -
   3.407 - -- Variable: yahtml-server-type
   3.408 -     setq to 'apache if using a Apache server, and will refer ./.htaccess.
   3.409 -     `'apache'
   3.410 -
   3.411 - -- Variable: yahtml-apache-access-file
   3.412 -     When `yahtml-server-type' is `'apache', define name of access
   3.413 -     restriction file. `".htaccess"'
   3.414 -
   3.415 - -- Variable: yahtml-shell-command-option
   3.416 -     Options needed to invoke shell commands.
   3.417 -
   3.418 - -- Variable: yahtml-translate-hyphens-when-comment-region
   3.419 -     Whether to change hyphens to `&#45;' when commenting out region.
   3.420 -     (`t')
   3.421 -
   3.422 - -- Variable: yahtml-entity-reference-chars-alist
   3.423 -     alist of characters that needs to be written by Entity Reference.
   3.424 -     Enter as `'(?char . "EntityReference")'.  By default, `<', `>', `&',
   3.425 -     `'', is set.  Add as needed.  Do not include `&' at beginning and `;'
   3.426 -     at end of cdr portion of `"EntityReference"'.
   3.427 -
   3.428 - -- Variable: yahtml-faithful-to-htmllint
   3.429 -     When using htmllint to check syntax, it will complain about excess
   3.430 -     spaces.  setq to `t' to avoid this.
   3.431 -
   3.432 - -- Variable: yahtml-use-css
   3.433 -     Use style-sheet support or not (`t')
   3.434 -
   3.435 - -- Variable: yahtml-image-inspection-bytes
   3.436 -     Number of bytes to inspect the image for geometry information
   3.437 -     (`10000')
   3.438 -
   3.439 - -- Variable: yahtml:img-default-alt-format
   3.440 -     format of img entity's ALT attributes.  %x: width, %y: height, %s:
   3.441 -     size in bytes, %c: first comment string, %f: filename
   3.442 -     (`"%xx%y(%sbytes)"')
   3.443 -
   3.444 - -- Variable: yahtml-escape-chars
   3.445 -     When, completing href-s, Escape reserved characters to URL-encoding
   3.446 -     or not.  Nil for never, t for everytime, and 'ask for inquiring at
   3.447 -     each reserved chars. (`'ask')
   3.448 -
   3.449 - -- Variable: yahtml-use-font-lock
   3.450 -     Use font-lock to fontify buffer or not (`(featurep 'font-lock)')
   3.451 -
   3.452 - -- Variable: yahtml-use-hilit19
   3.453 -     Use hilit19 to highlight buffer or not (`(featurep 'hilit19)')
   3.454 -
   3.455 - -- Variable: yahtml-indentation-boundary
   3.456 -     Boundary regexp for indentation calculation.  (`"^\\s *<h[1-3]>"')
   3.457 -
   3.458 -
   3.459 -
   3.460 -File: yahtmle, Node: Hook variables, Prev: All customizable variables, Up: Customizations
   3.461 -
   3.462 -hook variables
   3.463 -==============
   3.464 -
   3.465 -
   3.466 -
   3.467 -
   3.468 -File: yahtmle, Node: Copying, Next: Concept Index, Prev: Customizations, Up: Top
   3.469 -
   3.470 -Copying
   3.471 -*******
   3.472 -
   3.473 -This program is distributed as freesoftware.  The author will take no
   3.474 -responsibility to any damages due to the usage of this software
   3.475 -whatsoever.  There are no restrictions to its redistribution, just use
   3.476 -common sense.  Mail me your thoughts on this program and I will be more
   3.477 -than willing to help.
   3.478 -
   3.479 -Complaints, requests, bug reports and comments are welcome.  Make contacts
   3.480 -to yuuji@yatex.org$B!!(B(as of December 2000)
   3.481 -
   3.482 -If you like this program and use it on a regular basis, please join the
   3.483 -mailing list "fj Wild Bird Society".  Procedures can be found in the "etc"
   3.484 -section of `docs/htmlqa.eng' in this package.
   3.485 -
   3.486 -
   3.487 -                                                             HIROSE, Yuuji
   3.488 -
   3.489 -
   3.490 -
   3.491 -
   3.492 -File: yahtmle, Node: Concept Index, Prev: Copying, Up: Top
   3.493 -
   3.494 -Index
   3.495 -*****
   3.496 -
   3.497 -* Menu:
   3.498 -
   3.499 -* Customize:                    Customizations.         4.
   3.500 -* Demacs:                       Intro.                  4.
   3.501 -* Key Assign:                   Customizations.         4.
   3.502 -* LaTeX:                        Intro.                  4.
   3.503 -* Mule:                         Intro.                  4.
   3.504 -* yahtml:                       Intro.                  4.
   3.505 -
   3.506 -
   3.507 -
   3.508 -
   3.509 -
   3.510 -Tag table:
   3.511 -Node: Top148
   3.512 -Node: Intro725
   3.513 -Node: Installation1123
   3.514 -Node: Setting up yahtml1404
   3.515 -Node: Setting environments for weblint browsers and image viewers2195
   3.516 -Node: Setting environment variables for WWW pages2891
   3.517 -Node: Command Invocation3862
   3.518 -Node: Completion4290
   3.519 -Node: Jump5807
   3.520 -Node: Changing and Deleting6287
   3.521 -Node: Changing tags in pairs6538
   3.522 -Node: Changing entities7033
   3.523 -Node: URLencoding of strings within region7569
   3.524 -Node: td-enclosure/tr-enclosure7870
   3.525 -Node: CSS Support8836
   3.526 -Node: CSS-class completion9062
   3.527 -Node: Reread CSS definition9915
   3.528 -Node: Customizations10190
   3.529 -Node: All customizable variables10466
   3.530 -Node: Hook variables14234
   3.531 -Node: Copying14360
   3.532 -Node: Concept Index15151
   3.533 -
   3.534 -End tag table
   3.535 +Info file: yahtmle,    -*-Text-*-
   3.536 +produced by `texinfo-format-buffer'
   3.537 +from file `yahtmle.tex'
   3.538 +using `texinfmt.el' version 2.38 of 3 July 1998.
   3.539 +
   3.540 +START-INFO-DIR-ENTRY
   3.541 +* yahtml-e: (yahtmle).  Yet Another html-mode for Emacs (English).
   3.542 +END-INFO-DIR-ENTRY
   3.543 +
   3.544 +
   3.545 +
   3.546 +
   3.547 +
   3.548 +
   3.549 +File: yahtmle, Node: Top, Next: Intro, Prev: (dir), Up: (dir)
   3.550 +
   3.551 +* Menu:
   3.552 +
   3.553 +* Intro::                       Introduction
   3.554 +* Installation::                Installing yahtml
   3.555 +* Command Invocation::          Using External Commands
   3.556 +* Completion::                  Input with Completion
   3.557 +* Jump::                        Moving the Cursor
   3.558 +* Changing and Deleting::       Changing and Deleting
   3.559 +* CSS Support::                 Style Sheet Support
   3.560 +* Customizations::              List of Customize Variables
   3.561 +* Copying::                     Copyright
   3.562 +* Concept Index::               Index
   3.563 +
   3.564 +
   3.565 +
   3.566 +File: yahtmle, Node: Intro, Next: Installation, Prev: Top, Up: Top
   3.567 +
   3.568 +Introduction
   3.569 +************
   3.570 +
   3.571 +yahtml is a package to support creating HTML documents on Emacsens.  Easy
   3.572 +input of elements (tags) by completion, syntax checking with programs like
   3.573 +weblint, and invoking the appropriate browser or image viewer depending on
   3.574 +the cursor position is its main features.
   3.575 +
   3.576 +(This Info is still incomplete)
   3.577 +
   3.578 +
   3.579 +
   3.580 +File: yahtmle, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top
   3.581 +
   3.582 +Installing yahtml
   3.583 +*****************
   3.584 +* Menu:
   3.585 +
   3.586 +* Setting up yahtml::           
   3.587 +* Setting environments for weblint browsers and image viewers::  
   3.588 +* Setting environment variables for WWW pages::  
   3.589 +
   3.590 +
   3.591 +
   3.592 +File: yahtmle, Node: Setting up yahtml, Next: Setting environments for weblint browsers and image viewers, Prev: Installation, Up: Installation
   3.593 +
   3.594 +Setting up yahtml
   3.595 +=================
   3.596 +
   3.597 +
   3.598 +Add the following to `~/.emacs'
   3.599 +
   3.600 +     (setq auto-mode-alist
   3.601 +           (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
   3.602 +     (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
   3.603 +
   3.604 +Next, add to load-path the directory with the yahtml files (`yahtml.el',
   3.605 +`yatexlib.el', `yatexprc.el').  For example, if you put them in
   3.606 +`~/src/emacs/yahtml',
   3.607 +
   3.608 +     (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path))
   3.609 +
   3.610 +is what you add.
   3.611 +
   3.612 +By this, yahtml will be automatically loaded when editing files with .html
   3.613 +extensions.  "yahtml" will be displayed on the mode line if no errors
   3.614 +occurred.
   3.615 +
   3.616 +
   3.617 +
   3.618 +File: yahtmle, Node: Setting environments for weblint browsers and image viewers, Next: Setting environment variables for WWW pages, Prev: Setting up yahtml, Up: Installation
   3.619 +
   3.620 +Setting environments for weblint, browsers, and image viewers
   3.621 +=============================================================
   3.622 +
   3.623 +Check the variables for invoking external commands and modify as needed.
   3.624 +Defaults are in parenthesis.
   3.625 +
   3.626 +`yahtml-www-browser'
   3.627 +             ... browser command name (netscape)
   3.628 +`yahtml-image-viewer'
   3.629 +             ... image viewer command name (xv)
   3.630 +`yahtml-lint-program'
   3.631 +             ... syntax check programs command name (jweblint)
   3.632 +`yahtml-kanji-code'
   3.633 +             ... kanji code for HTML files
   3.634 +
   3.635 +
   3.636 +
   3.637 +File: yahtmle, Node: Setting environment variables for WWW pages, Prev: Setting environments for weblint browsers and image viewers, Up: Installation
   3.638 +
   3.639 +Setting environment variables for WWW pages
   3.640 +===========================================
   3.641 +
   3.642 +Variables regarding path names for files that will be your home page.
   3.643 +`yahtml-path-url-alist'
   3.644 +             ... list of matching path name on file system and URLs
   3.645 +`yahtml-directory-index'
   3.646 +             ... index file displayed when none is given in URL.  Usually
   3.647 +     `index.html' on NCSA type httpd and `Welcome.html' on CERN types.
   3.648 +
   3.649 +Examples for `yahtml-path-url-alist'.  If `/home/yuuji/http/' is
   3.650 +`http://localhost/~yuuji' at home and `/usr/home/yuuji/www/' is
   3.651 +`http://www.keio.ac.jp/~yuuji/' at work, then
   3.652 +
   3.653 +     (setq yahtml-path-url-alist
   3.654 +           '(("/home/yuuji/http" . "http://localhost/~yuuji")
   3.655 +             ("/usr/home/yuuji/www" . "http://www.keio.ac.jp/~yuuji")))
   3.656 +
   3.657 +Any number of additions can be made to this list.
   3.658 +
   3.659 +
   3.660 +
   3.661 +File: yahtmle, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top
   3.662 +
   3.663 +Invoking external commands
   3.664 +**************************
   3.665 +
   3.666 +For easy use of commands that are handy when editing HTML files.
   3.667 +`[prefix] t j'
   3.668 +             ... Invoke HTML syntax checker (jweblint)
   3.669 +`[prefix] t p'
   3.670 +             ... Display current page in browser
   3.671 +`[prefix] t r'
   3.672 +             ... Reload current page if browser is already running
   3.673 +
   3.674 +
   3.675 +
   3.676 +File: yahtmle, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top
   3.677 +
   3.678 +Completion Input
   3.679 +****************
   3.680 +
   3.681 +Completion input of HTML elements is done through the same key strokes as
   3.682 +YaTeX's begin-type completion, section-type completion, large-type
   3.683 +completion, maketitle-type completion, and accent completion.
   3.684 +Corresponding elements in this order is; elements that span multiple
   3.685 +lines, empty elements such as img, tags that start and end in a single
   3.686 +line, elements with no attributes or contents, and special or symbol
   3.687 +entities.
   3.688 +
   3.689 +`[prefix] b (YaTeX begin-type completion)'
   3.690 +     ...
   3.691 +          <ul>
   3.692 +          </ul>
   3.693 +
   3.694 +     Completion for elements that the start tag and the end tag span
   3.695 +     multiple lines. Mostly block-level elements.
   3.696 +
   3.697 +`[prefix] s (YateX section-type completion)'
   3.698 +     ...
   3.699 +          <img src="foo.gif" alt="photo">
   3.700 +
   3.701 +     Completion for elements that do not have end tags and require only
   3.702 +     attributes.  Possible completions are, <img>, <input>.
   3.703 +
   3.704 +`[prefix] l (YaTeX large-type completion)'
   3.705 +     ...
   3.706 +
   3.707 +          <big> 〜 </big>
   3.708 +
   3.709 +     Similar to begin-type completion but used for elements that start and
   3.710 +     end on a single line.
   3.711 +
   3.712 +
   3.713 +`[prefix] m (YaTeX maketitle-type completion)'
   3.714 +     ... Completion for elements without attributes or contents.  Possible
   3.715 +     completion is <br>
   3.716 +
   3.717 +`[prefix] a (YaTeX accent completion)'
   3.718 +     ... Used to enter special or symbol entities.  By default completion
   3.719 +     for < (&lt;), > (&gt;), & (&amp;), " (&quot;), ' (&apos;), blank
   3.720 +     (&nbsp;) is possible.
   3.721 +
   3.722 +
   3.723 +
   3.724 +File: yahtmle, Node: Jump, Next: Changing and Deleting, Prev: Completion, Up: Top
   3.725 +
   3.726 +Cursor Movement
   3.727 +***************
   3.728 +By using
   3.729 +
   3.730 +`[prefix] g'
   3.731 +             ... move to corresponding object
   3.732 +
   3.733 +the cursor will go to the corresponding object according to the context.
   3.734 +Recognized contexts are
   3.735 +
   3.736 +   * `<TAG>' <--> `</TAG>'
   3.737 +   * `<img src="image.file">' -> invoke viewer
   3.738 +   * `<a href="link.to.somewhere">' -> move cursor to linked target
   3.739 +   * `<applet code="program">' -> open Java source
   3.740 +
   3.741 +
   3.742 +
   3.743 +File: yahtmle, Node: Changing and Deleting, Next: CSS Support, Prev: Jump, Up: Top
   3.744 +
   3.745 +Changing and Deleting
   3.746 +*********************
   3.747 +
   3.748 +* Menu:
   3.749 +
   3.750 +* Changing tags in pairs::      
   3.751 +* Changing entities::           
   3.752 +* URLencoding of strings within region::  
   3.753 +* td-enclosure/tr-enclosure::   
   3.754 +
   3.755 +
   3.756 +
   3.757 +File: yahtmle, Node: Changing tags in pairs, Next: Changing entities, Prev: Changing and Deleting, Up: Changing and Deleting
   3.758 +
   3.759 +Changing tags in pairs
   3.760 +======================
   3.761 +By using
   3.762 +
   3.763 +`[prefix] c'
   3.764 +             ... change tags in matching pairs
   3.765 +
   3.766 +the content can be changed according to the context of the HTML document
   3.767 +where the cursor is located.
   3.768 +
   3.769 +   * `<TAG>'〜`</TAG>'
   3.770 +     ... change `TAG' element name
   3.771 +   * attributes such as `<img src="image.file" alt="photo">'
   3.772 +     ... change attributes
   3.773 +
   3.774 +
   3.775 +
   3.776 +File: yahtmle, Node: Changing entities, Next: URLencoding of strings within region, Prev: Changing tags in pairs, Up: Changing and Deleting
   3.777 +
   3.778 +Changing entities
   3.779 +=================
   3.780 +Special characters such as < or > must be written as &lt; and &gt;.  Easy
   3.781 +conversion of these characters can be done when importing text from non
   3.782 +HTML files.
   3.783 +
   3.784 +
   3.785 +`[prefix] ;'
   3.786 +             ... convert char to special entity in marked region
   3.787 +`[prefix] :'
   3.788 +             ... convert special entity to original char in marked region
   3.789 +     (reverse of [prefix] ;)
   3.790 +
   3.791 +
   3.792 +
   3.793 +
   3.794 +File: yahtmle, Node: URLencoding of strings within region, Next: td-enclosure/tr-enclosure, Prev: Changing entities, Up: Changing and Deleting
   3.795 +
   3.796 +URLencoding of strings within region
   3.797 +====================================
   3.798 +
   3.799 +`[prefix] #'
   3.800 +     	... encode chars that needs to be URLencoded within region
   3.801 +
   3.802 +
   3.803 +
   3.804 +File: yahtmle, Node: td-enclosure/tr-enclosure, Prev: URLencoding of strings within region, Up: Changing and Deleting
   3.805 +
   3.806 +td-enclosure/tr-enclosure
   3.807 +=========================
   3.808 +If you wan to convert series of field into <td>...</td> repetitions for
   3.809 +table element, td-enclosure or tr-enclosure is convenient.
   3.810 +
   3.811 +      `[prefix] }'
   3.812 +     
   3.813 +     	... Enclose each field in a region into <td>...</td>'s.
   3.814 +      `[prefix] ]'
   3.815 +     
   3.816 +     	... Enclose each line in a region into <tr>...</tr>'s, with every
   3.817 +line converted to <td>...</td> repetition.  They presume white space as
   3.818 +field separator by default.  To change this, enter other delimiting
   3.819 +character for a query.  You can convert CSV, for example, into table by
   3.820 +specifying comma(,) as a delimiter.
   3.821 +
   3.822 +If you want to enclose fields with th, call with universal-argument
   3.823 +(`C-u').  Enter `th' to enclose fields with <th>...</th>.  The special
   3.824 +answer `thd' means that enclose the only first column with th, and the
   3.825 +rest with td.
   3.826 +
   3.827 +
   3.828 +
   3.829 +File: yahtmle, Node: CSS Support, Next: Customizations, Prev: Changing and Deleting, Up: Top
   3.830 +
   3.831 +CSS(Style Sheets) Support
   3.832 +*************************
   3.833 +
   3.834 +* Menu:
   3.835 +
   3.836 +* CSS-class completion::        
   3.837 +* Reread CSS definition::       
   3.838 +
   3.839 +
   3.840 +
   3.841 +File: yahtmle, Node: CSS-class completion, Next: Reread CSS definition, Prev: CSS Support, Up: CSS Support
   3.842 +
   3.843 +CSS class-name completion
   3.844 +=========================
   3.845 +You can input a class name in your CSS definition with completion.  If you
   3.846 +have CSS defined as below;
   3.847 +
   3.848 +      h1.foo, h2.foo { background-color: 0xffffff; }
   3.849 +      h1.bar, h2.bar { font-size: 120%; }
   3.850 +
   3.851 +when you input h1(or h2) tag with completing-read by [prefix] b or
   3.852 +[prefix] l, yahtml prompts you to input class name with completion from
   3.853 +the words which are effective to h1 or h2.  And if you defined global
   3.854 +class like this;
   3.855 +
   3.856 +      .caution { font-size: 120%; background-color: 0xc00000;}
   3.857 +
   3.858 +when you input any tags via completing-read, yahtml prompts you to input
   3.859 +class name.  If this is bothering, typing `C-j' instead of `RET' (or
   3.860 +`C-m') cancels the next prompt to class name completion.
   3.861 +
   3.862 +
   3.863 +
   3.864 +File: yahtmle, Node: Reread CSS definition, Prev: CSS-class completion, Up: CSS Support
   3.865 +
   3.866 +Re-reading CSS definition
   3.867 +=========================
   3.868 +If you add some class to your CSS file and you want yahtml to load new
   3.869 +definitions, type `M-x yahtml-mode RET' to make yahtml do.
   3.870 +
   3.871 +
   3.872 +
   3.873 +File: yahtmle, Node: Customizations, Next: Copying, Prev: CSS Support, Up: Top
   3.874 +
   3.875 +Customizations
   3.876 +**************
   3.877 +
   3.878 +Variables that modify yahtml's behavior.
   3.879 +
   3.880 +* Menu:
   3.881 +
   3.882 +* All customizable variables::  List of customizable variables
   3.883 +* Hook variables::              hook variables
   3.884 +
   3.885 +
   3.886 +
   3.887 +File: yahtmle, Node: All customizable variables, Next: Hook variables, Prev: Customizations, Up: Customizations
   3.888 +
   3.889 +List of customizable variables.  Defaults in parenthesis
   3.890 +========================================================
   3.891 +
   3.892 + -- Variable: yahtml-prefix
   3.893 +     Prefix key for yahtml-mode.  (`\C-c')
   3.894 +
   3.895 + -- Variable: yahtml-image-viewer
   3.896 +     Command to view image files refered by img. (xv)
   3.897 +
   3.898 + -- Variable: yahtml-www-browser
   3.899 +     Browser to view external pages with `[prefix]g'. (netscape)
   3.900 +
   3.901 + -- Variable: yahtml-kanji-code
   3.902 +     Default kanji code. 1=sjis, 2=jis, 3=euc, 4=utf-8 (2) If AddType
   3.903 +     "text/html; charset=xxx" .html is written in .htaccess, this will
   3.904 +     override yahtml-kanji-code.
   3.905 +
   3.906 + -- Variable: yahtml-fill-column
   3.907 +     Columns to auto-fill (72)
   3.908 +
   3.909 + -- Variable: yahtml-fill-prefix
   3.910 +     fill-prefix specific to yahtml-mode. (`nil')
   3.911 +
   3.912 + -- Variable: yahtml-path-url-alist
   3.913 +     Matching list of URL and full path name on OS's file system.
   3.914 +
   3.915 + -- Variable: yahtml-directory-index
   3.916 +     Default index filed opened when accessing a server without a
   3.917 +     filename, usually index.html. (`"index.html"')
   3.918 +
   3.919 + -- Variable: yahtml-lint-program
   3.920 +     HTML syntax check program. (`"jweblint"')
   3.921 +
   3.922 + -- Variable: yahtml-hate-too-deep-indentation
   3.923 +     setq to t when indentations for nested enumerate elements are too
   3.924 +     deep.  (`nil')
   3.925 +
   3.926 + -- Variable: yahtml-always-/p
   3.927 +     setq to t if you always want `</p>' after `</p>'. `nil'
   3.928 +
   3.929 + -- Variable: yahtml-p-prefered-env-regexp
   3.930 +     Elements that `<p>' will be automatically inserted.
   3.931 +     (`"^\\(body\\|dl\\|blockquote\\)"')
   3.932 +
   3.933 + -- Variable: yahtml-template-file
   3.934 +     File to automatically insert when editing a new HTML file.
   3.935 +     `"~/http/template.html"'
   3.936 +
   3.937 + -- Variable: yahtml-prefer-upcases
   3.938 +     Use uppercase for tags. `nil'
   3.939 +
   3.940 + -- Variable: yahtml-prefer-upcase-attributes
   3.941 +     Use uppercase for attributes. `nil'
   3.942 +
   3.943 + -- Variable: yahtml-server-type
   3.944 +     setq to 'apache if using a Apache server, and will refer ./.htaccess.
   3.945 +     `'apache'
   3.946 +
   3.947 + -- Variable: yahtml-apache-access-file
   3.948 +     When `yahtml-server-type' is `'apache', define name of access
   3.949 +     restriction file. `".htaccess"'
   3.950 +
   3.951 + -- Variable: yahtml-shell-command-option
   3.952 +     Options needed to invoke shell commands.
   3.953 +
   3.954 + -- Variable: yahtml-translate-hyphens-when-comment-region
   3.955 +     Whether to change hyphens to `&#45;' when commenting out region.
   3.956 +     (`t')
   3.957 +
   3.958 + -- Variable: yahtml-entity-reference-chars-alist
   3.959 +     alist of characters that needs to be written by Entity Reference.
   3.960 +     Enter as `'(?char . "EntityReference")'.  By default, `<', `>', `&',
   3.961 +     `'', is set.  Add as needed.  Do not include `&' at beginning and `;'
   3.962 +     at end of cdr portion of `"EntityReference"'.
   3.963 +
   3.964 + -- Variable: yahtml-faithful-to-htmllint
   3.965 +     When using htmllint to check syntax, it will complain about excess
   3.966 +     spaces.  setq to `t' to avoid this.
   3.967 +
   3.968 + -- Variable: yahtml-use-css
   3.969 +     Use style-sheet support or not (`t')
   3.970 +
   3.971 + -- Variable: yahtml-image-inspection-bytes
   3.972 +     Number of bytes to inspect the image for geometry information
   3.973 +     (`10000')
   3.974 +
   3.975 + -- Variable: yahtml:img-default-alt-format
   3.976 +     format of img entity's ALT attributes.  %x: width, %y: height, %s:
   3.977 +     size in bytes, %c: first comment string, %f: filename
   3.978 +     (`"%xx%y(%sbytes)"')
   3.979 +
   3.980 + -- Variable: yahtml-escape-chars
   3.981 +     When, completing href-s, Escape reserved characters to URL-encoding
   3.982 +     or not.  Nil for never, t for everytime, and 'ask for inquiring at
   3.983 +     each reserved chars. (`'ask')
   3.984 +
   3.985 + -- Variable: yahtml-use-font-lock
   3.986 +     Use font-lock to fontify buffer or not (`(featurep 'font-lock)')
   3.987 +
   3.988 + -- Variable: yahtml-use-hilit19
   3.989 +     Use hilit19 to highlight buffer or not (`(featurep 'hilit19)')
   3.990 +
   3.991 + -- Variable: yahtml-indentation-boundary
   3.992 +     Boundary regexp for indentation calculation.  (`"^\\s *<h[1-3]>"')
   3.993 +
   3.994 +
   3.995 +
   3.996 +File: yahtmle, Node: Hook variables, Prev: All customizable variables, Up: Customizations
   3.997 +
   3.998 +hook variables
   3.999 +==============
  3.1000 +
  3.1001 +
  3.1002 +
  3.1003 +
  3.1004 +File: yahtmle, Node: Copying, Next: Concept Index, Prev: Customizations, Up: Top
  3.1005 +
  3.1006 +Copying
  3.1007 +*******
  3.1008 +
  3.1009 +This program is distributed as freesoftware.  The author will take no
  3.1010 +responsibility to any damages due to the usage of this software
  3.1011 +whatsoever.  There are no restrictions to its redistribution, just use
  3.1012 +common sense.  Mail me your thoughts on this program and I will be more
  3.1013 +than willing to help.
  3.1014 +
  3.1015 +Complaints, requests, bug reports and comments are welcome.  Make contacts
  3.1016 +to yuuji@yatex.org (as of December 2000)
  3.1017 +
  3.1018 +If you like this program and use it on a regular basis, please join the
  3.1019 +mailing list "fj Wild Bird Society".  Procedures can be found in the "etc"
  3.1020 +section of `docs/htmlqa.eng' in this package.
  3.1021 +
  3.1022 +
  3.1023 +                                                             HIROSE, Yuuji
  3.1024 +
  3.1025 +
  3.1026 +
  3.1027 +
  3.1028 +File: yahtmle, Node: Concept Index, Prev: Copying, Up: Top
  3.1029 +
  3.1030 +Index
  3.1031 +*****
  3.1032 +
  3.1033 +* Menu:
  3.1034 +
  3.1035 +* Customize:                    Customizations.         4.
  3.1036 +* Demacs:                       Intro.                  4.
  3.1037 +* Key Assign:                   Customizations.         4.
  3.1038 +* LaTeX:                        Intro.                  4.
  3.1039 +* Mule:                         Intro.                  4.
  3.1040 +* yahtml:                       Intro.                  4.
  3.1041 +
  3.1042 +
  3.1043 +
  3.1044 +
  3.1045 +Tag table:
  3.1046 +Node: Top259
  3.1047 +Node: Intro836
  3.1048 +Node: Installation1234
  3.1049 +Node: Setting up yahtml1515
  3.1050 +Node: Setting environments for weblint browsers and image viewers2306
  3.1051 +Node: Setting environment variables for WWW pages3002
  3.1052 +Node: Command Invocation3973
  3.1053 +Node: Completion4401
  3.1054 +Node: Jump5917
  3.1055 +Node: Changing and Deleting6397
  3.1056 +Node: Changing tags in pairs6681
  3.1057 +Node: Changing entities7176
  3.1058 +Node: URLencoding of strings within region7712
  3.1059 +Node: td-enclosure/tr-enclosure8013
  3.1060 +Node: CSS Support8979
  3.1061 +Node: CSS-class completion9205
  3.1062 +Node: Reread CSS definition10058
  3.1063 +Node: Customizations10333
  3.1064 +Node: All customizable variables10609
  3.1065 +Node: Hook variables14377
  3.1066 +Node: Copying14503
  3.1067 +Node: Concept Index15294
  3.1068 +
  3.1069 +End tag table
     4.1 --- a/docs/yahtmle.tex	Thu Jan 12 12:27:20 2012 +0900
     4.2 +++ b/docs/yahtmle.tex	Mon May 14 18:39:05 2012 +0900
     4.3 @@ -2,10 +2,13 @@
     4.4  \input texinfo
     4.5  @setfilename yahtmle
     4.6  @settitle Yet Another html-mode for Emacs
     4.7 +@direntry
     4.8 +* yahtml-e: (yahtmle).  Yet Another html-mode for Emacs (English).
     4.9 +@end direntry
    4.10  
    4.11  @iftex
    4.12  @c @syncodeindex fn cp
    4.13 -@c Last modified Thu Dec  9 16:12:43 2010 on firestorm
    4.14 +@c Last modified Fri May 11 15:42:22 2012 on firestorm
    4.15  @syncodeindex vr cp
    4.16  @end iftex
    4.17  
    4.18 @@ -15,7 +18,7 @@
    4.19  @subtitle Yet Another html-mode for emacs
    4.20  @title // yahtml //
    4.21  %@subtitle // yahtml //
    4.22 -@author @copyright{} 1994-1997 by    HIROSE, Yuuji [yuuji@@yatex.org]
    4.23 +@author @copyright{} 1994-2012 by    HIROSE, Yuuji [yuuji@@yatex.org]
    4.24  @end titlepage
    4.25  
    4.26  @node Top, Intro, (dir), (dir)
    4.27 @@ -79,12 +82,12 @@
    4.28  (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path))
    4.29  @end lisp
    4.30  
    4.31 -@noindent 
    4.32 +@noindent
    4.33  is what you add.
    4.34  
    4.35  By this, yahtml will be automatically loaded when editing files with .html
    4.36  extensions.  "yahtml" will be displayed on the mode line if no errors
    4.37 -occurred. 
    4.38 +occurred.
    4.39  
    4.40  @node Setting environments for weblint browsers and image viewers, Setting environment variables for WWW pages, Setting up yahtml, Installation
    4.41  @comment  node-name,  next,  previous,  up
    4.42 @@ -115,7 +118,7 @@
    4.43  @item yahtml-directory-index
    4.44          @dots{} index file displayed when none is given in URL.  Usually
    4.45          @file{index.html} on NCSA type httpd and @file{Welcome.html} on
    4.46 -        CERN types. 
    4.47 +        CERN types.
    4.48  @end table
    4.49  
    4.50  Examples for  @code{yahtml-path-url-alist}.  If @file{/home/yuuji/http/}
    4.51 @@ -179,7 +182,7 @@
    4.52  attributes.  Possible completions are, <img>, <input>.
    4.53  
    4.54  @item [prefix] l (YaTeX large-type completion)
    4.55 -@dots{} 
    4.56 +@dots{}
    4.57  
    4.58  @example
    4.59  <big> $B!A(B </big>
    4.60 @@ -203,14 +206,14 @@
    4.61  @node Jump, Changing and Deleting, Completion, Top
    4.62  @comment  node-name,  next,  previous,  up
    4.63  @chapter Cursor Movement
    4.64 -By using 
    4.65 +By using
    4.66  
    4.67  @table @kbd
    4.68  @item [prefix] g
    4.69          @dots{} move to corresponding object
    4.70  @end table
    4.71  
    4.72 -@noindent 
    4.73 +@noindent
    4.74  the cursor will go to the corresponding object according to the context.
    4.75  Recognized contexts are
    4.76  
    4.77 @@ -230,6 +233,7 @@
    4.78  * Changing tags in pairs::      
    4.79  * Changing entities::           
    4.80  * URLencoding of strings within region::  
    4.81 +* td-enclosure/tr-enclosure::   
    4.82  @end menu
    4.83  
    4.84  @node Changing tags in pairs, Changing entities, Changing and Deleting, Changing and Deleting
    4.85 @@ -242,7 +246,7 @@
    4.86          @dots{} change tags in matching pairs
    4.87  @end table
    4.88  
    4.89 -@noindent 
    4.90 +@noindent
    4.91  the content can be changed according to the context of the HTML document
    4.92  where the cursor is located.
    4.93  
    4.94 @@ -286,7 +290,7 @@
    4.95  table element, td-enclosure or tr-enclosure is convenient.
    4.96  
    4.97  @table @kbd
    4.98 - @item [prefix] }
    4.99 + @item [prefix] @}
   4.100  	@dots{} Enclose each field in a region into <td>...</td>'s.
   4.101   @item [prefix] ]
   4.102  	@dots{} Enclose each line in a region into <tr>...</tr>'s, with
   4.103 @@ -324,7 +328,7 @@
   4.104  
   4.105  when you input h1(or h2) tag with completing-read by [prefix] b or
   4.106  [prefix] l, yahtml prompts you to input class name with completion from
   4.107 -the words which are effective to h1 or h2.  And if you defined 
   4.108 +the words which are effective to h1 or h2.  And if you defined
   4.109  global class like this;
   4.110  
   4.111  @display
     5.1 --- a/docs/yahtmlj	Thu Jan 12 12:27:20 2012 +0900
     5.2 +++ b/docs/yahtmlj	Mon May 14 18:39:05 2012 +0900
     5.3 @@ -1,542 +1,545 @@
     5.4 -Info file: yahtmlj,    -*-Text-*-
     5.5 -produced by `texinfo-format-buffer'
     5.6 -from file `yahtmlj.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: yahtmlj, Node: Top, Next: Intro, Prev: (dir), Up: (dir)
    5.15 -
    5.16 -* Menu:
    5.17 -
    5.18 -* Intro::                       $(B$O$8$a$K
    5.19 -(B* Installation::                $(B%$%s%9%H!<%k
    5.20 -(B* Command Invocation::          $(B30It%3%^%s%I5/F0
    5.21 -(B* Completion::                  $(BJd40F~NO
    5.22 -(B* Jump::                        $(B%+!<%=%k%8%c%s%W
    5.23 -(B* Changing and Deleting::       $(BJQ99$H:o=|
    5.24 -(B* CSS Support::                 $(B%9%?%$%k%7!<%HJd40
    5.25 -(B* Customizations::              $(B%+%9%?%^%$%:JQ?t0lMw
    5.26 -(B* Copying::                     $(B$H$j$"$D$+$$
    5.27 -(B* Concept Index::               $(B:w0z
    5.28 -
    5.29 -
    5.30 -
    5.31 -
    5.32 -(BFile: yahtmlj, Node: Intro, Next: Installation, Prev: Top, Up: Top
    5.33 -
    5.34 -$(B$O$8$a$K
    5.35 -(B********
    5.36 -
    5.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
    5.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
    5.39 -%/%W%m%0%i%`!"%+!<%=%k0LCV$N(BURL$(B$d%U%!%$%kL>$K0MB8$7$?%V%i%&%6(B/$(B%$%a!<%8%t%e!<
    5.40 -%"$N5/F0$J$I$r (BEmacs $(BJT=82hLLCf$+$i9T$($k$h$&$K$9$k%Q%C%1!<%8$G$9!#
    5.41 -
    5.42 -(B($(B$3$N(BInfo$(B$OL$40@.$G$9(B(__)$(B!D(B)
    5.43 -
    5.44 -
    5.45 -
    5.46 -File: yahtmlj, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top
    5.47 -
    5.48 -$(B%$%s%9%H!<%k
    5.49 -(B************
    5.50 -* Menu:
    5.51 -
    5.52 -* yahtml$(B5/F0$N$?$a$N@_Dj(B::      
    5.53 -* lint$(B%W%m%0%i%`(B/$(B%V%i%&%6(B/$(B%$%a!<%8%t%e!<%"4D6-Ey$N@_Dj(B::  
    5.54 -* WWW$(B%Z!<%84D6-MQJQ?t$N@_Dj(B::   
    5.55 -
    5.56 -
    5.57 -
    5.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
    5.59 -
    5.60 -yahtml$(B5/F0$N$?$a$N@_Dj
    5.61 -(B======================
    5.62 -
    5.63 -
    5.64 -`~/.emacs'$(B$K2<$N(B2$(B9`L\$r2C$($^$9!#
    5.65 -
    5.66 -     (B(setq auto-mode-alist
    5.67 -           (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
    5.68 -     (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
    5.69 -
    5.70 -$(B<!$K(Byahtml$(B$KI,MW$J%U%!%$%k(B(`yahtml.el', `yatexlib.el', `yatexprc.el') $(B$rCV
    5.71 -$/%G%#%l%/%H%j$r (Bload-path $(B$K2C$($^$9!#$?$H$($P!" (B`~/src/emacs/yahtml'$(B$KCV
    5.72 -$/$N$G$"$l$P!"
    5.73 -
    5.74 -     (B(setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path))
    5.75 -
    5.76 -$(B$J$I$H$7$^$9!#
    5.77 -
    5.78 -  0J>e$N@_Dj$K$h$j!"3HD%;R$, (B.html $(B$G$"$k%U%!%$%k$rJT=8$9$k$H<+F0E*$K
    5.79 -(Byahtml $(B$,%m!<%I$5$l$^$9!#(Byahtml$(B$,@5>o$K5/F0$G$-$?$H$-$O%b!<%I%i%$%s$NI=<(
    5.80 -$,!V(Byahtml$(B!W$KJQ$o$j$^$9!#
    5.81 -
    5.82 -
    5.83 -
    5.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
    5.85 -
    5.86 -lint$(B%W%m%0%i%`(B/$(B%V%i%&%6(B/$(B%$%a!<%8%t%e!<%"4D6-Ey$N@_Dj
    5.87 -(B====================================================
    5.88 -
    5.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
    5.90 -99$7$^$9(B($(B3g8LFb$O%G%U%)%k%HCM(B)$(B!#
    5.91 -(B`yahtml-www-browser'
    5.92 -             ... $(B5/F0$9$k%V%i%&%6$N%3%^%s%IL>(B(netscape)
    5.93 -`yahtml-image-viewer'
    5.94 -             ... $(B5/F0$9$k2hA|%S%e!<%"$N%3%^%s%IL>(B(xv)
    5.95 -`yahtml-lint-program'
    5.96 -             ... $(B9=J8%A%'%C%/%W%m%0%i%`$N%3%^%s%IL>(B(jweblint)
    5.97 -`yahtml-kanji-code'
    5.98 -             ... html$(B%U%!%$%k$N4A;z%3!<%I
    5.99 -
   5.100 -
   5.101 -
   5.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
   5.103 -
   5.104 -WWW$(B%Z!<%84D6-MQJQ?t$N@_Dj
   5.105 -(B=========================
   5.106 -
   5.107 -$(B%[!<%`%Z!<%8$H$J$k%U%!%$%k$,B8:_$9$k(BPATH$(BL>$K4X$9$kJQ?t$r@_Dj$7$^$9!#
   5.108 -(B`yahtml-path-url-alist'
   5.109 -             ... $(B%U%!%$%k%7%9%F%`>e$N(BPATH$(BL>$H!"(BURL$(B$NBP1~I=
   5.110 -(B`yahtml-directory-index'
   5.111 -             ... URL$(B;XDj$G%U%!%$%kL>$r>JN,$7$?$H$-$KI=<($5$l$k%$%s%G%C%/%9
   5.112 -     %U%!%$%kL>(B(NCSA$(B7O(Bhttpd$(B$J$i (B`index.html', CERN$(B7O$J$i(B`Welcome.html'$(B$,0l
   5.113 -     HLE*(B)
   5.114 -
   5.115 -$(BJQ?t (B`yahtml-path-url-alist' $(B$N@_DjNc$r<($7$^$9!#Nc$($P!"<+Bp$G$O!"
   5.116 -(B`/home/yuuji/http/' $(B$, (B`http://localhost/~yuuji' $(B$G;2>H$G$-!"?&>l$G$O 
   5.117 -(B`/usr/home/yuuji/www/' $(B$,(B`http://www.keio.ac.jp/~yuuji/' $(B$G;2>H$G$-$k$h$&
   5.118 -$K$J$C$F$$$k>l9g$O0J2<$N$h$&$K@_Dj$7$^$9!#
   5.119 -
   5.120 -     (B(setq yahtml-path-url-alist
   5.121 -           '(("/home/yuuj/http" . "http://localhost/~yuuji")
   5.122 -             ("/usr/home/yuuj/www" . "http://www.keio.ac.jp/~yuuji")))
   5.123 -
   5.124 -$(B$3$NBP1~AH$O$$$/$i$G$b@_Dj$9$k$3$H$,$G$-$^$9!#
   5.125 -
   5.126 -
   5.127 -
   5.128 -(BFile: yahtmlj, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top
   5.129 -
   5.130 -$(B30It%3%^%s%I5/F0
   5.131 -(B****************
   5.132 -
   5.133 -HTML$(B%U%!%$%kJT=8$K$+$+$o$k$$$/$D$+$N%3%^%s%I$rB(:B$K8F$V$3$H$,$G$-$^$9!#
   5.134 -(B`[prefix] t j'
   5.135 -             ... HTML$(B9=J8%A%'%C%+(B(jweblint)$(B5/F0
   5.136 -(B`[prefix] t p'
   5.137 -             ... $(B8=:_$N%Z!<%8$rBP>]$H$7$?%V%i%&%65/F0
   5.138 -(B`[prefix] t r'
   5.139 -             ... $(B8=:_$N%Z!<%8$,%V%i%&%6$KI=<($5$l$F$$$k$H$-$N(Breload$(B;XDj
   5.140 -
   5.141 -
   5.142 -
   5.143 -(BFile: yahtmlj, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top
   5.144 -
   5.145 -$(BJd40F~NO
   5.146 -(B********
   5.147 -
   5.148 -$(B!VLnD;!W$GMxMQ$G$-$k!"!V(Bbegin$(B7?Jd40!W!"!V(Bsection$(B7?Jd40!W!"!V(Blarge$(B7?Jd40!W!"
   5.149 -!V(Bmaketitle$(B7?Jd40!W!"!V%"%/%;%s%HJd40!W$HA4$/F1$8%-!<A`:n$GBP1~$9$k(BHTML$(B%?
   5.150 -%0$NJd40F~NO$,$G$-$^$9!#$=$l$>$l$N7?$NJd40$O=g$K!"!VJ#?t9T$KEO$k%?%0F~NO!W!"
   5.151 -!V6uMWAG%?%0(B(img$(B$J$I(B)$(B$NJd40!W!"!V0l9TFb$G$N3+;O(B/$(B=*N;%?%0$NF~NO!W!"!V6uMWAG
   5.152 -6uB0@-%?%0$NF~NO!W!"!VJ8;z;2>HF~NO!W$KBP1~$7$F$$$^$9!#6qBNE*$K$O
   5.153 -
   5.154 -(B`[prefix] b ($(BLnD;$N(Bbegin$(BJd40$KBP1~(B)'
   5.155 -     ...
   5.156 -          <ul>
   5.157 -          </ul>
   5.158 -
   5.159 -     $(B$N$h$&$K3+;O%?%0$H=*N;%?%0$rFs9T$KEO$C$F=q$-$?$$>l9g$NJd40$r;X$7$^$9!#
   5.160 -     $*$b$K%V%m%C%/7?%?%0$,Jd408uJd$K4^$^$l$^$9!#
   5.161 -
   5.162 -(B`[prefix] s ($(BLnD;$N(Bsection$(B7?Jd40$KBP1~(B)'
   5.163 -     ...
   5.164 -          <img src="foo.gif" alt="photo">
   5.165 -
   5.166 -     $(B$N$h$&$K=*N;%?%0$r;}$?$:!"$+$DB0@-CM$N$_$G5!G=$r;XDj$9$k%?%0$rJd40$7
   5.167 -     $^$9!#Jd408uJd$H$7$F$O!"(Bimg, input $(B$,B8:_$7$^$9!#
   5.168 -
   5.169 -(B`[prefix] l ($(BLnD;$N(Blarge$(B7?Jd40$KBP1~(B)'
   5.170 -     ... begin$(B7?Jd40$H$[$\F1$8$G$9$,!"
   5.171 -
   5.172 -          (B<big> $(B!A (B</big>
   5.173 -
   5.174 -     $(B$N$h$&$K0l9TFb$K3+;O(B/$(B=*N;%?%0$rF~$l$?$$$H$-$KMxMQ$7$^$9!#
   5.175 -
   5.176 -(B`[prefix] m ($(BLnD;$N(Bmaketitle$(B7?Jd40$KBP1~(B)'
   5.177 -     ... $(BMWAG$bB0@-CM$b;}$?$J$$%?%0$rJd40F~NO$7$^$9!#(B<br> 
   5.178 -     $(B$J$I$,Jd408uJd$KAjEv$7$^$9!#
   5.179 -
   5.180 -(B`[prefix] a ($(BLnD;$N%"%/%;%s%HJd40$KBP1~(B)'
   5.181 -     ... $(B%(%s%F%#%F%#;2>H$K$h$kJ8;zI=5-$rF~NO$9$k$H$-$KMQ$$$^$9!#
   5.182 -     %G%U%)%k%H$G$O (B< (&lt;), > (&gt;), & (&amp;), " (&quot;), ' (&apos;), 
   5.183 -     $(B%V%i%s%/ (B(&nbsp;) $(B$NJd40F~NO$,9T$($^$9!#
   5.184 -
   5.185 -
   5.186 -
   5.187 -(BFile: yahtmlj, Node: Jump, Next: Changing and Deleting, Prev: Completion, Up: Top
   5.188 -
   5.189 -$(B%+!<%=%k%8%c%s%W
   5.190 -(B****************
   5.191 -$(BJ8=qCf$N$$$m$$$m$J>l=j$G
   5.192 -
   5.193 -(B`[prefix] g'
   5.194 -             ... $(BBP1~$9$k%*%V%8%'%/%H$K%8%c%s%W
   5.195 -
   5.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
   5.197 -1~4X78$,B8:_$9$k$H2r<a$5$l$k%3%^%s%I$K$O0J2<$N$b$N$,$"$j$^$9!#
   5.198 -
   5.199 -   (B* `<TAG>' $(B"+"* (B`</TAG>'
   5.200 -   * `<img src="$(B2hA|%U%!%$%k(B">' $(B"* BP1~$9$k(Bviewer$(B5/F0
   5.201 -   (B* `<a href="$(B%j%s%/@h(B">' $(B"* %j%s%/@h$X$N%]%$%s%H0\F0
   5.202 -   (B* `<applet code="$(B%W%m%0%i%`(B">' $(B"* (BJava$(B%=!<%9%W%m%0%i%`$X$N0\F0
   5.203 -
   5.204 -
   5.205 -
   5.206 -(BFile: yahtmlj, Node: Changing and Deleting, Next: CSS Support, Prev: Jump, Up: Top
   5.207 -
   5.208 -$(BJQ99(B/$(B:o=|
   5.209 -(B*********
   5.210 -
   5.211 -* Menu:
   5.212 -
   5.213 -* $(BBP%?%0$NJQ99(B::                
   5.214 -* $(BJ8;z;2>H$X$NJQ99(B::            
   5.215 -* $(B%j%8%g%sFbJ8;z$N(BURLencode::   
   5.216 -* td$(B3g$j(B/tr$(B3g$j(B::               
   5.217 -
   5.218 -
   5.219 -
   5.220 -File: yahtmlj, Node: $(BBP%?%0$NJQ99(B, Next: $(BJ8;z;2>H$X$NJQ99(B, Prev: Changing and Deleting, Up: Changing and Deleting
   5.221 -
   5.222 -$(BBP%?%0$NJQ99
   5.223 -(B============
   5.224 -$(BJ8=qCf$N$$$m$$$m$J>l=j$G
   5.225 -
   5.226 -(B`[prefix] c'
   5.227 -             ... $(BBP1~$9$k%?%0Ey$rJQ99
   5.228 -
   5.229 -$r2!$9$3$H$K$h$j!"%+!<%=%k0LCV$N(BHTML$(B9=J8$K1~$8$?5-=RFbMF$NJQ99$r9T$$$^$9!#
   5.230 -%+!<%=%k0LCV$HJQ99$9$kFbMF$NBP1~$O0J2<$NDL$j$G$9!#
   5.231 -
   5.232 -   (B* `<TAG>'$(B!A(B`</TAG>'
   5.233 -     ... `TAG' $(B$NJQ99
   5.234 -   (B* `<img src="$(B2hA|%U%!%$%k(B" alt="photo">' $(B$J$I$NB0@-CM
   5.235 -     (B... $(BB0@-CM$NJQ99
   5.236 -
   5.237 -
   5.238 -
   5.239 -(BFile: yahtmlj, Node: $(BJ8;z;2>H$X$NJQ99(B, Prev: $(BBP%?%0$NJQ99(B, Up: Changing and Deleting
   5.240 -
   5.241 -$(BJ8;z;2>H$X$NJQ99
   5.242 -(B================
   5.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&lt; $(B$d (B&gt; $(B$HI=5-
   5.244 -$9$kI,MW$,$"$j$^$9$,!"(BHTML$(B0J30$N%U%!%$%k$+$i$3$l$i$NJ8;z$r4^$`%F%-%9%H$rD%
   5.245 -$j9~$s$@>l9g$J$I$K!"$3$l$i$NJ8;z$r0l3g$7$FJ8;z;2>H7A<0$KJQ49$G$-$^$9!#
   5.246 -
   5.247 -(B`[prefix] ;'
   5.248 -             ... $(B;XDj$7$?NN0h$NJ8;z;2>H$KCV$-49$($k$Y$-J8;z$NCV49
   5.249 -(B`[prefix] :'
   5.250 -             ... $(B;XDj$7$?NN0h$NJ8;z;2>H$r;2>HJ8;z$=$N$b$N$KCV49(B([prefix] ; 
   5.251 -     $(B$N5UJQ49(B)
   5.252 -
   5.253 -
   5.254 -
   5.255 -
   5.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
   5.257 -
   5.258 -$(B%j%8%g%sFbJ8;z$N(BURLencode
   5.259 -=========================
   5.260 -      [prefix] #
   5.261 -     
   5.262 -     	... $(B;XDj$7$?NN0hFb$K (BURLencode $(B$9$Y$-J8;z$,$"$l$P$=$l$i$r%(%s
   5.263 -     %3!<%II=5-$KCV49!#
   5.264 -
   5.265 -
   5.266 -
   5.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
   5.268 -
   5.269 -td$(B3g$j(B/tr$(B3g$j
   5.270 -(B=============
   5.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
   5.272 -$i$K (B<tr> $(B$G3g$C$?9TJB$S$KJQ49$G$-$^$9!#
   5.273 -      (B`[prefix] '}
   5.274 -     
   5.275 -     	... $(B8=:_$N%j%8%g%s$K$"$k%G!<%?$r6uGr6h@Z$j$4$H$K
   5.276 -             (B<td>...</td> $(B$G3g$k
   5.277 -      (B`[prefix] ]'
   5.278 -     
   5.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
   5.280 -$K (B<tr>...</tr> $(B$G3g$k%G%U%)%k%H$G$O6uGr6h@Z$j$G$9$,!$$3$l$rJQ$($k$H$-$O
   5.281 -(BDelimiter: $(B$NLd$$9g$o$;$K6h@Z$jJ8;z$r;XDj$7$^$9!#$?$H$($P%+%s%^(B(,) $(B$r;XDj
   5.282 -$9$k$H(BCSV$(B$+$iI=$r:n$k$3$H$,$G$-$^$9!#
   5.283 -
   5.284 -(Btd$(B0J30$NMWAG!$6qBNE*$K$O (Bth $(B$G3g$j$?$$>l9g$O (Buniversal-argument (`C-u') $(B$r
   5.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
   5.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%#!<
   5.287 -%k%I$N$_ (Bth $(B$G!$;D$j$rA4It (Btd $(B3g$j$K$7$?$$$H$-$O (Bthd $(B$HF~NO$7$F2<$5$$!#
   5.288 -
   5.289 -
   5.290 -
   5.291 -(BFile: yahtmlj, Node: CSS Support, Next: Customizations, Prev: Changing and Deleting, Up: Top
   5.292 -
   5.293 -CSS($(B%9%?%$%k%7!<%H(B)$(B%5%]!<%H
   5.294 -(B***************************
   5.295 -
   5.296 -* Menu:
   5.297 -
   5.298 -* CSS-class completion::        
   5.299 -* Reread CSS file::             
   5.300 -
   5.301 -
   5.302 -
   5.303 -File: yahtmlj, Node: CSS-class completion, Next: Reread CSS file, Prev: CSS Support, Up: CSS Support
   5.304 -
   5.305 -CSS$(B%/%i%9L>Jd40
   5.306 -(B===============
   5.307 -HTML$(B20$O(BCSS(Cascading Style Sheets)$(B$N%/%i%9L>$rJd40F~NO$9$k$3$H$,$G$-$^$9!#
   5.308 -%9%?%$%kDj5A$H$7$F
   5.309 -
   5.310 -      (Bh1.foo, h2.foo { background-color: 0xffffff; }
   5.311 -      h1.bar, h2.bar { font-size: 120%; }
   5.312 -
   5.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
   5.314 -40F~NO$7$?>l9g$K!"$=$l$i$KM-8z$J (Bclass $(BL>$G$"$k (Bfoo, bar $(B$r8uJd$H$7$FJd40
   5.315 -F~NO$9$k$3$H$,2DG=$G$9!#$^$?
   5.316 -
   5.317 -      (B.caution { font-size: 120%; background-color: 0xc00000;}
   5.318 -
   5.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
   5.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~
   5.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
   5.322 -%-%c%s%;%k$G$-$^$9!#$?$H$($P
   5.323 -
   5.324 -      (B`[prefix] l'                    $(B9TFb%?%0Jd40$r5/F0
   5.325 -         (B($(B$^$?$O(B`[prefix] l SPC')
   5.326 -      tt                                  <tt></tt>$(B$r$$$l$?$$$N$G(Btt$(B$HF~NO
   5.327 -      (B`C-m'
   5.328 -
   5.329 -$(B$H$7$?>l9g$OB3$$$F (Bclass= $(B$HJd40%W%m%s%W%H$,=P$^$9$,!"
   5.330 -
   5.331 -      (B`[prefix] l'                    $(B9TFb%?%0Jd40$r5/F0
   5.332 -         (B($(B$^$?$O(B`[prefix] l SPC')
   5.333 -      tt                                  <tt></tt>$(B$r$$$l$?$$$N$G(Btt$(B$HF~NO
   5.334 -      (B`C-j'
   5.335 -
   5.336 -$(B$H:G8e$r (B`C-j' $(B$GF~NO$7$?>l9g$O (Bclass $(BJd40%W%m%s%W%H$O=P$^$;$s!#
   5.337 -
   5.338 -
   5.339 -
   5.340 -(BFile: yahtmlj, Node: Reread CSS file, Prev: CSS-class completion, Up: CSS Support
   5.341 -
   5.342 -CSS$(BDj5A%U%!%$%k$NFI$_D>$7
   5.343 -(B=========================
   5.344 -html$(B%U%!%$%k$rJT=8Cf$K(BCSS$(BDj5A%U%!%$%k$r=$@5$7!"DI2C$7$?(Bclass$(B$rJd408uJd$H$7
   5.345 -$FD>$A$KFI$_9~$^$;$?$$>l9g$O!"(B`M-x yahtml-mode' $(B$H$7$F:F5/F0$r9T$C$F$/$@$5
   5.346 -$$!#
   5.347 -
   5.348 -
   5.349 -
   5.350 -(BFile: yahtmlj, Node: Customizations, Next: Copying, Prev: CSS Support, Up: Top
   5.351 -
   5.352 -$(B%+%9%?%^%$%:
   5.353 -(B************
   5.354 -
   5.355 -yahtml$(B$NF0:n$r@)8f$9$kJQ?t$K$D$$$F@bL@$7$^$9!#
   5.356 -
   5.357 -(B* Menu:
   5.358 -
   5.359 -* All customizable variables::  $(B%+%9%?%^%$%:JQ?t0lMw
   5.360 -(B* Hook variables::              hook$(BJQ?t
   5.361 -
   5.362 -
   5.363 -
   5.364 -(BFile: yahtmlj, Node: All customizable variables, Next: Hook variables, Prev: Customizations, Up: Customizations
   5.365 -
   5.366 -$(B%+%9%?%^%$%:JQ?t0lMw
   5.367 -(B====================
   5.368 -
   5.369 - -- Variable: yahtml-prefix
   5.370 -     yahtml-mode $(BCf$N%W%j%U%#%/%9%-!< (B(`\C-c')
   5.371 -
   5.372 - -- Variable: yahtml-image-viewer
   5.373 -     img$(B$G;2>H$7$F$$$k2hA|%U%!%$%k$rI=<($9$k$H$-$K5/F0$9$k%3%^%s%I (B(xv)
   5.374 -
   5.375 - -- Variable: yahtml-www-browser
   5.376 -     `[prefix]g' $(B$G30It%Z!<%8$rI=<($9$k$H$-$K5/F0$9$k%V%i%&%6 (B(netscape)
   5.377 -
   5.378 - -- Variable: yahtml-kanji-code
   5.379 -     $(B%G%U%)%k%H$N4A;z%3!<%I!#(B1=sjis, 2=jis, 3=euc, 4=utf-8 (2)
   5.380 -     .htaccess $(B%U%!%$%k$K
   5.381 -           (BAddType "text/html; charset=xxx" .html $(B$N5-=R$,$"$C$?>l9g$O$=$l
   5.382 -     $K=>$&
   5.383 -
   5.384 - (B-- Variable: yahtml-fill-column
   5.385 -     auto-fill$(B$9$k$H$-$N%+%i%`?t (B(72)
   5.386 -
   5.387 - -- Variable: yahtml-fill-prefix
   5.388 -     yahtml-mode $(B8GM-$N(Bfill-prefix (`nil')
   5.389 -
   5.390 - -- Variable: yahtml-path-url-alist
   5.391 -     OS$(B$N%U%!%$%k%7%9%F%`>e$G$N%U%k%Q%9L>$H!"$=$N30It8x3+;~$N(BURL$(B$NBP1~I=!#
   5.392 -
   5.393 - (B-- Variable: yahtml-directory-index
   5.394 -     $(B%5!<%P%"%/%;%9;~%U%!%$%kL>$r>JN,$7$?$H$-$K%G%U%)%k%H$G3+$+$l$k%$%s%G%C
   5.395 -     %/%9%U%!%$%k$NL>A0!#B?$/$N>l9g (Bindex.html$(B!#(B(`"index.html"')
   5.396 -
   5.397 - -- Variable: yahtml-lint-program
   5.398 -     HTML$(B9=J8%A%'%C%/%W%m%0%i%`!#(B(`"jweblint"')
   5.399 -
   5.400 - -- Variable: yahtml-hate-too-deep-indentation
   5.401 -     $(B%M%9%H$7$?Ns5s7O4D6-$G$N%$%s%G%s%H$,?<$9$.$k$H$-$K(Bt$(B$K$9$k!#(B(`nil')
   5.402 -
   5.403 - -- Variable: yahtml-always-/p
   5.404 -     `<p>' $(B$r$$$l$?$iI,$: (B`</p>' $(B$7$?$$?M8~$1!#(B`nil'
   5.405 -
   5.406 - -- Variable: yahtml-p-prefered-env-regexp
   5.407 -     $(B<+F0E*$K (B`<p>' $(B$rF~$l$FM_$7$$4D6-!#
   5.408 -     (B(`"^\\(body\\|dl\\|blockquote\\)"')
   5.409 -
   5.410 - -- Variable: yahtml-template-file
   5.411 -     $(B?75,(BHTML$(B%U%!%$%k:n@.;~$K<+F0E*$KA^F~$7$FM_$7$$%U%!%$%kL>!#
   5.412 -     (B`"~/http/template.html"'
   5.413 -
   5.414 - -- Variable: yahtml-prefer-upcases
   5.415 -     $(B%?%0$KBgJ8;z$r;H$$$?$$!#(B`nil'
   5.416 -
   5.417 - -- Variable: yahtml-prefer-upcase-attributes
   5.418 -     $(BB0@-;XDj;R$KBgJ8;z$r;H$$$?$$!#(B`nil'
   5.419 -
   5.420 - -- Variable: yahtml-server-type
   5.421 -     Apache$(B7O$N%5!<%P$rMxMQ$7$F$$$k>l9g$O (B'apache $(B$r%;%C%H$9$k!#
   5.422 -     (B./.htaccess $(B$r;2>H$9$k$+$I$&$+$r7hDj$9$k!#(B`'apache'
   5.423 -
   5.424 - -- Variable: yahtml-apache-access-file
   5.425 -     `yahtml-server-type' $(B$, (B`'apache' $(B$N$H$-$K%"%/%;%9@)8B%U%!%$%kL>$r;X
   5.426 -     Dj!#(B`".htaccess"'
   5.427 -
   5.428 - -- Variable: yahtml-shell-command-option
   5.429 -     $(B%7%'%k$GJL%3%^%s%I$r5/F0$9$k$H$-$N%*%W%7%g%s!#
   5.430 -
   5.431 - (B-- Variable: yahtml-translate-hyphens-when-comment-region
   5.432 -     $(BNN0h%3%a%s%H%"%&%H$r$9$k$H$-$K4{$KB8:_$9$k%O%$%U%s$r (B`&#45;' $(B$KJQ99$9
   5.433 -     $k$+$I$&$+!#(B(`t')
   5.434 -
   5.435 - -- Variable: yahtml-entity-reference-chars-alist
   5.436 -     $(B%(%s%F%#%F%#;2>H(B(Entity Reference)$(B$G5-=R$9$Y$-J8;z72$r(B`'(?$(BJ8;z (B. "$(B%(
   5.437 -     %s%F%#%F%#I=5-(B")' $(B$H$$$&7A<0$rNs5s$7$?(Balist$(B$GJB$Y$k!#%G%U%)%k%H$G 
   5.438 -     (B`<', `>', `&', `'', `"' $(B$KBP$9$k(Balist$(B$,@_Dj$5$l$F$$$k$N$G!"DI2C$7$?$$
   5.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 
   5.440 -     KvHx$N(B`;' $(B$O4^$a$:$K=q$/!#
   5.441 -
   5.442 - (B-- Variable: yahtml-faithful-to-htmllint
   5.443 -     $(B9=J8%A%'%C%+$H$7$F (Bhtmllint $(B$rMxMQ$9$k>l9g$A$g$C$H$7$?M>7W$J6uGr$J$I
   5.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!#
   5.445 -
   5.446 - (B-- Variable: yahtml-use-css
   5.447 -     CSS$(B$NJd405!G=$r;H$&$+$I$&$+ (B(`t')
   5.448 -
   5.449 - -- Variable: yahtml-image-inspection-bytes
   5.450 -     $(B2hA|%U%!%$%k$N%5%$%:$rD4$Y$k$H$-$KFI$_9~$`%P%$%H?t (B(`10000')
   5.451 -
   5.452 - -- Variable: yahtml:img-default-alt-format
   5.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|
   5.454 -     $N9b$5!"(B%s$(B$O%U%!%$%k%5%$%:$KCV49$5$l$k (B(`"%xx%y(%sbytes)"')
   5.455 -
   5.456 - -- Variable: yahtml-escape-chars
   5.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
   5.458 -     $F$+$iCV49$9$k (B(`'ask')
   5.459 -
   5.460 - -- Variable: yahtml-use-font-lock
   5.461 -     $(B%=!<%9$N?'$E$1%Q%C%1!<%8$H$7$F (Bfont-lock $(B$rMxMQ$9$k$+(B(`(featurep
   5.462 -     'font-lock)')
   5.463 -
   5.464 - -- Variable: yahtml-use-hilit19
   5.465 -     $(B%=!<%9$N?'$E$1%Q%C%1!<%8$H$7$F (Bhilit19 $(B$rMxMQ$9$k$+(B(`(featurep
   5.466 -     'hilit19)')
   5.467 -
   5.468 - -- Variable: yahtml-indentation-boundary
   5.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]>"')
   5.470 -
   5.471 -
   5.472 -
   5.473 -File: yahtmlj, Node: Hook variables, Prev: All customizable variables, Up: Customizations
   5.474 -
   5.475 -hook$(BJQ?t
   5.476 -(B========
   5.477 -
   5.478 -
   5.479 -
   5.480 -
   5.481 -File: yahtmlj, Node: Copying, Next: Concept Index, Prev: Customizations, Up: Top
   5.482 -
   5.483 -$(B<h$j07$$
   5.484 -(B********
   5.485 -
   5.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
   5.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$$$?
   5.488 -$7$^$;$s!#>o<1E*$K07$C$F$/$@$5$$!#$^$?!";HMQ$7$F$$$k;]$r%a%$%k$G$*CN$i$;$$
   5.489 -$?$@$/$H!":n<T$O4n$s$G%5%]!<%H$KNe$`$3$H$G$7$g$&!#
   5.490 -
   5.491 -  6l>p!"4uK>!"%P%0Js9p!"46A[Ey$O4?7^$$$?$7$^$9!#O"Mm$O (Byuuji@yatex.org $(B$^
   5.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
   5.493 -2q!W$K@'Hs2CF~$7$F$/$@$5$$!#2CF~J}K!$K$D$$$F$OK\%Q%C%1!<%8$N (B`docs/htmlqa' 
   5.494 -$(B%U%!%$%k$N!V$=$NB>!W$N>O$r8fMw$/$@$5$$!#
   5.495 -
   5.496 -;EMM$O!"M=9p$J$/3N<B$K(B($(B5$J,<!Bh$G(B)$(BJQ99$5$l$^$9(B:-p$(B!#
   5.497 -
   5.498 -                                                                  9-@%M:Fs
   5.499 -
   5.500 -
   5.501 -
   5.502 -
   5.503 -(BFile: yahtmlj, Node: Concept Index, Prev: Copying, Up: Top
   5.504 -
   5.505 -$(B:w0z
   5.506 -(B****
   5.507 -
   5.508 -* Menu:
   5.509 -
   5.510 -* カスタマイズ[,B)7=\"7(B]:   Customizations.         4.
   5.511 -* キーアサイン[,B+" 3"q(B]:   Customizations.         4.
   5.512 -* Demacs:                       Intro.                  4.
   5.513 -* HTML(I.(B[HTML,Bb(B]:               Intro.                  4.
   5.514 -* LaTeX:                        Intro.                  4.
   5.515 -* Mule:                         Intro.                  4.
   5.516 -
   5.517 -
   5.518 -
   5.519 -
   5.520 -
   5.521 -Tag table:
   5.522 -Node: Top148
   5.523 -Node: Intro617
   5.524 -Node: Installation896
   5.525 -Node: yahtml$(B5/F0$N$?$a$N@_Dj(B1095
   5.526 -Node: lint$(B%W%m%0%i%`(B/$(B%V%i%&%6(B/$(B%$%a!<%8%t%e!<%"4D6-Ey$N@_Dj(B1749
   5.527 -Node: WWW$(B%Z!<%84D6-MQJQ?t$N@_Dj(B2249
   5.528 -Node: Command Invocation3020
   5.529 -Node: Completion3347
   5.530 -Node: Jump4331
   5.531 -Node: Changing and Deleting4730
   5.532 -Node: $(BBP%?%0$NJQ99(B4950
   5.533 -Node: $(BJ8;z;2>H$X$NJQ99(B5300
   5.534 -Node: $(B%j%8%g%sFbJ8;z$N(BURLencode5658
   5.535 -Node: td$(B3g$j(B/tr$(B3g$j(B5890
   5.536 -Node: CSS Support6519
   5.537 -Node: CSS-class completion6738
   5.538 -Node: Reread CSS file7734
   5.539 -Node: Customizations7956
   5.540 -Node: All customizable variables8180
   5.541 -Node: Hook variables11178
   5.542 -Node: Copying11290
   5.543 -Node: Concept Index11793
   5.544 -
   5.545 -End tag table
   5.546 +Info file: yahtmlj,    -*-Text-*-
   5.547 +produced by `texinfo-format-buffer'
   5.548 +from file `yahtmlj.tex'
   5.549 +using `texinfmt.el' version 2.38 of 3 July 1998.
   5.550 +
   5.551 +START-INFO-DIR-ENTRY
   5.552 +* yahtml: (yahtmlj).    Yet Another html-mode for Emacs (Japanese).
   5.553 +END-INFO-DIR-ENTRY
   5.554 +
   5.555 +
   5.556 +
   5.557 +
   5.558 +
   5.559 +
   5.560 +File: yahtmlj, Node: Top, Next: Intro, Prev: (dir), Up: (dir)
   5.561 +
   5.562 +* Menu:
   5.563 +
   5.564 +* Intro::                       はじめに
   5.565 +* Installation::                インストール
   5.566 +* Command Invocation::          外部コマンド起動
   5.567 +* Completion::                  補完入力
   5.568 +* Jump::                        カーソルジャンプ
   5.569 +* Changing and Deleting::       変更と削除
   5.570 +* CSS Support::                 スタイルシート補完
   5.571 +* Customizations::              カスタマイズ変数一覧
   5.572 +* Copying::                     とりあつかい
   5.573 +* Concept Index::               索引
   5.574 +
   5.575 +
   5.576 +
   5.577 +
   5.578 +File: yahtmlj, Node: Intro, Next: Installation, Prev: Top, Up: Top
   5.579 +
   5.580 +はじめに
   5.581 +********
   5.582 +
   5.583 +yahtmlは GNU Emacs 上で HTML文書を作成する時に、繁雑なHTMLタグの入力を補完
   5.584 +機能によってスムーズに行えるようにするだけでなく、weblintなどの構文チェッ
   5.585 +クプログラム、カーソル位置のURLやファイル名に依存したブラウザ/イメージヴュー
   5.586 +アの起動などを Emacs 編集画面中から行えるようにするパッケージです。
   5.587 +
   5.588 +(このInfoは未完成です(__)…)
   5.589 +
   5.590 +
   5.591 +
   5.592 +File: yahtmlj, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top
   5.593 +
   5.594 +インストール
   5.595 +************
   5.596 +* Menu:
   5.597 +
   5.598 +* yahtml起動のための設定::
   5.599 +* lintプログラム/ブラウザ/イメージヴューア環境等の設定::
   5.600 +* WWWページ環境用変数の設定::
   5.601 +
   5.602 +
   5.603 +
   5.604 +File: yahtmlj, Node: yahtml起動のための設定, Next: lintプログラム/ブラウザ/イメージヴューア環境等の設定, Prev: Installation, Up: Installation
   5.605 +
   5.606 +yahtml起動のための設定
   5.607 +======================
   5.608 +
   5.609 +
   5.610 +`~/.emacs'に下の2項目を加えます。
   5.611 +
   5.612 +     (setq auto-mode-alist
   5.613 +           (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
   5.614 +     (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
   5.615 +
   5.616 +次にyahtmlに必要なファイル(`yahtml.el', `yatexlib.el', `yatexprc.el') を置
   5.617 +くディレクトリを load-path に加えます。たとえば、 `~/src/emacs/yahtml'に置
   5.618 +くのであれば、
   5.619 +
   5.620 +     (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path))
   5.621 +
   5.622 +などとします。
   5.623 +
   5.624 +  以上の設定により、拡張子が .html であるファイルを編集すると自動的に
   5.625 +yahtml がロードされます。yahtmlが正常に起動できたときはモードラインの表示
   5.626 +が「yahtml」に変わります。
   5.627 +
   5.628 +
   5.629 +
   5.630 +File: yahtmlj, Node: lintプログラム/ブラウザ/イメージヴューア環境等の設定, Next: WWWページ環境用変数の設定, Prev: yahtml起動のための設定, Up: Installation
   5.631 +
   5.632 +lintプログラム/ブラウザ/イメージヴューア環境等の設定
   5.633 +====================================================
   5.634 +
   5.635 +利用する外部プログラムなどに関する以下の変数を確認し、必要なら正しい値に変
   5.636 +更します(括弧内はデフォルト値)。
   5.637 +`yahtml-www-browser'
   5.638 +             ... 起動するブラウザのコマンド名(netscape)
   5.639 +`yahtml-image-viewer'
   5.640 +             ... 起動する画像ビューアのコマンド名(xv)
   5.641 +`yahtml-lint-program'
   5.642 +             ... 構文チェックプログラムのコマンド名(jweblint)
   5.643 +`yahtml-kanji-code'
   5.644 +             ... htmlファイルの漢字コード
   5.645 +
   5.646 +
   5.647 +
   5.648 +File: yahtmlj, Node: WWWページ環境用変数の設定, Prev: lintプログラム/ブラウザ/イメージヴューア環境等の設定, Up: Installation
   5.649 +
   5.650 +WWWページ環境用変数の設定
   5.651 +=========================
   5.652 +
   5.653 +ホームページとなるファイルが存在するPATH名に関する変数を設定します。
   5.654 +`yahtml-path-url-alist'
   5.655 +             ... ファイルシステム上のPATH名と、URLの対応表
   5.656 +`yahtml-directory-index'
   5.657 +             ... URL指定でファイル名を省略したときに表示されるインデックス
   5.658 +     ファイル名(NCSA系httpdなら `index.html', CERN系なら`Welcome.html'が一
   5.659 +     般的)
   5.660 +
   5.661 +変数 `yahtml-path-url-alist' の設定例を示します。例えば、自宅では、
   5.662 +`/home/yuuji/http/' が `http://localhost/~yuuji' で参照でき、職場では 
   5.663 +`/usr/home/yuuji/www/' が`http://www.keio.ac.jp/~yuuji/' で参照できるよう
   5.664 +になっている場合は以下のように設定します。
   5.665 +
   5.666 +     (setq yahtml-path-url-alist
   5.667 +           '(("/home/yuuj/http" . "http://localhost/~yuuji")
   5.668 +             ("/usr/home/yuuj/www" . "http://www.keio.ac.jp/~yuuji")))
   5.669 +
   5.670 +この対応組はいくらでも設定することができます。
   5.671 +
   5.672 +
   5.673 +
   5.674 +File: yahtmlj, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top
   5.675 +
   5.676 +外部コマンド起動
   5.677 +****************
   5.678 +
   5.679 +HTMLファイル編集にかかわるいくつかのコマンドを即座に呼ぶことができます。
   5.680 +`[prefix] t j'
   5.681 +             ... HTML構文チェッカ(jweblint)起動
   5.682 +`[prefix] t p'
   5.683 +             ... 現在のページを対象としたブラウザ起動
   5.684 +`[prefix] t r'
   5.685 +             ... 現在のページがブラウザに表示されているときのreload指定
   5.686 +
   5.687 +
   5.688 +
   5.689 +File: yahtmlj, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top
   5.690 +
   5.691 +補完入力
   5.692 +********
   5.693 +
   5.694 +「野鳥」で利用できる、「begin型補完」、「section型補完」、「large型補完」、
   5.695 +「maketitle型補完」、「アクセント補完」と全く同じキー操作で対応するHTMLタ
   5.696 +グの補完入力ができます。それぞれの型の補完は順に、「複数行に渡るタグ入力」、
   5.697 +「空要素タグ(imgなど)の補完」、「一行内での開始/終了タグの入力」、「空要素
   5.698 +空属性タグの入力」、「文字参照入力」に対応しています。具体的には
   5.699 +
   5.700 +`[prefix] b (野鳥のbegin補完に対応)'
   5.701 +     ...
   5.702 +          <ul>
   5.703 +          </ul>
   5.704 +
   5.705 +     のように開始タグと終了タグを二行に渡って書きたい場合の補完を指します。
   5.706 +     おもにブロック型タグが補完候補に含まれます。
   5.707 +
   5.708 +`[prefix] s (野鳥のsection型補完に対応)'
   5.709 +     ...
   5.710 +          <img src="foo.gif" alt="photo">
   5.711 +
   5.712 +     のように終了タグを持たず、かつ属性値のみで機能を指定するタグを補完し
   5.713 +     ます。補完候補としては、img, input が存在します。
   5.714 +
   5.715 +`[prefix] l (野鳥のlarge型補完に対応)'
   5.716 +     ... begin型補完とほぼ同じですが、
   5.717 +
   5.718 +          <big> 〜 </big>
   5.719 +
   5.720 +     のように一行内に開始/終了タグを入れたいときに利用します。
   5.721 +
   5.722 +`[prefix] m (野鳥のmaketitle型補完に対応)'
   5.723 +     ... 要素も属性値も持たないタグを補完入力します。<br> 
   5.724 +     などが補完候補に相当します。
   5.725 +
   5.726 +`[prefix] a (野鳥のアクセント補完に対応)'
   5.727 +     ... エンティティ参照による文字表記を入力するときに用います。
   5.728 +     デフォルトでは < (&lt;), > (&gt;), & (&amp;), " (&quot;), ' (&apos;), 
   5.729 +     ブランク (&nbsp;) の補完入力が行えます。
   5.730 +
   5.731 +
   5.732 +
   5.733 +File: yahtmlj, Node: Jump, Next: Changing and Deleting, Prev: Completion, Up: Top
   5.734 +
   5.735 +カーソルジャンプ
   5.736 +****************
   5.737 +文書中のいろいろな場所で
   5.738 +
   5.739 +`[prefix] g'
   5.740 +             ... 対応するオブジェクトにジャンプ
   5.741 +
   5.742 +を押すことにより、カーソル位置のHTML構文に対応する場所にジャンプします。対
   5.743 +応関係が存在すると解釈されるコマンドには以下のものがあります。
   5.744 +
   5.745 +   * `<TAG>' ←→ `</TAG>'
   5.746 +   * `<img src="画像ファイル">' → 対応するviewer起動
   5.747 +   * `<a href="リンク先">' → リンク先へのポイント移動
   5.748 +   * `<applet code="プログラム">' → Javaソースプログラムへの移動
   5.749 +
   5.750 +
   5.751 +
   5.752 +File: yahtmlj, Node: Changing and Deleting, Next: CSS Support, Prev: Jump, Up: Top
   5.753 +
   5.754 +変更/削除
   5.755 +*********
   5.756 +
   5.757 +* Menu:
   5.758 +
   5.759 +* 対タグの変更::
   5.760 +* 文字参照への変更::
   5.761 +* リジョン内文字のURLencode::
   5.762 +* td括り/tr括り::
   5.763 +
   5.764 +
   5.765 +
   5.766 +File: yahtmlj, Node: 対タグの変更, Next: 文字参照への変更, Prev: Changing and Deleting, Up: Changing and Deleting
   5.767 +
   5.768 +対タグの変更
   5.769 +============
   5.770 +文書中のいろいろな場所で
   5.771 +
   5.772 +`[prefix] c'
   5.773 +             ... 対応するタグ等を変更
   5.774 +
   5.775 +を押すことにより、カーソル位置のHTML構文に応じた記述内容の変更を行います。
   5.776 +カーソル位置と変更する内容の対応は以下の通りです。
   5.777 +
   5.778 +   * `<TAG>'〜`</TAG>'
   5.779 +     ... `TAG' の変更
   5.780 +   * `<img src="画像ファイル" alt="photo">' などの属性値
   5.781 +     ... 属性値の変更
   5.782 +
   5.783 +
   5.784 +
   5.785 +File: yahtmlj, Node: 文字参照への変更, Next: リジョン内文字のURLencode, Prev: 対タグの変更, Up: Changing and Deleting
   5.786 +
   5.787 +文字参照への変更
   5.788 +================
   5.789 +文字としての < や > を表現するときは、文字参照を用いて&lt; や &gt; と表記
   5.790 +する必要がありますが、HTML以外のファイルからこれらの文字を含むテキストを張
   5.791 +り込んだ場合などに、これらの文字を一括して文字参照形式に変換できます。
   5.792 +
   5.793 +`[prefix] ;'
   5.794 +             ... 指定した領域の文字参照に置き換えるべき文字の置換
   5.795 +`[prefix] :'
   5.796 +             ... 指定した領域の文字参照を参照文字そのものに置換([prefix] ; 
   5.797 +     の逆変換)
   5.798 +
   5.799 +
   5.800 +
   5.801 +
   5.802 +File: yahtmlj, Node: リジョン内文字のURLencode, Next: td括り/tr括り, Prev: 文字参照への変更, Up: Changing and Deleting
   5.803 +
   5.804 +リジョン内文字のURLencode
   5.805 +=========================
   5.806 +      `[prefix] #'
   5.807 +     
   5.808 +     	... 指定した領域内に URLencode すべき文字があればそれらをエン
   5.809 +     コード表記に置換。
   5.810 +
   5.811 +
   5.812 +
   5.813 +File: yahtmlj, Node: td括り/tr括り, Prev: リジョン内文字のURLencode, Up: Changing and Deleting
   5.814 +
   5.815 +td括り/tr括り
   5.816 +=============
   5.817 +空白区切りで書いた表形式の行レコードを <td> 括りの並び,あるいはそれらをさ
   5.818 +らに <tr> で括った行並びに変換できます。
   5.819 +      `[prefix] }'
   5.820 +     
   5.821 +     	... 現在のリジョンにあるデータを空白区切りごとに
   5.822 +             <td>...</td> で括る
   5.823 +      `[prefix] ]'
   5.824 +     
   5.825 +     	... 現在のリジョンにある行を上記td括りをほどこしてからさらに行ごと
   5.826 +に <tr>...</tr> で括るデフォルトでは空白区切りですが,これを変えるときは
   5.827 +Delimiter: の問い合わせに区切り文字を指定します。たとえばカンマ(,) を指定
   5.828 +するとCSVから表を作ることができます。
   5.829 +
   5.830 +td以外の要素,具体的には th で括りたい場合は universal-argument (`C-u') を
   5.831 +つけて上記2つのコマンドを呼びます。どの要素で括るかの質問が増えるのでそれ
   5.832 +に th と入れれば,各フィールドを <th>...</th> で括ります。もし,第1フィー
   5.833 +ルドのみ th で,残りを全部 td 括りにしたいときは thd と入力して下さい。
   5.834 +
   5.835 +
   5.836 +
   5.837 +File: yahtmlj, Node: CSS Support, Next: Customizations, Prev: Changing and Deleting, Up: Top
   5.838 +
   5.839 +CSS(スタイルシート)サポート
   5.840 +***************************
   5.841 +
   5.842 +* Menu:
   5.843 +
   5.844 +* CSS-class completion::
   5.845 +* Reread CSS file::
   5.846 +
   5.847 +
   5.848 +
   5.849 +File: yahtmlj, Node: CSS-class completion, Next: Reread CSS file, Prev: CSS Support, Up: CSS Support
   5.850 +
   5.851 +CSSクラス名補完
   5.852 +===============
   5.853 +HTML屋はCSS(Cascading Style Sheets)のクラス名を補完入力することができます。
   5.854 +スタイル定義として
   5.855 +
   5.856 +      h1.foo, h2.foo { background-color: 0xffffff; }
   5.857 +      h1.bar, h2.bar { font-size: 120%; }
   5.858 +
   5.859 +のようなものがあった場合に、h1またはh2タグを [prefix] b や [prefix] l で補
   5.860 +完入力した場合に、それらに有効な class 名である foo, bar を候補として補完
   5.861 +入力することが可能です。また
   5.862 +
   5.863 +      .caution { font-size: 120%; background-color: 0xc00000;}
   5.864 +
   5.865 +のような全てのエレメントに働くclassが定義されていた場合は、全てのタグの補
   5.866 +完入力時にclass参照入力を求められます。これが煩わしい場合はエレメント名入
   5.867 +力確定のときにリターンキー(またはC-m)ではなく、C-jを押せばclass補完入力を
   5.868 +キャンセルできます。たとえば
   5.869 +
   5.870 +      [prefix] l                    行内タグ補完を起動
   5.871 +         (または[prefix] l SPC)
   5.872 +      tt                                  <tt></tt>をいれたいのでttと入力
   5.873 +      C-m
   5.874 +
   5.875 +とした場合は続いて class= と補完プロンプトが出ますが、
   5.876 +
   5.877 +      [prefix] l                    行内タグ補完を起動
   5.878 +         (または[prefix] l SPC)
   5.879 +      tt                                  <tt></tt>をいれたいのでttと入力
   5.880 +      C-j
   5.881 +
   5.882 +と最後を `C-j' で入力した場合は class 補完プロンプトは出ません。
   5.883 +
   5.884 +
   5.885 +
   5.886 +File: yahtmlj, Node: Reread CSS file, Prev: CSS-class completion, Up: CSS Support
   5.887 +
   5.888 +CSS定義ファイルの読み直し
   5.889 +=========================
   5.890 +htmlファイルを編集中にCSS定義ファイルを修正し、追加したclassを補完候補とし
   5.891 +て直ちに読み込ませたい場合は、`M-x yahtml-mode' として再起動を行ってくださ
   5.892 +い。
   5.893 +
   5.894 +
   5.895 +
   5.896 +File: yahtmlj, Node: Customizations, Next: Copying, Prev: CSS Support, Up: Top
   5.897 +
   5.898 +カスタマイズ
   5.899 +************
   5.900 +
   5.901 +yahtmlの動作を制御する変数について説明します。
   5.902 +
   5.903 +* Menu:
   5.904 +
   5.905 +* All customizable variables::  カスタマイズ変数一覧
   5.906 +* Hook variables::              hook変数
   5.907 +
   5.908 +
   5.909 +
   5.910 +File: yahtmlj, Node: All customizable variables, Next: Hook variables, Prev: Customizations, Up: Customizations
   5.911 +
   5.912 +カスタマイズ変数一覧
   5.913 +====================
   5.914 +
   5.915 + -- Variable: yahtml-prefix
   5.916 +     yahtml-mode 中のプリフィクスキー (`\C-c')
   5.917 +
   5.918 + -- Variable: yahtml-image-viewer
   5.919 +     imgで参照している画像ファイルを表示するときに起動するコマンド (xv)
   5.920 +
   5.921 + -- Variable: yahtml-www-browser
   5.922 +     `[prefix]g' で外部ページを表示するときに起動するブラウザ (netscape)
   5.923 +
   5.924 + -- Variable: yahtml-kanji-code
   5.925 +     デフォルトの漢字コード。1=sjis, 2=jis, 3=euc, 4=utf-8 (2)
   5.926 +     .htaccess ファイルに
   5.927 +           AddType "text/html; charset=xxx" .html の記述があった場合はそれ
   5.928 +     に従う
   5.929 +
   5.930 + -- Variable: yahtml-fill-column
   5.931 +     auto-fillするときのカラム数 (72)
   5.932 +
   5.933 + -- Variable: yahtml-fill-prefix
   5.934 +     yahtml-mode 固有のfill-prefix (`nil')
   5.935 +
   5.936 + -- Variable: yahtml-path-url-alist
   5.937 +     OSのファイルシステム上でのフルパス名と、その外部公開時のURLの対応表。
   5.938 +
   5.939 + -- Variable: yahtml-directory-index
   5.940 +     サーバアクセス時ファイル名を省略したときにデフォルトで開かれるインデッ
   5.941 +     クスファイルの名前。多くの場合 index.html。(`"index.html"')
   5.942 +
   5.943 + -- Variable: yahtml-lint-program
   5.944 +     HTML構文チェックプログラム。(`"jweblint"')
   5.945 +
   5.946 + -- Variable: yahtml-hate-too-deep-indentation
   5.947 +     ネストした列挙系環境でのインデントが深すぎるときにtにする。(`nil')
   5.948 +
   5.949 + -- Variable: yahtml-always-/p
   5.950 +     `<p>' をいれたら必ず `</p>' したい人向け。`nil'
   5.951 +
   5.952 + -- Variable: yahtml-p-prefered-env-regexp
   5.953 +     自動的に `<p>' を入れて欲しい環境。
   5.954 +     (`"^\\(body\\|dl\\|blockquote\\)"')
   5.955 +
   5.956 + -- Variable: yahtml-template-file
   5.957 +     新規HTMLファイル作成時に自動的に挿入して欲しいファイル名。
   5.958 +     `"~/http/template.html"'
   5.959 +
   5.960 + -- Variable: yahtml-prefer-upcases
   5.961 +     タグに大文字を使いたい。`nil'
   5.962 +
   5.963 + -- Variable: yahtml-prefer-upcase-attributes
   5.964 +     属性指定子に大文字を使いたい。`nil'
   5.965 +
   5.966 + -- Variable: yahtml-server-type
   5.967 +     Apache系のサーバを利用している場合は 'apache をセットする。
   5.968 +     ./.htaccess を参照するかどうかを決定する。`'apache'
   5.969 +
   5.970 + -- Variable: yahtml-apache-access-file
   5.971 +     `yahtml-server-type' が `'apache' のときにアクセス制限ファイル名を指
   5.972 +     定。`".htaccess"'
   5.973 +
   5.974 + -- Variable: yahtml-shell-command-option
   5.975 +     シェルで別コマンドを起動するときのオプション。
   5.976 +
   5.977 + -- Variable: yahtml-translate-hyphens-when-comment-region
   5.978 +     領域コメントアウトをするときに既に存在するハイフンを `&#45;' に変更す
   5.979 +     るかどうか。(`t')
   5.980 +
   5.981 + -- Variable: yahtml-entity-reference-chars-alist
   5.982 +     エンティティ参照(Entity Reference)で記述すべき文字群を`'(?文字 . "エ
   5.983 +     ンティティ表記")' という形式を列挙したalistで並べる。デフォルトで 
   5.984 +     `<', `>', `&', `'', `"' に対するalistが設定されているので、追加したい
   5.985 +     分だけを記述すれば良い。cdr部 `"エンティティ表記"' は、先頭の `&' と 
   5.986 +     末尾の`;' は含めずに書く。
   5.987 +
   5.988 + -- Variable: yahtml-faithful-to-htmllint
   5.989 +     構文チェッカとして htmllint を利用する場合ちょっとした余計な空白など
   5.990 +     に対しても警告を示すので、これを回避するときにはこの変数を`t'にする。
   5.991 +
   5.992 + -- Variable: yahtml-use-css
   5.993 +     CSSの補完機能を使うかどうか (`t')
   5.994 +
   5.995 + -- Variable: yahtml-image-inspection-bytes
   5.996 +     画像ファイルのサイズを調べるときに読み込むバイト数 (`10000')
   5.997 +
   5.998 + -- Variable: yahtml:img-default-alt-format
   5.999 +     <img src...>のALT属性のデフォルト文字列の書式。%xは画像の幅、%yは画像
  5.1000 +     の高さ、%sはファイルサイズに置換される (`"%xx%y(%sbytes)"')
  5.1001 +
  5.1002 + -- Variable: yahtml-escape-chars
  5.1003 +     href補完などのときに予約文字をURLエンコードするか; 'askのときは確認し
  5.1004 +     てから置換する (`'ask')
  5.1005 +
  5.1006 + -- Variable: yahtml-use-font-lock
  5.1007 +     ソースの色づけパッケージとして font-lock を利用するか(`(featurep
  5.1008 +     'font-lock)')
  5.1009 +
  5.1010 + -- Variable: yahtml-use-hilit19
  5.1011 +     ソースの色づけパッケージとして hilit19 を利用するか(`(featurep
  5.1012 +     'hilit19)')
  5.1013 +
  5.1014 + -- Variable: yahtml-indentation-boundary
  5.1015 +     インデント計算を打ち切ってよい境界となる正規表現(`"^\\s *<h[1-3]>"')
  5.1016 +
  5.1017 +
  5.1018 +
  5.1019 +File: yahtmlj, Node: Hook variables, Prev: All customizable variables, Up: Customizations
  5.1020 +
  5.1021 +hook変数
  5.1022 +========
  5.1023 +
  5.1024 +
  5.1025 +
  5.1026 +
  5.1027 +File: yahtmlj, Node: Copying, Next: Concept Index, Prev: Customizations, Up: Top
  5.1028 +
  5.1029 +取り扱い
  5.1030 +********
  5.1031 +
  5.1032 +  本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな
  5.1033 +る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた
  5.1034 +しません。常識的に扱ってください。また、使用している旨をメイルでお知らせい
  5.1035 +ただくと、作者は喜んでサポートに励むことでしょう。
  5.1036 +
  5.1037 +  苦情、希望、バグ報告、感想等は歓迎いたします。連絡は yuuji@yatex.org ま
  5.1038 +で(2000年12月現在)。継続的に使用してくださる方はメイリングリスト「fj野鳥の
  5.1039 +会」に是非加入してください。加入方法については本パッケージの `docs/htmlqa' 
  5.1040 +ファイルの「その他」の章を御覧ください。
  5.1041 +
  5.1042 +仕様は、予告なく確実に(気分次第で)変更されます:-p。
  5.1043 +
  5.1044 +                                                                  広瀬雄二
  5.1045 +
  5.1046 +
  5.1047 +
  5.1048 +
  5.1049 +File: yahtmlj, Node: Concept Index, Prev: Copying, Up: Top
  5.1050 +
  5.1051 +索引
  5.1052 +****
  5.1053 +
  5.1054 +* Menu:
  5.1055 +
  5.1056 +* カスタマイズ[かすたまいす]:   Customizations.         4.
  5.1057 +* キーアサイン[きいあさいん]:   Customizations.         4.
  5.1058 +* Demacs:                       Intro.                  4.
  5.1059 +* HTML屋[HTMLや]:               Intro.                  4.
  5.1060 +* LaTeX:                        Intro.                  4.
  5.1061 +* Mule:                         Intro.                  4.
  5.1062 +
  5.1063 +
  5.1064 +
  5.1065 +
  5.1066 +Tag table:
  5.1067 +Node: Top260
  5.1068 +Node: Intro729
  5.1069 +Node: Installation1008
  5.1070 +Node: yahtml起動のための設定1196
  5.1071 +Node: lintプログラム/ブラウザ/イメージヴューア環境等の設定1850
  5.1072 +Node: WWWページ環境用変数の設定2350
  5.1073 +Node: Command Invocation3121
  5.1074 +Node: Completion3448
  5.1075 +Node: Jump4432
  5.1076 +Node: Changing and Deleting4831
  5.1077 +Node: 対タグの変更5005
  5.1078 +Node: 文字参照への変更5355
  5.1079 +Node: リジョン内文字のURLencode5738
  5.1080 +Node: td括り/tr括り5972
  5.1081 +Node: CSS Support6601
  5.1082 +Node: CSS-class completion6799
  5.1083 +Node: Reread CSS file7783
  5.1084 +Node: Customizations8005
  5.1085 +Node: All customizable variables8229
  5.1086 +Node: Hook variables11227
  5.1087 +Node: Copying11339
  5.1088 +Node: Concept Index11842
  5.1089 +
  5.1090 +End tag table
     6.1 --- a/docs/yahtmlj.tex	Thu Jan 12 12:27:20 2012 +0900
     6.2 +++ b/docs/yahtmlj.tex	Mon May 14 18:39:05 2012 +0900
     6.3 @@ -1,561 +1,564 @@
     6.4 -\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 
     6.5 -\input texinfo
     6.6 -@setfilename yahtmlj
     6.7 -@settitle Yet Another html-mode for Emacs
     6.8 -
     6.9 -@iftex
    6.10 -@c @syncodeindex fn cp
    6.11 -@c Last modified Thu Dec  9 15:56:35 2010 on firestorm
    6.12 -@syncodeindex vr cp
    6.13 -@end iftex
    6.14 -
    6.15 -@titlepage
    6.16 -@sp 10
    6.17 -@center
    6.18 -@subtitle Yet Another html-mode for emacs
    6.19 -@title 『HTML屋』
    6.20 -@subtitle // yahtml //
    6.21 -@author @copyright{} 1994-1997 by    HIROSE, Yuuji [yuuji@@yatex.org]
    6.22 -@end titlepage
    6.23 -
    6.24 -@node Top, Intro, (dir), (dir)
    6.25 -@comment  node-name,  next,  previous,  up
    6.26 -
    6.27 -@menu
    6.28 -* Intro::                       はじめに
    6.29 -* Installation::                インストール
    6.30 -* Command Invocation::          外部コマンド起動
    6.31 -* Completion::                  補完入力
    6.32 -* Jump::                        カーソルジャンプ
    6.33 -* Changing and Deleting::       変更と削除
    6.34 -* CSS Support::                 スタイルシート補完
    6.35 -* Customizations::              カスタマイズ変数一覧
    6.36 -* Copying::                     とりあつかい
    6.37 -* Concept Index::               索引
    6.38 -
    6.39 -@end menu
    6.40 -
    6.41 -@node Intro, Installation, Top, Top
    6.42 -@comment  node-name,  next,  previous,  up
    6.43 -@chapter はじめに
    6.44 -@cindex Demacs
    6.45 -@cindex Mule
    6.46 -@cindex LaTeX
    6.47 -@cindex HTML屋[HTMLや]
    6.48 -
    6.49 -yahtmlは GNU Emacs 上で HTML文書を作成する時に、繁雑なHTMLタグの入力を補
    6.50 -完機能によってスムーズに行えるようにするだけでなく、weblintなどの構文チェッ
    6.51 -クプログラム、カーソル位置のURLやファイル名に依存したブラウザ/イメージヴュー
    6.52 -アの起動などを Emacs 編集画面中から
    6.53 -行えるようにするパッケージです。
    6.54 -
    6.55 -(このInfoは未完成です(__)…)
    6.56 -
    6.57 -@node Installation, Command Invocation, Intro, Top
    6.58 -@comment  node-name,  next,  previous,  up
    6.59 -@chapter インストール
    6.60 -@menu
    6.61 -* yahtml起動のための設定::      
    6.62 -* lintプログラム/ブラウザ/イメージヴューア環境等の設定::  
    6.63 -* WWWページ環境用変数の設定::   
    6.64 -@end menu
    6.65 -
    6.66 -@node yahtml起動のための設定, lintプログラム/ブラウザ/イメージヴューア環境等の設定, Installation, Installation
    6.67 -@section yahtml起動のための設定
    6.68 -
    6.69 -
    6.70 -@file{~/.emacs}に下の2項目を加えます。
    6.71 -
    6.72 -@lisp
    6.73 -(setq auto-mode-alist
    6.74 -      (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
    6.75 -(autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
    6.76 -@end lisp
    6.77 -
    6.78 -次にyahtmlに必要なファイル(@file{yahtml.el}, @file{yatexlib.el},
    6.79 -@file{yatexprc.el}) を置くディレクトリを load-path に加えます。たとえば、 
    6.80 -@file{~/src/emacs/yahtml}に置くのであれば、
    6.81 -
    6.82 -@lisp
    6.83 -(setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path))
    6.84 -@end lisp
    6.85 -
    6.86 -@noindent 
    6.87 -などとします。
    6.88 -
    6.89 -  以上の設定により、拡張子が .html であるファイルを編集すると自動的に
    6.90 -yahtml がロードされます。yahtmlが正常に起動できたときはモードラインの表示が
    6.91 -「yahtml」に変わります。
    6.92 -
    6.93 -@node lintプログラム/ブラウザ/イメージヴューア環境等の設定, WWWページ環境用変数の設定, yahtml起動のための設定, Installation
    6.94 -@section lintプログラム/ブラウザ/イメージヴューア環境等の設定
    6.95 -
    6.96 -利用する外部プログラムなどに関する以下の変数を確認し、必要なら正しい値に変
    6.97 -更します(括弧内はデフォルト値)。
    6.98 -@table @code
    6.99 -@item yahtml-www-browser
   6.100 -        @dots{} 起動するブラウザのコマンド名(netscape)
   6.101 -@item yahtml-image-viewer
   6.102 -        @dots{} 起動する画像ビューアのコマンド名(xv)
   6.103 -@item yahtml-lint-program
   6.104 -        @dots{} 構文チェックプログラムのコマンド名(jweblint)
   6.105 -@item yahtml-kanji-code
   6.106 -        @dots{} htmlファイルの漢字コード
   6.107 -@end table
   6.108 -
   6.109 -@node WWWページ環境用変数の設定,  , lintプログラム/ブラウザ/イメージヴューア環境等の設定, Installation
   6.110 -@section WWWページ環境用変数の設定
   6.111 -
   6.112 -ホームページとなるファイルが存在するPATH名に関する変数を設定します。
   6.113 -@table @code
   6.114 -@item yahtml-path-url-alist
   6.115 -        @dots{} ファイルシステム上のPATH名と、URLの対応表
   6.116 -@item yahtml-directory-index
   6.117 -        @dots{} URL指定でファイル名を省略したときに表示されるインデックス
   6.118 -                ファイル名(NCSA系httpdなら @file{index.html}, CERN系なら
   6.119 -                @file{Welcome.html}が一般的)
   6.120 -@end table
   6.121 -
   6.122 -変数 @code{yahtml-path-url-alist} の設定例を示します。例えば、自宅では、
   6.123 -@file{/home/yuuji/http/} が @code{http://localhost/~yuuji} で参照でき、職
   6.124 -場では @file{/usr/home/yuuji/www/} が@code{http://www.keio.ac.jp/~yuuji/} 
   6.125 -で参照できるようになっている場合は以下のように設定します。
   6.126 -
   6.127 -@lisp
   6.128 -(setq yahtml-path-url-alist
   6.129 -      '(("/home/yuuj/http" . "http://localhost/~yuuji")
   6.130 -        ("/usr/home/yuuj/www" . "http://www.keio.ac.jp/~yuuji")))
   6.131 -@end lisp
   6.132 -
   6.133 -この対応組はいくらでも設定することができます。
   6.134 -
   6.135 -@node Command Invocation, Completion, Installation, Top
   6.136 -@comment  node-name,  next,  previous,  up
   6.137 -@chapter 外部コマンド起動
   6.138 -
   6.139 -HTMLファイル編集にかかわるいくつかのコマンドを即座に呼ぶことができます。
   6.140 -@table @kbd
   6.141 -@item [prefix] t j
   6.142 -        @dots{} HTML構文チェッカ(jweblint)起動
   6.143 -@item [prefix] t p
   6.144 -        @dots{} 現在のページを対象としたブラウザ起動
   6.145 -@item [prefix] t r
   6.146 -        @dots{} 現在のページがブラウザに表示されているときのreload指定
   6.147 -@end table
   6.148 -
   6.149 -@node Completion, Jump, Command Invocation, Top
   6.150 -@comment  node-name,  next,  previous,  up
   6.151 -@chapter 補完入力
   6.152 -
   6.153 -「野鳥」で利用できる、「begin型補完」、「section型補完」、
   6.154 -「large型補完」、「maketitle型補完」、「アクセント補完」
   6.155 -と全く同じキー操作で対応する
   6.156 -HTMLタグの補完入力ができます。それぞれの型の補完は順に、
   6.157 -「複数行に渡るタグ入力」、「空要素タグ(imgなど)の補完」、
   6.158 -「一行内での開始/終了タグの入力」、「空要素空属性タグの入力」、
   6.159 -「文字参照入力」
   6.160 -に
   6.161 -対応しています。具体的には
   6.162 -
   6.163 -@table @kbd
   6.164 -@item [prefix] b (野鳥のbegin補完に対応)
   6.165 -@dots{}
   6.166 -@example
   6.167 -<ul>
   6.168 -</ul>
   6.169 -@end example
   6.170 -
   6.171 -@noindent
   6.172 -のように開始タグと終了タグを二行に渡って書きたい場合の補完を指します。
   6.173 -おもにブロック型タグが補完候補に含まれます。
   6.174 -
   6.175 -@item [prefix] s (野鳥のsection型補完に対応)
   6.176 -@dots{}
   6.177 -@example
   6.178 -<img src="foo.gif" alt="photo">
   6.179 -@end example
   6.180 -
   6.181 -@noindent
   6.182 -のように終了タグを持たず、かつ属性値のみで機能を指定するタグを補完します。
   6.183 -補完候補としては、img, input が存在します。
   6.184 -
   6.185 -@item [prefix] l (野鳥のlarge型補完に対応)
   6.186 -@dots{} begin型補完とほぼ同じですが、
   6.187 -
   6.188 -@example
   6.189 -<big> 〜 </big>
   6.190 -@end example
   6.191 -
   6.192 -@noindent
   6.193 -のように一行内に開始/終了タグを入れたいときに利用します。
   6.194 -
   6.195 -@item [prefix] m (野鳥のmaketitle型補完に対応)
   6.196 -@dots{} 要素も属性値も持たないタグを補完入力します。<br> 
   6.197 -などが補完候補に相当します。
   6.198 -
   6.199 -@item [prefix] a (野鳥のアクセント補完に対応)
   6.200 -@dots{} エンティティ参照による文字表記を入力するときに用います。
   6.201 -デフォルトでは < (&lt;), > (&gt;), & (&amp;), " (&quot;), ' (&apos;),
   6.202 -ブランク (&nbsp;) の補完入力が行えます。
   6.203 -@end table
   6.204 -
   6.205 -@node Jump, Changing and Deleting, Completion, Top
   6.206 -@comment  node-name,  next,  previous,  up
   6.207 -@chapter カーソルジャンプ
   6.208 -文書中のいろいろな場所で
   6.209 -
   6.210 -@table @kbd
   6.211 -@item [prefix] g
   6.212 -        @dots{} 対応するオブジェクトにジャンプ
   6.213 -@end table
   6.214 -
   6.215 -@noindent 
   6.216 -を押すことにより、カーソル位置のHTML構文に対応する場所にジャンプ
   6.217 -します。対応関係が存在すると解釈されるコマンドには以下のものがあります。
   6.218 -
   6.219 -@itemize @bullet
   6.220 -@item @code{<TAG>} ←→ @code{</TAG>}
   6.221 -@item @code{<img src="画像ファイル">} → 対応するviewer起動
   6.222 -@item @code{<a href="リンク先">} → リンク先へのポイント移動
   6.223 -@item @code{<applet code="プログラム">} → Javaソースプログラムへの移動
   6.224 -@c @item @code{\include(\input)} → 対応するファイル
   6.225 -@end itemize
   6.226 -
   6.227 -@node Changing and Deleting, CSS Support, Jump, Top
   6.228 -@comment  node-name,  next,  previous,  up
   6.229 -@chapter 変更/削除
   6.230 -
   6.231 -@menu
   6.232 -* 対タグの変更::                
   6.233 -* 文字参照への変更::            
   6.234 -* リジョン内文字のURLencode::   
   6.235 -* td括り/tr括り::               
   6.236 -@end menu
   6.237 -
   6.238 -@node 対タグの変更, 文字参照への変更, Changing and Deleting, Changing and Deleting
   6.239 -@comment  node-name,  next,  previous,  up
   6.240 -@section 対タグの変更
   6.241 -文書中のいろいろな場所で
   6.242 -
   6.243 -@table @kbd
   6.244 -@item [prefix] c
   6.245 -        @dots{} 対応するタグ等を変更
   6.246 -@end table
   6.247 -
   6.248 -@noindent 
   6.249 -を押すことにより、カーソル位置のHTML構文に応じた
   6.250 -記述内容の変更を行います。カーソル位置と変更する内容の
   6.251 -対応は以下の通りです。
   6.252 -
   6.253 -@itemize @bullet
   6.254 -@item @code{<TAG>}〜@code{</TAG>}
   6.255 -@dots{} @code{TAG} の変更
   6.256 -@item @code{<img src="画像ファイル" alt="photo">} などの属性値
   6.257 -@dots{} 属性値の変更
   6.258 -@end itemize
   6.259 -
   6.260 -@node 文字参照への変更,  , 対タグの変更, Changing and Deleting
   6.261 -@comment  node-name,  next,  previous,  up
   6.262 -@section 文字参照への変更
   6.263 -文字としての < や > を表現するときは、文字参照を用いて
   6.264 -&lt; や &gt; と表記する必要がありますが、
   6.265 -HTML以外のファイルからこれらの文字を含むテキストを張り込んだ場合
   6.266 -などに、これらの文字を一括して文字参照形式に変換できます。
   6.267 -
   6.268 -@table @kbd
   6.269 -@item [prefix] ;
   6.270 -        @dots{} 指定した領域の文字参照に置き換えるべき文字の置換
   6.271 -@item [prefix] :
   6.272 -        @dots{} 指定した領域の文字参照を参照文字そのものに置換
   6.273 -        ([prefix] ; の逆変換)
   6.274 -@end table
   6.275 -
   6.276 -
   6.277 -@node リジョン内文字のURLencode, td括り/tr括り, 文字参照への変更, Changing and Deleting
   6.278 -@comment  node-name,  next,  previous,  up
   6.279 -@section リジョン内文字のURLencode
   6.280 -@table
   6.281 - @item [prefix] #
   6.282 -	@dots{} 指定した領域内に URLencode すべき文字があればそれらを
   6.283 -        エンコード表記に置換。
   6.284 -@end table
   6.285 -
   6.286 -@node  td括り/tr括り,  , リジョン内文字のURLencode, Changing and Deleting
   6.287 -@comment  node-name,  next,  previous,  up
   6.288 -@section td括り/tr括り
   6.289 -空白区切りで書いた表形式の行レコードを <td> 括りの並び,
   6.290 -あるいはそれらをさらに <tr> で括った行並びに変換できます。
   6.291 -@table @kbd
   6.292 - @item [prefix] }
   6.293 -	@dots{} 現在のリジョンにあるデータを空白区切りごとに
   6.294 -        <td>...</td> で括る
   6.295 - @item [prefix] ]
   6.296 -	@dots{} 現在のリジョンにある行を
   6.297 -        上記td括りをほどこしてからさらに行ごとに <tr>...</tr> で括る
   6.298 -@end table
   6.299 -デフォルトでは空白区切りですが,これを変えるときは
   6.300 -Delimiter: の問い合わせに区切り文字を指定します。たとえばカンマ(,)
   6.301 -を指定するとCSVから表を作ることができます。
   6.302 -
   6.303 -td以外の要素,具体的には th で括りたい場合は universal-argument
   6.304 -(@kbd{C-u}) をつけて上記2つのコマンドを呼びます。どの要素で括るかの
   6.305 -質問が増えるのでそれに th と入れれば,各フィールドを <th>...</th>
   6.306 -で括ります。もし,第1フィールドのみ th で,残りを全部 td 括りにしたいとき
   6.307 -は thd と入力して下さい。
   6.308 -
   6.309 -@node CSS Support, Customizations, Changing and Deleting, Top
   6.310 -@comment  node-name,  next,  previous,  up
   6.311 -@chapter CSS(スタイルシート)サポート
   6.312 -
   6.313 -@menu
   6.314 -* CSS-class completion::        
   6.315 -* Reread CSS file::             
   6.316 -@end menu
   6.317 -
   6.318 -@node CSS-class completion, Reread CSS file, CSS Support, CSS Support
   6.319 -@comment  node-name,  next,  previous,  up
   6.320 -@section CSSクラス名補完
   6.321 -HTML屋はCSS(Cascading Style Sheets)のクラス名を補完入力することができます。
   6.322 -スタイル定義として
   6.323 -
   6.324 -@display
   6.325 - h1.foo, h2.foo @{ background-color: 0xffffff; @}
   6.326 - h1.bar, h2.bar @{ font-size: 120%; @}
   6.327 -@end display
   6.328 -
   6.329 -のようなものがあった場合に、h1またはh2タグを [prefix] b や [prefix] l で補
   6.330 -完入力した場合に、それらに有効な class 名である foo, bar を候補として補完
   6.331 -入力することが可能です。また
   6.332 -
   6.333 -@display
   6.334 - .caution @{ font-size: 120%; background-color: 0xc00000;@}
   6.335 -@end display
   6.336 -
   6.337 -のような全てのエレメントに働くclassが定義されていた場合は、全てのタグの補
   6.338 -完入力時にclass参照入力を求められます。これが煩わしい場合はエレメント名入
   6.339 -力確定のときにリターンキー(またはC-m)ではなく、C-jを押せばclass補完入力を
   6.340 -キャンセルできます。たとえば
   6.341 -
   6.342 -@display
   6.343 - @kbd{[prefix] l}                    行内タグ補完を起動
   6.344 -    (または@kbd{[prefix] l SPC})
   6.345 - tt                                  <tt></tt>をいれたいのでttと入力
   6.346 - @kbd{C-m}
   6.347 -@end display
   6.348 -
   6.349 -とした場合は続いて class= と補完プロンプトが出ますが、
   6.350 -
   6.351 -@display
   6.352 - @kbd{[prefix] l}                    行内タグ補完を起動
   6.353 -    (または@kbd{[prefix] l SPC})
   6.354 - tt                                  <tt></tt>をいれたいのでttと入力
   6.355 - @kbd{C-j}
   6.356 -@end display
   6.357 -
   6.358 -と最後を @kbd{C-j} で入力した場合は class 補完プロンプトは出ません。
   6.359 -
   6.360 -@node Reread CSS file,  , CSS-class completion, CSS Support
   6.361 -@comment  node-name,  next,  previous,  up
   6.362 -@section CSS定義ファイルの読み直し
   6.363 -htmlファイルを編集中にCSS定義ファイルを修正し、追加した
   6.364 -classを補完候補として直ちに読み込ませたい場合は、
   6.365 -@kbd{M-x yahtml-mode} として再起動を行ってください。
   6.366 -
   6.367 -@node Customizations, Copying, CSS Support, Top
   6.368 -@comment  node-name,  next,  previous,  up
   6.369 -@chapter カスタマイズ
   6.370 -@cindex カスタマイズ[かすたまいす]
   6.371 -@cindex キーアサイン[きいあさいん]
   6.372 -
   6.373 -yahtmlの動作を制御する変数について説明します。
   6.374 -
   6.375 -@menu
   6.376 -* All customizable variables::  カスタマイズ変数一覧
   6.377 -* Hook variables::              hook変数
   6.378 -@end menu
   6.379 -
   6.380 -@node All customizable variables, Hook variables, Customizations, Customizations
   6.381 -@comment  node-name,  next,  previous,  up
   6.382 -@section カスタマイズ変数一覧
   6.383 -
   6.384 -@defvar yahtml-prefix
   6.385 -yahtml-mode 中のプリフィクスキー (@kbd{\C-c})
   6.386 -@end defvar
   6.387 -
   6.388 -@defvar yahtml-image-viewer
   6.389 -imgで参照している画像ファイルを表示するときに起動するコマンド (xv)
   6.390 -@end defvar
   6.391 -
   6.392 -@defvar yahtml-www-browser
   6.393 -@kbd{[prefix]g} で外部ページを表示するときに起動するブラウザ (netscape)
   6.394 -@end defvar
   6.395 -
   6.396 -@defvar yahtml-kanji-code
   6.397 -デフォルトの漢字コード。1=sjis, 2=jis, 3=euc, 4=utf-8 (2)
   6.398 -.htaccess ファイルに
   6.399 -@quotation
   6.400 - AddType "text/html; charset=xxx" .html
   6.401 -@end quotation
   6.402 -の記述があった場合はそれに従う
   6.403 -@end defvar
   6.404 -
   6.405 -@defvar yahtml-fill-column
   6.406 -auto-fillするときのカラム数 (72)
   6.407 -@end defvar
   6.408 -
   6.409 -@defvar yahtml-fill-prefix
   6.410 -yahtml-mode 固有のfill-prefix (@code{nil})
   6.411 -@end defvar
   6.412 -
   6.413 -@defvar yahtml-path-url-alist
   6.414 -OSのファイルシステム上でのフルパス名と、その外部公開時のURLの対応表。
   6.415 -@end defvar
   6.416 -
   6.417 -@defvar yahtml-directory-index
   6.418 -サーバアクセス時ファイル名を省略したときにデフォルトで開かれる
   6.419 -インデックスファイルの名前。多くの場合 index.html。(@code{"index.html"})
   6.420 -@end defvar
   6.421 -
   6.422 -@defvar yahtml-lint-program
   6.423 -HTML構文チェックプログラム。(@code{"jweblint"})
   6.424 -@end defvar
   6.425 -
   6.426 -@defvar yahtml-hate-too-deep-indentation
   6.427 -ネストした列挙系環境でのインデントが深すぎるときにtにする。(@code{nil})
   6.428 -@end defvar
   6.429 -
   6.430 -@defvar yahtml-always-/p
   6.431 -@code{<p>} をいれたら必ず @code{</p>} したい人向け。@code{nil}
   6.432 -@end defvar
   6.433 -
   6.434 -@defvar yahtml-p-prefered-env-regexp
   6.435 -自動的に @code{<p>} を入れて欲しい環境。
   6.436 -(@code{"^\\(body\\|dl\\|blockquote\\)"})
   6.437 -@end defvar
   6.438 -
   6.439 -@defvar yahtml-template-file
   6.440 -新規HTMLファイル作成時に自動的に挿入して欲しいファイル名。
   6.441 -@file{"~/http/template.html"}
   6.442 -@end defvar
   6.443 -
   6.444 -@defvar yahtml-prefer-upcases
   6.445 -タグに大文字を使いたい。@code{nil}
   6.446 -@end defvar
   6.447 -
   6.448 -@defvar yahtml-prefer-upcase-attributes
   6.449 -属性指定子に大文字を使いたい。@code{nil}
   6.450 -@end defvar
   6.451 -
   6.452 -@defvar yahtml-server-type
   6.453 -Apache系のサーバを利用している場合は 'apache をセットする。
   6.454 -./.htaccess を参照するかどうかを決定する。@code{'apache}
   6.455 -@end defvar
   6.456 -
   6.457 -@defvar yahtml-apache-access-file
   6.458 -@code{yahtml-server-type} が @code{'apache} のときに
   6.459 -アクセス制限ファイル名を指定。@file{".htaccess"}
   6.460 -@end defvar
   6.461 -
   6.462 -@defvar yahtml-shell-command-option
   6.463 -シェルで別コマンドを起動するときのオプション。
   6.464 -@end defvar
   6.465 -
   6.466 -@defvar yahtml-translate-hyphens-when-comment-region
   6.467 -領域コメントアウトをするときに既に存在するハイフンを @code{&#45;} に
   6.468 -変更するかどうか。(@code{t})
   6.469 -@end defvar
   6.470 -
   6.471 -@defvar yahtml-entity-reference-chars-alist
   6.472 -エンティティ参照(Entity Reference)で記述すべき文字群を
   6.473 - @code{'(?文字 . "エンティティ表記")}  という形式を列挙した
   6.474 -alistで並べる。デフォルトで @code{<}, @code{>}, @code{&}, @code{'}, 
   6.475 -@code{"} に対するalistが設定されているので、追加したい分だけを記述すれば良
   6.476 -い。cdr部 @code{"エンティティ表記"} は、先頭の @code{&} と 末尾の@code{;}
   6.477 -は含めずに書く。
   6.478 -@end defvar
   6.479 -
   6.480 -@defvar yahtml-faithful-to-htmllint
   6.481 -構文チェッカとして htmllint を利用する場合ちょっとした余計な空白などに
   6.482 -対しても警告を示すので、これを回避するときにはこの変数を@code{t}に
   6.483 -する。
   6.484 -@end defvar
   6.485 -
   6.486 -@defvar yahtml-use-css
   6.487 -CSSの補完機能を使うかどうか (@code{t})
   6.488 -@end defvar
   6.489 -
   6.490 -@defvar yahtml-image-inspection-bytes
   6.491 -画像ファイルのサイズを調べるときに読み込むバイト数 (@code{10000})
   6.492 -@end defvar
   6.493 -
   6.494 -@defvar yahtml:img-default-alt-format
   6.495 -<img src...>のALT属性のデフォルト文字列の書式。%xは画像の幅、
   6.496 -%yは画像の高さ、%sはファイルサイズに置換される (@code{"%xx%y(%sbytes)"})
   6.497 -@end defvar
   6.498 -
   6.499 -@defvar yahtml-escape-chars
   6.500 -href補完などのときに予約文字をURLエンコードするか;
   6.501 -'askのときは確認してから置換する (@code{'ask})
   6.502 -@end defvar
   6.503 -
   6.504 -@defvar yahtml-use-font-lock
   6.505 -ソースの色づけパッケージとして font-lock を利用するか
   6.506 -(@code{(featurep 'font-lock)})
   6.507 -@end defvar
   6.508 -
   6.509 -@defvar yahtml-use-hilit19
   6.510 -ソースの色づけパッケージとして hilit19 を利用するか
   6.511 -(@code{(featurep 'hilit19)})
   6.512 -@end defvar
   6.513 -
   6.514 -@defvar yahtml-indentation-boundary
   6.515 -インデント計算を打ち切ってよい境界となる正規表現
   6.516 -(@code{"^\\s *<h[1-3]>"})
   6.517 -@end defvar
   6.518 -
   6.519 -@node Hook variables,  , All customizable variables, Customizations
   6.520 -@comment  node-name,  next,  previous,  up
   6.521 -@section hook変数
   6.522 -
   6.523 -
   6.524 -@node Copying, Concept Index, Customizations, Top
   6.525 -@comment  node-name,  next,  previous,  up
   6.526 -@chapter 取り扱い
   6.527 -
   6.528 -  本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな
   6.529 -る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた
   6.530 -しません。常識的に扱ってください。また、使用している旨をメイルでお知らせい
   6.531 -ただくと、作者は喜んでサポートに励むことでしょう。
   6.532 -
   6.533 -  苦情、希望、バグ報告、感想等は歓迎いたします。
   6.534 -連絡は yuuji@@yatex.org まで(2000年12月現在)。
   6.535 -継続的に使用してくださる方はメイリングリスト「fj野鳥の会」に
   6.536 -是非加入してください。加入方法については本パッケージの @file{docs/htmlqa}
   6.537 -ファイルの「その他」の章を御覧ください。
   6.538 -
   6.539 -仕様は、予告なく確実に(気分次第で)変更されます:-p。
   6.540 -
   6.541 -@flushright
   6.542 -広瀬雄二
   6.543 -@end flushright
   6.544 -
   6.545 -
   6.546 -@node    Concept Index,  , Copying, Top
   6.547 -@comment node-name, next, previous, up
   6.548 -@unnumbered 索引
   6.549 -@printindex cp
   6.550 -
   6.551 -
   6.552 -@contents
   6.553 -
   6.554 -@bye
   6.555 -
   6.556 -@c Local Variables:
   6.557 -@c fill-column: 74
   6.558 -@c fill-prefix: nil
   6.559 -@c buffer-file-coding-system: sjis-dos
   6.560 -@c End:
   6.561 -
   6.562 -Tag table:
   6.563 -
   6.564 -End tag table
   6.565 +\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 
   6.566 +\input texinfo
   6.567 +@setfilename yahtmlj
   6.568 +@settitle Yet Another html-mode for Emacs
   6.569 +@direntry
   6.570 +* yahtml: (yahtmlj).    Yet Another html-mode for Emacs (Japanese).
   6.571 +@end direntry
   6.572 +
   6.573 +@iftex
   6.574 +@c @syncodeindex fn cp
   6.575 +@c Last modified Fri May 11 15:42:05 2012 on firestorm
   6.576 +@syncodeindex vr cp
   6.577 +@end iftex
   6.578 +
   6.579 +@titlepage
   6.580 +@sp 10
   6.581 +@center
   6.582 +@subtitle Yet Another html-mode for emacs
   6.583 +@title 『HTML屋』
   6.584 +@subtitle // yahtml //
   6.585 +@author @copyright{} 1994-2012 by    HIROSE, Yuuji [yuuji@@yatex.org]
   6.586 +@end titlepage
   6.587 +
   6.588 +@node Top, Intro, (dir), (dir)
   6.589 +@comment  node-name,  next,  previous,  up
   6.590 +
   6.591 +@menu
   6.592 +* Intro::                       はじめに
   6.593 +* Installation::                インストール
   6.594 +* Command Invocation::          外部コマンド起動
   6.595 +* Completion::                  補完入力
   6.596 +* Jump::                        カーソルジャンプ
   6.597 +* Changing and Deleting::       変更と削除
   6.598 +* CSS Support::                 スタイルシート補完
   6.599 +* Customizations::              カスタマイズ変数一覧
   6.600 +* Copying::                     とりあつかい
   6.601 +* Concept Index::               索引
   6.602 +
   6.603 +@end menu
   6.604 +
   6.605 +@node Intro, Installation, Top, Top
   6.606 +@comment  node-name,  next,  previous,  up
   6.607 +@chapter はじめに
   6.608 +@cindex Demacs
   6.609 +@cindex Mule
   6.610 +@cindex LaTeX
   6.611 +@cindex HTML屋[HTMLや]
   6.612 +
   6.613 +yahtmlは GNU Emacs 上で HTML文書を作成する時に、繁雑なHTMLタグの入力を補
   6.614 +完機能によってスムーズに行えるようにするだけでなく、weblintなどの構文チェッ
   6.615 +クプログラム、カーソル位置のURLやファイル名に依存したブラウザ/イメージヴュー
   6.616 +アの起動などを Emacs 編集画面中から
   6.617 +行えるようにするパッケージです。
   6.618 +
   6.619 +(このInfoは未完成です(__)…)
   6.620 +
   6.621 +@node Installation, Command Invocation, Intro, Top
   6.622 +@comment  node-name,  next,  previous,  up
   6.623 +@chapter インストール
   6.624 +@menu
   6.625 +* yahtml起動のための設定::
   6.626 +* lintプログラム/ブラウザ/イメージヴューア環境等の設定::
   6.627 +* WWWページ環境用変数の設定::
   6.628 +@end menu
   6.629 +
   6.630 +@node yahtml起動のための設定, lintプログラム/ブラウザ/イメージヴューア環境等の設定, Installation, Installation
   6.631 +@section yahtml起動のための設定
   6.632 +
   6.633 +
   6.634 +@file{~/.emacs}に下の2項目を加えます。
   6.635 +
   6.636 +@lisp
   6.637 +(setq auto-mode-alist
   6.638 +      (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
   6.639 +(autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
   6.640 +@end lisp
   6.641 +
   6.642 +次にyahtmlに必要なファイル(@file{yahtml.el}, @file{yatexlib.el},
   6.643 +@file{yatexprc.el}) を置くディレクトリを load-path に加えます。たとえば、 
   6.644 +@file{~/src/emacs/yahtml}に置くのであれば、
   6.645 +
   6.646 +@lisp
   6.647 +(setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path))
   6.648 +@end lisp
   6.649 +
   6.650 +@noindent
   6.651 +などとします。
   6.652 +
   6.653 +  以上の設定により、拡張子が .html であるファイルを編集すると自動的に
   6.654 +yahtml がロードされます。yahtmlが正常に起動できたときはモードラインの表示が
   6.655 +「yahtml」に変わります。
   6.656 +
   6.657 +@node lintプログラム/ブラウザ/イメージヴューア環境等の設定, WWWページ環境用変数の設定, yahtml起動のための設定, Installation
   6.658 +@section lintプログラム/ブラウザ/イメージヴューア環境等の設定
   6.659 +
   6.660 +利用する外部プログラムなどに関する以下の変数を確認し、必要なら正しい値に変
   6.661 +更します(括弧内はデフォルト値)。
   6.662 +@table @code
   6.663 +@item yahtml-www-browser
   6.664 +        @dots{} 起動するブラウザのコマンド名(netscape)
   6.665 +@item yahtml-image-viewer
   6.666 +        @dots{} 起動する画像ビューアのコマンド名(xv)
   6.667 +@item yahtml-lint-program
   6.668 +        @dots{} 構文チェックプログラムのコマンド名(jweblint)
   6.669 +@item yahtml-kanji-code
   6.670 +        @dots{} htmlファイルの漢字コード
   6.671 +@end table
   6.672 +
   6.673 +@node WWWページ環境用変数の設定,  , lintプログラム/ブラウザ/イメージヴューア環境等の設定, Installation
   6.674 +@section WWWページ環境用変数の設定
   6.675 +
   6.676 +ホームページとなるファイルが存在するPATH名に関する変数を設定します。
   6.677 +@table @code
   6.678 +@item yahtml-path-url-alist
   6.679 +        @dots{} ファイルシステム上のPATH名と、URLの対応表
   6.680 +@item yahtml-directory-index
   6.681 +        @dots{} URL指定でファイル名を省略したときに表示されるインデックス
   6.682 +                ファイル名(NCSA系httpdなら @file{index.html}, CERN系なら
   6.683 +                @file{Welcome.html}が一般的)
   6.684 +@end table
   6.685 +
   6.686 +変数 @code{yahtml-path-url-alist} の設定例を示します。例えば、自宅では、
   6.687 +@file{/home/yuuji/http/} が @code{http://localhost/~yuuji} で参照でき、職
   6.688 +場では @file{/usr/home/yuuji/www/} が@code{http://www.keio.ac.jp/~yuuji/} 
   6.689 +で参照できるようになっている場合は以下のように設定します。
   6.690 +
   6.691 +@lisp
   6.692 +(setq yahtml-path-url-alist
   6.693 +      '(("/home/yuuj/http" . "http://localhost/~yuuji")
   6.694 +        ("/usr/home/yuuj/www" . "http://www.keio.ac.jp/~yuuji")))
   6.695 +@end lisp
   6.696 +
   6.697 +この対応組はいくらでも設定することができます。
   6.698 +
   6.699 +@node Command Invocation, Completion, Installation, Top
   6.700 +@comment  node-name,  next,  previous,  up
   6.701 +@chapter 外部コマンド起動
   6.702 +
   6.703 +HTMLファイル編集にかかわるいくつかのコマンドを即座に呼ぶことができます。
   6.704 +@table @kbd
   6.705 +@item [prefix] t j
   6.706 +        @dots{} HTML構文チェッカ(jweblint)起動
   6.707 +@item [prefix] t p
   6.708 +        @dots{} 現在のページを対象としたブラウザ起動
   6.709 +@item [prefix] t r
   6.710 +        @dots{} 現在のページがブラウザに表示されているときのreload指定
   6.711 +@end table
   6.712 +
   6.713 +@node Completion, Jump, Command Invocation, Top
   6.714 +@comment  node-name,  next,  previous,  up
   6.715 +@chapter 補完入力
   6.716 +
   6.717 +「野鳥」で利用できる、「begin型補完」、「section型補完」、
   6.718 +「large型補完」、「maketitle型補完」、「アクセント補完」
   6.719 +と全く同じキー操作で対応する
   6.720 +HTMLタグの補完入力ができます。それぞれの型の補完は順に、
   6.721 +「複数行に渡るタグ入力」、「空要素タグ(imgなど)の補完」、
   6.722 +「一行内での開始/終了タグの入力」、「空要素空属性タグの入力」、
   6.723 +「文字参照入力」
   6.724 +に
   6.725 +対応しています。具体的には
   6.726 +
   6.727 +@table @kbd
   6.728 +@item [prefix] b (野鳥のbegin補完に対応)
   6.729 +@dots{}
   6.730 +@example
   6.731 +<ul>
   6.732 +</ul>
   6.733 +@end example
   6.734 +
   6.735 +@noindent
   6.736 +のように開始タグと終了タグを二行に渡って書きたい場合の補完を指します。
   6.737 +おもにブロック型タグが補完候補に含まれます。
   6.738 +
   6.739 +@item [prefix] s (野鳥のsection型補完に対応)
   6.740 +@dots{}
   6.741 +@example
   6.742 +<img src="foo.gif" alt="photo">
   6.743 +@end example
   6.744 +
   6.745 +@noindent
   6.746 +のように終了タグを持たず、かつ属性値のみで機能を指定するタグを補完します。
   6.747 +補完候補としては、img, input が存在します。
   6.748 +
   6.749 +@item [prefix] l (野鳥のlarge型補完に対応)
   6.750 +@dots{} begin型補完とほぼ同じですが、
   6.751 +
   6.752 +@example
   6.753 +<big> 〜 </big>
   6.754 +@end example
   6.755 +
   6.756 +@noindent
   6.757 +のように一行内に開始/終了タグを入れたいときに利用します。
   6.758 +
   6.759 +@item [prefix] m (野鳥のmaketitle型補完に対応)
   6.760 +@dots{} 要素も属性値も持たないタグを補完入力します。<br> 
   6.761 +などが補完候補に相当します。
   6.762 +
   6.763 +@item [prefix] a (野鳥のアクセント補完に対応)
   6.764 +@dots{} エンティティ参照による文字表記を入力するときに用います。
   6.765 +デフォルトでは < (&lt;), > (&gt;), & (&amp;), " (&quot;), ' (&apos;),
   6.766 +ブランク (&nbsp;) の補完入力が行えます。
   6.767 +@end table
   6.768 +
   6.769 +@node Jump, Changing and Deleting, Completion, Top
   6.770 +@comment  node-name,  next,  previous,  up
   6.771 +@chapter カーソルジャンプ
   6.772 +文書中のいろいろな場所で
   6.773 +
   6.774 +@table @kbd
   6.775 +@item [prefix] g
   6.776 +        @dots{} 対応するオブジェクトにジャンプ
   6.777 +@end table
   6.778 +
   6.779 +@noindent
   6.780 +を押すことにより、カーソル位置のHTML構文に対応する場所にジャンプ
   6.781 +します。対応関係が存在すると解釈されるコマンドには以下のものがあります。
   6.782 +
   6.783 +@itemize @bullet
   6.784 +@item @code{<TAG>} ←→ @code{</TAG>}
   6.785 +@item @code{<img src="画像ファイル">} → 対応するviewer起動
   6.786 +@item @code{<a href="リンク先">} → リンク先へのポイント移動
   6.787 +@item @code{<applet code="プログラム">} → Javaソースプログラムへの移動
   6.788 +@c @item @code{\include(\input)} → 対応するファイル
   6.789 +@end itemize
   6.790 +
   6.791 +@node Changing and Deleting, CSS Support, Jump, Top
   6.792 +@comment  node-name,  next,  previous,  up
   6.793 +@chapter 変更/削除
   6.794 +
   6.795 +@menu
   6.796 +* 対タグの変更::
   6.797 +* 文字参照への変更::
   6.798 +* リジョン内文字のURLencode::
   6.799 +* td括り/tr括り::
   6.800 +@end menu
   6.801 +
   6.802 +@node 対タグの変更, 文字参照への変更, Changing and Deleting, Changing and Deleting
   6.803 +@comment  node-name,  next,  previous,  up
   6.804 +@section 対タグの変更
   6.805 +文書中のいろいろな場所で
   6.806 +
   6.807 +@table @kbd
   6.808 +@item [prefix] c
   6.809 +        @dots{} 対応するタグ等を変更
   6.810 +@end table
   6.811 +
   6.812 +@noindent
   6.813 +を押すことにより、カーソル位置のHTML構文に応じた
   6.814 +記述内容の変更を行います。カーソル位置と変更する内容の
   6.815 +対応は以下の通りです。
   6.816 +
   6.817 +@itemize @bullet
   6.818 +@item @code{<TAG>}〜@code{</TAG>}
   6.819 +@dots{} @code{TAG} の変更
   6.820 +@item @code{<img src="画像ファイル" alt="photo">} などの属性値
   6.821 +@dots{} 属性値の変更
   6.822 +@end itemize
   6.823 +
   6.824 +@node 文字参照への変更, リジョン内文字のURLencode, 対タグの変更, Changing and Deleting
   6.825 +@comment  node-name,  next,  previous,  up
   6.826 +@section 文字参照への変更
   6.827 +文字としての < や > を表現するときは、文字参照を用いて
   6.828 +&lt; や &gt; と表記する必要がありますが、
   6.829 +HTML以外のファイルからこれらの文字を含むテキストを張り込んだ場合
   6.830 +などに、これらの文字を一括して文字参照形式に変換できます。
   6.831 +
   6.832 +@table @kbd
   6.833 +@item [prefix] ;
   6.834 +        @dots{} 指定した領域の文字参照に置き換えるべき文字の置換
   6.835 +@item [prefix] :
   6.836 +        @dots{} 指定した領域の文字参照を参照文字そのものに置換
   6.837 +        ([prefix] ; の逆変換)
   6.838 +@end table
   6.839 +
   6.840 +
   6.841 +@node リジョン内文字のURLencode, td括り/tr括り, 文字参照への変更, Changing and Deleting
   6.842 +@comment  node-name,  next,  previous,  up
   6.843 +@section リジョン内文字のURLencode
   6.844 +@table @kbd
   6.845 + @item [prefix] #
   6.846 +	@dots{} 指定した領域内に URLencode すべき文字があればそれらを
   6.847 +        エンコード表記に置換。
   6.848 +@end table
   6.849 +
   6.850 +@node  td括り/tr括り,  , リジョン内文字のURLencode, Changing and Deleting
   6.851 +@comment  node-name,  next,  previous,  up
   6.852 +@section td括り/tr括り
   6.853 +空白区切りで書いた表形式の行レコードを <td> 括りの並び,
   6.854 +あるいはそれらをさらに <tr> で括った行並びに変換できます。
   6.855 +@table @kbd
   6.856 + @item [prefix] @}
   6.857 +	@dots{} 現在のリジョンにあるデータを空白区切りごとに
   6.858 +        <td>...</td> で括る
   6.859 + @item [prefix] ]
   6.860 +	@dots{} 現在のリジョンにある行を
   6.861 +        上記td括りをほどこしてからさらに行ごとに <tr>...</tr> で括る
   6.862 +@end table
   6.863 +デフォルトでは空白区切りですが,これを変えるときは
   6.864 +Delimiter: の問い合わせに区切り文字を指定します。たとえばカンマ(,)
   6.865 +を指定するとCSVから表を作ることができます。
   6.866 +
   6.867 +td以外の要素,具体的には th で括りたい場合は universal-argument
   6.868 +(@kbd{C-u}) をつけて上記2つのコマンドを呼びます。どの要素で括るかの
   6.869 +質問が増えるのでそれに th と入れれば,各フィールドを <th>...</th>
   6.870 +で括ります。もし,第1フィールドのみ th で,残りを全部 td 括りにしたいとき
   6.871 +は thd と入力して下さい。
   6.872 +
   6.873 +@node CSS Support, Customizations, Changing and Deleting, Top
   6.874 +@comment  node-name,  next,  previous,  up
   6.875 +@chapter CSS(スタイルシート)サポート
   6.876 +
   6.877 +@menu
   6.878 +* CSS-class completion::
   6.879 +* Reread CSS file::
   6.880 +@end menu
   6.881 +
   6.882 +@node CSS-class completion, Reread CSS file, CSS Support, CSS Support
   6.883 +@comment  node-name,  next,  previous,  up
   6.884 +@section CSSクラス名補完
   6.885 +HTML屋はCSS(Cascading Style Sheets)のクラス名を補完入力することができます。
   6.886 +スタイル定義として
   6.887 +
   6.888 +@display
   6.889 + h1.foo, h2.foo @{ background-color: 0xffffff; @}
   6.890 + h1.bar, h2.bar @{ font-size: 120%; @}
   6.891 +@end display
   6.892 +
   6.893 +のようなものがあった場合に、h1またはh2タグを [prefix] b や [prefix] l で補
   6.894 +完入力した場合に、それらに有効な class 名である foo, bar を候補として補完
   6.895 +入力することが可能です。また
   6.896 +
   6.897 +@display
   6.898 + .caution @{ font-size: 120%; background-color: 0xc00000;@}
   6.899 +@end display
   6.900 +
   6.901 +のような全てのエレメントに働くclassが定義されていた場合は、全てのタグの補
   6.902 +完入力時にclass参照入力を求められます。これが煩わしい場合はエレメント名入
   6.903 +力確定のときにリターンキー(またはC-m)ではなく、C-jを押せばclass補完入力を
   6.904 +キャンセルできます。たとえば
   6.905 +
   6.906 +@display
   6.907 + @kbd{[prefix] l}                    行内タグ補完を起動
   6.908 +    (または@kbd{[prefix] l SPC})
   6.909 + tt                                  <tt></tt>をいれたいのでttと入力
   6.910 + @kbd{C-m}
   6.911 +@end display
   6.912 +
   6.913 +とした場合は続いて class= と補完プロンプトが出ますが、
   6.914 +
   6.915 +@display
   6.916 + @kbd{[prefix] l}                    行内タグ補完を起動
   6.917 +    (または@kbd{[prefix] l SPC})
   6.918 + tt                                  <tt></tt>をいれたいのでttと入力
   6.919 + @kbd{C-j}
   6.920 +@end display
   6.921 +
   6.922 +と最後を @kbd{C-j} で入力した場合は class 補完プロンプトは出ません。
   6.923 +
   6.924 +@node Reread CSS file,  , CSS-class completion, CSS Support
   6.925 +@comment  node-name,  next,  previous,  up
   6.926 +@section CSS定義ファイルの読み直し
   6.927 +htmlファイルを編集中にCSS定義ファイルを修正し、追加した
   6.928 +classを補完候補として直ちに読み込ませたい場合は、
   6.929 +@kbd{M-x yahtml-mode} として再起動を行ってください。
   6.930 +
   6.931 +@node Customizations, Copying, CSS Support, Top
   6.932 +@comment  node-name,  next,  previous,  up
   6.933 +@chapter カスタマイズ
   6.934 +@cindex カスタマイズ[かすたまいす]
   6.935 +@cindex キーアサイン[きいあさいん]
   6.936 +
   6.937 +yahtmlの動作を制御する変数について説明します。
   6.938 +
   6.939 +@menu
   6.940 +* All customizable variables::  カスタマイズ変数一覧
   6.941 +* Hook variables::              hook変数
   6.942 +@end menu
   6.943 +
   6.944 +@node All customizable variables, Hook variables, Customizations, Customizations
   6.945 +@comment  node-name,  next,  previous,  up
   6.946 +@section カスタマイズ変数一覧
   6.947 +
   6.948 +@defvar yahtml-prefix
   6.949 +yahtml-mode 中のプリフィクスキー (@kbd{\C-c})
   6.950 +@end defvar
   6.951 +
   6.952 +@defvar yahtml-image-viewer
   6.953 +imgで参照している画像ファイルを表示するときに起動するコマンド (xv)
   6.954 +@end defvar
   6.955 +
   6.956 +@defvar yahtml-www-browser
   6.957 +@kbd{[prefix]g} で外部ページを表示するときに起動するブラウザ (netscape)
   6.958 +@end defvar
   6.959 +
   6.960 +@defvar yahtml-kanji-code
   6.961 +デフォルトの漢字コード。1=sjis, 2=jis, 3=euc, 4=utf-8 (2)
   6.962 +.htaccess ファイルに
   6.963 +@quotation
   6.964 + AddType "text/html; charset=xxx" .html
   6.965 +@end quotation
   6.966 +の記述があった場合はそれに従う
   6.967 +@end defvar
   6.968 +
   6.969 +@defvar yahtml-fill-column
   6.970 +auto-fillするときのカラム数 (72)
   6.971 +@end defvar
   6.972 +
   6.973 +@defvar yahtml-fill-prefix
   6.974 +yahtml-mode 固有のfill-prefix (@code{nil})
   6.975 +@end defvar
   6.976 +
   6.977 +@defvar yahtml-path-url-alist
   6.978 +OSのファイルシステム上でのフルパス名と、その外部公開時のURLの対応表。
   6.979 +@end defvar
   6.980 +
   6.981 +@defvar yahtml-directory-index
   6.982 +サーバアクセス時ファイル名を省略したときにデフォルトで開かれる
   6.983 +インデックスファイルの名前。多くの場合 index.html。(@code{"index.html"})
   6.984 +@end defvar
   6.985 +
   6.986 +@defvar yahtml-lint-program
   6.987 +HTML構文チェックプログラム。(@code{"jweblint"})
   6.988 +@end defvar
   6.989 +
   6.990 +@defvar yahtml-hate-too-deep-indentation
   6.991 +ネストした列挙系環境でのインデントが深すぎるときにtにする。(@code{nil})
   6.992 +@end defvar
   6.993 +
   6.994 +@defvar yahtml-always-/p
   6.995 +@code{<p>} をいれたら必ず @code{</p>} したい人向け。@code{nil}
   6.996 +@end defvar
   6.997 +
   6.998 +@defvar yahtml-p-prefered-env-regexp
   6.999 +自動的に @code{<p>} を入れて欲しい環境。
  6.1000 +(@code{"^\\(body\\|dl\\|blockquote\\)"})
  6.1001 +@end defvar
  6.1002 +
  6.1003 +@defvar yahtml-template-file
  6.1004 +新規HTMLファイル作成時に自動的に挿入して欲しいファイル名。
  6.1005 +@file{"~/http/template.html"}
  6.1006 +@end defvar
  6.1007 +
  6.1008 +@defvar yahtml-prefer-upcases
  6.1009 +タグに大文字を使いたい。@code{nil}
  6.1010 +@end defvar
  6.1011 +
  6.1012 +@defvar yahtml-prefer-upcase-attributes
  6.1013 +属性指定子に大文字を使いたい。@code{nil}
  6.1014 +@end defvar
  6.1015 +
  6.1016 +@defvar yahtml-server-type
  6.1017 +Apache系のサーバを利用している場合は 'apache をセットする。
  6.1018 +./.htaccess を参照するかどうかを決定する。@code{'apache}
  6.1019 +@end defvar
  6.1020 +
  6.1021 +@defvar yahtml-apache-access-file
  6.1022 +@code{yahtml-server-type} が @code{'apache} のときに
  6.1023 +アクセス制限ファイル名を指定。@file{".htaccess"}
  6.1024 +@end defvar
  6.1025 +
  6.1026 +@defvar yahtml-shell-command-option
  6.1027 +シェルで別コマンドを起動するときのオプション。
  6.1028 +@end defvar
  6.1029 +
  6.1030 +@defvar yahtml-translate-hyphens-when-comment-region
  6.1031 +領域コメントアウトをするときに既に存在するハイフンを @code{&#45;} に
  6.1032 +変更するかどうか。(@code{t})
  6.1033 +@end defvar
  6.1034 +
  6.1035 +@defvar yahtml-entity-reference-chars-alist
  6.1036 +エンティティ参照(Entity Reference)で記述すべき文字群を
  6.1037 + @code{'(?文字 . "エンティティ表記")}  という形式を列挙した
  6.1038 +alistで並べる。デフォルトで @code{<}, @code{>}, @code{&}, @code{'}, 
  6.1039 +@code{"} に対するalistが設定されているので、追加したい分だけを記述すれば良
  6.1040 +い。cdr部 @code{"エンティティ表記"} は、先頭の @code{&} と 末尾の@code{;}
  6.1041 +は含めずに書く。
  6.1042 +@end defvar
  6.1043 +
  6.1044 +@defvar yahtml-faithful-to-htmllint
  6.1045 +構文チェッカとして htmllint を利用する場合ちょっとした余計な空白などに
  6.1046 +対しても警告を示すので、これを回避するときにはこの変数を@code{t}に
  6.1047 +する。
  6.1048 +@end defvar
  6.1049 +
  6.1050 +@defvar yahtml-use-css
  6.1051 +CSSの補完機能を使うかどうか (@code{t})
  6.1052 +@end defvar
  6.1053 +
  6.1054 +@defvar yahtml-image-inspection-bytes
  6.1055 +画像ファイルのサイズを調べるときに読み込むバイト数 (@code{10000})
  6.1056 +@end defvar
  6.1057 +
  6.1058 +@defvar yahtml:img-default-alt-format
  6.1059 +<img src...>のALT属性のデフォルト文字列の書式。%xは画像の幅、
  6.1060 +%yは画像の高さ、%sはファイルサイズに置換される (@code{"%xx%y(%sbytes)"})
  6.1061 +@end defvar
  6.1062 +
  6.1063 +@defvar yahtml-escape-chars
  6.1064 +href補完などのときに予約文字をURLエンコードするか;
  6.1065 +'askのときは確認してから置換する (@code{'ask})
  6.1066 +@end defvar
  6.1067 +
  6.1068 +@defvar yahtml-use-font-lock
  6.1069 +ソースの色づけパッケージとして font-lock を利用するか
  6.1070 +(@code{(featurep 'font-lock)})
  6.1071 +@end defvar
  6.1072 +
  6.1073 +@defvar yahtml-use-hilit19
  6.1074 +ソースの色づけパッケージとして hilit19 を利用するか
  6.1075 +(@code{(featurep 'hilit19)})
  6.1076 +@end defvar
  6.1077 +
  6.1078 +@defvar yahtml-indentation-boundary
  6.1079 +インデント計算を打ち切ってよい境界となる正規表現
  6.1080 +(@code{"^\\s *<h[1-3]>"})
  6.1081 +@end defvar
  6.1082 +
  6.1083 +@node Hook variables,  , All customizable variables, Customizations
  6.1084 +@comment  node-name,  next,  previous,  up
  6.1085 +@section hook変数
  6.1086 +
  6.1087 +
  6.1088 +@node Copying, Concept Index, Customizations, Top
  6.1089 +@comment  node-name,  next,  previous,  up
  6.1090 +@chapter 取り扱い
  6.1091 +
  6.1092 +  本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな
  6.1093 +る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた
  6.1094 +しません。常識的に扱ってください。また、使用している旨をメイルでお知らせい
  6.1095 +ただくと、作者は喜んでサポートに励むことでしょう。
  6.1096 +
  6.1097 +  苦情、希望、バグ報告、感想等は歓迎いたします。
  6.1098 +連絡は yuuji@@yatex.org まで(2000年12月現在)。
  6.1099 +継続的に使用してくださる方はメイリングリスト「fj野鳥の会」に
  6.1100 +是非加入してください。加入方法については本パッケージの @file{docs/htmlqa}
  6.1101 +ファイルの「その他」の章を御覧ください。
  6.1102 +
  6.1103 +仕様は、予告なく確実に(気分次第で)変更されます:-p。
  6.1104 +
  6.1105 +@flushright
  6.1106 +広瀬雄二
  6.1107 +@end flushright
  6.1108 +
  6.1109 +
  6.1110 +@node    Concept Index,  , Copying, Top
  6.1111 +@comment node-name, next, previous, up
  6.1112 +@unnumbered 索引
  6.1113 +@printindex cp
  6.1114 +
  6.1115 +
  6.1116 +@contents
  6.1117 +
  6.1118 +@bye
  6.1119 +
  6.1120 +@c Local Variables:
  6.1121 +@c fill-column: 74
  6.1122 +@c fill-prefix: nil
  6.1123 +@c buffer-file-coding-system: sjis
  6.1124 +@c End:
  6.1125 +
  6.1126 +Tag table:
  6.1127 +
  6.1128 +End tag table
     7.1 --- a/docs/yatexe	Thu Jan 12 12:27:20 2012 +0900
     7.2 +++ b/docs/yatexe	Mon May 14 18:39:05 2012 +0900
     7.3 @@ -1,2219 +1,2246 @@
     7.4 -Info file: yatexe,    -*-Text-*-
     7.5 -produced by `texinfo-format-buffer'
     7.6 -from file `yatexe.tex'
     7.7 -using `texinfmt.el' version 2.38 of 3 July 1998.
     7.8 -
     7.9 -
    7.10 -
    7.11 -
    7.12 -
    7.13 -
    7.14 -File: yatexe, Node: Top, Next: What is YaTeX?, Prev: (dir), Up: (dir)
    7.15 -
    7.16 -* Menu:
    7.17 -
    7.18 -* What is YaTeX?::              
    7.19 -* Main features::               What YaTeX can do
    7.20 -* Installation::                Guide to install
    7.21 -* Typesetting::                 Call typesetting processes
    7.22 -* %#notation::                  Meta-keyword `%#'
    7.23 -* Completion::                  Input LaTeX commands with completion
    7.24 -* Local dictionaries::          Directory dependent completion
    7.25 -* Commenting out::              Commenting/uncommenting text
    7.26 -* Cursor jump::                 Jumping to related position
    7.27 -* Changing and Deleting::       Changing/deleting certain unit of text
    7.28 -* Filling::                     Filling an item or paragraph
    7.29 -* Updation of includeonly::     Free from maintaining includeonly
    7.30 -* What column::                 Check what table-column the cursor belong
    7.31 -* Intelligent newline::         Guess requisites of new line
    7.32 -* Usepackage checker::          Selecting correct \usepackage is YaTeX's job
    7.33 -* Online help::                 On-line documentation of LaTeX
    7.34 -* Browsing file hierarchy::     Walking through file hierarchy
    7.35 -* Cooperation with other packages::  Work well with gmhist, min-out
    7.36 -* Customizations::              How to breed `Wild Bird'
    7.37 -* Etcetera::                    YaTeX is acquisitive.
    7.38 -* Copying::                     Redistribution
    7.39 -
    7.40 -
    7.41 -
    7.42 -
    7.43 -File: yatexe, Node: What is YaTeX?, Next: Main features, Prev: Top, Up: Top
    7.44 -
    7.45 -What is YaTeX?
    7.46 -**************
    7.47 -
    7.48 -  YaTeX automates typesetting and previewing of LaTeX and enables
    7.49 -completing input of LaTeX mark-up command such as
    7.50 -`\begin{}'..`\end{}'.
    7.51 -
    7.52 -  YaTeX also supports Demacs which runs on MS-DOS(386), Mule (Multi
    7.53 -Language Enhancement to GNU Emacs), and latex on DOS.
    7.54 -
    7.55 -
    7.56 -
    7.57 -File: yatexe, Node: Main features, Next: Installation, Prev: What is YaTeX?, Up: Top
    7.58 -
    7.59 -Main features
    7.60 -*************
    7.61 -
    7.62 -   * Invocation of typesetter,  previewer and related programs(`C-c t')
    7.63 -   * Typesetting on static region which is independent from point
    7.64 -   * Semiautomatic replacing of `\includeonly'
    7.65 -   * Jumping to error line(`C-c '')
    7.66 -   * Completing-read of LaTeX commands such as `\begin{}',
    7.67 -             `\section' etc. 
    7.68 -             (`C-c b', `C-c s', `C-c l', `C-c m')
    7.69 -   * Enclosing text into LaTeX environments or commands
    7.70 -           (`C-u' ABOVEKEYSTROKES)
    7.71 -   * Displaying the structure of text at entering sectioning commands
    7.72 -   * Lump shifting of sectioning commands (*Note view-sectioning::)
    7.73 -   * Learning unknown/new LaTeX commands for the next completion
    7.74 -   * Argument reading with a guide for complicated LaTeX commands
    7.75 -   * Generating argument-readers for new/unsupported commands(`yatexgen')
    7.76 -   * Quick changing or deleting of LaTeX commands(`C-c c', `C-c k')
    7.77 -   * Jumping from and to inter-file, begin<->end, ref<->label(`C-c g')
    7.78 -   * Blanket commenting out or uncommenting
    7.79 -             (`C-c >', `C-c <', `C-c ,', `C-c .')
    7.80 -   * Easy input of accent mark, math-mode's commands and Greek letters
    7.81 -             (`C-c a', `;', `:')
    7.82 -   * Online help for the popular LaTeX commands
    7.83 -           (`C-c ?', `C-c /')
    7.84 -   * Document files hierarchy browser (`C-c d')
    7.85 -   * Adding automatically \usepackage corresponding to inputting LaTeX
    7.86 -           macro with completion
    7.87 -   * Allow you to forget creating \label{}s, \ref or \cite completion
    7.88 -           automatically generate labels.
    7.89 -
    7.90 -
    7.91 -
    7.92 -File: yatexe, Node: Installation, Next: Typesetting, Prev: Main features, Up: Top
    7.93 -
    7.94 -Installation
    7.95 -************
    7.96 -
    7.97 -  Put next two expressions into your `~/.emacs'.
    7.98 -
    7.99 -             (setq auto-mode-alist
   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 -Next, add certain path name where you put files of YaTeX to your
   7.104 -load-path.  If you want to put them in `~/src/emacs', write
   7.105 -
   7.106 -            (setq load-path
   7.107 -                  (cons (expand-file-name "~/src/emacs") load-path))
   7.108 -
   7.109 -in your `~/.emacs'
   7.110 -
   7.111 -  Then, yatex-mode will be automatically loaded when you visit a
   7.112 -file which has extension `.tex'.  If yatex-mode is successfully
   7.113 -loaded, mode string on mode line will be turned to "YaTeX".
   7.114 -
   7.115 -
   7.116 -
   7.117 -
   7.118 -File: yatexe, Node: Typesetting, Next: %#notation, Prev: Installation, Up: Top
   7.119 -
   7.120 -Typesetting
   7.121 -***********
   7.122 -
   7.123 -  The prefix key stroke of yatex-mode is `C-c' (Press 'C' with Control
   7.124 -key) by default.  If you don't intend to change the prefix key stroke,
   7.125 -assume all `[prefix]' as `C-c' in this document.  These key
   7.126 -strokes execute typeset or preview command.
   7.127 -
   7.128 -`[prefix] t j'
   7.129 -             ... invoke latex
   7.130 -`[prefix] t r'
   7.131 -             ... invoke latex on region
   7.132 -`[prefix] t e'
   7.133 -             ... invoke latex on current environment or whole
   7.134 -              portion of current formulas in math-mode.
   7.135 -`[prefix] t k'
   7.136 -             ... kill current typesetting process
   7.137 -`[prefix] t b'
   7.138 -             ... invoke bibtex
   7.139 -`[prefix] t i'
   7.140 -             ... invoke makeindex
   7.141 -`[prefix] t d'
   7.142 -             ... invoke latex && dvipdfmx
   7.143 -`[prefix] t p'
   7.144 -             ... preview
   7.145 -`[prefix] t l'
   7.146 -             ... lpr dvi-file
   7.147 -`[prefix] t s'
   7.148 -             ... search current string on xdvi-remote
   7.149 -
   7.150 -* Menu:
   7.151 -
   7.152 -* Calling typesetter::          
   7.153 -* Calling previewer::           
   7.154 -* Printing out::                
   7.155 -
   7.156 -
   7.157 -
   7.158 -File: yatexe, Node: Calling typesetter, Next: Calling previewer, Prev: Typesetting, Up: Typesetting
   7.159 -
   7.160 -Calling typesetter
   7.161 -==================
   7.162 -
   7.163 -  Typing `[prefix] t j', the current editing window will be divided
   7.164 -horizontally when you invoke latex command, and log message of LaTeX
   7.165 -typesetting will be displayed in the other window; called typesetting
   7.166 -buffer.  The typesetting buffer automatically scrolls up and traces LaTeX
   7.167 -warnings and error messages.  If you see latex stopping by an error, you
   7.168 -can send string to latex in the typesetting buffer.
   7.169 -
   7.170 -  If an error stops the LaTeX typesetting, this key stroke will move the
   7.171 -cursor to the line where LaTeX error is detected.
   7.172 -
   7.173 -`[prefix] ''
   7.174 -`([prefix]+single quotation)'
   7.175 -
   7.176 -             ... jump to the previous error or warning
   7.177 -
   7.178 -  If you find a noticeable error, move to the typesetting buffer and move
   7.179 -the cursor on the line of error message and type `SPACE' key.  This makes
   7.180 -the cursor move to corresponding source line.
   7.181 -
   7.182 -  YaTeX-typeset-region invoked by `[prefix] tr' call typesetter for
   7.183 -region.  The region is specified by standard point and mark, or by
   7.184 -`%#BEGIN' and `%#END' marks.  Selected region will be copied to the
   7.185 -temporary file `texput.tex' with the same preamble as the main file of
   7.186 -current editing sources.  Be sure to put all local macro settings in
   7.187 -preamble, not after `\begin{document}'.  The method of specification of
   7.188 -the region is shown in the section *Note %#notation::.
   7.189 -
   7.190 -  The documentclass for typeset-region is the same as that of editing file
   7.191 -if you edit one file, and is the same as main file's if you edit splitting
   7.192 -files.
   7.193 -
   7.194 -  The `[prefix] te' key automatically marks current inner environment or
   7.195 -inner math mode and then call typeset-region with marked region.  This is
   7.196 -convenient to quick view of current tabular environment or current editing
   7.197 -formulas.  Keeping previewer window for `texput.dvi' is handy for
   7.198 -debugging.  Since `[prefix] te' selects the inner-most environment as
   7.199 -region, it is not suitable for partial typesetting of doubly or more
   7.200 -composed environment.  If you want to do partial typesetting for a nested
   7.201 -environment, use `[prefix] tr' for static-region, which is described in
   7.202 -the section *Note %#notation::.
   7.203 -
   7.204 -
   7.205 -
   7.206 -File: yatexe, Node: Calling previewer, Next: Printing out, Prev: Calling typesetter, Up: Typesetting
   7.207 -
   7.208 -Calling previewer
   7.209 -=================
   7.210 -
   7.211 -  `[prefix] t p' invokes the TeX previewer.  And if you are using
   7.212 -xdvi-remote, which can be controled from other terminals, `[prefix] t s'
   7.213 -enables you to search current string at the cursor on the running xdvi
   7.214 -window.
   7.215 -
   7.216 -
   7.217 -
   7.218 -File: yatexe, Node: Printing out, Prev: Calling previewer, Up: Typesetting
   7.219 -
   7.220 -Printing out
   7.221 -============
   7.222 -
   7.223 -  When you type `[preifx] t l', YaTeX asks you the range of dvi-printing
   7.224 -by default.  You can skip this by invoking it with universal-argument as
   7.225 -follows:
   7.226 -
   7.227 -             C-u [prefix] tl
   7.228 -
   7.229 -
   7.230 -
   7.231 -File: yatexe, Node: %#notation, Next: Completion, Prev: Typesetting, Up: Top
   7.232 -
   7.233 -%# notation
   7.234 -***********
   7.235 -
   7.236 -  You can control the typesetting process by describing `%#' notations in
   7.237 -the source text.
   7.238 -
   7.239 -* Menu:
   7.240 -
   7.241 -* Changing typesetter::         
   7.242 -* Splitting input files::       
   7.243 -* Static region for typesetting::  
   7.244 -* Lpr format::                  
   7.245 -* Editing %# notation::         
   7.246 -
   7.247 -
   7.248 -
   7.249 -File: yatexe, Node: Changing typesetter, Next: Splitting input files, Prev: %#notation, Up: %#notation
   7.250 -
   7.251 -To change the `latex' command or to split a source text.
   7.252 -========================================================
   7.253 -
   7.254 -  To change the typesetting command, write
   7.255 -
   7.256 -             %#!latex-big
   7.257 -
   7.258 -anywhere in the source text.  This is useful for changing typesetter.
   7.259 -
   7.260 -
   7.261 -
   7.262 -File: yatexe, Node: Splitting input files, Next: Static region for typesetting, Prev: Changing typesetter, Up: %#notation
   7.263 -
   7.264 -Splitting input files
   7.265 -=====================
   7.266 -
   7.267 -  And if you split the source text and edit subfile that should be
   7.268 -included from main text.
   7.269 -
   7.270 -             %#!latex main.tex
   7.271 -
   7.272 -will be helpful to execute latex on main file from sub text buffer.  Since
   7.273 -this command line after `%#!' will be sent to shell literally, next
   7.274 -description makes it convenient to use ghostview as dvi-previewer.
   7.275 -
   7.276 -             %#!latex main ; dvi2ps main.dvi > main
   7.277 -
   7.278 -Note that YaTeX assumes the component before the last period of the last
   7.279 -word in this line as base name of the main LaTeX source.  The `%f'
   7.280 -notation in this line is replaced by main file name, and `%r' replaced by
   7.281 -root name of main file name.  If you specify `%f' or `%r', YaTeX always
   7.282 -ask you the name of main file at the first typesetting.
   7.283 -
   7.284 -  To make best use of the feature of inter-file jumping by `[prefix] g'
   7.285 -(see *Note Cursor jump::), take described below into consideration.
   7.286 -
   7.287 -   * You can put split texts in sub directory, but not in sub directory of
   7.288 -     sub directory.
   7.289 -   * In the main text, specify the child file name with relative path name
   7.290 -     such as \include{chap1/sub}, when you include the file in a
   7.291 -     sub-directory.
   7.292 -   * In a sub-text, write `%#!latex main.tex' even if `main.tex' is in the
   7.293 -     parent directory(not %#!latex ../main.tex).
   7.294 -
   7.295 -
   7.296 -
   7.297 -File: yatexe, Node: Static region for typesetting, Next: Lpr format, Prev: Splitting input files, Up: %#notation
   7.298 -
   7.299 -Static region
   7.300 -=============
   7.301 -
   7.302 -  Typeset-region by `[prefix] tr' passes the region between point and mark
   7.303 -to typesetting command by default.  But when you want to typeset static
   7.304 -region, enclose the region by `%#BEGIN' and `%#END' as follows.
   7.305 -
   7.306 -             %#BEGIN
   7.307 -               TheRegionYouWantToTypesetManyTimes
   7.308 -             %#END
   7.309 -
   7.310 -This is the rule of deciding the region.
   7.311 -
   7.312 -  1. If there exists %#BEGIN before point,
   7.313 -
   7.314 -       1. If there exists %#END after %#BEGIN,
   7.315 -             * From %#BEGIN to %#END.
   7.316 -
   7.317 -       2. If %#END does not exist after %#BEGIN,
   7.318 -             * From %#BEGIN to the end of buffer.
   7.319 -
   7.320 -  2. If there does not exist %#BEGIN before point,
   7.321 -        * Between point and mark(standard method of Emacs).
   7.322 -
   7.323 -  It is useful to write `%#BEGIN' in the previous line of \begin and
   7.324 -`%#END' in the next line of \`end' when you try complex environment such
   7.325 -as `tabular' many times.  It is also useful to put only `%#BEGIN' alone at
   7.326 -the middle of very long text.  Do not forget to erase `%#BEGIN' `%#END'
   7.327 -pair.
   7.328 -
   7.329 -
   7.330 -
   7.331 -File: yatexe, Node: Lpr format, Next: Editing %# notation, Prev: Static region for typesetting, Up: %#notation
   7.332 -
   7.333 -Lpr format
   7.334 -==========
   7.335 -
   7.336 -  Lpr format is specified by three Lisp variables.  Here are the default
   7.337 -values of them.
   7.338 -
   7.339 -`(1)dviprint-command-format'
   7.340 -             `"dvi2ps %f %t %s | lpr"'
   7.341 -`(2)dviprint-from-format'
   7.342 -             `"-f %b"'
   7.343 -`(3)dviprint-to-format'
   7.344 -             `"-t %e"'
   7.345 -
   7.346 -  On YaTeX-lpr, `%s' in (1) is replaced by the file name of main text,
   7.347 -`%f' by contents of (2), %t by contents of (3).  At these replacements,
   7.348 -`%b' in (2) is also replaced by the number of beginning page, `%e' in (3)
   7.349 -is replaced by the number of ending page.  But `%f' and `%t' are ignored
   7.350 -when you omit the range of print-out by `C-u [prefix] tl'.
   7.351 -
   7.352 -  If you want to change this lpr format temporarily, put a command such as
   7.353 -follows somewhere in the text:
   7.354 -
   7.355 -             %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2
   7.356 -
   7.357 -  And if you want YaTeX not to ask you the range of printing out, the next
   7.358 -example may be helpful.
   7.359 -
   7.360 -             %#LPR dvi2ps %s | lpr
   7.361 -
   7.362 -
   7.363 -
   7.364 -File: yatexe, Node: Editing %# notation, Prev: Lpr format, Up: %#notation
   7.365 -
   7.366 -Editing %# notation
   7.367 -===================
   7.368 -
   7.369 -  To edit `%#' notation described above, type
   7.370 -
   7.371 -`[prefix] %'
   7.372 -             ... editing %# notation menu
   7.373 -
   7.374 -and select one of the entry of the menu as follows.
   7.375 -
   7.376 -             !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR
   7.377 -
   7.378 -Type `!' to edit `%#!' entry, `b' to enclose the region with `%#BEGIN' and
   7.379 -`%#END', and `l' to edit `%#LPR' entry.  When you type `b', all `%#BEGIN'
   7.380 -and `%#END' are automatically erased.
   7.381 -
   7.382 -
   7.383 -
   7.384 -File: yatexe, Node: Completion, Next: Local dictionaries, Prev: %#notation, Up: Top
   7.385 -
   7.386 -Completion
   7.387 -**********
   7.388 -
   7.389 -  YaTeX makes it easy to input the LaTeX commands.  There are several
   7.390 -kinds of completion type, begin-type, section-type, large-type, etc...
   7.391 -
   7.392 -* Menu:
   7.393 -
   7.394 -* Begin-type completion::       
   7.395 -* Section-type completion::     
   7.396 -* Large-type completion::       
   7.397 -* Maketitle-type completion::   
   7.398 -* Arbitrary completion::        
   7.399 -* End completion::              
   7.400 -* Accent completion::           
   7.401 -* Image completion::            
   7.402 -* Greek letters completion::    
   7.403 -
   7.404 -
   7.405 -
   7.406 -File: yatexe, Node: Begin-type completion, Next: Section-type completion, Prev: Completion, Up: Completion
   7.407 -
   7.408 -Begin-type completion
   7.409 -=====================
   7.410 -
   7.411 -  "Begin-type completion" completes commands of `\begin{env}' ...
   7.412 -`\end{env}'.  All of the begin-type completions begin with this key
   7.413 -sequence.
   7.414 -
   7.415 -`[prefix] b'
   7.416 -             ... start begin-type completion
   7.417 -
   7.418 -An additional key stroke immediately completes a frequently used LaTeX
   7.419 -`\begin{}'...`\`end'{}' environment.
   7.420 -
   7.421 -`[prefix] b c'
   7.422 -             ...  `\begin{center}...\end{center}'
   7.423 -`[prefix] b d'
   7.424 -             ...  `\begin{document}...\end{document}'
   7.425 -`[prefix] b D'
   7.426 -             ...  `\begin{description}...\end{description}'
   7.427 -`[prefix] b e'
   7.428 -             ...  `\begin{enumerate}...\end{enumerate}'
   7.429 -`[prefix] b E'
   7.430 -             ...  `\begin{equation}...\end{equation}'
   7.431 -`[prefix] b i'
   7.432 -             ...  `\begin{itemize}...\end{itemize}'
   7.433 -`[prefix] b l'
   7.434 -             ...  `\begin{flushleft}...\end{flushleft}'
   7.435 -`[prefix] b m'
   7.436 -             ...  `\begin{minipage}...\end{minipage}'
   7.437 -`[prefix] b t'
   7.438 -             ...  `\begin{tabbing}...\end{tabbing}'
   7.439 -`[prefix] b T'
   7.440 -             ...  `\begin{tabular}...\end{tabular}'
   7.441 -`[prefix] b^T'
   7.442 -             ...  `\begin{table}...\end{table}'
   7.443 -`[prefix] b p'
   7.444 -             ...  `\begin{picture}...\end{picture}'
   7.445 -`[prefix] b q'
   7.446 -             ...  `\begin{quote}...\end{quote}'
   7.447 -`[prefix] b Q'
   7.448 -             ...  `\begin{quotation}...\end{quotation}'
   7.449 -`[prefix] b r'
   7.450 -             ...  `\begin{flushright}...\end{flushright}'
   7.451 -`[prefix] b v'
   7.452 -             ...  `\begin{verbatim}...\end{verbatim}'
   7.453 -`[prefix] b V'
   7.454 -             ...  `\begin{verse}...\end{verse}'
   7.455 -
   7.456 -  Any other LaTeX environments are made by completing-read of the Emacs
   7.457 -function.
   7.458 -
   7.459 -`[prefix] b SPACE'
   7.460 -             ... begin-type completion
   7.461 -
   7.462 -The next message will show up in the minibuffer
   7.463 -
   7.464 -             Begin environment(default document): 
   7.465 -
   7.466 -by typing `[prefix] b'.  Put the wishing environment with completion in
   7.467 -the minibuffer, and `\begin{env}'...\`\end{env}' will be inserted in the
   7.468 -LaTeX source text.  If the environment you want to put does not exist in
   7.469 -the YaTeX completion table, it will be registered in the user completion
   7.470 -table.  YaTeX automatically saves the user completion table in the user
   7.471 -dictionary file at exiting of emacs.
   7.472 -
   7.473 -At the completion of certain environments, the expected initial entry will
   7.474 -automatically inserted such as `\item' for `itemize' environment.  If you
   7.475 -don't want the entry, it can be removed by undoing.
   7.476 -
   7.477 -  If you want to enclose some paragraphs which have already been written,
   7.478 -invoke the begin-type completion with changing the case of `b' of key
   7.479 -sequence upper(or invoke it with universal argument by `C-u' prefix).
   7.480 -
   7.481 -  The following example encloses a region with `description' environment.
   7.482 -
   7.483 -`[prefix] B D'
   7.484 -`(or ESC 1 [prefix] b D)'
   7.485 -`(or  C-u  [prefix] b D)'
   7.486 -
   7.487 -             ... begin-type completion for region
   7.488 -
   7.489 -  This enclosing holds good for the completing input by `[prefix] b SPC'.
   7.490 -`[prefix] B SPC' enclose a region with the environment selected by
   7.491 -completing-read.
   7.492 -
   7.493 -
   7.494 -
   7.495 -File: yatexe, Node: Section-type completion, Next: Large-type completion, Prev: Begin-type completion, Up: Completion
   7.496 -
   7.497 -Section-type completion
   7.498 -=======================
   7.499 -
   7.500 -  "Section-type completion" completes section-type commands which take an
   7.501 -argument or more such as `\section{foo}'.  To invoke section-type
   7.502 -completion, type
   7.503 -
   7.504 -`[prefix] s'
   7.505 -             ... section-type completion
   7.506 -
   7.507 -then the prompt
   7.508 -
   7.509 -             (C-v for view) \???{} (default documentclass):
   7.510 -
   7.511 -will show up in the minibuffer.  Section-type LaTeX commands are completed
   7.512 -by space key, and the default value is selected when you type nothing in
   7.513 -the minibuffer.
   7.514 -
   7.515 -  Next,
   7.516 -
   7.517 -             \section{???}:
   7.518 -
   7.519 -prompts you the argument of section-type LaTeX command.  For example, the
   7.520 -following inputs
   7.521 -
   7.522 -             \???{} (default documentclass): section
   7.523 -             \section{???}: Hello world.
   7.524 -
   7.525 -will insert the string
   7.526 -
   7.527 -             \section{Hello world.}
   7.528 -
   7.529 -in your LaTeX source.  When you neglect argument such as
   7.530 -
   7.531 -             (C-v for view) \???{} (default section): vspace*
   7.532 -             \vspace*{???}: 
   7.533 -
   7.534 -YaTeX puts
   7.535 -
   7.536 -             \vspace*{}
   7.537 -
   7.538 -and move the cursor in the braces.
   7.539 -
   7.540 -  In LaTeX command, there are commands which take more than one arguments
   7.541 -such as `\addtolength{\topmargin}{8mm}'.  To complete these commands,
   7.542 -invoke section-type completion with universal argument as,
   7.543 -
   7.544 -             C-u 2 [prefix] s (or ESC 2 [prefix] s)
   7.545 -
   7.546 -and make answers in minibuffer like this.
   7.547 -
   7.548 -             (C-v for view) \???{} (default vspace*): addtolength
   7.549 -             \addtolength{???}: \topmargin
   7.550 -             Argument 2: 8mm
   7.551 -
   7.552 -`\addtolength' and the first argument `\topmargin' can be typed easily by
   7.553 -completing read.  Since YaTeX also learns the number of arguments of
   7.554 -section-type command and will ask that many arguments in future
   7.555 -completion, you had better tell the number of arguments to YaTeX at the
   7.556 -first completion of the new word.  But you can change the number of
   7.557 -arguments by calling the completion with different universal argument
   7.558 -again.
   7.559 -
   7.560 -
   7.561 -  Invoking section-type completion with `[Prefix] S' (Capital `S')
   7.562 -includes the region as the first argument of section-type command.
   7.563 -
   7.564 -  The section/large/maketitle type completion can work at the prompt for
   7.565 -the argument of other section-type completion.  Nested LaTeX commands are
   7.566 -efficiently read with the recursive completion by typing YaTeX's
   7.567 -completion key sequence in the minibuffer.
   7.568 -
   7.569 -* Menu:
   7.570 -
   7.571 -* view-sectioning::             
   7.572 -
   7.573 -
   7.574 -
   7.575 -File: yatexe, Node: view-sectioning, Prev: Section-type completion, Up: Section-type completion
   7.576 -
   7.577 -view-sectioning
   7.578 ----------------
   7.579 -
   7.580 -  In the minibuffer at the prompt of section-type command completion,
   7.581 -typing `C-v' shows a list of sectioning commands in source text(The line
   7.582 -with `<<--' mark is the nearest sectioning command).  Then, default
   7.583 -sectioning command appears in the minibuffer.  You can go up/down
   7.584 -sectioning command by typing `C-p'/`C-n', can scrolls up/down the listing
   7.585 -buffer by `C-v'/`M-v', and can hide sectioning commands under certain
   7.586 -level by 0 through 6.  Type `?'  in the minibuffer of sectioning prompt
   7.587 -for more information.
   7.588 -
   7.589 -  You can generate this listing buffer (`*Sectioning Lines*' buffer) by
   7.590 -typing
   7.591 -`M-x YaTeX-section-overview'
   7.592 -             ... Generate *Sectioning Lines* buffer
   7.593 -
   7.594 -from the LaTeX source buffer.  In this listing buffer, typing `u' on the
   7.595 -sectioning command shifts up the corresponding sectioning command in
   7.596 -source text and `d' shifts down.  After marking lines in the listing
   7.597 -buffer, typing `U' shifts up all sectioning commands in the region, and
   7.598 -`U' shifts down.  Here are all the key bindings of `*Sectioning Lines*'
   7.599 -buffer.
   7.600 -
   7.601 -`SPC'
   7.602 -             ... Jump to corresponding source line
   7.603 -`.'
   7.604 -             ... Display corresponding source line
   7.605 -`u'
   7.606 -             ... Shift up a sectioning line
   7.607 -`d'
   7.608 -             ... Shift down a sectioning line
   7.609 -`U'
   7.610 -             ... Shift up sectioning lines in region
   7.611 -`D'
   7.612 -             ... Shift down sectioning lines in region
   7.613 -`0...6'
   7.614 -             ... Hide sectioning commands whose level is lower than n
   7.615 -
   7.616 -
   7.617 -
   7.618 -
   7.619 -File: yatexe, Node: Large-type completion, Next: Maketitle-type completion, Prev: Section-type completion, Up: Completion
   7.620 -
   7.621 -Large-type completion
   7.622 -=====================
   7.623 -
   7.624 -  "Large-type completion" inputs the font or size changing descriptions
   7.625 -such as `{\large }'.  When you type
   7.626 -
   7.627 -`[prefix] l'
   7.628 -             ... large-type completion
   7.629 -
   7.630 -the message in the minibuffer
   7.631 -
   7.632 -             {\??? } (default large): 
   7.633 -
   7.634 -prompts prompts you large-type command with completing-read.  There are
   7.635 -TeX commands to change fonts or sizes, `it', `huge' and so on, in the
   7.636 -completion table.
   7.637 -
   7.638 -  Region-based completion is also invoked by changing the letter after
   7.639 -prefix key stroke as `[prefix] L'.  It encloses the region by braces with
   7.640 -large-type command.
   7.641 -
   7.642 -
   7.643 -
   7.644 -File: yatexe, Node: Maketitle-type completion, Next: Arbitrary completion, Prev: Large-type completion, Up: Completion
   7.645 -
   7.646 -Maketitle-type completion
   7.647 -=========================
   7.648 -
   7.649 -  We call it "maketitle-type completion" which completes commands such as
   7.650 -`\maketitle'.  Take notice that maketitle-type commands take no arguments.
   7.651 -Then, typing
   7.652 -
   7.653 -`[prefix] m'
   7.654 -             ... maketitle-type completion
   7.655 -
   7.656 -begins maketitle-completion.  Above mentioned method is true for
   7.657 -maketitle-completion, and there are LaTeX commands with no arguments in
   7.658 -completion table.
   7.659 -
   7.660 -
   7.661 -
   7.662 -File: yatexe, Node: Arbitrary completion, Next: End completion, Prev: Maketitle-type completion, Up: Completion
   7.663 -
   7.664 -Arbitrary completion
   7.665 -====================
   7.666 -
   7.667 -  You can complete certain LaTeX command anywhere without typical
   7.668 -completing method as described, by typing
   7.669 -
   7.670 -`[prefix] SPC'
   7.671 -             ... arbitrary completion
   7.672 -
   7.673 -after the initial string of LaTeX command that is preceded by `\'.
   7.674 -
   7.675 -
   7.676 -
   7.677 -File: yatexe, Node: End completion, Next: Accent completion, Prev: Arbitrary completion, Up: Completion
   7.678 -
   7.679 -End completion
   7.680 -==============
   7.681 -
   7.682 -  YaTeX automatically detects the opened environment and close it with
   7.683 -\`\end{environment}'.  Though proficient YaTeX users never fail to make
   7.684 -environment with begin-type completion, some may begin an environment
   7.685 -manually.  In that case, type
   7.686 -
   7.687 -`[prefix] e'
   7.688 -             ... `end' completion
   7.689 -
   7.690 -at the end of the opened environment.
   7.691 -
   7.692 -
   7.693 -
   7.694 -File: yatexe, Node: Accent completion, Next: Image completion, Prev: End completion, Up: Completion
   7.695 -
   7.696 -Accent completion
   7.697 -=================
   7.698 -
   7.699 -  When you want to write the European accent marks(like `\`{o}'),
   7.700 -
   7.701 -`[prefix] a'
   7.702 -             ... accent completion
   7.703 -
   7.704 -shows the menu
   7.705 -
   7.706 -             1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b
   7.707 -
   7.708 -in the minibuffer.  Chose one character or corresponding numeric, and you
   7.709 -will see
   7.710 -
   7.711 -             \`{}
   7.712 -
   7.713 -in the editing buffer with the cursor positioned in braces.  Type one more
   7.714 -character `o' for example, then
   7.715 -
   7.716 -             \`{o}
   7.717 -
   7.718 -will be completed, and the cursor gets out from braces.
   7.719 -
   7.720 -
   7.721 -
   7.722 -File: yatexe, Node: Image completion, Next: Greek letters completion, Prev: Accent completion, Up: Completion
   7.723 -
   7.724 -Image completion of mathematical sign
   7.725 -=====================================
   7.726 -
   7.727 -  Arrow marks, sigma mark and those signs mainly used in the TeX's math
   7.728 -environment are completed by key sequences which imitate the corresponding
   7.729 -symbols graphically.  This completion only works in the math environment.
   7.730 -YaTeX automatically detects whether the cursor located in math environment
   7.731 -or not, and change the behavior of key strokes `;' and `:'.
   7.732 -
   7.733 -  By the way, we often express the leftarrow mark by `<-' for example.
   7.734 -Considering such image, you can write `\leftarrow' by typing `<-' after
   7.735 -`;' (semicolon) as a prefix.  In the same way, `\longleftarrow' (`<--') is
   7.736 -completed by typing `;<--', infinity mark which is imitated by `oo' is
   7.737 -completed by typing `;oo'.
   7.738 -
   7.739 -  Here are the sample operations in YaTeX math-mode.
   7.740 -
   7.741 -     INPUT                   Completed LaTeX commands
   7.742 -     ; < -                   `\leftarrow'
   7.743 -     ; < - -                 `\longleftarrow'
   7.744 -     ; < - - >               `\longleftrightarrow'
   7.745 -     ; o                     `\circ'
   7.746 -     ; o o                   `\infty'
   7.747 -
   7.748 -  In any case, you can quit from image completion and can move to the next
   7.749 -editing operation if the LaTeX command you want is shown in the buffer.
   7.750 -
   7.751 -  `;' itself in math-environment is inserted by `;;'.  Typing `TAB' in the
   7.752 -midst of image completion shows all of the LaTeX commands that start with
   7.753 -the same name as string you previously typed in.  In this menu buffer,
   7.754 -press `RET' after moving the cursor (by `n', `p', `b', `f') to insert the
   7.755 -LaTeX command.
   7.756 -
   7.757 -  To know all of the completion table, type `TAB' just after `;'.  And
   7.758 -here is the sample menu by `TAB' after `;<'.
   7.759 -
   7.760 -     KEY             LaTeX sequence          sign
   7.761 -     <               \leq                    <
   7.762 -                                             ~
   7.763 -     <<              \ll                     << 
   7.764 -     <-              \leftarrow              <-
   7.765 -     <=              \Leftarrow              <=
   7.766 -
   7.767 -  You can define your favorite key-vs-sequence completion table in the
   7.768 -Emacs-Lisp variable `YaTeX-math-sign-alist-private'.  See also
   7.769 -`yatexmth.el' for the information of the structure of this variable.
   7.770 -
   7.771 -
   7.772 -
   7.773 -File: yatexe, Node: Greek letters completion, Prev: Image completion, Up: Completion
   7.774 -
   7.775 -Greek letters completion
   7.776 -========================
   7.777 -
   7.778 -  Math-mode of YaTeX provides another image completion, Greek letters
   7.779 -completion in the same method.  After prefix `:', typing `a' makes
   7.780 -`\alpha', `b' makes `\beta' and `g' makes `\gamma' and so on.  First, type
   7.781 -`:TAB' to know all the correspondence of alphabets vs. Greek letters.
   7.782 -
   7.783 -  If you will find `;' or `:' doesn't work in correct position of math
   7.784 -environment, it may be a bug of YaTeX.  Please send me a bug report with
   7.785 -the configuration of your text, and avoid it temporarily by typing `;' or
   7.786 -`:' after universal-argument(`C-u') which forces `;' and `:' to work as
   7.787 -math-prefix.
   7.788 -
   7.789 -
   7.790 -
   7.791 -File: yatexe, Node: Local dictionaries, Next: Commenting out, Prev: Completion, Up: Top
   7.792 -
   7.793 -Local dictionaries
   7.794 -******************
   7.795 -
   7.796 -  Tables for completion consist of three dictionaries; `standard
   7.797 -dictionary' built in `yatex.el', `user dictionary' for your common private
   7.798 -commands, and `local dictionary' that is effective in a certain directory.
   7.799 -
   7.800 -  When you input the command unknown to YaTeX at a completion in the
   7.801 -minibuffer, YaTeX asks you with the following prompt;
   7.802 -
   7.803 -       `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard
   7.804 -
   7.805 -In this menu, typing `u' updates your `user dictionary', `l' updates your
   7.806 -local dictionary, `n' updates only on-memory dictionary which go through
   7.807 -only current Emacs session, and `d' updates no dictionary and throws the
   7.808 -new word away.
   7.809 -
   7.810 -  If you find this switching feature meaningless and bothersome, put the
   7.811 -next expression into your `~/.emacs'
   7.812 -
   7.813 -             (setq YaTeX-nervous nil)
   7.814 -
   7.815 -
   7.816 -
   7.817 -File: yatexe, Node: Commenting out, Next: Cursor jump, Prev: Local dictionaries, Up: Top
   7.818 -
   7.819 -Commenting out
   7.820 -**************
   7.821 -
   7.822 -  You may want to comment out some region.
   7.823 -
   7.824 -`[prefix] >'
   7.825 -             ... comment out region by %
   7.826 -`[prefix] <'
   7.827 -             ... uncomment region
   7.828 -
   7.829 -cause an operation to the region between point and mark.
   7.830 -
   7.831 -`[prefix] .'
   7.832 -             ... comment out current paragraph
   7.833 -`[prefix] ,'
   7.834 -             ... uncomment current paragraph
   7.835 -
   7.836 -comments or uncomments the paragraph where the cursor belongs.  This
   7.837 -`paragraph' means the region marked by the function mark-paragraph, bound
   7.838 -to `ESC h' by default.  It is NOT predictable what will happen when you
   7.839 -continuously comment out some paragraph many times.
   7.840 -
   7.841 -  You can also comment out an environment between `\begin' and `\end', or
   7.842 -a `\begin'-\`\end' pair themselves, by making the following key strokes on
   7.843 -the line where `\begin{}' or `\end{}' exists.
   7.844 -
   7.845 -`[prefix] >'
   7.846 -             ... comment out from \begin to \`end'
   7.847 -`[prefix] <'
   7.848 -             ... uncomment from \begin to \`end'
   7.849 -
   7.850 -comment whole the contents of environment.  Moreover,
   7.851 -
   7.852 -`[prefix] .'
   7.853 -             ... comment out \begin and \`end'
   7.854 -`[prefix] ,'
   7.855 -             ... uncomment \begin and \`end'
   7.856 -
   7.857 -(un)comments out only environment declaration: `\begin{}' and `\end{}'.
   7.858 -NOTE that even if you intend to comment out some region, invoking
   7.859 -`[prefix] >' on the `\begin',`\end' line decides to work in `commenting
   7.860 -out from `\begin' to `\end'' mode.
   7.861 -
   7.862 -
   7.863 -
   7.864 -
   7.865 -File: yatexe, Node: Cursor jump, Next: Changing and Deleting, Prev: Commenting out, Up: Top
   7.866 -
   7.867 -Cursor jump
   7.868 -***********
   7.869 -
   7.870 -
   7.871 -* Menu:
   7.872 -
   7.873 -* Jump to corresponding object::  
   7.874 -* Invoking image processor::    
   7.875 -* Jump to main file::           
   7.876 -* Jumping around the environment::  
   7.877 -* Jumping to last completion position::  
   7.878 -
   7.879 -
   7.880 -
   7.881 -File: yatexe, Node: Jump to corresponding object, Next: Invoking image processor, Prev: Cursor jump, Up: Cursor jump
   7.882 -
   7.883 -Jump to corresponding object
   7.884 -============================
   7.885 -
   7.886 -  Typing
   7.887 -
   7.888 -`[prefix] g'
   7.889 -             ... go to corresponding object
   7.890 -
   7.891 -in a certain place move the cursor to the place corresponding to the LaTeX
   7.892 -command of last place.  YaTeX recognize the followings as pairs that have
   7.893 -relation each other.
   7.894 -
   7.895 -   * `\begin{}' <-> `\end{}'
   7.896 -   * `%#BEGIN' <-> `%#END'
   7.897 -   * On the image-including line -> corresponding viewer or drawing tool
   7.898 -   * `\label{}' <-> `\ref{}'
   7.899 -   * `\include(\input)' -> included file
   7.900 -   * `\bibitem{}' <-> `\cite{}'
   7.901 -
   7.902 -  On a `\begin',`\end' line, typing `[prefix] g' moves the cursor to the
   7.903 -corresponding `\end',`\begin' line, if its partner really exists.  The
   7.904 -behavior on the line `%#BEGIN' and `%#END' are the same.  Note that if the
   7.905 -correspondent of `label/ref' or `cite/bibitem' exists in another file,
   7.906 -that file have to be opened to make a round trip between references by
   7.907 -`[prefix] g'.
   7.908 -
   7.909 -  If you type `[prefix] g' on the line of `\include{chap1}', typically in
   7.910 -the main text, YaTeX switches buffer to `chap1.tex'.
   7.911 -
   7.912 -`[prefix] 4 g'
   7.913 -             ... go to corresponding object in other window
   7.914 -
   7.915 -do the same job as `[prefix] g' except it's done in other window.  Note
   7.916 -that this function doesn't work on `begin/end', `%#BEGIN/%#END' pairs
   7.917 -because it is meaningless.
   7.918 -
   7.919 -
   7.920 -
   7.921 -File: yatexe, Node: Invoking image processor, Next: Jump to main file, Prev: Jump to corresponding object, Up: Cursor jump
   7.922 -
   7.923 -Invoking image processor
   7.924 -========================
   7.925 -
   7.926 -
   7.927 -`image-including line' described above means such lines as
   7.928 -`\epsfile{file=foo.ps}'.  If you type `[prefix] g' on that line, YaTeX
   7.929 -automatically searches source of `foo.ps' and invokes image viewer or
   7.930 -drawing tool correspoinding to it.  For example; if you draw an image
   7.931 -foo.obj with Tgif and enclose its product named foo.eps by `\epsfile'
   7.932 -command.  Typing `[prefix] g' on `\epsfile' line make YaTeX invoke `tgif
   7.933 -foo.obj'.  How a processor is choosen is as follows.
   7.934 -
   7.935 -  1. If there is an expression matching with one of the pattern defined in
   7.936 -     `YaTeX-processed-file-regexp-alist', extract file name from regexp
   7.937 -     group surrounded by \\(\\).  (Which group corresponds is written in
   7.938 -     the cdr part of each list.)  If no matches were found, do nothing.
   7.939 -  2. If there is a pattern as `%PROCESSOR' which is defined in the
   7.940 -     variable `YaTeX-file-processor-alist', call that processor giving the
   7.941 -     file name with corresponding extension.
   7.942 -  3. If not, check the existence of each file which is supplied the
   7.943 -     extension in the cdr part of each list of
   7.944 -     `YaTeX-file-processor-alist'.  If any, call the corresponding image
   7.945 -     viewer or drawing tool.
   7.946 -
   7.947 -
   7.948 -
   7.949 -File: yatexe, Node: Jump to main file, Next: Jumping around the environment, Prev: Invoking image processor, Up: Cursor jump
   7.950 -
   7.951 -Jump to main file
   7.952 -=================
   7.953 -
   7.954 -  Typing
   7.955 -
   7.956 -`[prefix] ^'
   7.957 -             ... visit main file
   7.958 -`[prefix] 4^'
   7.959 -             ... visit main file in other buffer
   7.960 -
   7.961 -in a sub text switch the buffer to the main text specified by `%#!'
   7.962 -notation.
   7.963 -
   7.964 -
   7.965 -
   7.966 -File: yatexe, Node: Jumping around the environment, Next: Jumping to last completion position, Prev: Jump to main file, Up: Cursor jump
   7.967 -
   7.968 -Jumping around the environment
   7.969 -==============================
   7.970 -
   7.971 -  And these are the functions which work on the current LaTeX environment:
   7.972 -
   7.973 -`M-C-a'
   7.974 -             ... beginning of environment
   7.975 -`M-C-e'
   7.976 -             ... `end' of environment
   7.977 -`M-C-@'
   7.978 -             ... mark environment
   7.979 -
   7.980 -
   7.981 -
   7.982 -File: yatexe, Node: Jumping to last completion position, Prev: Jumping around the environment, Up: Cursor jump
   7.983 -
   7.984 -Jumping to last completion position
   7.985 -===================================
   7.986 -
   7.987 -YaTeX always memorize the position of completion into register `3'.  So
   7.988 -every time you make a trip to any other part of text other than you are
   7.989 -writing, you can return to the editing paragraph by calling
   7.990 -register-to-point with argument YaTeX-current-position-register, which is
   7.991 -achieved by typing `C-x j 3'(by default).
   7.992 -
   7.993 -
   7.994 -
   7.995 -File: yatexe, Node: Changing and Deleting, Next: Filling, Prev: Cursor jump, Up: Top
   7.996 -
   7.997 -Changing and Deleting
   7.998 -*********************
   7.999 -
  7.1000 -  These functions are for change or deletion of LaTeX commands already
  7.1001 -entered.
  7.1002 -
  7.1003 -`[prefix] c'
  7.1004 -             ... change LaTeX command
  7.1005 -`[prefix] k'
  7.1006 -             ... kill LaTeX command
  7.1007 -
  7.1008 -* Menu:
  7.1009 -
  7.1010 -* Changing LaTeX commands::     
  7.1011 -* Killing LaTeX commands::      
  7.1012 -
  7.1013 -
  7.1014 -
  7.1015 -File: yatexe, Node: Changing LaTeX commands, Next: Killing LaTeX commands, Prev: Changing and Deleting, Up: Changing and Deleting
  7.1016 -
  7.1017 -Changing LaTeX commands
  7.1018 -=======================
  7.1019 -
  7.1020 -`[prefix] c' can change the various (La)TeX commands.  This can change the
  7.1021 -followings.
  7.1022 -   * Environment names
  7.1023 -   * Section-type commands
  7.1024 -   * Argument of section-type commands
  7.1025 -   * Optional parameters (enclosed by []) of section-type commands
  7.1026 -   * Font/size designators
  7.1027 -   * Math-mode's maketitle-type commands that can be inputted with image
  7.1028 -     completion
  7.1029 -
  7.1030 -  Typing `[prefix] c' on one of above objects you want to change brings a
  7.1031 -suitable reading function sometimes with completion.  Note: If you want to
  7.1032 -change the argument of section-type command that contains other LaTeX
  7.1033 -commands, type `[prefix] c' either of surrounding braces of the argument
  7.1034 -in order to make YaTeX ignore the internal LaTeX sequences as an object of
  7.1035 -changing.  Anyway, it is very difficult to know which argument position
  7.1036 -the cursor belongs because the LaTeX commands can be nested and braces can
  7.1037 -freely emerge.  So keep it mind to put the cursor on a brace when you are
  7.1038 -thinking of changing a complicated argument.
  7.1039 -
  7.1040 -
  7.1041 -
  7.1042 -File: yatexe, Node: Killing LaTeX commands, Prev: Changing LaTeX commands, Up: Changing and Deleting
  7.1043 -
  7.1044 -Killing LaTeX commands
  7.1045 -======================
  7.1046 -
  7.1047 -  `[prefix] k' kills the LaTeX commands sometimes with their arguments.
  7.1048 -Following table illustrates the correspondence of the invoking position
  7.1049 -and what is killed.
  7.1050 -
  7.1051 -     [Invoking position]             [action]
  7.1052 -     \begin, \end line               kill \begin,\end pairs
  7.1053 -     %#BEGIN, %#END line             kill %#BEGIN,%#END pairs
  7.1054 -     on a Section-type command       kill section-type command
  7.1055 -     on a parenthesis                kill parentheses
  7.1056 -
  7.1057 -Note that when killing `\begin, \end' or `%#BEGIN, %#END' pair, the lines
  7.1058 -`\begin, \end' or `%#BEGIN, %#END' exist will be killed entirely.  So take
  7.1059 -care not to create any line that contains more than one `\begin' or so.
  7.1060 -
  7.1061 -While all operations above are to kill `containers' which surround some
  7.1062 -text, universal argument (`C-u') for these commands kills not only
  7.1063 -`containers' but also `contents' of them.  See below as a sample.
  7.1064 -
  7.1065 -     Original text:                  [prefix] k      C-u [prefix] k
  7.1066 -     Main \footnote{note} here.    Main note here. Main  here.
  7.1067 -            ~(cursor)
  7.1068 -
  7.1069 -
  7.1070 -
  7.1071 -File: yatexe, Node: Filling, Next: Updation of includeonly, Prev: Changing and Deleting, Up: Top
  7.1072 -
  7.1073 -Filling
  7.1074 -*******
  7.1075 -
  7.1076 -
  7.1077 -Filling an item
  7.1078 -===============
  7.1079 -
  7.1080 -  To fill a term (descriptive sentences) of `\item', type
  7.1081 -
  7.1082 -`M-q'
  7.1083 -             ... fill item
  7.1084 -
  7.1085 -on that item.
  7.1086 -
  7.1087 -  YaTeX uses the value of the variable `YaTeX-item-regexp' as the regular
  7.1088 -expression to search item header in itemize environment.  If you make a
  7.1089 -newcommand to itemize terms(e.g. `\underlineitem'), put
  7.1090 -
  7.1091 -             (setq YaTeX-item-regexp
  7.1092 -                   "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)")
  7.1093 -
  7.1094 -in your `~/.emacs'.  If you are not familiar with regular expression for
  7.1095 -Emacs-Lisp, name a newcommand for `itemize' beginning with `\item' such as
  7.1096 -`\itembf', not `\bfitem'.
  7.1097 -
  7.1098 -  This function reformats the `\item' into `hang-indented' style.  For
  7.1099 -example:
  7.1100 -
  7.1101 -     itemize, enumerate environment:
  7.1102 -            >
  7.1103 -            >\item[foo] `foo' is the typical word for describing an
  7.1104 -            >           arbitrarily written....
  7.1105 -     description environment:
  7.1106 -            > \item[bar] When the word `for' is used as an arbitrarily
  7.1107 -            >        word, `bar'  is bound to follow it.
  7.1108 -
  7.1109 -  Note that the indent depth of an `\item' word and its descriptive
  7.1110 -paragraph are the same in latter case.  If you want to use different
  7.1111 -depth, invoke fill-paragraph at the beginning of non-whitespace
  7.1112 -character(see below).
  7.1113 -
  7.1114 -
  7.1115 -Filling paragraph
  7.1116 -=================
  7.1117 -
  7.1118 -  Fill-paragraph is little bit adapted for LaTeX sources.  It retains from
  7.1119 -filling in certain environments where formatting leads to a disaster such
  7.1120 -as verbatim, tabular, or so.  And it protects `\verb' expressions from
  7.1121 -being folded (The variable `YaTeX-verb-regexp' controls this).  Besides,
  7.1122 -putting cursor on the first occurrence of non-whitespace character on a
  7.1123 -line changes the fill-prefix temporarily to the depth of the line.
  7.1124 -
  7.1125 -
  7.1126 -
  7.1127 -File: yatexe, Node: Updation of includeonly, Next: What column, Prev: Filling, Up: Top
  7.1128 -
  7.1129 -Updation of `\includeonly'
  7.1130 -**************************
  7.1131 -
  7.1132 -  When you edit splitting source texts, the notation
  7.1133 -
  7.1134 -             \includeonly{CurrentEditingFileName}
  7.1135 -
  7.1136 -in the main file reduces the time of typesetting.  If you want to hack
  7.1137 -other file a little however, you have to rewrite it to
  7.1138 -
  7.1139 -             \includeonly{OtherFileNameYouWantToFix}
  7.1140 -
  7.1141 -in the main file.  YaTeX automatically detects that the current edited
  7.1142 -text is not in includeonly list and prompts you
  7.1143 -
  7.1144 -             A)dd R)eplace %)comment?
  7.1145 -
  7.1146 -in the minibuffer.  Type `a' if you want to add the current file name to
  7.1147 -`\includeonly' list, `r' to replace \`includeonly' list with the current
  7.1148 -file, and type `%' to comment out the `\includeonly' line.
  7.1149 -
  7.1150 -
  7.1151 -
  7.1152 -File: yatexe, Node: What column, Next: Intelligent newline, Prev: Updation of includeonly, Up: Top
  7.1153 -
  7.1154 -What column?
  7.1155 -************
  7.1156 -
  7.1157 -  We are often get tired of finding the corresponding column in large
  7.1158 -tabulars.  For example,
  7.1159 -
  7.1160 -             \begin{tabular}{|c|c|c|c|c|c|c|c|}\hline
  7.1161 -              Name&Position&Post No.&Addr.&Phone No.&FAX No.&
  7.1162 -                     Home Addr.&Home Phone\\ \hline
  7.1163 -              Thunder Bird & 6 & 223 & LA & xxx-yyy &
  7.1164 -               zzz-www & Japan & 9876-54321 \\
  7.1165 -                & 2 & \multicolumn{2}{c|}{Unknown}
  7.1166 -                     &&&(???)
  7.1167 -              \\ \hline
  7.1168 -              \end{tabular}
  7.1169 -
  7.1170 -Suppose you have the cursor located at `(???)' mark, can you tell which
  7.1171 -column it is belonging at once?  Maybe no.  In such case, type
  7.1172 -
  7.1173 -`[prefix] &'
  7.1174 -             ... What column
  7.1175 -
  7.1176 -in that position.  YaTeX tells you the column header of the current field.
  7.1177 -Since YaTeX assumes the first line of tabular environment as a row of
  7.1178 -column headers, you can create a row of virtual column headers by putting
  7.1179 -them in the first line and commenting that line with `%'.
  7.1180 -
  7.1181 -
  7.1182 -
  7.1183 -File: yatexe, Node: Intelligent newline, Next: Usepackage checker, Prev: What column, Up: Top
  7.1184 -
  7.1185 -Intelligent newline
  7.1186 -*******************
  7.1187 -
  7.1188 -  At the end of begin-type completion of tabular[*], array, itemize,
  7.1189 -enumerate or tabbing environment, or typing
  7.1190 -
  7.1191 -`ESC RET'
  7.1192 -             ... Intelligent newline
  7.1193 -
  7.1194 -in these environments inserts the contents corresponding to the current
  7.1195 -environment in the next line.  (At the begin-type completion, this
  7.1196 -contents can be removed by `undo'.)  In `tabular' environment, for
  7.1197 -example, `ESC RET' inserts the certain number of `&' and trailing `\\',
  7.1198 -and `\hline' if other `\hline' is found in backward.  Here are the list of
  7.1199 -contents vs. environments.
  7.1200 -
  7.1201 -   * `tabular', `tabular*', `array'
  7.1202 -
  7.1203 -             Corresponding number of `&' and `\\'.  And `\hline' if
  7.1204 -     needed.
  7.1205 -
  7.1206 -   * `tabbing'
  7.1207 -
  7.1208 -             The same number of `\>' as `\=' in the first line.
  7.1209 -
  7.1210 -   * `itemize', `enumerate', `description', `list'
  7.1211 -
  7.1212 -             `\item' or `item[]'.
  7.1213 -
  7.1214 -  Note that since this function works seeing the contents of the first
  7.1215 -line, please call this after the second line if possible.
  7.1216 -
  7.1217 -  If you want to apply these trick to other environments, `foo'
  7.1218 -environment for example, define the function named
  7.1219 -`YaTeX-intelligent-newline-foo' to insert corresponding contents.  That
  7.1220 -function will be called at the beginning of the next line after the
  7.1221 -newline is inserted to the current line.  Since the function
  7.1222 -`YaTeX-indent-line' is designed to indent the current line properly,
  7.1223 -calling this function before your code to insert certain contents must be
  7.1224 -useful.  See the definition of the function
  7.1225 -`YaTeX-intelligent-newline-itemize' as an example.
  7.1226 -
  7.1227 -
  7.1228 -
  7.1229 -File: yatexe, Node: Usepackage checker, Next: Online help, Prev: Intelligent newline, Up: Top
  7.1230 -
  7.1231 -Usepackage checker
  7.1232 -******************
  7.1233 -
  7.1234 -When you input begint-type, section-type, maketitle-type macros with
  7.1235 -completion, and it requires some LaTeX2e package, YaTeX examines the
  7.1236 -existence of correct `\usepackage'.  If not, YaTeX inserts the
  7.1237 -`\usepackage{}' declaration corresponding to input macro.
  7.1238 -
  7.1239 -To activate the package completion for your favarite package, set the
  7.1240 -variable `YaTeX-package-alist-private' correctly.  Please refere the value
  7.1241 -of `YaTeX-package-alist-default' as an example.
  7.1242 -
  7.1243 -
  7.1244 -
  7.1245 -File: yatexe, Node: Online help, Next: Browsing file hierarchy, Prev: Usepackage checker, Up: Top
  7.1246 -
  7.1247 -Online help
  7.1248 -***********
  7.1249 -
  7.1250 -  YaTeX provides you the online help with popular LaTeX commands.
  7.1251 -
  7.1252 -  Here are the key strokes for the online help.
  7.1253 -
  7.1254 -`[prefix] ?'
  7.1255 -             ... Online help
  7.1256 -`[prefix] /'
  7.1257 -             ... Online apropos
  7.1258 -
  7.1259 -
  7.1260 -Online help
  7.1261 -===========
  7.1262 -
  7.1263 -  `Online help' shows the documentation for the popular LaTeX
  7.1264 -commands(defaults to the commands on the cursor) in the next buffer.
  7.1265 -There are two help file, `global help' and `private help'.  The former
  7.1266 -file contains the descriptions on the standard LaTeX command and is
  7.1267 -specified its name by variable `YaTeX-help-file'.  Usually, the global
  7.1268 -help file should be located in public space (`$EMACSEXECPATH' by default)
  7.1269 -and should be world writable so that anyone can update it to enrich its
  7.1270 -contents.  The latter file contains descriptions on non-standard or
  7.1271 -personal command definitions and is specified by
  7.1272 -`YaTeX-help-file-private'.  This file should be put into private
  7.1273 -directory.
  7.1274 -
  7.1275 -
  7.1276 -Online apropos
  7.1277 -==============
  7.1278 -
  7.1279 -  `Online apropos' is an equivalent of GNU Emacs's apropos.  It shows all
  7.1280 -the documentations that contains the keyword entered by the user.
  7.1281 -
  7.1282 -
  7.1283 -When no descriptions are found...
  7.1284 -=================================
  7.1285 -
  7.1286 -  If there is no description on a command in help files, YaTeX requires
  7.1287 -you to write a description on that command.  If you are willing to do,
  7.1288 -determine which help file to add and write the description on it referring
  7.1289 -your manual of (La)TeX.  Please send me your additional descriptions if
  7.1290 -you describe the help on some standard commands.  I might want to include
  7.1291 -it in the next distribution.
  7.1292 -
  7.1293 -
  7.1294 -
  7.1295 -File: yatexe, Node: Browsing file hierarchy, Next: Cooperation with other packages, Prev: Online help, Up: Top
  7.1296 -
  7.1297 -Browsing file hierarchy
  7.1298 -***********************
  7.1299 -
  7.1300 -  When you are editing multi-file source, typing
  7.1301 -
  7.1302 -`[prefix] d'
  7.1303 -             ... browse file hierarchy
  7.1304 -
  7.1305 -asks you the parent-most file (which may be defaulted) and displays the
  7.1306 -documentation hierarchy in the next window.  In this buffer, the following
  7.1307 -commands are available.
  7.1308 -
  7.1309 -`n'
  7.1310 -             ... move to the next line and show its contents
  7.1311 -`p'
  7.1312 -             ... move to the previous line and show its contents
  7.1313 -`N'
  7.1314 -             ... move to the next file in the same inclusion level
  7.1315 -`P'
  7.1316 -             ... move to the previous file in the same inclusion level
  7.1317 -`j'
  7.1318 -             ... move to the next line
  7.1319 -`k'
  7.1320 -             ... move to the previous line
  7.1321 -`u'
  7.1322 -             ... move to the parent file
  7.1323 -`.'
  7.1324 -             ... show the current files contents in the next window
  7.1325 -`SPC'
  7.1326 -             ... scroll up the current file window
  7.1327 -`DEL, b'
  7.1328 -             ... scroll down the current file window
  7.1329 -`<'
  7.1330 -             ... show the beginning of the current file
  7.1331 -`>'
  7.1332 -             ... show the end of the current file
  7.1333 -`>'
  7.1334 -             ... return to the previous postion after `<' or `>'
  7.1335 -`RET, g'
  7.1336 -             ... open the current file in the next window
  7.1337 -`mouse-2'
  7.1338 -             ... same as RET(available only with window system)
  7.1339 -`o'
  7.1340 -             ... other window
  7.1341 -`1'
  7.1342 -             ... delete other windows
  7.1343 -`-'
  7.1344 -             ... shrink hierarchy buffer window
  7.1345 -`+'
  7.1346 -             ... enlarge hierarchy buffer window
  7.1347 -`?'
  7.1348 -             ... describe mode
  7.1349 -`q'
  7.1350 -             ... quit
  7.1351 -
  7.1352 -  Note that operations on the file contents in the next window do not work
  7.1353 -correctly when you close the corresponding file.
  7.1354 -
  7.1355 -
  7.1356 -
  7.1357 -File: yatexe, Node: Cooperation with other packages, Next: Customizations, Prev: Browsing file hierarchy, Up: Top
  7.1358 -
  7.1359 -Cooperation with other packages
  7.1360 -*******************************
  7.1361 -
  7.1362 -  YaTeX works better with other brilliant packages.
  7.1363 -
  7.1364 -
  7.1365 -gmhist
  7.1366 -======
  7.1367 -
  7.1368 -  When you are loading `gmhist.el' and `gmhist-mh.el', you can use
  7.1369 -independent command history list at the prompt of preview command
  7.1370 -(`[prefix] tp') and print command (`[prefix] tl').  On each prompt, you
  7.1371 -can enter the previous command line string repeatedly by typing `M-p'.
  7.1372 -
  7.1373 -
  7.1374 -min-out
  7.1375 -=======
  7.1376 -
  7.1377 -  `min-out', the outline minor mode, can be used in yatex-mode buffers.
  7.1378 -If you want to use it with YaTeX, please refer the file `yatexm-o.el' as
  7.1379 -an example.
  7.1380 -
  7.1381 -
  7.1382 -
  7.1383 -File: yatexe, Node: Customizations, Next: Etcetera, Prev: Cooperation with other packages, Up: Top
  7.1384 -
  7.1385 -Customizations
  7.1386 -**************
  7.1387 -
  7.1388 -  You can customize YaTeX by setting Emacs-Lisp variables and by making
  7.1389 -add-in functions.
  7.1390 -
  7.1391 -* Menu:
  7.1392 -
  7.1393 -* Lisp variables::              
  7.1394 -* Add-in functions::            
  7.1395 -* Add-in generator::            
  7.1396 -
  7.1397 -
  7.1398 -
  7.1399 -File: yatexe, Node: Lisp variables, Next: Add-in functions, Prev: Customizations, Up: Customizations
  7.1400 -
  7.1401 -Lisp variables
  7.1402 -==============
  7.1403 -
  7.1404 -  You can change the key assignments or make completion more comfortable
  7.1405 -by setting the values of various variables which control the movement of
  7.1406 -yatex-mode.
  7.1407 -
  7.1408 -  For example, if you want to change the prefix key stroke from `C-c' to
  7.1409 -any other sequence, set YaTeX-prefix to whatever you want to use.  If you
  7.1410 -don't want to use the key sequence `C-c letter' which is assumed to be the
  7.1411 -user reserved sequence in Emacs world, set `YaTeX-inhibit-prefix-letter'
  7.1412 -to `t', and all of the default key bind of `C-c letter' will turn to the
  7.1413 -corresponding `C-c C-letter' (but the region based completions that is
  7.1414 -invoked with `C-c Capital-letter' remain valid, if you want to disable
  7.1415 -those bindings, set that variable to 1 instead of `t').
  7.1416 -
  7.1417 -* Menu:
  7.1418 -
  7.1419 -* All customizable variables::  
  7.1420 -* Sample definitions::          
  7.1421 -* Hook variables::              
  7.1422 -* Hook file::                   
  7.1423 -
  7.1424 -
  7.1425 -
  7.1426 -File: yatexe, Node: All customizable variables, Next: Sample definitions, Prev: Lisp variables, Up: Lisp variables
  7.1427 -
  7.1428 -All customizable variables
  7.1429 ---------------------------
  7.1430 -
  7.1431 -  Here are the customizable variables of yatex-mode.  Each value setq-ed
  7.1432 -in `~/.emacs' is preferred and that of defined in `yatex.el' is neglected.
  7.1433 -Parenthesized contents stands for the default value.  When you are to
  7.1434 -change some of these variables, see more detailed documentation of the
  7.1435 -variable by `M-x describe-variable'.
  7.1436 -
  7.1437 - -- Variable: YaTeX-japan
  7.1438 -     Set this nil to produce all messages in English (`Depends on Japanese
  7.1439 -     feature of Emacs')
  7.1440 -
  7.1441 - -- Variable: YaTeX-kanji-code
  7.1442 -     Default buffer-file-coding-system for YaTeX modes' buffer.  Set this
  7.1443 -     0 to no language conversion.  Nil to preserve original
  7.1444 -     coding-system. 1=Shift JIS, 2=JIS, 3=EUC, 4=UTF-8 (`1 or 2')
  7.1445 -
  7.1446 - -- Variable: YaTeX-prefix
  7.1447 -     Prefix key stroke (`C-c')
  7.1448 -
  7.1449 - -- Variable: YaTeX-inhibit-prefix-letter
  7.1450 -     Change key stroke from `C-c letter' to `C-c C-letter' (`nil')
  7.1451 -
  7.1452 - -- Variable: YaTeX-fill-prefix
  7.1453 -     Fill-prefix used in yatex-mode (`nil')
  7.1454 -
  7.1455 - -- Variable: YaTeX-user-completion-table
  7.1456 -     Name of user dictionary where learned completion table will be
  7.1457 -     stored.  (`"~/.yatexrc"')
  7.1458 -
  7.1459 - -- Variable: tex-command
  7.1460 -     LaTeX typesetter command (`"latex"')
  7.1461 -
  7.1462 - -- Variable: dvi2-command
  7.1463 -     Preview command (`"xdvi -geo +0+0 -s 4"')
  7.1464 -
  7.1465 - -- Variable: dviprint-command-format
  7.1466 -     Command format to print dvi file (`"dvi2ps %f %t %s | lpr"')
  7.1467 -
  7.1468 - -- Variable: dviprint-from-format
  7.1469 -     Start page format of above %f. %b will turn to start page (`"-f %b"')
  7.1470 -
  7.1471 - -- Variable: dviprint-to-format
  7.1472 -     End page format of above %t. %e will turn to `end' page (`"-t %e"')
  7.1473 -
  7.1474 - -- Variable: makeindex-command
  7.1475 -     Default makeindex command (`"makeindex"' (`"makeind"' on MS-DOS))
  7.1476 -
  7.1477 - -- Variable: YaTeX-dvipdf-command
  7.1478 -     Default command name to convert .dvi to PDF (`"dvipdfmx"')
  7.1479 -
  7.1480 - -- Variable: YaTeX-need-nonstop
  7.1481 -     Put `\nonstopmode{}' or not (`nil')
  7.1482 -
  7.1483 - -- Variable: latex-warning-regexp
  7.1484 -     Regular expression of warning message latex command puts out
  7.1485 -     (`"line.* [0-9]*"')
  7.1486 -
  7.1487 - -- Variable: latex-error-regexp
  7.1488 -     Regular expression of error message (`"l\\.[1-9][0-9]*"')
  7.1489 -
  7.1490 - -- Variable: latex-dos-emergency-message
  7.1491 -     Message latex command running on DOS puts at abort (`"Emergency
  7.1492 -     stop"')
  7.1493 -
  7.1494 - -- Variable: YaTeX-item-regexp
  7.1495 -     Regular expression of item command (`"\\\\item"')
  7.1496 -
  7.1497 - -- Variable: YaTeX-verb-regexp
  7.1498 -     Regexp of verb family.  Omit \\\\. (`"verb\\*?\\|path"')
  7.1499 -
  7.1500 - -- Variable: YaTeX-nervous
  7.1501 -     T for using local dictionary (`t')
  7.1502 -
  7.1503 - -- Variable: YaTeX-sectioning-regexp
  7.1504 -     Regexp of LaTeX sectioning command
  7.1505 -     (`"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"')
  7.1506 -
  7.1507 - -- Variable: YaTeX-fill-inhibit-environments
  7.1508 -     Inhibit fill in these environments (`'("tabular" "tabular*" "array"
  7.1509 -     "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath"
  7.1510 -     "verbatim" "verbatim*")')
  7.1511 -
  7.1512 - -- Variable: YaTeX-uncomment-once
  7.1513 -     T for deleting all preceding `%' (`nil')
  7.1514 -
  7.1515 - -- Variable: YaTeX-close-paren-always
  7.1516 -     T for always close all parenthesis automatically, `nil' for only eol
  7.1517 -     (`t')
  7.1518 -
  7.1519 - -- Variable: YaTeX-auto-math-mode
  7.1520 -     Switch math-mode automatically (`t')
  7.1521 -
  7.1522 - -- Variable: YaTeX-math-key-list-private
  7.1523 -     User defined alist, math-mode-prefix vs completion alist used in
  7.1524 -     image completion (`nil').  See `yatexmth.el' for the information
  7.1525 -     about how to define a completion alist.
  7.1526 -
  7.1527 - -- Variable: YaTeX-default-pop-window-height
  7.1528 -     Initial height of typesetting buffer when one-window.  Number for the
  7.1529 -     lines of the buffer, numerical string for the percentage of the
  7.1530 -     screen-height. `nil' for half height (10)
  7.1531 -
  7.1532 - -- Variable: YaTeX-help-file
  7.1533 -     Global online help file name
  7.1534 -     (`$doc-directory/../../site-lisp/YATEXHLP.eng')
  7.1535 -
  7.1536 - -- Variable: YaTeX-help-file-private
  7.1537 -     Private online help file name (`"~/YATEXHLP.eng"')
  7.1538 -
  7.1539 - -- Variable: YaTeX-no-begend-shortcut
  7.1540 -     Disable [prefix] b ?? shortcut (`nil)'
  7.1541 -
  7.1542 - -- Variable: YaTeX-hilit-pattern-adjustment-private
  7.1543 -     List of the list that contain the regular expression and the symbol
  7.1544 -     of logical meaning of the string that matches the pattern.  See also
  7.1545 -     the value from `(assq 'yatex-mode hilit-patterns-alist)' and the
  7.1546 -     value of `YaTeX-hilit-pattern-adjustment-default' (and even the
  7.1547 -     document of hilit19.el).
  7.1548 -
  7.1549 - -- Variable: YaTeX-sectioning-level
  7.1550 -     Alist of LaTeX's sectioning command vs its height.
  7.1551 -
  7.1552 - -- Variable: YaTeX-hierarchy-ignore-heading-regexp
  7.1553 -     `YaTeX-display-hierarchy' searches for sectioning command first, and
  7.1554 -     comment line secondary as a file headings.  In latter case, ignore lines
  7.1555 -     that match with regular expression of this variable.  Default value of
  7.1556 -     this variable is RCS header expressions and mode specifying line `-*- xxxx 
  7.1557 -     -*'.
  7.1558 -
  7.1559 - -- Variable: YaTeX-skip-default-reader
  7.1560 -     Non-nil for this variable skips the default argument reader of
  7.1561 -     section-type command when add-in function for it is not defined
  7.1562 -     (`nil')
  7.1563 -
  7.1564 - -- Variable: YaTeX-create-file-prefix-g
  7.1565 -     When typing `prefix g' on the `\include' line, open the target file
  7.1566 -     even if the file doesn't exist (`nil')
  7.1567 -
  7.1568 - -- Variable: YaTeX-simple-messages
  7.1569 -     Simplyfy messages of various completions (`nil')
  7.1570 -
  7.1571 - -- Variable: YaTeX-hilit-sectioning-face
  7.1572 -     When hilit19 and yatex19 is active, YaTeX colors the sectioning
  7.1573 -     commands.  This variable specifies the foreground and background
  7.1574 -     color of `\part' macro.  The default value is `'(yellow/dodgerblue
  7.1575 -     yellow/slateblue)'.  The first element of this list is for the screen
  7.1576 -     when `hilit-background-mode' is `'light', and the second element is
  7.1577 -     for `'dark'.  You should specify both color as `forecolor/backcolor'.
  7.1578 -
  7.1579 - -- Variable: YaTeX-hilit-sectioning-attenuation-rate
  7.1580 -     When color mode, this variable specifies how much attenuate the color
  7.1581 -     density of `\subparagraph' compared with that of `\chapter' (`'(15
  7.1582 -     40)') See also `YaTeX-hilit-sectioning-face'.
  7.1583 -
  7.1584 - -- Variable: YaTeX-use-AMS-LaTeX
  7.1585 -     If you use AMS-LaTeX, set to `t' (`nil')
  7.1586 -
  7.1587 - -- Variable: YaTeX-use-LaTeX2e
  7.1588 -     If you use LaTeX2e, set to `t' (`t')
  7.1589 -
  7.1590 - -- Variable: YaTeX-template-file
  7.1591 -     File name which is automatically inserted at creation
  7.1592 -     (`~/work/template.tex')
  7.1593 -
  7.1594 - -- Variable: YaTeX-search-file-from-top-directory
  7.1595 -     Non-nil means to search input-files from the directory where main
  7.1596 -     file exists (`t')
  7.1597 -
  7.1598 - -- Variable: YaTeX-use-font-lock
  7.1599 -     Use font-lock to fontify buffer or not (`(featurep 'font-lock)'
  7.1600 -
  7.1601 - -- Variable: YaTeX-use-hilit19
  7.1602 -     Use hilit19 to highlight buffer or not (`(featurep 'hilit19)'
  7.1603 -
  7.1604 - -- Variable: YaTeX-use-italic-bold
  7.1605 -     YaTeX tries to search italic, bold fontsets or not (`t' if Emacs-20
  7.1606 -     or later).  This variable is effective only when font-lock is used.
  7.1607 -     (`(featurep 'hilit19)'
  7.1608 -
  7.1609 - -- Variable: YaTeX-singlecmd-suffix
  7.1610 -     Suffix which is always inserted after maketitle-type macros.  `"{}"'
  7.1611 -     is recommended.
  7.1612 -
  7.1613 - -- Variable: YaTeX-package-alist-private
  7.1614 -     Alist of LaTeX2e-package name vs. lists of macros in it.  Set this
  7.1615 -     alist properly and YaTeX automatically check the declaratiion of
  7.1616 -     `usepackage' for corresponding macro, when you input that macro with
  7.1617 -     completion.  If required `usepackage' is not found, YaTeX also
  7.1618 -     automatically inserts `\usepackage'.  Alist is as follows;
  7.1619 -     '((PackageName1 (completionType ListOfMacro) (completionType
  7.1620 -     ListOfMacro)) (PackageName2 (completionType ListOfMacro)
  7.1621 -     (completionType ListOfMacro...))....)  completionType is one of `env,
  7.1622 -     section, maketitle'.  Consult the value of
  7.1623 -     `YaTeX-package-alist-default' as an example.
  7.1624 -
  7.1625 - -- Variable: YaTeX-tabular-indentation
  7.1626 -     At indentation by `C-i' in tabular or array environment, YaTeX put
  7.1627 -     the additional spaces to the normail indentation depth.  The number
  7.1628 -     of additional spaces is the product of YaTeX-tabular-indentation and
  7.1629 -     the number of column position in tabular.
  7.1630 -
  7.1631 - -- Variable: YaTeX-noindent-env-regexp
  7.1632 -     Regexp of environment names that should begin with no indentation.
  7.1633 -     All verbatime-like environment name should match with.
  7.1634 -
  7.1635 - -- Variable: YaTeX-ref-default-label-string
  7.1636 -     Default \\ref time string format.  This format is like strftime(3)
  7.1637 -     but allowed conversion char are as follows; %y -> Last 2 digit of
  7.1638 -     year, %b -> Month name, %m -> Monthe number(1-12), %d -> Day, %H ->
  7.1639 -     Hour, %M -> Minute, %S -> Second, %qx -> alphabetical-decimal
  7.1640 -     conversion of yymmdd.  %qX -> alphabetical-decimal conversion of
  7.1641 -     HHMMSS.  Beware defualt label-string should be always unique.  So
  7.1642 -     this format string should have both time part (%H+%M+%S or %qX) and
  7.1643 -     date part (%y+(%b|%m)+%d or %qx).
  7.1644 -
  7.1645 - -- Variable: YaTeX-ref-generate-label-function
  7.1646 -     Function to generate default label string for unnamed \\label{}s.
  7.1647 -     The function pointed to this value should take two arguments.  First
  7.1648 -     argument is LaTeX macro's name, second is macro's argument.  Here is
  7.1649 -     an example for using this value.
  7.1650 -            (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label)
  7.1651 -            (defun my-yatex-generate-label (command value)
  7.1652 -              (and (string= command "caption")
  7.1653 -                   (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t)
  7.1654 -                   (setq command (match-string 1)))
  7.1655 -              (let ((alist '(("chapter" . "chap")
  7.1656 -                             ("section" . "sec")
  7.1657 -                             ("subsection" . "subsec")
  7.1658 -                             ("figure" . "fig")
  7.1659 -                             ("table" . "tbl"))))
  7.1660 -                (if (setq command (cdr (assoc command alist)))
  7.1661 -                    (concat command ":" value)
  7.1662 -                  (YaTeX::ref-generate-label nil nil))))
  7.1663 -
  7.1664 -
  7.1665 -
  7.1666 -
  7.1667 -File: yatexe, Node: Sample definitions, Next: Hook variables, Prev: All customizable variables, Up: Lisp variables
  7.1668 -
  7.1669 -Sample definitions
  7.1670 -------------------
  7.1671 -
  7.1672 - For instance, to change the prefix key stroke to `ESC', and name of the
  7.1673 -user dictionary `~/src/emacs/yatexrc', and set `fill-prefix' to single TAB
  7.1674 -character, add the following `setq' to `~/.emacs'.
  7.1675 -
  7.1676 -             (setq YaTeX-prefix "\e"
  7.1677 -                   YaTeX-user-completion-table "~/src/emacs/yatexrc"
  7.1678 -                   YaTeX-fill-prefix "       ")
  7.1679 -
  7.1680 -
  7.1681 -
  7.1682 -File: yatexe, Node: Hook variables, Next: Hook file, Prev: Sample definitions, Up: Lisp variables
  7.1683 -
  7.1684 -Hook variables
  7.1685 ---------------
  7.1686 -
  7.1687 -  More customizations will be done by the hook-function defined in
  7.1688 -hook-variable `yatex-mode-hook'.  This is useful to define a shortcut key
  7.1689 -sequence to enter some environments other than `document' and `enumerate'
  7.1690 -etc.  The following statement defines `[prefix] ba' to enter
  7.1691 -`\begin{abstract}' ...  `=end{abstract}' immediately.
  7.1692 -
  7.1693 -             (setq yatex-mode-hook
  7.1694 -                   '(lambda() (YaTeX-define-begend-key "ba" "abstract")))
  7.1695 -
  7.1696 -        You should use functions `YaTeX-define-key', or
  7.1697 -`YaTeX-define-begend-key' to define all the key sequences of yatex-mode.
  7.1698 -
  7.1699 -
  7.1700 -
  7.1701 -File: yatexe, Node: Hook file, Prev: Hook variables, Up: Lisp variables
  7.1702 -
  7.1703 -Hook file
  7.1704 ----------
  7.1705 -
  7.1706 -  You can stuff all of YaTeX related expressions into a file named
  7.1707 -`yatexhks.el' if you have a lot of codes.  YaTeX automatically load this
  7.1708 -file at the initialization of itself.  Using `yatexhks.el' makes
  7.1709 -`yatex-mode-load-hook' unnecessary.
  7.1710 -
  7.1711 -
  7.1712 -
  7.1713 -File: yatexe, Node: Add-in functions, Next: Add-in generator, Prev: Lisp variables, Up: Customizations
  7.1714 -
  7.1715 -Add-in functions
  7.1716 -================
  7.1717 -
  7.1718 -  You can easily define a function to input detailed arguments with
  7.1719 -completion according to LaTeX environments or commands.
  7.1720 -
  7.1721 -
  7.1722 -What is add-in functions?
  7.1723 --------------------------
  7.1724 -
  7.1725 -  When you input `tabular' environment, don't you think "I want YaTeX to
  7.1726 -complete its argument toward my favorite one such as `{|c|c|c|}'..."?
  7.1727 -Yes, you can define the function to complete arguments for any environment
  7.1728 -and any LaTeX commands.
  7.1729 -
  7.1730 -
  7.1731 -Procedure
  7.1732 ----------
  7.1733 -
  7.1734 -  Here is the procedure to define add-in functions.
  7.1735 -  1. Define the function
  7.1736 -  2. Put the function into `yatexhks.el'
  7.1737 -
  7.1738 -* Menu:
  7.1739 -
  7.1740 -* How the add-in function works::  
  7.1741 -* How the function is called::  
  7.1742 -* Useful functions for creating add-in::  
  7.1743 -* Contribution::                
  7.1744 -
  7.1745 -
  7.1746 -
  7.1747 -File: yatexe, Node: How the add-in function works, Next: How the function is called, Prev: Add-in functions, Up: Add-in functions
  7.1748 -
  7.1749 -How the add-in function works
  7.1750 ------------------------------
  7.1751 -
  7.1752 -There are three types of add-in.
  7.1753 -
  7.1754 -  1. Option add-in
  7.1755 -  2. argument add-in
  7.1756 -  3. enclosing add-in
  7.1757 -
  7.1758 -"Option add-in" returns the LaTeX's optional parameters such as optional
  7.1759 -strings after `\begin{ENV}', optional strings between a section-type
  7.1760 -command and its first argument, and optional strings just after type
  7.1761 -maketitle-type command.  The following illustrates the name of add-in
  7.1762 -functions, where underlined strings are generated by add-in functions.
  7.1763 -
  7.1764 -     \begin{table}[ht]		(Function name: YaTeX:table)
  7.1765 -                  ~~~~
  7.1766 -     \put(100,200){}		(Function name: YaTeX:put)
  7.1767 -         ~~~~~~~~~
  7.1768 -     \sum_{i=0}^{n}		(Function name: YaTeX:sum)
  7.1769 -         ~~~~~~~~~~
  7.1770 -
  7.1771 -  Obviously, the function name is decided by concatenating the prefix
  7.1772 -`YaTeX:' and LaTeX command's name.
  7.1773 -
  7.1774 -  Another add-in type is "argument add-in", which completes arguments for
  7.1775 -section-type commands.
  7.1776 -
  7.1777 -     \newcommand{\foo}{bar}	(Function name: YaTeX::newcommand)
  7.1778 -                 ~~~~  ~~~
  7.1779 -
  7.1780 -  When the section-type command is inputted, the function named by
  7.1781 -concatenating `YaTeX::' and section-type command, is called automatically
  7.1782 -with an integer argument which indicates which argument of section-type
  7.1783 -command is being read.  Thus the add-in should determine the job referring
  7.1784 -the value of its argument.
  7.1785 -
  7.1786 -  "enclosing add-in" is for modifying and/or checking the region that will
  7.1787 -be enclosed by section-type commands via `[prefix] S'.  An enclosing
  7.1788 -add-in function will be called with two arguments, beginning of the
  7.1789 -enclosed region and end of the region.  Suppose you want to enclose the
  7.1790 -existing text `(a+b)/c' by `\frac{}'.
  7.1791 -
  7.1792 -     a/c
  7.1793 -     |  |
  7.1794 -     A  B
  7.1795 -
  7.1796 -You do set-mark-command at point A and then move to point B.  Typing
  7.1797 -`[prefix] S' and input `frac' enclose the region like this;
  7.1798 -
  7.1799 -     \frac{a/c}
  7.1800 -
  7.1801 -Normally, the expression `a/c' is translated to `\frac{a}{c}'. An
  7.1802 -enclosing add-in is useful for modifying `/' to `}{'.
  7.1803 -
  7.1804 -* Menu:
  7.1805 -
  7.1806 -* Defining option-add-in::      
  7.1807 -* Defining argument-add-in::    
  7.1808 -* Defining enclosing-add-in::   
  7.1809 -
  7.1810 -
  7.1811 -
  7.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
  7.1813 -
  7.1814 -Defining `option add-in'
  7.1815 -........................
  7.1816 -
  7.1817 -  If you want `{|c|c|c|}' for all `tabular' environment,
  7.1818 -
  7.1819 -             (defun YaTeX:tabular ()
  7.1820 -               "{|c|c|c|}")
  7.1821 -
  7.1822 -is enough.  If you want more complicated format, define as below.
  7.1823 -
  7.1824 -             (defun YaTeX:tabular ()
  7.1825 -               "{@{\\vrule width 1pt\\ }|||@{\\ \\vrule width 1pt}}")
  7.1826 -
  7.1827 -Note that the character `\' must be described as `\\' in Emacs-Lisp.  The
  7.1828 -next example reads the tabular format from keyboard.
  7.1829 -             (defun YaTeX:tabular ()
  7.1830 -               (concat "{" (read-string "Rule: ") "}"))
  7.1831 -
  7.1832 -
  7.1833 -
  7.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
  7.1835 -
  7.1836 -Defining `argument add-in'
  7.1837 -..........................
  7.1838 -
  7.1839 -  This section describes how to define the add-in function for
  7.1840 -`\newcommand'.
  7.1841 -
  7.1842 -  The first argument of `\newcommand' begins always with `\'.  The second
  7.1843 -argument is usually so complex that we can not edit them in the
  7.1844 -minibuffer.  Here is the created function considering this.
  7.1845 -
  7.1846 -             (defun YaTeX::newcommand (n)	;n is argument position
  7.1847 -               (cond
  7.1848 -                ((= n 1)			;1st argument is macro name
  7.1849 -                 (read-string "Command: " "\\")) ;initial input `\' 
  7.1850 -                ((= n 2) "")			;do nothing when reading arg#2
  7.1851 -                (t nil)))
  7.1852 -
  7.1853 -  Note that when the `argument add-in' function return `nil', normal
  7.1854 -argument reader will be called.
  7.1855 -
  7.1856 -
  7.1857 -
  7.1858 -File: yatexe, Node: Defining enclosing-add-in, Prev: Defining argument-add-in, Up: How the add-in function works
  7.1859 -
  7.1860 -Defining `enclosing add-in'
  7.1861 -...........................
  7.1862 -
  7.1863 -  This section describes how to define the add-in function for text
  7.1864 -enclosed by `\frac{}'.
  7.1865 -
  7.1866 -  When enclosing the text `5/3' by `\frac{}', you might want to replace
  7.1867 -`/' with `}{'.  Enclosing function `YaTeX::frac-region' is called with two
  7.1868 -arguments, beginning of enclosed text and end of enclosed text.  The
  7.1869 -function is expected to replace `/' with `}{'.  Here is an example
  7.1870 -expression.
  7.1871 -
  7.1872 -     (defun YaTeX::frac-region (beg end)
  7.1873 -       (catch 'done
  7.1874 -         (while (search-forward "/" end t)
  7.1875 -           (goto-char (match-beginning 0))
  7.1876 -           (if (y-or-n-p "Replace this slash(/) with `}{'")
  7.1877 -     	  (throw 'done (replace-match "}{")))
  7.1878 -           (goto-char (match-end 0)))))
  7.1879 -
  7.1880 -
  7.1881 -
  7.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
  7.1883 -
  7.1884 -How the function is called
  7.1885 ---------------------------
  7.1886 -
  7.1887 -  YaTeX calls the add-in functions for specified begin-type, section-type,
  7.1888 -and maketitle-type command, if any.  `Option add-in' functions for
  7.1889 -begin-type are called when `\begin{ENV}' has been inserted, functions for
  7.1890 -section-type are called just before input of the first argument, and
  7.1891 -functions for maketitle-type is called after maketitle-type command has
  7.1892 -been inserted.  `Argument add-in' functions are called at each entry of
  7.1893 -arguments for section-type commands.
  7.1894 -
  7.1895 -
  7.1896 -
  7.1897 -File: yatexe, Node: Useful functions for creating add-in, Next: Contribution, Prev: How the function is called, Up: Add-in functions
  7.1898 -
  7.1899 -Useful functions for creating add-in
  7.1900 -------------------------------------
  7.1901 -
  7.1902 -  Many add-in functions for typical LaTeX commands are defined in
  7.1903 -`yatexadd.el'.  Those are also useful as references.  Here are the short
  7.1904 -descriptions on useful functions, where [F] means function, [A] means
  7.1905 -arguments, [D] means description.
  7.1906 -
  7.1907 -`[F]'
  7.1908 -     YaTeX:read-position
  7.1909 -`[A]'
  7.1910 -     Character list which can show up in the brackets
  7.1911 -`[D]'
  7.1912 -        Return the location specifier such as `[htb]'.  When nothing is
  7.1913 -     entered, omit [] itself.  If the possible characters are "htbp", call
  7.1914 -     this function as `(YaTeX:read-position "htbp")'
  7.1915 -
  7.1916 -`[F]'
  7.1917 -     YaTeX:read-coordinates
  7.1918 -`[A]'
  7.1919 -     Base prompt, X-axis prompt, Y-axis prompt (each optional)
  7.1920 -`[D]'
  7.1921 -       Read the coordinates with the prompt "BasePrompt X-axisPrompt:" for
  7.1922 -     X-axis, "BasePrompt Y-axisPrompt:" for Y-axis, and return it in the
  7.1923 -     form of "(X,Y)".  The default prompts are `Dimension', `X', `Y'
  7.1924 -     respectively.
  7.1925 -
  7.1926 -`[F]'
  7.1927 -     YaTeX:check-completion-type
  7.1928 -`[A]'
  7.1929 -     One of the symbols: 'begin, 'section, or 'maketitle
  7.1930 -`[D]'
  7.1931 -       Check the current completion type is specified one and cause error
  7.1932 -     if not. The variable `YaTeX-current-completion-type' holds the symbol
  7.1933 -     according to the current completion type.
  7.1934 -
  7.1935 -
  7.1936 -
  7.1937 -File: yatexe, Node: Contribution, Prev: Useful functions for creating add-in, Up: Add-in functions
  7.1938 -
  7.1939 -Contribution
  7.1940 -------------
  7.1941 -
  7.1942 -  If you make your own pretty function and you let it be in public, please
  7.1943 -send me the function.  I'm going to include it in the next release.
  7.1944 -
  7.1945 -
  7.1946 -
  7.1947 -File: yatexe, Node: Add-in generator, Prev: Add-in functions, Up: Customizations
  7.1948 -
  7.1949 -Add-in generator
  7.1950 -================
  7.1951 -
  7.1952 -  First, don't forget to read the section of add-in functions *Note Add-in
  7.1953 -functions::.  If you easily understand how to define them, there's no need
  7.1954 -to read this section.  But being not familiar with Emacs-Lisp, when you
  7.1955 -don't have clear idea what to do, this section describes how to get YaTeX
  7.1956 -make add-in function.
  7.1957 -
  7.1958 -  There are two methods of generation.  One is for fully interactive
  7.1959 -generator for beginners and another requires little knowledge of
  7.1960 -Emacs-Lisp.
  7.1961 -
  7.1962 -
  7.1963 -Generator for beginners
  7.1964 ------------------------
  7.1965 -  The former generator is called by
  7.1966 -                           `M-x YaTeX-generate'
  7.1967 -
  7.1968 -strokes.  All you have to do is follow the guidances.  Defying them may
  7.1969 -cases the disaster (I wonder what is it???).  So when you make some
  7.1970 -mistake, it is recommendable to type `C-g' and start afresh.
  7.1971 -
  7.1972 -
  7.1973 -Simple generator
  7.1974 -----------------
  7.1975 -
  7.1976 -  The latter generator is invoked by the next sequence.  `M-x
  7.1977 -YaTeX-generate-simple' This generator can make both "option add-in" and
  7.1978 -"argument add-in" (*refer the section add-in functions* *Note How the
  7.1979 -add-in function works::), whereas `YaTeX-generate' cannot make "argument
  7.1980 -addin".
  7.1981 -
  7.1982 -  For example, assume you have the LaTeX command as follows.
  7.1983 -
  7.1984 -     	\epsinput[t](250,50){hoge.eps}{plain}{Picture of foo}
  7.1985 -     	         (A)  (B)     (1)      (2)      (3)
  7.1986 -     	(A)Optional parameter to specify the position
  7.1987 -     	   One of t(top), b(bottom), l(left), r(right)
  7.1988 -     	(B)Maximum size of frame
  7.1989 -     	(1)1st argument is filename of EPS file
  7.1990 -     	(2)2nd argument indicates
  7.1991 -     		plain		do nothing
  7.1992 -     		frame		make frame around image
  7.1993 -     		dframe		make double-frame around image
  7.1994 -     	   for included EPS file.
  7.1995 -     	(3)Caption for the picture
  7.1996 -
  7.1997 -  Now get start with generation.  Typing `M-x YaTeX-generate-simple'
  7.1998 -brings the prompt:
  7.1999 -                     (O)ption? (A)rgument?
  7.2000 -
  7.2001 -
  7.2002 -Generating "option add-in"
  7.2003 -..........................
  7.2004 -
  7.2005 -  Since (A), (B) above are optional argument, all we have to do to
  7.2006 -complete them is define the option add-in for them.  Let's generate the
  7.2007 -function to complete (A).
  7.2008 -
  7.2009 -                     M-x YaTeX-generate-simple RET
  7.2010 -                     epsinput RET
  7.2011 -                     o
  7.2012 -
  7.2013 -Typing as above leads the next prompt.
  7.2014 -
  7.2015 -     Read type(1): (S)tring (C)omplete (F)ile ([)option (P)osition co(O)rd. (q)uit
  7.2016 -
  7.2017 -  This asks that "Which type is the completion style of 1st argument?".
  7.2018 -Here are the possible completion style.
  7.2019 -
  7.2020 -`String'
  7.2021 -     read plain string
  7.2022 -`Complete'
  7.2023 -     read with completion
  7.2024 -`File'
  7.2025 -     read file name
  7.2026 -`Option'
  7.2027 -     read optional string (if string omitted, omit [] too)
  7.2028 -`Position'
  7.2029 -     read positional option (like [htbp])
  7.2030 -`Coord.'
  7.2031 -     read coordinates
  7.2032 -`Quit'
  7.2033 -     quit from generating
  7.2034 -
  7.2035 -  Since (A) is the optional argument to specify the location of included
  7.2036 -EPS file, the completion style is `Position', and the possible characters
  7.2037 -are t, b, l, and r.  To tell these information to generator, operate as
  7.2038 -follows.
  7.2039 -
  7.2040 -                     Read type(1).... 		p
  7.2041 -                     Acceptable characters:		tblr RET
  7.2042 -
  7.2043 -  (B) is coordinate.  So its completion style is coOrd.  We want a prompt
  7.2044 -meaning "Maximum size" when completion.
  7.2045 -
  7.2046 -                     Read type(2)....		o
  7.2047 -                     Prompt for coordinates:		Max size RET
  7.2048 -
  7.2049 -  That's all for optional argument.  Select quit.
  7.2050 -
  7.2051 -                     Read type(3)....		q
  7.2052 -
  7.2053 -  Then the generated option add-in function for \epsinput will be shown in
  7.2054 -the next window.
  7.2055 -
  7.2056 -
  7.2057 -Generating "argument add-in"
  7.2058 -............................
  7.2059 -
  7.2060 -  Next, create the argument add-in.  The arguments for \epsinput are EPS
  7.2061 -file name, framing style, and caption string in sequence.
  7.2062 -
  7.2063 -                     M-x YaTeX-generate-simple RET
  7.2064 -                     epsinput RET
  7.2065 -                     a
  7.2066 -
  7.2067 -  Above key strokes bring the prompt that asks the number of argument.
  7.2068 -Answer it with 3.
  7.2069 -
  7.2070 -                     How many arguments?: 3 RET
  7.2071 -
  7.2072 -  Then the generator asks the completion style and prompt for completion.
  7.2073 -Answer them.  `f' for FileName and prompt string.
  7.2074 -
  7.2075 -                     Read type(1)....		f
  7.2076 -                     Prompt for argument#1		EPS file name RET
  7.2077 -
  7.2078 -  The second argument is one of selected symbol.  So the completion type
  7.2079 -is `Completion'.
  7.2080 -
  7.2081 -                     Read type(2)....		c
  7.2082 -                     Prompt for argument#2		Include style RET
  7.2083 -
  7.2084 -  Then all the candidates ready to be read.  Type single RET after
  7.2085 -entering all.
  7.2086 -
  7.2087 -     		Item[1](RET to exit):		plain RET
  7.2088 -     		Item[2](RET to exit):		frame RET
  7.2089 -     		Item[3](RET to exit):		dframe RET
  7.2090 -     		Item[4](RET to exit):		RET
  7.2091 -
  7.2092 -  The following prompt asks whether the entered string must belong to
  7.2093 -candidates or not.  In this case, since the argument must be one of
  7.2094 -`plain', `frame', and `dframe', type `y'.
  7.2095 -
  7.2096 -                     Require match? (y or n)		y
  7.2097 -
  7.2098 -  The last argument is the caption string for which any completion is
  7.2099 -needed.
  7.2100 -
  7.2101 -                     Read type(3)....		s
  7.2102 -                     Prompt for argument#3		Caption RET
  7.2103 -                     default:			Figure of RET
  7.2104 -
  7.2105 -  Finally we'll get the argument add-in in the next window.
  7.2106 -
  7.2107 -
  7.2108 -Contribution
  7.2109 -------------
  7.2110 -
  7.2111 -  If you get your own pretty function and you let it be in public, please
  7.2112 -steel yourself in the happy atmosphere and do not send me the function.  I
  7.2113 -do know it is not fine because it is generated by yatexgen:-p.
  7.2114 -
  7.2115 -
  7.2116 -
  7.2117 -File: yatexe, Node: Etcetera, Next: Copying, Prev: Customizations, Up: Top
  7.2118 -
  7.2119 -Etcetera
  7.2120 -********
  7.2121 -
  7.2122 -  The standard completion tables provided in `yatex.el' contain a few
  7.2123 -LaTeX commands I frequently use.  This is to lessen the key strokes to
  7.2124 -complete entire word, because too many candidates rarely used often cause
  7.2125 -too many hits.  Therefore always try to use completion in order to enrich
  7.2126 -your dictionary, and you will also find `Wild Bird' growing suitable for
  7.2127 -your LaTeX style.
  7.2128 -
  7.2129 -  The package name `Wild Bird' is the English translation of Japanese
  7.2130 -title `Yachou', which is a trick on words of Japanese.
  7.2131 -
  7.2132 -
  7.2133 -
  7.2134 -File: yatexe, Node: Copying, Prev: Etcetera, Up: Top
  7.2135 -
  7.2136 -Copying
  7.2137 -*******
  7.2138 -
  7.2139 -  This program is distributed as a free software.  You can
  7.2140 -use/copy/modify/redistribute this software freely but with NO warranty to
  7.2141 -anything as a result of using this software.  Adopting code from this
  7.2142 -program is also free.  But I would not do contract act.
  7.2143 -
  7.2144 -Any reports and suggestions are welcome as long as I feel interests in
  7.2145 -this software.  My possible e-mail address is `yuuji@yatex.org'.  (as of
  7.2146 -Jan.2004) And there is mailing list for YaTeX.  Although the common
  7.2147 -language is Japanese, questions in English will be welcome.  To join the
  7.2148 -ML, send the mail whose subject is `append' to the address
  7.2149 -`yatex@yatex.org.  If you have some question, please ask to
  7.2150 -`yatex-admin@yatex.org'.
  7.2151 -
  7.2152 -  The specification of this software will be surely modified (depending on
  7.2153 -my feelings) without notice :-p.
  7.2154 -
  7.2155 -
  7.2156 -                                                              HIROSE Yuuji
  7.2157 -
  7.2158 -
  7.2159 -Tag table:
  7.2160 -Node: Top146
  7.2161 -Node: What is YaTeX?1487
  7.2162 -Node: Main features1860
  7.2163 -Node: Installation3452
  7.2164 -Node: Typesetting4229
  7.2165 -Node: Calling typesetter5298
  7.2166 -Node: Calling previewer7502
  7.2167 -Node: Printing out7863
  7.2168 -Node: %#notation8155
  7.2169 -Node: Changing typesetter8531
  7.2170 -Node: Splitting input files8895
  7.2171 -Node: Static region for typesetting10319
  7.2172 -Node: Lpr format11448
  7.2173 -Node: Editing %# notation12505
  7.2174 -Node: Completion13024
  7.2175 -Node: Begin-type completion13584
  7.2176 -Node: Section-type completion16627
  7.2177 -Node: view-sectioning19062
  7.2178 -Node: Large-type completion20642
  7.2179 -Node: Maketitle-type completion21373
  7.2180 -Node: Arbitrary completion21925
  7.2181 -Node: End completion22315
  7.2182 -Node: Accent completion22785
  7.2183 -Node: Image completion23402
  7.2184 -Node: Greek letters completion25659
  7.2185 -Node: Local dictionaries26386
  7.2186 -Node: Commenting out27323
  7.2187 -Node: Cursor jump28782
  7.2188 -Node: Jump to corresponding object29094
  7.2189 -Node: Invoking image processor30495
  7.2190 -Node: Jump to main file31838
  7.2191 -Node: Jumping around the environment32203
  7.2192 -Node: Jumping to last completion position32621
  7.2193 -Node: Changing and Deleting33130
  7.2194 -Node: Changing LaTeX commands33522
  7.2195 -Node: Killing LaTeX commands34699
  7.2196 -Node: Filling35884
  7.2197 -Node: Updation of includeonly37735
  7.2198 -Node: What column38532
  7.2199 -Node: Intelligent newline39617
  7.2200 -Node: Usepackage checker41271
  7.2201 -Node: Online help41862
  7.2202 -Node: Browsing file hierarchy43537
  7.2203 -Node: Cooperation with other packages45274
  7.2204 -Node: Customizations45979
  7.2205 -Node: Lisp variables46313
  7.2206 -Node: All customizable variables47317
  7.2207 -Node: Sample definitions57116
  7.2208 -Node: Hook variables57629
  7.2209 -Node: Hook file58333
  7.2210 -Node: Add-in functions58672
  7.2211 -Node: How the add-in function works59532
  7.2212 -Node: Defining option-add-in61731
  7.2213 -Node: Defining argument-add-in62453
  7.2214 -Node: Defining enclosing-add-in63335
  7.2215 -Node: How the function is called64189
  7.2216 -Node: Useful functions for creating add-in64865
  7.2217 -Node: Contribution66270
  7.2218 -Node: Add-in generator66544
  7.2219 -Node: Etcetera71916
  7.2220 -Node: Copying72521
  7.2221 -
  7.2222 -End tag table
  7.2223 +Info file: yatexe,    -*-Text-*-
  7.2224 +produced by `texinfo-format-buffer'
  7.2225 +from file `yatexe.tex'
  7.2226 +using `texinfmt.el' version 2.38 of 3 July 1998.
  7.2227 +
  7.2228 +START-INFO-DIR-ENTRY
  7.2229 +* YaTeX-e: (yatexe).    Yet Another tex-mode for Emacs (English).
  7.2230 +END-INFO-DIR-ENTRY
  7.2231 +
  7.2232 +
  7.2233 +
  7.2234 +
  7.2235 +
  7.2236 +
  7.2237 +File: yatexe, Node: Top, Next: What is YaTeX?, Prev: (dir), Up: (dir)
  7.2238 +
  7.2239 +* Menu:
  7.2240 +
  7.2241 +* What is YaTeX?::              
  7.2242 +* Main features::               What YaTeX can do
  7.2243 +* Installation::                Guide to install
  7.2244 +* Typesetting::                 Call typesetting processes
  7.2245 +* %#notation::                  Meta-keyword `%#'
  7.2246 +* Completion::                  Input LaTeX commands with completion
  7.2247 +* Local dictionaries::          Directory dependent completion
  7.2248 +* Commenting out::              Commenting/uncommenting text
  7.2249 +* Cursor jump::                 Jumping to related position
  7.2250 +* Changing and Deleting::       Changing/deleting certain unit of text
  7.2251 +* Filling::                     Filling an item or paragraph
  7.2252 +* Updation of includeonly::     Free from maintaining includeonly
  7.2253 +* What column::                 Check what table-column the cursor belong
  7.2254 +* Intelligent newline::         Guess requisites of new line
  7.2255 +* Usepackage checker::          Selecting correct \usepackage is YaTeX's job
  7.2256 +* Online help::                 On-line documentation of LaTeX
  7.2257 +* Browsing file hierarchy::     Walking through file hierarchy
  7.2258 +* Cooperation with other packages::  Work well with gmhist, min-out
  7.2259 +* Customizations::              How to breed `Wild Bird'
  7.2260 +* Etcetera::                    YaTeX is acquisitive.
  7.2261 +* Copying::                     Redistribution
  7.2262 +
  7.2263 +
  7.2264 +
  7.2265 +
  7.2266 +File: yatexe, Node: What is YaTeX?, Next: Main features, Prev: Top, Up: Top
  7.2267 +
  7.2268 +What is YaTeX?
  7.2269 +**************
  7.2270 +
  7.2271 +  YaTeX automates typesetting and previewing of LaTeX and enables
  7.2272 +completing input of LaTeX mark-up command such as `\begin{}'..`\end{}'.
  7.2273 +
  7.2274 +  YaTeX also supports Demacs which runs on MS-DOS(386), Mule (Multi
  7.2275 +Language Enhancement to GNU Emacs), and latex on DOS.
  7.2276 +
  7.2277 +
  7.2278 +
  7.2279 +File: yatexe, Node: Main features, Next: Installation, Prev: What is YaTeX?, Up: Top
  7.2280 +
  7.2281 +Main features
  7.2282 +*************
  7.2283 +
  7.2284 +   * Invocation of typesetter,  previewer and related programs(`C-c t')
  7.2285 +   * Typesetting on static region which is independent from point
  7.2286 +   * Semiautomatic replacing of `\includeonly'
  7.2287 +   * Jumping to error line(`C-c '')
  7.2288 +   * Completing-read of LaTeX commands such as `\begin{}', `\section' etc.
  7.2289 +     (`C-c b', `C-c s', `C-c l', `C-c m')
  7.2290 +   * Enclosing text into LaTeX environments or commands (`C-u'
  7.2291 +     ABOVEKEYSTROKES)
  7.2292 +   * Displaying the structure of text at entering sectioning commands
  7.2293 +   * Lump shifting of sectioning commands (*Note view-sectioning::)
  7.2294 +   * Learning unknown/new LaTeX commands for the next completion
  7.2295 +   * Argument reading with a guide for complicated LaTeX commands
  7.2296 +   * Generating argument-readers for new/unsupported commands(`yatexgen')
  7.2297 +   * Quick changing or deleting of LaTeX commands(`C-c c', `C-c k')
  7.2298 +   * Jumping from and to inter-file, begin<->end, ref<->label(`C-c g')
  7.2299 +   * Blanket commenting out or uncommenting (`C-c >', `C-c <', `C-c ,',
  7.2300 +     `C-c .')
  7.2301 +   * Easy input of accent mark, math-mode's commands and Greek letters
  7.2302 +     (`C-c a', `;', `:')
  7.2303 +   * Online help for the popular LaTeX commands (`C-c ?', `C-c /')
  7.2304 +   * Document files hierarchy browser (`C-c d')
  7.2305 +   * Adding automatically \usepackage corresponding to inputting LaTeX
  7.2306 +     macro with completion
  7.2307 +   * Allow you to forget creating \label{}s, \ref{} or \cite{} completion
  7.2308 +     automatically generate labels.
  7.2309 +
  7.2310 +
  7.2311 +
  7.2312 +File: yatexe, Node: Installation, Next: Typesetting, Prev: Main features, Up: Top
  7.2313 +
  7.2314 +Installation
  7.2315 +************
  7.2316 +
  7.2317 +  Put next two expressions into your `~/.emacs'.
  7.2318 +
  7.2319 +             (setq auto-mode-alist
  7.2320 +                   (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
  7.2321 +             (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
  7.2322 +
  7.2323 +Next, add certain path name where you put files of YaTeX to your
  7.2324 +load-path.  If you want to put them in `~/src/emacs', write
  7.2325 +
  7.2326 +            (setq load-path
  7.2327 +                  (cons (expand-file-name "~/src/emacs") load-path))
  7.2328 +
  7.2329 +in your `~/.emacs'
  7.2330 +
  7.2331 +  Then, yatex-mode will be automatically loaded when you visit a file
  7.2332 +which has extension `.tex'.  If yatex-mode is successfully loaded, mode
  7.2333 +string on mode line will be turned to "YaTeX".
  7.2334 +
  7.2335 +
  7.2336 +
  7.2337 +
  7.2338 +File: yatexe, Node: Typesetting, Next: %#notation, Prev: Installation, Up: Top
  7.2339 +
  7.2340 +Typesetting
  7.2341 +***********
  7.2342 +
  7.2343 +  The prefix key stroke of yatex-mode is `C-c' (Press 'C' with Control
  7.2344 +key) by default.  If you don't intend to change the prefix key stroke,
  7.2345 +assume all `[prefix]' as `C-c' in this document.  These key strokes
  7.2346 +execute typeset or preview command.
  7.2347 +
  7.2348 +`[prefix] t j'
  7.2349 +             ... invoke latex
  7.2350 +`[prefix] t r'
  7.2351 +             ... invoke latex on region
  7.2352 +`[prefix] t e'
  7.2353 +             ... invoke latex on current environment or whole portion of
  7.2354 +     current formulas in math-mode.
  7.2355 +`[prefix] t d'
  7.2356 +     	... invoke dvipdfmx after successful typesetting
  7.2357 +`[prefix] t k'
  7.2358 +             ... kill current typesetting process
  7.2359 +`[prefix] t b'
  7.2360 +             ... invoke bibtex
  7.2361 +`[prefix] t i'
  7.2362 +             ... invoke makeindex
  7.2363 +`[prefix] t d'
  7.2364 +             ... invoke latex && dvipdfmx
  7.2365 +`[prefix] t p'
  7.2366 +             ... preview
  7.2367 +`[prefix] t l'
  7.2368 +             ... lpr dvi-file
  7.2369 +`[prefix] t s'
  7.2370 +             ... search current string on xdvi-remote
  7.2371 +
  7.2372 +* Menu:
  7.2373 +
  7.2374 +* Calling typesetter::          
  7.2375 +* Calling previewer::           
  7.2376 +* Printing out::                
  7.2377 +
  7.2378 +
  7.2379 +
  7.2380 +File: yatexe, Node: Calling typesetter, Next: Calling previewer, Prev: Typesetting, Up: Typesetting
  7.2381 +
  7.2382 +Calling typesetter
  7.2383 +==================
  7.2384 +
  7.2385 +  Typing `[prefix] t j', the current editing window will be divided
  7.2386 +horizontally when you invoke latex command, and log message of LaTeX
  7.2387 +typesetting will be displayed in the other window; called typesetting
  7.2388 +buffer.  The typesetting buffer automatically scrolls up and traces LaTeX
  7.2389 +warnings and error messages.  If you see latex stopping by an error, you
  7.2390 +can send string to latex in the typesetting buffer.
  7.2391 +
  7.2392 +  If an error stops the LaTeX typesetting, this key stroke will move the
  7.2393 +cursor to the line where LaTeX error is detected.
  7.2394 +
  7.2395 +`[prefix] ''
  7.2396 +`([prefix]+single quotation)'
  7.2397 +
  7.2398 +             ... jump to the previous error or warning
  7.2399 +
  7.2400 +  If you find a noticeable error, move to the typesetting buffer and move
  7.2401 +the cursor on the line of error message and type `SPACE' key.  This makes
  7.2402 +the cursor move to corresponding source line.
  7.2403 +
  7.2404 +  YaTeX-typeset-region invoked by `[prefix] tr' call typesetter for
  7.2405 +region.  The region is specified by standard point and mark, or by
  7.2406 +`%#BEGIN' and `%#END' marks.  Selected region will be copied to the
  7.2407 +temporary file `texput.tex' with the same preamble as the main file of
  7.2408 +current editing sources.  Be sure to put all local macro settings in
  7.2409 +preamble, not after `\begin{document}'.  The method of specification of
  7.2410 +the region is shown in the section *Note %#notation::.
  7.2411 +
  7.2412 +  The documentclass for typeset-region is the same as that of editing file
  7.2413 +if you edit one file, and is the same as main file's if you edit splitting
  7.2414 +files.
  7.2415 +
  7.2416 +  The `[prefix] te' key automatically marks current inner environment or
  7.2417 +inner math mode and then call typeset-region with marked region.  This is
  7.2418 +convenient to quick view of current tabular environment or current editing
  7.2419 +formulas.  Keeping previewer window for `texput.dvi' is handy for
  7.2420 +debugging.  Since `[prefix] te' selects the inner-most environment as
  7.2421 +region, it is not suitable for partial typesetting of doubly or more
  7.2422 +composed environment.  If you want to do partial typesetting for a nested
  7.2423 +environment, use `[prefix] tr' for static-region, which is described in
  7.2424 +the section *Note %#notation::.
  7.2425 +
  7.2426 +
  7.2427 +
  7.2428 +File: yatexe, Node: Calling previewer, Next: Printing out, Prev: Calling typesetter, Up: Typesetting
  7.2429 +
  7.2430 +Calling previewer
  7.2431 +=================
  7.2432 +
  7.2433 +  `[prefix] t p' invokes the TeX previewer.  And if you are using
  7.2434 +xdvi-remote, which can be controled from other terminals, `[prefix] t s'
  7.2435 +enables you to search current string at the cursor on the running xdvi
  7.2436 +window.
  7.2437 +
  7.2438 +
  7.2439 +
  7.2440 +File: yatexe, Node: Printing out, Prev: Calling previewer, Up: Typesetting
  7.2441 +
  7.2442 +Printing out
  7.2443 +============
  7.2444 +
  7.2445 +  When you type `[preifx] t l', YaTeX asks you the range of dvi-printing
  7.2446 +by default.  You can skip this by invoking it with universal-argument as
  7.2447 +follows:
  7.2448 +
  7.2449 +             C-u [prefix] tl
  7.2450 +
  7.2451 +
  7.2452 +
  7.2453 +File: yatexe, Node: %#notation, Next: Completion, Prev: Typesetting, Up: Top
  7.2454 +
  7.2455 +%# notation
  7.2456 +***********
  7.2457 +
  7.2458 +  You can control the typesetting process by describing `%#' notations in
  7.2459 +the source text.
  7.2460 +
  7.2461 +* Menu:
  7.2462 +
  7.2463 +* Changing typesetter::         
  7.2464 +* Splitting input files::       
  7.2465 +* Static region for typesetting::  
  7.2466 +* Lpr format::                  
  7.2467 +* Controlling which command to invoke::  
  7.2468 +* Editing %# notation::         
  7.2469 +
  7.2470 +
  7.2471 +
  7.2472 +File: yatexe, Node: Changing typesetter, Next: Splitting input files, Prev: %#notation, Up: %#notation
  7.2473 +
  7.2474 +To change the `latex' command or to split a source text.
  7.2475 +========================================================
  7.2476 +
  7.2477 +  To change the typesetting command, write
  7.2478 +
  7.2479 +             %#!latex-big
  7.2480 +
  7.2481 +anywhere in the source text.  This is useful for changing typesetter.
  7.2482 +
  7.2483 +
  7.2484 +
  7.2485 +File: yatexe, Node: Splitting input files, Next: Static region for typesetting, Prev: Changing typesetter, Up: %#notation
  7.2486 +
  7.2487 +Splitting input files
  7.2488 +=====================
  7.2489 +
  7.2490 +  And if you split the source text and edit subfile that should be
  7.2491 +included from main text.
  7.2492 +
  7.2493 +             %#!latex main.tex
  7.2494 +
  7.2495 +will be helpful to execute latex on main file from sub text buffer.  Since
  7.2496 +this command line after `%#!' will be sent to shell literally, next
  7.2497 +description makes it convenient to use ghostview as dvi-previewer.
  7.2498 +
  7.2499 +             %#!latex main && dvi2ps main.dvi > main
  7.2500 +
  7.2501 +Note that YaTeX assumes the component before the last period of the last
  7.2502 +word in this line as base name of the main LaTeX source.  The `%f'
  7.2503 +notation in this line is replaced by main file name, and `%r' replaced by
  7.2504 +root name of main file name.  If you specify `%f' or `%r', YaTeX always
  7.2505 +ask you the name of main file at the first typesetting.
  7.2506 +
  7.2507 +  To make best use of the feature of inter-file jumping by `[prefix] g'
  7.2508 +(see *Note Cursor jump::), take described below into consideration.
  7.2509 +
  7.2510 +   * You can put split texts in sub directory, but not in sub directory of
  7.2511 +     sub directory.
  7.2512 +   * In the main text, specify the child file name with relative path name
  7.2513 +     such as \include{chap1/sub}, when you include the file in a
  7.2514 +     sub-directory.
  7.2515 +   * In a sub-text, write `%#!latex main.tex' even if `main.tex' is in the
  7.2516 +     parent directory(not %#!latex ../main.tex).
  7.2517 +
  7.2518 +
  7.2519 +
  7.2520 +File: yatexe, Node: Static region for typesetting, Next: Lpr format, Prev: Splitting input files, Up: %#notation
  7.2521 +
  7.2522 +Static region
  7.2523 +=============
  7.2524 +
  7.2525 +  Typeset-region by `[prefix] tr' passes the region between point and mark
  7.2526 +to typesetting command by default.  But when you want to typeset static
  7.2527 +region, enclose the region by `%#BEGIN' and `%#END' as follows.
  7.2528 +
  7.2529 +             %#BEGIN
  7.2530 +               TheRegionYouWantToTypesetManyTimes
  7.2531 +             %#END
  7.2532 +
  7.2533 +This is the rule of deciding the region.
  7.2534 +
  7.2535 +  1. If there exists %#BEGIN before point,
  7.2536 +
  7.2537 +       1. If there exists %#END after %#BEGIN,
  7.2538 +             * From %#BEGIN to %#END.
  7.2539 +
  7.2540 +       2. If %#END does not exist after %#BEGIN,
  7.2541 +             * From %#BEGIN to the end of buffer.
  7.2542 +
  7.2543 +  2. If there does not exist %#BEGIN before point,
  7.2544 +        * Between point and mark(standard method of Emacs).
  7.2545 +
  7.2546 +  It is useful to write `%#BEGIN' in the previous line of \begin and
  7.2547 +`%#END' in the next line of \`end' when you try complex environment such
  7.2548 +as `tabular' many times.  It is also useful to put only `%#BEGIN' alone at
  7.2549 +the middle of very long text.  Do not forget to erase `%#BEGIN' `%#END'
  7.2550 +pair.
  7.2551 +
  7.2552 +
  7.2553 +
  7.2554 +File: yatexe, Node: Lpr format, Next: Controlling which command to invoke, Prev: Static region for typesetting, Up: %#notation
  7.2555 +
  7.2556 +Lpr format
  7.2557 +==========
  7.2558 +
  7.2559 +  Lpr format is specified by three Lisp variables.  Here are the default
  7.2560 +values of them.
  7.2561 +
  7.2562 +`(1)dviprint-command-format'
  7.2563 +             `"dvi2ps %f %t %s | lpr"'
  7.2564 +`(2)dviprint-from-format'
  7.2565 +             `"-f %b"'
  7.2566 +`(3)dviprint-to-format'
  7.2567 +             `"-t %e"'
  7.2568 +
  7.2569 +  On YaTeX-lpr, `%s' in (1) is replaced by the file name of main text,
  7.2570 +`%f' by contents of (2), %t by contents of (3).  At these replacements,
  7.2571 +`%b' in (2) is also replaced by the number of beginning page, `%e' in (3)
  7.2572 +is replaced by the number of ending page.  But `%f' and `%t' are ignored
  7.2573 +when you omit the range of print-out by `C-u [prefix] tl'.
  7.2574 +
  7.2575 +  If you want to change this lpr format temporarily, put a command such as
  7.2576 +follows somewhere in the text:
  7.2577 +
  7.2578 +             %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2
  7.2579 +
  7.2580 +  And if you want YaTeX not to ask you the range of printing out, the next
  7.2581 +example may be helpful.
  7.2582 +
  7.2583 +             %#LPR dvi2ps %s | lpr
  7.2584 +
  7.2585 +
  7.2586 +
  7.2587 +File: yatexe, Node: Controlling which command to invoke, Next: Editing %# notation, Prev: Lpr format, Up: %#notation
  7.2588 +
  7.2589 +Controlling which command to invoke
  7.2590 +===================================
  7.2591 +
  7.2592 +These %# notation below can control which command to invoke for LaTeX
  7.2593 +related process.
  7.2594 +
  7.2595 +      `%#BIBTEX'
  7.2596 +     
  7.2597 +     	... Command line for makeindex ([prefix] t i)
  7.2598 +      `%#MAKEINDEX'
  7.2599 +     
  7.2600 +     	... Command line for bibtex ([prefix] t b)
  7.2601 +
  7.2602 +If you want to invoke "makeidx hogehoge" to update index, put the next
  7.2603 +line some upper place in the source, for example.
  7.2604 +
  7.2605 +     %#MAKEINDEX makeidx hogehoge
  7.2606 +
  7.2607 +
  7.2608 +
  7.2609 +
  7.2610 +File: yatexe, Node: Editing %# notation, Prev: Controlling which command to invoke, Up: %#notation
  7.2611 +
  7.2612 +Editing %# notation
  7.2613 +===================
  7.2614 +
  7.2615 +  To edit `%#' notation described above, type
  7.2616 +
  7.2617 +`[prefix] %'
  7.2618 +             ... editing %# notation menu
  7.2619 +
  7.2620 +and select one of the entry of the menu as follows.
  7.2621 +
  7.2622 +             !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR
  7.2623 +
  7.2624 +Type `!' to edit `%#!' entry, `b' to enclose the region with `%#BEGIN' and
  7.2625 +`%#END', and `l' to edit `%#LPR' entry.  When you type `b', all `%#BEGIN'
  7.2626 +and `%#END' are automatically erased.
  7.2627 +
  7.2628 +
  7.2629 +
  7.2630 +File: yatexe, Node: Completion, Next: Local dictionaries, Prev: %#notation, Up: Top
  7.2631 +
  7.2632 +Completion
  7.2633 +**********
  7.2634 +
  7.2635 +  YaTeX makes it easy to input the LaTeX commands.  There are several
  7.2636 +kinds of completion type, begin-type, section-type, large-type, etc...
  7.2637 +
  7.2638 +* Menu:
  7.2639 +
  7.2640 +* Begin-type completion::       
  7.2641 +* Section-type completion::     
  7.2642 +* Large-type completion::       
  7.2643 +* Maketitle-type completion::   
  7.2644 +* Arbitrary completion::        
  7.2645 +* End completion::              
  7.2646 +* Accent completion::           
  7.2647 +* Image completion::            
  7.2648 +* Greek letters completion::    
  7.2649 +
  7.2650 +
  7.2651 +
  7.2652 +File: yatexe, Node: Begin-type completion, Next: Section-type completion, Prev: Completion, Up: Completion
  7.2653 +
  7.2654 +Begin-type completion
  7.2655 +=====================
  7.2656 +
  7.2657 +  "Begin-type completion" completes commands of `\begin{env}' ...
  7.2658 +`\end{env}'.  All of the begin-type completions begin with this key
  7.2659 +sequence.
  7.2660 +
  7.2661 +`[prefix] b'
  7.2662 +             ... start begin-type completion
  7.2663 +
  7.2664 +An additional key stroke immediately completes a frequently used LaTeX
  7.2665 +`\begin{}'...`\`end'{}' environment.
  7.2666 +
  7.2667 +`[prefix] b c'
  7.2668 +             ...  `\begin{center}...\end{center}'
  7.2669 +`[prefix] b d'
  7.2670 +             ...  `\begin{document}...\end{document}'
  7.2671 +`[prefix] b D'
  7.2672 +             ...  `\begin{description}...\end{description}'
  7.2673 +`[prefix] b e'
  7.2674 +             ...  `\begin{enumerate}...\end{enumerate}'
  7.2675 +`[prefix] b E'
  7.2676 +             ...  `\begin{equation}...\end{equation}'
  7.2677 +`[prefix] b i'
  7.2678 +             ...  `\begin{itemize}...\end{itemize}'
  7.2679 +`[prefix] b l'
  7.2680 +             ...  `\begin{flushleft}...\end{flushleft}'
  7.2681 +`[prefix] b m'
  7.2682 +             ...  `\begin{minipage}...\end{minipage}'
  7.2683 +`[prefix] b t'
  7.2684 +             ...  `\begin{tabbing}...\end{tabbing}'
  7.2685 +`[prefix] b T'
  7.2686 +             ...  `\begin{tabular}...\end{tabular}'
  7.2687 +`[prefix] b^T'
  7.2688 +             ...  `\begin{table}...\end{table}'
  7.2689 +`[prefix] b p'
  7.2690 +             ...  `\begin{picture}...\end{picture}'
  7.2691 +`[prefix] b q'
  7.2692 +             ...  `\begin{quote}...\end{quote}'
  7.2693 +`[prefix] b Q'
  7.2694 +             ...  `\begin{quotation}...\end{quotation}'
  7.2695 +`[prefix] b r'
  7.2696 +             ...  `\begin{flushright}...\end{flushright}'
  7.2697 +`[prefix] b v'
  7.2698 +             ...  `\begin{verbatim}...\end{verbatim}'
  7.2699 +`[prefix] b V'
  7.2700 +             ...  `\begin{verse}...\end{verse}'
  7.2701 +
  7.2702 +  Any other LaTeX environments are made by completing-read of the Emacs
  7.2703 +function.
  7.2704 +
  7.2705 +`[prefix] b SPACE'
  7.2706 +             ... begin-type completion
  7.2707 +
  7.2708 +The next message will show up in the minibuffer
  7.2709 +
  7.2710 +             Begin environment(default document): 
  7.2711 +
  7.2712 +by typing `[prefix] b'.  Put the wishing environment with completion in
  7.2713 +the minibuffer, and `\begin{env}'...\`\end{env}' will be inserted in the
  7.2714 +LaTeX source text.  If the environment you want to put does not exist in
  7.2715 +the YaTeX completion table, it will be registered in the user completion
  7.2716 +table.  YaTeX automatically saves the user completion table in the user
  7.2717 +dictionary file at exiting of emacs.
  7.2718 +
  7.2719 +At the completion of certain environments, the expected initial entry will
  7.2720 +automatically inserted such as `\item' for `itemize' environment.  If you
  7.2721 +don't want the entry, it can be removed by undoing.
  7.2722 +
  7.2723 +  If you want to enclose some paragraphs which have already been written,
  7.2724 +invoke the begin-type completion with changing the case of `b' of key
  7.2725 +sequence upper(or invoke it with universal argument by `C-u' prefix).
  7.2726 +
  7.2727 +  The following example encloses a region with `description' environment.
  7.2728 +
  7.2729 +`[prefix] B D'
  7.2730 +`(or ESC 1 [prefix] b D)'
  7.2731 +`(or  C-u  [prefix] b D)'
  7.2732 +
  7.2733 +             ... begin-type completion for region
  7.2734 +
  7.2735 +  This enclosing holds good for the completing input by `[prefix] b SPC'.
  7.2736 +`[prefix] B SPC' enclose a region with the environment selected by
  7.2737 +completing-read.
  7.2738 +
  7.2739 +
  7.2740 +
  7.2741 +File: yatexe, Node: Section-type completion, Next: Large-type completion, Prev: Begin-type completion, Up: Completion
  7.2742 +
  7.2743 +Section-type completion
  7.2744 +=======================
  7.2745 +
  7.2746 +  "Section-type completion" completes section-type commands which take an
  7.2747 +argument or more such as `\section{foo}'.  To invoke section-type
  7.2748 +completion, type
  7.2749 +
  7.2750 +`[prefix] s'
  7.2751 +             ... section-type completion
  7.2752 +
  7.2753 +then the prompt
  7.2754 +
  7.2755 +             (C-v for view) \???{} (default documentclass):
  7.2756 +
  7.2757 +will show up in the minibuffer.  Section-type LaTeX commands are completed
  7.2758 +by space key, and the default value is selected when you type nothing in
  7.2759 +the minibuffer.
  7.2760 +
  7.2761 +  Next,
  7.2762 +
  7.2763 +             \section{???}:
  7.2764 +
  7.2765 +prompts you the argument of section-type LaTeX command.  For example, the
  7.2766 +following inputs
  7.2767 +
  7.2768 +             \???{} (default documentclass): section
  7.2769 +             \section{???}: Hello world.
  7.2770 +
  7.2771 +will insert the string
  7.2772 +
  7.2773 +             \section{Hello world.}
  7.2774 +
  7.2775 +in your LaTeX source.  When you neglect argument such as
  7.2776 +
  7.2777 +             (C-v for view) \???{} (default section): vspace*
  7.2778 +             \vspace*{???}: 
  7.2779 +
  7.2780 +YaTeX puts
  7.2781 +
  7.2782 +             \vspace*{}
  7.2783 +
  7.2784 +and move the cursor in the braces.
  7.2785 +
  7.2786 +  In LaTeX command, there are commands which take more than one arguments
  7.2787 +such as `\addtolength{\topmargin}{8mm}'.  To complete these commands,
  7.2788 +invoke section-type completion with universal argument as,
  7.2789 +
  7.2790 +             C-u 2 [prefix] s (or ESC 2 [prefix] s)
  7.2791 +
  7.2792 +and make answers in minibuffer like this.
  7.2793 +
  7.2794 +             (C-v for view) \???{} (default vspace*): addtolength
  7.2795 +             \addtolength{???}: \topmargin
  7.2796 +             Argument 2: 8mm
  7.2797 +
  7.2798 +`\addtolength' and the first argument `\topmargin' can be typed easily by
  7.2799 +completing read.  Since YaTeX also learns the number of arguments of
  7.2800 +section-type command and will ask that many arguments in future
  7.2801 +completion, you had better tell the number of arguments to YaTeX at the
  7.2802 +first completion of the new word.  But you can change the number of
  7.2803 +arguments by calling the completion with different universal argument
  7.2804 +again.
  7.2805 +
  7.2806 +
  7.2807 +  Invoking section-type completion with `[Prefix] S' (Capital `S')
  7.2808 +includes the region as the first argument of section-type command.
  7.2809 +
  7.2810 +  The section/large/maketitle type completion can work at the prompt for
  7.2811 +the argument of other section-type completion.  Nested LaTeX commands are
  7.2812 +efficiently read with the recursive completion by typing YaTeX's
  7.2813 +completion key sequence in the minibuffer.
  7.2814 +
  7.2815 +* Menu:
  7.2816 +
  7.2817 +* view-sectioning::             
  7.2818 +
  7.2819 +
  7.2820 +
  7.2821 +File: yatexe, Node: view-sectioning, Prev: Section-type completion, Up: Section-type completion
  7.2822 +
  7.2823 +view-sectioning
  7.2824 +---------------
  7.2825 +
  7.2826 +  In the minibuffer at the prompt of section-type command completion,
  7.2827 +typing `C-v' shows a list of sectioning commands in source text(The line
  7.2828 +with `<<--' mark is the nearest sectioning command).  Then, default
  7.2829 +sectioning command appears in the minibuffer.  You can go up/down
  7.2830 +sectioning command by typing `C-p'/`C-n', can scrolls up/down the listing
  7.2831 +buffer by `C-v'/`M-v', and can hide sectioning commands under certain
  7.2832 +level by 0 through 6.  Type `?'  in the minibuffer of sectioning prompt
  7.2833 +for more information.
  7.2834 +
  7.2835 +  You can generate this listing buffer (`*Sectioning Lines*' buffer) by
  7.2836 +typing
  7.2837 +`M-x YaTeX-section-overview'
  7.2838 +             ... Generate *Sectioning Lines* buffer
  7.2839 +
  7.2840 +from the LaTeX source buffer.  In this listing buffer, typing `u' on the
  7.2841 +sectioning command shifts up the corresponding sectioning command in
  7.2842 +source text and `d' shifts down.  After marking lines in the listing
  7.2843 +buffer, typing `U' shifts up all sectioning commands in the region, and
  7.2844 +`U' shifts down.  Here are all the key bindings of `*Sectioning Lines*'
  7.2845 +buffer.
  7.2846 +
  7.2847 +`SPC'
  7.2848 +             ... Jump to corresponding source line
  7.2849 +`.'
  7.2850 +             ... Display corresponding source line
  7.2851 +`u'
  7.2852 +             ... Shift up a sectioning line
  7.2853 +`d'
  7.2854 +             ... Shift down a sectioning line
  7.2855 +`U'
  7.2856 +             ... Shift up sectioning lines in region
  7.2857 +`D'
  7.2858 +             ... Shift down sectioning lines in region
  7.2859 +`0...6'
  7.2860 +             ... Hide sectioning commands whose level is lower than n
  7.2861 +
  7.2862 +
  7.2863 +
  7.2864 +
  7.2865 +File: yatexe, Node: Large-type completion, Next: Maketitle-type completion, Prev: Section-type completion, Up: Completion
  7.2866 +
  7.2867 +Large-type completion
  7.2868 +=====================
  7.2869 +
  7.2870 +  "Large-type completion" inputs the font or size changing descriptions
  7.2871 +such as `{\large }'.  When you type
  7.2872 +
  7.2873 +`[prefix] l'
  7.2874 +             ... large-type completion
  7.2875 +
  7.2876 +the message in the minibuffer
  7.2877 +
  7.2878 +             {\??? } (default large): 
  7.2879 +
  7.2880 +prompts prompts you large-type command with completing-read.  There are
  7.2881 +TeX commands to change fonts or sizes, `it', `huge' and so on, in the
  7.2882 +completion table.
  7.2883 +
  7.2884 +  Region-based completion is also invoked by changing the letter after
  7.2885 +prefix key stroke as `[prefix] L'.  It encloses the region by braces with
  7.2886 +large-type command.
  7.2887 +
  7.2888 +
  7.2889 +
  7.2890 +File: yatexe, Node: Maketitle-type completion, Next: Arbitrary completion, Prev: Large-type completion, Up: Completion
  7.2891 +
  7.2892 +Maketitle-type completion
  7.2893 +=========================
  7.2894 +
  7.2895 +  We call it "maketitle-type completion" which completes commands such as
  7.2896 +`\maketitle'.  Take notice that maketitle-type commands take no arguments.
  7.2897 +Then, typing
  7.2898 +
  7.2899 +`[prefix] m'
  7.2900 +             ... maketitle-type completion
  7.2901 +
  7.2902 +begins maketitle-completion.  Above mentioned method is true for
  7.2903 +maketitle-completion, and there are LaTeX commands with no arguments in
  7.2904 +completion table.
  7.2905 +
  7.2906 +
  7.2907 +
  7.2908 +File: yatexe, Node: Arbitrary completion, Next: End completion, Prev: Maketitle-type completion, Up: Completion
  7.2909 +
  7.2910 +Arbitrary completion
  7.2911 +====================
  7.2912 +
  7.2913 +  You can complete certain LaTeX command anywhere without typical
  7.2914 +completing method as described, by typing
  7.2915 +
  7.2916 +`[prefix] SPC'
  7.2917 +             ... arbitrary completion
  7.2918 +
  7.2919 +after the initial string of LaTeX command that is preceded by `\'.
  7.2920 +
  7.2921 +
  7.2922 +
  7.2923 +File: yatexe, Node: End completion, Next: Accent completion, Prev: Arbitrary completion, Up: Completion
  7.2924 +
  7.2925 +End completion
  7.2926 +==============
  7.2927 +
  7.2928 +  YaTeX automatically detects the opened environment and close it with
  7.2929 +\`\end{environment}'.  Though proficient YaTeX users never fail to make
  7.2930 +environment with begin-type completion, some may begin an environment
  7.2931 +manually.  In that case, type
  7.2932 +
  7.2933 +`[prefix] e'
  7.2934 +             ... `end' completion
  7.2935 +
  7.2936 +at the end of the opened environment.
  7.2937 +
  7.2938 +
  7.2939 +
  7.2940 +File: yatexe, Node: Accent completion, Next: Image completion, Prev: End completion, Up: Completion
  7.2941 +
  7.2942 +Accent completion
  7.2943 +=================
  7.2944 +
  7.2945 +  When you want to write the European accent marks(like `\`{o}'),
  7.2946 +
  7.2947 +`[prefix] a'
  7.2948 +             ... accent completion
  7.2949 +
  7.2950 +shows the menu
  7.2951 +
  7.2952 +             1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b
  7.2953 +
  7.2954 +in the minibuffer.  Chose one character or corresponding numeric, and you
  7.2955 +will see
  7.2956 +
  7.2957 +             \`{}
  7.2958 +
  7.2959 +in the editing buffer with the cursor positioned in braces.  Type one more
  7.2960 +character `o' for example, then
  7.2961 +
  7.2962 +             \`{o}
  7.2963 +
  7.2964 +will be completed, and the cursor gets out from braces.
  7.2965 +
  7.2966 +
  7.2967 +
  7.2968 +File: yatexe, Node: Image completion, Next: Greek letters completion, Prev: Accent completion, Up: Completion
  7.2969 +
  7.2970 +Image completion of mathematical sign
  7.2971 +=====================================
  7.2972 +
  7.2973 +  Arrow marks, sigma mark and those signs mainly used in the TeX's math
  7.2974 +environment are completed by key sequences which imitate the corresponding
  7.2975 +symbols graphically.  This completion only works in the math environment.
  7.2976 +YaTeX automatically detects whether the cursor located in math environment
  7.2977 +or not, and change the behavior of key strokes `;' and `:'.
  7.2978 +
  7.2979 +  By the way, we often express the leftarrow mark by `<-' for example.
  7.2980 +Considering such image, you can write `\leftarrow' by typing `<-' after
  7.2981 +`;' (semicolon) as a prefix.  In the same way, `\longleftarrow' (`<--') is
  7.2982 +completed by typing `;<--', infinity mark which is imitated by `oo' is
  7.2983 +completed by typing `;oo'.
  7.2984 +
  7.2985 +  Here are the sample operations in YaTeX math-mode.
  7.2986 +
  7.2987 +     INPUT                   Completed LaTeX commands
  7.2988 +     ; < -                   `\leftarrow'
  7.2989 +     ; < - -                 `\longleftarrow'
  7.2990 +     ; < - - >               `\longleftrightarrow'
  7.2991 +     ; o                     `\circ'
  7.2992 +     ; o o                   `\infty'
  7.2993 +
  7.2994 +  In any case, you can quit from image completion and can move to the next
  7.2995 +editing operation if the LaTeX command you want is shown in the buffer.
  7.2996 +
  7.2997 +  `;' itself in math-environment is inserted by `;;'.  Typing `TAB' in the
  7.2998 +midst of image completion shows all of the LaTeX commands that start with
  7.2999 +the same name as string you previously typed in.  In this menu buffer,
  7.3000 +press `RET' after moving the cursor (by `n', `p', `b', `f') to insert the
  7.3001 +LaTeX command.
  7.3002 +
  7.3003 +  To know all of the completion table, type `TAB' just after `;'.  And
  7.3004 +here is the sample menu by `TAB' after `;<'.
  7.3005 +
  7.3006 +     KEY             LaTeX sequence          sign
  7.3007 +     <               \leq                    <
  7.3008 +                                             ~
  7.3009 +     <<              \ll                     << 
  7.3010 +     <-              \leftarrow              <-
  7.3011 +     <=              \Leftarrow              <=
  7.3012 +
  7.3013 +  You can define your favorite key-vs-sequence completion table in the
  7.3014 +Emacs-Lisp variable `YaTeX-math-sign-alist-private'.  See also
  7.3015 +`yatexmth.el' for the information of the structure of this variable.
  7.3016 +
  7.3017 +
  7.3018 +
  7.3019 +File: yatexe, Node: Greek letters completion, Prev: Image completion, Up: Completion
  7.3020 +
  7.3021 +Greek letters completion
  7.3022 +========================
  7.3023 +
  7.3024 +  Math-mode of YaTeX provides another image completion, Greek letters
  7.3025 +completion in the same method.  After prefix `:', typing `a' makes
  7.3026 +`\alpha', `b' makes `\beta' and `g' makes `\gamma' and so on.  First, type
  7.3027 +`:TAB' to know all the correspondence of alphabets vs. Greek letters.
  7.3028 +
  7.3029 +  If you will find `;' or `:' doesn't work in correct position of math
  7.3030 +environment, it may be a bug of YaTeX.  Please send me a bug report with
  7.3031 +the configuration of your text, and avoid it temporarily by typing `;' or
  7.3032 +`:' after universal-argument(`C-u') which forces `;' and `:' to work as
  7.3033 +math-prefix.
  7.3034 +
  7.3035 +
  7.3036 +
  7.3037 +File: yatexe, Node: Local dictionaries, Next: Commenting out, Prev: Completion, Up: Top
  7.3038 +
  7.3039 +Local dictionaries
  7.3040 +******************
  7.3041 +
  7.3042 +  Tables for completion consist of three dictionaries; `standard
  7.3043 +dictionary' built in `yatex.el', `user dictionary' for your common private
  7.3044 +commands, and `local dictionary' that is effective in a certain directory.
  7.3045 +
  7.3046 +  When you input the command unknown to YaTeX at a completion in the
  7.3047 +minibuffer, YaTeX asks you with the following prompt;
  7.3048 +
  7.3049 +       `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard
  7.3050 +
  7.3051 +In this menu, typing `u' updates your `user dictionary', `l' updates your
  7.3052 +local dictionary, `n' updates only on-memory dictionary which go through
  7.3053 +only current Emacs session, and `d' updates no dictionary and throws the
  7.3054 +new word away.
  7.3055 +
  7.3056 +  If you find this switching feature meaningless and bothersome, put the
  7.3057 +next expression into your `~/.emacs'
  7.3058 +
  7.3059 +             (setq YaTeX-nervous nil)
  7.3060 +
  7.3061 +
  7.3062 +
  7.3063 +File: yatexe, Node: Commenting out, Next: Cursor jump, Prev: Local dictionaries, Up: Top
  7.3064 +
  7.3065 +Commenting out
  7.3066 +**************
  7.3067 +
  7.3068 +  You may want to comment out some region.
  7.3069 +
  7.3070 +`[prefix] >'
  7.3071 +             ... comment out region by %
  7.3072 +`[prefix] <'
  7.3073 +             ... uncomment region
  7.3074 +
  7.3075 +cause an operation to the region between point and mark.
  7.3076 +
  7.3077 +`[prefix] .'
  7.3078 +             ... comment out current paragraph
  7.3079 +`[prefix] ,'
  7.3080 +             ... uncomment current paragraph
  7.3081 +
  7.3082 +comments or uncomments the paragraph where the cursor belongs.  This
  7.3083 +`paragraph' means the region marked by the function mark-paragraph, bound
  7.3084 +to `ESC h' by default.  It is NOT predictable what will happen when you
  7.3085 +continuously comment out some paragraph many times.
  7.3086 +
  7.3087 +  You can also comment out an environment between `\begin' and `\end', or
  7.3088 +a `\begin'-\`\end' pair themselves, by making the following key strokes on
  7.3089 +the line where `\begin{}' or `\end{}' exists.
  7.3090 +
  7.3091 +`[prefix] >'
  7.3092 +             ... comment out from \begin to \`end'
  7.3093 +`[prefix] <'
  7.3094 +             ... uncomment from \begin to \`end'
  7.3095 +
  7.3096 +comment whole the contents of environment.  Moreover,
  7.3097 +
  7.3098 +`[prefix] .'
  7.3099 +             ... comment out \begin and \`end'
  7.3100 +`[prefix] ,'
  7.3101 +             ... uncomment \begin and \`end'
  7.3102 +
  7.3103 +(un)comments out only environment declaration: `\begin{}' and `\end{}'.
  7.3104 +NOTE that even if you intend to comment out some region, invoking
  7.3105 +`[prefix] >' on the `\begin',`\end' line decides to work in `commenting
  7.3106 +out from `\begin' to `\end'' mode.
  7.3107 +
  7.3108 +
  7.3109 +
  7.3110 +
  7.3111 +File: yatexe, Node: Cursor jump, Next: Changing and Deleting, Prev: Commenting out, Up: Top
  7.3112 +
  7.3113 +Cursor jump
  7.3114 +***********
  7.3115 +
  7.3116 +
  7.3117 +* Menu:
  7.3118 +
  7.3119 +* Jump to corresponding object::  
  7.3120 +* Invoking image processor::    
  7.3121 +* Jump to main file::           
  7.3122 +* Jumping around the environment::  
  7.3123 +* Jumping to last completion position::  
  7.3124 +
  7.3125 +
  7.3126 +
  7.3127 +File: yatexe, Node: Jump to corresponding object, Next: Invoking image processor, Prev: Cursor jump, Up: Cursor jump
  7.3128 +
  7.3129 +Jump to corresponding object
  7.3130 +============================
  7.3131 +
  7.3132 +  Typing
  7.3133 +
  7.3134 +`[prefix] g'
  7.3135 +             ... go to corresponding object
  7.3136 +
  7.3137 +in a certain place move the cursor to the place corresponding to the LaTeX
  7.3138 +command of last place.  YaTeX recognize the followings as pairs that have
  7.3139 +relation each other.
  7.3140 +
  7.3141 +   * `\begin{}' <-> `\end{}'
  7.3142 +   * `%#BEGIN' <-> `%#END'
  7.3143 +   * On the image-including line -> corresponding viewer or drawing tool
  7.3144 +   * `\label{}' <-> `\ref{}'
  7.3145 +   * `\include(\input)' -> included file
  7.3146 +   * `\bibitem{}' <-> `\cite{}'
  7.3147 +
  7.3148 +  On a `\begin',`\end' line, typing `[prefix] g' moves the cursor to the
  7.3149 +corresponding `\end',`\begin' line, if its partner really exists.  The
  7.3150 +behavior on the line `%#BEGIN' and `%#END' are the same.  Note that if the
  7.3151 +correspondent of `label/ref' or `cite/bibitem' exists in another file,
  7.3152 +that file have to be opened to make a round trip between references by
  7.3153 +`[prefix] g'.
  7.3154 +
  7.3155 +  If you type `[prefix] g' on the line of `\include{chap1}', typically in
  7.3156 +the main text, YaTeX switches buffer to `chap1.tex'.
  7.3157 +
  7.3158 +`[prefix] 4 g'
  7.3159 +             ... go to corresponding object in other window
  7.3160 +
  7.3161 +do the same job as `[prefix] g' except it's done in other window.  Note
  7.3162 +that this function doesn't work on `begin/end', `%#BEGIN/%#END' pairs
  7.3163 +because it is meaningless.
  7.3164 +
  7.3165 +
  7.3166 +
  7.3167 +File: yatexe, Node: Invoking image processor, Next: Jump to main file, Prev: Jump to corresponding object, Up: Cursor jump
  7.3168 +
  7.3169 +Invoking image processor
  7.3170 +========================
  7.3171 +
  7.3172 +
  7.3173 +`image-including line' described above means such lines as
  7.3174 +`\epsfile{file=foo.ps}'.  If you type `[prefix] g' on that line, YaTeX
  7.3175 +automatically searches source of `foo.ps' and invokes image viewer or
  7.3176 +drawing tool correspoinding to it.  For example; if you draw an image
  7.3177 +foo.obj with Tgif and enclose its product named foo.eps by `\epsfile'
  7.3178 +command.  Typing `[prefix] g' on `\epsfile' line make YaTeX invoke `tgif
  7.3179 +foo.obj'.  How a processor is choosen is as follows.
  7.3180 +
  7.3181 +  1. If there is an expression matching with one of the pattern defined in
  7.3182 +     `YaTeX-processed-file-regexp-alist', extract file name from regexp
  7.3183 +     group surrounded by \\(\\).  (Which group corresponds is written in
  7.3184 +     the cdr part of each list.)  If no matches were found, do nothing.
  7.3185 +  2. If there is a pattern as `%PROCESSOR' which is defined in the
  7.3186 +     variable `YaTeX-file-processor-alist', call that processor giving the
  7.3187 +     file name with corresponding extension.
  7.3188 +  3. If not, check the existence of each file which is supplied the
  7.3189 +     extension in the cdr part of each list of
  7.3190 +     `YaTeX-file-processor-alist'.  If any, call the corresponding image
  7.3191 +     viewer or drawing tool.
  7.3192 +
  7.3193 +
  7.3194 +
  7.3195 +File: yatexe, Node: Jump to main file, Next: Jumping around the environment, Prev: Invoking image processor, Up: Cursor jump
  7.3196 +
  7.3197 +Jump to main file
  7.3198 +=================
  7.3199 +
  7.3200 +  Typing
  7.3201 +
  7.3202 +`[prefix] ^'
  7.3203 +             ... visit main file
  7.3204 +`[prefix] 4^'
  7.3205 +             ... visit main file in other buffer
  7.3206 +
  7.3207 +in a sub text switch the buffer to the main text specified by `%#!'
  7.3208 +notation.
  7.3209 +
  7.3210 +
  7.3211 +
  7.3212 +File: yatexe, Node: Jumping around the environment, Next: Jumping to last completion position, Prev: Jump to main file, Up: Cursor jump
  7.3213 +
  7.3214 +Jumping around the environment
  7.3215 +==============================
  7.3216 +
  7.3217 +  And these are the functions which work on the current LaTeX environment:
  7.3218 +
  7.3219 +`M-C-a'
  7.3220 +             ... beginning of environment
  7.3221 +`M-C-e'
  7.3222 +             ... `end' of environment
  7.3223 +`M-C-@'
  7.3224 +             ... mark environment
  7.3225 +
  7.3226 +
  7.3227 +
  7.3228 +File: yatexe, Node: Jumping to last completion position, Prev: Jumping around the environment, Up: Cursor jump
  7.3229 +
  7.3230 +Jumping to last completion position
  7.3231 +===================================
  7.3232 +
  7.3233 +YaTeX always memorize the position of completion into register `3'.  So
  7.3234 +every time you make a trip to any other part of text other than you are
  7.3235 +writing, you can return to the editing paragraph by calling
  7.3236 +register-to-point with argument YaTeX-current-position-register, which is
  7.3237 +achieved by typing `C-x j 3'(by default).
  7.3238 +
  7.3239 +
  7.3240 +
  7.3241 +File: yatexe, Node: Changing and Deleting, Next: Filling, Prev: Cursor jump, Up: Top
  7.3242 +
  7.3243 +Changing and Deleting
  7.3244 +*********************
  7.3245 +
  7.3246 +  These functions are for change or deletion of LaTeX commands already
  7.3247 +entered.
  7.3248 +
  7.3249 +`[prefix] c'
  7.3250 +             ... change LaTeX command
  7.3251 +`[prefix] k'
  7.3252 +             ... kill LaTeX command
  7.3253 +
  7.3254 +* Menu:
  7.3255 +
  7.3256 +* Changing LaTeX commands::     
  7.3257 +* Killing LaTeX commands::      
  7.3258 +
  7.3259 +
  7.3260 +
  7.3261 +File: yatexe, Node: Changing LaTeX commands, Next: Killing LaTeX commands, Prev: Changing and Deleting, Up: Changing and Deleting
  7.3262 +
  7.3263 +Changing LaTeX commands
  7.3264 +=======================
  7.3265 +
  7.3266 +`[prefix] c' can change the various (La)TeX commands.  This can change the
  7.3267 +followings.
  7.3268 +   * Environment names
  7.3269 +   * Section-type commands
  7.3270 +   * Argument of section-type commands
  7.3271 +   * Optional parameters (enclosed by []) of section-type commands
  7.3272 +   * Font/size designators
  7.3273 +   * Math-mode's maketitle-type commands that can be inputted with image
  7.3274 +     completion
  7.3275 +
  7.3276 +  Typing `[prefix] c' on one of above objects you want to change brings a
  7.3277 +suitable reading function sometimes with completion.  Note: If you want to
  7.3278 +change the argument of section-type command that contains other LaTeX
  7.3279 +commands, type `[prefix] c' either of surrounding braces of the argument
  7.3280 +in order to make YaTeX ignore the internal LaTeX sequences as an object of
  7.3281 +changing.  Anyway, it is very difficult to know which argument position
  7.3282 +the cursor belongs because the LaTeX commands can be nested and braces can
  7.3283 +freely emerge.  So keep it mind to put the cursor on a brace when you are
  7.3284 +thinking of changing a complicated argument.
  7.3285 +
  7.3286 +
  7.3287 +
  7.3288 +File: yatexe, Node: Killing LaTeX commands, Prev: Changing LaTeX commands, Up: Changing and Deleting
  7.3289 +
  7.3290 +Killing LaTeX commands
  7.3291 +======================
  7.3292 +
  7.3293 +  `[prefix] k' kills the LaTeX commands sometimes with their arguments.
  7.3294 +Following table illustrates the correspondence of the invoking position
  7.3295 +and what is killed.
  7.3296 +
  7.3297 +     [Invoking position]             [action]
  7.3298 +     \begin, \end line               kill \begin,\end pairs
  7.3299 +     %#BEGIN, %#END line             kill %#BEGIN,%#END pairs
  7.3300 +     on a Section-type command       kill section-type command
  7.3301 +     on a parenthesis                kill parentheses
  7.3302 +
  7.3303 +Note that when killing `\begin, \end' or `%#BEGIN, %#END' pair, the lines
  7.3304 +`\begin, \end' or `%#BEGIN, %#END' exist will be killed entirely.  So take
  7.3305 +care not to create any line that contains more than one `\begin' or so.
  7.3306 +
  7.3307 +While all operations above are to kill `containers' which surround some
  7.3308 +text, universal argument (`C-u') for these commands kills not only
  7.3309 +`containers' but also `contents' of them.  See below as a sample.
  7.3310 +
  7.3311 +     Original text:                  [prefix] k      C-u [prefix] k
  7.3312 +     Main \footnote{note} here.    Main note here. Main  here.
  7.3313 +            ~(cursor)
  7.3314 +
  7.3315 +
  7.3316 +
  7.3317 +File: yatexe, Node: Filling, Next: Updation of includeonly, Prev: Changing and Deleting, Up: Top
  7.3318 +
  7.3319 +Filling
  7.3320 +*******
  7.3321 +
  7.3322 +
  7.3323 +Filling an item
  7.3324 +===============
  7.3325 +
  7.3326 +  To fill a term (descriptive sentences) of `\item', type
  7.3327 +
  7.3328 +`M-q'
  7.3329 +             ... fill item
  7.3330 +
  7.3331 +on that item.
  7.3332 +
  7.3333 +  YaTeX uses the value of the variable `YaTeX-item-regexp' as the regular
  7.3334 +expression to search item header in itemize environment.  If you make a
  7.3335 +newcommand to itemize terms(e.g. `\underlineitem'), put
  7.3336 +
  7.3337 +             (setq YaTeX-item-regexp
  7.3338 +                   "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)")
  7.3339 +
  7.3340 +in your `~/.emacs'.  If you are not familiar with regular expression for
  7.3341 +Emacs-Lisp, name a newcommand for `itemize' beginning with `\item' such as
  7.3342 +`\itembf', not `\bfitem'.
  7.3343 +
  7.3344 +  This function reformats the `\item' into `hang-indented' style.  For
  7.3345 +example:
  7.3346 +
  7.3347 +     itemize, enumerate environment:
  7.3348 +            >
  7.3349 +            >\item[foo] `foo' is the typical word for describing an
  7.3350 +            >           arbitrarily written....
  7.3351 +     description environment:
  7.3352 +            > \item[bar] When the word `for' is used as an arbitrarily
  7.3353 +            >        word, `bar'  is bound to follow it.
  7.3354 +
  7.3355 +  Note that the indent depth of an `\item' word and its descriptive
  7.3356 +paragraph are the same in latter case.  If you want to use different
  7.3357 +depth, invoke fill-paragraph at the beginning of non-whitespace
  7.3358 +character(see below).
  7.3359 +
  7.3360 +
  7.3361 +Filling paragraph
  7.3362 +=================
  7.3363 +
  7.3364 +  Fill-paragraph is little bit adapted for LaTeX sources.  It retains from
  7.3365 +filling in certain environments where formatting leads to a disaster such
  7.3366 +as verbatim, tabular, or so.  And it protects `\verb' expressions from
  7.3367 +being folded (The variable `YaTeX-verb-regexp' controls this).  Besides,
  7.3368 +putting cursor on the first occurrence of non-whitespace character on a
  7.3369 +line changes the fill-prefix temporarily to the depth of the line.
  7.3370 +
  7.3371 +
  7.3372 +
  7.3373 +File: yatexe, Node: Updation of includeonly, Next: What column, Prev: Filling, Up: Top
  7.3374 +
  7.3375 +Updation of `\includeonly'
  7.3376 +**************************
  7.3377 +
  7.3378 +  When you edit splitting source texts, the notation
  7.3379 +
  7.3380 +             \includeonly{CurrentEditingFileName}
  7.3381 +
  7.3382 +in the main file reduces the time of typesetting.  If you want to hack
  7.3383 +other file a little however, you have to rewrite it to
  7.3384 +
  7.3385 +             \includeonly{OtherFileNameYouWantToFix}
  7.3386 +
  7.3387 +in the main file.  YaTeX automatically detects that the current edited
  7.3388 +text is not in includeonly list and prompts you
  7.3389 +
  7.3390 +             A)dd R)eplace %)comment?
  7.3391 +
  7.3392 +in the minibuffer.  Type `a' if you want to add the current file name to
  7.3393 +`\includeonly' list, `r' to replace \`includeonly' list with the current
  7.3394 +file, and type `%' to comment out the `\includeonly' line.
  7.3395 +
  7.3396 +
  7.3397 +
  7.3398 +File: yatexe, Node: What column, Next: Intelligent newline, Prev: Updation of includeonly, Up: Top
  7.3399 +
  7.3400 +What column?
  7.3401 +************
  7.3402 +
  7.3403 +  We are often get tired of finding the corresponding column in large
  7.3404 +tabulars.  For example,
  7.3405 +
  7.3406 +             \begin{tabular}{|c|c|c|c|c|c|c|c|}\hline
  7.3407 +              Name&Position&Post No.&Addr.&Phone No.&FAX No.&
  7.3408 +                     Home Addr.&Home Phone\\ \hline
  7.3409 +              Thunder Bird & 6 & 223 & LA & xxx-yyy &
  7.3410 +               zzz-www & Japan & 9876-54321 \\
  7.3411 +                & 2 & \multicolumn{2}{c|}{Unknown}
  7.3412 +                     &&&(???)
  7.3413 +              \\ \hline
  7.3414 +              \end{tabular}
  7.3415 +
  7.3416 +Suppose you have the cursor located at `(???)' mark, can you tell which
  7.3417 +column it is belonging at once?  Maybe no.  In such case, type
  7.3418 +
  7.3419 +`[prefix] &'
  7.3420 +             ... What column
  7.3421 +
  7.3422 +in that position.  YaTeX tells you the column header of the current field.
  7.3423 +Since YaTeX assumes the first line of tabular environment as a row of
  7.3424 +column headers, you can create a row of virtual column headers by putting
  7.3425 +them in the first line and commenting that line with `%'.
  7.3426 +
  7.3427 +
  7.3428 +
  7.3429 +File: yatexe, Node: Intelligent newline, Next: Usepackage checker, Prev: What column, Up: Top
  7.3430 +
  7.3431 +Intelligent newline
  7.3432 +*******************
  7.3433 +
  7.3434 +  At the end of begin-type completion of tabular[*], array, itemize,
  7.3435 +enumerate or tabbing environment, or typing
  7.3436 +
  7.3437 +`ESC RET'
  7.3438 +             ... Intelligent newline
  7.3439 +
  7.3440 +in these environments inserts the contents corresponding to the current
  7.3441 +environment in the next line.  (At the begin-type completion, this
  7.3442 +contents can be removed by `undo'.)  In `tabular' environment, for
  7.3443 +example, `ESC RET' inserts the certain number of `&' and trailing `\\',
  7.3444 +and `\hline' if other `\hline' is found in backward.  Here are the list of
  7.3445 +contents vs. environments.
  7.3446 +
  7.3447 +   * `tabular', `tabular*', `array'
  7.3448 +
  7.3449 +             Corresponding number of `&' and `\\'.  And `\hline' if
  7.3450 +     needed.
  7.3451 +
  7.3452 +   * `tabbing'
  7.3453 +
  7.3454 +             The same number of `\>' as `\=' in the first line.
  7.3455 +
  7.3456 +   * `itemize', `enumerate', `description', `list'
  7.3457 +
  7.3458 +             `\item' or `item[]'.
  7.3459 +
  7.3460 +  Note that since this function works seeing the contents of the first
  7.3461 +line, please call this after the second line if possible.
  7.3462 +
  7.3463 +  If you want to apply these trick to other environments, `foo'
  7.3464 +environment for example, define the function named
  7.3465 +`YaTeX-intelligent-newline-foo' to insert corresponding contents.  That
  7.3466 +function will be called at the beginning of the next line after the
  7.3467 +newline is inserted to the current line.  Since the function
  7.3468 +`YaTeX-indent-line' is designed to indent the current line properly,
  7.3469 +calling this function before your code to insert certain contents must be
  7.3470 +useful.  See the definition of the function
  7.3471 +`YaTeX-intelligent-newline-itemize' as an example.
  7.3472 +
  7.3473 +
  7.3474 +
  7.3475 +File: yatexe, Node: Usepackage checker, Next: Online help, Prev: Intelligent newline, Up: Top
  7.3476 +
  7.3477 +Usepackage checker
  7.3478 +******************
  7.3479 +
  7.3480 +When you input begint-type, section-type, maketitle-type macros with
  7.3481 +completion, and it requires some LaTeX2e package, YaTeX examines the
  7.3482 +existence of correct `\usepackage'.  If not, YaTeX inserts the
  7.3483 +`\usepackage{}' declaration corresponding to input macro.
  7.3484 +
  7.3485 +To activate the package completion for your favarite package, set the
  7.3486 +variable `YaTeX-package-alist-private' correctly.  Please refere the value
  7.3487 +of `YaTeX-package-alist-default' as an example.
  7.3488 +
  7.3489 +
  7.3490 +
  7.3491 +File: yatexe, Node: Online help, Next: Browsing file hierarchy, Prev: Usepackage checker, Up: Top
  7.3492 +
  7.3493 +Online help
  7.3494 +***********
  7.3495 +
  7.3496 +  YaTeX provides you the online help with popular LaTeX commands.
  7.3497 +
  7.3498 +  Here are the key strokes for the online help.
  7.3499 +
  7.3500 +`[prefix] ?'
  7.3501 +             ... Online help
  7.3502 +`[prefix] /'
  7.3503 +             ... Online apropos
  7.3504 +
  7.3505 +
  7.3506 +Online help
  7.3507 +===========
  7.3508 +
  7.3509 +  `Online help' shows the documentation for the popular LaTeX
  7.3510 +commands(defaults to the commands on the cursor) in the next buffer.
  7.3511 +There are two help file, `global help' and `private help'.  The former
  7.3512 +file contains the descriptions on the standard LaTeX command and is
  7.3513 +specified its name by variable `YaTeX-help-file'.  Usually, the global
  7.3514 +help file should be located in public space (`$EMACSEXECPATH' by default)
  7.3515 +and should be world writable so that anyone can update it to enrich its
  7.3516 +contents.  The latter file contains descriptions on non-standard or
  7.3517 +personal command definitions and is specified by
  7.3518 +`YaTeX-help-file-private'.  This file should be put into private
  7.3519 +directory.
  7.3520 +
  7.3521 +
  7.3522 +Online apropos
  7.3523 +==============
  7.3524 +
  7.3525 +  `Online apropos' is an equivalent of GNU Emacs's apropos.  It shows all
  7.3526 +the documentations that contains the keyword entered by the user.
  7.3527 +
  7.3528 +
  7.3529 +When no descriptions are found...
  7.3530 +=================================
  7.3531 +
  7.3532 +  If there is no description on a command in help files, YaTeX requires
  7.3533 +you to write a description on that command.  If you are willing to do,
  7.3534 +determine which help file to add and write the description on it referring
  7.3535 +your manual of (La)TeX.  Please send me your additional descriptions if
  7.3536 +you describe the help on some standard commands.  I might want to include
  7.3537 +it in the next distribution.
  7.3538 +
  7.3539 +
  7.3540 +
  7.3541 +File: yatexe, Node: Browsing file hierarchy, Next: Cooperation with other packages, Prev: Online help, Up: Top
  7.3542 +
  7.3543 +Browsing file hierarchy
  7.3544 +***********************
  7.3545 +
  7.3546 +  When you are editing multi-file source, typing
  7.3547 +
  7.3548 +`[prefix] d'
  7.3549 +             ... browse file hierarchy
  7.3550 +
  7.3551 +asks you the parent-most file (which may be defaulted) and displays the
  7.3552 +documentation hierarchy in the next window.  In this buffer, the following
  7.3553 +commands are available.
  7.3554 +
  7.3555 +`n'
  7.3556 +             ... move to the next line and show its contents
  7.3557 +`p'
  7.3558 +             ... move to the previous line and show its contents
  7.3559 +`N'
  7.3560 +             ... move to the next file in the same inclusion level
  7.3561 +`P'
  7.3562 +             ... move to the previous file in the same inclusion level
  7.3563 +`j'
  7.3564 +             ... move to the next line
  7.3565 +`k'
  7.3566 +             ... move to the previous line
  7.3567 +`u'
  7.3568 +             ... move to the parent file
  7.3569 +`.'
  7.3570 +             ... show the current files contents in the next window
  7.3571 +`SPC'
  7.3572 +             ... scroll up the current file window
  7.3573 +`DEL, b'
  7.3574 +             ... scroll down the current file window
  7.3575 +`<'
  7.3576 +             ... show the beginning of the current file
  7.3577 +`>'
  7.3578 +             ... show the end of the current file
  7.3579 +`>'
  7.3580 +             ... return to the previous postion after `<' or `>'
  7.3581 +`RET, g'
  7.3582 +             ... open the current file in the next window
  7.3583 +`mouse-2'
  7.3584 +             ... same as RET(available only with window system)
  7.3585 +`o'
  7.3586 +             ... other window
  7.3587 +`1'
  7.3588 +             ... delete other windows
  7.3589 +`-'
  7.3590 +             ... shrink hierarchy buffer window
  7.3591 +`+'
  7.3592 +             ... enlarge hierarchy buffer window
  7.3593 +`?'
  7.3594 +             ... describe mode
  7.3595 +`q'
  7.3596 +             ... quit
  7.3597 +
  7.3598 +  Note that operations on the file contents in the next window do not work
  7.3599 +correctly when you close the corresponding file.
  7.3600 +
  7.3601 +
  7.3602 +
  7.3603 +File: yatexe, Node: Cooperation with other packages, Next: Customizations, Prev: Browsing file hierarchy, Up: Top
  7.3604 +
  7.3605 +Cooperation with other packages
  7.3606 +*******************************
  7.3607 +
  7.3608 +  YaTeX works better with other brilliant packages.
  7.3609 +
  7.3610 +
  7.3611 +gmhist
  7.3612 +======
  7.3613 +
  7.3614 +  When you are loading `gmhist.el' and `gmhist-mh.el', you can use
  7.3615 +independent command history list at the prompt of preview command
  7.3616 +(`[prefix] tp') and print command (`[prefix] tl').  On each prompt, you
  7.3617 +can enter the previous command line string repeatedly by typing `M-p'.
  7.3618 +
  7.3619 +
  7.3620 +min-out
  7.3621 +=======
  7.3622 +
  7.3623 +  `min-out', the outline minor mode, can be used in yatex-mode buffers.
  7.3624 +If you want to use it with YaTeX, please refer the file `yatexm-o.el' as
  7.3625 +an example.
  7.3626 +
  7.3627 +
  7.3628 +
  7.3629 +File: yatexe, Node: Customizations, Next: Etcetera, Prev: Cooperation with other packages, Up: Top
  7.3630 +
  7.3631 +Customizations
  7.3632 +**************
  7.3633 +
  7.3634 +  You can customize YaTeX by setting Emacs-Lisp variables and by making
  7.3635 +add-in functions.
  7.3636 +
  7.3637 +* Menu:
  7.3638 +
  7.3639 +* Lisp variables::              
  7.3640 +* Add-in functions::            
  7.3641 +* Add-in generator::            
  7.3642 +
  7.3643 +
  7.3644 +
  7.3645 +File: yatexe, Node: Lisp variables, Next: Add-in functions, Prev: Customizations, Up: Customizations
  7.3646 +
  7.3647 +Lisp variables
  7.3648 +==============
  7.3649 +
  7.3650 +  You can change the key assignments or make completion more comfortable
  7.3651 +by setting the values of various variables which control the movement of
  7.3652 +yatex-mode.
  7.3653 +
  7.3654 +  For example, if you want to change the prefix key stroke from `C-c' to
  7.3655 +any other sequence, set YaTeX-prefix to whatever you want to use.  If you
  7.3656 +don't want to use the key sequence `C-c letter' which is assumed to be the
  7.3657 +user reserved sequence in Emacs world, set `YaTeX-inhibit-prefix-letter'
  7.3658 +to `t', and all of the default key bind of `C-c letter' will turn to the
  7.3659 +corresponding `C-c C-letter' (but the region based completions that is
  7.3660 +invoked with `C-c Capital-letter' remain valid, if you want to disable
  7.3661 +those bindings, set that variable to 1 instead of `t').
  7.3662 +
  7.3663 +* Menu:
  7.3664 +
  7.3665 +* All customizable variables::  
  7.3666 +* Sample definitions::          
  7.3667 +* Hook variables::              
  7.3668 +* Hook file::                   
  7.3669 +
  7.3670 +
  7.3671 +
  7.3672 +File: yatexe, Node: All customizable variables, Next: Sample definitions, Prev: Lisp variables, Up: Lisp variables
  7.3673 +
  7.3674 +All customizable variables
  7.3675 +--------------------------
  7.3676 +
  7.3677 +  Here are the customizable variables of yatex-mode.  Each value setq-ed
  7.3678 +in `~/.emacs' is preferred and that of defined in `yatex.el' is neglected.
  7.3679 +Parenthesized contents stands for the default value.  When you are to
  7.3680 +change some of these variables, see more detailed documentation of the
  7.3681 +variable by `M-x describe-variable'.
  7.3682 +
  7.3683 + -- Variable: YaTeX-japan
  7.3684 +     Set this nil to produce all messages in English (`Depends on Japanese
  7.3685 +     feature of Emacs')
  7.3686 +
  7.3687 + -- Variable: YaTeX-kanji-code
  7.3688 +     Default buffer-file-coding-system for YaTeX modes' buffer.  Set this
  7.3689 +     0 to no language conversion.  Nil to preserve original
  7.3690 +     coding-system. 1=Shift JIS, 2=JIS, 3=EUC, 4=UTF-8 (`1 or 2')
  7.3691 +
  7.3692 + -- Variable: YaTeX-prefix
  7.3693 +     Prefix key stroke (`C-c')
  7.3694 +
  7.3695 + -- Variable: YaTeX-inhibit-prefix-letter
  7.3696 +     Change key stroke from `C-c letter' to `C-c C-letter' (`nil')
  7.3697 +
  7.3698 + -- Variable: YaTeX-fill-prefix
  7.3699 +     Fill-prefix used in yatex-mode (`nil')
  7.3700 +
  7.3701 + -- Variable: YaTeX-user-completion-table
  7.3702 +     Name of user dictionary where learned completion table will be
  7.3703 +     stored.  (`"~/.yatexrc"')
  7.3704 +
  7.3705 + -- Variable: tex-command
  7.3706 +     LaTeX typesetter command (`"latex"')
  7.3707 +
  7.3708 + -- Variable: dvi2-command
  7.3709 +     Preview command (`"xdvi -geo +0+0 -s 4"')
  7.3710 +
  7.3711 + -- Variable: dviprint-command-format
  7.3712 +     Command format to print dvi file (`"dvi2ps %f %t %s | lpr"')
  7.3713 +
  7.3714 + -- Variable: dviprint-from-format
  7.3715 +     Start page format of above %f. %b will turn to start page (`"-f %b"')
  7.3716 +
  7.3717 + -- Variable: dviprint-to-format
  7.3718 +     End page format of above %t. %e will turn to `end' page (`"-t %e"')
  7.3719 +
  7.3720 + -- Variable: makeindex-command
  7.3721 +     Default makeindex command (`"makeindex"' (`"makeind"' on MS-DOS))
  7.3722 +
  7.3723 + -- Variable: YaTeX-dvipdf-command
  7.3724 +     Default command name to convert .dvi to PDF (`"dvipdfmx"')
  7.3725 +
  7.3726 + -- Variable: YaTeX-need-nonstop
  7.3727 +     Put `\nonstopmode{}' or not (`nil')
  7.3728 +
  7.3729 + -- Variable: latex-warning-regexp
  7.3730 +     Regular expression of warning message latex command puts out
  7.3731 +     (`"line.* [0-9]*"')
  7.3732 +
  7.3733 + -- Variable: latex-error-regexp
  7.3734 +     Regular expression of error message (`"l\\.[1-9][0-9]*"')
  7.3735 +
  7.3736 + -- Variable: latex-dos-emergency-message
  7.3737 +     Message latex command running on DOS puts at abort (`"Emergency
  7.3738 +     stop"')
  7.3739 +
  7.3740 + -- Variable: YaTeX-item-regexp
  7.3741 +     Regular expression of item command (`"\\\\item"')
  7.3742 +
  7.3743 + -- Variable: YaTeX-verb-regexp
  7.3744 +     Regexp of verb family.  Omit \\\\. (`"verb\\*?\\|path"')
  7.3745 +
  7.3746 + -- Variable: YaTeX-nervous
  7.3747 +     T for using local dictionary (`t')
  7.3748 +
  7.3749 + -- Variable: YaTeX-sectioning-regexp
  7.3750 +     Regexp of LaTeX sectioning command
  7.3751 +     (`"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"')
  7.3752 +
  7.3753 + -- Variable: YaTeX-fill-inhibit-environments
  7.3754 +     Inhibit fill in these environments (`'("tabular" "tabular*" "array"
  7.3755 +     "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath"
  7.3756 +     "verbatim" "verbatim*")')
  7.3757 +
  7.3758 + -- Variable: YaTeX-uncomment-once
  7.3759 +     T for deleting all preceding `%' (`nil')
  7.3760 +
  7.3761 + -- Variable: YaTeX-close-paren-always
  7.3762 +     T for always close all parenthesis automatically, `nil' for only eol
  7.3763 +     (`t')
  7.3764 +
  7.3765 + -- Variable: YaTeX-auto-math-mode
  7.3766 +     Switch math-mode automatically (`t')
  7.3767 +
  7.3768 + -- Variable: YaTeX-math-key-list-private
  7.3769 +     User defined alist, math-mode-prefix vs completion alist used in
  7.3770 +     image completion (`nil').  See `yatexmth.el' for the information
  7.3771 +     about how to define a completion alist.
  7.3772 +
  7.3773 + -- Variable: YaTeX-default-pop-window-height
  7.3774 +     Initial height of typesetting buffer when one-window.  Number for the
  7.3775 +     lines of the buffer, numerical string for the percentage of the
  7.3776 +     screen-height. `nil' for half height (10)
  7.3777 +
  7.3778 + -- Variable: YaTeX-help-file
  7.3779 +     Global online help file name
  7.3780 +     (`$doc-directory/../../site-lisp/YATEXHLP.eng')
  7.3781 +
  7.3782 + -- Variable: YaTeX-help-file-private
  7.3783 +     Private online help file name (`"~/YATEXHLP.eng"')
  7.3784 +
  7.3785 + -- Variable: YaTeX-no-begend-shortcut
  7.3786 +     Disable [prefix] b ?? shortcut (`nil)'
  7.3787 +
  7.3788 + -- Variable: YaTeX-hilit-pattern-adjustment-private
  7.3789 +     List of the list that contain the regular expression and the symbol
  7.3790 +     of logical meaning of the string that matches the pattern.  See also
  7.3791 +     the value from `(assq 'yatex-mode hilit-patterns-alist)' and the
  7.3792 +     value of `YaTeX-hilit-pattern-adjustment-default' (and even the
  7.3793 +     document of hilit19.el).
  7.3794 +
  7.3795 + -- Variable: YaTeX-sectioning-level
  7.3796 +     Alist of LaTeX's sectioning command vs its height.
  7.3797 +
  7.3798 + -- Variable: YaTeX-hierarchy-ignore-heading-regexp
  7.3799 +     `YaTeX-display-hierarchy' searches for sectioning command first, and
  7.3800 +     comment line secondary as a file headings.  In latter case, ignore lines
  7.3801 +     that match with regular expression of this variable.  Default value of
  7.3802 +     this variable is RCS header expressions and mode specifying line `-*- xxxx 
  7.3803 +     -*'.
  7.3804 +
  7.3805 + -- Variable: YaTeX-skip-default-reader
  7.3806 +     Non-nil for this variable skips the default argument reader of
  7.3807 +     section-type command when add-in function for it is not defined
  7.3808 +     (`nil')
  7.3809 +
  7.3810 + -- Variable: YaTeX-create-file-prefix-g
  7.3811 +     When typing `prefix g' on the `\include' line, open the target file
  7.3812 +     even if the file doesn't exist (`nil')
  7.3813 +
  7.3814 + -- Variable: YaTeX-simple-messages
  7.3815 +     Simplyfy messages of various completions (`nil')
  7.3816 +
  7.3817 + -- Variable: YaTeX-hilit-sectioning-face
  7.3818 +     When hilit19 and yatex19 is active, YaTeX colors the sectioning
  7.3819 +     commands.  This variable specifies the foreground and background
  7.3820 +     color of `\part' macro.  The default value is `'(yellow/dodgerblue
  7.3821 +     yellow/slateblue)'.  The first element of this list is for the screen
  7.3822 +     when `hilit-background-mode' is `'light', and the second element is
  7.3823 +     for `'dark'.  You should specify both color as `forecolor/backcolor'.
  7.3824 +
  7.3825 + -- Variable: YaTeX-hilit-sectioning-attenuation-rate
  7.3826 +     When color mode, this variable specifies how much attenuate the color
  7.3827 +     density of `\subparagraph' compared with that of `\chapter' (`'(15
  7.3828 +     40)') See also `YaTeX-hilit-sectioning-face'.
  7.3829 +
  7.3830 + -- Variable: YaTeX-use-AMS-LaTeX
  7.3831 +     If you use AMS-LaTeX, set to `t' (`nil')
  7.3832 +
  7.3833 + -- Variable: YaTeX-use-LaTeX2e
  7.3834 +     If you use LaTeX2e, set to `t' (`t')
  7.3835 +
  7.3836 + -- Variable: YaTeX-template-file
  7.3837 +     File name which is automatically inserted at creation
  7.3838 +     (`~/work/template.tex')
  7.3839 +
  7.3840 + -- Variable: YaTeX-search-file-from-top-directory
  7.3841 +     Non-nil means to search input-files from the directory where main
  7.3842 +     file exists (`t')
  7.3843 +
  7.3844 + -- Variable: YaTeX-use-font-lock
  7.3845 +     Use font-lock to fontify buffer or not (`(featurep 'font-lock)'
  7.3846 +
  7.3847 + -- Variable: YaTeX-use-hilit19
  7.3848 +     Use hilit19 to highlight buffer or not (`(featurep 'hilit19)'
  7.3849 +
  7.3850 + -- Variable: YaTeX-use-italic-bold
  7.3851 +     YaTeX tries to search italic, bold fontsets or not (`t' if Emacs-20
  7.3852 +     or later).  This variable is effective only when font-lock is used.
  7.3853 +     (`(featurep 'hilit19)'
  7.3854 +
  7.3855 + -- Variable: YaTeX-singlecmd-suffix
  7.3856 +     Suffix which is always inserted after maketitle-type macros.  `"{}"'
  7.3857 +     is recommended.
  7.3858 +
  7.3859 + -- Variable: YaTeX-package-alist-private
  7.3860 +     Alist of LaTeX2e-package name vs. lists of macros in it.  Set this
  7.3861 +     alist properly and YaTeX automatically check the declaratiion of
  7.3862 +     `usepackage' for corresponding macro, when you input that macro with
  7.3863 +     completion.  If required `usepackage' is not found, YaTeX also
  7.3864 +     automatically inserts `\usepackage'.  Alist is as follows;
  7.3865 +     '((PackageName1 (completionType ListOfMacro) (completionType
  7.3866 +     ListOfMacro)) (PackageName2 (completionType ListOfMacro)
  7.3867 +     (completionType ListOfMacro...))....)  completionType is one of `env,
  7.3868 +     section, maketitle'.  Consult the value of
  7.3869 +     `YaTeX-package-alist-default' as an example.
  7.3870 +
  7.3871 + -- Variable: YaTeX-tabular-indentation
  7.3872 +     At indentation by `C-i' in tabular or array environment, YaTeX put
  7.3873 +     the additional spaces to the normail indentation depth.  The number
  7.3874 +     of additional spaces is the product of YaTeX-tabular-indentation and
  7.3875 +     the number of column position in tabular.
  7.3876 +
  7.3877 + -- Variable: YaTeX-noindent-env-regexp
  7.3878 +     Regexp of environment names that should begin with no indentation.
  7.3879 +     All verbatime-like environment name should match with.
  7.3880 +
  7.3881 + -- Variable: YaTeX-ref-default-label-string
  7.3882 +     Default \\ref time string format.  This format is like strftime(3)
  7.3883 +     but allowed conversion char are as follows; %y -> Last 2 digit of
  7.3884 +     year, %b -> Month name, %m -> Monthe number(1-12), %d -> Day, %H ->
  7.3885 +     Hour, %M -> Minute, %S -> Second, %qx -> alphabetical-decimal
  7.3886 +     conversion of yymmdd.  %qX -> alphabetical-decimal conversion of
  7.3887 +     HHMMSS.  Beware defualt label-string should be always unique.  So
  7.3888 +     this format string should have both time part (%H+%M+%S or %qX) and
  7.3889 +     date part (%y+(%b|%m)+%d or %qx).
  7.3890 +
  7.3891 + -- Variable: YaTeX-ref-generate-label-function
  7.3892 +     Function to generate default label string for unnamed \\label{}s.
  7.3893 +     The function pointed to this value should take two arguments.  First
  7.3894 +     argument is LaTeX macro's name, second is macro's argument.  Here is
  7.3895 +     an example for using this value.
  7.3896 +            (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label)
  7.3897 +            (defun my-yatex-generate-label (command value)
  7.3898 +              (and (string= command "caption")
  7.3899 +                   (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t)
  7.3900 +                   (setq command (match-string 1)))
  7.3901 +              (let ((alist '(("chapter" . "chap")
  7.3902 +                             ("section" . "sec")
  7.3903 +                             ("subsection" . "subsec")
  7.3904 +                             ("figure" . "fig")
  7.3905 +                             ("table" . "tbl"))))
  7.3906 +                (if (setq command (cdr (assoc command alist)))
  7.3907 +                    (concat command ":" value)
  7.3908 +                  (YaTeX::ref-generate-label nil nil))))
  7.3909 +
  7.3910 +
  7.3911 +
  7.3912 +
  7.3913 +File: yatexe, Node: Sample definitions, Next: Hook variables, Prev: All customizable variables, Up: Lisp variables
  7.3914 +
  7.3915 +Sample definitions
  7.3916 +------------------
  7.3917 +
  7.3918 + For instance, to change the prefix key stroke to `ESC', and name of the
  7.3919 +user dictionary `~/src/emacs/yatexrc', and set `fill-prefix' to single TAB
  7.3920 +character, add the following `setq' to `~/.emacs'.
  7.3921 +
  7.3922 +             (setq YaTeX-prefix "\e"
  7.3923 +                   YaTeX-user-completion-table "~/src/emacs/yatexrc"
  7.3924 +                   YaTeX-fill-prefix "       ")
  7.3925 +
  7.3926 +
  7.3927 +
  7.3928 +File: yatexe, Node: Hook variables, Next: Hook file, Prev: Sample definitions, Up: Lisp variables
  7.3929 +
  7.3930 +Hook variables
  7.3931 +--------------
  7.3932 +
  7.3933 +  More customizations will be done by the hook-function defined in
  7.3934 +hook-variable `yatex-mode-hook'.  This is useful to define a shortcut key
  7.3935 +sequence to enter some environments other than `document' and `enumerate'
  7.3936 +etc.  The following statement defines `[prefix] ba' to enter
  7.3937 +`\begin{abstract}' ...  `=end{abstract}' immediately.
  7.3938 +
  7.3939 +             (setq yatex-mode-hook
  7.3940 +                   '(lambda() (YaTeX-define-begend-key "ba" "abstract")))
  7.3941 +
  7.3942 +        You should use functions `YaTeX-define-key', or
  7.3943 +`YaTeX-define-begend-key' to define all the key sequences of yatex-mode.
  7.3944 +
  7.3945 +
  7.3946 +
  7.3947 +File: yatexe, Node: Hook file, Prev: Hook variables, Up: Lisp variables
  7.3948 +
  7.3949 +Hook file
  7.3950 +---------
  7.3951 +
  7.3952 +  You can stuff all of YaTeX related expressions into a file named
  7.3953 +`yatexhks.el' if you have a lot of codes.  YaTeX automatically load this
  7.3954 +file at the initialization of itself.  Using `yatexhks.el' makes
  7.3955 +`yatex-mode-load-hook' unnecessary.
  7.3956 +
  7.3957 +
  7.3958 +
  7.3959 +File: yatexe, Node: Add-in functions, Next: Add-in generator, Prev: Lisp variables, Up: Customizations
  7.3960 +
  7.3961 +Add-in functions
  7.3962 +================
  7.3963 +
  7.3964 +  You can easily define a function to input detailed arguments with
  7.3965 +completion according to LaTeX environments or commands.
  7.3966 +
  7.3967 +
  7.3968 +What is add-in functions?
  7.3969 +-------------------------
  7.3970 +
  7.3971 +  When you input `tabular' environment, don't you think "I want YaTeX to
  7.3972 +complete its argument toward my favorite one such as `{|c|c|c|}'..."?
  7.3973 +Yes, you can define the function to complete arguments for any environment
  7.3974 +and any LaTeX commands.
  7.3975 +
  7.3976 +
  7.3977 +Procedure
  7.3978 +---------
  7.3979 +
  7.3980 +  Here is the procedure to define add-in functions.
  7.3981 +  1. Define the function
  7.3982 +  2. Put the function into `yatexhks.el'
  7.3983 +
  7.3984 +* Menu:
  7.3985 +
  7.3986 +* How the add-in function works::  
  7.3987 +* How the function is called::  
  7.3988 +* Useful functions for creating add-in::  
  7.3989 +* Contribution::                
  7.3990 +
  7.3991 +
  7.3992 +
  7.3993 +File: yatexe, Node: How the add-in function works, Next: How the function is called, Prev: Add-in functions, Up: Add-in functions
  7.3994 +
  7.3995 +How the add-in function works
  7.3996 +-----------------------------
  7.3997 +
  7.3998 +There are three types of add-in.
  7.3999 +
  7.4000 +  1. Option add-in
  7.4001 +  2. argument add-in
  7.4002 +  3. enclosing add-in
  7.4003 +
  7.4004 +"Option add-in" returns the LaTeX's optional parameters such as optional
  7.4005 +strings after `\begin{ENV}', optional strings between a section-type
  7.4006 +command and its first argument, and optional strings just after type
  7.4007 +maketitle-type command.  The following illustrates the name of add-in
  7.4008 +functions, where underlined strings are generated by add-in functions.
  7.4009 +
  7.4010 +     \begin{table}[ht]		(Function name: YaTeX:table)
  7.4011 +                  ~~~~
  7.4012 +     \put(100,200){}		(Function name: YaTeX:put)
  7.4013 +         ~~~~~~~~~
  7.4014 +     \sum_{i=0}^{n}		(Function name: YaTeX:sum)
  7.4015 +         ~~~~~~~~~~
  7.4016 +
  7.4017 +  Obviously, the function name is decided by concatenating the prefix
  7.4018 +`YaTeX:' and LaTeX command's name.
  7.4019 +
  7.4020 +  Another add-in type is "argument add-in", which completes arguments for
  7.4021 +section-type commands.
  7.4022 +
  7.4023 +     \newcommand{\foo}{bar}	(Function name: YaTeX::newcommand)
  7.4024 +                 ~~~~  ~~~
  7.4025 +
  7.4026 +  When the section-type command is inputted, the function named by
  7.4027 +concatenating `YaTeX::' and section-type command, is called automatically
  7.4028 +with an integer argument which indicates which argument of section-type
  7.4029 +command is being read.  Thus the add-in should determine the job referring
  7.4030 +the value of its argument.
  7.4031 +
  7.4032 +  "enclosing add-in" is for modifying and/or checking the region that will
  7.4033 +be enclosed by section-type commands via `[prefix] S'.  An enclosing
  7.4034 +add-in function will be called with two arguments, beginning of the
  7.4035 +enclosed region and end of the region.  Suppose you want to enclose the
  7.4036 +existing text `(a+b)/c' by `\frac{}'.
  7.4037 +
  7.4038 +     a/c
  7.4039 +     |  |
  7.4040 +     A  B
  7.4041 +
  7.4042 +You do set-mark-command at point A and then move to point B.  Typing
  7.4043 +`[prefix] S' and input `frac' enclose the region like this;
  7.4044 +
  7.4045 +     \frac{a/c}
  7.4046 +
  7.4047 +Normally, the expression `a/c' is translated to `\frac{a}{c}'. An
  7.4048 +enclosing add-in is useful for modifying `/' to `}{'.
  7.4049 +
  7.4050 +* Menu:
  7.4051 +
  7.4052 +* Defining option-add-in::      
  7.4053 +* Defining argument-add-in::    
  7.4054 +* Defining enclosing-add-in::   
  7.4055 +
  7.4056 +
  7.4057 +
  7.4058 +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
  7.4059 +
  7.4060 +Defining `option add-in'
  7.4061 +........................
  7.4062 +
  7.4063 +  If you want `{|c|c|c|}' for all `tabular' environment,
  7.4064 +
  7.4065 +             (defun YaTeX:tabular ()
  7.4066 +               "{|c|c|c|}")
  7.4067 +
  7.4068 +is enough.  If you want more complicated format, define as below.
  7.4069 +
  7.4070 +             (defun YaTeX:tabular ()
  7.4071 +               "{@{\\vrule width 1pt\\ }|||@{\\ \\vrule width 1pt}}")
  7.4072 +
  7.4073 +Note that the character `\' must be described as `\\' in Emacs-Lisp.  The
  7.4074 +next example reads the tabular format from keyboard.
  7.4075 +             (defun YaTeX:tabular ()
  7.4076 +               (concat "{" (read-string "Rule: ") "}"))
  7.4077 +
  7.4078 +
  7.4079 +
  7.4080 +File: yatexe, Node: Defining argument-add-in, Next: Defining enclosing-add-in, Prev: Defining option-add-in, Up: How the add-in function works
  7.4081 +
  7.4082 +Defining `argument add-in'
  7.4083 +..........................
  7.4084 +
  7.4085 +  This section describes how to define the add-in function for
  7.4086 +`\newcommand'.
  7.4087 +
  7.4088 +  The first argument of `\newcommand' begins always with `\'.  The second
  7.4089 +argument is usually so complex that we can not edit them in the
  7.4090 +minibuffer.  Here is the created function considering this.
  7.4091 +
  7.4092 +             (defun YaTeX::newcommand (n)	;n is argument position
  7.4093 +               (cond
  7.4094 +                ((= n 1)			;1st argument is macro name
  7.4095 +                 (read-string "Command: " "\\")) ;initial input `\' 
  7.4096 +                ((= n 2) "")			;do nothing when reading arg#2
  7.4097 +                (t nil)))
  7.4098 +
  7.4099 +  Note that when the `argument add-in' function return `nil', normal
  7.4100 +argument reader will be called.
  7.4101 +
  7.4102 +
  7.4103 +
  7.4104 +File: yatexe, Node: Defining enclosing-add-in, Prev: Defining argument-add-in, Up: How the add-in function works
  7.4105 +
  7.4106 +Defining `enclosing add-in'
  7.4107 +...........................
  7.4108 +
  7.4109 +  This section describes how to define the add-in function for text
  7.4110 +enclosed by `\frac{}'.
  7.4111 +
  7.4112 +  When enclosing the text `5/3' by `\frac{}', you might want to replace
  7.4113 +`/' with `}{'.  Enclosing function `YaTeX::frac-region' is called with two
  7.4114 +arguments, beginning of enclosed text and end of enclosed text.  The
  7.4115 +function is expected to replace `/' with `}{'.  Here is an example
  7.4116 +expression.
  7.4117 +
  7.4118 +     (defun YaTeX::frac-region (beg end)
  7.4119 +       (catch 'done
  7.4120 +         (while (search-forward "/" end t)
  7.4121 +           (goto-char (match-beginning 0))
  7.4122 +           (if (y-or-n-p "Replace this slash(/) with `}{'")
  7.4123 +     	  (throw 'done (replace-match "}{")))
  7.4124 +           (goto-char (match-end 0)))))
  7.4125 +
  7.4126 +
  7.4127 +
  7.4128 +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
  7.4129 +
  7.4130 +How the function is called
  7.4131 +--------------------------
  7.4132 +
  7.4133 +  YaTeX calls the add-in functions for specified begin-type, section-type,
  7.4134 +and maketitle-type command, if any.  `Option add-in' functions for
  7.4135 +begin-type are called when `\begin{ENV}' has been inserted, functions for
  7.4136 +section-type are called just before input of the first argument, and
  7.4137 +functions for maketitle-type is called after maketitle-type command has
  7.4138 +been inserted.  `Argument add-in' functions are called at each entry of
  7.4139 +arguments for section-type commands.
  7.4140 +
  7.4141 +
  7.4142 +
  7.4143 +File: yatexe, Node: Useful functions for creating add-in, Next: Contribution, Prev: How the function is called, Up: Add-in functions
  7.4144 +
  7.4145 +Useful functions for creating add-in
  7.4146 +------------------------------------
  7.4147 +
  7.4148 +  Many add-in functions for typical LaTeX commands are defined in
  7.4149 +`yatexadd.el'.  Those are also useful as references.  Here are the short
  7.4150 +descriptions on useful functions, where [F] means function, [A] means
  7.4151 +arguments, [D] means description.
  7.4152 +
  7.4153 +`[F]'
  7.4154 +     YaTeX:read-position
  7.4155 +`[A]'
  7.4156 +     Character list which can show up in the brackets
  7.4157 +`[D]'
  7.4158 +        Return the location specifier such as `[htb]'.  When nothing is
  7.4159 +     entered, omit [] itself.  If the possible characters are "htbp", call
  7.4160 +     this function as `(YaTeX:read-position "htbp")'
  7.4161 +
  7.4162 +`[F]'
  7.4163 +     YaTeX:read-coordinates
  7.4164 +`[A]'
  7.4165 +     Base prompt, X-axis prompt, Y-axis prompt (each optional)
  7.4166 +`[D]'
  7.4167 +       Read the coordinates with the prompt "BasePrompt X-axisPrompt:" for
  7.4168 +     X-axis, "BasePrompt Y-axisPrompt:" for Y-axis, and return it in the
  7.4169 +     form of "(X,Y)".  The default prompts are `Dimension', `X', `Y'
  7.4170 +     respectively.
  7.4171 +
  7.4172 +`[F]'
  7.4173 +     YaTeX:check-completion-type
  7.4174 +`[A]'
  7.4175 +     One of the symbols: 'begin, 'section, or 'maketitle
  7.4176 +`[D]'
  7.4177 +       Check the current completion type is specified one and cause error
  7.4178 +     if not. The variable `YaTeX-current-completion-type' holds the symbol
  7.4179 +     according to the current completion type.
  7.4180 +
  7.4181 +
  7.4182 +
  7.4183 +File: yatexe, Node: Contribution, Prev: Useful functions for creating add-in, Up: Add-in functions
  7.4184 +
  7.4185 +Contribution
  7.4186 +------------
  7.4187 +
  7.4188 +  If you make your own pretty function and you let it be in public, please
  7.4189 +send me the function.  I'm going to include it in the next release.
  7.4190 +
  7.4191 +
  7.4192 +
  7.4193 +File: yatexe, Node: Add-in generator, Prev: Add-in functions, Up: Customizations
  7.4194 +
  7.4195 +Add-in generator
  7.4196 +================
  7.4197 +
  7.4198 +  First, don't forget to read the section of add-in functions *Note Add-in
  7.4199 +functions::.  If you easily understand how to define them, there's no need
  7.4200 +to read this section.  But being not familiar with Emacs-Lisp, when you
  7.4201 +don't have clear idea what to do, this section describes how to get YaTeX
  7.4202 +make add-in function.
  7.4203 +
  7.4204 +  There are two methods of generation.  One is for fully interactive
  7.4205 +generator for beginners and another requires little knowledge of
  7.4206 +Emacs-Lisp.
  7.4207 +
  7.4208 +
  7.4209 +Generator for beginners
  7.4210 +-----------------------
  7.4211 +  The former generator is called by
  7.4212 +                           `M-x YaTeX-generate'
  7.4213 +
  7.4214 +strokes.  All you have to do is follow the guidances.  Defying them may
  7.4215 +cases the disaster (I wonder what is it???).  So when you make some
  7.4216 +mistake, it is recommendable to type `C-g' and start afresh.
  7.4217 +
  7.4218 +
  7.4219 +Simple generator
  7.4220 +----------------
  7.4221 +
  7.4222 +  The latter generator is invoked by the next sequence.  `M-x
  7.4223 +YaTeX-generate-simple' This generator can make both "option add-in" and
  7.4224 +"argument add-in" (*refer the section add-in functions* *Note How the
  7.4225 +add-in function works::), whereas `YaTeX-generate' cannot make "argument
  7.4226 +addin".
  7.4227 +
  7.4228 +  For example, assume you have the LaTeX command as follows.
  7.4229 +
  7.4230 +     	\epsinput[t](250,50){hoge.eps}{plain}{Picture of foo}
  7.4231 +     	         (A)  (B)     (1)      (2)      (3)
  7.4232 +     	(A)Optional parameter to specify the position
  7.4233 +     	   One of t(top), b(bottom), l(left), r(right)
  7.4234 +     	(B)Maximum size of frame
  7.4235 +     	(1)1st argument is filename of EPS file
  7.4236 +     	(2)2nd argument indicates
  7.4237 +     		plain		do nothing
  7.4238 +     		frame		make frame around image
  7.4239 +     		dframe		make double-frame around image
  7.4240 +     	   for included EPS file.
  7.4241 +     	(3)Caption for the picture
  7.4242 +
  7.4243 +  Now get start with generation.  Typing `M-x YaTeX-generate-simple'
  7.4244 +brings the prompt:
  7.4245 +                     (O)ption? (A)rgument?
  7.4246 +
  7.4247 +
  7.4248 +Generating "option add-in"
  7.4249 +..........................
  7.4250 +
  7.4251 +  Since (A), (B) above are optional argument, all we have to do to
  7.4252 +complete them is define the option add-in for them.  Let's generate the
  7.4253 +function to complete (A).
  7.4254 +
  7.4255 +                     M-x YaTeX-generate-simple RET
  7.4256 +                     epsinput RET
  7.4257 +                     o
  7.4258 +
  7.4259 +Typing as above leads the next prompt.
  7.4260 +
  7.4261 +     Read type(1): (S)tring (C)omplete (F)ile ([)option (P)osition co(O)rd. (q)uit
  7.4262 +
  7.4263 +  This asks that "Which type is the completion style of 1st argument?".
  7.4264 +Here are the possible completion style.
  7.4265 +
  7.4266 +`String'
  7.4267 +     read plain string
  7.4268 +`Complete'
  7.4269 +     read with completion
  7.4270 +`File'
  7.4271 +     read file name
  7.4272 +`Option'
  7.4273 +     read optional string (if string omitted, omit [] too)
  7.4274 +`Position'
  7.4275 +     read positional option (like [htbp])
  7.4276 +`Coord.'
  7.4277 +     read coordinates
  7.4278 +`Quit'
  7.4279 +     quit from generating
  7.4280 +
  7.4281 +  Since (A) is the optional argument to specify the location of included
  7.4282 +EPS file, the completion style is `Position', and the possible characters
  7.4283 +are t, b, l, and r.  To tell these information to generator, operate as
  7.4284 +follows.
  7.4285 +
  7.4286 +                     Read type(1).... 		p
  7.4287 +                     Acceptable characters:		tblr RET
  7.4288 +
  7.4289 +  (B) is coordinate.  So its completion style is coOrd.  We want a prompt
  7.4290 +meaning "Maximum size" when completion.
  7.4291 +
  7.4292 +                     Read type(2)....		o
  7.4293 +                     Prompt for coordinates:		Max size RET
  7.4294 +
  7.4295 +  That's all for optional argument.  Select quit.
  7.4296 +
  7.4297 +                     Read type(3)....		q
  7.4298 +
  7.4299 +  Then the generated option add-in function for \epsinput will be shown in
  7.4300 +the next window.
  7.4301 +
  7.4302 +
  7.4303 +Generating "argument add-in"
  7.4304 +............................
  7.4305 +
  7.4306 +  Next, create the argument add-in.  The arguments for \epsinput are EPS
  7.4307 +file name, framing style, and caption string in sequence.
  7.4308 +
  7.4309 +                     M-x YaTeX-generate-simple RET
  7.4310 +                     epsinput RET
  7.4311 +                     a
  7.4312 +
  7.4313 +  Above key strokes bring the prompt that asks the number of argument.
  7.4314 +Answer it with 3.
  7.4315 +
  7.4316 +                     How many arguments?: 3 RET
  7.4317 +
  7.4318 +  Then the generator asks the completion style and prompt for completion.
  7.4319 +Answer them.  `f' for FileName and prompt string.
  7.4320 +
  7.4321 +                     Read type(1)....		f
  7.4322 +                     Prompt for argument#1		EPS file name RET
  7.4323 +
  7.4324 +  The second argument is one of selected symbol.  So the completion type
  7.4325 +is `Completion'.
  7.4326 +
  7.4327 +                     Read type(2)....		c
  7.4328 +                     Prompt for argument#2		Include style RET
  7.4329 +
  7.4330 +  Then all the candidates ready to be read.  Type single RET after
  7.4331 +entering all.
  7.4332 +
  7.4333 +     		Item[1](RET to exit):		plain RET
  7.4334 +     		Item[2](RET to exit):		frame RET
  7.4335 +     		Item[3](RET to exit):		dframe RET
  7.4336 +     		Item[4](RET to exit):		RET
  7.4337 +
  7.4338 +  The following prompt asks whether the entered string must belong to
  7.4339 +candidates or not.  In this case, since the argument must be one of
  7.4340 +`plain', `frame', and `dframe', type `y'.
  7.4341 +
  7.4342 +                     Require match? (y or n)		y
  7.4343 +
  7.4344 +  The last argument is the caption string for which any completion is
  7.4345 +needed.
  7.4346 +
  7.4347 +                     Read type(3)....		s
  7.4348 +                     Prompt for argument#3		Caption RET
  7.4349 +                     default:			Figure of RET
  7.4350 +
  7.4351 +  Finally we'll get the argument add-in in the next window.
  7.4352 +
  7.4353 +
  7.4354 +Contribution
  7.4355 +------------
  7.4356 +
  7.4357 +  If you get your own pretty function and you let it be in public, please
  7.4358 +steel yourself in the happy atmosphere and do not send me the function.  I
  7.4359 +do know it is not fine because it is generated by yatexgen:-p.
  7.4360 +
  7.4361 +
  7.4362 +
  7.4363 +File: yatexe, Node: Etcetera, Next: Copying, Prev: Customizations, Up: Top
  7.4364 +
  7.4365 +Etcetera
  7.4366 +********
  7.4367 +
  7.4368 +  The standard completion tables provided in `yatex.el' contain a few
  7.4369 +LaTeX commands I frequently use.  This is to lessen the key strokes to
  7.4370 +complete entire word, because too many candidates rarely used often cause
  7.4371 +too many hits.  Therefore always try to use completion in order to enrich
  7.4372 +your dictionary, and you will also find `Wild Bird' growing suitable for
  7.4373 +your LaTeX style.
  7.4374 +
  7.4375 +  The package name `Wild Bird' is the English translation of Japanese
  7.4376 +title `Yachou', which is a trick on words of Japanese.
  7.4377 +
  7.4378 +
  7.4379 +
  7.4380 +File: yatexe, Node: Copying, Prev: Etcetera, Up: Top
  7.4381 +
  7.4382 +Copying
  7.4383 +*******
  7.4384 +
  7.4385 +  This program is distributed as a free software.  You can
  7.4386 +use/copy/modify/redistribute this software freely but with NO warranty to
  7.4387 +anything as a result of using this software.  Adopting code from this
  7.4388 +program is also free.  But I would not do contract act.
  7.4389 +
  7.4390 +Any reports and suggestions are welcome as long as I feel interests in
  7.4391 +this software.  My possible e-mail address is `yuuji@yatex.org'.  (as of
  7.4392 +Jan.2004) And there is mailing list for YaTeX.  Although the common
  7.4393 +language is Japanese, questions in English will be welcome.  To join the
  7.4394 +ML, send the mail whose subject is `append' to the address
  7.4395 +`yatex@yatex.org.  If you have some question, please ask to
  7.4396 +`yatex-admin@yatex.org'.
  7.4397 +
  7.4398 +  The specification of this software will be surely modified (depending on
  7.4399 +my feelings) without notice :-p.
  7.4400 +
  7.4401 +
  7.4402 +                                                              HIROSE Yuuji
  7.4403 +
  7.4404 +Tag table:
  7.4405 +Node: Top256
  7.4406 +Node: What is YaTeX?1597
  7.4407 +Node: Main features1970
  7.4408 +Node: Installation3499
  7.4409 +Node: Typesetting4276
  7.4410 +Node: Calling typesetter5406
  7.4411 +Node: Calling previewer7610
  7.4412 +Node: Printing out7971
  7.4413 +Node: %#notation8263
  7.4414 +Node: Changing typesetter8681
  7.4415 +Node: Splitting input files9045
  7.4416 +Node: Static region for typesetting10470
  7.4417 +Node: Lpr format11599
  7.4418 +Node: Controlling which command to invoke12672
  7.4419 +Node: Editing %# notation13265
  7.4420 +Node: Completion13809
  7.4421 +Node: Begin-type completion14369
  7.4422 +Node: Section-type completion17412
  7.4423 +Node: view-sectioning19847
  7.4424 +Node: Large-type completion21427
  7.4425 +Node: Maketitle-type completion22158
  7.4426 +Node: Arbitrary completion22710
  7.4427 +Node: End completion23100
  7.4428 +Node: Accent completion23570
  7.4429 +Node: Image completion24187
  7.4430 +Node: Greek letters completion26444
  7.4431 +Node: Local dictionaries27171
  7.4432 +Node: Commenting out28108
  7.4433 +Node: Cursor jump29567
  7.4434 +Node: Jump to corresponding object29879
  7.4435 +Node: Invoking image processor31280
  7.4436 +Node: Jump to main file32623
  7.4437 +Node: Jumping around the environment32988
  7.4438 +Node: Jumping to last completion position33406
  7.4439 +Node: Changing and Deleting33915
  7.4440 +Node: Changing LaTeX commands34307
  7.4441 +Node: Killing LaTeX commands35484
  7.4442 +Node: Filling36669
  7.4443 +Node: Updation of includeonly38520
  7.4444 +Node: What column39317
  7.4445 +Node: Intelligent newline40402
  7.4446 +Node: Usepackage checker42056
  7.4447 +Node: Online help42647
  7.4448 +Node: Browsing file hierarchy44322
  7.4449 +Node: Cooperation with other packages46059
  7.4450 +Node: Customizations46764
  7.4451 +Node: Lisp variables47098
  7.4452 +Node: All customizable variables48102
  7.4453 +Node: Sample definitions57901
  7.4454 +Node: Hook variables58414
  7.4455 +Node: Hook file59118
  7.4456 +Node: Add-in functions59457
  7.4457 +Node: How the add-in function works60317
  7.4458 +Node: Defining option-add-in62516
  7.4459 +Node: Defining argument-add-in63238
  7.4460 +Node: Defining enclosing-add-in64120
  7.4461 +Node: How the function is called64974
  7.4462 +Node: Useful functions for creating add-in65650
  7.4463 +Node: Contribution67055
  7.4464 +Node: Add-in generator67329
  7.4465 +Node: Etcetera72701
  7.4466 +Node: Copying73306
  7.4467 +
  7.4468 +End tag table
     8.1 --- a/docs/yatexe.tex	Thu Jan 12 12:27:20 2012 +0900
     8.2 +++ b/docs/yatexe.tex	Mon May 14 18:39:05 2012 +0900
     8.3 @@ -2,10 +2,13 @@
     8.4  \input texinfo.tex
     8.5  @setfilename yatexe
     8.6  @settitle Yet Another tex-mode for Emacs
     8.7 +@direntry
     8.8 +* YaTeX-e: (yatexe).    Yet Another tex-mode for Emacs (English).
     8.9 +@end direntry
    8.10  
    8.11  @iftex
    8.12  @c @syncodeindex fn cp
    8.13 -@c Last modified Thu May 27 18:04:10 2010 on firestorm
    8.14 +@c Last modified Fri May 11 15:40:49 2012 on firestorm
    8.15  @syncodeindex vr cp
    8.16  @end iftex
    8.17  
    8.18 @@ -15,7 +18,7 @@
    8.19  @subtitle Yet Another tex-mode for emacs
    8.20  @title Wild Bird
    8.21  @subtitle // YaTeX //
    8.22 -@author @copyright{} 1991-2003 by    HIROSE, Yuuji [yuuji@@yatex.org]
    8.23 +@author @copyright{} 1991-2012 by    HIROSE, Yuuji [yuuji@@yatex.org]
    8.24  @end titlepage
    8.25  
    8.26  @node Top, What is YaTeX?, (dir), (dir)
    8.27 @@ -48,6 +51,7 @@
    8.28  * Etcetera::                    YaTeX is acquisitive.
    8.29  * Copying::                     Redistribution
    8.30  
    8.31 +@end menu
    8.32  
    8.33  @node What is YaTeX?, Main features, Top, Top
    8.34  @comment  node-name,  next,  previous,  up
    8.35 @@ -90,8 +94,8 @@
    8.36  @item Document files hierarchy browser (@kbd{C-c d})
    8.37  @item Adding automatically \usepackage corresponding to inputting LaTeX
    8.38        macro with completion
    8.39 -@item Allow you to forget creating \label{}s, \ref or \cite completion
    8.40 -      automatically generate labels.
    8.41 +@item Allow you to forget creating \label@{@}s, \ref@{@} or \cite@{@}
    8.42 +      completion automatically generate labels.
    8.43  @end itemize
    8.44  
    8.45  @node Installation, Typesetting, Main features, Top
    8.46 @@ -148,6 +152,8 @@
    8.47  @item [prefix] t e
    8.48          @dots{} invoke latex on current environment or whole
    8.49           portion of current formulas in math-mode.
    8.50 +@item [prefix] t d
    8.51 +	@dots{} invoke dvipdfmx after successful typesetting
    8.52  @item [prefix] t k
    8.53          @dots{} kill current typesetting process
    8.54  @item [prefix] t b
    8.55 @@ -200,7 +206,7 @@
    8.56  by @code{%#BEGIN} and @code{%#END} marks.  Selected region will be
    8.57  copied to the temporary file @file{texput.tex} with the same preamble
    8.58  as the main file of current editing sources.  Be sure to put
    8.59 -all local macro settings in preamble, not after @code{\begin{document}}.
    8.60 +all local macro settings in preamble, not after @code{\begin@{document@}}.
    8.61    The method of specification of the region is shown in the
    8.62  section @xref{%#notation}.
    8.63  
    8.64 @@ -252,6 +258,7 @@
    8.65  * Splitting input files::       
    8.66  * Static region for typesetting::  
    8.67  * Lpr format::                  
    8.68 +* Controlling which command to invoke::  
    8.69  * Editing %# notation::         
    8.70  @end menu
    8.71  
    8.72 @@ -287,7 +294,7 @@
    8.73  description makes it convenient to use ghostview as dvi-previewer.
    8.74  
    8.75  @example
    8.76 -        %#!latex main ; dvi2ps main.dvi > main
    8.77 +        %#!latex main && dvi2ps main.dvi > main
    8.78  @end example
    8.79  
    8.80  @noindent
    8.81 @@ -362,7 +369,7 @@
    8.82  @code{%#BEGIN} alone at the middle of very long text.  Do not forget to
    8.83  erase @code{%#BEGIN} @code{%#END} pair.
    8.84  
    8.85 -@node Lpr format, Editing %# notation, Static region for typesetting, %#notation
    8.86 +@node Lpr format, Controlling which command to invoke, Static region for typesetting, %#notation
    8.87  @comment  node-name,  next,  previous,  up
    8.88  @section Lpr format
    8.89  @cindex lpr format
    8.90 @@ -400,7 +407,29 @@
    8.91          %#LPR dvi2ps %s | lpr
    8.92  @end example
    8.93  
    8.94 -@node Editing %# notation,  , Lpr format, %#notation
    8.95 +@node Controlling which command to invoke, Editing %# notation, Lpr format, %#notation
    8.96 +@comment  node-name,  next,  previous,  up
    8.97 +@section Controlling which command to invoke
    8.98 +
    8.99 +These %# notation below can control which command to invoke for
   8.100 +La@TeX{} related process.
   8.101 +
   8.102 +@table @code
   8.103 + @item %#BIBTEX
   8.104 +	@dots{} Command line for makeindex ([prefix] t i)
   8.105 + @item %#MAKEINDEX
   8.106 +	@dots{} Command line for bibtex ([prefix] t b)
   8.107 +@end table
   8.108 +
   8.109 +If you want to invoke ``makeidx hogehoge'' to update index,
   8.110 +put the next line some upper place in the source, for example.
   8.111 +
   8.112 +@example
   8.113 +%#MAKEINDEX makeidx hogehoge
   8.114 +@end example
   8.115 +
   8.116 +
   8.117 +@node Editing %# notation,  , Controlling which command to invoke, %#notation
   8.118  @comment  node-name,  next,  previous,  up
   8.119  @section Editing %# notation
   8.120  
   8.121 @@ -917,7 +946,7 @@
   8.122    `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard
   8.123  @end example
   8.124  
   8.125 -@noindent 
   8.126 +@noindent
   8.127  In this menu, typing @kbd{u} updates your `user dictionary', @kbd{l}
   8.128  updates your local dictionary, @kbd{n} updates only on-memory dictionary
   8.129  which go through only current Emacs session, and @kbd{d} updates no
   8.130 @@ -1365,7 +1394,7 @@
   8.131          @dots{} Intelligent newline
   8.132  @end table
   8.133  
   8.134 -@noindent 
   8.135 +@noindent
   8.136  in these environments inserts the contents corresponding to the current
   8.137  environment in the next line.  (At the begin-type completion, this
   8.138  contents can be removed by `undo'.)  In @code{tabular} environment, for
   8.139 @@ -1824,7 +1853,7 @@
   8.140  
   8.141  @defvar YaTeX-singlecmd-suffix
   8.142  Suffix which is always inserted after maketitle-type macros.
   8.143 -@code{"{}"} is recommended.
   8.144 +@code{"@{@}"} is recommended.
   8.145  @end defvar
   8.146  
   8.147  @defvar YaTeX-package-alist-private
   8.148 @@ -1870,7 +1899,7 @@
   8.149  @end defvar
   8.150  
   8.151  @defvar YaTeX-ref-generate-label-function
   8.152 -Function to generate default label string for unnamed \\label{}s.
   8.153 +Function to generate default label string for unnamed \\label@{@}s.
   8.154  The function pointed to this value should take two arguments.
   8.155  First argument is LaTeX macro's name, second is macro's argument.
   8.156  Here is an example for using this value.
   8.157 @@ -1878,7 +1907,7 @@
   8.158    (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label)
   8.159    (defun my-yatex-generate-label (command value)
   8.160      (and (string= command "caption")
   8.161 -         (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t)
   8.162 +         (re-search-backward "\\\\begin@{\\(figure\\|table\\)@}" nil t)
   8.163           (setq command (match-string 1)))
   8.164      (let ((alist '(("chapter" . "chap")
   8.165                     ("section" . "sec")
   8.166 @@ -2027,7 +2056,7 @@
   8.167  will be enclosed by section-type commands via @kbd{[prefix] S}.  An
   8.168  enclosing add-in function will be called with two arguments, beginning of
   8.169  the enclosed region and end of the region.  Suppose you want to enclose
   8.170 -the existing text @code{(a+b)/c} by @code{\frac{}}.
   8.171 +the existing text @code{(a+b)/c} by @code{\frac@{@}}.
   8.172  
   8.173  @display
   8.174  a/c
   8.175 @@ -2039,7 +2068,7 @@
   8.176  @kbd{[prefix] S} and input @code{frac} enclose the region like this;
   8.177  
   8.178  @display
   8.179 -\frac{a/c}
   8.180 +\frac@{a/c@}
   8.181  @end display
   8.182  
   8.183  Normally, the expression @code{a/c} is translated to
   8.184 @@ -2120,8 +2149,8 @@
   8.185    (catch 'done
   8.186      (while (search-forward "/" end t)
   8.187        (goto-char (match-beginning 0))
   8.188 -      (if (y-or-n-p "Replace this slash(/) with `}{'")
   8.189 -	  (throw 'done (replace-match "}{")))
   8.190 +      (if (y-or-n-p "Replace this slash(/) with `@}@{'")
   8.191 +	  (throw 'done (replace-match "@}@{")))
   8.192        (goto-char (match-end 0)))))
   8.193  @end lisp
   8.194  
     9.1 --- a/docs/yatexj	Thu Jan 12 12:27:20 2012 +0900
     9.2 +++ b/docs/yatexj	Mon May 14 18:39:05 2012 +0900
     9.3 @@ -1,2132 +1,2168 @@
     9.4 -Info file: yatexj,    -*-Text-*-
     9.5 -produced by `texinfo-format-buffer'
     9.6 -from file `yatexj.tex'
     9.7 -using `texinfmt.el' version 2.38 of 3 July 1998.
     9.8 -
     9.9 -
    9.10 -
    9.11 -
    9.12 -
    9.13 -
    9.14 -File: yatexj, Node: Top, Next: Intro, Prev: (dir), Up: (dir)
    9.15 -
    9.16 -* Menu:
    9.17 -
    9.18 -* Intro::                       $B$O$8$a$K(B
    9.19 -* Terminology::                 $B%^%K%e%"%k;2>H>e$NCm0U(B
    9.20 -* Main features::               $B<g$J5!G=(B
    9.21 -* Installation::                $B%$%s%9%H!<%k(B
    9.22 -* Invocation::                  $B%W%m%;%95/F0(B
    9.23 -* %#notation ::                 %#$B5-K!(B
    9.24 -* Completion::                  $BJd40F~NO(B
    9.25 -* Local dictionary::            $B%m!<%+%k<-=q(B
    9.26 -* Commenting out::              $B%3%a%s%H%"%&%H(B
    9.27 -* Cursor jump::                 $B%+!<%=%k%8%c%s%W(B
    9.28 -* Modifying/Deleting::          LaTeX$B%3%^%s%I$NJQ99(B/$B:o=|(B
    9.29 -* Filling::                     $B7eB7$((B
    9.30 -* Includeonly::                 $B>!<j$K(B includeonly
    9.31 -* What column::                 $B%+%i%`0LCV%,%$%I(B
    9.32 -* Intelligent newline::         $B$*$^$+$;2~9T(B
    9.33 -* Usepackage cheker::           $B@h2s$j(Busepackage
    9.34 -* Changing mode of YaTeX::      $BLnD;F0:n%b!<%IJQ99(B
    9.35 -* Online help::                 LaTeX$B%*%s%i%$%s%X%k%W(B
    9.36 -* Inclusion hierarchy browser::  $B%U%!%$%kJ,3d3,AX9=B$$NI=<((B
    9.37 -* Cooperation with other packages::  $BB>%Q%C%1!<%8$H$NO"7H(B
    9.38 -* Customizations::              $B%+%9%?%^%$%:(B
    9.39 -* Etc::                         $B$=$NB>(B
    9.40 -* Copying::                     $B<h$j07$$(B
    9.41 -* Concept Index::               $B:w0z(B
    9.42 -
    9.43 -
    9.44 -
    9.45 -
    9.46 -File: yatexj, Node: Intro, Next: Terminology, Prev: Top, Up: Top
    9.47 -
    9.48 -$B$O$8$a$K(B
    9.49 -********
    9.50 -
    9.51 -  $BLnD;$O!"(BGNU Emacs $B$G(B LaTeX $BMQ$NJ8=q$r:n@.$9$k;~$K(B pLaTeX $B$J$I$N%?%$%W%;%C(B
    9.52 -$B%H%3%^%s%I$d!"%W%l%t%e!<%"$N5/F0$r(B Emacs $BJT=82hLLCf$+$i9T$($k$h$&$K$9$k$H(B
    9.53 -$B6&$K!"3HD%@-$N9b$$<o!9$NJd405!G=$K$h$j%=!<%9%F%-%9%H$NJT=8$r;Y1g$7$^$9!#$5(B
    9.54 -$B$i$K(B LaTeX $B%3%^%s%I$N%*%s%i%$%s%X%k%W$K$h$j%^%K%e%"%k$rD4$Y$k<j4V$r7Z8:$7(B
    9.55 -$B$^$9!#(B
    9.56 -
    9.57 -  English manual *Note Top: (yatexe)Top.
    9.58 -
    9.59 -
    9.60 -
    9.61 -File: yatexj, Node: Terminology, Next: Main features, Prev: Intro, Up: Top
    9.62 -
    9.63 -$BK\%^%K%e%"%k;2>H>e$NCm0U(B
    9.64 -************************
    9.65 -
    9.66 -  $BK\%^%K%e%"%k$G$O0J2<$NI=5-$rMQ$$$^$9!#(B
    9.67 -
    9.68 -   * begin$B7?%3%^%s%I(B
    9.69 -
    9.70 -     `\begin{$B4D6-(B} $B!A(B \end{$B4D6-(B}'$B$H$$$&7A<0$N(BLaTeX$B%3%^%s%I$r;X$7$^$9!#(B
    9.71 -     begin$B7?%3%^%s%I$rJd40F~NO$9$k$3$H$r(Bbegin$B7?Jd40$H8F$S$^$9!#(B
    9.72 -
    9.73 -   * section$B7?%3%^%s%I(B
    9.74 -
    9.75 -     `\section{$B%?%$%H%k(B}'$B$d(B`\mbox{$BFbMF(B}'$B$N$h$&$K0z?t$r<h$k(BLaTeX$B%3%^%s%I$r(B
    9.76 -     $B;X$7$^$9!#(B
    9.77 -
    9.78 -   * maketitle$B7?%3%^%s%I(B
    9.79 -
    9.80 -     `\maketitle'$B$d(B`\tableofcontents'$B$N$h$&$K0z?t$r<h$i$J$$(BLaTeX$B%3%^%s%I$r(B
    9.81 -     $B;X$7$^$9!#(B
    9.82 -
    9.83 -   * large$B7?%3%^%s%I(B
    9.84 -
    9.85 -     `{\large ...}' $B$d(B `{\tt ...}' $B$N$h$&$J%U%)%s%H(B/$B%5%$%:;XDj;R$r;X$7$^$9!#(B
    9.86 -
    9.87 -   * `[prefix]'
    9.88 -
    9.89 -     $BLnD;$N5!G=$r8F$S=P$9$?$a$N%W%j%U%#%/%9%-!<!#%G%U%)%k%H$G$O(B`C-c'$B$K3d$j(B
    9.90 -     $BEv$F$i$l$F$$$k$N$G!"FC$KJQ99$7$F$$$J$$>l9gK\%^%K%e%"%k$N(B `[prefix]' 
    9.91 -     $B$H$$$&I=5-$O!"(B`C-c' $B$HFI$_49$($F$/$@$5$$!#(B
    9.92 -
    9.93 -
    9.94 -
    9.95 -File: yatexj, Node: Main features, Next: Installation, Prev: Terminology, Up: Top
    9.96 -
    9.97 -$B<g$J5!G=(B
    9.98 -********
    9.99 -
   9.100 -   * $B%?%$%W%;%C%?$d%W%l%t%e!<%"$J$I$NJT=82hLL$+$i$N5/F0(B(`C-c t')
   9.101 -   * $B%+!<%=%k0LCV$K$h$i$J$$8GDj%j%8%g%s$NItJ,%?%$%W%;%C%H(B
   9.102 -   * \includeonly$B$N%o%s%?%C%A99?7(B
   9.103 -   * $B%(%i!<2U=j$X$N<+F0%8%c%s%W(B(`C-c '')
   9.104 -   * `\begin{}, \end{}, \section...' $B$J$I$N(B LaTeX $B%3%^%s%I$NJd40F~NO(B(`C-c
   9.105 -     b', `C-c s', `C-c l', `C-c m')
   9.106 -   * $B4{$KF~NO$7$?%F%-%9%H$r4D6-$d%3%^%s%I0z?t$NCf$K<h$j9~$`3g$jJd40(B(`C-u'
   9.107 -     +$BDL>oJd40%-!<(B)
   9.108 -   * $B%;%/%7%g%s6h@Z$jF~NO;~$NJ8=q9=B$%"%&%H%i%$%sI=<((B
   9.109 -   * $B%;%/%7%g%s%3%^%s%I$N0l3g%7%U%H(B (*Note view-sectioning::)
   9.110 -   * $BJd40<-=q$N3X=,(B
   9.111 -   * LaTeX $B$N4D6-$d%3%^%s%I$K1~$8$?%,%$%IIU$-0z?tF~NO(B
   9.112 -   * $BLnD;$K$J$$%,%$%IIU$-0z?tF~NO4X?t$N<+F0@8@.(B(`yatexgen.el')
   9.113 -   * LaTeX $B%3%^%s%I$N:o=|(B/$BJQ99(B(`C-c k', `C-c c')
   9.114 -   * $B%U%!%$%k4V!"(B`\begin'<->`\end'$B4V!"(B`\ref'<->`\label'$B4V!"(B
   9.115 -     `\cite'<->`\bibitem'$B%8%c%s%W(B(`C-c g')
   9.116 -   * $B0l3g%3%a%s%H%"%&%H(B/$B%"%s%3%a%s%H%"%&%H(B(`C-c >', `C-c <', `C-c ,', `C-c
   9.117 -     .')
   9.118 -   * $B%"%/%;%s%H5-9f(B/$B?t<04D6-MQ%3%^%s%I(B/$B%.%j%7%cJ8;z$NF~NO;Y1g(B(`C-c a',
   9.119 -     `;', `/')
   9.120 -   * tabular/array$B4D6-$N%+%i%`0LCV%,%$%I(B
   9.121 -   * $BI8=`E*(B LaTeX $B%3%^%s%I$N%*%s%i%$%s%X%k%W(B(`C-c ?', `C-c /')
   9.122 -   * $B%I%-%e%a%s%H$N%$%s%/%k!<%I9=B$$N;k3PE*I=<($H%P%C%U%!@Z$jBX$((B(`C-c d')
   9.123 -   * $BJd40F~NO$7$?%^%/%m$K1~$8$FI,MW$J(B \userpackage $B$rF~$l$F$/$l$k@h2s$j(B
   9.124 -     userpackage
   9.125 -   * \label$B$rBG$D$3$H$O$b$&K:$l$h$&(B! ref$B$d(Bcite$BJd40F~NO$G<+F0@8@.$7$^$9(B
   9.126 -
   9.127 -
   9.128 -
   9.129 -File: yatexj, Node: Installation, Next: Invocation, Prev: Main features, Up: Top
   9.130 -
   9.131 -$B5/F0K!(B
   9.132 -******
   9.133 -
   9.134 -$BLnD;5/F0$N$?$a$N@_Dj(B
   9.135 -====================
   9.136 -
   9.137 -  ~/.emacs$B$K2<$N(B2$B9`L\$r2C$($^$9!#(B
   9.138 -
   9.139 -     (setq auto-mode-alist
   9.140 -           (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
   9.141 -     (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
   9.142 -
   9.143 -$B<!$KLnD;$N(B emacs-lisp $B%U%!%$%k72$rCV$/%G%#%l%/%H%j$r(B load-path $B$K2C$($^$9!#(B
   9.144 -$B$?$H$($P!"(B `~/src/emacs/yatex'$B$KCV$/$N$G$"$l$P!"(B
   9.145 -
   9.146 -     (setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path))
   9.147 -
   9.148 -$B$J$I$H$7$^$9!#(B
   9.149 -
   9.150 -  $B0J>e$N@_Dj$K$h$j!"3HD%;R$,(B .tex $B$G$"$k%U%!%$%k$rJT=8$9$k$H<+F0E*$KLnD;$,(B
   9.151 -$B%m!<%I$5$l$^$9!#LnD;$,@5>o$K5/F0$G$-$?$H$-$O%b!<%I%i%$%s$NI=<($,!V$d$F$U!W(B
   9.152 -$B$KJQ$o$j$^$9!#(B
   9.153 -
   9.154 -
   9.155 -$B%?%$%W%;%C%?(B/$B%W%l%t%e!<%"4D6-$N@_Dj(B
   9.156 -===================================
   9.157 -
   9.158 -  $BMxMQ$9$k30It%W%m%0%i%`$K4X$9$k0J2<$NJQ?t$r3NG'$7!"I,MW$J$i@5$7$$CM$KJQ99(B
   9.159 -$B$7$^$9!#(B
   9.160 -`tex-command'
   9.161 -             ... $B5/F0$9$k%?%$%W%;%C%?$N%3%^%s%IL>(B
   9.162 -`dvi2-command'
   9.163 -             ... $B5/F0$9$k%W%l%t%e!<%"$N%3%^%s%IL>(B
   9.164 -`NTT-jTeX'
   9.165 -             ... $B2~9T(B+$B%$%s%G%s%H$K$h$C$F!"%?%$%W%;%C%H8e$N;z4V$,6u$$$F$7$^(B
   9.166 -     $B$&$N$rM^@)$9$k>l9g$K(Bt$B$K$9$k(B($B8E$$(BNTT-jTeX$B$G82Cx$K8=$l$k(B)$B!#6qBNE*$K$O!"(B
   9.167 -     fill$B$9$k$H$-$K3F9T$N=*$o$j$K(B%$B$rIU2C$9$k$h$&$K$J$k!#(B
   9.168 -`YaTeX-kanji-code'
   9.169 -             ... $BJ8=q$r:n@.$9$k;~$N4A;z%3!<%I(B
   9.170 -`dviprint-command-format'
   9.171 -             ... $B%U%!%$%k$N0u:~$K;H$o$l$k%3%^%s%INs$N=q<0(B
   9.172 -`makeindex-command'
   9.173 -             ... makeindex$B%3%^%s%I(B
   9.174 -
   9.175 -$B$3$l$i$rJQ99$9$k>l9g$O!"$d$O$j(B`~/.emacs'$B$K$F!"$?$H$($P(B(setq tex-command
   9.176 -"bigjlatex") $B$N$h$&$K$7$F$/$@$5$$!#$I$N$h$&$JCM$r%;%C%H$9$l$PNI$$$+$K$D$$(B
   9.177 -$B$F$O!"(B*Note All customizable variables::$B$r;2>H$7$F$/$@$5$$!#(B
   9.178 -
   9.179 -
   9.180 -
   9.181 -
   9.182 -File: yatexj, Node: Invocation, Next: %#notation, Prev: Installation, Up: Top
   9.183 -
   9.184 -latex$B%3%^%s%I5/F0(B
   9.185 -*****************
   9.186 -
   9.187 -LaTeX$B%=!<%9$NJT=8Cf!"<!$N%-!<F~NO$K$h$j!"(Bplatex $B$J$I$N%?%$%W%;%C%H%W%m%0%i(B
   9.188 -$B%`(B($B0J8e%?%$%W%;%C%?$H8F$V(B)$B!"%W%l%t%e!<%"$J$I$N5/F0$,$G$-$^$9!#(B
   9.189 -
   9.190 -`[prefix] t j'
   9.191 -             ... $B%?%$%W%;%C%?(B(platex)$B5/F0(B
   9.192 -`[prefix] t r'
   9.193 -             ... $B%?%$%W%;%C%?5/F0(B($BNN0h;XDj(B)
   9.194 -`[prefix] t e'
   9.195 -             ... $B%?%$%W%;%C%?5/F0(B($B%]%$%s%H0LCV$N4D6-$^$?$O?t<0%b!<%I$N$_BP(B
   9.196 -     $B>N(B)
   9.197 -`[prefix] t k'
   9.198 -             ... $BF0:nCf$N%?%$%W%;%C%?$NDd;_(B
   9.199 -`[prefix] t b'
   9.200 -             ... jbibtex$B5/F0(B
   9.201 -`[prefix] t i'
   9.202 -             ... makeindex$B5/F0(B
   9.203 -`[prefix] t d'
   9.204 -             ... $B%?%$%W%;%C%?$H(Bdvipdfmx$B5/F0(B
   9.205 -`[prefix] t p'
   9.206 -             ... $B%W%l%t%e!<%"5/F0(B
   9.207 -`[prefix] t l'
   9.208 -             ... lpr($B%W%j%s%H%"%&%HMQ(B)$B%3%^%s%I5/F0(B
   9.209 -`[prefix] t s'
   9.210 -             ... xdvi -remote $B$G$N%5!<%A(B
   9.211 -
   9.212 -* Menu:
   9.213 -
   9.214 -* Calling typesetter::          $B%?%$%W%;%C%?5/F0(B
   9.215 -* Calling previewer::           $B%W%l%t%e!<%"5/F0(B
   9.216 -* Print out::                   $B%W%j%s%H%"%&%HMQ%3%^%s%I$N5/F0(B
   9.217 -
   9.218 -
   9.219 -
   9.220 -File: yatexj, Node: Calling typesetter, Next: Calling previewer, Prev: Invocation, Up: Invocation
   9.221 -
   9.222 -$B%?%$%W%;%C%?5/F0(B
   9.223 -================
   9.224 -
   9.225 -  $B%?%$%W%;%C%?$r5/F0$9$k$H!"JT=8%&%#%s%I%&$,(B2$B$D$KJ,3d$5$l!"JRJ}$N%&%#%s%I(B
   9.226 -$B%&$K%?%$%W%;%C%H2hLL$,I=<($5$l$^$9!#=PNO$5$l$k%a%C%;!<%8$HO"F0$7%?%$%W%;%C(B
   9.227 -$B%H%P%C%U%!$O<+F0E*$K%9%/%m!<%k$7$^$9!#$b$7!"ESCf$G%(%i!<$,5/$3$C$F;_$^$C$F(B
   9.228 -$B$7$^$C$?>l9g$K$O%?%$%W%;%C%H%P%C%U%!$K0\$j!"(B(`C-x o') $B%?%$%W%;%C%?$N=P$7$F(B
   9.229 -$B$$$k(B ? $B%W%m%s%W%H$KBP$7$F!"(B`x' ($B=hM}$NCfCG(B)$B$J$I$N;X<($rAw$k$3$H$,$G$-$^$9!#(B
   9.230 -$B%(%i!<$r=$@5$9$k>l9g$O!"(B
   9.231 -
   9.232 -`[prefix] ''
   9.233 -`(prefix+$B%"%]%9%H%m%U%#(B)'
   9.234 -             ... $BD>A0$N%(%i!<H/@89T$X%8%c%s%W(B
   9.235 -
   9.236 -$B$rF~NO$9$k$3$H$K$h$j!"%?%$%W%;%C%?$,%(%i!<$rH/@8$7$?9T$K0\$k$3$H$,$G$-$^$9!#(B
   9.237 -$B$^$?!"%?%$%W%;%C%?$N=PNO$9$k(B overfull hbox $B$J$I$N%&%)!<%K%s%09T$K$bBP1~$7(B
   9.238 -$B$F$$$^$9$N$G!"=g<!(B `[prefix] '' $B$r2!$9$3$H$K$h$j!"0l$DA0$N%&%)!<%K%s%0H/@8(B
   9.239 -$B9T$K%8%c%s%W$7$F$$$-$^$9!#(B
   9.240 -
   9.241 -  $B$b$7!"5$$K$J$k%(%i!<9T$,$"$C$?>l9g$O!"%?%$%W%;%C%H%P%C%U%!$G!"%(%i!<$NI=(B
   9.242 -$B<($5$l$F$$$k9T$K%+!<%=%k$r9g$o$;%9%Z!<%9%-!<$r2!$9$H(B LaTeX $B%=!<%9$NBP1~$9(B
   9.243 -$B$k9T$K%8%c%s%W$7$^$9!#(B
   9.244 -
   9.245 -
   9.246 -$BNN0h%?%$%W%;%C%H(B
   9.247 -----------------
   9.248 -
   9.249 -  $B%]%$%s%H$H%^!<%/$N4V!"$"$k$$$O%F%-%9%HCf$KKd$a9~$s$@(B `%#BEGIN' $B$H(B`%#END'
   9.250 -$B$N4V$NNN0h(B(*Note %#notation::)$B$@$1$r@Z$j<h$C$F%?%$%W%;%C%H$9$k$3$H$,$G$-$^(B
   9.251 -$B$9!#$3$N>l9g%a%$%s%U%!%$%k$N%W%j%"%s%V%k$,0l;~%U%!%$%k$N%W%j%"%s%V%k$H$7$F(B
   9.252 -$B;H$o$l$^$9!#$7$?$,$C$F%W%j%"%s%V%k$K$J$$%^%/%mDj5A$,NN0hFb$K$"$k$H%(%i!<$K(B
   9.253 -$B$J$j$^$9!#NN0h%?%$%W%;%C%H$r;H$&>l9g!"I,$:%^%/%mDj5A$O%W%j%"%s%V%k(B
   9.254 -(`\begin{document}'$B$h$jA0(B)$B$KCV$/$h$&$K$7$F2<$5$$!#0l;~%U%!%$%k$O%a%$%s%U%!(B
   9.255 -$B%$%k$N$"$k%G%#%l%/%H%j$N(B`texput.tex'$B$H$$$&L>A0$G=PNO$5$l$k$N$G!">e=q$-$K$O(B
   9.256 -$BCm0U$7$F$/$@$5$$!#(B
   9.257 -
   9.258 -
   9.259 -$B4D6-%?%$%W%;%C%H(B
   9.260 -----------------
   9.261 -
   9.262 -
   9.263 -  `[prefix] te' $B$r2!$9$H!"%]%$%s%H0LCV$N:G$bFbB&$N4D6-!"$^$?$O?t<0%b!<%IFb(B
   9.264 -$B$N>l9g$O$=$N?t<0%b!<%IA4BN$,<+F0E*$KNN0hA*Br$5$l$F!"NN0h%?%$%W%;%C%H$r8F$S(B
   9.265 -$B=P$7$^$9!#(Btabular$B4D6-$d?t<0%b!<%I$GJ#;($J$b$N$r:n$C$F$$$k>l9g$O3N$+$a$?$$(B
   9.266 -$BItJ,$@$1$r3NG'$G$-$k$N$GJXMx$G$9!#$3$l$b(B `texput.tex' $B$K3:EvItJ,$r=q$-=P$7(B
   9.267 -$B$^$9!#%W%l%t%e!<%"$G(B `texput.dvi' $B$r3+$$$?$^$^$K$7$F$*$1$P=$@5$H3NG'$,AGAa(B
   9.268 -$B$/$G$-$k$G$7$g$&!#(B
   9.269 -
   9.270 -
   9.271 -
   9.272 -File: yatexj, Node: Calling previewer, Next: Print out, Prev: Calling typesetter, Up: Invocation
   9.273 -
   9.274 -$B%W%l%t%e!<%"5/F0(B
   9.275 -================
   9.276 -  `[prefix] t p' $B$K$h$j%W%l%t%e!<%"$N5/F0$,$G$-$^$9!#$5$i$K!"$b$7$"$J$?$,!"(B-
   9.277 -remote $B5!G=$D$-$N(Bxdvi$B$rMxMQ$7$F$$$k>l9g$O(B `[prefix] t s' $B$r2!$9$3$H$K$h$j(B
   9.278 -$B%+!<%=%k0LCV$NJ8;zNs$r8!:w$7$F$=$N%Z!<%8$rI=<($9$k$h$&$K$9$G$K5/F0Cf$N(Bxdvi
   9.279 -$B$KL?Na$rAw$j$^$9!#$3$l$K$h$j!"8=:_JT=8Cf$N2U=j$N%?%$%W%;%C%H7k2L$rB(:B$K8+(B
   9.280 -$B$k$3$H$,$G$-$^$9!#(B
   9.281 -
   9.282 -
   9.283 -
   9.284 -
   9.285 -File: yatexj, Node: Print out, Prev: Calling previewer, Up: Invocation
   9.286 -
   9.287 -$B%W%j%s%H%"%&%H(B
   9.288 -==============
   9.289 -
   9.290 -  `[prefix] t l'$B$r2!$7$F%W%j%s%H%"%&%H$r;X<($9$k$H!"=PNO3+;O(B/$B=*N;%Z!<%8$r(B
   9.291 -$BJ9$$$F$/$k$N$G!"$=$l$>$l$KEz$($^$9!#$3$l$r>JN,$7$?$$;~$O!"(B
   9.292 -universal-argument $B$r$D$1!"(B
   9.293 -
   9.294 -
   9.295 -`C-u [prefix] t l'
   9.296 -             ... $B%Z!<%83NG'>JN,(Blpr$B5/F0(B
   9.297 -
   9.298 -$B$N$h$&$K5/F0$7$F$/$@$5$$!#(B
   9.299 -
   9.300 -
   9.301 -
   9.302 -File: yatexj, Node: %#notation, Next: Completion, Prev: Invocation, Up: Top
   9.303 -
   9.304 -%#$B5-K!(B
   9.305 -******
   9.306 -
   9.307 -  $BK\J8Cf$K(B`%#'$B$G$O$8$^$k%-!<%o!<%I$rKd$a9~$`$3$H$G%?%$%W%;%C%?5/F0Ey$N@)8f(B
   9.308 -$B$r$9$k$3$H$,$G$-$^$9!#(B
   9.309 -
   9.310 -* Menu:
   9.311 -
   9.312 -* Changing typesetter::         $B%?%$%W%;%C%HMQ%3%^%s%I$NJQ99(B
   9.313 -* Splitting input files::       $BF~NO%U%!%$%kJ,3d(B
   9.314 -* Fix region for typesetting::  $BNN0h$N8GDj(B
   9.315 -* lpr format::                  $B%W%j%s%H%"%&%H%3%^%s%IMQ%U%)!<%^%C%H(B
   9.316 -* Editing %# notation::         %#$B5-K!$NJT=8(B
   9.317 -
   9.318 -
   9.319 -
   9.320 -File: yatexj, Node: Changing typesetter, Next: Splitting input files, Prev: %#notation, Up: %#notation
   9.321 -
   9.322 -$B%?%$%W%;%C%HMQ%3%^%s%IJQ99(B
   9.323 -==========================
   9.324 -
   9.325 -  $B5/F0$9$k%3%^%s%I$rJQ$($?$$;~$OK\J8Cf$K<!$N$h$&$J9T$r=q$-$^$9!#(B
   9.326 -
   9.327 -
   9.328 -             %#!jlatex-ntt
   9.329 -
   9.330 -NTT jTeX $B$H!"(BASCII jTeX $B$r;H$$J,$1$?$$$h$&$J>l9g$KJXMx$G$7$g$&!#(B
   9.331 -
   9.332 -
   9.333 -
   9.334 -
   9.335 -File: yatexj, Node: Splitting input files, Next: Fix region for typesetting, Prev: Changing typesetter, Up: %#notation
   9.336 -
   9.337 -$BF~NO%U%!%$%kJ,3d(B
   9.338 -================
   9.339 -
   9.340 -$B$^$?!">OKh$KJL%U%!%$%k$N(B .tex $B$r:n@.$7$F$$$k>l9g$G!"(B`main.tex'$B$+$i(B 
   9.341 -`sub.tex'$B$r(B `\include'$B$7$F$$$k$h$&$J;~$O!"(B`sub.tex'$B$NG$0U$N0LCV$K<!$N$h$&(B
   9.342 -$B$J9T$rKd$a9~$_$^$9!#(B
   9.343 -
   9.344 -             %#!platex main.tex
   9.345 -
   9.346 -
   9.347 -$B>e$NNc$N$h$&$K%3%^%s%IL>$@$1$G$J$/0z?t$b=q$$$?>l9g$K$O!"A4$F$r$=$N$^$^(B 
   9.348 -shell $B$KEO$9$N$G<!$N$h$&$K=q$1$P!"(Bghostview $B$J$I$r%W%l%t%e!<%"$K;H$&;~$KJX(B
   9.349 -$BMx$G$9!#(B
   9.350 -
   9.351 -
   9.352 -             %#!platex main ; dvi2ps main.dvi > main
   9.353 -
   9.354 -$B$J$*!"$3$N9T$N:G8e$NC18l$N%T%j%*%I0JA0$r!V%a%$%s%U%!%$%k!W$N%Y!<%9%M!<%`$G(B
   9.355 -$B$"$k$H2>Dj$7$^$9(B($B>e$N(B2$B$D$N>l9g$I$A$i$b(B`main')$B!#$3$N9T$K5-=R$7$?!"(B`%f'$B$O%a(B
   9.356 -$B%$%s%U%!%$%kL>$K!"(B`%r' $B$O%a%$%s%U%!%$%k$N3HD%;R$r<h$j=|$$$?ItJ,$KCV49$5$l(B
   9.357 -$B$^$9!#$?$@$7!"(B`%f,%r'$B$rMxMQ$7$?>l9g!"=i2s%?%$%W%;%C%H;~$KI,$:%a%$%s%U%!%$(B
   9.358 -$B%kL>$NF~NO$rB%$5$l$^$9!#(B
   9.359 -
   9.360 -  `[prefix] g' (*Note Cursor jump::$B;2>H(B) $B$G$N%U%!%$%k4V%8%c%s%W$rM-8z$K5!(B
   9.361 -$BG=$5$;$k$?$a!"F~NO%U%!%$%kJ,3d;~$K$O<!$N$3$H$KCm0U$7$F2<$5$$!#(B
   9.362 -
   9.363 -  1. $B%5%V%G%#%l%/%H%j$r:n$C$F!"$=$NCf$K%5%V%U%!%$%k$rCV$/$3$H$O$G$-$k$,%5(B
   9.364 -     $B%V%G%#%l%/%H%j$N%5%V%G%#%l%/%H%j$K$OCV$1$J$$!#(B
   9.365 -  2. $B%a%$%s%U%!%$%k$+$i%5%V%G%#%l%/%H%jFb$N%U%!%$%k$r(B include $B$9$k;~$K$O!"(B
   9.366 -     $BAjBP%Q%9;XDj$rMQ$$$F!"(B`\include{chap1/sub}'$B$N$h$&$K5-=R!#(B
   9.367 -  3. $B%a%$%s%U%!%$%k$,0l$D>e$N%G%#%l%/%H%j$K$"$k>l9g$b!"%5%V%U%!%$%k$K$O(B
   9.368 -     %#!platex main.tex $B$N$h$&$K5-=R$9$k(B(../main$B$G$O$J$$(B)$B!#(B
   9.369 -
   9.370 -
   9.371 -
   9.372 -
   9.373 -
   9.374 -File: yatexj, Node: Fix region for typesetting, Next: lpr format, Prev: Splitting input files, Up: %#notation
   9.375 -
   9.376 -$BNN0h$N8GDj(B
   9.377 -==========
   9.378 -
   9.379 -  `[prefix] tr' $B$NNN0h;XDj$N%?%$%W%;%C%H$G$O!"$H$/$K;XDj$N$J$$$+$.$j!"(B 
   9.380 -`C-SPC'$B$G%^!<%/$7$?0LCV$H!"%]%$%s%H(B($B%+!<%=%k0LCV(B)$B$N4V$rNN0h$H$_$J$7$^$9$,!"(B
   9.381 -$BI,$:7h$^$C$?NN0h$r%?%$%W%;%C%H$7$?$$>l9g$O!"$=$NNN0h$r(B
   9.382 -
   9.383 -             %#BEGIN
   9.384 -             <$BEO$7$?$$NN0h(B>
   9.385 -             %#END
   9.386 -
   9.387 -$B$N$h$&$K(B`%#BEGIN'$B$H(B`%#END'$B$G0O$_!"%+!<%=%k$r!V(B`%#BEGIN'$B0J9_!W$KCV$$$F$/$@(B
   9.388 -$B$5$$!#$3$N;~$NNN0h7hDj5,B'$r$^$H$a$k$H<!$N$h$&$K$J$j$^$9!#(B
   9.389 -
   9.390 -
   9.391 -  1. $B%+!<%=%k0LCV$h$j%P%C%U%!$N@hF,J}8~$K(B`%#BEGIN'$B$H$$$&%-!<%o!<%I$,$"$k>l(B
   9.392 -     $B9g(B
   9.393 -
   9.394 -       1. `%#BEGIN'$B$h$j%P%C%U%!$NKvHxJ}8~$K(B`%#END'$B$H$$$&%-!<%o!<%I$,8+$D$+$C(B
   9.395 -          $B$?>l9g!#(B
   9.396 -          =>`%#BEGIN' $B$+$i!"$=$N(B `%#END' $B$N$"$k0LCV$^$G!#(B
   9.397 -       2. `%#END' $B$,8+$D$+$i$J$+$C$?>l9g!#(B=>$B%P%C%U%!$N:G8eHx$^$G!#(B
   9.398 -
   9.399 -  2. $B%+!<%=%k0LCV$h$j%P%C%U%!$N@hF,J}8~$K(B `%#BEGIN' $B$H$$$&%-!<%o!<%I$,(B
   9.400 -     $B8+$D$+$i$J$+$C$?>l9g!#(B
   9.401 -     =>$B%^!<%/(B(`C-SPC'$B0LCV(B)$B$H%]%$%s%H(B($B%+!<%=%k0LCV(B)$B$N4V$NNN0h!#(B
   9.402 -
   9.403 -  tabular $B4D6-$r2?EY$b;n9T:x8m$7$F$$$k$h$&$J>l9g$O!"(B`\begin'$B$NA0$N9T$K(B 
   9.404 -`%#BEGIN' $B$H=q$-!"(B`\end' $B$N<!$N9T$K(B `%#END' $B$H=q$$$F$*$/$H4JC1$K:nI=7k2L$r(B
   9.405 -$B%F%9%H$9$k$3$H$,$G$-$^$9!#$^$?!"D9$$(B .tex $B%U%!%$%k$N8eH>$K(B `%#BEGIN' $B$r=q(B
   9.406 -$B$$$F$*$1$P!"A0H>$NItJ,$OL5;k$G$-$^$9!#$3$N(BBEGIN$B$H(BEND $B$N>C$7K:$l$K$O==J,$4(B
   9.407 -$BCm0U2<$5$$!#(B
   9.408 -
   9.409 -
   9.410 -
   9.411 -
   9.412 -File: yatexj, Node: lpr format, Next: Editing %# notation, Prev: Fix region for typesetting, Up: %#notation
   9.413 -
   9.414 -lpr$B%U%)!<%^%C%H(B
   9.415 -===============
   9.416 -
   9.417 -  $B$^$:!"%W%j%s%H%"%&%HMQ%3%^%s%INs$N%U%)!<%^%C%H$K$D$$$F@bL@$7$^$9!#%3%^%s(B
   9.418 -$B%INs%U%)!<%^%C%H$O!"(B3$B$D$N(B Lisp $BJQ?t$K$h$C$FI=8=$5$l$^$9!#%G%U%)%k%H$N(B 
   9.419 -dvi2ps $BMQ$N%U%)!<%^%C%H$rNc$K@bL@$7$^$9!#(B
   9.420 -
   9.421 -`(1)dviprint-command-format'
   9.422 -     `"dvi2ps %f %t %s | lpr"'
   9.423 -
   9.424 -`(2)dviprint-from-format'
   9.425 -     `"-f %b"'
   9.426 -
   9.427 -`(3)dviprint-to-format'
   9.428 -     `"-t %e"'
   9.429 -
   9.430 -$B<B:]$K%W%j%s%H%"%&%H$9$k;~$O!"(B(1)$BCf$N(B %s $B$,%U%!%$%kL>$KCV$-49$($i$l!"(B%f $B$,(B
   9.431 -(2)$B$NFbMF!"(B%t $B$,(B(3)$B$NFbMF$KCV$-49$($i$l$^$9!#$=$N:]$K(B(2)$B$NJ8;zNsCf$N(B %b $B$O(B
   9.432 -$B!V=PNO3+;O%Z!<%8!W!"(B(3)$B$NJ8;zNsCf$N(B %e $B$O!V=PNO=*N;%Z!<%8!W$KCV$-49$($i$l(B
   9.433 -$B$^$9!#$b$7!"%Z!<%8$r;XDj$7$J$$;~$K$O!"(B%f, %t $BN>J}$H$bL5;k$5$l$^$9!#(B
   9.434 -
   9.435 -  $B$3$N!"(Bdviprint-command-format $B$rNW;~$KJQ$($?$$;~$O!"(BLaTeX $B$N%=!<%9%F%-%9(B
   9.436 -$B%HCf$NG$0U$N>l=j$K!"(B
   9.437 -
   9.438 -             %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2
   9.439 -
   9.440 -$B$N$h$&$K=q$$$F2<$5$$!#%W%j%s%H%"%&%H$9$k%Z!<%8HO0O$r$$$A$$$AJ9$+$;$J$$$h$&(B
   9.441 -$B$K$9$k;~$K(B
   9.442 -
   9.443 -             %#LPR dvi2ps %s | lpr
   9.444 -
   9.445 -$B$J$I$H$9$k$N$bJXMx$+$b$7$l$^$;$s!#(B
   9.446 -
   9.447 -
   9.448 -
   9.449 -File: yatexj, Node: Editing %# notation, Prev: lpr format, Up: %#notation
   9.450 -
   9.451 -%#$B5-K!<+BN$NJT=8(B
   9.452 -================
   9.453 -
   9.454 -$B0J>e$N$h$&$J(B`%#'$B$G;O$^$k3F<o@)8f5-K!$rJT=8$9$k$?$a$K$O(B
   9.455 -
   9.456 -`[prefix] %'
   9.457 -             ... `%#'$B5-K!JT=8%a%K%e!<(B
   9.458 -
   9.459 -$B$r2!$7$^$9!#(B
   9.460 -
   9.461 -             !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR
   9.462 -
   9.463 -$B$H$$$&%a%K%e!<$,=P$FMh$k$N$G!"(B`%#!'$B$KB3$/%3%^%s%I$rJQ99$7$?$$;~$K$O(B`!'$B$r!"(B
   9.464 -`%#LPR'$B$G(B lpr $B%U%)!<%^%C%H$rJQ$($?$$;~$O(B`l'$B$r!"$"$i$+$8$a@_Dj$7$?%j%8%g%s(B
   9.465 -$B$r(B `%#BEGIN' $B!A(B `%#END' $B$G3g$j$?$$;~$O!"(B`b'$B$r2!$7$^$9!#(B`b'$B$rA*$s$@;~$K$O!"(B
   9.466 -$B$=$l$^$G%P%C%U%!Cf$KCV$+$l$F$$$?(B `%#BEGIN', `%#END' $B$,<+F0E*$K>C5n$5$l$^$9!#(B
   9.467 -
   9.468 -
   9.469 -
   9.470 -File: yatexj, Node: Completion, Next: Local dictionary, Prev: %#notation, Up: Top
   9.471 -
   9.472 -$BJd40F~NO(B
   9.473 -********
   9.474 -
   9.475 -  LaTeX $B$G$N4D6-L>$J$I$O!"LnD;$NJd405!G=$rMxMQ$7$FG=N(E*$KF~NO$9$k$3$H$,$G(B
   9.476 -$B$-$^$9!#(B
   9.477 -
   9.478 -* Menu:
   9.479 -
   9.480 -* begin$B7?Jd40(B::                 
   9.481 -* section$B7?Jd40(B::               
   9.482 -* large$B7?Jd40(B::                 
   9.483 -* maketitle$B7?Jd40(B::             
   9.484 -* Arbitrary completion::        $B?o;~Jd40(B
   9.485 -* end$BJd40(B::                     
   9.486 -* Accent mark completion::      $B%"%/%;%s%H5-9fJd40(B
   9.487 -* Image completion::            $B?t<05-9f%$%a!<%8Jd40(B
   9.488 -* Greek letter completion::     $B%.%j%7%cJ8;zJd40(B
   9.489 -
   9.490 -
   9.491 -
   9.492 -File: yatexj, Node: begin$B7?Jd40(B, Next: section$B7?Jd40(B, Prev: Completion, Up: Completion
   9.493 -
   9.494 -begin$B7?Jd40(B
   9.495 -===========
   9.496 -
   9.497 -  `\begin{env}...\end{env}'$B$NMM$J7A<0$NF~NO$NJd40$r(Bbegin$B7?Jd40$H8F$V$3$H$K(B
   9.498 -$B$7$^$9!#(Bbegin $B7?Jd40$O!"(B
   9.499 -
   9.500 -`[prefix] b'
   9.501 -             ... begin $B7?Jd403+;O(B($BI8=`$G$O(B `C-c b')
   9.502 -
   9.503 -$B$G;O$^$j$^$9!#IQHK$KMQ$$$i$l$k<!$N(B LaTeX $B4D6-$NJd40$O!"(B[prefix] `b' $B$KB3$/(B
   9.504 -$B<!$N(B1$BJ8;z$rF~NO$9$k$@$1$G!"(B`\begin{xxx}...\end{xxx}'$B$r40@.$5$;$^$9!#(B
   9.505 -
   9.506 -`[prefix] b c'
   9.507 -             ... `\begin{center}...\end{center}'
   9.508 -`[prefix] b d'
   9.509 -             ... `\begin{document}...\end{document}'
   9.510 -`[prefix] b D'
   9.511 -             ... `\begin{description}...\end{description}'
   9.512 -`[prefix] b e'
   9.513 -             ... `\begin{enumerate}...\end{enumerate}'
   9.514 -`[prefix] b E'
   9.515 -             ... `\begin{equation}...\end{equation}'
   9.516 -`[prefix] b i'
   9.517 -             ... `\begin{itemize}...\end{itemize}'
   9.518 -`[prefix] b l'
   9.519 -             ... `\begin{flushleft}...\end{flushleft}'
   9.520 -`[prefix] b m'
   9.521 -             ... `\begin{minipage}...\end{minipage}'
   9.522 -`[prefix] b t'
   9.523 -             ... `\begin{tabbing}...\end{tabbing}'
   9.524 -`[prefix] b T'
   9.525 -             ... `\begin{tabular}...\end{tabular}'
   9.526 -`[prefix] b ^T'
   9.527 -             ... `\begin{table}...\end{table}'
   9.528 -`[prefix] b p'
   9.529 -             ... `\begin{picture}...\end{picture}'
   9.530 -`[prefix] b q'
   9.531 -             ... `\begin{quote}...\end{quote}'
   9.532 -`[prefix] b Q'
   9.533 -             ... `\begin{quotation}...\end{quotation}'
   9.534 -`[prefix] b r'
   9.535 -             ... `\begin{flushright}...\end{flushright}'
   9.536 -`[prefix] b v'
   9.537 -             ... `\begin{verbatim}...\end{verbatim}'
   9.538 -`[prefix] b V'
   9.539 -             ... `\begin{verse}...\end{verse}'
   9.540 -
   9.541 -  $B>e5-$N$b$N0J30$N4D6-L>$O(B Emacs $B$N;}$D%$%s%/%j%a%s%?%k$JJd405!G=$rMQ$$$F(B
   9.542 -$BF~NO$7$^$9(B($B>e5-$N4D6-L>$b0J2<$NJd40F~NO2DG=(B)$B!#(B
   9.543 -
   9.544 -`[prefix] b SPC'
   9.545 -             ... begin $B7?Jd40F~NO(B
   9.546 -
   9.547 -`[prefix] b SPC' $B$HF~NO$9$k$H!":G2<9T$N%_%K%P%C%U%!$K(B
   9.548 -
   9.549 -             Begin environment(default document): 
   9.550 -
   9.551 -$B$HI=<($5$l$^$9!#$3$3$G!"2?$bF~$l$:$K%j%?!<%s%-!<$N$_2!$9$H!"3g8LFb$K=P$F$$(B
   9.552 -$B$k%G%U%)%k%H$N4D6-L>$,F~NO$5$l$^$9$,!"E,Ev$J4D6-L>$rF~NO$9$k$H!"(B`\begin{$B4D(B
   9.553 -$B6-L>(B} $B!D(B \end{$B4D6-L>(B}'$B$,J8=qCf$KA^F~$5$l$^$9!#%_%K%P%C%U%!$G4D6-L>$rF~NO$9(B
   9.554 -$B$k$H$-$K!"4D6-L>$NF,J8;z$rF~NO$7!V%9%Z!<%9!W$r$?$?$/$H!"0lCW$9$k4D6-L>$,Fb(B
   9.555 -$BIt%F!<%V%k$KB8:_$7$?>l9g!"@5$7$$4D6-L>$KJd40$5$l$k$N$G!"F~NO$N<j4V$,>J$1$^(B
   9.556 -$B$9!#FbIt%F!<%V%k$KB8:_$7$J$$4D6-L>$rF~NO$7$?;~$O%f!<%6@lMQ$N%F!<%V%k$KEPO?(B
   9.557 -$B$5$l!"$5$i$K$=$N%F!<%V%k$r<+F0E*$K!"%f!<%6<-=q(B($B%G%U%)%k%H$G$O(B 
   9.558 -`~/.yatexrc')$B$KJ]B8$7$^$9!#(B
   9.559 -
   9.560 -$B$5$i$K!"FCDj$N4D6-$rJd40F~NO$7$?;~$K$O$=$N4D6-$GI,$:MQ$$$i$l$k%(%s%H%j$r<+(B
   9.561 -$BF0A^F~$7$^$9(B($BNc(B: `itemize'$B4D6-$K$*$1$k(B`\item'$B$J$I(B)$B!#A^F~$5$l$?%(%s%H%j$,IT(B
   9.562 -$BMW$J>l9g$K$O(Bundo$B$K$h$C$F>C5n$7$F2<$5$$!#(B
   9.563 -
   9.564 -
   9.565 -$B4{$K=q$$$?%F%-%9%H$r4D6-$G3g$k(B
   9.566 -------------------------------
   9.567 -
   9.568 -  $B$H$3$m$G!":G=i$K=q$$$F$7$^$C$?%V%m%C%/$r8e$+$i!"(Bitemize $B4D6-$NCf$KJD$8$3(B
   9.569 -$B$a$?$$$H;W$&$3$H$,$"$j$^$9$,!"$=$N$h$&$J$H$-$O!"$"$i$+$8$aJD$8$3$a$?$$CJMn(B
   9.570 -$B$r%^!<%/$7$F!"(Bbegin $B7?Jd40$N3F%3%^%s%I$N(B `[prefix]' $B$N<!$N!X>.J8;z$N(B 'b'$B!Y(B 
   9.571 -$B$r!XBgJ8;z!Y$KJQ$($F5/F0$7$F2<$5$$!#(B($B$^$?$O!"(B`C-u' $B$r@h$KBG$A!"(Buniversal
   9.572 -argument $B$r$D$1$F$b2DG=$G$9(B)
   9.573 -
   9.574 -  $BNc$($P$"$k%Q%i%0%i%U$r(B description $B4D6-$NCf$KF~$l$?$$$H$-$O!"$=$N%Q%i%0(B
   9.575 -$B%i%U$r%^!<%/$7$F$+$i!"(B
   9.576 -
   9.577 -`[prefix] B D'
   9.578 -`($B$^$?$O(B ESC 1 [prefix] b D)'
   9.579 -`($B$^$?$O(B  C-u  [prefix] b D $B$J$I(B)'
   9.580 -
   9.581 -$B$H%?%$%W$7$F$/$@$5$$!#$3$l$O!"(B`[prefix] b SPC'$B$NJd40F~NO$K$b$"$F$O$^$j!"(B
   9.582 -`b' $B$rBgJ8;z$KJQ$($F!"(B`[prefix] B SPC' $B$H%?%$%W$9$l$P!"$"$i$+$8$a%^!<%/$7(B
   9.583 -$B$F$*$$$?%j%8%g%s$r!"(Bbegin $B$H(B end $B$N4D6-$G3g$j$^$9!#(B
   9.584 -
   9.585 -
   9.586 -
   9.587 -File: yatexj, Node: section$B7?Jd40(B, Next: large$B7?Jd40(B, Prev: begin$B7?Jd40(B, Up: Completion
   9.588 -
   9.589 -section$B7?Jd40(B
   9.590 -=============
   9.591 -
   9.592 -  `\section{$BL\E*(B}' $B$N$h$&$J7A<0$NF~NO$NJd40$r(B section $B7?Jd40$H8F$V$3$H$K$7(B
   9.593 -$B$^$9!#(Bsection $B7?Jd40$O!"(B
   9.594 -
   9.595 -`[prefix] s'
   9.596 -             ... section $B7?Jd40(B
   9.597 -
   9.598 -$B$G<B9T$7$^$9!#(B`[prefix] s' $B$rF~NO$9$k$H%_%K%P%C%U%!$K!"(B
   9.599 -
   9.600 -             (C-v for view-section) \???{} (default documentclass):
   9.601 -
   9.602 -$B$H$$$&%W%m%s%W%H$,8=$l$k$N$G!"$=$3$G(B `section' $B$N$h$&$J(B LaTeX $B%3%^%s%IL>$r(B
   9.603 -$BF~NO$7$^$9!#$3$3$G$b%j%?!<%s%-!<$N$_$G3g8LFb$N%G%U%)%k%HCM$,A*Br$5$l$k$[$+!"(B
   9.604 -`chapter'$B$J$I$N$h$&$JIQEY$N9b$$L>>NF~NO$K$O%9%Z!<%9%-!<$K$h$kJd405!G=$,M-(B
   9.605 -$B8z$G$9!#(B $B<!$K!"(B{}$B$NCf?H$NF~NO$rB%$9!"(B
   9.606 -
   9.607 -             \section{???}:
   9.608 -
   9.609 -$B$H$$$&%W%m%s%W%H$,8=$l$k$N$G!"%;%/%7%g%s$N%?%$%H%k$J$I$rF~NO$7$^$9!#$?$H$((B
   9.610 -$B$P!"(B
   9.611 -
   9.612 -             (C-v for view-section) \???{} (default documentclass): section
   9.613 -             \section{???}: $BL\E*(B
   9.614 -
   9.615 -$B$N$h$&$KF~NO$7$?>l9g$O!"J8>OCf$K(B
   9.616 -
   9.617 -             \section{$BL\E*(B}
   9.618 -
   9.619 -$B$,A^F~$5$l!"(B
   9.620 -
   9.621 -             (C-v for view-section) \???{} (default section): vspace*
   9.622 -             \vspace*{???}: 
   9.623 -
   9.624 -$B$N$h$&$K(B{}$B$NCf?H$r>JN,$7$?$H$-$O!"(B
   9.625 -
   9.626 -             \vspace*{}
   9.627 -
   9.628 -$B$@$1$,A^F~$5$l!"2~9T$O$;$:%+!<%=%k$O<+F0E*$KCf3g8L$NFbB&$K0\F0$7$^$9!#(B
   9.629 -
   9.630 -* Menu:
   9.631 -
   9.632 -* 2$B8D0J>e$N0z?t$r$H$k(B section$B7?%3%^%s%I(B::  
   9.633 -* Enclose section-type command::  $B3g$jJd40(B
   9.634 -* Recursive completion::        $B:F5"Jd40(B
   9.635 -* view-sectioning::             $B%;%/%7%g%s6h@Z$j$N%"%&%H%i%$%sI=<((B
   9.636 -* label-generation::            $B%i%Y%k<+F0@8@.(B
   9.637 -
   9.638 -
   9.639 -
   9.640 -File: yatexj, Node: 2$B8D0J>e$N0z?t$r$H$k(B section$B7?%3%^%s%I(B, Next: Enclose section-type command, Prev: section$B7?Jd40(B, Up: section$B7?Jd40(B
   9.641 -
   9.642 -2$B8D0J>e$N0z?t$r$H$k(B section$B7?%3%^%s%I(B
   9.643 --------------------------------------
   9.644 -
   9.645 -  $B$H$3$m$G!"(B`\addtolength{\topmargin}{8mm}' $B$J$I$N$h$&$K!"0z?t$rFs$D0J>e<h(B
   9.646 -$B$k(B LaTeX $B%3%^%s%I$,$"$j$^$9!#$3$N$h$&$J%3%^%s%I$NJd40F~NO$K$O!"(Bsection $B7?(B
   9.647 -$BJd408F$S=P$7$K0z?t$rIU$1$F$/$@$5$$!#Nc$($P>e$N(B`addtolength' $B$NNc$G$"$l$P!"(B
   9.648 -$B0z?t(B2$B$r;XDj$7$^$9!#$D$^$j!"(B
   9.649 -
   9.650 -             C-u 2 [prefix] s   ($B$^$?$O!"(BESC 2 [prefix] s)
   9.651 -
   9.652 -$B$H(B section $B7?Jd40$r8F$S=P$7$?8e!"(B
   9.653 -
   9.654 -             (Ctrl-v for view-section) \???{} (default vspace*): addtolength
   9.655 -             \addtolength{???}: \topmargin
   9.656 -             Argument 2: 8mm
   9.657 -
   9.658 -$B$N$h$&$KF~NO$7$F$/$@$5$$!#:G=i$N(B addtolength $B$NItJ,$H!"Bh0l0z?t$G$"$k(B 
   9.659 -\topmargin $B$NF~NO$OEvA3%9%Z!<%9$K$h$kJd40F~NO$,2DG=$G$9!#%f!<%6<-=q$KEPO?(B
   9.660 -$B$5$l$k(B LaTeX $B%3%^%s%I$K$O!"$3$N0z?t$N?t$b3X=,$5$l$k$N$G!":G=i$NJd40$N;~0z(B
   9.661 -$B?t$N?t$r;XDj$7$F5/F0$7$F$*$1$P!"0J8e$NJd40;~$K$O!"5-21$5$l$?8D?t$@$10z?t$r(B
   9.662 -$BJ9$$$FMh$k$h$&$K$J$j$^$9!#$"$H$G0z?t$N8D?t$rJQ$($?$$;~$O!":F$S(B `C-u' $B$rMQ(B
   9.663 -$B$$$F8D?t$r;XDj$7D>$9$3$H$G!"<+F0E*$K<-=qCf$N0z?t$N8D?t$NItJ,$r99?7$7$^$9!#(B
   9.664 -
   9.665 -
   9.666 -
   9.667 -
   9.668 -File: yatexj, Node: Enclose section-type command, Next: Recursive completion, Prev: 2$B8D0J>e$N0z?t$r$H$k(B section$B7?%3%^%s%I(B, Up: section$B7?Jd40(B
   9.669 -
   9.670 -$B4{$K=q$$$?%F%-%9%H$r3g$k(B
   9.671 -------------------------
   9.672 -
   9.673 -  $B$^$?!"5/F0%3%^%s%I$N(B`s'$B$rBgJ8;z$KJQ$($F5/F0$9$k$H!"$"$i$+$8$a=q$$$?J8>O(B
   9.674 -$B$r(B section $B7?%3%^%s%I$NBh0l0z?t$H$7$F3g$j$^$9!#(B
   9.675 -
   9.676 -
   9.677 -
   9.678 -File: yatexj, Node: Recursive completion, Next: view-sectioning, Prev: Enclose section-type command, Up: section$B7?Jd40(B
   9.679 -
   9.680 -$B:F5"Jd40(B
   9.681 ---------
   9.682 -
   9.683 -  $B9bEY$J;H$$J}$K$J$k$+$b$7$l$^$;$s$,!"(Bsection$B7?Jd40$N0z?t$NF~NO;~$K$5$i$K(B
   9.684 -$BJd40F~NO$rMxMQ$9$k$3$H$,$G$-$^$9(B(section/large/maketitle$B7?$K8B$k(B)$B!#(Bsection 
   9.685 -$B7?%3%^%s%I$N0z?t$K99$K(B LaTeX $B%3%^%s%I$,Mh$k>l9g$K$O%_%K%P%C%U%!$GLnD;$NJd(B
   9.686 -$B40%-!<$r:F5"E*$KF~NO$9$k$3$H$G0z?t$NF~NO$b8zN(E*$K9T$J$($^$9!#(B
   9.687 -
   9.688 -
   9.689 -
   9.690 -File: yatexj, Node: view-sectioning, Next: label-generation, Prev: Recursive completion, Up: section$B7?Jd40(B
   9.691 -
   9.692 -$B%;%/%7%g%s6h@Z$j$N%"%&%H%i%$%sI=<((B
   9.693 -----------------------------------
   9.694 -
   9.695 -  $BDL>o$N(Bsection$B7?Jd40$N;~$K%_%K%P%C%U%!$G(B`C-v'$B$r2!$9$H8=:_B8:_$9$k%;%/%7%g(B
   9.696 -$B%s6h@Z$j%3%^%s%IA4$F$r(B `*Sectioning Lines*'$B$H$$$&%P%C%U%!$K0lMwI=<($7$^$9(B
   9.697 -($B!V(B<<--$B!W$N$D$$$F$$$k9T$,$b$C$H$b6a$$%;%/%7%g%s6h@Z$j(B)$B!#$3$N;~%_%K%P%C%U%!(B
   9.698 -$B$G(B`C-p', `C-n' $B$r2!$9$H(B`part', `chapter', ..., `subparagraph' $B$N%3%^%s%I$,(B
   9.699 -$BO@M}3,AX$N9b$5$K$7$?$,$C$F>e2<$7$^$9!#$^$?!"(B`C-v', `M-v' $B$r2!$9$H%;%/%7%g(B
   9.700 -$B%s6h@Z$j0lMw%P%C%U%!$,%9%/%m!<%k$7!"?t;z$N(B`0'$B!A(B`7'$B$r2!$9$H$"$k9b$50J>e$N%;(B
   9.701 -$B%/%7%g%s6h@Z$j$@$1$rA*$s$GI=<($7$^$9(B($B<B:]$K$d$C$F8+$l$PJ,$+$j$^$9(B)$B!#(B
   9.702 -
   9.703 -`*Sectioning Lines*'$B%P%C%U%!$O!"(B
   9.704 -
   9.705 -`M-x YaTeX-section-overview'
   9.706 -             ... $B%;%/%7%g%s6h@Z$j0lMw%P%C%U%!$r@8@.(B
   9.707 -
   9.708 -$B$G:n@.$9$k$3$H$,$G$-$^$9!#$3$N%P%C%U%!$rA*Br$7G$0U$N9T$G%9%Z!<%9$r2!$9$H!"(B
   9.709 -$B3:Ev$9$k%;%/%7%g%s6h@Z$j$N$"$kK\J8Cf$N>l=j$K%8%c%s%W$7$^$9!#$5$i$K!"F1%P%C(B
   9.710 -$B%U%!$G(B `u' $B$r2!$9$H!"%=!<%9%F%-%9%H$NBP1~$9$k%;%/%7%g%s%3%^%s%I$,0l3,AX>e(B
   9.711 -$B$,$j(B($BNc(B: subsection $B$,(B section $B$KJQ$o$k(B)$B!"(B`d'$B$r2!$9$H0l3,AX2<$,$j$^$9!#(B
   9.712 -`*Sectioning Lines*'$B%P%C%U%!$K$"$k%;%/%7%g%s6h@Z$j$N9T$r%^!<%/$7$F$*$$$F(B
   9.713 -`U'$B$r2!$9$H%j%8%g%sFb$N$b$N$KBP1~$9$k%=!<%9%F%-%9%H$N%;%/%7%g%s%3%^%s%I$9(B
   9.714 -$B$Y$F$,0l3,AX>e$,$j!"(B`D'$B$r2!$9$H2<$,$j$^$9!#%;%/%7%g%s6h@Z$j0lMw%P%C%U%!$G(B
   9.715 -$BMxMQ$G$-$k%-!<%3%^%s%I$K$O0J2<$N$b$N$,$"$j$^$9!#(B
   9.716 -
   9.717 -`SPC'
   9.718 -             ... $BBP1~$9$k%=!<%99T$X%8%c%s%W(B
   9.719 -`.'
   9.720 -             ... $BBP1~$9$k%=!<%99T$rI=<((B
   9.721 -`u'
   9.722 -             ... $B%+!<%=%k0LCV$KBP1~$9$k%;%/%7%g%s%3%^%s%I$r0l3,AX>e$2$k(B
   9.723 -`d'
   9.724 -             ... $B%+!<%=%k0LCV$KBP1~$9$k%;%/%7%g%s%3%^%s%I$r0l3,AX2<$2$k(B
   9.725 -`U'
   9.726 -             ... $B%^!<%/$7$?%;%/%7%g%s%3%^%s%I$r0l3,AX>e$2$k(B
   9.727 -`D'
   9.728 -             ... $B%^!<%/$7$?%;%/%7%g%s%3%^%s%I$r0l3,AX>e$2$k(B
   9.729 -`0$B!A(B6'
   9.730 -             ... $B%l%Y%k(B n $B0J2<$N%;%/%7%g%s%3%^%s%I$r1#$7$FI=<((B
   9.731 -
   9.732 -
   9.733 -
   9.734 -
   9.735 -File: yatexj, Node: label-generation, Prev: view-sectioning, Up: section$B7?Jd40(B
   9.736 -
   9.737 -$B%i%Y%k<+F0@8@.(B
   9.738 ---------------
   9.739 -
   9.740 -  `\ref{}' $B$d(B `\cite{@}' $B%^%/%m$r(Bsection$B7?Jd40$GF~$l$?>l9g;2>H@h$H$J$jF@$k(B
   9.741 -$B$b$N$rA4$FC5$7$F%a%K%e!<$K$7$FA*Br$G$-$^$9!#;2>H@h$K$O(B`\label{}'$B$r$D$1$F$*(B
   9.742 -$B$/I,MW$O$"$j$^$;$s!#$b$7$"$l$P!"$=$N%i%Y%k$r;H$$!"$J$1$l$P$=$N>l$G;2>H@h$K(B
   9.743 -`\label{}'$B$r:n$i$;$F$/$l$^$9!#%i%Y%kL>$r9M$($k$N$O6lDK$K46$8$k$b$N$G$9!#A4(B
   9.744 -$B$F$N%+%&%s%?$K%i%Y%k$r$D$1$k$N$b$?$$$X$s$G$9!#$b$&%i%Y%kL>$K2?$r$D$1$k$+!"(B
   9.745 -$B%i%Y%k$r$D$1$k$+$D$1$^$$$+!"$J$I$H$$$&$3$H$OK:$l$^$7$g$&(B!
   9.746 -
   9.747 -
   9.748 -
   9.749 -File: yatexj, Node: large$B7?Jd40(B, Next: maketitle$B7?Jd40(B, Prev: section$B7?Jd40(B, Up: Completion
   9.750 -
   9.751 -large$B7?Jd40(B
   9.752 -===========
   9.753 -
   9.754 -  `{\large }' $B$N$h$&$J7A<0$NJd40$r(B large $B7?Jd40$H8F$V$3$H$K$7$^$9!#(B
   9.755 -
   9.756 -`[prefix] l'
   9.757 -             ... large $B7?Jd403+;O(B
   9.758 -
   9.759 -$B$,(Blarge$B7?Jd40$N3+;O$G$9!#(B`[prefix] l' $B$r2!$9$H!"%_%K%P%C%U%!$K(B
   9.760 -
   9.761 -             {\??? } (default large): 
   9.762 -
   9.763 -$B$HI=<($5$l$k$N$G!">e5-$N$b$N$HF1$8MWNN$GJd40F~NO$7$F2<$5$$!#Jd408uJd$KMQ0U(B
   9.764 -$B$5$l$F$$$k$N$O!"(B`footnotesize' $B$d(B `huge' $B$N$h$&$JJ8;z%5%$%:;XDj;R$H!"(B`bf'
   9.765 -$B$d(B`dg'$B$N$h$&$J%U%)%s%H;XDj;R$G$9!#(B
   9.766 -
   9.767 -
   9.768 -$B4{$K=q$$$?J8;z$r3g$k(B
   9.769 ---------------------
   9.770 -
   9.771 -  $B$^$?!"(Bbegin$B7?Jd40$N;~$HF1MM!"@h$K=q$$$F$7$^$C$?0lO"$NJ8>O$NJ8;z$N%5%$%:(B
   9.772 -$B$rJQ$($?$$$H;W$&;~$,$"$j$^$9$,!"$=$N$h$&$J;~$O!"%5%$%:$dBg$-$5$rJQ$($?$$J8(B
   9.773 -$B;z$NHO0O$r%^!<%/$7$F$+$i!"8F$S=P$7%-!<$r(B `[prefix] L' $B$H!"BgJ8;z$N(B L $B$KJQ(B
   9.774 -$B$($F8F$S=P$;$P!"$=$N%j%8%g%sA4BN$,!"%V%l!<%9$G0O$^$l$^$9!#(B
   9.775 -
   9.776 -
   9.777 -
   9.778 -File: yatexj, Node: maketitle$B7?Jd40(B, Next: Arbitrary completion, Prev: large$B7?Jd40(B, Up: Completion
   9.779 -
   9.780 -maketitle$B7?Jd40(B
   9.781 -===============
   9.782 -
   9.783 -  `\maketitle' $B$N7A<0$NJd40$r(B maketitle $B7?Jd40$H8F$V$3$H$K$7$^$9!#(B
   9.784 -
   9.785 -`[prefix] m'
   9.786 -             ... maketitle $B7?Jd403+;O(B
   9.787 -
   9.788 -$B$G!"(Bmaketitle $B7?Jd40$r3+;O$7$^$9!#Jd40$NMWNN$O:#$^$G$N$b$N$H$^$C$?$/F1$8$G(B
   9.789 -$B$9!#(BLaTeX $BMQ$N%3%^%s%IL>$,Jd408uJd$H$7$FMQ0U$5$l$F$$$^$9!#(B
   9.790 -
   9.791 -
   9.792 -
   9.793 -File: yatexj, Node: Arbitrary completion, Next: end$BJd40(B, Prev: maketitle$B7?Jd40(B, Up: Completion
   9.794 -
   9.795 -$B?o;~Jd40(B
   9.796 -========
   9.797 -
   9.798 -  $B$5$F!":#$^$G=R$Y$?E57?E*$J(B LaTeX $B%3%^%s%I7A<0$NJd40F~NO$rMQ$$$:$K!":#F~(B
   9.799 -$BNO$7$h$&$H$7$F$$$k(B LaTeX $B%3%^%s%I$rJ8=qCf$NG$0U$N0LCV$G?o;~Jd40$9$k$3$H$b(B
   9.800 -$B$G$-$^$9!#(BLaTeX $B%3%^%s%I(B($B@hF,$,(B\$B$G;O$^$k(B)$B$rF~NO$7$F$$$kESCf$G!"(B
   9.801 -
   9.802 -`[prefix] SPC'
   9.803 -             ... $B?o;~Jd40(B
   9.804 -
   9.805 -$B$rF~NO$9$l$P!"A4$F$NJd408uJd$NCf$+$i0lCW$9$k$b$N$,A*$P$l%+!<%=%k0LCV$KA^F~(B
   9.806 -$B$5$l$^$9!#(B
   9.807 -
   9.808 -
   9.809 -
   9.810 -File: yatexj, Node: end$BJd40(B, Next: Accent mark completion, Prev: Arbitrary completion, Up: Completion
   9.811 -
   9.812 -end$BJd40(B
   9.813 -=======
   9.814 -
   9.815 -  $B8=:_3+$$$?$^$^$N4D6-L>$r<+F0E*$K8!=P$7!"(B`\end{$B4D6-L>(B}'$B$rA^F~$7$^$9!#(B
   9.816 -begin $B7?Jd40$rMQ$$$l$P4D6-$NJD$8K:$l$O$J$$$N$G$9$,!";~$K$O$D$$$D$$<j$G(B 
   9.817 -`\begin{$B4D6-L>(B}' $B$rF~$l$F$7$^$$!"Ha$7$$;W$$$r$9$k$3$H$,$"$j$^$9!#$=$N$h$&(B
   9.818 -$B$J;~$K$O5$$K$;$:B3$1$FJ8>O$rF~NO$7!"$7$+$k$N$A$K(B
   9.819 -
   9.820 -`[prefix] e'
   9.821 -             ... end $BJd40(B
   9.822 -
   9.823 -$B$H$9$k$3$H$G!"8=:_3+$$$F$$$k4D6-L>$G(B \end{} $B$,Jd$o$l$^$9!#(B
   9.824 -
   9.825 -
   9.826 -
   9.827 -File: yatexj, Node: Accent mark completion, Next: Image completion, Prev: end$BJd40(B, Up: Completion
   9.828 -
   9.829 -$B%"%/%;%s%H5-9fJd40(B
   9.830 -==================
   9.831 -
   9.832 -  $B2$J8$N%"%/%;%s%H5-9f(B(`\`{o}'$B$J$I(B)$B$rF~NO$9$k;~$O!"(B
   9.833 -
   9.834 -`[prefix] a'
   9.835 -             ... $B%"%/%;%s%H5-9fF~NO(B
   9.836 -
   9.837 -$B$r2!$9$H!"%_%K%P%C%U%!$K(B
   9.838 -
   9.839 -             1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b
   9.840 -
   9.841 -$B$H$$$&%a%K%e!<$,=P$FMh$k$N$G!"?t;z!"$^$?$OBP1~$9$k5-9f(B/$B1Q;z$rF~NO$7$F2<$5(B
   9.842 -$B$$!#$9$k$HJT=8%P%C%U%!$K!"(B
   9.843 -
   9.844 -             \`{}
   9.845 -
   9.846 -$B$,$"$i$o$l!"%+!<%=%k$,(B{}$BFb$K0LCV$9$k$N$G!"$5$i$K0lJ8;zF~NO$9$k;v$G!"(B
   9.847 -
   9.848 -             \`{o}
   9.849 -
   9.850 -$B$,40@.$5$l!"%+!<%=%k$O(B{}$B$N30$KLa$j$^$9!#(B
   9.851 -
   9.852 -
   9.853 -
   9.854 -File: yatexj, Node: Image completion, Next: Greek letter completion, Prev: Accent mark completion, Up: Completion
   9.855 -
   9.856 -$B?t<05-9f%$%a!<%8Jd40(B
   9.857 -====================
   9.858 -
   9.859 -  $B<g$K?t<0%b!<%I$G;HMQ$5$l$k!"Lp0u$d&2$J$I$N5-9f$r5<;wE*$KI=8=$9$k%-!<F~NO(B
   9.860 -$B$G!"(BLaTeX $B%3%^%s%I$rF~NO$G$-$^$9!#$3$l$OLnD;<+?H$N!V?t<0%b!<%I!W$G$N$_F0:n(B
   9.861 -$B$7$^$9!#LnD;$O%+!<%=%k$,(BTeX$B$N?t<04D6-$NCf$K$"$k;~$K(B`;'$B$d!"(B`:'$B$KFC<l$J5!G=(B
   9.862 -$B$r;}$?$;$^$9!#(B
   9.863 -
   9.864 -  $B$5$F!"Nc$($P!""+(B(leftarrow)$B$r(BASCII$BJ8;z$@$1$GI=8=$9$k>l9g!"0lHLE*$K$O!V(B<-$B!W(B
   9.865 -$B$N$h$&$K$7$^$9$,!"$3$l$rMxMQ$7$F!"?t<05-9f%$%a!<%8F~NO%b!<%I$G(B 
   9.866 -`\leftarrow'$B$rF~NO$9$k$K$O!"(B`;'($B%;%_%3%m%s(B)$B$rBG$C$F$+$i(B`<-'$B$HF~NO$7$^$9!#(B
   9.867 -$BF1MM$K!"D9$$Lp0u"+(B-(long-leftarrow) $B$r(BASCII$BJ8;z$@$1$GI=8=$9$k>l9g!V(B<--$B!W$H(B
   9.868 -$B$9$k$N$G!"(B`\longleftarrow'$B$rF~NO$9$k$?$a$K$O!"(B`;<--' $B$HF~NO$7$^$9!#$"$k$$(B
   9.869 -$B$OL58BBg5-9f$r(BASCII$BJ8;z$@$1$GI=8=$9$k;~$O!V(Boo$B!W$N$h$&$K$9$k$3$H$+$i!"(B
   9.870 -`\infty' $B$rF~NO$9$k;~$O!"(B`;oo'$B$H%-!<F~NO$7$^$9!#(B
   9.871 -
   9.872 -  $B$3$l$i$NA`:n$r$^$H$a$k$H<!$N$h$&$K$J$j$^$9!#(B
   9.873 -
   9.874 -     INPUT                   $BF~NO$5$l$k(B LaTeX $B%3%^%s%I(B
   9.875 -     ; < -                   `\leftarrow'
   9.876 -     ; < - -                 `\longleftarrow'
   9.877 -     ; < - - >               `\longleftrightarrow'
   9.878 -     ; o                     `\circ'
   9.879 -     ; o o                   `\infty'
   9.880 -
   9.881 -
   9.882 -  $B$$$:$l$N>l9g$b!"%$%a!<%8F~NO$r9T$C$F$$$kESCf$GK>$_$N$b$N$,%P%C%U%!$KI=<((B
   9.883 -$B$5$l$?$J$i!"$=$3$G%$%a!<%8F~NO$r;_$a$F<!$NJT=8F0:n$K0\$C$F$b9=$$$^$;$s!#(B
   9.884 -
   9.885 -  $B?t<04D6-Cf$G(B`;'$B<+?H$rF~NO$9$k$K$O(B`;;'$B$N$h$&$K$7$^$9!#%$%a!<%8F~NO$NESCf(B
   9.886 -$B$G(BTAB$B$r2!$9$H!"$=$l$^$GF~NO$7$?J8;z$G;O$^$k$b$N0lMw$,I=<($5$l$^$9!#$3$3$G(B
   9.887 -$BL\E*$N(B LaTeX $B%3%^%s%I$^$G%+!<%=%k$r0\F0$7:FEY(BTAB$B$r2!$9$3$H$G$=$N(B LaTeX $B%3(B
   9.888 -$B%^%s%I$,%P%C%U%!$KA^F~$5$l$^$9!#(B
   9.889 -
   9.890 -  $B$I$N%-!<F~NO$K$I$N5-9f$,BP1~$7$F$$$k$+A4$FCN$j$?$$;~$O!"(B`;'$B$r2!$7$?D>8e(B
   9.891 -$B$K(BTAB$B$r2!$7$F$/$@$5$$!#0J2<$NNc$O!"(B`;<'$B$H2!$7$?8e$K(BTAB$B$r2!$7$?$b$N$G$9!#(B
   9.892 -
   9.893 -     KEY             LaTeX sequence          sign
   9.894 -     <               \leq                    $B!e(B
   9.895 -     <<              \ll                     $B!T(B
   9.896 -     <-              \leftarrow              $B"+(B
   9.897 -     <=              \Leftarrow              <=
   9.898 -
   9.899 -$B:8$+$i(B[$BF~NO%-!<(B]$B!"(B[$BBP1~$9$k(B LaTeX $B%3%^%s%I(B]$B!"(B[($B5<;w(B)$B5-9f?^<((B]$B!"$H$$$&=g$G(B
   9.900 -$B%a%K%e!<$,=P$FMh$k$N$G!"$h$/;H$&$b$N$r3P$($F$*$/$HNI$$$G$7$g$&!#$b$N$K$h$C(B
   9.901 -$B$F$O(BASCII$BJ8;z$GI=8=$9$k$3$H$,:$Fq$J$N$G!"$"$^$j3P$($d$9$$%-!<JB$S$G$O$J$$(B
   9.902 -$B$b$N$,$"$k$G$7$g$&$+$i!"$=$N$h$&$J>l9g$O(B \maketitle $B7?Jd40$GF~NO$9$k$+!"0J(B
   9.903 -$B2<$K=R$Y$kBP1~I=$N@_Dj$r9T$C$FC1=c$J%-!<JB$S$N$b$N$r@_Dj$9$k$HNI$$$G$7$g$&!#(B
   9.904 -
   9.905 -  $BF~NO%-!<$H(B LaTeX $B%3%^%s%I!"5-9f$NBP1~I=$r8D?ME*$K@_Dj$7$?$$>l9g$O(B 
   9.906 -Emacs-Lisp $BJQ?t(B `YaTeX-math-sign-alist-private' $B$KDj5A$7$F$/$@$5$$!#$=$NFb(B
   9.907 -$BMF$H%G%U%)%k%H$N$b$N$r9g$o$;$?$b$N$,BP1~I=$H$7$F;HMQ$5$l$^$9(B(private $B$NJ}(B
   9.908 -$B$,M%@h$5$l$k(B)$B!#$J$*!"$3$NJQ?t$N9=B$$K$D$$$F$O(B `yatexmth.el' $B$r;2>H$7$F$/$@(B
   9.909 -$B$5$$!#(B
   9.910 -
   9.911 -
   9.912 -
   9.913 -File: yatexj, Node: Greek letter completion, Prev: Image completion, Up: Completion
   9.914 -
   9.915 -$B%.%j%7%cJ8;zJd40(B
   9.916 -================
   9.917 -
   9.918 -  $B$b$&0l$D!"?t<04D6-Cf$G(B`:'$B$r2!$9$H%.%j%7%cJ8;zF~NO%b!<%I$KF~$j$^$9!#(B`:'$B$r(B
   9.919 -$B2!$7$?D>8e$K(B`a'$B$r2!$9$H(B`\alpha'$B$,!"(B`g' $B$r2!$9$H(B `\gamma'$B$,!"$J$I%"%k%U%!%Y%C(B
   9.920 -$B%H$KBP1~$7$?%.%j%7%cJ8;z$,A^F~$5$l$^$9!#A`:nJ}K!$O(B;$B$N?t<05-9fJd40$H$^$C$?(B
   9.921 -$B$/F1$8$G$9!#$^$:$O(B`:'$B$ND>8e$K(BTAB$B$r2!$7$F$I$N%"%k%U%!%Y%C%H$K$I$N%.%j%7%cJ8(B
   9.922 -$B;z$,BP1~$7$F$$$k$+D4$Y$F$_$F$/$@$5$$!#(B
   9.923 -
   9.924 -  `;'$B$H(B`:'$B$r?t<04D6-Cf$G2!$7$F$$$k$K$b$+$+$o$i$:!"%$%a!<%8Jd40$,F/$+$J$$>l(B
   9.925 -$B9g$O!"(B`C-u ;'$B$N$h$&$K(B universal-argument $B$r$D$1$F%-!<$r2!$9$3$H$K$h$j!"6/(B
   9.926 -$B@)E*$K%$%a!<%8Jd40$KF~$k$3$H$,$G$-$^$9!#$^$?!"$3$N;~$K$I$N$h$&$J>uBV$G?t<0(B
   9.927 -$B4D6-FbH=Dj$K<:GT$7$?$+$r$4O"Mm2<$5$$!#(B
   9.928 -
   9.929 -
   9.930 -
   9.931 -File: yatexj, Node: Local dictionary, Next: Commenting out, Prev: Completion, Up: Top
   9.932 -
   9.933 -$B%m!<%+%k<-=q(B
   9.934 -************
   9.935 -
   9.936 -  $BJd40F~NOMQ$N8uJd$O;0<oN`$N<-=q$+$i9=@.$5$l$F$$$^$9!#0l$D$O(B`yatex.el'$B$KAH(B
   9.937 -$B$_9~$^$l$?!VI8=`<-=q!W!"$b$&0l$D$O%f!<%6$,8D?ME*$K>oMQ$9$k%3%^%s%I$rJ]B8$9(B
   9.938 -$B$k!V%f!<%6<-=q!W!"$=$7$F$b$&$R$H$D$O$"$k%G%#%l%/%H%j$G$N$_M-8z$J%3%^%s%I$r(B
   9.939 -$BJ]B8$9$k!V%m!<%+%k<-=q!W$G$9!#(B
   9.940 -
   9.941 -  $BJd40F~NO;~$K?7$7$$C18l$rF~$l$?>l9g$K!"$=$NC18l$r$I$N<-=q$KF~$l$k$+J9$$$F(B
   9.942 -$BMh$^$9!#(B
   9.943 -
   9.944 -       `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard
   9.945 -
   9.946 -$B$H$$$&%W%m%s%W%H$KBP$7!"(B`u'$B$HEz$($k$H!V%f!<%6<-=q!W$r!"(B`l'$B$HEz$($k$H%m!<%+(B
   9.947 -$B%k<-=q$r99?7$7!"(B`n'$B$HEz$($k$H<-=q%U%!%$%k$O99?7$;$:8=:_$N(BEmacs $B%;%C%7%g%s(B
   9.948 -$B$N$_M-8z$JC18l$H$7!"(B`d'$B$HEz$($k$H?7$?$JC18l$r3X=,$;$:$K<N$F$k$3$H$K$J$j$^(B
   9.949 -$B$9!#(B
   9.950 -
   9.951 -  $B$b$7!"%m!<%+%k<-=q$N5!G=$O$$$i$:!"A4$F%f!<%6<-=q$N99?7$N$_$G$h$$$H8@$&>l(B
   9.952 -$B9g$K$O(B`~/.emacs'$B$J$I$G!"(B
   9.953 -
   9.954 -             (setq YaTeX-nervous nil)
   9.955 -
   9.956 -$B$H$7$F2<$5$$!#(B
   9.957 -
   9.958 -
   9.959 -
   9.960 -File: yatexj, Node: Commenting out, Next: Cursor jump, Prev: Local dictionary, Up: Top
   9.961 -
   9.962 -$B%3%a%s%H%"%&%H(B
   9.963 -**************
   9.964 -
   9.965 -
   9.966 -  LaTeX$B$NJT=8$K$O;n9T:x8m$,$D$-$b$N$G$9!#$"$kItJ,$r0l3g$G%3%a%s%H%"%&%H$7(B
   9.967 -$B$?$j!"%3%a%s%H$r30$7$?$j$7$?$$$3$H$,$"$j$^$9!#(B
   9.968 -
   9.969 -`[prefix] >'
   9.970 -             ... $B%j%8%g%s$r(B % $B$G%3%a%s%H%"%&%H(B
   9.971 -`[prefix] <'
   9.972 -             ... $B%j%8%g%s$N(B % $B$N%3%a%s%H$r30$9(B
   9.973 -
   9.974 -$B$O!"$"$i$+$8$a@_Dj$7$?%j%8%g%s$KBP$7$F$NA`:n!"(B
   9.975 -
   9.976 -`[prefix] .'
   9.977 -             ... $B8=:_$N%Q%i%0%i%U$r%3%a%s%H%"%&%H(B
   9.978 -`[prefix] ,'
   9.979 -             ... $B8=:_$N%Q%i%0%i%U$N%3%a%s%H$r30$9(B
   9.980 -
   9.981 -$B$O!"%+!<%=%k$N0LCV$9$k%Q%i%0%i%UA4BN$KBP$7$F$NA`:n$G$9!#$J$*!"$3$3$G$$$&(B
   9.982 -$B!V%Q%i%0%i%U!W$O(B (`mark-paragraph') $B4X?t$K$h$j%^!<%/$5$l$kHO0O$r;X$7$^$9(B
   9.983 -($BI8=`@_Dj$G(B`ESC h'$B$K%P%$%s%I$5$l$F$$$k(B)$B!#$J$*!"4{$K(B`%'$B$G%3%a%s%H%"%&%H$5$l(B
   9.984 -$B$F$$$k%Q%i%0%i%U$KBP$7$F7+$jJV$7%Q%i%0%i%U$N%3%a%s%H$r;HMQ$7$?>l9g$NF0:n$O(B
   9.985 -$BJ]>Z$7$^$;$s$N$G8fCm0U$/$@$5$$!#(B
   9.986 -
   9.987 -  $B$5$F!"J8>O$KBP$7$F$@$1$G$J$/!";~$K$O(B`\begin', `\end' $B<+BN$KBP$7$F$b%3%a(B
   9.988 -$B%s%H%"%&%H$NA`:n$r$7$?$$$H$-$,$"$j$^$9!#$3$N$h$&$J$H$-$O!"(B`\begin{}' $B$"$k(B
   9.989 -$B$$$O(B `\end{}' $B$N9T$K%+!<%=%k$r9g$o$;!"(B
   9.990 -
   9.991 -`[prefix] >'
   9.992 -             ... `\begin{}'$B!A(B`\end{}' $BA4$F%3%a%s%H%"%&%H(B
   9.993 -`[prefix] <'
   9.994 -             ... `\begin{}'$B!A(B`\end{}' $BA4$F%3%a%s%H$r30$9(B
   9.995 -
   9.996 -$B$H$9$k$3$H$G!"(B`\begin$B!A(B\end'$B$G0O$^$l$k4D6-A4$F$KBP$7$F%3%a%s%HA`:n$7!"(B
   9.997 -
   9.998 -`[prefix] .'
   9.999 -             ... `\begin{}' $B$H(B `\end{}' $B$r%3%a%s%H%"%&%H(B
  9.1000 -`[prefix] ,'
  9.1001 -             ... `\begin{}' $B$H(B `\end{}' $B$N%3%a%s%H$r30$9(B
  9.1002 -
  9.1003 -$B$O!"BP1~$9$k(B `\begin' $B$H(B `\end' 2$B9T$@$1$r!"%3%a%s%HA`:n$NBP>]$H$7$^$9!#%j(B
  9.1004 -$B%8%g%s$r%3%a%s%H%"%&%H$7$h$&$H$7$F!"%^!<%/$r@_Dj$7$?$N$A$K%+!<%=%k$r0\F0$7(B
  9.1005 -`[preifx] >' $B$r2!$7$F$b%+!<%=%k$,(B `\begin{}' $B$N>e$K$"$k$H(B`\begin{}'$B!A(B
  9.1006 -`\end{}'$B%b!<%I$G%3%a%s%H5!G=$,F/$$$F$7$^$&$N$GCm0U$7$F2<$5$$!#(B
  9.1007 -
  9.1008 -
  9.1009 -
  9.1010 -File: yatexj, Node: Cursor jump, Next: Modifying/Deleting, Prev: Commenting out, Up: Top
  9.1011 -
  9.1012 -$B%+!<%=%k%8%c%s%W(B
  9.1013 -****************
  9.1014 -
  9.1015 -
  9.1016 -* Menu:
  9.1017 -
  9.1018 -* $BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B::  
  9.1019 -* $B$*3(IA$-%D!<%k5/F0(B::          
  9.1020 -* $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B::  
  9.1021 -* $B4D6-$rC10L$H$7$?%8%c%s%W(B::    
  9.1022 -* $B:G8e$NJd400LCV$X$N%8%c%s%W(B::  
  9.1023 -
  9.1024 -
  9.1025 -
  9.1026 -File: yatexj, Node: $BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B, Next: $B$*3(IA$-%D!<%k5/F0(B, Prev: Cursor jump, Up: Cursor jump
  9.1027 -
  9.1028 -$BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B
  9.1029 -============================
  9.1030 -
  9.1031 -  $BJ8=qCf$N$$$m$$$m$J>l=j$G(B
  9.1032 -
  9.1033 -`[prefix] g'
  9.1034 -             ... $BBP1~$9$k%*%V%8%'%/%H$K%8%c%s%W(B
  9.1035 -
  9.1036 -$B$r2!$9$3$H$K$h$j!"%+!<%=%k0LCV$N(BLaTeX$B%3%^%s%I$KBP1~$9$k>l=j$K%8%c%s%W$7$^(B
  9.1037 -$B$9!#BP1~4X78$,B8:_$9$k$H2r<a$5$l$k%3%^%s%I$K$O0J2<$N$b$N$,$"$j$^$9!#(B
  9.1038 -
  9.1039 -   * `\begin{}' $B"+"*(B `\end{}'
  9.1040 -   * `%#BEGIN' $B"+"*(B `%#END'
  9.1041 -   * $B2hA|%U%!%$%k$N<h$j9~$_%^%/%m(B $B"*(B $BBP1~$9$k(Bviewer/$B$*3($+$-%D!<%k5/F0(B
  9.1042 -   * `\label{}' $B"+"*(B `\ref{}'
  9.1043 -   * `\include(\input)' $B"*(B $BBP1~$9$k%U%!%$%k(B
  9.1044 -   * `\bibitem{}' $B"+"*(B `\cite{}'
  9.1045 -
  9.1046 -  `\begin{}' $B$+(B `\end{}' $B$N9T$G(B`[prefix] g'$B$r2!$9$3$H$K$h$j!"BP1~$9$k(B
  9.1047 -`end/begin'$B$N9T$K%8%c%s%W$7$^$9!#$b$A$m$sBP1~$9$k$b$N$,$J$$>l9g$O%(%i!<$K(B
  9.1048 -$B$J$j$^$9!#$^$?$3$l$O!"NN0h8GDj$N$?$a$N(B `%#BEGIN' $B$H(B `%#END' $B$N%Z%"$KBP$7$F(B
  9.1049 -$B$bF1MM$KF0:n$7$^$9!#$J$*!"(B`label/ref'$B$d(B`cite/bibitem'$BBP1~$9$k$b$N$,JL%U%!(B
  9.1050 -$B%$%k$K$"$k;~$O!"%8%c%s%W@h$H$J$k%U%!%$%k$,%*!<%W%s$5$l$F$$$J$1$l$P$J$j$^$;(B
  9.1051 -$B$s!#(B*Note %#notation::.  $B%a%$%s$N(B .tex $B%U%!%$%k$N(B `\include{chap1}' $B$J$I$K(B
  9.1052 -$B%+!<%=%k$r9g$o$;!"(B`[prefix] g' $B$r2!$9$H!"(B`chap1.tex' $B$K%8%c%s%W$7$^$9!#(B
  9.1053 -
  9.1054 -$B$^$?!"(B
  9.1055 -
  9.1056 -`[prefix] 4 g'
  9.1057 -             ... $BJL%&%#%s%I%&$GBP1~%*%V%8%'%/%H$K%8%c%s%W(B
  9.1058 -
  9.1059 -$B$r2!$9$H!"BP1~$9$k%*%V%8%'%/%H$X$N%8%c%s%W$rJL%&%#%s%I%&$G9T$$$^$9!#$?$@$7!"(B
  9.1060 -$B$3$N5!G=$O(B `begin/end', `%#BEGIN/%#END' $B4V$N%8%c%s%W$KBP$7$F$O(B($B0UL#$,$J$$(B
  9.1061 -$B$H;W$o$l$k$N$G(B)$B5!G=$7$J$$$N$GCm0U$7$F$/$@$5$$!#(B
  9.1062 -
  9.1063 -
  9.1064 -
  9.1065 -File: yatexj, Node: $B$*3(IA$-%D!<%k5/F0(B, Next: $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B, Prev: $BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B, Up: Cursor jump
  9.1066 -
  9.1067 -$B$*3(IA$-%D!<%k5/F0(B
  9.1068 -==================
  9.1069 -
  9.1070 -$B>e5-$N!V2hA|%U%!%$%k$N<h$j9~$_%^%/%m!W$H$O!"Nc$($P(B `\epsfile{file=foo}' $B$N(B
  9.1071 -$B$h$&$JA^3(<h$j9~$_%3%^%s%I$N$3$H$G!"$3$N9T$K%+!<%=%k$r9g$o$;$F(B`[prefix] g'
  9.1072 -$B$r2!$9$H$=$N2hA|%U%!%$%k$N85$H$J$C$?%U%!%$%k$rBP1~$9$k$*3(IA$-%D!<%k$r5/F0(B
  9.1073 -$B$7$F%*!<%W%s$7$^$9!#5/F0$9$k%D!<%k$NH=Dj$O0J2<$N$h$&$K$J$5$l$^$9!#(B
  9.1074 -
  9.1075 -  1. $B%+%l%s%H9T$,JQ?t(B `YaTeX-processed-file-regexp-alist' $B$KDj5A$5$l$F$$$k(B
  9.1076 -     $B@55,I=8=$N$$$:$l$+$H%^%C%A$7$?$i!"%U%!%$%kL>$KAjEv$9$kItJ,$r(B \\(\\)$B$+(B
  9.1077 -     $B$iH4$-=P$7$F3P$($F$*$/(B($B2?HVL\$N(B\\(\\)$B$+$OJQ?t$N3F%j%9%H$N(B cdr $BIt$KF~(B
  9.1078 -     $B$l$F$*$/(B)$B!#%^%C%A$7$J$1$l$P2?$b$7$J$$!#(B
  9.1079 -  2. $B9TKv$K!"JQ?t(B `YaTeX-file-processor-alist' $B$KEPO?$5$l$F$$$k%3%^%s%I$,(B
  9.1080 -     $B!V(B%$B%3%^%s%I!W(B $B$N$h$&$K=q$$$F$"$l$P6/@)E*$K!V%3%^%s%I(B $B%U%!%$%kL>(B.$B3HD%(B
  9.1081 -     $B;R!W$r5/F0!#(B
  9.1082 -  3. $B$J$1$l$P!"JQ?t(B `YaTeX-file-processor-alist' $B$N3F%j%9%H$N(Bcdr$BIt$KF~$C$F(B
  9.1083 -     $B$$$k3HD%;R$r!V%U%!%$%kL>!W$N8e$m$KB-$7$?%U%!%$%k$,B8:_$9$k$+=g<!D4$Y(B
  9.1084 -     $B$F!"B8:_$7$?>l9g(Bcar$BIt$KF~$C$F$$$k%3%^%s%I$r5/F0$9$k!#(B
  9.1085 -  4. $B0J>e$I$l$+$K%^%C%A$7$J$1$l$P$"$-$i$a$k!#(B
  9.1086 -
  9.1087 -
  9.1088 -$BJQ?t(B `YaTeX-file-processor-alist' $B$HJQ?t(B `YaTeX-file-processor-alist' $B$N@_(B
  9.1089 -$BDjJ}K!$K$D$$$F$O$=$l$>$l$NJQ?t$K$D$$$F(B describe-variable $B$7$F@bL@$rFI$s$G(B
  9.1090 -$B2<$5$$!#$&$^$/@_Dj$9$k$H!"2hA|%U%!%$%k$K$+$.$i$:!"G$0U$N7A<0$N%U%!%$%k$rG$(B
  9.1091 -$B0U$N%W%m%;%C%5$G=hM}$9$k%3%^%s%I$r4JC1$K8F$S=P$9$3$H$,$G$-$^$9!#(B
  9.1092 -
  9.1093 -
  9.1094 -
  9.1095 -File: yatexj, Node: $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B, Next: $B4D6-$rC10L$H$7$?%8%c%s%W(B, Prev: $B$*3(IA$-%D!<%k5/F0(B, Up: Cursor jump
  9.1096 -
  9.1097 -$B%a%$%s%U%!%$%k$X$N%8%c%s%W(B
  9.1098 -==========================
  9.1099 -
  9.1100 -`chap1.tex'$B$N$h$&$J%5%V%U%!%$%k$G!"(B
  9.1101 -
  9.1102 -`[prefix] ^'
  9.1103 -             ... $B%a%$%s%U%!%$%k$K%8%c%s%W(B
  9.1104 -`[prefix] 4 ^'
  9.1105 -             ... $BJL%&%#%s%I%&$G%a%$%s%U%!%$%k$K%8%c%s%W(B
  9.1106 -
  9.1107 -$B$r2!$9$H!"%a%$%s%U%!%$%k$NJT=8%P%C%U%!$K@ZBX$($^$9!#$b$7!"%a%$%s%U%!%$%k$r(B
  9.1108 -$B%*!<%W%s$7$F$$$J$$>l9g$O!"%+%l%s%H%G%#%l%/%H%j$+$iC5$7$F<+F0E*$K%*!<%W%s$7(B
  9.1109 -$B$^$9!#(B
  9.1110 -
  9.1111 -
  9.1112 -
  9.1113 -File: yatexj, Node: $B4D6-$rC10L$H$7$?%8%c%s%W(B, Next: $B:G8e$NJd400LCV$X$N%8%c%s%W(B, Prev: $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B, Up: Cursor jump
  9.1114 -
  9.1115 -$B4D6-$rC10L$H$7$?%8%c%s%W(B
  9.1116 -========================
  9.1117 -
  9.1118 -$B$5$i$K8=:_$N4D6-$rC10L$H$7$F5!G=$9$k%3%^%s%I$K0J2<$N$b$N$,$"$j$^$9!#(B
  9.1119 -
  9.1120 -`M-C-a'
  9.1121 -             ... $B4D6-$N@hF,(B(`\begin')$B$X%8%c%s%W(B
  9.1122 -`M-C-e'
  9.1123 -             ... $B4D6-$NKvHx(B(`\end')$B$X%8%c%s%W(B
  9.1124 -`M-C-@'
  9.1125 -             ... $B4D6-A4BN$r%^!<%/(B
  9.1126 -
  9.1127 -$B>e5-$N%3%^%s%I$ODL>o$N(B`[prefix]'$B%-!<$G$O$J$/(B`META'$B%-!<$r%W%j%U%#%/%9$H$7$F(B
  9.1128 -$B5!G=$9$k$N$G$4Cm0U2<$5$$!#(B
  9.1129 -
  9.1130 -
  9.1131 -
  9.1132 -File: yatexj, Node: $B:G8e$NJd400LCV$X$N%8%c%s%W(B, Prev: $B4D6-$rC10L$H$7$?%8%c%s%W(B, Up: Cursor jump
  9.1133 -
  9.1134 -$B:G8e$NJd400LCV$X$N%8%c%s%W(B
  9.1135 -==========================
  9.1136 -
  9.1137 -$BLnD;$OJd40F~NO$7$?0LCV$r>o$K%l%8%9%?(B `3'$B$KJ]B8$7$F$$$^$9!#F~NOESCf$GG!2?$J(B
  9.1138 -$B$k%U%!%$%k$NG!2?$J$k0LCV$K9T$C$?$H$7$F$b!"(B`C-x j 3'(`jump-to-register')$B$r(B
  9.1139 -$B;H$C$FD>$A$K:G8e$NJd40F~NO0LCV$KLa$k$3$H$,$G$-$^$9!#(B
  9.1140 -
  9.1141 -
  9.1142 -
  9.1143 -File: yatexj, Node: Modifying/Deleting, Next: Filling, Prev: Cursor jump, Up: Top
  9.1144 -
  9.1145 -$BJQ99(B/$B:o=|(B
  9.1146 -*********
  9.1147 -
  9.1148 -  $B4{$KF~NO$5$l$F$$$k(B LaTeX $B%3%^%s%I$NJQ99(B/$B:o=|$N$?$a$K0J2<$N5!G=$,MQ0U$5$l(B
  9.1149 -$B$F$$$^$9!#(B
  9.1150 -
  9.1151 -`[prefix] c'
  9.1152 -             ... $B%+!<%=%k0LCV$N(B LaTeX $B%3%^%s%I$NJQ99(B
  9.1153 -`[prefix] k'
  9.1154 -             ... $B%+!<%=%k0LCV$N(B LaTeX $B%3%^%s%I$N:o=|(B
  9.1155 -
  9.1156 -$B$3$l$i$N%3%^%s%I$O!"%3%^%s%I$r5/F0$9$k>l=j$K$h$C$FF0:n$r7hDj$9$k$N$GCm0U$7(B
  9.1157 -$B$F2<$5$$!#(B
  9.1158 -
  9.1159 -* Menu:
  9.1160 -
  9.1161 -* Changing LaTeX command::      LaTeX $B%3%^%s%I$NJQ99(B
  9.1162 -* Killing LaTeX command::       LaTeX $B%3%^%s%I$N:o=|(B
  9.1163 -
  9.1164 -
  9.1165 -
  9.1166 -File: yatexj, Node: Changing LaTeX command, Next: Killing LaTeX command, Prev: Modifying/Deleting, Up: Modifying/Deleting
  9.1167 -
  9.1168 -LaTeX $B%3%^%s%I$NJQ99(B
  9.1169 -====================
  9.1170 -
  9.1171 -$BJQ99$7$?$$(B LaTeX $B%3%^%s%I$K%+!<%=%k$r9g$o$;$F(B `[prefix] c' $B$r2!$9$H$=$N%3(B
  9.1172 -$B%^%s%I$rJd40F~NO$J$I$rMQ$$$F<j7Z$KJQ$($k$3$H$,$G$-$^$9!#(B`[prefix] c' $B$GJQ(B
  9.1173 -$B99$G$-$k%3%^%s%I$K$O0J2<$N$b$N$,$"$j$^$9!#(B
  9.1174 -
  9.1175 -   * `begin/end' $B$N4D6-L>(B
  9.1176 -   * section$B7?%3%^%s%I$N%3%^%s%IL>(B
  9.1177 -   * section$B7?%3%^%s%I$N0z?t(B
  9.1178 -   * section$B7?%3%^%s%I$N%*%W%7%g%s%Q%i%a!<%?(B([]$B$G0O$^$l$?$b$N(B)
  9.1179 -   * large$B7?%3%^%s%I(B
  9.1180 -   * ($B%$%a!<%8Jd40$GF~NO2DG=$J(B)$B?t<0%b!<%I@lMQ$N(Bmaketitle$B7?%3%^%s%I(B
  9.1181 -
  9.1182 -  $BJQ$($?$$(Bsection$B7?%3%^%s%I$N0z?t$,$5$i$K(B LaTeX $B%3%^%s%I$r4^$`>l9g$O!"$=$N(B
  9.1183 -$B0z?t$r0O$`Cf3g8L$N>e$G(B `[prefix] c' $B$r2!$9$3$H$GCf$N%3%^%s%I$rJQ99BP>]H=Dj(B
  9.1184 -$B$+$i=|30$9$k$3$H$,$G$-$^$9!#(B
  9.1185 -
  9.1186 -
  9.1187 -
  9.1188 -
  9.1189 -File: yatexj, Node: Killing LaTeX command, Prev: Changing LaTeX command, Up: Modifying/Deleting
  9.1190 -
  9.1191 -LaTeX $B%3%^%s%I$N:o=|(B
  9.1192 -====================
  9.1193 -
  9.1194 -`[prefix] k' $B$O5/F0$9$k0LCV$K$h$j<!$N$h$&$JF0:n$r9T$$$^$9!#(B
  9.1195 -
  9.1196 -
  9.1197 -     $B5/F00LCV(B                        $BF0:n(B
  9.1198 -     \begin, \end$B$N9T(B                `\begin\end'$B%Z%"$N:o=|(B
  9.1199 -     %#BEGIN, %#END $B$N9T(B             %#BEGIN,%#END$B%Z%"$N:o=|(B
  9.1200 -     section$B7?%3%^%s%I$N>e(B($BCf(B)       section$B7?%3%^%s%I$N:o=|(B
  9.1201 -     $B%U%)%s%H;XDj3g8L$N>e(B            $B%U%)%s%H;XDj$N:o=|(B
  9.1202 -     $B3g8L$N>e(B                        $BBP$r$J$93g8L$N:o=|(B
  9.1203 -
  9.1204 -`\begin, \end' $B$*$h$S(B `%#BEGIN, %#END' $B$r:o=|$9$k>l9g!"(B`\begin, \end' $B$d(B 
  9.1205 -`%#BEGIN, %#END' $B$NB8:_$9$k9T$O$^$k$4$H:o=|$5$l$k$N$G!"$=$l$i$N0l9T$K(B 
  9.1206 -`\begin' $B$J$I$rFs$D0J>eO"$M$F=q$+$J$$$h$&$KCm0U$7$F$/$@$5$$!#>e5-$N$b$N$O(B
  9.1207 -$B$9$Y$FK\J8$r0O$&!VMF4o!W$r:o=|$9$k$h$&$KF/$-$^$9$,!"(Buniversal-argument
  9.1208 -(`C-u') $B$rBG$C$?8e$G(B`[prefix] k'$B$r%?%$%W$9$k$H!"$=$l$>$l$N!VMF4o!W$K4^$^$l(B
  9.1209 -$B$k!VCf?H!W$b0l5$$K:o=|$7$^$9!#0J2<$NNc$r;29M$K$7$F2<$5$$!#(B
  9.1210 -
  9.1211 -             $B85$N%F%-%9%H(B:                   [prefix] k      C-u [prefix] k
  9.1212 -             $BK\J8(B\footnote{$B5SCm(B}$B$G$9!#(B     $BK\J85SCm$G$9!#(B  $BK\J8$G$9!#(B
  9.1213 -                     $B",(B($B%+!<%=%k0LCV(B)
  9.1214 -
  9.1215 -
  9.1216 -
  9.1217 -File: yatexj, Node: Filling, Next: Includeonly, Prev: Modifying/Deleting, Up: Top
  9.1218 -
  9.1219 -$B7eB7$((B
  9.1220 -******
  9.1221 -
  9.1222 -
  9.1223 -item$B$N7eB7$((B
  9.1224 -============
  9.1225 -
  9.1226 -  itemize $B4D6-Cf$K$"$k(B`\item'$B$N9`L\(B($BJ8>O(B)$B$,J#?t9T$KEO$k>l9g$K!"9`L\$N@hF,(B
  9.1227 -$B$r7eB7$($7$?$$>l9g$K$O!"(B
  9.1228 -
  9.1229 -
  9.1230 -`M-q'
  9.1231 -             ... $B7eB7$((B
  9.1232 -
  9.1233 -$B$K$h$C$F!"$=$N(B item $B$N%$%s%G%s%H$N?<$5$K1~$8$F(B fill $B$5$l$^$9!#$J$*!"8E$$(B
  9.1234 -NTT jTeX $B$r;HMQ$7$F$$$k>l9g$K$O!"(BLisp $BJQ?t(B`NTT-jTeX'$B$r(B`t'$B$K%;%C%H$7$F2<$5(B
  9.1235 -$B$$!#(B
  9.1236 -
  9.1237 -  $B$3$N$H$-!"JQ?t(B`YaTeX-item-regexp'$B$NCM(B($BI8=`$G$O(B `"\\\\item"')$B$r9`L\;XDj%3(B
  9.1238 -$B%^%s%I$N@55,I=8=$H$7$F8!:w$K;HMQ$7$^$9!#(Bitemize $B4D6-$G!"FH<+$N%3%^%s%I$rDj(B
  9.1239 -$B5A$7$F9`L\$rNs5s$7$F$$$k>l9g(B($BNc$($P(B`\underlineitem')$B$O!"(B`~/.emacs' $B$G<!$N(B
  9.1240 -$B$h$&$K;XDj$7$F2<$5$$!#(B
  9.1241 -
  9.1242 -             (setq YaTeX-item-regexp
  9.1243 -                   "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)")
  9.1244 -
  9.1245 -$B$3$NJQ?t$N;XDj$N;EJ}$,$h$/J,$+$i$J$$>l9g$O!"FH<+$N9`L\Ns5s%3%^%s%I$NL>A0$r(B
  9.1246 -``"\item"'$B$G;O$^$k$b$N$K$7$F2<$5$$(B($BNc$($P(B"\itembf"')$B!#(B
  9.1247 -
  9.1248 -$BLnD;$N(B `M-q' $B$G$O(B `\item' $B$r4D6-$K1~$8$F0J2<$N$h$&$K!V%O%s%0%$%s%G%s%H!W$7(B
  9.1249 -$B$^$9!#(B
  9.1250 -
  9.1251 -     itemize, enumerate$B4D6-(B:
  9.1252 -            >\item[$B$[$2$[$2(B] $B1Q8l$G$O!"FC$K0UL#$N$J$$C18l$r(B `foo' $B$G$"$i$o$7$^(B
  9.1253 -            >                $B$9$,!"$3$l$NF|K\8lHG$H$b$$$($kC18l$,!V$[$2$[$2!W(B
  9.1254 -            >                $B$G$9!#(B
  9.1255 -     description$B4D6-(B:
  9.1256 -            > \item[$B$X$m$X$m(B] $B!V$[$2$[$2!W$r$G$?$i$a$,C18l$H$7$F;H$C$?;~$K!"Bh(B
  9.1257 -            >            2$B$N$G$?$i$a$JC18l$H$7$F!V$X$m$X$m!W$,;H$o$l$k$3$H$,B?(B
  9.1258 -            >            $B$$$h$&$G$9!#(B
  9.1259 -
  9.1260 -
  9.1261 -$B%Q%i%0%i%U$N7eB7$((B
  9.1262 -==================
  9.1263 -
  9.1264 -  itemize$B4D6-0J30$G$N%Q%i%0%i%U$N7eB7$((B(fill)$B$O!"4pK\E*$KB>$N%b!<%I$HF1$8(B
  9.1265 -$B$h$&$K5!G=$7$^$9$,!"(Bverbatim$B4D6-$d!"(Btabular$B4D6-$J$I7eB7$($r$9$k$HHa;4$J>u(B
  9.1266 -$B67$K$J$k$h$&$J4D6-Cf$G$O5!G=$7$^$;$s!#$^$?!"(B\verb $B$G3g$C$F$"$k$b$N$O7h$7$F(B
  9.1267 -$B9TJ,3d$5$l$^$;$s(B($BJQ?t(B `YaTeX-verb-regexp' $B$G@)8f(B) )$B!#$5$i$K!"0l;~E*$K%$%s(B
  9.1268 -$B%G%s%H$N?<$5$rJQ$($F$"$k2U=j$G$O!"$=$N%$%s%G%s%H$N@hF,$G(B`M-q'$B$r2!$9$3$H$K(B
  9.1269 -$B$h$j(B fill-prefix $B$r$$$A$$$AJQ99$7$J$/$F7eB7$($,$G$-$^$9!#(B
  9.1270 -
  9.1271 -
  9.1272 -
  9.1273 -
  9.1274 -File: yatexj, Node: Includeonly, Next: What column, Prev: Filling, Up: Top
  9.1275 -
  9.1276 -$B>!<j$K(Bincludeonly
  9.1277 -*****************
  9.1278 -
  9.1279 -  $B%U%!%$%k$rJ,3d$7$FJ8>O$rF~NO$7$F$$$k;~$K$O!"%a%$%s%U%!%$%kCf$K(B
  9.1280 -
  9.1281 -             \includeonly{$B8=:_JT=8Cf$N%U%!%$%kL>(B}
  9.1282 -
  9.1283 -$B$N$h$&$K=q$$$F$*$/$3$H$G!"%?%$%W%;%C%H$N;~4V$r@aLs$G$-$^$9$,!"$A$g$C$HB>$N(B
  9.1284 -$B%U%!%$%k$r<jD>$7$7$?$$;~$K$O(B
  9.1285 -
  9.1286 -             \includeonly{$B$A$g$C$H<jD>$7$7$?$$%U%!%$%kL>(B}
  9.1287 -
  9.1288 -$B$H=q$-D>$5$J$1$l$P$J$i$:<j4V$,$+$+$j$^$9!#LnD;$G$O8=:_JT=8$7$F$$$k%U%!%$%k(B
  9.1289 -$BL>$,%a%$%s%U%!%$%k$N(B`\includeonly'$B$K$J$$>l9g$K$O<+F0E*$K$3$l$r8!=P$7!"<!$N(B
  9.1290 -$B;X<($r6D$.$^$9!#(B
  9.1291 -
  9.1292 -             A)dd R)eplace %)comment?
  9.1293 -
  9.1294 -$B8=:_JT=8Cf$N%U%!%$%k$r(B `\includeonly' $B$N%j%9%H$K2C$($?$$;~$K$O(B`a' $B$r!"8=:_(B
  9.1295 -$BJT=8Cf$N%U%!%$%k$@$1$r(B `\includeonly' $B$K$7$?$$;~$O(B`r'$B$r!"(B`\includeonly' $B$N(B
  9.1296 -$B9T$r%3%a%s%H%"%&%H$7$FL58z2=$7$?$$;~$K$O!"(B`%'$B$r$=$l$>$l2!$7$F2<$5$$!#(B
  9.1297 -
  9.1298 -
  9.1299 -
  9.1300 -File: yatexj, Node: What column, Next: Intelligent newline, Prev: Includeonly, Up: Top
  9.1301 -
  9.1302 -$B$3$3$O$I$3(B?
  9.1303 -***********
  9.1304 -
  9.1305 -  $B9`L\?t$NB?$$(B tabular $B$J$I$r$?$/$5$s=q$$$F$$$k$H2<$NJ}$N9T$G!"$$$^=q$$$F(B
  9.1306 -$B$$$k7e$,$I$3$KBP1~$9$k$N$+$o$+$i$J$/$J$C$F$7$^$&$3$H$,$"$j$^$9!#Nc$($P!"0J(B
  9.1307 -$B2<$N$h$&$J(B tabular $B$K$*$$$F!"(B
  9.1308 -
  9.1309 -             \begin{tabular}{|c|c|c|c|c|c|c|c|}\hline
  9.1310 -              $B;aL>(B&$B=jB0(B&$B")(B&$B=;=j(B&$BEEOC(B&FAX&$B5">J@h(B&$B5">J@hEEOC(B\\ \hline
  9.1311 -              $BLp>eFsO:(B & 6 & 223 & $B2#IM;T9AKL6hF|5H(B & xxx-yyy &
  9.1312 -                     zzz-www & $B%H%s%,(B & 9876-54321 \\
  9.1313 -              $BF|5H>.AN(B & 2 & \multicolumn{2}{c|}{$B65$($J$$(B}
  9.1314 -                     &&&(???)
  9.1315 -              \\ \hline
  9.1316 -             \end{tabular}
  9.1317 -
  9.1318 -(???)$B$NItJ,$,$I$N9`L\$J$N$+$9$0$KH=CG$9$k$N$OFq$7$$$G$7$g$&!#$3$s$J;~$O!"(B
  9.1319 -
  9.1320 -`[prefix] &'
  9.1321 -             ... $B8=:_$N%+%i%`I=<((B
  9.1322 -
  9.1323 -$B$r2!$9$H%+!<%=%k0LCV$N%+%i%`$,$I$N9`L\$K3:Ev$9$k$+$r%_%K%P%C%U%!$KI=<($7$^(B
  9.1324 -$B$9!#(Btabular/array$B4D6-$NBh(B1$B9TL\$r9`L\L>$NJB$S$H$_$J$7$FBP1~$9$k$b$N$rC5$7$^(B
  9.1325 -$B$9!#$b$79`L\L>$H$7$FJL$N$b$N$rI=<($7$FM_$7$$>l9g$O!"9TF,$r(B`%'$B$K$7$F%@%_!<(B
  9.1326 -$B$N9`L\JB$S$r:n$C$F$*$/$HNI$$$G$7$g$&!#(B
  9.1327 -
  9.1328 -
  9.1329 -
  9.1330 -File: yatexj, Node: Intelligent newline, Next: Usepackage cheker, Prev: What column, Up: Top
  9.1331 -
  9.1332 -$B$*$^$+$;2~9T(B
  9.1333 -************
  9.1334 -
  9.1335 -  tabular[*], array, itemize, enumerate, tabbing $B4D6-$r(Bbegin$B7?Jd40$GF~NO$7(B
  9.1336 -$B$?;~!"$^$?$O3F4D6-Fb$G(B
  9.1337 -
  9.1338 -`ESC RET'
  9.1339 -             ... $B$*$^$+$;2~9T(B
  9.1340 -
  9.1341 -$B$r2!$9$H!"$=$N4D6-$K1~$8$?9T%(%s%H%j$r<!$N9T$KA^F~$7$^$9(B(begin$B7?Jd40;~$K<+(B
  9.1342 -$BF0A^F~$5$l$?%(%s%H%j$,ITMW$J>l9g$O(B undo $B$K$h$C$F>C5n$G$-$^$9(B)$B!#Nc$($P!"(B
  9.1343 -tabular$B4D6-$G$O!"$=$N4D6-$N%+%i%`?t$KBP1~$7$?8D?t$N(B `&' $B$K2C$(!"9TKv$N(B 
  9.1344 -`\\' $B$rF~$l$^$9!#$3$N;~$=$l0JA0$K(B `\hline' $B$,$"$l$P$=$l$bIU$12C$($^$9!#4D(B
  9.1345 -$B6-$H$=$l$K1~$8$F<+F0F~NO$9$k$b$N$NBP1~$O0J2<$N$h$&$K$J$j$^$9!#(B
  9.1346 -
  9.1347 -   * `tabular', `tabular*', `array'
  9.1348 -
  9.1349 -             $B%+%i%`?t(B-1 $B$@$1$N(B `&' $B$H(B `\\'$B!#I,MW$K1~$8$F(B `\hline'
  9.1350 -
  9.1351 -   * `tabbing'
  9.1352 -
  9.1353 -             $B0l9TL\$GDj5A$7$F$$$k(B `\=' $B$HF1$88D?t$N(B `\>'$B!#(B
  9.1354 -
  9.1355 -   * `itemize', `enumerate', `description', `list'
  9.1356 -
  9.1357 -             `\item' $B$^$?$O(B `item[]'
  9.1358 -
  9.1359 -  tabular $B4D6-$NNc$N$h$&$K!"K\5!G=$O3F4D6-$N0l9TL\$NFbMF$r;29M$K$7$FF0:n$9(B
  9.1360 -$B$k$N$G!"$J$k$Y$/Fs9TL\0J9_$G8F$S=P$9$h$&$K$7$F$/$@$5$$!#(B
  9.1361 -
  9.1362 -  $B$b$7!"$=$NB>$N4D6-!"Nc$($P(B `foo'$B!"$KBP$7$F(B`$B$*$^$+$;2~9T(B'$B$rF0:n$5$;$?$$;~(B
  9.1363 -$B$O!"(B`YaTeX-intelligent-newline-foo' $B$H$$$&L>A0$N4X?t$rDj5A$7$^$9!#Dj5A$7$?(B
  9.1364 -$B4X?t$O!"8=:_$N9T$K2~9T$rA^F~$7$?D>8e$N9TF,$N0LCV$G8F$P$l$^$9!#4X?t(B 
  9.1365 -`YaTeX-indent-line' $B$r8F$V$H8=:_$N4D6-$N%M%9%H$K1~$8$??<$5$K%$%s%G%s%H$5$l(B
  9.1366 -$B$k$N$G!"$3$l$r8F$s$G$+$i2?$+$rA^F~$9$k$h$&$J%3!<%I$r=q$/$H$h$$$G$7$g$&!#(B
  9.1367 -`yatexenv.el'$BFb$N4X?t(B `YaTeX-intelligent-newline-itemize' $B$NDj5A$J$I$r;29M(B
  9.1368 -$B$K$7$F$/$@$5$$!#(B
  9.1369 -
  9.1370 -
  9.1371 -
  9.1372 -
  9.1373 -File: yatexj, Node: Usepackage cheker, Next: Changing mode of YaTeX, Prev: Intelligent newline, Up: Top
  9.1374 -
  9.1375 -$B@h2s$j(Busepackage
  9.1376 -****************
  9.1377 -
  9.1378 -  begin$B7?!"(Bsection$B7?!"(Bmaketitle$B7?!"$$$:$l$+$N(BLaTeX2e$B%^%/%m$rJd40F~NO$9$k$H!"(B
  9.1379 -$B$=$N%^%/%m$NMxMQ$K30It%Q%C%1!<%8$rI,MW$H$9$k>l9g!"$=$N%Q%C%1!<%8$rK\J8Cf$G(B 
  9.1380 -`\usepackage{}' $B$7$F$$$k$+$I$&$+$rD4::$7!"$b$7$7$F$$$J$1$l$P%W%j%"%s%V%k$K(B
  9.1381 -$BBP1~$9$k%Q%C%1!<%8$r0z?t$K$7$?(B `\usepackage' $BJ8$r(B($B3NG'8e$K(B)$BA^F~$7$^$9!#(B
  9.1382 -
  9.1383 -  $B$?$@$7$3$N5!G=$,F/$/$?$a$K$O!"%Q%C%1!<%8L>$H$=$NCf$GDj5A$5$l$F$$$k%^%/%m(B
  9.1384 -$B72$r(Balist$B$N7A<0$GJQ?t(B `YaTeX-package-alist-private' $B$K@_Dj$7$F$*$/I,MW$,$"(B
  9.1385 -$B$j$^$9!#(B
  9.1386 -
  9.1387 -
  9.1388 -
  9.1389 -File: yatexj, Node: Changing mode of YaTeX, Next: Online help, Prev: Usepackage cheker, Up: Top
  9.1390 -
  9.1391 -$BLnD;$NF0:n%b!<%I@Z$jBX$((B
  9.1392 -************************
  9.1393 -
  9.1394 -`[prefix] w'
  9.1395 -             ... $BLnD;F0:n%b!<%I@Z$jBX$(%a%K%e!<(B
  9.1396 -
  9.1397 -$B$GLnD;<+?H$NF0:n$r7hDj$9$k0J2<$N%b!<%I$r@Z$jBX$($^$9!#(B
  9.1398 -
  9.1399 -   * $B=$@5%b!<%I(B
  9.1400 -   * $BLnD;?t<0%b!<%I(B
  9.1401 -
  9.1402 -$B=$@5%b!<%I$O!"3+$-3g8LF~NO;~$N=hM}$r%3%s%H%m!<%k$7!"=$@5%b!<%I(BON$B$N;~$O3+$-(B
  9.1403 -$B3g8L$NF~NO$O3+$-3g8L$N$_$NF~NO$K$J$j!"=$@5%b!<%I(BOFF$B$N;~$O3+$-3g8L$NF~NO$@(B
  9.1404 -$B$1$GJD$83g8L$^$GF~NO$7$^$9!#%G%U%)%k%H(B($B5/F0;~(B)$B$N@_Dj$O(B*OFF*$B$G$9!#(B
  9.1405 -
  9.1406 -  $BLnD;?t<0%b!<%I$O!"JQ?t(B `YaTeX-auto-math-mode' $B$,(B `nil' $B$N;~$N$_M-8z$G!"(B
  9.1407 -$B$3$N$H$-(B`;'$B$d(B`:'$B$r2!$7$?;~(B(*Note Image completion::$B;2>H(B)$B$K!"$I$N$h$&$J%$%a!<(B
  9.1408 -$B%8Jd40$r5!G=$5$;$k$+!"DL>o$N%-!<$H$7$F5!G=$5$;$k$+$r<jF0$G@Z$jBX$($^$9!#<+(B
  9.1409 -$BF0H=Dj$,CY$$%^%7%s$G$O(B`YaTeX-auto-math-mode' `nil'$B$K%;%C%H$7!"LnD;?t<0%b!<(B
  9.1410 -$B%I$r<jF0$G@Z$jBX$($k$HNI$$$G$7$g$&!#(B
  9.1411 -
  9.1412 -
  9.1413 -
  9.1414 -
  9.1415 -File: yatexj, Node: Online help, Next: Inclusion hierarchy browser, Prev: Changing mode of YaTeX, Up: Top
  9.1416 -
  9.1417 -$B%*%s%i%$%s%X%k%W(B
  9.1418 -****************
  9.1419 -
  9.1420 -  $B;H$*$&$H$9$k(B LaTeX $B%3%^%s%I$NMQK!$,$h$/J,$+$i$J$$;~$O!"%*%s%i%$%s%X%k%W(B
  9.1421 -$B$r$R$-$^$7$g$&!#%X%k%W$K4X$9$k%-!<$K$O0J2<$N$b$N$,$"$j$^$9!#(B
  9.1422 -
  9.1423 -`[prefix] ?'
  9.1424 -             ... $B%*%s%i%$%s%X%k%W(B
  9.1425 -`[prefix] /'
  9.1426 -             ... $B%*%s%i%$%s(Bapropos
  9.1427 -
  9.1428 -
  9.1429 -$B%*%s%i%$%s%X%k%W(B
  9.1430 -================
  9.1431 -
  9.1432 -  $B!V%*%s%i%$%s%X%k%W!W$O!"0lHLE*$J(B LaTeX $B%3%^%s%I(B($B%G%U%)%k%H$G%+!<%=%k0LCV(B
  9.1433 -$B$N%3%^%s%I(B)$B$KBP$9$k@bL@$rNY$N%P%C%U%!$KI=<($7$^$9!#$3$N;~;2>H$5$l$k%X%k%W(B
  9.1434 -$BMQ%U%!%$%k$K$O!V%0%m!<%P%k%X%k%W!W$H!V%W%i%$%Y!<%H%X%k%W!W$NFs<oN`$,$"$j!"(B
  9.1435 -$BA0<T$O(B LaTeX $B$NI8=`%3%^%s%I$N<g$J$b$N$N@bL@$r4^$`%U%!%$%k$G!"JQ?t(B
  9.1436 -`YaTeX-help-file'$B$NCM$G;XDj$5$l$^$9!#$3$N%U%!%$%k$ODL>o8x6&$N>l=j(B($B%G%U%)%k(B
  9.1437 -$B%H$G(B`$EMACSEXECPATH')$B$KCV$+$l!"C/$b$,$=$NFbMF$r99?7$G$-$k$h$&$KA40w$K=q$-(B
  9.1438 -$B9~$_8"$,M?$($i$l$k$Y$-$b$N$G$9!#8e<T$O!"HsI8=`$b$7$/$O8D?ME*$J%^%/%mDj5A$K(B
  9.1439 -$B4X$9$k@bL@$,=q$+$l$F$$$k%U%!%$%k$G!"JQ?t(B`YaTeX-help-file-private'$B$NCM$G;X(B
  9.1440 -$BDj$5$l$^$9!#$3$A$i$O%f!<%6$N%[!<%`%G%#%l%/%H%j$N2<$J$I$KCV$+$l$^$9!#(B
  9.1441 -
  9.1442 -
  9.1443 -$B%*%s%i%$%s(Bapropos
  9.1444 -=================
  9.1445 -
  9.1446 -  $B!V%*%s%i%$%s(Bapropos$B!W$O(B GNU Emacs $B$N(B apropos $B$HF1MM!"%f!<%6$,;XDj$7$?%-!<(B
  9.1447 -$B%o!<%I$r@bL@J8$K4^$`9`L\$9$Y$F$rNY$N%P%C%U%!$KI=<($7$^$9!#(B
  9.1448 -
  9.1449 -  $B$b$7!"D4$Y$h$&$H$7$?(BLaTeX$B%3%^%s%I$KBP$9$k@bL@$,%X%k%W%U%!%$%kCf$K8+$D$+(B
  9.1450 -$B$i$J$+$C$?>l9g$O!"@bL@J8$NF~NO$r5a$a$F$/$k$N$G!"2DG=$G$"$l$P;29M=q$J$I$rD4(B
  9.1451 -$B$Y$F$=$N%3%^%s%I$N@bL@$rF~NO$7$F$/$@$5$$!#$b$7!"$J$K$+I8=`E*$J%3%^%s%I$KBP(B
  9.1452 -$B$9$k@bL@$r=q$$$?$J$i$P$<$R;d$^$G$=$N@bL@$r$*Aw$j2<$5$$!#<!2s$NG[I[$K4^$a$?(B
  9.1453 -$B$$$H;W$$$^$9!#(B
  9.1454 -
  9.1455 -
  9.1456 -
  9.1457 -File: yatexj, Node: Inclusion hierarchy browser, Next: Cooperation with other packages, Prev: Online help, Up: Top
  9.1458 -
  9.1459 -$B%$%s%/%k!<%I9=B$%V%i%&%6(B
  9.1460 -************************
  9.1461 -
  9.1462 -$BJ#?t$N%U%!%$%k$KJ,3d$7$F$$$k%I%-%e%a%s%H$r=q$$$F$$$k>l9g!"(B
  9.1463 -
  9.1464 -`[prefix] d'
  9.1465 -             ... $B%$%s%/%k!<%I9=B$%V%i%&%:(B
  9.1466 -
  9.1467 -$B$r2!$9$H!"$=$N%I%-%e%a%s%H$N?F%U%!%$%k$rJ9$$$FMh$^$9!#$3$3$GA4$F$N%U%!%$%k(B
  9.1468 -$B$N?F$H$J$k%U%!%$%k(B($B%G%U%)%k%H$,<($5$l$F$$$k$N$GBgDq$O(BRET$B$N$_(B)$B$rF~NO$9$k$H(B
  9.1469 -$B%$%s%/%k!<%I$7$F$$$kA4$F$N%U%!%$%k$r2r@O$7!"%$%s%/%k!<%I>u67$r;k3PE*$KI=<((B
  9.1470 -$B$7$^$9!#$3$N%P%C%U%!$G$O0J2<$N%-!<A`:n$,M-8z$G$9!#(B
  9.1471 -
  9.1472 -`n'
  9.1473 -             ... $B<!$N9T$K0\F0$7BP1~$9$k%U%!%$%k$rNY$N%P%C%U%!$KI=<((B
  9.1474 -`p'
  9.1475 -             ... $B>e$N9T$K0\F0$7BP1~$9$k%U%!%$%k$rNY$N%P%C%U%!$KI=<((B
  9.1476 -`N'
  9.1477 -             ... $BF1$8%$%s%/%k!<%I%l%Y%k$N<!$N%U%!%$%k$K0\F0(B
  9.1478 -`P'
  9.1479 -             ... $BF1$8%$%s%/%k!<%I%l%Y%k$NA0$N%U%!%$%k$K0\F0(B
  9.1480 -`j'
  9.1481 -             ... $B<!$N9T$K0\F0(B
  9.1482 -`k'
  9.1483 -             ... $B>e$N9T$K0\F0(B
  9.1484 -`u'
  9.1485 -             ... $B0lBe?F$K$"$?$k%U%!%$%k$K0\F0(B
  9.1486 -`.'
  9.1487 -             ... $B%+!<%=%k0LCV$N%U%!%$%k$rNY$N%P%C%U%!$KI=<((B
  9.1488 -`SPC'
  9.1489 -             ... $BNY$N%P%C%U%!$NBP1~%U%!%$%k$r%9%/%m!<%k%"%C%W(B
  9.1490 -`DEL, b'
  9.1491 -             ... $BNY$N%P%C%U%!$NBP1~%U%!%$%k$r%9%/%m!<%k%@%&%s(B
  9.1492 -`<'
  9.1493 -             ... $BNY$N%P%C%U%!$NBP1~%U%!%$%k$N@hF,$rI=<((B
  9.1494 -`>'
  9.1495 -             ... $BNY$N%P%C%U%!$NBP1~%U%!%$%k$NKvHx$rI=<((B
  9.1496 -`''
  9.1497 -             ... (`<'$B$d(B`>'$B$N8e$G(B)$B85$NI=<(0LCV$KLa$k(B
  9.1498 -`RET, g'
  9.1499 -             ... $B%+!<%=%k0LCV$N%U%!%$%k$rNY$N%P%C%U%!$G%*!<%W%s(B
  9.1500 -`mouse-2'
  9.1501 -             ... RET$B$HF1$8(B($B%&%#%s%I%&;HMQ;~$N$_(B)
  9.1502 -`o'
  9.1503 -             ... $BNY$N%&%#%s%I%&$K0\F0(B
  9.1504 -`1'
  9.1505 -             ... $BB>$N%&%#%s%I%&$r>C$9(B
  9.1506 -`-'
  9.1507 -             ... $B%V%i%&%:%&%#%s%I%&$r>.$5$/$9$k(B
  9.1508 -`+'
  9.1509 -             ... $B%V%i%&%:%&%#%s%I%&$rBg$-$/$9$k(B
  9.1510 -`?'
  9.1511 -             ... $B%X%k%WI=<((B
  9.1512 -`q'
  9.1513 -             ... $BI=<(A0$N>uBV$KLa$k(B
  9.1514 -
  9.1515 -  $B$?$@$7!"NY$N%&%#%s%I%&$N%U%!%$%k$NFbMF$rI=<($9$k5!G=$K4X$7$F$O!"BP1~$9$k(B
  9.1516 -$B%U%!%$%k$r%/%m!<%:$7$F$7$^$&$H$&$^$/F/$-$^$;$s$N$G$4Cm0U$/$@$5$$!#(B
  9.1517 -
  9.1518 -
  9.1519 -
  9.1520 -File: yatexj, Node: Cooperation with other packages, Next: Customizations, Prev: Inclusion hierarchy browser, Up: Top
  9.1521 -
  9.1522 -$BB>%Q%C%1!<%8$H$NO"7H(B
  9.1523 -********************
  9.1524 -
  9.1525 -
  9.1526 -gmhist
  9.1527 -======
  9.1528 -
  9.1529 -  `gmhist.el'$B$H(B`gmhist-mh.el' $B$r%m!<%I$7$F$$$k>l9g!"%W%l%t%e!<%3%^%s%I$NF~(B
  9.1530 -$BNO(B(`[prefix] tp]')$B!"0u:~%3%^%s%I$NF~NO(B(`[prefix] tl')$B$N;~$KFHN)$7$?%R%9%H(B
  9.1531 -$B%j$rMxMQ$G$-$^$9!#$=$l$>$l$N%W%m%s%W%H$G!"(B`M-p' $B$r2!$9$HD>A0$KMxMQ$7$?%3%^(B
  9.1532 -$B%s%IJ8;zNs$r$/$jJV$78F$S=P$9$3$H$,$G$-$^$9!#(B
  9.1533 -
  9.1534 -
  9.1535 -min-out
  9.1536 -=======
  9.1537 -
  9.1538 -  `min-out.el' (`outline-minor-mode') $B$HLnD;$rAH$_9g$o$;$F;H$&$3$H$b$b$A$m(B
  9.1539 -$B$s2DG=$G$9!#@_Dj$NJ}K!$K4X$7$F$O(B`yatexm-o.el'$B$r$4Mw$/$@$5$$!#(B
  9.1540 -
  9.1541 -
  9.1542 -
  9.1543 -File: yatexj, Node: Customizations, Next: Etc, Prev: Cooperation with other packages, Up: Top
  9.1544 -
  9.1545 -$B%+%9%?%^%$%:(B
  9.1546 -************
  9.1547 -
  9.1548 -  $BLnD;$NF0:n$r@)8f$9$k<o!9$NJQ?t$rFH<+$K@_Dj$9$k$3$H$K$h$j!"Jd40F~NO$r5/F0(B
  9.1549 -$B$9$k%-!<%"%5%$%s$rJQ$($?$j!"4D6-L>$NJd408uJd$r$5$i$K=<<B$5$;$k$3$H$J$I$,$G(B
  9.1550 -$B$-$^$9!#(B
  9.1551 -
  9.1552 -* Menu:
  9.1553 -
  9.1554 -* Lisp variables::              lisp $BJQ?t(B
  9.1555 -* Add-in functions::            $BIU2C4X?t(B($B%"%I%$%s4X?t(B)
  9.1556 -
  9.1557 -
  9.1558 -
  9.1559 -File: yatexj, Node: Lisp variables, Next: Add-in functions, Prev: Customizations, Up: Customizations
  9.1560 -
  9.1561 -lisp $BJQ?t(B
  9.1562 -=========
  9.1563 -
  9.1564 -  $BNc$($P(B prefix $B%-!<$r(B `C-c' $B0J30$N%-!<$K$7$?$$>l9g$O!"(B`YaTeX-prefix'$B$K(B 
  9.1565 -prefix $B%-!<$K$7$?$$%7%s%\%k$rDj5A$7$F$/$@$5$$!#$5$i$K!"!V(B`C-c $B1Q;z(B'$B!W$H$$(B
  9.1566 -$B$&%-!<%P%$%s%I$OFH<+$N4X?t$,3d$jEv$F$F$"$k$N$G;H$$$?$/$J$$!#$3$N$h$&$J;~$O!"(B
  9.1567 -`YaTeX-inhibit-prefix-letter' $B$r(B `t' $B$K@_Dj$9$k$3$H$K$h$j!"(B`C-c $B1Q;z!D(B'$B$N(B
  9.1568 -$B%P%$%s%I$,A4$F!"BP1~$9$k(B`C-c C-$B1Q;z!D(B'$B$KJQ$o$j$^$9(B($B$?$@$7!"(Bbegin$B7?(B large$B7?(B
  9.1569 -$BJd40$NBgJ8;z5/F0$K$h$k%j%8%g%s;XDj$O2DG=$J$^$^$G$9!#$3$l$bL58z$K$7$?$$>l9g(B
  9.1570 -$B$O(B`t'$B$G$O$J$/(B 1 $B$K%;%C%H$7$F2<$5$$!#(B)$B!#(B
  9.1571 -
  9.1572 -* Menu:
  9.1573 -
  9.1574 -* All customizable variables::  $B%+%9%?%^%$%:JQ?t0lMw(B
  9.1575 -* Sample definitions::          $B%+%9%?%^%$%:JQ?t@_DjNc(B
  9.1576 -* Hook variables::              hook$BJQ?t(B
  9.1577 -* Hook file::                   hook$BMQ%U%!%$%k(B
  9.1578 -
  9.1579 -
  9.1580 -
  9.1581 -File: yatexj, Node: All customizable variables, Next: Sample definitions, Prev: Lisp variables, Up: Lisp variables
  9.1582 -
  9.1583 -$B%+%9%?%^%$%:JQ?t0lMw(B
  9.1584 ---------------------
  9.1585 -
  9.1586 -  yatex-mode $B$K$*$1$k<!$NJQ?t$,%+%9%?%^%$%:2DG=$G$9!#(B`~/.emacs' $B$G(B `setq' 
  9.1587 -$B$7$F$*$1$P!"$=$A$i$NDj5A$,M%@h$5$l$^$9!#3g8L$NCf$O%G%U%)%k%HCM$G$9!#<B:]$K(B
  9.1588 -$BJQ?t$NCM$rJQ99$9$k>l9g$O(B `M-x describe-variable' $B$GJQ?t$N>\:Y$J@bL@$r;2>H(B
  9.1589 -$B$7$F$/$@$5$$!#(B
  9.1590 -
  9.1591 - -- Variable: YaTeX-prefix
  9.1592 -     yatex-mode $BCf$N%W%j%U%#%/%9%-!<(B (`\C-c')
  9.1593 -
  9.1594 - -- Variable: YaTeX-inhibit-prefix-letter
  9.1595 -     prefix $B%-!<$ND>8e$N%-!<%P%$%s%I$G(B `$B1Q;z(B' $B$N$b$N$r(B `C-$B1Q;z(B' $B$KJQ99(B 
  9.1596 -     (`nil')
  9.1597 -
  9.1598 - -- Variable: YaTeX-fill-prefix
  9.1599 -     $BK\J8$r=q$/;~$N9TF,$KA^F~$9$k@\F,<-$9$J$o$A(B fill-prefix (`""(nil)')
  9.1600 -
  9.1601 - -- Variable: YaTeX-user-completion-table
  9.1602 -     $B3X=,$7$?(BLaTeX$B%3%^%s%IJ]B8%U%!%$%kL>(B (`"~/.yatexrc"')
  9.1603 -
  9.1604 - -- Variable: YaTeX-kanji-code
  9.1605 -     $BJ8=q$r:n@.$9$k;~$N4A;z%3!<%I(Bnil=$B4{B8$N%3!<%I$N$^$^(B 0=no-conversion
  9.1606 -     1=Shift JIS, 2=JIS, 3=EUC, 4=UTF-8 (2 (MS-DOS$B$G$O(B1))
  9.1607 -
  9.1608 - -- Variable: tex-command
  9.1609 -     LaTeX$B%?%$%W%;%C%?%3%^%s%IL>(B (`"platex"')
  9.1610 -
  9.1611 - -- Variable: dvi2-command
  9.1612 -     $B%W%l%t%e!<%"%3%^%s%IL>(B (`"xdvi -geo +0+0 -s 4"')
  9.1613 -
  9.1614 - -- Variable: dviprint-command-format
  9.1615 -     dvi$B%U%!%$%k$N0u:~$K;H$o$l$k%3%^%s%I<0(B (`"dvi2ps %f %t %s | lpr"')
  9.1616 -
  9.1617 - -- Variable: dviprint-from-format
  9.1618 -     $B>e$N(B`%f'$B$KAjEv$9$k3+;O%Z!<%8;XDj=q<0!"(B`%b' $B$,3+;O%Z!<%8HV9f$KJQ$o$k(B 
  9.1619 -     (`"-f %b"')
  9.1620 -
  9.1621 - -- Variable: dviprint-to-format
  9.1622 -     `%t' $B$KAjEv$9$k=*N;%Z!<%8;XDj=q<0!"(B`%e'$B$,=*N;%Z!<%8HV9f$KJQ$o$k(B (`"-t
  9.1623 -     %e"')
  9.1624 -
  9.1625 - -- Variable: makeindex-command
  9.1626 -     makeindex$B%3%^%s%I(B (`"makeindex"' (MS-DOS$B$G$O(B`"makeind"'))
  9.1627 -
  9.1628 - -- Variable: YaTeX-dvipdf-command
  9.1629 -     dvi$B$r(BPDF$B$KJQ49$9$k%3%^%s%I(B (`"dvipdfmx"')
  9.1630 -
  9.1631 - -- Variable: YaTeX-need-nonstop
  9.1632 -     `\nonstopmode{}'$B$r<+F0E*$KIU2C$9$k$+(B (`nil')
  9.1633 -
  9.1634 - -- Variable: latex-warning-regexp
  9.1635 -     latex$B%3%^%s%I$N=PNO$9$k%&%)!<%K%s%09T$N@55,I=8=(B (`"line.* [0-9]*"')
  9.1636 -
  9.1637 - -- Variable: latex-error-regexp
  9.1638 -     $BF1$8$/%(%i!<9T$N@55,I=8=(B (`"l\\.[1-9][0-9]*"')
  9.1639 -
  9.1640 - -- Variable: latex-dos-emergency-message
  9.1641 -     MS-DOS$B>e$GF0:n$9$k(B latex $B%3%^%s%I$,!"%(%i!<$K$h$jDd;_$9$k$H$-=PNO$9$k(B
  9.1642 -     $B%a%C%;!<%8(B (`"Emergency stop"')
  9.1643 -
  9.1644 - -- Variable: latex-message-kanji-code
  9.1645 -     $B%?%$%W%;%C%?$N=PNO$9$k%a%C%;!<%8$N4A;z%3!<%I(B.$B%?%$%W%;%C%H%P%C%U%!$N=P(B
  9.1646 -     $BNO$,2=$1$k;~$O!"$3$l$r@_Dj$9$k(B (2, Nemacs$B$G$N$_M-8z(B)
  9.1647 -
  9.1648 - -- Variable: NTT-jTeX
  9.1649 -     $B8E$$(BNTT-jTeX$B;HMQ;~$N$h$&$K%$%s%G%s%H$7$?9T$N@hF,$HA0$N9T$N(B($B%?%$%W%;%C(B
  9.1650 -     $B%H8e$N(B)$B;z4V$,6u$$$F$7$^$&$N$r7y$&>l9g$O(B`t'$B$K$9$k(B(`nil')
  9.1651 -
  9.1652 - -- Variable: YaTeX-item-regexp
  9.1653 -     item$B$N7eB7$($N;~$KMQ$$$k!"(Bitem$B$N@55,I=8=(B (`"\\\\(sub\\)*item"')
  9.1654 -
  9.1655 - -- Variable: YaTeX-verb-regexp
  9.1656 -     verb$B%3%^%s%I$N@55,I=8=!#@hF,$N(B\\\\$B$O$D$1$J$$(B (`"verb\\*?\\|path"')
  9.1657 -
  9.1658 - -- Variable: YaTeX-nervous
  9.1659 -     $B%m!<%+%k<-=q$rMQ$$$k;~(B `t' (`t')
  9.1660 -
  9.1661 - -- Variable: YaTeX-sectioning-regexp
  9.1662 -     $B%;%/%7%g%s6h@Z$j@_Dj%3%^%s%I$N@55,I=8=(B 
  9.1663 -     (`"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"')
  9.1664 -
  9.1665 - -- Variable: YaTeX-fill-inhibit-environments
  9.1666 -     fill $B$rM^;_$9$k4D6-L>$N%j%9%H(B (`'("tabular" "tabular*" "array"
  9.1667 -     "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath"
  9.1668 -     "verbatim" "verbatim*")')
  9.1669 -
  9.1670 - -- Variable: YaTeX-uncomment-once
  9.1671 -     $BNN0h(Buncomment$B$G9TF,$NJ#?t$N(B`%'$B$rA4$F:o=|$9$k$+(B (`nil')
  9.1672 -
  9.1673 - -- Variable: YaTeX-close-paren-always
  9.1674 -     $B3+$-3g8L$NF~NO$G>o$KJD$83g8L$rF~NO$9$k(B (`t')
  9.1675 -
  9.1676 - -- Variable: YaTeX-auto-math-mode
  9.1677 -     $B?t<0%b!<%I$N@Z$jBX$($r<+F0E*$K9T$&(B (`t')
  9.1678 -
  9.1679 - -- Variable: YaTeX-math-key-list-private
  9.1680 -     $B?t<0%$%a!<%8Jd40$GMQ$$$k(B ($B%W%j%U%#%/%9%-!<(B . $BBP1~Jd40%F!<%V%k(B) $B$N(B
  9.1681 -     alist (`nil')$B!#Jd40%F!<%V%k$N=q$-J}$K$D$$$F$O(B`yatexmth.el'$B$r;2>H!#(B
  9.1682 -
  9.1683 - -- Variable: YaTeX-default-pop-window-height
  9.1684 -     1$B2hLL$N;~$K%?%$%W%;%C%H%P%C%U%!$r=i$a$F:n@.$9$k;~$N9b$5!#?tCM$G9T?t!"(B
  9.1685 -     $B?t;zJ8;zNs$G(BEmacs$B%&%#%s%I%&$KBP$9$kI4J,N((B (10)
  9.1686 -
  9.1687 - -- Variable: YaTeX-help-file
  9.1688 -     $B6&MQ%X%k%W%U%!%$%k(B (`$doc-directory/../../site-lisp/YATEXHLP.jp')
  9.1689 -
  9.1690 - -- Variable: YaTeX-help-file-private
  9.1691 -     $B8D?MMQ%X%k%W%U%!%$%k(B (`"~/YATEXHLP.jp"')
  9.1692 -
  9.1693 - -- Variable: YaTeX-no-begend-shortcut
  9.1694 -     `[prefix] b ??' $B$N%7%g!<%H%+%C%H$r;H$o$:!"(B`[prefix] b' $B$@$1$GJd40F~NO(B
  9.1695 -     $B$KF~$k(B (`nil')
  9.1696 -
  9.1697 - -- Variable: YaTeX-hilit-pattern-adjustment-private
  9.1698 -     $B@55,I=8=$H$=$l$K%^%C%A$9$k$b$N$NO@M}E*0UL#$r%7%s%\%k$G$"$i$o$7$?$b$N(B
  9.1699 -     $B$N%j%9%H!D$N%j%9%H!#(Bhilit19 $B$rAH$_9~$s$G$$$k;~$N$_M-8z!#>\$7$/$O(B 
  9.1700 -     `(assq 'yatex-mode hilit-patterns-alist)' $B$7$?7k2L$H!"JQ?t(B 
  9.1701 -     `YaTeX-hilit-pattern-adjustment-default' $B$NCM(B($B$H>l9g$K$h$C$F$O(B 
  9.1702 -     hilit19 $B$N%I%-%e%a%s%H(B)$B$r;2>H$;$h!#(B
  9.1703 -
  9.1704 - -- Variable: YaTeX-sectioning-level
  9.1705 -     LaTeX$B$N%;%/%7%g%sC10L@k8@%3%^%s%I$H$=$NO@M}E*9b$5$N(Balist$B!#(B
  9.1706 -
  9.1707 - -- Variable: YaTeX-hierarchy-ignore-heading-regexp
  9.1708 -     Hierarchy $B%P%C%U%!$ODL>o%U%!%$%k%X%C%@$H$7$F!"(BLaTeX$B$N%;%/%7%g%s@k8@%3(B
  9.1709 -     $B%^%s%I$N0z?t$r8!:w$7!"$=$l$,$J$1$l$P%3%a%s%H9T$rC5$9$,!"$=$N:]$K%X%C(B
  9.1710 -     $B%@$H$7$F$O0UL#$r;}$?$J$$%Q%?!<%s$r$3$NJQ?t$K@_Dj$9$k!#%G%U%)%k%H$G$O(B 
  9.1711 -     RCS $B%X%C%@$H%b!<%I;XDj9T(B(-*- xxx -*-)$B$,@_Dj$5$l$F$$$k!#(B
  9.1712 -
  9.1713 - -- Variable: YaTeX-skip-default-reader
  9.1714 -     Non-nil $B$K@_Dj$9$k$H(Bsection$B7?%3%^%s%I$N0z?tF~NO;~!"%"%I%$%s4X?t$,$J$1(B
  9.1715 -     $B$l$P%_%K%P%C%U%!$G$NFI$_9~$_$r$;$:$KF~NO$r40N;$5$;$k(B (`nil')
  9.1716 -
  9.1717 - -- Variable: YaTeX-create-file-prefix-g
  9.1718 -     `\include'$B$J$I$G(B `prefix g'$B$7$?;~$K!"%8%c%s%W@h$,B8:_$7$J$$%U%!%$%k$G(B
  9.1719 -     $B$"$C$F$b%*!<%W%s$9$k(B (`nil')
  9.1720 -
  9.1721 - -- Variable: YaTeX-simple-messages
  9.1722 -     $B3F<oJd40;~$N%a%C%;!<%8=PNO$r4JAG2=$9$k(B (`nil')
  9.1723 -
  9.1724 - -- Variable: YaTeX-hilit-sectioning-face
  9.1725 -     $B?'IU$1$,M-8z$J;~$N(B `\part' $B$N?'(B (`'(yellow/dodgerblue
  9.1726 -     yellow/slateblue)')$B!#%j%9%H$NBh0lMWAG$O(B `hilit-background-mode' $B$,(B 
  9.1727 -     `'light' $B$N;~$N!"BhFsMWAG$O(B `'dark' $B$N;~$N(B `\chapter' $B$N?'$G!"J8;z?'(B/
  9.1728 -     $BGX7J?'(B $B$N$h$&$K;XDj$9$k!#(B
  9.1729 -
  9.1730 - -- Variable: YaTeX-hilit-sectioning-attenuation-rate
  9.1731 -     $B?'IU$1$,M-8z$J;~$N!"(B`\subparagraph' $B$N?'$r(B `\chapter' $B$NG;EY$N2?(B%$BGv$/(B
  9.1732 -     $B$7$?$b$N$K$9$k$+(B (`'(15 40)') `YaTeX-hilit-sectioning-face' $B$N9`;2>H!#(B
  9.1733 -
  9.1734 - -- Variable: YaTeX-use-AMS-LaTeX
  9.1735 -     AMS-LaTeX $B$r;HMQ$9$k>l9g$O(B `t' $B$K@_Dj$9$k(B (`nil')
  9.1736 -
  9.1737 - -- Variable: YaTeX-use-LaTeX2e
  9.1738 -     LaTeX2e $B$r;HMQ$9$k>l9g$O(B `t' $B$K@_Dj$9$k(B (`t')
  9.1739 -
  9.1740 - -- Variable: YaTeX-template-file
  9.1741 -     $B?75,%U%!%$%k:n@.;~$K<+F0A^F~$9$k%U%!%$%kL>(B (`~/work/template.tex')
  9.1742 -
  9.1743 - -- Variable: YaTeX-search-file-from-top-directory
  9.1744 -     input$B$9$k%U%!%$%k$rC5$9$H$-$N4p=`%G%#%l%/%H%j$r(Bmain$B%U%!%$%k$N$"$k%G%#(B
  9.1745 -     $B%l%/%H%j$K$9$k$+(B (`t')
  9.1746 - -- Variable: YaTeX-use-font-lock
  9.1747 -     $B%=!<%9$N?'$E$1%Q%C%1!<%8$H$7$F(B font-lock $B$rMxMQ$9$k$+$I$&$+(B
  9.1748 -     (`(featurep 'font-lock)')
  9.1749 -
  9.1750 - -- Variable: YaTeX-use-hilit19
  9.1751 -     $B%=!<%9$N?'$E$1%Q%C%1!<%8$H$7$F(B hilit19 $B$rMxMQ$9$k$+$I$&$+(B(`(featurep
  9.1752 -     'hilit19)')
  9.1753 -
  9.1754 - -- Variable: YaTeX-use-italic-bold
  9.1755 -     italic, bold$B%U%)%s%H$rLnD;$,C5$9$+$I$&$+(B (Emacs20$B0J9_$J$i(B`t')
  9.1756 -     font-lock$BMxMQ;~$N$_M-8z!#(B(`(featurep 'hilit19)'
  9.1757 -
  9.1758 - -- Variable: YaTeX-singlecmd-suffix
  9.1759 -     $BA4$F$N(Bmaketitle$B7?%3%^%s%I$NJd40F~NOD>8e$KA^F~$9$kJ8;zNs!#(B`"{}"' $B$J$I(B
  9.1760 -     $B$,$*4+$a!#(B
  9.1761 -
  9.1762 - -- Variable: YaTeX-package-alist-private
  9.1763 -     LaTeX2e$B$N%Q%C%1!<%8L>$H$=$NCf$K4^$^$l$k%^%/%m$N%j%9%H!#E,@Z$K@_Dj$7$F(B
  9.1764 -     $B$*$/$HK\J8F~NO;~$K%^%/%m$rJd40F~NO$9$k$H$=$N%^%/%m$KI,MW$J%Q%C%1!<%8(B
  9.1765 -     $B$r(B usepackage $B$9$k$+<+F0E*$K8!::$7$F$/$l$k!#$7$F$$$J$1$l$P(B 
  9.1766 -     \usepackage $B$r<+F0DI2C$9$k$3$H$b$G$-$k!#%j%9%H$O(B'(($B%Q%C%1!<%8L>(B1 ($BJd(B
  9.1767 -     $B40%?%$%W(B $B%^%/%m$N%j%9%H!D!D(B) ($BJd40%?%$%W(B $B%^%/%m$N%j%9%H!D!D(B)) ($B%Q%C%1!<(B
  9.1768 -     $B%8L>(B2 ($BJd40%?%$%W(B $B%^%/%m$N%j%9%H!D!D(B) ($BJd40%?%$%W(B $B%^%/%m$N%j%9(B
  9.1769 -     $B%H!D!D(B))$B!D!D!D(B) $B$H$$$&7A<0$K$9$k!#Jd40%?%$%W$O(B `env, section,
  9.1770 -     maketitle' $B$N$I$l$+!#6qBNNc$OJQ?t(B `YaTeX-package-alist-default' $B$NCM(B
  9.1771 -     $B;2>H!#(B
  9.1772 -
  9.1773 - -- Variable: YaTeX-tabular-indentation
  9.1774 -     tabular/array $B4D6-$G8=:_9T$N@hF,0LCV$,I=$NBh(BN$B%+%i%`$N$H$-$OI8=`%$%s%G(B
  9.1775 -     $B%s%H0LCV$+$i(B N*YaTeX-tabular-indentation $B7e2<$2$?%$%s%G%s%H$K$9$k!#(B
  9.1776 -
  9.1777 - -- Variable: YaTeX-noindent-env-regexp
  9.1778 -     $BJL$N4D6-Fb$K$"$C$F$b(B \begin{} $B$,9TF,$+$i;O$^$k$Y$-4D6-L>$N@55,I=8=!#(B
  9.1779 -     verbatim$B4D6-$J$I$r;XDj$9$k!#(B
  9.1780 -
  9.1781 - -- Variable: YaTeX-ref-default-label-string
  9.1782 -     \ref{} $B$N%i%Y%kJd40$G%i%Y%kL$@_Dj$N$b$N$K<+F0E*$K@8@.$9$k%i%Y%kL>$N=q(B
  9.1783 -     $B<0!#(Bstrftime(3)$B4X?t$K;w$?F|IU%Y!<%9$G;XDj$9$k!#MxMQ$G$-$k=q<0$O0J2<$N(B
  9.1784 -     $B$H$*$j!#(B%y -> $B@>Nq2<Fs7e(B, %b -> $B7n$N1QL>(B, %m -> $B7n(B(1$B!A(B12) %d -> $BF|(B,
  9.1785 -     %H -> $B;~(B, %M -> $BJ,(B, %S -> $BIC(B, %qx -> $B%"%k%U%!%Y%C%H$G(B26$B?J?t2=$7$?(B 
  9.1786 -     yymmdd.  %qX -> $B%"%k%U%!%Y%C%H$G(B26$B?J?t2=$7$?(B HHMMSS.  $B%G%U%)%k%H$O(B 
  9.1787 -     "%H%M%S_%d%b%y"
  9.1788 -
  9.1789 - -- Variable: YaTeX-ref-generate-label-function
  9.1790 -     \ref{}$B$N%i%Y%kL><+F0@8@.$N$H$-$K;H$&4X?t$N%7%s%\%k!#%G%U%)%k%H$OI8=`(B
  9.1791 -     $B$N(B YaTeX::ref-generate-label $B4X?t$,3d$jEv$F$F$"$k!#0z?t$r(B2$B$D<h$k4X?t(B
  9.1792 -     $B$rDj5A$7$F!"$3$NJQ?t$K%;%C%H$9$k$H$=$N4X?t$r8F$s$@7k2L$r%G%U%)%k%H$N(B
  9.1793 -     $B%i%Y%kL>8uJd$H$9$k!#@_DjNc(B:
  9.1794 -            (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label)
  9.1795 -            (defun my-yatex-generate-label (command value)
  9.1796 -              (and (string= command "caption")
  9.1797 -                   (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t)
  9.1798 -                   (setq command (match-string 1)))
  9.1799 -              (let ((alist '(("chapter" . "chap")
  9.1800 -                             ("section" . "sec")
  9.1801 -                             ("subsection" . "subsec")
  9.1802 -                             ("figure" . "fig")
  9.1803 -                             ("table" . "tbl"))))
  9.1804 -                (if (setq command (cdr (assoc command alist)))
  9.1805 -                    (concat command ":" value)
  9.1806 -                  (YaTeX::ref-generate-label nil nil))))
  9.1807 -
  9.1808 -
  9.1809 -
  9.1810 -File: yatexj, Node: Sample definitions, Next: Hook variables, Prev: All customizable variables, Up: Lisp variables
  9.1811 -
  9.1812 -$B%+%9%?%^%$%:JQ?t@_DjNc(B
  9.1813 -----------------------
  9.1814 -
  9.1815 -  $B$?$H$($P!"(Bprefix $B%-!<$H$7$F(B`ESC'$B$r;HMQ$7!"?7$?$JJd408uJd$r3JG<$9$k%U%!%$(B
  9.1816 -$B%k$r!"(B`~/src/emacs/yatexrc' $B$K$7!"9TF,$N(B prefix $B$r%?%VJ8;z0l$D$KJQ$($?$$$H(B
  9.1817 -$B$-$O!"(B
  9.1818 -
  9.1819 -             (setq YaTeX-prefix "\e"
  9.1820 -                   YaTeX-user-completion-table "~/src/emacs/yatexrc"
  9.1821 -                   YaTeX-fill-prefix "       ")
  9.1822 -
  9.1823 -$B$r(B `~/.emacs' $B$K2C$($^$9!#(B
  9.1824 -
  9.1825 -
  9.1826 -
  9.1827 -File: yatexj, Node: Hook variables, Next: Hook file, Prev: Sample definitions, Up: Lisp variables
  9.1828 -
  9.1829 -hook$BJQ?t(B
  9.1830 ---------
  9.1831 -
  9.1832 -  $B$^$?!"(Bhook $BJQ?t(B `yatex-mode-hook', `yatex-mode-load-hook' $B$rMQ0U$7$F$$$^(B
  9.1833 -$B$9!#$9$Y$F$N(B yatex-mode $B$N%P%C%U%!$G:nMQ$5$;$?$$$b$N$O!"(B`yatex-mode-hook' 
  9.1834 -$B$K5-=R$7!"(B`yatex.el' $B$r%m!<%I$9$k;~$@$1:nMQ$5$;$?$$$b$N$O(B
  9.1835 -`yatex-mode-load-hook' $B$K5-=R$7$^$9!#Nc$($P!"(B`outline-minor-mode' $B$rMxMQ$9(B
  9.1836 -$B$k>l9g!"$=$l$>$l$N%P%C%U%!$G(B `outline-minor-mode' $B$rM-8z$K$7$?$$$N$G!"(B
  9.1837 -`yatex-mode-hook' $B$r<!$N$h$&$K@_Dj$7$^$9!#(B
  9.1838 -
  9.1839 -             (setq yatex-mode-hook
  9.1840 -                   '(lambda () (outline-minor-mode t)))
  9.1841 -
  9.1842 -$B5U$K!"FH<+$N%-!<Dj5A$r9T$$$?$$;~$J$I$O!"(B`yatex-mode-load-hook' $B$rMxMQ$7$^(B
  9.1843 -$B$9!#Nc$($P!"(Bbegin $B7?Jd40$K$*$$$F!"(B document $B$d!"(Benumerate $B0J30$N4D6-L>$b(B
  9.1844 -$B%7%g!<%H%+%C%H%-!<$GF~$l$?$$$J$I$H$$$&;~$O!"<!$N$h$&$K$7$^$9!#0J2<$NNc$O!"(B
  9.1845 -`[prefix] ba' $B$G(B `\begin{abstract}', `\end{abstract}' $B$rA^F~$7$^$9!#(B
  9.1846 -
  9.1847 -             (setq yatex-mode-load-hook
  9.1848 -                   '(lambda() (YaTeX-define-begend-key "ba" "abstract")))
  9.1849 -
  9.1850 -$B$J$*!"?7$?$J%-!<$NDj5A$K$O!"4X?t(B `YaTeX-define-key'
  9.1851 -`YaTeX-define-begend-key'$B$rMxMQ$9$k$h$&$K$7$F$/$@$5$$!#(B
  9.1852 -
  9.1853 -
  9.1854 -
  9.1855 -File: yatexj, Node: Hook file, Prev: Hook variables, Up: Lisp variables
  9.1856 -
  9.1857 -hook$BMQ%U%!%$%k(B
  9.1858 ---------------
  9.1859 -
  9.1860 -  $BJQ?t(B `yatex-mode-load-hook' $B$GDj5A$9$kFbMF$,B?$$;~$O!"(B`yatexhks.el'$B$H$$(B
  9.1861 -$B$&%U%!%$%k$r:n$j!"$=$NCf$KLnD;4XO"$N@_Dj$r=q$/;v$G!"=i4|2=$N;~$K<+F0E*$K%m!<(B
  9.1862 -$B%I$7$^$9!#(B
  9.1863 -
  9.1864 -
  9.1865 -
  9.1866 -
  9.1867 -File: yatexj, Node: Add-in functions, Prev: Lisp variables, Up: Customizations
  9.1868 -
  9.1869 -$BIU2C4X?t(B($B%"%I%$%s4X?t(B)
  9.1870 -======================
  9.1871 -
  9.1872 -  $B3F<oJd40;~$K!"4D6-L>$d%3%^%s%IL>$K1~$8$?$-$a:Y$d$+$JJd40F~NO5!G=$r<B8=$9(B
  9.1873 -$B$k$?$a$N4X?t$r:n@.$9$k$3$H$,$G$-$^$9!#$3$N4X?t$N:n@.J}K!$d!"AH$_9~$_J}K!$K(B
  9.1874 -$B4X$7$F$O!"(B`yatexadd.doc' $B$r$4Mw$/$@$5$$!#(B
  9.1875 -
  9.1876 -
  9.1877 -
  9.1878 -File: yatexj, Node: Etc, Next: Copying, Prev: Customizations, Up: Top
  9.1879 -
  9.1880 -$B$=$NB>(B
  9.1881 -******
  9.1882 -
  9.1883 -  $BLnD;$NI8=`$N(B LaTeX $B%3%^%s%I$N<-=q$K$O!":n<T$,IQHK$K;H$&$b$N$7$+EPO?$5$l(B
  9.1884 -$B$F$$$^$;$s!#$3$l$O!"Jd408uJd$K;H$$$=$&$b$J$$%3%^%s%I$,B8:_$7$F!"Jd40$7$?$$(B
  9.1885 -$B%3%^%s%I$r=P$9$^$G$N%9%H%m!<%/?t$rA}$d$7$F$7$^$&;v$rKI;_$9$k$?$a$G$9!#I8=`(B
  9.1886 -$B<-=q$K$J$$%3%^%s%I$b!"$G$-$k$@$1Jd40F~NOJ}<0$rMxMQ$7!"%f!<%6<-=q$r=<<B$5$;(B
  9.1887 -$B$k$3$H$G!"$"$J$?$N(B LaTeX $B%9%?%$%k$K$"$C$?LnD;$X$H0i$C$F$$$/$3$H$G$7$g$&!#(B
  9.1888 -
  9.1889 -
  9.1890 -
  9.1891 -File: yatexj, Node: Copying, Next: Concept Index, Prev: Etc, Up: Top
  9.1892 -
  9.1893 -$B<h$j07$$(B
  9.1894 -********
  9.1895 -
  9.1896 -  $BK\%W%m%0%i%`$O%U%j!<%=%U%H%&%'%"$G$9!#K\%W%m%0%i%`$r;HMQ$7$F@8$8$?$$$+$J(B
  9.1897 -$B$k7k2L$KBP$7$F$b:n<T$O@UG$$rIi$o$J$$$3$H$H$7$^$9!#E>:\Ey$K4X$7$F$O@)8B$$$?(B
  9.1898 -$B$7$^$;$s!#>o<1E*$K07$C$F$/$@$5$$!#$^$?!"K\%W%m%0%i%`$K4^$^$l$k%3!<%I$rMxMQ(B
  9.1899 -$B$9$k$3$H!"2~B$$9$k$3$H$b<+M3$K9T$J$C$F9=$$$^$;$s$,!"N.MQ$9$k$3$H$K$h$j7@Ls(B
  9.1900 -$BDy7k$NI,MW$,@8$8$k>l9g!";d$O$$$+$J$k7@Ls$bDy7k$7$^$;$s!#6qBNE*$K$O(BGPL$B$X$N(B
  9.1901 -$B%5%$%s$O$7$^$;$s$N$G!"(BGNU$B$K4sB#$9$k$b$N$r:n$C$F$$$k>l9g;d$N:nIJ$+$i<h$j9~(B
  9.1902 -$B$s$@%3!<%I$rN.MQ$9$k$H6lO+$9$k$+$b$7$l$^$;$s!#$$$+$J$k%3!<%IN.MQ$b5qH]$7$^(B
  9.1903 -$B$;$s$,7@LsDy7k$O<-B`$7$^$9!#(B
  9.1904 -
  9.1905 -  $B6l>p!"4uK>!"%P%0Js9p!"46A[Ey$O4?7^$$$?$7$^$9!#O"Mm$O(B yuuji@yatex.org $B$^(B
  9.1906 -$B$G(B(2004$BG/(B1$B7n8=:_(B)$B!#7QB3E*$K;HMQ$7$F$/$@$5$kJ}$O%a%$%j%s%0%j%9%H!V(Bfj$BLnD;$N(B
  9.1907 -$B2q!W$K@'Hs2CF~$7$F$/$@$5$$!#2CF~J}K!$K$D$$$F$OK\%Q%C%1!<%8$N(B `docs/qanda' 
  9.1908 -$B%U%!%$%k$N!V$=$NB>!W$N>O$r8fMw$/$@$5$$!#(B
  9.1909 -
  9.1910 -$B;EMM$O!"M=9p$J$/3N<B$K(B($B5$J,<!Bh$G(B)$BJQ99$5$l$^$9(B:-p$B!#(B
  9.1911 -
  9.1912 -                                                                  $B9-@%M:Fs(B
  9.1913 -
  9.1914 -
  9.1915 -
  9.1916 -File: yatexj, Node: Concept Index, Prev: Copying, Up: Top
  9.1917 -
  9.1918 -$B:w0z(B
  9.1919 -****
  9.1920 -
  9.1921 -* Menu:
  9.1922 -
  9.1923 -* ::                            Greek letter completion.  4.
  9.1924 -* ;:                            Image completion.       4.
  9.1925 -* ,C0(B[,B5-\(B]:                   Image completion.       4.
  9.1926 -* 括,Bi(B[,B--i(B]:                 Enclose section-type command.  4.
  9.1927 -* 括,Bi(B[,B--i(B]:                 large型補(J.(B.            21.
  9.1928 -* ,Hx数(B[,BP+7$(B]:               2,LB,HH(B上,BL,Hx数,BpFi(B section型コマンド.  4.
  9.1929 -* (I"(Bカ[,B($Sq(B]:               Accent mark completion.  4.
  9.1930 -* ;自身[;,B55q(B]:               Image completion.       31.
  9.1931 -* ∞[,B^/q="(B]:               Image completion.       4.
  9.1932 -* 矢,Hs(B[,Bb5i5(B]:               Image completion.       4.
  9.1933 -* ブロック[,BSkB-(B]:           begin型補(J.(B.            81.
  9.1934 -* ヒストリ[,BP7Fh(B]:           Cooperation with other packages.  8.
  9.1935 -* 桁揃,B&(B[,B/=;k&(B]:           Filling.                4.
  9.1936 -* ,Bb?e$(B[,Bb?f$(B]:           Intro.                  4.
  9.1937 -* ジャンプ[,B5bqS(B]:           view-sectioning.        42.
  9.1938 -* &入力[&,BId$hf-(B]:         Intelligent newline.    4.
  9.1939 -* 設定例[,B9BD"j"(B]:         Sample definitions.     4.
  9.1940 -* 随時補(J.(B[,B7"5Y)q(B]:       Arbitrary completion.   4.
  9.1941 -* 閉,B6(B,B_i(B[,BF51_i(B]:       begin型補(J.(B.            81.
  9.1942 -* ,MD(B帰補(J.(B[,B3"+Y)q(B]:       Recursive completion.   4.
  9.1943 -* ユーザ辞書[,Bd$355f(B]:     begin型補(J.(B.            71.
  9.1944 -* 論理階層[,Bkqh)";$(B]:     view-sectioning.        42.
  9.1945 -* ,B11MG1(B?[,B11MF1(B?]:     What column.            4.
  9.1946 -* ,B((BG描,B+(Bcール起動[,B(&)+B$i+F$(B]: ,B((BG描,B+(Bcール起動.  4.
  9.1947 -* (JB(B境,BL(B謫ェ,BV(B[,B)q+f$L9qF$V(B]: (JB(B境,Bp(BP,HJ,BF5=(BWャンプ.  7.
  9.1948 -* (JB(B境,BL末(B,BV(B[,B)q+f$L\BPV(B]: (JB(B境,Bp(BP,HJ,BF5=(BWャンプ.  7.
  9.1949 -* (JB(B境,Bp(B}ーク[,B)q+f$p\ -(B]: (JB(B境,Bp(BP,HJ,BF5=(BWャンプ.  7.
  9.1950 -* カスタマイズ[,B)7=\"7(B]:   Customizations.         4.
  9.1951 -* キーアサイン[,B+" 3"q(B]:   Customizations.         4.
  9.1952 -* 数式モード[,B7$5+`(F(B]:   Image completion.       4.
  9.1953 -* インストール[,B"q7F(i(B]:   Installation.           4.
  9.1954 -* タイプセッタ[,B="S9B=(B]:   Invocation.             4.
  9.1955 -* プレヴューア[,BSjPd$ (B]:   Invocation.             4.
  9.1956 -* アウトライン[,B $Fg"q(B]:   view-sectioning.        4.
  9.1957 -* ,Hx数,BL,LB数,Bp(Bマ,B&i(B[,BP+7$L17$p)&i(B]: 2,LB,HH(B上,BL,Hx数,BpFi(B section型コマンド.  24.
  9.1958 -* アクセント記号補(J.(B[,B -9qF+1$Y)q(B]: Accent mark completion.  4.
  9.1959 -* カスタマイズ変数,Hj(B覧[,B)7=\"7Vq7$"?gq(B]: All customizable variables.  4.
  9.1960 -* (JB(B境名,BL(B(J.(B[,B)q+f$_"LY)q(B]: begin型補(J.(B.    4.
  9.1961 -* エラー修正[,B&g 5d$9"(B]: Calling typesetter.     4.
  9.1962 -* タイプセッタ起動[,B="S9B=+F$(B]: Calling typesetter.  4.
  9.1963 -* タイプセットエラー[,B="S9BF&g (B]: Calling typesetter.  4.
  9.1964 -* (JB(B境名,BL(Bマ更[,B)q+f$_"LVq1$(B]: Changing LaTeX command.  20.
  9.1965 -* モード切,Bh(Bヨ,B&(B[,B`$F+h)&(B]: Changing mode of YaTeX.  4.
  9.1966 -* タイプセッタ,BL(B使,B"(Bェ,B/(B[,B="S9B=LB)"m/(B]: Changing typesetter.  12.
  9.1967 -* 起動,B7i(BRマンド,Bp(Bマ,B&i(B[,B+F$7i1\qFp)&i(B]: Changing typesetter.  7.
  9.1968 -* コメントアウト[,B1_qF $F(B]: Commenting out.       4.
  9.1969 -* 他パッケージ,BFL(BA携[,B=MB/&5FLjq/"(B]: Cooperation with other packages.  4.
  9.1970 -* コマンドヒストリ[,B1\qFP7Fh(B]: Cooperation with other packages.  8.
  9.1971 -* カーソルジャンプ[,B) ;i5bqS(B]: Cursor jump.      4.
  9.1972 -* %#記法自体,BL(Bメ集[%#,B+Y$5="LVq5d$(B]: Editing %# notation.  4.
  9.1973 -* パラグラフ,BL桁(Bオ,B&(B[,BMg-gSL/=;k&(B]: Filling.  46.
  9.1974 -* 領,Hf決(B闍K則[,Bhf$"+/BD"+;-(B]: Fix region for typesetting.  25.
  9.1975 -* 長,B"(Btァイル,BL(Bメ集[,BH)"S "iLVq5d$(B]: Fix region for typesetting.  34.
  9.1976 -* ,LE(B阯フ,Hf,BL(B^イプセット[,B1D"hf$"+L="S9BF(B]: Fix region for typesetting.  4.
  9.1977 -* ギリシャ文字補(J.(B[,B+h5b`5Y)q(B]: Greek letter completion.  4.
  9.1978 -* イメージ補(J.(B[,B"_&5Y)q(B]: Image completion.       4.
  9.1979 -* 数式記号イメージ補(J.(B[,B7$5++1$"_&5Y)q(B]: Image completion.  4.
  9.1980 -* 他,BL(Btァイル,BL(B手直,B5(B[,BY)LS "iLDH(5(B]: Includeonly.  11.
  9.1981 -* インクルード構造[,B"q-i$F1$;$(B]: Inclusion hierarchy browser.  4.
  9.1982 -* ,B(\)9(I|(Bs[,B(\)9)"+f$(B]: Intelligent newline.  4.
  9.1983 -* プリントアウト[,BShqF $F(B]: Invocation.           4.
  9.1984 -* (JB(B境,BL,Mm(B除[,B)q+f$L3-5f(B]: Killing LaTeX command.  6.
  9.1985 -* ラベル自動生成[,BgVi5F$9"9"(B]: label-generation.  4.
  9.1986 -* フォント指定子[,BS(qF5D"5(B]: large型補(J.(B.        17.
  9.1987 -* 文字サイズ指定子[,B`53"75D"5(B]: large型補(J.(B.    17.
  9.1988 -* ローカル辞書[,Bk()i55f(B]: Local dictionary.       4.
  9.1989 -* 変更/,Mm(B除[,BVq1$(B/,B3-5f(B]: Modifying/Deleting.     4.
  9.1990 -* グローバルヘルプ[,B-k(MiViS(B]: Online help.      16.
  9.1991 -* オンラインヘルプ[,B(qg"qViS(B]: Online help.      4.
  9.1992 -* キーワード検,Mu(B[,B+"m F/q3-(B]: Online help.      4.
  9.1993 -* プライベートヘルプ[,BSg"V&FViS(B]: Online help.  16.
  9.1994 -* 入力ファイル分割[,BId$hf-S "iSq)B(B]: Splitting input files.  11.
  9.1995 -* セクション区切,Bh,Hj(B覧バッファ[,B9-5fq-+h"?gqMBS (B]: view-sectioning.  18.
  9.1996 -* セクション区切,Bh(B[,B9-5fq-+h(B]: view-sectioning.  42.
  9.1997 -* ,L;,M],BL(BJラム表示[,B/q3"L)g^Pf$5(B]: What column.  22.
  9.1998 -* apropos:                      Online help.            4.
  9.1999 -* autoload:                     Installation.           4.
  9.2000 -* auto-mode-alist:              Installation.           4.
  9.2001 -* %#BEGIN:                      Fix region for typesetting.  4.
  9.2002 -* begin型補(J.(B[begin,B)=Y)q(B]: begin型補(J.(B.            4.
  9.2003 -* C-c:                          Invocation.             4.
  9.2004 -* Demacs:                       Intro.                  4.
  9.2005 -* .emacs:                       Installation.           4.
  9.2006 -* %#END:                        Fix region for typesetting.  4.
  9.2007 -* end補(J.(B[end,BY)q(B]:           end補(J.(B.                4.
  9.2008 -* ghostview:                    Splitting input files.  16.
  9.2009 -* gmhist:                       Cooperation with other packages.  8.
  9.2010 -* hook変数[hook,BVq7$(B]:       Hook variables.         4.
  9.2011 -* 出力終了ページ[,B5dBhf-5d$hf$V&5(B]: Print out.  9.
  9.2012 -* includeonly:                  Includeonly.            4.
  9.2013 -* Install:                      Installation.           4.
  9.2014 -* item,BHGL桁(Bオ,B&(B[item,BHFL/=;k&(B]: Filling.      8.
  9.2015 -* 出力開始ページ[,B5dBhf-)"5V&5(B]: Print out.  9.
  9.2016 -* jlatex:                       Invocation.             4.
  9.2017 -* large型補(J.(B[large,B)=Y)q(B]: large型補(J.(B.            4.
  9.2018 -* LaTeX:                        Intro.                  4.
  9.2019 -* leftarrow:                    Image completion.       4.
  9.2020 -* lpr format:                   lpr format.             4.
  9.2021 -* lprフォーマット,BL(Bマ更[lpr,BS((\BFLVq1$(B]: Editing %# notation.  18.
  9.2022 -* lpr,BS'(B[,B\AF(B[lpr,BS((\BF(B]: lpr format.         4.
  9.2023 -* lprフォーマット[lpr,BS((\BF(B]: lpr format.         4.
  9.2024 -* maketitle型補(J.(B[maketitle,B)=Y)q(B]: maketitle型補(J.(B.  4.
  9.2025 -* M-C-@:                        (JB(B境,Bp(BP,HJ,BF5=(BWャンプ.  7.
  9.2026 -* M-C-a:                        (JB(B境,Bp(BP,HJ,BF5=(BWャンプ.  7.
  9.2027 -* M-C-e:                        (JB(B境,Bp(BP,HJ,BF5=(BWャンプ.  7.
  9.2028 -* min-out:                      Cooperation with other packages.  17.
  9.2029 -* M-q:                          Filling.                46.
  9.2030 -* Mule:                         Intro.                  4.
  9.2031 -* 勝手,BI(Bincludeonly[,B)BDI(Bincludeonly]: Includeonly.  4.
  9.2032 -* NTT-jTeX[,B&JD""D""5&"DB-(B]: Filling.      16.
  9.2033 -* platex:                       Invocation.             4.
  9.2034 -* prefix ,:                     Commenting out.         4.
  9.2035 -* prefix .:                     Commenting out.         4.
  9.2036 -* prefix <:                     Commenting out.         4.
  9.2037 -* prefix >:                     Commenting out.         4.
  9.2038 -* prefix /:                     Online help.            4.
  9.2039 -* prefix ?:                     Online help.            4.
  9.2040 -* prefix &:                     What column.            4.
  9.2041 -* prefix a:                     Accent mark completion.  4.
  9.2042 -* prefix b:                     begin型補(J.(B.            4.
  9.2043 -* prefix c:                     Modifying/Deleting.     4.
  9.2044 -* prefix d:                     Inclusion hierarchy browser.  4.
  9.2045 -* prefix e:                     end補(J.(B.                4.
  9.2046 -* prefix g:                     Cursor jump.            4.
  9.2047 -* prefix i:                     Filling.                8.
  9.2048 -* prefix k:                     Modifying/Deleting.     4.
  9.2049 -* prefix key:                   Invocation.             4.
  9.2050 -* prefix l:                     large型補(J.(B.            4.
  9.2051 -* prefix m:                     maketitle型補(J.(B.        4.
  9.2052 -* prefix s:                     section型補(J.(B.          4.
  9.2053 -* prefix SPC:                   Arbitrary completion.   4.
  9.2054 -* prefix w:                     Changing mode of YaTeX.  4.
  9.2055 -* prefixキー変更[prefix,B+"Vq1$(B]: Lisp variables.   4.
  9.2056 -* ページ確認省略lpr起動[,BV&5)-Iq5f$hb-(Blpr,B+F$(B]: Print out.  12.
  9.2057 -* section型補(J.(B[section,B)=Y)q(B]: section型補(J.(B.      4.
  9.2058 -* 複雑,BH(Btabular[,BS-3BH(Btabular]: What column.        4.
  9.2059 -* 先(Iq,Bh(Busepackage[,B3+\mh(B]: Usepackage cheker.      4.
  9.2060 -* YaTeX-help-file:              Online help.            16.
  9.2061 -* YaTeX-help-file-private:      Online help.            16.
  9.2062 -* YaTeX-item-regexp:            Filling.                20.
  9.2063 -* YaTeX-math-sign-alist-private: Image completion.      56.
  9.2064 -* yatex-mode-hook:              Hook variables.         4.
  9.2065 -* yatex-mode-load-hook:         Hook variables.         4.
  9.2066 -* YaTeX-nervous:                Local dictionary.       22.
  9.2067 -* .yatexrc:                     Local dictionary.       4.
  9.2068 -
  9.2069 -
  9.2070 -
  9.2071 -
  9.2072 -
  9.2073 -Tag table:
  9.2074 -Node: Top146
  9.2075 -Node: Intro1200
  9.2076 -Node: Terminology1503
  9.2077 -Node: Main features2138
  9.2078 -Node: Installation3171
  9.2079 -Node: Invocation4390
  9.2080 -Node: Calling typesetter5214
  9.2081 -Node: Calling previewer6452
  9.2082 -Node: Print out6768
  9.2083 -Node: %#notation7034
  9.2084 -Node: Changing typesetter7408
  9.2085 -Node: Splitting input files7666
  9.2086 -Node: Fix region for typesetting8615
  9.2087 -Node: lpr format9516
  9.2088 -Node: Editing %# notation10309
  9.2089 -Node: Completion10742
  9.2090 -Node: begin$B7?Jd40(B11215
  9.2091 -Node: section$B7?Jd40(B13800
  9.2092 -Node: 2$B8D0J>e$N0z?t$r$H$k(B section$B7?%3%^%s%I(B14895
  9.2093 -Node: Enclose section-type command15712
  9.2094 -Node: Recursive completion15949
  9.2095 -Node: view-sectioning16255
  9.2096 -Node: label-generation17451
  9.2097 -Node: large$B7?Jd40(B17801
  9.2098 -Node: maketitle$B7?Jd40(B18381
  9.2099 -Node: Arbitrary completion18680
  9.2100 -Node: end$BJd40(B18993
  9.2101 -Node: Accent mark completion19335
  9.2102 -Node: Image completion19761
  9.2103 -Node: Greek letter completion21578
  9.2104 -Node: Local dictionary22038
  9.2105 -Node: Commenting out22643
  9.2106 -Node: Cursor jump23802
  9.2107 -Node: $BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B24039
  9.2108 -Node: $B$*3(IA$-%D!<%k5/F0(B25027
  9.2109 -Node: $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B25947
  9.2110 -Node: $B4D6-$rC10L$H$7$?%8%c%s%W(B26283
  9.2111 -Node: $B:G8e$NJd400LCV$X$N%8%c%s%W(B26640
  9.2112 -Node: Modifying/Deleting26877
  9.2113 -Node: Changing LaTeX command27282
  9.2114 -Node: Killing LaTeX command27833
  9.2115 -Node: Filling28703
  9.2116 -Node: Includeonly30031
  9.2117 -Node: What column30590
  9.2118 -Node: Intelligent newline31368
  9.2119 -Node: Usepackage cheker32400
  9.2120 -Node: Changing mode of YaTeX32826
  9.2121 -Node: Online help33402
  9.2122 -Node: Inclusion hierarchy browser34378
  9.2123 -Node: Cooperation with other packages35656
  9.2124 -Node: Customizations36111
  9.2125 -Node: Lisp variables36408
  9.2126 -Node: All customizable variables37015
  9.2127 -Node: Sample definitions44315
  9.2128 -Node: Hook variables44749
  9.2129 -Node: Hook file45642
  9.2130 -Node: Add-in functions45848
  9.2131 -Node: Etc46075
  9.2132 -Node: Copying46359
  9.2133 -Node: Concept Index46990
  9.2134 -
  9.2135 -End tag table
  9.2136 +Info file: yatexj,    -*-Text-*-
  9.2137 +produced by `texinfo-format-buffer'
  9.2138 +from file `yatexj.tex'
  9.2139 +using `texinfmt.el' version 2.38 of 3 July 1998.
  9.2140 +
  9.2141 +START-INFO-DIR-ENTRY
  9.2142 +* YaTeX: (yatexj).      Yet Another tex-mode for Emacs (Japanese).
  9.2143 +END-INFO-DIR-ENTRY
  9.2144 +
  9.2145 +
  9.2146 +
  9.2147 +
  9.2148 +
  9.2149 +
  9.2150 +File: yatexj, Node: Top, Next: Intro, Prev: (dir), Up: (dir)
  9.2151 +
  9.2152 +* Menu:
  9.2153 +
  9.2154 +* Intro::                       はじめに
  9.2155 +* Terminology::                 マニュアル参照上の注意
  9.2156 +* Main features::               主な機能
  9.2157 +* Installation::                インストール
  9.2158 +* Invocation::                  プロセス起動
  9.2159 +* %#notation ::                 %#記法
  9.2160 +* Completion::                  補完入力
  9.2161 +* Local dictionary::            ローカル辞書
  9.2162 +* Commenting out::              コメントアウト
  9.2163 +* Cursor jump::                 カーソルジャンプ
  9.2164 +* Modifying/Deleting::          LaTeXコマンドの変更/削除
  9.2165 +* Filling::                     桁揃え
  9.2166 +* Includeonly::                 勝手に includeonly
  9.2167 +* What column::                 カラム位置ガイド
  9.2168 +* Intelligent newline::         おまかせ改行
  9.2169 +* Usepackage cheker::           先回りusepackage
  9.2170 +* Changing mode of YaTeX::      野鳥動作モード変更
  9.2171 +* Online help::                 LaTeXオンラインヘルプ
  9.2172 +* Inclusion hierarchy browser::  ファイル分割階層構造の表示
  9.2173 +* Cooperation with other packages::  他パッケージとの連携
  9.2174 +* Customizations::              カスタマイズ
  9.2175 +* Etc::                         その他
  9.2176 +* Copying::                     取り扱い
  9.2177 +* Concept Index::               索引
  9.2178 +
  9.2179 +
  9.2180 +
  9.2181 +
  9.2182 +File: yatexj, Node: Intro, Next: Terminology, Prev: Top, Up: Top
  9.2183 +
  9.2184 +はじめに
  9.2185 +********
  9.2186 +
  9.2187 +  野鳥は、GNU Emacs で LaTeX 用の文書を作成する時に pLaTeX などのタイプセッ
  9.2188 +トコマンドや、プレヴューアの起動を Emacs 編集画面中から行えるようにすると
  9.2189 +共に、拡張性の高い種々の補完機能によりソーステキストの編集を支援します。さ
  9.2190 +らに LaTeX コマンドのオンラインヘルプによりマニュアルを調べる手間を軽減し
  9.2191 +ます。
  9.2192 +
  9.2193 +  English manual *Note Top: (yatexe)Top.
  9.2194 +
  9.2195 +
  9.2196 +
  9.2197 +File: yatexj, Node: Terminology, Next: Main features, Prev: Intro, Up: Top
  9.2198 +
  9.2199 +本マニュアル参照上の注意
  9.2200 +************************
  9.2201 +
  9.2202 +  本マニュアルでは以下の表記を用います。
  9.2203 +
  9.2204 +   * begin型コマンド
  9.2205 +
  9.2206 +     `\begin{環境} 〜 \end{環境}'という形式のLaTeXコマンドを指します。
  9.2207 +     begin型コマンドを補完入力することをbegin型補完と呼びます。
  9.2208 +
  9.2209 +   * section型コマンド
  9.2210 +
  9.2211 +     `\section{タイトル}'や`\mbox{内容}'のように引数を取るLaTeXコマンドを
  9.2212 +     指します。
  9.2213 +
  9.2214 +   * maketitle型コマンド
  9.2215 +
  9.2216 +     `\maketitle'や`\tableofcontents'のように引数を取らないLaTeXコマンドを
  9.2217 +     指します。
  9.2218 +
  9.2219 +   * large型コマンド
  9.2220 +
  9.2221 +     `{\large ...}' や `{\tt ...}' のようなフォント/サイズ指定子を指します。
  9.2222 +
  9.2223 +   * `[prefix]'
  9.2224 +
  9.2225 +     野鳥の機能を呼び出すためのプリフィクスキー。デフォルトでは`C-c'に割り
  9.2226 +     当てられているので、特に変更していない場合本マニュアルの `[prefix]' 
  9.2227 +     という表記は、`C-c' と読み換えてください。
  9.2228 +
  9.2229 +
  9.2230 +
  9.2231 +File: yatexj, Node: Main features, Next: Installation, Prev: Terminology, Up: Top
  9.2232 +
  9.2233 +主な機能
  9.2234 +********
  9.2235 +
  9.2236 +   * タイプセッタやプレヴューアなどの編集画面からの起動(`C-c t')
  9.2237 +   * カーソル位置によらない固定リジョンの部分タイプセット
  9.2238 +   * \includeonlyのワンタッチ更新
  9.2239 +   * エラー箇所への自動ジャンプ(`C-c '')
  9.2240 +   * `\begin{}, \end{}, \section...' などの LaTeX コマンドの補完入力(`C-c
  9.2241 +     b', `C-c s', `C-c l', `C-c m')
  9.2242 +   * 既に入力したテキストを環境やコマンド引数の中に取り込む括り補完(`C-u'
  9.2243 +     +通常補完キー)
  9.2244 +   * セクション区切り入力時の文書構造アウトライン表示
  9.2245 +   * セクションコマンドの一括シフト (*Note view-sectioning::)
  9.2246 +   * 補完辞書の学習
  9.2247 +   * LaTeX の環境やコマンドに応じたガイド付き引数入力
  9.2248 +   * 野鳥にないガイド付き引数入力関数の自動生成(`yatexgen.el')
  9.2249 +   * LaTeX コマンドの削除/変更(`C-c k', `C-c c')
  9.2250 +   * ファイル間、`\begin'<->`\end'間、`\ref'<->`\label'間、
  9.2251 +     `\cite'<->`\bibitem'ジャンプ(`C-c g')
  9.2252 +   * 一括コメントアウト/アンコメントアウト(`C-c >', `C-c <', `C-c ,', `C-c
  9.2253 +     .')
  9.2254 +   * アクセント記号/数式環境用コマンド/ギリシャ文字の入力支援(`C-c a',
  9.2255 +     `;', `/')
  9.2256 +   * tabular/array環境のカラム位置ガイド
  9.2257 +   * 標準的 LaTeX コマンドのオンラインヘルプ(`C-c ?', `C-c /')
  9.2258 +   * ドキュメントのインクルード構造の視覚的表示とバッファ切り替え(`C-c d')
  9.2259 +   * 補完入力したマクロに応じて必要な \userpackage を入れてくれる先回り
  9.2260 +     userpackage
  9.2261 +   * \labelを打つことはもう忘れよう! refやcite補完入力で自動生成します
  9.2262 +
  9.2263 +
  9.2264 +
  9.2265 +File: yatexj, Node: Installation, Next: Invocation, Prev: Main features, Up: Top
  9.2266 +
  9.2267 +起動法
  9.2268 +******
  9.2269 +
  9.2270 +野鳥起動のための設定
  9.2271 +====================
  9.2272 +
  9.2273 +  ~/.emacsに下の2項目を加えます。
  9.2274 +
  9.2275 +     (setq auto-mode-alist
  9.2276 +           (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
  9.2277 +     (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
  9.2278 +
  9.2279 +次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に加えます。
  9.2280 +たとえば、 `~/src/emacs/yatex'に置くのであれば、
  9.2281 +
  9.2282 +     (setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path))
  9.2283 +
  9.2284 +などとします。
  9.2285 +
  9.2286 +  以上の設定により、拡張子が .tex であるファイルを編集すると自動的に野鳥が
  9.2287 +ロードされます。野鳥が正常に起動できたときはモードラインの表示が「やてふ」
  9.2288 +に変わります。
  9.2289 +
  9.2290 +
  9.2291 +タイプセッタ/プレヴューア環境の設定
  9.2292 +===================================
  9.2293 +
  9.2294 +  利用する外部プログラムに関する以下の変数を確認し、必要なら正しい値に変更
  9.2295 +します。
  9.2296 +`tex-command'
  9.2297 +             ... 起動するタイプセッタのコマンド名
  9.2298 +`dvi2-command'
  9.2299 +             ... 起動するプレヴューアのコマンド名
  9.2300 +`NTT-jTeX'
  9.2301 +             ... 改行+インデントによって、タイプセット後の字間が空いてしま
  9.2302 +     うのを抑制する場合にtにする(古いNTT-jTeXで顕著に現れる)。具体的には、
  9.2303 +     fillするときに各行の終わりに%を付加するようになる。
  9.2304 +`YaTeX-kanji-code'
  9.2305 +             ... 文書を作成する時の漢字コード
  9.2306 +`dviprint-command-format'
  9.2307 +             ... ファイルの印刷に使われるコマンド列の書式
  9.2308 +`makeindex-command'
  9.2309 +             ... makeindexコマンド
  9.2310 +
  9.2311 +これらを変更する場合は、やはり`~/.emacs'にて、たとえば(setq tex-command
  9.2312 +"pdflatex") のようにしてください。どのような値をセットすれば良いかについて
  9.2313 +は、*Note All customizable variables::を参照してください。
  9.2314 +
  9.2315 +
  9.2316 +
  9.2317 +
  9.2318 +File: yatexj, Node: Invocation, Next: %#notation, Prev: Installation, Up: Top
  9.2319 +
  9.2320 +latexコマンド起動
  9.2321 +*****************
  9.2322 +
  9.2323 +LaTeXソースの編集中、次のキー入力により、platex などのタイプセットプログラ
  9.2324 +ム(以後タイプセッタと呼ぶ)、プレヴューアなどの起動ができます。
  9.2325 +
  9.2326 +`[prefix] t j'
  9.2327 +             ... タイプセッタ(platex)起動
  9.2328 +`[prefix] t r'
  9.2329 +             ... タイプセッタ起動(領域指定)
  9.2330 +`[prefix] t e'
  9.2331 +             ... タイプセッタ起動(ポイント位置の環境または数式モードのみ対
  9.2332 +     象)
  9.2333 +`[prefix] t k'
  9.2334 +             ... 動作中のタイプセッタの停止
  9.2335 +`[prefix] t b'
  9.2336 +             ... jbibtex起動
  9.2337 +`[prefix] t i'
  9.2338 +             ... makeindex起動
  9.2339 +`[prefix] t d'
  9.2340 +     	... タイプセット完了後dvipdfmx起動
  9.2341 +`[prefix] t p'
  9.2342 +             ... プレヴューア起動
  9.2343 +`[prefix] t l'
  9.2344 +             ... lpr(プリントアウト用)コマンド起動
  9.2345 +`[prefix] t s'
  9.2346 +             ... xdvi -remote でのサーチ
  9.2347 +
  9.2348 +* Menu:
  9.2349 +
  9.2350 +* Calling typesetter::          タイプセッタ起動
  9.2351 +* Calling previewer::           プレヴューア起動
  9.2352 +* Print out::                   プリントアウト用コマンドの起動
  9.2353 +
  9.2354 +
  9.2355 +
  9.2356 +File: yatexj, Node: Calling typesetter, Next: Calling previewer, Prev: Invocation, Up: Invocation
  9.2357 +
  9.2358 +タイプセッタ起動
  9.2359 +================
  9.2360 +
  9.2361 +  タイプセッタを起動すると、編集ウィンドウが2つに分割され、片方のウィンド
  9.2362 +ウにタイプセット画面が表示されます。出力されるメッセージと連動しタイプセッ
  9.2363 +トバッファは自動的にスクロールします。もし、途中でエラーが起こって止まって
  9.2364 +しまった場合にはタイプセットバッファに移り、(`C-x o') タイプセッタの出して
  9.2365 +いる ? プロンプトに対して、`x' (処理の中断)などの指示を送ることができます。
  9.2366 +エラーを修正する場合は、
  9.2367 +
  9.2368 +`[prefix] ''
  9.2369 +`(prefix+アポストロフィ)'
  9.2370 +             ... 直前のエラー発生行へジャンプ
  9.2371 +
  9.2372 +を入力することにより、タイプセッタがエラーを発生した行に移ることができます。
  9.2373 +また、タイプセッタの出力する overfull hbox などのウォーニング行にも対応し
  9.2374 +ていますので、順次 `[prefix] '' を押すことにより、一つ前のウォーニング発生
  9.2375 +行にジャンプしていきます。
  9.2376 +
  9.2377 +  もし、気になるエラー行があった場合は、タイプセットバッファで、エラーの表
  9.2378 +示されている行にカーソルを合わせスペースキーを押すと LaTeX ソースの対応す
  9.2379 +る行にジャンプします。
  9.2380 +
  9.2381 +
  9.2382 +領域タイプセット
  9.2383 +----------------
  9.2384 +
  9.2385 +  ポイントとマークの間、あるいはテキスト中に埋め込んだ `%#BEGIN' と`%#END'
  9.2386 +の間の領域(*Note %#notation::)だけを切り取ってタイプセットすることができま
  9.2387 +す。この場合メインファイルのプリアンブルが一時ファイルのプリアンブルとして
  9.2388 +使われます。したがってプリアンブルにないマクロ定義が領域内にあるとエラーに
  9.2389 +なります。領域タイプセットを使う場合、必ずマクロ定義はプリアンブル
  9.2390 +(`\begin{document}'より前)に置くようにして下さい。一時ファイルはメインファ
  9.2391 +イルのあるディレクトリの`texput.tex'という名前で出力されるので、上書きには
  9.2392 +注意してください。
  9.2393 +
  9.2394 +
  9.2395 +環境タイプセット
  9.2396 +----------------
  9.2397 +
  9.2398 +  `[prefix] te' を押すと、ポイント位置の最も内側の環境、または数式モード内
  9.2399 +の場合はその数式モード全体が自動的に領域選択されて、領域タイプセットを呼び
  9.2400 +出します。tabular環境や数式モードで複雑なものを作っている場合は確かめたい
  9.2401 +部分だけを確認できるので便利です。これも `texput.tex' に該当部分を書き出し
  9.2402 +ます。プレヴューアで `texput.dvi' を開いたままにしておけば修正と確認が素早
  9.2403 +くできるでしょう。
  9.2404 +
  9.2405 +
  9.2406 +
  9.2407 +File: yatexj, Node: Calling previewer, Next: Print out, Prev: Calling typesetter, Up: Invocation
  9.2408 +
  9.2409 +プレヴューア起動
  9.2410 +================
  9.2411 +  `[prefix] t p' によりプレヴューアの起動ができます。さらに、もしあなたが、-
  9.2412 +remote 機能つきのxdviを利用している場合は `[prefix] t s' を押すことにより
  9.2413 +カーソル位置の文字列を検索してそのページを表示するようにすでに起動中のxdvi
  9.2414 +に命令を送ります。これにより、現在編集中の箇所のタイプセット結果を即座に見
  9.2415 +ることができます。
  9.2416 +
  9.2417 +
  9.2418 +
  9.2419 +
  9.2420 +File: yatexj, Node: Print out, Prev: Calling previewer, Up: Invocation
  9.2421 +
  9.2422 +プリントアウト
  9.2423 +==============
  9.2424 +
  9.2425 +  `[prefix] t l'を押してプリントアウトを指示すると、出力開始/終了ページを
  9.2426 +聞いてくるので、それぞれに答えます。これを省略したい時は、
  9.2427 +universal-argument をつけ、
  9.2428 +
  9.2429 +
  9.2430 +`C-u [prefix] t l'
  9.2431 +             ... ページ確認省略lpr起動
  9.2432 +
  9.2433 +のように起動してください。
  9.2434 +
  9.2435 +
  9.2436 +
  9.2437 +File: yatexj, Node: %#notation, Next: Completion, Prev: Invocation, Up: Top
  9.2438 +
  9.2439 +%#記法
  9.2440 +******
  9.2441 +
  9.2442 +  本文中に`%#'ではじまるキーワードを埋め込むことでタイプセッタ起動等の制御
  9.2443 +をすることができます。
  9.2444 +
  9.2445 +* Menu:
  9.2446 +
  9.2447 +* Changing typesetter::         タイプセット用コマンドの変更
  9.2448 +* Splitting input files::       入力ファイル分割
  9.2449 +* Fix region for typesetting::  領域の固定
  9.2450 +* lpr format::                  プリントアウトコマンド用フォーマット
  9.2451 +* Controlling which command to invoke::  その他の起動コマンド制御
  9.2452 +* Editing %# notation::         %#記法の編集
  9.2453 +
  9.2454 +
  9.2455 +
  9.2456 +File: yatexj, Node: Changing typesetter, Next: Splitting input files, Prev: %#notation, Up: %#notation
  9.2457 +
  9.2458 +タイプセット用コマンド変更
  9.2459 +==========================
  9.2460 +
  9.2461 +  起動するコマンドを変えたい時は本文中に次のような行を書きます。
  9.2462 +
  9.2463 +
  9.2464 +             %#!jlatex-ntt
  9.2465 +
  9.2466 +NTT jTeX と、ASCII jTeX を使い分けたいような場合に便利でしょう。
  9.2467 +
  9.2468 +
  9.2469 +
  9.2470 +
  9.2471 +File: yatexj, Node: Splitting input files, Next: Fix region for typesetting, Prev: Changing typesetter, Up: %#notation
  9.2472 +
  9.2473 +入力ファイル分割
  9.2474 +================
  9.2475 +
  9.2476 +また、章毎に別ファイルの .tex を作成している場合で、`main.tex'から 
  9.2477 +`sub.tex' を `\include'しているような時は、`sub.tex'の任意の位置に次のよう
  9.2478 +な行を埋め込みます。
  9.2479 +
  9.2480 +             %#!platex main.tex
  9.2481 +
  9.2482 +
  9.2483 +上の例のようにコマンド名だけでなく引数も書いた場合には、全てをそのまま 
  9.2484 +shell に渡すので次のように書けば、ghostview などをプレヴューアに使う時に便
  9.2485 +利です。
  9.2486 +
  9.2487 +
  9.2488 +             %#!platex main && dvi2ps main.dvi > main
  9.2489 +
  9.2490 +なお、この行の最後の単語のピリオド以前を「メインファイル」のベースネームで
  9.2491 +あると仮定します(上の2つの場合どちらも`main')。この行に記述した、`%f'はメ
  9.2492 +インファイル名に、 `%r' はメインファイルの拡張子を取り除いた部分に置換され
  9.2493 +ます。ただし、`%f,%r'を利用した場合、初回タイプセット時に必ずメインファイ
  9.2494 +ル名の入力を促されます。
  9.2495 +
  9.2496 +  `[prefix] g' (*Note Cursor jump::参照) でのファイル間ジャンプを有効に機
  9.2497 +能させるため、入力ファイル分割時には次のことに注意して下さい。
  9.2498 +
  9.2499 +  1. サブディレクトリを作って、その中にサブファイルを置くことはできるがサ
  9.2500 +     ブディレクトリのサブディレクトリには置けない。
  9.2501 +  2. メインファイルからサブディレクトリ内のファイルを include する時には、
  9.2502 +     相対パス指定を用いて、`\include{chap1/sub}'のように記述。
  9.2503 +  3. メインファイルが一つ上のディレクトリにある場合も、サブファイルには
  9.2504 +     %#!platex main.tex のように記述する(../mainではない)。
  9.2505 +
  9.2506 +
  9.2507 +
  9.2508 +
  9.2509 +
  9.2510 +File: yatexj, Node: Fix region for typesetting, Next: lpr format, Prev: Splitting input files, Up: %#notation
  9.2511 +
  9.2512 +領域の固定
  9.2513 +==========
  9.2514 +
  9.2515 +  `[prefix] tr' の領域指定のタイプセットでは、とくに指定のないかぎり、 
  9.2516 +`C-SPC'でマークした位置と、ポイント(カーソル位置)の間を領域とみなしますが、
  9.2517 +必ず決まった領域をタイプセットしたい場合は、その領域を
  9.2518 +
  9.2519 +             %#BEGIN
  9.2520 +             <渡したい領域>
  9.2521 +             %#END
  9.2522 +
  9.2523 +のように`%#BEGIN'と`%#END'で囲み、カーソルを「`%#BEGIN'以降」に置いてくだ
  9.2524 +さい。この時の領域決定規則をまとめると次のようになります。
  9.2525 +
  9.2526 +
  9.2527 +  1. カーソル位置よりバッファの先頭方向に`%#BEGIN'というキーワードがある場
  9.2528 +     合
  9.2529 +
  9.2530 +       1. `%#BEGIN'よりバッファの末尾方向に`%#END'というキーワードが見つかっ
  9.2531 +          た場合。
  9.2532 +          =>`%#BEGIN' から、その `%#END' のある位置まで。
  9.2533 +       2. `%#END' が見つからなかった場合。=>バッファの最後尾まで。
  9.2534 +
  9.2535 +  2. カーソル位置よりバッファの先頭方向に `%#BEGIN' というキーワードが
  9.2536 +     見つからなかった場合。
  9.2537 +     =>マーク(`C-SPC'位置)とポイント(カーソル位置)の間の領域。
  9.2538 +
  9.2539 +  tabular 環境を何度も試行錯誤しているような場合は、`\begin'の前の行に 
  9.2540 +`%#BEGIN' と書き、`\end' の次の行に `%#END' と書いておくと簡単に作表結果を
  9.2541 +テストすることができます。また、長い .tex ファイルの後半に `%#BEGIN' を書
  9.2542 +いておけば、前半の部分は無視できます。このBEGINとEND の消し忘れには十分ご
  9.2543 +注意下さい。
  9.2544 +
  9.2545 +
  9.2546 +
  9.2547 +
  9.2548 +File: yatexj, Node: lpr format, Next: Controlling which command to invoke, Prev: Fix region for typesetting, Up: %#notation
  9.2549 +
  9.2550 +lprフォーマット
  9.2551 +===============
  9.2552 +
  9.2553 +  まず、プリントアウト用コマンド列のフォーマットについて説明します。コマン
  9.2554 +ド列フォーマットは、3つの Lisp 変数によって表現されます。デフォルトの 
  9.2555 +dvi2ps 用のフォーマットを例に説明します。
  9.2556 +
  9.2557 +`(1)dviprint-command-format'
  9.2558 +     `"dvi2ps %f %t %s | lpr"'
  9.2559 +
  9.2560 +`(2)dviprint-from-format'
  9.2561 +     `"-f %b"'
  9.2562 +
  9.2563 +`(3)dviprint-to-format'
  9.2564 +     `"-t %e"'
  9.2565 +
  9.2566 +実際にプリントアウトする時は、(1)中の %s がファイル名に置き換えられ、%f が
  9.2567 +(2)の内容、%t が(3)の内容に置き換えられます。その際に(2)の文字列中の %b は
  9.2568 +「出力開始ページ」、(3)の文字列中の %e は「出力終了ページ」に置き換えられ
  9.2569 +ます。もし、ページを指定しない時には、%f, %t 両方とも無視されます。
  9.2570 +
  9.2571 +  この、dviprint-command-format を臨時に変えたい時は、LaTeX のソーステキス
  9.2572 +ト中の任意の場所に、
  9.2573 +
  9.2574 +             %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2
  9.2575 +
  9.2576 +のように書いて下さい。プリントアウトするページ範囲をいちいち聞かせないよう
  9.2577 +にする時に
  9.2578 +
  9.2579 +             %#LPR dvi2ps %s | lpr
  9.2580 +
  9.2581 +などとするのも便利かもしれません。
  9.2582 +
  9.2583 +
  9.2584 +
  9.2585 +File: yatexj, Node: Controlling which command to invoke, Next: Editing %# notation, Prev: lpr format, Up: %#notation
  9.2586 +
  9.2587 +その他の起動コマンド制御
  9.2588 +========================
  9.2589 +
  9.2590 +LaTeX 文書に関連するコマンドは以下の %# 記法で指定することができます。
  9.2591 +
  9.2592 +      `%#BIBTEX'
  9.2593 +     
  9.2594 +     	... makeindexを行なうコマンドライン([prefix] t b)
  9.2595 +      `%#MAKEINDEX'
  9.2596 +     
  9.2597 +     	... bibtexを行なうコマンドライン([prefix] t i)
  9.2598 +
  9.2599 +行頭がこれらのキーワードで始まる行をLaTeX文書の先頭付近に書いておけば、そ
  9.2600 +れで指定したコマンドを起動できます。
  9.2601 +
  9.2602 +
  9.2603 +
  9.2604 +File: yatexj, Node: Editing %# notation, Prev: Controlling which command to invoke, Up: %#notation
  9.2605 +
  9.2606 +%#記法自体の編集
  9.2607 +================
  9.2608 +
  9.2609 +以上のような`%#'で始まる各種制御記法を編集するためには
  9.2610 +
  9.2611 +`[prefix] %'
  9.2612 +             ... `%#'記法編集メニュー
  9.2613 +
  9.2614 +を押します。
  9.2615 +
  9.2616 +             !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR
  9.2617 +
  9.2618 +というメニューが出て来るので、`%#!'に続くコマンドを変更したい時には`!'を、
  9.2619 +`%#LPR'で lpr フォーマットを変えたい時は`l'を、あらかじめ設定したリジョン
  9.2620 +を `%#BEGIN' 〜 `%#END' で括りたい時は、`b'を押します。`b'を選んだ時には、
  9.2621 +それまでバッファ中に置かれていた`%#BEGIN', `%#END' が自動的に消去されます。
  9.2622 +
  9.2623 +
  9.2624 +
  9.2625 +File: yatexj, Node: Completion, Next: Local dictionary, Prev: %#notation, Up: Top
  9.2626 +
  9.2627 +補完入力
  9.2628 +********
  9.2629 +
  9.2630 +  LaTeX での環境名などは、野鳥の補完機能を利用して能率的に入力することがで
  9.2631 +きます。
  9.2632 +
  9.2633 +* Menu:
  9.2634 +
  9.2635 +* begin型補完::                 
  9.2636 +* section型補完::               
  9.2637 +* large型補完::                 
  9.2638 +* maketitle型補完::             
  9.2639 +* Arbitrary completion::        随時補完
  9.2640 +* end補完::                     
  9.2641 +* Accent mark completion::      アクセント記号補完
  9.2642 +* Image completion::            数式記号イメージ補完
  9.2643 +* Greek letter completion::     ギリシャ文字補完
  9.2644 +
  9.2645 +
  9.2646 +
  9.2647 +File: yatexj, Node: begin型補完, Next: section型補完, Prev: Completion, Up: Completion
  9.2648 +
  9.2649 +begin型補完
  9.2650 +===========
  9.2651 +
  9.2652 +  `\begin{env}...\end{env}'の様な形式の入力の補完をbegin型補完と呼ぶことに
  9.2653 +します。begin 型補完は、
  9.2654 +
  9.2655 +`[prefix] b'
  9.2656 +             ... begin 型補完開始(標準では `C-c b')
  9.2657 +
  9.2658 +で始まります。頻繁に用いられる次の LaTeX 環境の補完は、[prefix] `b' に続く
  9.2659 +次の1文字を入力するだけで、`\begin{xxx}...\end{xxx}'を完成させます。
  9.2660 +
  9.2661 +`[prefix] b c'
  9.2662 +             ... `\begin{center}...\end{center}'
  9.2663 +`[prefix] b d'
  9.2664 +             ... `\begin{document}...\end{document}'
  9.2665 +`[prefix] b D'
  9.2666 +             ... `\begin{description}...\end{description}'
  9.2667 +`[prefix] b e'
  9.2668 +             ... `\begin{enumerate}...\end{enumerate}'
  9.2669 +`[prefix] b E'
  9.2670 +             ... `\begin{equation}...\end{equation}'
  9.2671 +`[prefix] b i'
  9.2672 +             ... `\begin{itemize}...\end{itemize}'
  9.2673 +`[prefix] b l'
  9.2674 +             ... `\begin{flushleft}...\end{flushleft}'
  9.2675 +`[prefix] b m'
  9.2676 +             ... `\begin{minipage}...\end{minipage}'
  9.2677 +`[prefix] b t'
  9.2678 +             ... `\begin{tabbing}...\end{tabbing}'
  9.2679 +`[prefix] b T'
  9.2680 +             ... `\begin{tabular}...\end{tabular}'
  9.2681 +`[prefix] b ^T'
  9.2682 +             ... `\begin{table}...\end{table}'
  9.2683 +`[prefix] b p'
  9.2684 +             ... `\begin{picture}...\end{picture}'
  9.2685 +`[prefix] b q'
  9.2686 +             ... `\begin{quote}...\end{quote}'
  9.2687 +`[prefix] b Q'
  9.2688 +             ... `\begin{quotation}...\end{quotation}'
  9.2689 +`[prefix] b r'
  9.2690 +             ... `\begin{flushright}...\end{flushright}'
  9.2691 +`[prefix] b v'
  9.2692 +             ... `\begin{verbatim}...\end{verbatim}'
  9.2693 +`[prefix] b V'
  9.2694 +             ... `\begin{verse}...\end{verse}'
  9.2695 +
  9.2696 +  上記のもの以外の環境名は Emacs の持つインクリメンタルな補完機能を用いて
  9.2697 +入力します(上記の環境名も以下の補完入力可能)。
  9.2698 +
  9.2699 +`[prefix] b SPC'
  9.2700 +             ... begin 型補完入力
  9.2701 +
  9.2702 +`[prefix] b SPC' と入力すると、最下行のミニバッファに
  9.2703 +
  9.2704 +             Begin environment(default document):
  9.2705 +
  9.2706 +と表示されます。ここで、何も入れずにリターンキーのみ押すと、括弧内に出てい
  9.2707 +るデフォルトの環境名が入力されますが、適当な環境名を入力すると、`\begin{環
  9.2708 +境名} … \end{環境名}'が文書中に挿入されます。ミニバッファで環境名を入力す
  9.2709 +るときに、環境名の頭文字を入力し「スペース」をたたくと、一致する環境名が内
  9.2710 +部テーブルに存在した場合、正しい環境名に補完されるので、入力の手間が省けま
  9.2711 +す。内部テーブルに存在しない環境名を入力した時はユーザ専用のテーブルに登録
  9.2712 +され、さらにそのテーブルを自動的に、ユーザ辞書(デフォルトでは 
  9.2713 +`~/.yatexrc')に保存します。
  9.2714 +
  9.2715 +さらに、特定の環境を補完入力した時にはその環境で必ず用いられるエントリを自
  9.2716 +動挿入します(例: `itemize'環境における`\item'など)。挿入されたエントリが不
  9.2717 +要な場合にはundoによって消去して下さい。
  9.2718 +
  9.2719 +
  9.2720 +既に書いたテキストを環境で括る
  9.2721 +------------------------------
  9.2722 +
  9.2723 +  ところで、最初に書いてしまったブロックを後から、itemize 環境の中に閉じこ
  9.2724 +めたいと思うことがありますが、そのようなときは、あらかじめ閉じこめたい段落
  9.2725 +をマークして、begin 型補完の各コマンドの `[prefix]' の次の『小文字の 'b'』 
  9.2726 +を『大文字』に変えて起動して下さい。(または、`C-u' を先に打ち、universal
  9.2727 +argument をつけても可能です)
  9.2728 +
  9.2729 +  例えばあるパラグラフを description 環境の中に入れたいときは、そのパラグ
  9.2730 +ラフをマークしてから、
  9.2731 +
  9.2732 +`[prefix] B D'
  9.2733 +`(または ESC 1 [prefix] b D)'
  9.2734 +`(または  C-u  [prefix] b D など)'
  9.2735 +
  9.2736 +とタイプしてください。これは、`[prefix] b SPC'の補完入力にもあてはまり、
  9.2737 +`b' を大文字に変えて、`[prefix] B SPC' とタイプすれば、あらかじめマークし
  9.2738 +ておいたリジョンを、begin と end の環境で括ります。
  9.2739 +
  9.2740 +
  9.2741 +
  9.2742 +File: yatexj, Node: section型補完, Next: large型補完, Prev: begin型補完, Up: Completion
  9.2743 +
  9.2744 +section型補完
  9.2745 +=============
  9.2746 +
  9.2747 +  `\section{目的}' のような形式の入力の補完を section 型補完と呼ぶことにし
  9.2748 +ます。section 型補完は、
  9.2749 +
  9.2750 +`[prefix] s'
  9.2751 +             ... section 型補完
  9.2752 +
  9.2753 +
  9.2754 +で実行します。`[prefix] s' を入力するとミニバッファに、
  9.2755 +
  9.2756 +             (C-v for view-section) \???{} (default documentclass):
  9.2757 +
  9.2758 +というプロンプトが現れるので、そこで `section' のような LaTeX コマンド名を
  9.2759 +入力します。ここでもリターンキーのみで括弧内のデフォルト値が選択されるほか、
  9.2760 +`chapter'などのような頻度の高い名称入力にはスペースキーによる補完機能が有
  9.2761 +効です。 次に、{}の中身の入力を促す、
  9.2762 +
  9.2763 +             \section{???}:
  9.2764 +
  9.2765 +というプロンプトが現れるので、セクションのタイトルなどを入力します。たとえ
  9.2766 +ば、
  9.2767 +
  9.2768 +             (C-v for view-section) \???{} (default documentclass): section
  9.2769 +             \section{???}: 目的
  9.2770 +
  9.2771 +のように入力した場合は、文章中に
  9.2772 +
  9.2773 +             \section{目的}
  9.2774 +
  9.2775 +が挿入され、
  9.2776 +
  9.2777 +             (C-v for view-section) \???{} (default section): vspace*
  9.2778 +             \vspace*{???}:
  9.2779 +
  9.2780 +のように{}の中身を省略したときは、
  9.2781 +
  9.2782 +             \vspace*{}
  9.2783 +
  9.2784 +だけが挿入され、改行はせずカーソルは自動的に中括弧の内側に移動します。
  9.2785 +
  9.2786 +* Menu:
  9.2787 +
  9.2788 +* 2個以上の引数をとる section型コマンド::  
  9.2789 +* Enclose section-type command::  括り補完
  9.2790 +* Recursive completion::        再帰補完
  9.2791 +* view-sectioning::             セクション区切りのアウトライン表示
  9.2792 +* label-generation::            ラベル自動生成
  9.2793 +
  9.2794 +
  9.2795 +
  9.2796 +File: yatexj, Node: 2個以上の引数をとる section型コマンド, Next: Enclose section-type command, Prev: section型補完, Up: section型補完
  9.2797 +
  9.2798 +2個以上の引数をとる section型コマンド
  9.2799 +-------------------------------------
  9.2800 +
  9.2801 +  ところで、`\addtolength{\topmargin}{8mm}' などのように、引数を二つ以上取
  9.2802 +る LaTeX コマンドがあります。このようなコマンドの補完入力には、 section 型
  9.2803 +補完呼び出しに引数を付けてください。例えば上の`addtolength' の例であれば、
  9.2804 +引数2を指定します。つまり、
  9.2805 +
  9.2806 +             C-u 2 [prefix] s   (または、ESC 2 [prefix] s)
  9.2807 +
  9.2808 +と section 型補完を呼び出した後、
  9.2809 +
  9.2810 +             (Ctrl-v for view-section) \???{} (default vspace*): addtolength
  9.2811 +             \addtolength{???}: \topmargin
  9.2812 +             Argument 2: 8mm
  9.2813 +
  9.2814 +のように入力してください。最初の addtolength の部分と、第一引数である 
  9.2815 +\topmargin の入力は当然スペースによる補完入力が可能です。ユーザ辞書に登録
  9.2816 +される LaTeX コマンドには、この引数の数も学習されるので、最初の補完の時引
  9.2817 +数の数を指定して起動しておけば、以後の補完時には、記憶された個数だけ引数を
  9.2818 +聞いて来るようになります。あとで引数の個数を変えたい時は、再び `C-u' を用
  9.2819 +いて個数を指定し直すことで、自動的に辞書中の引数の個数の部分を更新します。
  9.2820 +
  9.2821 +
  9.2822 +
  9.2823 +
  9.2824 +File: yatexj, Node: Enclose section-type command, Next: Recursive completion, Prev: 2個以上の引数をとる section型コマンド, Up: section型補完
  9.2825 +
  9.2826 +既に書いたテキストを括る
  9.2827 +------------------------
  9.2828 +
  9.2829 +  また、起動コマンドの`s'を大文字に変えて起動すると、あらかじめ書いた文章
  9.2830 +を section 型コマンドの第一引数として括ります。
  9.2831 +
  9.2832 +
  9.2833 +
  9.2834 +File: yatexj, Node: Recursive completion, Next: view-sectioning, Prev: Enclose section-type command, Up: section型補完
  9.2835 +
  9.2836 +再帰補完
  9.2837 +--------
  9.2838 +
  9.2839 +  高度な使い方になるかもしれませんが、section型補完の引数の入力時にさらに
  9.2840 +補完入力を利用することができます(section/large/maketitle型に限る)。section 
  9.2841 +型コマンドの引数に更に LaTeX コマンドが来る場合にはミニバッファで野鳥の補
  9.2842 +完キーを再帰的に入力することで引数の入力も効率的に行なえます。
  9.2843 +
  9.2844 +
  9.2845 +
  9.2846 +File: yatexj, Node: view-sectioning, Next: label-generation, Prev: Recursive completion, Up: section型補完
  9.2847 +
  9.2848 +セクション区切りのアウトライン表示
  9.2849 +----------------------------------
  9.2850 +
  9.2851 +  通常のsection型補完の時にミニバッファで`C-v'を押すと現在存在するセクショ
  9.2852 +ン区切りコマンド全てを `*Sectioning Lines*'というバッファに一覧表示します
  9.2853 +(「<<--」のついている行がもっとも近いセクション区切り)。この時ミニバッファ
  9.2854 +で`C-p', `C-n' を押すと`part', `chapter', ..., `subparagraph' のコマンドが
  9.2855 +論理階層の高さにしたがって上下します。また、`C-v', `M-v' を押すとセクショ
  9.2856 +ン区切り一覧バッファがスクロールし、数字の`0'〜`7'を押すとある高さ以上のセ
  9.2857 +クション区切りだけを選んで表示します(実際にやって見れば分かります)。
  9.2858 +
  9.2859 +`*Sectioning Lines*'バッファは、
  9.2860 +
  9.2861 +`M-x YaTeX-section-overview'
  9.2862 +             ... セクション区切り一覧バッファを生成
  9.2863 +
  9.2864 +で作成することができます。このバッファを選択し任意の行でスペースを押すと、
  9.2865 +該当するセクション区切りのある本文中の場所にジャンプします。さらに、同バッ
  9.2866 +ファで `u' を押すと、ソーステキストの対応するセクションコマンドが一階層上
  9.2867 +がり(例: subsection が section に変わる)、`d'を押すと一階層下がります。
  9.2868 +`*Sectioning Lines*'バッファにあるセクション区切りの行をマークしておいて
  9.2869 +`U'を押すとリジョン内のものに対応するソーステキストのセクションコマンドす
  9.2870 +べてが一階層上がり、`D'を押すと下がります。セクション区切り一覧バッファで
  9.2871 +利用できるキーコマンドには以下のものがあります。
  9.2872 +
  9.2873 +`SPC'
  9.2874 +             ... 対応するソース行へジャンプ
  9.2875 +`.'
  9.2876 +             ... 対応するソース行を表示
  9.2877 +`u'
  9.2878 +             ... カーソル位置に対応するセクションコマンドを一階層上げる
  9.2879 +`d'
  9.2880 +             ... カーソル位置に対応するセクションコマンドを一階層下げる
  9.2881 +`U'
  9.2882 +             ... マークしたセクションコマンドを一階層上げる
  9.2883 +`D'
  9.2884 +             ... マークしたセクションコマンドを一階層上げる
  9.2885 +`0〜6'
  9.2886 +             ... レベル n 以下のセクションコマンドを隠して表示
  9.2887 +
  9.2888 +
  9.2889 +
  9.2890 +
  9.2891 +File: yatexj, Node: label-generation, Prev: view-sectioning, Up: section型補完
  9.2892 +
  9.2893 +ラベル自動生成
  9.2894 +--------------
  9.2895 +
  9.2896 +  `\ref{}' や `\cite{}' マクロをsection型補完で入れた場合参照先となり得る
  9.2897 +ものを全て探してメニューにして選択できます。参照先には`\label{}'をつけてお
  9.2898 +く必要はありません。もしあれば、そのラベルを使い、なければその場で参照先に
  9.2899 +`\label{}'を作らせてくれます。ラベル名を考えるのは苦痛に感じるものです。全
  9.2900 +てのカウンタにラベルをつけるのもたいへんです。もうラベル名に何をつけるか、
  9.2901 +ラベルをつけるかつけまいか、などということは忘れましょう!
  9.2902 +
  9.2903 +
  9.2904 +
  9.2905 +File: yatexj, Node: large型補完, Next: maketitle型補完, Prev: section型補完, Up: Completion
  9.2906 +
  9.2907 +large型補完
  9.2908 +===========
  9.2909 +
  9.2910 +  `{\large }' のような形式の補完を large 型補完と呼ぶことにします。
  9.2911 +
  9.2912 +`[prefix] l'
  9.2913 +             ... large 型補完開始
  9.2914 +
  9.2915 +がlarge型補完の開始です。`[prefix] l' を押すと、ミニバッファに
  9.2916 +
  9.2917 +             {\??? } (default large):
  9.2918 +
  9.2919 +
  9.2920 +と表示されるので、上記のものと同じ要領で補完入力して下さい。補完候補に用意
  9.2921 +されているのは、`footnotesize' や `huge' のような文字サイズ指定子と、`bf'
  9.2922 +や`dg'のようなフォント指定子です。
  9.2923 +
  9.2924 +
  9.2925 +既に書いた文字を括る
  9.2926 +--------------------
  9.2927 +
  9.2928 +  また、begin型補完の時と同様、先に書いてしまった一連の文章の文字のサイズ
  9.2929 +を変えたいと思う時がありますが、そのような時は、サイズや大きさを変えたい文
  9.2930 +字の範囲をマークしてから、呼び出しキーを `[prefix] L' と、大文字の L に変
  9.2931 +えて呼び出せば、そのリジョン全体が、ブレースで囲まれます。
  9.2932 +
  9.2933 +
  9.2934 +
  9.2935 +File: yatexj, Node: maketitle型補完, Next: Arbitrary completion, Prev: large型補完, Up: Completion
  9.2936 +
  9.2937 +maketitle型補完
  9.2938 +===============
  9.2939 +
  9.2940 +  `\maketitle' の形式の補完を maketitle 型補完と呼ぶことにします。
  9.2941 +
  9.2942 +`[prefix] m'
  9.2943 +             ... maketitle 型補完開始
  9.2944 +
  9.2945 +で、maketitle 型補完を開始します。補完の要領は今までのものとまったく同じで
  9.2946 +す。LaTeX 用のコマンド名が補完候補として用意されています。
  9.2947 +
  9.2948 +
  9.2949 +
  9.2950 +File: yatexj, Node: Arbitrary completion, Next: end補完, Prev: maketitle型補完, Up: Completion
  9.2951 +
  9.2952 +随時補完
  9.2953 +========
  9.2954 +
  9.2955 +  さて、今まで述べた典型的な LaTeX コマンド形式の補完入力を用いずに、今入
  9.2956 +力しようとしている LaTeX コマンドを文書中の任意の位置で随時補完することも
  9.2957 +できます。LaTeX コマンド(先頭が\で始まる)を入力している途中で、
  9.2958 +
  9.2959 +`[prefix] SPC'
  9.2960 +             ... 随時補完
  9.2961 +
  9.2962 +を入力すれば、全ての補完候補の中から一致するものが選ばれカーソル位置に挿入
  9.2963 +されます。
  9.2964 +
  9.2965 +
  9.2966 +
  9.2967 +File: yatexj, Node: end補完, Next: Accent mark completion, Prev: Arbitrary completion, Up: Completion
  9.2968 +
  9.2969 +end補完
  9.2970 +=======
  9.2971 +
  9.2972 +  現在開いたままの環境名を自動的に検出し、`\end{環境名}'を挿入します。
  9.2973 +begin 型補完を用いれば環境の閉じ忘れはないのですが、時にはついつい手で 
  9.2974 +`\begin{環境名}' を入れてしまい、悲しい思いをすることがあります。そのよう
  9.2975 +な時には気にせず続けて文章を入力し、しかるのちに
  9.2976 +
  9.2977 +`[prefix] e'
  9.2978 +             ... end 補完
  9.2979 +
  9.2980 +とすることで、現在開いている環境名で \end{} が補われます。
  9.2981 +
  9.2982 +
  9.2983 +
  9.2984 +File: yatexj, Node: Accent mark completion, Next: Image completion, Prev: end補完, Up: Completion
  9.2985 +
  9.2986 +アクセント記号補完
  9.2987 +==================
  9.2988 +
  9.2989 +  欧文のアクセント記号(`\`{o}'など)を入力する時は、
  9.2990 +
  9.2991 +`[prefix] a'
  9.2992 +             ... アクセント記号入力
  9.2993 +
  9.2994 +を押すと、ミニバッファに
  9.2995 +
  9.2996 +             1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b
  9.2997 +
  9.2998 +というメニューが出て来るので、数字、または対応する記号/英字を入力して下さ
  9.2999 +い。すると編集バッファに、
  9.3000 +
  9.3001 +             \`{}
  9.3002 +
  9.3003 +が現われ、カーソルが{}内に位置するので、さらに一文字入力する事で、
  9.3004 +
  9.3005 +             \`{o}
  9.3006 +
  9.3007 +が完成され、カーソルは{}の外に戻ります。
  9.3008 +
  9.3009 +
  9.3010 +
  9.3011 +File: yatexj, Node: Image completion, Next: Greek letter completion, Prev: Accent mark completion, Up: Completion
  9.3012 +
  9.3013 +数式記号イメージ補完
  9.3014 +====================
  9.3015 +
  9.3016 +  主に数式モードで使用される、矢印やΣなどの記号を擬似的に表現するキー入力
  9.3017 +で、LaTeX コマンドを入力できます。これは野鳥自身の「数式モード」でのみ動作
  9.3018 +します。野鳥はカーソルがTeXの数式環境の中にある時に`;'や、`:'に特殊な機能
  9.3019 +を持たせます。
  9.3020 +
  9.3021 +  さて、例えば、←(leftarrow)をASCII文字だけで表現する場合、一般的には「<-」
  9.3022 +のようにしますが、これを利用して、数式記号イメージ入力モードで`\leftarrow'
  9.3023 +を入力するには、`;'(セミコロン)を打ってから`<-'と入力します。同様に、長い
  9.3024 +矢印←-(long-leftarrow) をASCII文字だけで表現する場合「<--」とするので、
  9.3025 +`\longleftarrow'を入力するためには、`;<--' と入力します。あるいは無限大記
  9.3026 +号をASCII文字だけで表現する時は「oo」のようにすることから、`\infty' を入力
  9.3027 +する時は、`;oo'とキー入力します。
  9.3028 +
  9.3029 +  これらの操作をまとめると次のようになります。
  9.3030 +
  9.3031 +     INPUT                   入力される LaTeX コマンド
  9.3032 +     ; < -                   `\leftarrow'
  9.3033 +     ; < - -                 `\longleftarrow'
  9.3034 +     ; < - - >               `\longleftrightarrow'
  9.3035 +     ; o                     `\circ'
  9.3036 +     ; o o                   `\infty'
  9.3037 +
  9.3038 +
  9.3039 +
  9.3040 +  いずれの場合も、イメージ入力を行っている途中で望みのものがバッファに表示
  9.3041 +されたなら、そこでイメージ入力を止めて次の編集動作に移っても構いません。
  9.3042 +
  9.3043 +  数式環境中で`;'自身を入力するには`;;'のようにします。イメージ入力の途中
  9.3044 +でTABを押すと、それまで入力した文字で始まるもの一覧が表示されます。ここで
  9.3045 +目的の LaTeX コマンドまでカーソルを移動し再度TABを押すことでその LaTeX コ
  9.3046 +マンドがバッファに挿入されます。
  9.3047 +
  9.3048 +  どのキー入力にどの記号が対応しているか全て知りたい時は、`;'を押した直後
  9.3049 +にTABを押してください。以下の例は、`;<'と押した後にTABを押したものです。
  9.3050 +
  9.3051 +     KEY             LaTeX sequence          sign
  9.3052 +     <               \leq                    ≦
  9.3053 +     <<              \ll                     《
  9.3054 +     <-              \leftarrow              ←
  9.3055 +     <=              \Leftarrow              <=
  9.3056 +
  9.3057 +左から[入力キー]、[対応する LaTeX コマンド]、[(擬似)記号図示]、という順で
  9.3058 +メニューが出て来るので、よく使うものを覚えておくと良いでしょう。ものによっ
  9.3059 +てはASCII文字で表現することが困難なので、あまり覚えやすいキー並びではない
  9.3060 +ものがあるでしょうから、そのような場合は \maketitle 型補完で入力するか、以
  9.3061 +下に述べる対応表の設定を行って単純なキー並びのものを設定すると良いでしょう。
  9.3062 +
  9.3063 +  入力キーと LaTeX コマンド、記号の対応表を個人的に設定したい場合は 
  9.3064 +Emacs-Lisp 変数 `YaTeX-math-sign-alist-private' に定義してください。その内
  9.3065 +容とデフォルトのものを合わせたものが対応表として使用されます(private の方
  9.3066 +が優先される)。なお、この変数の構造については `yatexmth.el' を参照してくだ
  9.3067 +さい。
  9.3068 +
  9.3069 +
  9.3070 +
  9.3071 +File: yatexj, Node: Greek letter completion, Prev: Image completion, Up: Completion
  9.3072 +
  9.3073 +ギリシャ文字補完
  9.3074 +================
  9.3075 +
  9.3076 +  もう一つ、数式環境中で`:'を押すとギリシャ文字入力モードに入ります。`:'を
  9.3077 +押した直後に`a'を押すと`\alpha'が、`g' を押すと `\gamma'が、などアルファベッ
  9.3078 +トに対応したギリシャ文字が挿入されます。操作方法は;の数式記号補完とまった
  9.3079 +く同じです。まずは`:'の直後にTABを押してどのアルファベットにどのギリシャ文
  9.3080 +字が対応しているか調べてみてください。
  9.3081 +
  9.3082 +  `;'と`:'を数式環境中で押しているにもかかわらず、イメージ補完が働かない場
  9.3083 +合は、`C-u ;'のように universal-argument をつけてキーを押すことにより、強
  9.3084 +制的にイメージ補完に入ることができます。また、この時にどのような状態で数式
  9.3085 +環境内判定に失敗したかをご連絡下さい。
  9.3086 +
  9.3087 +
  9.3088 +
  9.3089 +File: yatexj, Node: Local dictionary, Next: Commenting out, Prev: Completion, Up: Top
  9.3090 +
  9.3091 +ローカル辞書
  9.3092 +************
  9.3093 +
  9.3094 +  補完入力用の候補は三種類の辞書から構成されています。一つは`yatex.el'に組
  9.3095 +み込まれた「標準辞書」、もう一つはユーザが個人的に常用するコマンドを保存す
  9.3096 +る「ユーザ辞書」、そしてもうひとつはあるディレクトリでのみ有効なコマンドを
  9.3097 +保存する「ローカル辞書」です。
  9.3098 +
  9.3099 +  補完入力時に新しい単語を入れた場合に、その単語をどの辞書に入れるか聞いて
  9.3100 +来ます。
  9.3101 +
  9.3102 +       `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard
  9.3103 +
  9.3104 +というプロンプトに対し、`u'と答えると「ユーザ辞書」を、`l'と答えるとローカ
  9.3105 +ル辞書を更新し、`n'と答えると辞書ファイルは更新せず現在のEmacs セッション
  9.3106 +のみ有効な単語とし、`d'と答えると新たな単語を学習せずに捨てることになりま
  9.3107 +す。
  9.3108 +
  9.3109 +  もし、ローカル辞書の機能はいらず、全てユーザ辞書の更新のみでよいと言う場
  9.3110 +合には`~/.emacs'などで、
  9.3111 +
  9.3112 +             (setq YaTeX-nervous nil)
  9.3113 +
  9.3114 +として下さい。
  9.3115 +
  9.3116 +
  9.3117 +
  9.3118 +File: yatexj, Node: Commenting out, Next: Cursor jump, Prev: Local dictionary, Up: Top
  9.3119 +
  9.3120 +コメントアウト
  9.3121 +**************
  9.3122 +
  9.3123 +
  9.3124 +  LaTeXの編集には試行錯誤がつきものです。ある部分を一括でコメントアウトし
  9.3125 +たり、コメントを外したりしたいことがあります。
  9.3126 +
  9.3127 +`[prefix] >'
  9.3128 +             ... リジョンを % でコメントアウト
  9.3129 +`[prefix] <'
  9.3130 +             ... リジョンの % のコメントを外す
  9.3131 +
  9.3132 +は、あらかじめ設定したリジョンに対しての操作、
  9.3133 +
  9.3134 +`[prefix] .'
  9.3135 +             ... 現在のパラグラフをコメントアウト
  9.3136 +`[prefix] ,'
  9.3137 +             ... 現在のパラグラフのコメントを外す
  9.3138 +
  9.3139 +は、カーソルの位置するパラグラフ全体に対しての操作です。なお、ここでいう
  9.3140 +「パラグラフ」は (`mark-paragraph') 関数によりマークされる範囲を指します
  9.3141 +(標準設定で`ESC h'にバインドされている)。なお、既に`%'でコメントアウトされ
  9.3142 +ているパラグラフに対して繰り返しパラグラフのコメントを使用した場合の動作は
  9.3143 +保証しませんので御注意ください。
  9.3144 +
  9.3145 +  さて、文章に対してだけでなく、時には`\begin', `\end' 自体に対してもコメ
  9.3146 +ントアウトの操作をしたいときがあります。このようなときは、`\begin{}' ある
  9.3147 +いは `\end{}' の行にカーソルを合わせ、
  9.3148 +
  9.3149 +`[prefix] >'
  9.3150 +             ... `\begin{}'〜`\end{}' 全てコメントアウト
  9.3151 +`[prefix] <'
  9.3152 +             ... `\begin{}'〜`\end{}' 全てコメントを外す
  9.3153 +
  9.3154 +とすることで、`\begin〜\end'で囲まれる環境全てに対してコメント操作し、
  9.3155 +
  9.3156 +`[prefix] .'
  9.3157 +             ... `\begin{}' と `\end{}' をコメントアウト
  9.3158 +`[prefix] ,'
  9.3159 +             ... `\begin{}' と `\end{}' のコメントを外す
  9.3160 +
  9.3161 +は、対応する `\begin' と `\end' 2行だけを、コメント操作の対象とします。リ
  9.3162 +ジョンをコメントアウトしようとして、マークを設定したのちにカーソルを移動し
  9.3163 +`[preifx] >' を押してもカーソルが `\begin{}' の上にあると`\begin{}'〜
  9.3164 +`\end{}'モードでコメント機能が働いてしまうので注意して下さい。
  9.3165 +
  9.3166 +
  9.3167 +
  9.3168 +File: yatexj, Node: Cursor jump, Next: Modifying/Deleting, Prev: Commenting out, Up: Top
  9.3169 +
  9.3170 +カーソルジャンプ
  9.3171 +****************
  9.3172 +
  9.3173 +
  9.3174 +* Menu:
  9.3175 +
  9.3176 +* 対応オブジェクトへのジャンプ::  
  9.3177 +* お絵描きツール起動::          
  9.3178 +* メインファイルへのジャンプ::  
  9.3179 +* 環境を単位としたジャンプ::    
  9.3180 +* 最後の補完位置へのジャンプ::  
  9.3181 +
  9.3182 +
  9.3183 +
  9.3184 +File: yatexj, Node: 対応オブジェクトへのジャンプ, Next: お絵描きツール起動, Prev: Cursor jump, Up: Cursor jump
  9.3185 +
  9.3186 +対応オブジェクトへのジャンプ
  9.3187 +============================
  9.3188 +
  9.3189 +  文書中のいろいろな場所で
  9.3190 +
  9.3191 +`[prefix] g'
  9.3192 +             ... 対応するオブジェクトにジャンプ
  9.3193 +
  9.3194 +を押すことにより、カーソル位置のLaTeXコマンドに対応する場所にジャンプしま
  9.3195 +す。対応関係が存在すると解釈されるコマンドには以下のものがあります。
  9.3196 +
  9.3197 +   * `\begin{}' ←→ `\end{}'
  9.3198 +   * `%#BEGIN' ←→ `%#END'
  9.3199 +   * 画像ファイルの取り込みマクロ → 対応するviewer/お絵かきツール起動
  9.3200 +   * `\label{}' ←→ `\ref{}'
  9.3201 +   * `\include(\input)' → 対応するファイル
  9.3202 +   * `\bibitem{}' ←→ `\cite{}'
  9.3203 +
  9.3204 +  `\begin{}' か `\end{}' の行で`[prefix] g'を押すことにより、対応する
  9.3205 +`end/begin'の行にジャンプします。もちろん対応するものがない場合はエラーに
  9.3206 +なります。またこれは、領域固定のための `%#BEGIN' と `%#END' のペアに対して
  9.3207 +も同様に動作します。なお、`label/ref'や`cite/bibitem'対応するものが別ファ
  9.3208 +イルにある時は、ジャンプ先となるファイルがオープンされていなければなりませ
  9.3209 +ん。*Note %#notation::.  メインの .tex ファイルの `\include{chap1}' などに
  9.3210 +カーソルを合わせ、`[prefix] g' を押すと、`chap1.tex' にジャンプします。
  9.3211 +
  9.3212 +また、
  9.3213 +
  9.3214 +`[prefix] 4 g'
  9.3215 +             ... 別ウィンドウで対応オブジェクトにジャンプ
  9.3216 +
  9.3217 +を押すと、対応するオブジェクトへのジャンプを別ウィンドウで行います。ただし、
  9.3218 +この機能は `begin/end', `%#BEGIN/%#END' 間のジャンプに対しては(意味がない
  9.3219 +と思われるので)機能しないので注意してください。
  9.3220 +
  9.3221 +
  9.3222 +
  9.3223 +File: yatexj, Node: お絵描きツール起動, Next: メインファイルへのジャンプ, Prev: 対応オブジェクトへのジャンプ, Up: Cursor jump
  9.3224 +
  9.3225 +お絵描きツール起動
  9.3226 +==================
  9.3227 +
  9.3228 +上記の「画像ファイルの取り込みマクロ」とは、例えば `\epsfile{file=foo}' の
  9.3229 +ような挿絵取り込みコマンドのことで、この行にカーソルを合わせて`[prefix] g'
  9.3230 +を押すとその画像ファイルの元となったファイルを対応するお絵描きツールを起動
  9.3231 +してオープンします。起動するツールの判定は以下のようになされます。
  9.3232 +
  9.3233 +  1. カレント行が変数 `YaTeX-processed-file-regexp-alist' に定義されている
  9.3234 +     正規表現のいずれかとマッチしたら、ファイル名に相当する部分を \\(\\)か
  9.3235 +     ら抜き出して覚えておく(何番目の\\(\\)かは変数の各リストの cdr 部に入
  9.3236 +     れておく)。マッチしなければ何もしない。
  9.3237 +  2. 行末に、変数 `YaTeX-file-processor-alist' に登録されているコマンドが
  9.3238 +     「%コマンド」 のように書いてあれば強制的に「コマンド ファイル名.拡張
  9.3239 +     子」を起動。
  9.3240 +  3. なければ、変数 `YaTeX-file-processor-alist' の各リストのcdr部に入って
  9.3241 +     いる拡張子を「ファイル名」の後ろに足したファイルが存在するか順次調べ
  9.3242 +     て、存在した場合car部に入っているコマンドを起動する。
  9.3243 +  4. 以上どれかにマッチしなければあきらめる。
  9.3244 +
  9.3245 +
  9.3246 +変数 `YaTeX-file-processor-alist' と変数 `YaTeX-file-processor-alist' の設
  9.3247 +定方法についてはそれぞれの変数について describe-variable して説明を読んで
  9.3248 +下さい。うまく設定すると、画像ファイルにかぎらず、任意の形式のファイルを任
  9.3249 +意のプロセッサで処理するコマンドを簡単に呼び出すことができます。
  9.3250 +
  9.3251 +
  9.3252 +
  9.3253 +File: yatexj, Node: メインファイルへのジャンプ, Next: 環境を単位としたジャンプ, Prev: お絵描きツール起動, Up: Cursor jump
  9.3254 +
  9.3255 +メインファイルへのジャンプ
  9.3256 +==========================
  9.3257 +
  9.3258 +`chap1.tex'のようなサブファイルで、
  9.3259 +
  9.3260 +`[prefix] ^'
  9.3261 +             ... メインファイルにジャンプ
  9.3262 +`[prefix] 4 ^'
  9.3263 +             ... 別ウィンドウでメインファイルにジャンプ
  9.3264 +
  9.3265 +を押すと、メインファイルの編集バッファに切替えます。もし、メインファイルを
  9.3266 +オープンしていない場合は、カレントディレクトリから探して自動的にオープンし
  9.3267 +ます。
  9.3268 +
  9.3269 +
  9.3270 +
  9.3271 +File: yatexj, Node: 環境を単位としたジャンプ, Next: 最後の補完位置へのジャンプ, Prev: メインファイルへのジャンプ, Up: Cursor jump
  9.3272 +
  9.3273 +環境を単位としたジャンプ
  9.3274 +========================
  9.3275 +
  9.3276 +さらに現在の環境を単位として機能するコマンドに以下のものがあります。
  9.3277 +
  9.3278 +`M-C-a'
  9.3279 +             ... 環境の先頭(`\begin')へジャンプ
  9.3280 +`M-C-e'
  9.3281 +             ... 環境の末尾(`\end')へジャンプ
  9.3282 +`M-C-@'
  9.3283 +             ... 環境全体をマーク
  9.3284 +
  9.3285 +上記のコマンドは通常の`[prefix]'キーではなく`META'キーをプリフィクスとして
  9.3286 +機能するのでご注意下さい。
  9.3287 +
  9.3288 +
  9.3289 +
  9.3290 +File: yatexj, Node: 最後の補完位置へのジャンプ, Prev: 環境を単位としたジャンプ, Up: Cursor jump
  9.3291 +
  9.3292 +最後の補完位置へのジャンプ
  9.3293 +==========================
  9.3294 +
  9.3295 +野鳥は補完入力した位置を常にレジスタ `3'に保存しています。入力途中で如何な
  9.3296 +るファイルの如何なる位置に行ったとしても、`C-x j 3'(`jump-to-register')を
  9.3297 +使って直ちに最後の補完入力位置に戻ることができます。
  9.3298 +
  9.3299 +
  9.3300 +
  9.3301 +File: yatexj, Node: Modifying/Deleting, Next: Filling, Prev: Cursor jump, Up: Top
  9.3302 +
  9.3303 +変更/削除
  9.3304 +*********
  9.3305 +
  9.3306 +  既に入力されている LaTeX コマンドの変更/削除のために以下の機能が用意され
  9.3307 +ています。
  9.3308 +
  9.3309 +`[prefix] c'
  9.3310 +             ... カーソル位置の LaTeX コマンドの変更
  9.3311 +`[prefix] k'
  9.3312 +             ... カーソル位置の LaTeX コマンドの削除
  9.3313 +
  9.3314 +
  9.3315 +これらのコマンドは、コマンドを起動する場所によって動作を決定するので注意し
  9.3316 +て下さい。
  9.3317 +
  9.3318 +* Menu:
  9.3319 +
  9.3320 +* Changing LaTeX command::      LaTeX コマンドの変更
  9.3321 +* Killing LaTeX command::       LaTeX コマンドの削除
  9.3322 +
  9.3323 +
  9.3324 +
  9.3325 +File: yatexj, Node: Changing LaTeX command, Next: Killing LaTeX command, Prev: Modifying/Deleting, Up: Modifying/Deleting
  9.3326 +
  9.3327 +LaTeX コマンドの変更
  9.3328 +====================
  9.3329 +
  9.3330 +変更したい LaTeX コマンドにカーソルを合わせて `[prefix] c' を押すとそのコ
  9.3331 +マンドを補完入力などを用いて手軽に変えることができます。`[prefix] c' で変
  9.3332 +更できるコマンドには以下のものがあります。
  9.3333 +
  9.3334 +   * `begin/end' の環境名
  9.3335 +   * section型コマンドのコマンド名
  9.3336 +   * section型コマンドの引数
  9.3337 +   * section型コマンドのオプションパラメータ([]で囲まれたもの)
  9.3338 +   * large型コマンド
  9.3339 +   * (イメージ補完で入力可能な)数式モード専用のmaketitle型コマンド
  9.3340 +
  9.3341 +  変えたいsection型コマンドの引数がさらに LaTeX コマンドを含む場合は、その
  9.3342 +引数を囲む中括弧の上で `[prefix] c' を押すことで中のコマンドを変更対象判定
  9.3343 +から除外することができます。
  9.3344 +
  9.3345 +
  9.3346 +
  9.3347 +
  9.3348 +File: yatexj, Node: Killing LaTeX command, Prev: Changing LaTeX command, Up: Modifying/Deleting
  9.3349 +
  9.3350 +LaTeX コマンドの削除
  9.3351 +====================
  9.3352 +
  9.3353 +`[prefix] k' は起動する位置により次のような動作を行います。
  9.3354 +
  9.3355 +
  9.3356 +     起動位置                        動作
  9.3357 +     \begin, \endの行                `\begin\end'ペアの削除
  9.3358 +     %#BEGIN, %#END の行             %#BEGIN,%#ENDペアの削除
  9.3359 +     section型コマンドの上(中)       section型コマンドの削除
  9.3360 +     フォント指定括弧の上            フォント指定の削除
  9.3361 +     括弧の上                        対をなす括弧の削除
  9.3362 +
  9.3363 +
  9.3364 +`\begin, \end' および `%#BEGIN, %#END' を削除する場合、`\begin, \end' や 
  9.3365 +`%#BEGIN, %#END' の存在する行はまるごと削除されるので、それらの一行に 
  9.3366 +`\begin' などを二つ以上連ねて書かないように注意してください。上記のものは
  9.3367 +すべて本文を囲う「容器」を削除するように働きますが、universal-argument
  9.3368 +(`C-u') を打った後で`[prefix] k'をタイプすると、それぞれの「容器」に含まれ
  9.3369 +る「中身」も一気に削除します。以下の例を参考にして下さい。
  9.3370 +
  9.3371 +             元のテキスト:                   [prefix] k      C-u [prefix] k
  9.3372 +             本文\footnote{脚注}です。     本文脚注です。  本文です。
  9.3373 +                     ↑(カーソル位置)
  9.3374 +
  9.3375 +
  9.3376 +
  9.3377 +File: yatexj, Node: Filling, Next: Includeonly, Prev: Modifying/Deleting, Up: Top
  9.3378 +
  9.3379 +桁揃え
  9.3380 +******
  9.3381 +
  9.3382 +
  9.3383 +itemの桁揃え
  9.3384 +============
  9.3385 +
  9.3386 +  itemize 環境中にある`\item'の項目(文章)が複数行に渡る場合に、項目の先頭
  9.3387 +を桁揃えしたい場合には、
  9.3388 +
  9.3389 +
  9.3390 +`M-q'
  9.3391 +             ... 桁揃え
  9.3392 +
  9.3393 +によって、その item のインデントの深さに応じて fill されます。なお、古い
  9.3394 +NTT jTeX を使用している場合には、Lisp 変数`NTT-jTeX'を`t'にセットして下さ
  9.3395 +い。
  9.3396 +
  9.3397 +  このとき、変数`YaTeX-item-regexp'の値(標準では `"\\\\item"')を項目指定コ
  9.3398 +マンドの正規表現として検索に使用します。itemize 環境で、独自のコマンドを定
  9.3399 +義して項目を列挙している場合(例えば`\underlineitem')は、`~/.emacs' で次の
  9.3400 +ように指定して下さい。
  9.3401 +
  9.3402 +             (setq YaTeX-item-regexp
  9.3403 +                   "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)")
  9.3404 +
  9.3405 +
  9.3406 +この変数の指定の仕方がよく分からない場合は、独自の項目列挙コマンドの名前を
  9.3407 +``"\item"'で始まるものにして下さい(例えば"\itembf"')。
  9.3408 +
  9.3409 +野鳥の `M-q' では `\item' を環境に応じて以下のように「ハングインデント」し
  9.3410 +ます。
  9.3411 +
  9.3412 +     itemize, enumerate環境:
  9.3413 +            >\item[ほげほげ] 英語では、特に意味のない単語を `foo' であらわしま
  9.3414 +            >                すが、これの日本語版ともいえる単語が「ほげほげ」
  9.3415 +            >                です。
  9.3416 +     description環境:
  9.3417 +            > \item[へろへろ] 「ほげほげ」をでたらめが単語として使った時に、第
  9.3418 +            >            2のでたらめな単語として「へろへろ」が使われることが多
  9.3419 +            >            いようです。
  9.3420 +
  9.3421 +
  9.3422 +パラグラフの桁揃え
  9.3423 +==================
  9.3424 +
  9.3425 +  itemize環境以外でのパラグラフの桁揃え(fill)は、基本的に他のモードと同じ
  9.3426 +ように機能しますが、verbatim環境や、tabular環境など桁揃えをすると悲惨な状
  9.3427 +況になるような環境中では機能しません。また、\verb で括ってあるものは決して
  9.3428 +行分割されません(変数 `YaTeX-verb-regexp' で制御) )。さらに、一時的にイン
  9.3429 +デントの深さを変えてある箇所では、そのインデントの先頭で`M-q'を押すことに
  9.3430 +より fill-prefix をいちいち変更しなくて桁揃えができます。
  9.3431 +
  9.3432 +
  9.3433 +
  9.3434 +
  9.3435 +File: yatexj, Node: Includeonly, Next: What column, Prev: Filling, Up: Top
  9.3436 +
  9.3437 +勝手にincludeonly
  9.3438 +*****************
  9.3439 +
  9.3440 +  ファイルを分割して文章を入力している時には、メインファイル中に
  9.3441 +
  9.3442 +             \includeonly{現在編集中のファイル名}
  9.3443 +
  9.3444 +のように書いておくことで、タイプセットの時間を節約できますが、ちょっと他の
  9.3445 +ファイルを手直ししたい時には
  9.3446 +
  9.3447 +             \includeonly{ちょっと手直ししたいファイル名}
  9.3448 +
  9.3449 +
  9.3450 +と書き直さなければならず手間がかかります。野鳥では現在編集しているファイル
  9.3451 +名がメインファイルの`\includeonly'にない場合には自動的にこれを検出し、次の
  9.3452 +指示を仰ぎます。
  9.3453 +
  9.3454 +             A)dd R)eplace %)comment?
  9.3455 +
  9.3456 +
  9.3457 +現在編集中のファイルを `\includeonly' のリストに加えたい時には`a' を、現在
  9.3458 +編集中のファイルだけを `\includeonly' にしたい時は`r'を、`\includeonly' の
  9.3459 +行をコメントアウトして無効化したい時には、`%'をそれぞれ押して下さい。
  9.3460 +
  9.3461 +
  9.3462 +
  9.3463 +File: yatexj, Node: What column, Next: Intelligent newline, Prev: Includeonly, Up: Top
  9.3464 +
  9.3465 +ここはどこ?
  9.3466 +***********
  9.3467 +
  9.3468 +  項目数の多い tabular などをたくさん書いていると下の方の行で、いま書いて
  9.3469 +いる桁がどこに対応するのかわからなくなってしまうことがあります。例えば、以
  9.3470 +下のような tabular において、
  9.3471 +
  9.3472 +             \begin{tabular}{|c|c|c|c|c|c|c|c|}\hline
  9.3473 +              氏名&所属&〒&住所&電話&FAX&帰省先&帰省先電話\\ \hline
  9.3474 +              矢上二郎 & 6 & 223 & 横浜市港北区日吉 & xxx-yyy &
  9.3475 +                     zzz-www & トンガ & 9876-54321 \\
  9.3476 +              日吉小僧 & 2 & \multicolumn{2}{c|}{教えない}
  9.3477 +                     &&&(???)
  9.3478 +              \\ \hline
  9.3479 +             \end{tabular}
  9.3480 +
  9.3481 +
  9.3482 +(???)の部分がどの項目なのかすぐに判断するのは難しいでしょう。こんな時は、
  9.3483 +
  9.3484 +`[prefix] &'
  9.3485 +             ... 現在のカラム表示
  9.3486 +
  9.3487 +を押すとカーソル位置のカラムがどの項目に該当するかをミニバッファに表示しま
  9.3488 +す。tabular/array環境の第1行目を項目名の並びとみなして対応するものを探しま
  9.3489 +す。もし項目名として別のものを表示して欲しい場合は、行頭を`%'にしてダミー
  9.3490 +の項目並びを作っておくと良いでしょう。
  9.3491 +
  9.3492 +
  9.3493 +
  9.3494 +File: yatexj, Node: Intelligent newline, Next: Usepackage cheker, Prev: What column, Up: Top
  9.3495 +
  9.3496 +おまかせ改行
  9.3497 +************
  9.3498 +
  9.3499 +  tabular[*], array, itemize, enumerate, tabbing 環境をbegin型補完で入力し
  9.3500 +た時、または各環境内で
  9.3501 +
  9.3502 +`ESC RET'
  9.3503 +             ... おまかせ改行
  9.3504 +
  9.3505 +
  9.3506 +を押すと、その環境に応じた行エントリを次の行に挿入します(begin型補完時に自
  9.3507 +動挿入されたエントリが不要な場合は undo によって消去できます)。例えば、
  9.3508 +tabular環境では、その環境のカラム数に対応した個数の `&' に加え、行末の 
  9.3509 +`\\' を入れます。この時それ以前に `\hline' があればそれも付け加えます。環
  9.3510 +境とそれに応じて自動入力するものの対応は以下のようになります。
  9.3511 +
  9.3512 +   * `tabular', `tabular*', `array'
  9.3513 +
  9.3514 +             カラム数-1 だけの `&' と `\\'。必要に応じて `\hline'
  9.3515 +
  9.3516 +   * `tabbing'
  9.3517 +
  9.3518 +             一行目で定義している `\=' と同じ個数の `\>'。
  9.3519 +
  9.3520 +   * `itemize', `enumerate', `description', `list'
  9.3521 +
  9.3522 +             `\item' または `item[]'
  9.3523 +
  9.3524 +  tabular 環境の例のように、本機能は各環境の一行目の内容を参考にして動作す
  9.3525 +るので、なるべく二行目以降で呼び出すようにしてください。
  9.3526 +
  9.3527 +  もし、その他の環境、例えば `foo'、に対して`おまかせ改行'を動作させたい時
  9.3528 +は、`YaTeX-intelligent-newline-foo' という名前の関数を定義します。定義した
  9.3529 +関数は、現在の行に改行を挿入した直後の行頭の位置で呼ばれます。関数 
  9.3530 +`YaTeX-indent-line' を呼ぶと現在の環境のネストに応じた深さにインデントされ
  9.3531 +るので、これを呼んでから何かを挿入するようなコードを書くとよいでしょう。
  9.3532 +`yatexenv.el'内の関数 `YaTeX-intelligent-newline-itemize' の定義などを参考
  9.3533 +にしてください。
  9.3534 +
  9.3535 +
  9.3536 +
  9.3537 +
  9.3538 +File: yatexj, Node: Usepackage cheker, Next: Changing mode of YaTeX, Prev: Intelligent newline, Up: Top
  9.3539 +
  9.3540 +先回りusepackage
  9.3541 +****************
  9.3542 +
  9.3543 +  begin型、section型、maketitle型、いずれかのLaTeX2eマクロを補完入力すると、
  9.3544 +そのマクロの利用に外部パッケージを必要とする場合、そのパッケージを本文中で 
  9.3545 +`\usepackage{}' しているかどうかを調査し、もししていなければプリアンブルに
  9.3546 +対応するパッケージを引数にした `\usepackage' 文を(確認後に)挿入します。
  9.3547 +
  9.3548 +  ただしこの機能が働くためには、パッケージ名とその中で定義されているマクロ
  9.3549 +群をalistの形式で変数 `YaTeX-package-alist-private' に設定しておく必要があ
  9.3550 +ります。
  9.3551 +
  9.3552 +
  9.3553 +
  9.3554 +File: yatexj, Node: Changing mode of YaTeX, Next: Online help, Prev: Usepackage cheker, Up: Top
  9.3555 +
  9.3556 +野鳥の動作モード切り替え
  9.3557 +************************
  9.3558 +
  9.3559 +`[prefix] w'
  9.3560 +             ... 野鳥動作モード切り替えメニュー
  9.3561 +
  9.3562 +で野鳥自身の動作を決定する以下のモードを切り替えます。
  9.3563 +
  9.3564 +   * 修正モード
  9.3565 +   * 野鳥数式モード
  9.3566 +
  9.3567 +修正モードは、開き括弧入力時の処理をコントロールし、修正モードONの時は開き
  9.3568 +括弧の入力は開き括弧のみの入力になり、修正モードOFFの時は開き括弧の入力だ
  9.3569 +けで閉じ括弧まで入力します。デフォルト(起動時)の設定は*OFF*です。
  9.3570 +
  9.3571 +  野鳥数式モードは、変数 `YaTeX-auto-math-mode' が `nil' の時のみ有効で、
  9.3572 +このとき`;'や`:'を押した時(*Note Image completion::参照)に、どのようなイメー
  9.3573 +ジ補完を機能させるか、通常のキーとして機能させるかを手動で切り替えます。自
  9.3574 +動判定が遅いマシンでは`YaTeX-auto-math-mode' `nil'にセットし、野鳥数式モー
  9.3575 +ドを手動で切り替えると良いでしょう。
  9.3576 +
  9.3577 +
  9.3578 +
  9.3579 +
  9.3580 +File: yatexj, Node: Online help, Next: Inclusion hierarchy browser, Prev: Changing mode of YaTeX, Up: Top
  9.3581 +
  9.3582 +オンラインヘルプ
  9.3583 +****************
  9.3584 +
  9.3585 +  使おうとする LaTeX コマンドの用法がよく分からない時は、オンラインヘルプ
  9.3586 +をひきましょう。ヘルプに関するキーには以下のものがあります。
  9.3587 +
  9.3588 +`[prefix] ?'
  9.3589 +             ... オンラインヘルプ
  9.3590 +`[prefix] /'
  9.3591 +             ... オンラインapropos
  9.3592 +
  9.3593 +
  9.3594 +オンラインヘルプ
  9.3595 +================
  9.3596 +
  9.3597 +  「オンラインヘルプ」は、一般的な LaTeX コマンド(デフォルトでカーソル位置
  9.3598 +のコマンド)に対する説明を隣のバッファに表示します。この時参照されるヘルプ
  9.3599 +用ファイルには「グローバルヘルプ」と「プライベートヘルプ」の二種類があり、
  9.3600 +前者は LaTeX の標準コマンドの主なものの説明を含むファイルで、変数
  9.3601 +`YaTeX-help-file'の値で指定されます。このファイルは通常公共の場所(デフォル
  9.3602 +トで`$EMACSEXECPATH')に置かれ、誰もがその内容を更新できるように全員に書き
  9.3603 +込み権が与えられるべきものです。後者は、非標準もしくは個人的なマクロ定義に
  9.3604 +関する説明が書かれているファイルで、変数`YaTeX-help-file-private'の値で指
  9.3605 +定されます。こちらはユーザのホームディレクトリの下などに置かれます。
  9.3606 +
  9.3607 +
  9.3608 +オンラインapropos
  9.3609 +=================
  9.3610 +
  9.3611 +  「オンラインapropos」は GNU Emacs の apropos と同様、ユーザが指定したキー
  9.3612 +ワードを説明文に含む項目すべてを隣のバッファに表示します。
  9.3613 +
  9.3614 +  もし、調べようとしたLaTeXコマンドに対する説明がヘルプファイル中に見つか
  9.3615 +らなかった場合は、説明文の入力を求めてくるので、可能であれば参考書などを調
  9.3616 +べてそのコマンドの説明を入力してください。もし、なにか標準的なコマンドに対
  9.3617 +する説明を書いたならばぜひ私までその説明をお送り下さい。次回の配布に含めた
  9.3618 +いと思います。
  9.3619 +
  9.3620 +
  9.3621 +
  9.3622 +File: yatexj, Node: Inclusion hierarchy browser, Next: Cooperation with other packages, Prev: Online help, Up: Top
  9.3623 +
  9.3624 +インクルード構造ブラウザ
  9.3625 +************************
  9.3626 +
  9.3627 +複数のファイルに分割しているドキュメントを書いている場合、
  9.3628 +
  9.3629 +`[prefix] d'
  9.3630 +             ... インクルード構造ブラウズ
  9.3631 +
  9.3632 +を押すと、そのドキュメントの親ファイルを聞いて来ます。ここで全てのファイル
  9.3633 +の親となるファイル(デフォルトが示されているので大抵はRETのみ)を入力すると
  9.3634 +インクルードしている全てのファイルを解析し、インクルード状況を視覚的に表示
  9.3635 +します。このバッファでは以下のキー操作が有効です。
  9.3636 +
  9.3637 +`n'
  9.3638 +             ... 次の行に移動し対応するファイルを隣のバッファに表示
  9.3639 +`p'
  9.3640 +             ... 上の行に移動し対応するファイルを隣のバッファに表示
  9.3641 +`N'
  9.3642 +             ... 同じインクルードレベルの次のファイルに移動
  9.3643 +`P'
  9.3644 +             ... 同じインクルードレベルの前のファイルに移動
  9.3645 +`j'
  9.3646 +             ... 次の行に移動
  9.3647 +`k'
  9.3648 +             ... 上の行に移動
  9.3649 +`u'
  9.3650 +             ... 一代親にあたるファイルに移動
  9.3651 +`.'
  9.3652 +             ... カーソル位置のファイルを隣のバッファに表示
  9.3653 +`SPC'
  9.3654 +             ... 隣のバッファの対応ファイルをスクロールアップ
  9.3655 +`DEL, b'
  9.3656 +             ... 隣のバッファの対応ファイルをスクロールダウン
  9.3657 +`<'
  9.3658 +             ... 隣のバッファの対応ファイルの先頭を表示
  9.3659 +`>'
  9.3660 +             ... 隣のバッファの対応ファイルの末尾を表示
  9.3661 +`''
  9.3662 +             ... (`<'や`>'の後で)元の表示位置に戻る
  9.3663 +`RET, g'
  9.3664 +             ... カーソル位置のファイルを隣のバッファでオープン
  9.3665 +`mouse-2'
  9.3666 +             ... RETと同じ(ウィンドウ使用時のみ)
  9.3667 +`o'
  9.3668 +             ... 隣のウィンドウに移動
  9.3669 +`1'
  9.3670 +             ... 他のウィンドウを消す
  9.3671 +`-'
  9.3672 +             ... ブラウズウィンドウを小さくする
  9.3673 +`+'
  9.3674 +             ... ブラウズウィンドウを大きくする
  9.3675 +`?'
  9.3676 +             ... ヘルプ表示
  9.3677 +`q'
  9.3678 +             ... 表示前の状態に戻る
  9.3679 +
  9.3680 +  ただし、隣のウィンドウのファイルの内容を表示する機能に関しては、対応する
  9.3681 +ファイルをクローズしてしまうとうまく働きませんのでご注意ください。
  9.3682 +
  9.3683 +
  9.3684 +
  9.3685 +File: yatexj, Node: Cooperation with other packages, Next: Customizations, Prev: Inclusion hierarchy browser, Up: Top
  9.3686 +
  9.3687 +他パッケージとの連携
  9.3688 +********************
  9.3689 +
  9.3690 +
  9.3691 +gmhist
  9.3692 +======
  9.3693 +
  9.3694 +  `gmhist.el'と`gmhist-mh.el' をロードしている場合、プレヴューコマンドの入
  9.3695 +力(`[prefix] tp]')、印刷コマンドの入力(`[prefix] tl')の時に独立したヒスト
  9.3696 +リを利用できます。それぞれのプロンプトで、`M-p' を押すと直前に利用したコマ
  9.3697 +ンド文字列をくり返し呼び出すことができます。
  9.3698 +
  9.3699 +
  9.3700 +min-out
  9.3701 +=======
  9.3702 +
  9.3703 +  `min-out.el' (`outline-minor-mode') と野鳥を組み合わせて使うことももちろ
  9.3704 +ん可能です。設定の方法に関しては`yatexm-o.el'をご覧ください。
  9.3705 +
  9.3706 +
  9.3707 +
  9.3708 +File: yatexj, Node: Customizations, Next: Etc, Prev: Cooperation with other packages, Up: Top
  9.3709 +
  9.3710 +カスタマイズ
  9.3711 +************
  9.3712 +
  9.3713 +  野鳥の動作を制御する種々の変数を独自に設定することにより、補完入力を起動
  9.3714 +するキーアサインを変えたり、環境名の補完候補をさらに充実させることなどがで
  9.3715 +きます。
  9.3716 +
  9.3717 +* Menu:
  9.3718 +
  9.3719 +* Lisp variables::              lisp 変数
  9.3720 +* Add-in functions::            付加関数(アドイン関数)
  9.3721 +
  9.3722 +
  9.3723 +
  9.3724 +File: yatexj, Node: Lisp variables, Next: Add-in functions, Prev: Customizations, Up: Customizations
  9.3725 +
  9.3726 +lisp 変数
  9.3727 +=========
  9.3728 +
  9.3729 +  例えば prefix キーを `C-c' 以外のキーにしたい場合は、`YaTeX-prefix'に 
  9.3730 +prefix キーにしたいシンボルを定義してください。さらに、「`C-c 英字'」とい
  9.3731 +うキーバインドは独自の関数が割り当ててあるので使いたくない。このような時は、
  9.3732 +`YaTeX-inhibit-prefix-letter' を `t' に設定することにより、`C-c 英字…'の
  9.3733 +バインドが全て、対応する`C-c C-英字…'に変わります(ただし、begin型 large型
  9.3734 +補完の大文字起動によるリジョン指定は可能なままです。これも無効にしたい場合
  9.3735 +は`t'ではなく 1 にセットして下さい。)。
  9.3736 +
  9.3737 +* Menu:
  9.3738 +
  9.3739 +* All customizable variables::  カスタマイズ変数一覧
  9.3740 +* Sample definitions::          カスタマイズ変数設定例
  9.3741 +* Hook variables::              hook変数
  9.3742 +* Hook file::                   hook用ファイル
  9.3743 +
  9.3744 +
  9.3745 +
  9.3746 +File: yatexj, Node: All customizable variables, Next: Sample definitions, Prev: Lisp variables, Up: Lisp variables
  9.3747 +
  9.3748 +カスタマイズ変数一覧
  9.3749 +--------------------
  9.3750 +
  9.3751 +  yatex-mode における次の変数がカスタマイズ可能です。`~/.emacs' で `setq' 
  9.3752 +しておけば、そちらの定義が優先されます。括弧の中はデフォルト値です。実際に
  9.3753 +変数の値を変更する場合は `M-x describe-variable' で変数の詳細な説明を参照
  9.3754 +してください。
  9.3755 +
  9.3756 + -- Variable: YaTeX-prefix
  9.3757 +     yatex-mode 中のプリフィクスキー (`\C-c')
  9.3758 +
  9.3759 + -- Variable: YaTeX-inhibit-prefix-letter
  9.3760 +     prefix キーの直後のキーバインドで `英字' のものを `C-英字' に変更 
  9.3761 +     (`nil')
  9.3762 +
  9.3763 + -- Variable: YaTeX-fill-prefix
  9.3764 +     本文を書く時の行頭に挿入する接頭辞すなわち fill-prefix (`""(nil)')
  9.3765 +
  9.3766 + -- Variable: YaTeX-user-completion-table
  9.3767 +     学習したLaTeXコマンド保存ファイル名 (`"~/.yatexrc"')
  9.3768 +
  9.3769 + -- Variable: YaTeX-kanji-code
  9.3770 +     文書を作成する時の漢字コードnil=既存のコードのまま 0=no-conversion
  9.3771 +     1=Shift JIS, 2=JIS, 3=EUC, 4=UTF-8 (2 (MS-DOSでは1))
  9.3772 +
  9.3773 + -- Variable: tex-command
  9.3774 +     LaTeXタイプセッタコマンド名 (`"platex"')
  9.3775 +
  9.3776 +
  9.3777 + -- Variable: dvi2-command
  9.3778 +     プレヴューアコマンド名 (`"xdvi -geo +0+0 -s 4"')
  9.3779 +
  9.3780 + -- Variable: dviprint-command-format
  9.3781 +     dviファイルの印刷に使われるコマンド式 (`"dvi2ps %f %t %s | lpr"')
  9.3782 +
  9.3783 + -- Variable: dviprint-from-format
  9.3784 +     上の`%f'に相当する開始ページ指定書式、`%b' が開始ページ番号に変わる 
  9.3785 +     (`"-f %b"')
  9.3786 +
  9.3787 + -- Variable: dviprint-to-format
  9.3788 +     `%t' に相当する終了ページ指定書式、`%e'が終了ページ番号に変わる (`"-t
  9.3789 +     %e"')
  9.3790 +
  9.3791 + -- Variable: makeindex-command
  9.3792 +     makeindexコマンド (`"makeindex"' (MS-DOSでは`"makeind"'))
  9.3793 +
  9.3794 + -- Variable: YaTeX-dvipdf-command
  9.3795 +     dviをPDFに変換するコマンド (`"dvipdfmx"')
  9.3796 +
  9.3797 + -- Variable: YaTeX-need-nonstop
  9.3798 +     `\nonstopmode{}'を自動的に付加するか (`nil')
  9.3799 +
  9.3800 + -- Variable: latex-warning-regexp
  9.3801 +     latexコマンドの出力するウォーニング行の正規表現 (`"line.* [0-9]*"')
  9.3802 +
  9.3803 + -- Variable: latex-error-regexp
  9.3804 +     同じくエラー行の正規表現 (`"l\\.[1-9][0-9]*"')
  9.3805 +
  9.3806 + -- Variable: latex-dos-emergency-message
  9.3807 +     MS-DOS上で動作する latex コマンドが、エラーにより停止するとき出力する
  9.3808 +     メッセージ (`"Emergency stop"')
  9.3809 +
  9.3810 + -- Variable: latex-message-kanji-code
  9.3811 +     タイプセッタの出力するメッセージの漢字コード.タイプセットバッファの出
  9.3812 +     力が化ける時は、これを設定する (2, Nemacsでのみ有効)
  9.3813 +
  9.3814 + -- Variable: NTT-jTeX
  9.3815 +     古いNTT-jTeX使用時のようにインデントした行の先頭と前の行の(タイプセッ
  9.3816 +     ト後の)字間が空いてしまうのを嫌う場合は`t'にする(`nil')
  9.3817 +
  9.3818 + -- Variable: YaTeX-item-regexp
  9.3819 +     itemの桁揃えの時に用いる、itemの正規表現 (`"\\\\(sub\\)*item"')
  9.3820 +
  9.3821 + -- Variable: YaTeX-verb-regexp
  9.3822 +     verbコマンドの正規表現。先頭の\\\\はつけない (`"verb\\*?\\|path"')
  9.3823 +
  9.3824 + -- Variable: YaTeX-nervous
  9.3825 +     ローカル辞書を用いる時 `t' (`t')
  9.3826 +
  9.3827 + -- Variable: YaTeX-sectioning-regexp
  9.3828 +     セクション区切り設定コマンドの正規表現 
  9.3829 +     (`"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"')
  9.3830 +
  9.3831 + -- Variable: YaTeX-fill-inhibit-environments
  9.3832 +     fill を抑止する環境名のリスト (`'("tabular" "tabular*" "array"
  9.3833 +     "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath"
  9.3834 +     "verbatim" "verbatim*")')
  9.3835 +
  9.3836 + -- Variable: YaTeX-uncomment-once
  9.3837 +     領域uncommentで行頭の複数の`%'を全て削除するか (`nil')
  9.3838 +
  9.3839 + -- Variable: YaTeX-close-paren-always
  9.3840 +     開き括弧の入力で常に閉じ括弧を入力する (`t')
  9.3841 +
  9.3842 + -- Variable: YaTeX-auto-math-mode
  9.3843 +     数式モードの切り替えを自動的に行う (`t')
  9.3844 +
  9.3845 + -- Variable: YaTeX-math-key-list-private
  9.3846 +     数式イメージ補完で用いる (プリフィクスキー . 対応補完テーブル) の
  9.3847 +     alist (`nil')。補完テーブルの書き方については`yatexmth.el'を参照。
  9.3848 +
  9.3849 + -- Variable: YaTeX-default-pop-window-height
  9.3850 +     1画面の時にタイプセットバッファを初めて作成する時の高さ。数値で行数、
  9.3851 +     数字文字列でEmacsウィンドウに対する百分率 (10)
  9.3852 +
  9.3853 + -- Variable: YaTeX-help-file
  9.3854 +     共用ヘルプファイル (`$doc-directory/../../site-lisp/YATEXHLP.jp')
  9.3855 +
  9.3856 + -- Variable: YaTeX-help-file-private
  9.3857 +     個人用ヘルプファイル (`"~/YATEXHLP.jp"')
  9.3858 +
  9.3859 + -- Variable: YaTeX-no-begend-shortcut
  9.3860 +     `[prefix] b ??' のショートカットを使わず、`[prefix] b' だけで補完入力
  9.3861 +     に入る (`nil')
  9.3862 +
  9.3863 + -- Variable: YaTeX-hilit-pattern-adjustment-private
  9.3864 +     正規表現とそれにマッチするものの論理的意味をシンボルであらわしたもの
  9.3865 +     のリスト…のリスト。hilit19 を組み込んでいる時のみ有効。詳しくは 
  9.3866 +     `(assq 'yatex-mode hilit-patterns-alist)' した結果と、変数 
  9.3867 +     `YaTeX-hilit-pattern-adjustment-default' の値(と場合によっては 
  9.3868 +     hilit19 のドキュメント)を参照せよ。
  9.3869 +
  9.3870 + -- Variable: YaTeX-sectioning-level
  9.3871 +     LaTeXのセクション単位宣言コマンドとその論理的高さのalist。
  9.3872 +
  9.3873 + -- Variable: YaTeX-hierarchy-ignore-heading-regexp
  9.3874 +     Hierarchy バッファは通常ファイルヘッダとして、LaTeXのセクション宣言コ
  9.3875 +     マンドの引数を検索し、それがなければコメント行を探すが、その際にヘッ
  9.3876 +     ダとしては意味を持たないパターンをこの変数に設定する。デフォルトでは 
  9.3877 +     RCS ヘッダとモード指定行(-*- xxx -*-)が設定されている。
  9.3878 +
  9.3879 + -- Variable: YaTeX-skip-default-reader
  9.3880 +     Non-nil に設定するとsection型コマンドの引数入力時、アドイン関数がなけ
  9.3881 +     ればミニバッファでの読み込みをせずに入力を完了させる (`nil')
  9.3882 +
  9.3883 + -- Variable: YaTeX-create-file-prefix-g
  9.3884 +     `\include'などで `prefix g'した時に、ジャンプ先が存在しないファイルで
  9.3885 +     あってもオープンする (`nil')
  9.3886 +
  9.3887 + -- Variable: YaTeX-simple-messages
  9.3888 +     各種補完時のメッセージ出力を簡素化する (`nil')
  9.3889 +
  9.3890 + -- Variable: YaTeX-hilit-sectioning-face
  9.3891 +     色付けが有効な時の `\part' の色 (`'(yellow/dodgerblue
  9.3892 +     yellow/slateblue)')。リストの第一要素は `hilit-background-mode' が 
  9.3893 +     `'light' の時の、第二要素は `'dark' の時の `\chapter' の色で、文字色/
  9.3894 +     背景色 のように指定する。
  9.3895 +
  9.3896 + -- Variable: YaTeX-hilit-sectioning-attenuation-rate
  9.3897 +     色付けが有効な時の、`\subparagraph' の色を `\chapter' の濃度の何%薄く
  9.3898 +     したものにするか (`'(15 40)') `YaTeX-hilit-sectioning-face' の項参照。
  9.3899 +
  9.3900 + -- Variable: YaTeX-use-AMS-LaTeX
  9.3901 +     AMS-LaTeX を使用する場合は `t' に設定する (`nil')
  9.3902 +
  9.3903 + -- Variable: YaTeX-use-LaTeX2e
  9.3904 +     LaTeX2e を使用する場合は `t' に設定する (`t')
  9.3905 +
  9.3906 + -- Variable: YaTeX-template-file
  9.3907 +     新規ファイル作成時に自動挿入するファイル名 (`~/work/template.tex')
  9.3908 +
  9.3909 + -- Variable: YaTeX-search-file-from-top-directory
  9.3910 +     inputするファイルを探すときの基準ディレクトリをmainファイルのあるディ
  9.3911 +     レクトリにするか (`t')
  9.3912 + -- Variable: YaTeX-use-font-lock
  9.3913 +     ソースの色づけパッケージとして font-lock を利用するかどうか
  9.3914 +     (`(featurep 'font-lock)')
  9.3915 +
  9.3916 + -- Variable: YaTeX-use-hilit19
  9.3917 +     ソースの色づけパッケージとして hilit19 を利用するかどうか(`(featurep
  9.3918 +     'hilit19)')
  9.3919 +
  9.3920 + -- Variable: YaTeX-use-italic-bold
  9.3921 +     italic, boldフォントを野鳥が探すかどうか (Emacs20以降なら`t')
  9.3922 +     font-lock利用時のみ有効。(`(featurep 'hilit19)'
  9.3923 +
  9.3924 + -- Variable: YaTeX-singlecmd-suffix
  9.3925 +     全てのmaketitle型コマンドの補完入力直後に挿入する文字列。`"{}"' など
  9.3926 +     がお勧め。
  9.3927 +
  9.3928 + -- Variable: YaTeX-package-alist-private
  9.3929 +     LaTeX2eのパッケージ名とその中に含まれるマクロのリスト。適切に設定して
  9.3930 +     おくと本文入力時にマクロを補完入力するとそのマクロに必要なパッケージ
  9.3931 +     を usepackage するか自動的に検査してくれる。していなければ 
  9.3932 +     \usepackage を自動追加することもできる。リストは'((パッケージ名1 (補
  9.3933 +     完タイプ マクロのリスト……) (補完タイプ マクロのリスト……)) (パッケー
  9.3934 +     ジ名2 (補完タイプ マクロのリスト……) (補完タイプ マクロのリス
  9.3935 +     ト……))………) という形式にする。補完タイプは `env, section,
  9.3936 +     maketitle' のどれか。具体例は変数 `YaTeX-package-alist-default' の値
  9.3937 +     参照。
  9.3938 +
  9.3939 + -- Variable: YaTeX-tabular-indentation
  9.3940 +     tabular/array 環境で現在行の先頭位置が表の第Nカラムのときは標準インデ
  9.3941 +     ント位置から N*YaTeX-tabular-indentation 桁下げたインデントにする。
  9.3942 +
  9.3943 + -- Variable: YaTeX-noindent-env-regexp
  9.3944 +     別の環境内にあっても \begin{} が行頭から始まるべき環境名の正規表現。
  9.3945 +     verbatim環境などを指定する。
  9.3946 +
  9.3947 + -- Variable: YaTeX-ref-default-label-string
  9.3948 +     \ref{} のラベル補完でラベル未設定のものに自動的に生成するラベル名の書
  9.3949 +     式。strftime(3)関数に似た日付ベースで指定する。利用できる書式は以下の
  9.3950 +     とおり。%y -> 西暦下二桁, %b -> 月の英名, %m -> 月(1〜12) %d -> 日,
  9.3951 +     %H -> 時, %M -> 分, %S -> 秒, %qx -> アルファベットで26進数化した 
  9.3952 +     yymmdd.  %qX -> アルファベットで26進数化した HHMMSS.  デフォルトは 
  9.3953 +     "%H%M%S_%d%b%y"
  9.3954 +
  9.3955 + -- Variable: YaTeX-ref-generate-label-function
  9.3956 +     \ref{}のラベル名自動生成のときに使う関数のシンボル。デフォルトは標準
  9.3957 +     の YaTeX::ref-generate-label 関数が割り当ててある。引数を2つ取る関数
  9.3958 +     を定義して、この変数にセットするとその関数を呼んだ結果をデフォルトの
  9.3959 +     ラベル名候補とする。設定例:
  9.3960 +            (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label)
  9.3961 +            (defun my-yatex-generate-label (command value)
  9.3962 +              (and (string= command "caption")
  9.3963 +                   (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t)
  9.3964 +                   (setq command (match-string 1)))
  9.3965 +              (let ((alist '(("chapter" . "chap")
  9.3966 +                             ("section" . "sec")
  9.3967 +                             ("subsection" . "subsec")
  9.3968 +                             ("figure" . "fig")
  9.3969 +                             ("table" . "tbl"))))
  9.3970 +                (if (setq command (cdr (assoc command alist)))
  9.3971 +                    (concat command ":" value)
  9.3972 +                  (YaTeX::ref-generate-label nil nil))))
  9.3973 +
  9.3974 +
  9.3975 +
  9.3976 +File: yatexj, Node: Sample definitions, Next: Hook variables, Prev: All customizable variables, Up: Lisp variables
  9.3977 +
  9.3978 +カスタマイズ変数設定例
  9.3979 +----------------------
  9.3980 +
  9.3981 +  たとえば、prefix キーとして`ESC'を使用し、新たな補完候補を格納するファイ
  9.3982 +ルを、`~/src/emacs/yatexrc' にし、行頭の prefix をタブ文字一つに変えたいと
  9.3983 +きは、
  9.3984 +
  9.3985 +             (setq YaTeX-prefix "\e"
  9.3986 +                   YaTeX-user-completion-table "~/src/emacs/yatexrc"
  9.3987 +                   YaTeX-fill-prefix "       ")
  9.3988 +
  9.3989 +を `~/.emacs' に加えます。
  9.3990 +
  9.3991 +
  9.3992 +
  9.3993 +File: yatexj, Node: Hook variables, Next: Hook file, Prev: Sample definitions, Up: Lisp variables
  9.3994 +
  9.3995 +hook変数
  9.3996 +--------
  9.3997 +
  9.3998 +  また、hook 変数 `yatex-mode-hook', `yatex-mode-load-hook' を用意していま
  9.3999 +す。すべての yatex-mode のバッファで作用させたいものは、`yatex-mode-hook' 
  9.4000 +に記述し、`yatex.el' をロードする時だけ作用させたいものは
  9.4001 +`yatex-mode-load-hook' に記述します。例えば、`outline-minor-mode' を利用す
  9.4002 +る場合、それぞれのバッファで `outline-minor-mode' を有効にしたいので、
  9.4003 +`yatex-mode-hook' を次のように設定します。
  9.4004 +
  9.4005 +             (setq yatex-mode-hook
  9.4006 +                   '(lambda () (outline-minor-mode t)))
  9.4007 +
  9.4008 +
  9.4009 +逆に、独自のキー定義を行いたい時などは、`yatex-mode-load-hook' を利用しま
  9.4010 +す。例えば、begin 型補完において、 document や、enumerate 以外の環境名も
  9.4011 +ショートカットキーで入れたいなどという時は、次のようにします。以下の例は、
  9.4012 +`[prefix] ba' で `\begin{abstract}', `\end{abstract}' を挿入します。
  9.4013 +
  9.4014 +             (setq yatex-mode-load-hook
  9.4015 +                   '(lambda() (YaTeX-define-begend-key "ba" "abstract")))
  9.4016 +
  9.4017 +なお、新たなキーの定義には、関数 `YaTeX-define-key'
  9.4018 +`YaTeX-define-begend-key'を利用するようにしてください。
  9.4019 +
  9.4020 +
  9.4021 +
  9.4022 +File: yatexj, Node: Hook file, Prev: Hook variables, Up: Lisp variables
  9.4023 +
  9.4024 +hook用ファイル
  9.4025 +--------------
  9.4026 +
  9.4027 +  変数 `yatex-mode-load-hook' で定義する内容が多い時は、`yatexhks.el'とい
  9.4028 +うファイルを作り、その中に野鳥関連の設定を書く事で、初期化の時に自動的にロー
  9.4029 +ドします。
  9.4030 +
  9.4031 +
  9.4032 +
  9.4033 +
  9.4034 +File: yatexj, Node: Add-in functions, Prev: Lisp variables, Up: Customizations
  9.4035 +
  9.4036 +付加関数(アドイン関数)
  9.4037 +======================
  9.4038 +
  9.4039 +  各種補完時に、環境名やコマンド名に応じたきめ細やかな補完入力機能を実現す
  9.4040 +るための関数を作成することができます。この関数の作成方法や、組み込み方法に
  9.4041 +関しては、`yatexadd.doc' をご覧ください。
  9.4042 +
  9.4043 +
  9.4044 +
  9.4045 +File: yatexj, Node: Etc, Next: Copying, Prev: Customizations, Up: Top
  9.4046 +
  9.4047 +その他
  9.4048 +******
  9.4049 +
  9.4050 +  野鳥の標準の LaTeX コマンドの辞書には、作者が頻繁に使うものしか登録され
  9.4051 +ていません。これは、補完候補に使いそうもないコマンドが存在して、補完したい
  9.4052 +コマンドを出すまでのストローク数を増やしてしまう事を防止するためです。標準
  9.4053 +辞書にないコマンドも、できるだけ補完入力方式を利用し、ユーザ辞書を充実させ
  9.4054 +ることで、あなたの LaTeX スタイルにあった野鳥へと育っていくことでしょう。
  9.4055 +
  9.4056 +
  9.4057 +
  9.4058 +File: yatexj, Node: Copying, Next: Concept Index, Prev: Etc, Up: Top
  9.4059 +
  9.4060 +取り扱い
  9.4061 +********
  9.4062 +
  9.4063 +  本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな
  9.4064 +る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた
  9.4065 +しません。常識的に扱ってください。また、本プログラムに含まれるコードを利用
  9.4066 +すること、改造することも自由に行なって構いませんが、流用することにより契約
  9.4067 +締結の必要が生じる場合、私はいかなる契約も締結しません。具体的にはGPLへの
  9.4068 +サインはしませんので、GNUに寄贈するものを作っている場合私の作品から取り込
  9.4069 +んだコードを流用すると苦労するかもしれません。いかなるコード流用も拒否しま
  9.4070 +せんが契約締結は辞退します。
  9.4071 +
  9.4072 +  苦情、希望、バグ報告、感想等は歓迎いたします。連絡は yuuji@yatex.org ま
  9.4073 +で(2004年1月現在)。継続的に使用してくださる方はメイリングリスト「fj野鳥の
  9.4074 +会」に是非加入してください。加入方法については本パッケージの `docs/qanda' 
  9.4075 +ファイルの「その他」の章を御覧ください。
  9.4076 +
  9.4077 +仕様は、予告なく確実に(気分次第で)変更されます:-p。
  9.4078 +
  9.4079 +                                                                  広瀬雄二
  9.4080 +
  9.4081 +
  9.4082 +
  9.4083 +File: yatexj, Node: Concept Index, Prev: Copying, Up: Top
  9.4084 +
  9.4085 +索引
  9.4086 +****
  9.4087 +
  9.4088 +* Menu:
  9.4089 +
  9.4090 +* ::                            Greek letter completion.  4.
  9.4091 +* ;:                            Image completion.       4.
  9.4092 +* Σ[しくま]:                   Image completion.       4.
  9.4093 +* 括る[くくる]:                 Enclose section-type command.  4.
  9.4094 +* 括る[くくる]:                 large型補完.            22.
  9.4095 +* 引数[ひきすう]:               2個以上の引数をとる section型コマンド.  4.
  9.4096 +* 欧文[おうふん]:               Accent mark completion.  4.
  9.4097 +* ;自身[;ししん]:               Image completion.       32.
  9.4098 +* ∞[むけんたい]:               Image completion.       4.
  9.4099 +* 矢印[やしるし]:               Image completion.       4.
  9.4100 +* ブロック[ふろつく]:           begin型補完.            81.
  9.4101 +* ヒストリ[ひすとり]:           Cooperation with other packages.  8.
  9.4102 +* 桁揃え[けたそろえ]:           Filling.                4.
  9.4103 +* やちょう[やちよう]:           Intro.                  4.
  9.4104 +* ジャンプ[しやんふ]:           view-sectioning.        42.
  9.4105 +* &入力[&にゆうりよく]:         Intelligent newline.    4.
  9.4106 +* 設定例[せつていれい]:         Sample definitions.     4.
  9.4107 +* 随時補完[すいしほかん]:       Arbitrary completion.   4.
  9.4108 +* 閉じ込める[としこめる]:       begin型補完.            81.
  9.4109 +* 再帰補完[さいきほかん]:       Recursive completion.   4.
  9.4110 +* ユーザ辞書[ゆうさししよ]:     begin型補完.            71.
  9.4111 +* 論理階層[ろんりかいそう]:     view-sectioning.        42.
  9.4112 +* ここはどこ?[ここはとこ?]:     What column.            4.
  9.4113 +* お絵描きツール起動[おえかきつうるきとう]: お絵描きツール起動.  4.
  9.4114 +* 環境の先頭へ[かんきようのせんとうへ]: 環境を単位としたジャンプ.  7.
  9.4115 +* 環境の末尾へ[かんきようのまつひへ]: 環境を単位としたジャンプ.  7.
  9.4116 +* 環境をマーク[かんきようをまあく]: 環境を単位としたジャンプ.  7.
  9.4117 +* カスタマイズ[かすたまいす]:   Customizations.         4.
  9.4118 +* キーアサイン[きいあさいん]:   Customizations.         4.
  9.4119 +* 数式モード[すうしきもおと]:   Image completion.       4.
  9.4120 +* インストール[いんすとおる]:   Installation.           4.
  9.4121 +* タイプセッタ[たいふせつた]:   Invocation.             4.
  9.4122 +* プレヴューア[ふれひゆうあ]:   Invocation.             4.
  9.4123 +* アウトライン[あうとらいん]:   view-sectioning.        4.
  9.4124 +* 引数の個数を変える[ひきすうのこすうをかえる]: 2個以上の引数をとる section型コマンド.  24.
  9.4125 +* アクセント記号補完[あくせんときこうほかん]: Accent mark completion.  4.
  9.4126 +* カスタマイズ変数一覧[かすたまいすへんすういちらん]: All customizable variables.  4.
  9.4127 +* 環境名の補完[かんきようめいのほかん]: begin型補完.    4.
  9.4128 +* エラー修正[えらあしゆうせい]: Calling typesetter.     4.
  9.4129 +* タイプセッタ起動[たいふせつたきとう]: Calling typesetter.  4.
  9.4130 +* タイプセットエラー[たいふせつとえらあ]: Calling typesetter.  4.
  9.4131 +* 環境名の変更[かんきようめいのへんこう]: Changing LaTeX command.  20.
  9.4132 +* モード切り替え[もうときりかえ]: Changing mode of YaTeX.  4.
  9.4133 +* タイプセッタの使い分け[たいふせつたのつかいわけ]: Changing typesetter.  12.
  9.4134 +* 起動するコマンドを変える[きとうするこまんとをかえる]: Changing typesetter.  7.
  9.4135 +* コメントアウト[こめんとあうと]: Commenting out.       4.
  9.4136 +* その他のコマンド制御[そのたのこまんとせいきよ]: Controlling which command to invoke.  4.
  9.4137 +* 他パッケージとの連携[たはつけえしとのれんけい]: Cooperation with other packages.  4.
  9.4138 +* コマンドヒストリ[こまんとひすとり]: Cooperation with other packages.  8.
  9.4139 +* カーソルジャンプ[かあそるしやんふ]: Cursor jump.      4.
  9.4140 +* %#記法自体の編集[%#きほうしたいのへんしゆう]: Editing %# notation.  4.
  9.4141 +* パラグラフの桁揃え[はらくらふのけたそろえ]: Filling.  47.
  9.4142 +* 領域決定規則[りよういきけつていきそく]: Fix region for typesetting.  25.
  9.4143 +* 長いファイルの編集[なかいふあいるのへんしゆう]: Fix region for typesetting.  34.
  9.4144 +* 固定領域のタイプセット[こていりよういきのたいふせつと]: Fix region for typesetting.  4.
  9.4145 +* ギリシャ文字補完[きりしやもしほかん]: Greek letter completion.  4.
  9.4146 +* イメージ補完[いめえしほかん]: Image completion.       4.
  9.4147 +* 数式記号イメージ補完[すうしききこういめえしほかん]: Image completion.  4.
  9.4148 +* 他のファイルの手直し[ほかのふあいるのてなおし]: Includeonly.  11.
  9.4149 +* インクルード構造[いんくるうとこうそう]: Inclusion hierarchy browser.  4.
  9.4150 +* おまかせ改行[おまかせかいきよう]: Intelligent newline.  4.
  9.4151 +* プリントアウト[ふりんとあうと]: Invocation.           4.
  9.4152 +* 環境の削除[かんきようのさくしよ]: Killing LaTeX command.  6.
  9.4153 +* ラベル自動生成[らへるしとうせいせい]: label-generation.  4.
  9.4154 +* フォント指定子[ふおんとしていし]: large型補完.        18.
  9.4155 +* 文字サイズ指定子[もしさいすしていし]: large型補完.    18.
  9.4156 +* ローカル辞書[ろおかるししよ]: Local dictionary.       4.
  9.4157 +* 変更/削除[へんこう/さくしよ]: Modifying/Deleting.     4.
  9.4158 +* グローバルヘルプ[くろおはるへるふ]: Online help.      16.
  9.4159 +* オンラインヘルプ[おんらいんへるふ]: Online help.      4.
  9.4160 +* キーワード検索[きいわあとけんさく]: Online help.      4.
  9.4161 +* プライベートヘルプ[ふらいへえとへるふ]: Online help.  16.
  9.4162 +* 入力ファイル分割[にゆうりよくふあいるふんかつ]: Splitting input files.  11.
  9.4163 +* セクション区切り一覧バッファ[せくしよんくきりいちらんはつふあ]: view-sectioning.  18.
  9.4164 +* セクション区切り[せくしよんくきり]: view-sectioning.  42.
  9.4165 +* 現在のカラム表示[けんさいのからむひようし]: What column.  23.
  9.4166 +* apropos:                      Online help.            4.
  9.4167 +* autoload:                     Installation.           4.
  9.4168 +* auto-mode-alist:              Installation.           4.
  9.4169 +* %#BEGIN:                      Fix region for typesetting.  4.
  9.4170 +* begin型補完[beginかたほかん]: begin型補完.            4.
  9.4171 +* C-c:                          Invocation.             4.
  9.4172 +* Demacs:                       Intro.                  4.
  9.4173 +* .emacs:                       Installation.           4.
  9.4174 +* %#END:                        Fix region for typesetting.  4.
  9.4175 +* end補完[endほかん]:           end補完.                4.
  9.4176 +* ghostview:                    Splitting input files.  16.
  9.4177 +* gmhist:                       Cooperation with other packages.  8.
  9.4178 +* hook変数[hookへんすう]:       Hook variables.         4.
  9.4179 +* 出力終了ページ[しゆつりよくしゆうりようへえし]: Print out.  9.
  9.4180 +* includeonly:                  Includeonly.            4.
  9.4181 +* Install:                      Installation.           4.
  9.4182 +* itemなどの桁揃え[itemなとのけたそろえ]: Filling.      8.
  9.4183 +* 出力開始ページ[しゆつりよくかいしへえし]: Print out.  9.
  9.4184 +* jlatex:                       Invocation.             4.
  9.4185 +* large型補完[largeかたほかん]: large型補完.            4.
  9.4186 +* LaTeX:                        Intro.                  4.
  9.4187 +* leftarrow:                    Image completion.       4.
  9.4188 +* lpr format:                   lpr format.             4.
  9.4189 +* lprフォーマットの変更[lprふおおまつとのへんこう]: Editing %# notation.  18.
  9.4190 +* lprふぉーまっと[lprふおおまつと]: lpr format.         4.
  9.4191 +* lprフォーマット[lprふおおまつと]: lpr format.         4.
  9.4192 +* maketitle型補完[maketitleかたほかん]: maketitle型補完.  4.
  9.4193 +* M-C-@:                        環境を単位としたジャンプ.  7.
  9.4194 +* M-C-a:                        環境を単位としたジャンプ.  7.
  9.4195 +* M-C-e:                        環境を単位としたジャンプ.  7.
  9.4196 +* min-out:                      Cooperation with other packages.  17.
  9.4197 +* M-q:                          Filling.                47.
  9.4198 +* Mule:                         Intro.                  4.
  9.4199 +* 勝手にincludeonly[かつてにincludeonly]: Includeonly.  4.
  9.4200 +* NTT-jTeX[えぬていいていいしえいてつく]: Filling.      15.
  9.4201 +* platex:                       Invocation.             4.
  9.4202 +* prefix ,:                     Commenting out.         4.
  9.4203 +* prefix .:                     Commenting out.         4.
  9.4204 +* prefix <:                     Commenting out.         4.
  9.4205 +* prefix >:                     Commenting out.         4.
  9.4206 +* prefix /:                     Online help.            4.
  9.4207 +* prefix ?:                     Online help.            4.
  9.4208 +* prefix &:                     What column.            4.
  9.4209 +* prefix a:                     Accent mark completion.  4.
  9.4210 +* prefix b:                     begin型補完.            4.
  9.4211 +* prefix c:                     Modifying/Deleting.     4.
  9.4212 +* prefix d:                     Inclusion hierarchy browser.  4.
  9.4213 +* prefix e:                     end補完.                4.
  9.4214 +* prefix g:                     Cursor jump.            4.
  9.4215 +* prefix i:                     Filling.                8.
  9.4216 +* prefix k:                     Modifying/Deleting.     4.
  9.4217 +* prefix key:                   Invocation.             4.
  9.4218 +* prefix l:                     large型補完.            4.
  9.4219 +* prefix m:                     maketitle型補完.        4.
  9.4220 +* prefix s:                     section型補完.          4.
  9.4221 +* prefix SPC:                   Arbitrary completion.   4.
  9.4222 +* prefix w:                     Changing mode of YaTeX.  4.
  9.4223 +* prefixキー変更[prefixきいへんこう]: Lisp variables.   4.
  9.4224 +* ページ確認省略lpr起動[へえしかくにんしようりやくlprきとう]: Print out.  12.
  9.4225 +* section型補完[sectionかたほかん]: section型補完.      4.
  9.4226 +* 複雑なtabular[ふくさつなtabular]: What column.        4.
  9.4227 +* 先回りusepackage[さきまわり]: Usepackage cheker.      4.
  9.4228 +* YaTeX-help-file:              Online help.            16.
  9.4229 +* YaTeX-help-file-private:      Online help.            16.
  9.4230 +* YaTeX-item-regexp:            Filling.                20.
  9.4231 +* YaTeX-math-sign-alist-private: Image completion.      57.
  9.4232 +* yatex-mode-hook:              Hook variables.         4.
  9.4233 +* yatex-mode-load-hook:         Hook variables.         4.
  9.4234 +* YaTeX-nervous:                Local dictionary.       22.
  9.4235 +* .yatexrc:                     Local dictionary.       4.
  9.4236 +
  9.4237 +
  9.4238 +
  9.4239 +
  9.4240 +Tag table:
  9.4241 +Node: Top257
  9.4242 +Node: Intro1311
  9.4243 +Node: Terminology1614
  9.4244 +Node: Main features2249
  9.4245 +Node: Installation3282
  9.4246 +Node: Invocation4500
  9.4247 +Node: Calling typesetter5319
  9.4248 +Node: Calling previewer6556
  9.4249 +Node: Print out6872
  9.4250 +Node: %#notation7138
  9.4251 +Node: Changing typesetter7566
  9.4252 +Node: Splitting input files7824
  9.4253 +Node: Fix region for typesetting8776
  9.4254 +Node: lpr format9677
  9.4255 +Node: Controlling which command to invoke10486
  9.4256 +Node: Editing %# notation10887
  9.4257 +Node: Completion11344
  9.4258 +Node: begin型補完11817
  9.4259 +Node: section型補完14401
  9.4260 +Node: 2個以上の引数をとる section型コマンド15496
  9.4261 +Node: Enclose section-type command16314
  9.4262 +Node: Recursive completion16551
  9.4263 +Node: view-sectioning16857
  9.4264 +Node: label-generation18053
  9.4265 +Node: large型補完18402
  9.4266 +Node: maketitle型補完18982
  9.4267 +Node: Arbitrary completion19281
  9.4268 +Node: end補完19594
  9.4269 +Node: Accent mark completion19936
  9.4270 +Node: Image completion20361
  9.4271 +Node: Greek letter completion22178
  9.4272 +Node: Local dictionary22638
  9.4273 +Node: Commenting out23243
  9.4274 +Node: Cursor jump24402
  9.4275 +Node: 対応オブジェクトへのジャンプ24639
  9.4276 +Node: お絵描きツール起動25627
  9.4277 +Node: メインファイルへのジャンプ26547
  9.4278 +Node: 環境を単位としたジャンプ26883
  9.4279 +Node: 最後の補完位置へのジャンプ27240
  9.4280 +Node: Modifying/Deleting27477
  9.4281 +Node: Changing LaTeX command27883
  9.4282 +Node: Killing LaTeX command28434
  9.4283 +Node: Filling29305
  9.4284 +Node: Includeonly30634
  9.4285 +Node: What column31195
  9.4286 +Node: Intelligent newline31974
  9.4287 +Node: Usepackage cheker33007
  9.4288 +Node: Changing mode of YaTeX33433
  9.4289 +Node: Online help34009
  9.4290 +Node: Inclusion hierarchy browser34985
  9.4291 +Node: Cooperation with other packages36263
  9.4292 +Node: Customizations36718
  9.4293 +Node: Lisp variables37015
  9.4294 +Node: All customizable variables37622
  9.4295 +Node: Sample definitions44923
  9.4296 +Node: Hook variables45357
  9.4297 +Node: Hook file46251
  9.4298 +Node: Add-in functions46457
  9.4299 +Node: Etc46684
  9.4300 +Node: Copying46968
  9.4301 +Node: Concept Index47599
  9.4302 +
  9.4303 +End tag table
    10.1 --- a/docs/yatexj.tex	Thu Jan 12 12:27:20 2012 +0900
    10.2 +++ b/docs/yatexj.tex	Mon May 14 18:39:05 2012 +0900
    10.3 @@ -1,2237 +1,2259 @@
    10.4 -\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 
    10.5 -\input texinfo
    10.6 -@setfilename yatexj
    10.7 -@settitle Yet Another tex-mode for Emacs
    10.8 -
    10.9 -@iftex
   10.10 -@c @syncodeindex fn cp
   10.11 -@c いつも忘れるのでここに書いとくか。
   10.12 -@c C-l C-c n でノード入れ
   10.13 -@c ノードいじったら C-l C-u C-n 全部のノード更新 C-l C-u C-e
   10.14 -@c メニュー増やしたら C-l C-u C-m 全部のメニュー更新 C-l C-u C-a
   10.15 -@c フォーマットするときは C-l C-e C-b
   10.16 -@c Last modified Thu May 27 18:24:30 2010 on firestorm
   10.17 -@syncodeindex vr cp
   10.18 -@end iftex
   10.19 -
   10.20 -@titlepage
   10.21 -@sp 10
   10.22 -@center
   10.23 -@subtitle Yet Another tex-mode for emacs
   10.24 -@title 『野鳥』
   10.25 -@subtitle // YaTeX //
   10.26 -@author @copyright{} 1991-2004 by    HIROSE, Yuuji [yuuji@@yatex.org]
   10.27 -@end titlepage
   10.28 -
   10.29 -@node Top, Intro, (dir), (dir)
   10.30 -@comment  node-name,  next,  previous,  up
   10.31 -
   10.32 -@menu
   10.33 -* Intro::                       はじめに
   10.34 -* Terminology::                 マニュアル参照上の注意
   10.35 -* Main features::               主な機能
   10.36 -* Installation::                インストール
   10.37 -* Invocation::                  プロセス起動
   10.38 -* %#notation ::                 %#記法
   10.39 -* Completion::                  補完入力
   10.40 -* Local dictionary::            ローカル辞書
   10.41 -* Commenting out::              コメントアウト
   10.42 -* Cursor jump::                 カーソルジャンプ
   10.43 -* Modifying/Deleting::          LaTeXコマンドの変更/削除
   10.44 -* Filling::                     桁揃え
   10.45 -* Includeonly::                 勝手に includeonly
   10.46 -* What column::                 カラム位置ガイド
   10.47 -* Intelligent newline::         おまかせ改行
   10.48 -* Usepackage cheker::           先回りusepackage
   10.49 -* Changing mode of YaTeX::      野鳥動作モード変更
   10.50 -* Online help::                 LaTeXオンラインヘルプ
   10.51 -* Inclusion hierarchy browser::  ファイル分割階層構造の表示
   10.52 -* Cooperation with other packages::  他パッケージとの連携
   10.53 -* Customizations::              カスタマイズ
   10.54 -* Etc::                         その他
   10.55 -* Copying::                     取り扱い
   10.56 -* Concept Index::               索引
   10.57 -
   10.58 -@end menu
   10.59 -
   10.60 -@node Intro, Terminology, Top, Top
   10.61 -@comment  node-name,  next,  previous,  up
   10.62 -@chapter はじめに
   10.63 -@cindex Demacs
   10.64 -@cindex Mule
   10.65 -@cindex LaTeX
   10.66 -@cindex やちょう[やちよう]
   10.67 -
   10.68 -  野鳥は、GNU Emacs で La@TeX{} 用の文書を作成する時に pLa@TeX{} などの
   10.69 -タイプセットコマンドや、プレヴューアの起動を Emacs 編集画面中から
   10.70 -行えるようにすると共に、拡張性の高い種々の補完機能によりソーステキ
   10.71 -ストの編集を支援します。さらに La@TeX{} コマンドのオンラインヘルプに
   10.72 -よりマニュアルを調べる手間を軽減します。
   10.73 -
   10.74 -  English manual @xref{Top, , , yatexe,YaTeX English info}.
   10.75 -
   10.76 -@node Terminology, Main features, Intro, Top
   10.77 -@comment  node-name,  next,  previous,  up
   10.78 -@chapter 本マニュアル参照上の注意
   10.79 -
   10.80 -  本マニュアルでは以下の表記を用います。
   10.81 -
   10.82 -@itemize @bullet
   10.83 -@item
   10.84 -begin型コマンド
   10.85 -
   10.86 -@code{\begin@{環境@} 〜 \end@{環境@}}という形式のLaTeXコマンドを指します。
   10.87 -begin型コマンドを補完入力することをbegin型補完と呼びます。
   10.88 -
   10.89 -@item
   10.90 -section型コマンド
   10.91 -
   10.92 -@code{\section@{タイトル@}}や@code{\mbox@{内容@}}のように
   10.93 -引数を取るLaTeXコマンドを指します。
   10.94 -
   10.95 -@item
   10.96 -maketitle型コマンド
   10.97 -
   10.98 -@code{\maketitle}や@code{\tableofcontents}のように引数を取らないLaTeXコマ
   10.99 -ンドを指します。
  10.100 -
  10.101 -@item
  10.102 -large型コマンド
  10.103 -
  10.104 -@code{@{\large ...@}} や @code{@{\tt ...@}} のようなフォント/サイズ指定子
  10.105 -を指します。
  10.106 -
  10.107 -@item @kbd{[prefix]}
  10.108 -
  10.109 -野鳥の機能を呼び出すためのプリフィクスキー。デフォルトでは@kbd{C-c}に割り
  10.110 -当てられているので、特に変更していない場合本マニュアルの @kbd{[prefix]} と
  10.111 -いう表記は、@kbd{C-c} と読み換えてください。
  10.112 -@end itemize
  10.113 -
  10.114 -@node Main features, Installation, Terminology, Top
  10.115 -@comment  node-name,  next,  previous,  up
  10.116 -@chapter 主な機能
  10.117 -
  10.118 -@itemize @bullet
  10.119 -@item タイプセッタやプレヴューアなどの編集画面からの起動(@kbd{C-c t})
  10.120 -@item カーソル位置によらない固定リジョンの部分タイプセット
  10.121 -@item \includeonlyのワンタッチ更新
  10.122 -@item エラー箇所への自動ジャンプ(@kbd{C-c '})
  10.123 -@item @code{\begin@{@}, \end@{@}, \section...} などの La@TeX{}
  10.124 -コマンドの補完入力
  10.125 -(@kbd{C-c b}, @kbd{C-c s}, @kbd{C-c l}, @kbd{C-c m})
  10.126 -@item 既に入力したテキストを環境やコマンド引数の中に取り込む括り補完
  10.127 -(@kbd{C-u} +通常補完キー)
  10.128 -@item セクション区切り入力時の文書構造アウトライン表示
  10.129 -@item セクションコマンドの一括シフト (@ref{view-sectioning})
  10.130 -@item 補完辞書の学習
  10.131 -@item La@TeX{} の環境やコマンドに応じたガイド付き引数入力
  10.132 -@item 野鳥にないガイド付き引数入力関数の自動生成(@file{yatexgen.el})
  10.133 -@item La@TeX{} コマンドの削除/変更(@kbd{C-c k}, @kbd{C-c c})
  10.134 -@item ファイル間、@code{\begin}<->@code{\end}間、
  10.135 -        @code{\ref}<->@code{\label}間、
  10.136 -        @code{\cite}<->@code{\bibitem}ジャンプ(@kbd{C-c g})
  10.137 -@item 一括コメントアウト/アンコメントアウト
  10.138 -        (@kbd{C-c >}, @kbd{C-c <}, @kbd{C-c ,}, @kbd{C-c .})
  10.139 -@item アクセント記号/数式環境用コマンド/ギリシャ文字の入力支援
  10.140 -        (@kbd{C-c a}, @kbd{;}, @kbd{/})
  10.141 -@item tabular/array環境のカラム位置ガイド
  10.142 -@item 標準的 La@TeX{} コマンドのオンラインヘルプ(@kbd{C-c ?}, @kbd{C-c /})
  10.143 -@item ドキュメントのインクルード構造の視覚的表示とバッファ切り替え
  10.144 -(@kbd{C-c d})
  10.145 -@item 補完入力したマクロに応じて必要な \userpackage を入れてくれる先回り
  10.146 -userpackage
  10.147 -@item \labelを打つことはもう忘れよう! refやcite補完入力で自動生成します
  10.148 -@end itemize
  10.149 -
  10.150 -@node Installation, Invocation, Main features, Top
  10.151 -@comment  node-name,  next,  previous,  up
  10.152 -@chapter 起動法
  10.153 -@cindex Install
  10.154 -@cindex インストール[いんすとおる]
  10.155 -@cindex .emacs
  10.156 -@cindex auto-mode-alist
  10.157 -@cindex autoload
  10.158 -@section 野鳥起動のための設定
  10.159 -
  10.160 -  ~/.emacsに下の2項目を加えます。
  10.161 -
  10.162 -@lisp
  10.163 -(setq auto-mode-alist
  10.164 -      (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
  10.165 -(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
  10.166 -@end lisp
  10.167 -
  10.168 -次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に加えます。
  10.169 -たとえば、 @file{~/src/emacs/yatex}に置くのであれば、
  10.170 -
  10.171 -@lisp
  10.172 -(setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path))
  10.173 -@end lisp
  10.174 -
  10.175 -@noindent 
  10.176 -などとします。
  10.177 -
  10.178 -  以上の設定により、拡張子が .tex であるファイルを編集すると自動的に野鳥が
  10.179 -ロードされます。野鳥が正常に起動できたときはモードラインの表示が「やてふ」
  10.180 -に変わります。
  10.181 -
  10.182 -@section タイプセッタ/プレヴューア環境の設定
  10.183 -
  10.184 -  利用する外部プログラムに関する以下の変数を確認し、必要なら正しい値に変更
  10.185 -します。
  10.186 -@table @code
  10.187 -@item tex-command
  10.188 -        @dots{} 起動するタイプセッタのコマンド名
  10.189 -@item dvi2-command
  10.190 -        @dots{} 起動するプレヴューアのコマンド名
  10.191 -@item NTT-jTeX
  10.192 -        @dots{} 改行+インデントによって、タイプセット後の字間が空いてしま
  10.193 -        うのを抑制する場合にtにする(古いNTT-jTeXで顕著に現れる)。具体的には、
  10.194 -        fillするときに各行の終わりに%を付加するようになる。
  10.195 -@item YaTeX-kanji-code
  10.196 -        @dots{} 文書を作成する時の漢字コード
  10.197 -@item dviprint-command-format
  10.198 -        @dots{} ファイルの印刷に使われるコマンド列の書式
  10.199 -@item makeindex-command
  10.200 -        @dots{} makeindexコマンド
  10.201 -@end table
  10.202 -
  10.203 -これらを変更する場合は、やはり@file{~/.emacs}にて、たとえば
  10.204 -@lisp
  10.205 -(setq tex-command "bigjlatex")
  10.206 -@end lisp
  10.207 -のようにしてください。どのような値をセットすれば良いかについては、
  10.208 -@ref{All customizable variables}を参照してください。
  10.209 -
  10.210 -
  10.211 -@node Invocation, %#notation , Installation, Top
  10.212 -@comment  node-name,  next,  previous,  up
  10.213 -@chapter latexコマンド起動
  10.214 -@cindex prefix key
  10.215 -@cindex C-c
  10.216 -@cindex タイプセッタ[たいふせつた]
  10.217 -@cindex プレヴューア[ふれひゆうあ]
  10.218 -@cindex jlatex
  10.219 -@cindex platex
  10.220 -@cindex プリントアウト[ふりんとあうと]
  10.221 -
  10.222 -LaTeXソースの編集中、次のキー入力により、platex などのタイプセットプログラ
  10.223 -ム(以後タイプセッタと呼ぶ)、プレヴューアなどの起動ができます。
  10.224 -
  10.225 -@table @kbd
  10.226 -@item [prefix] t j
  10.227 -        @dots{} タイプセッタ(platex)起動
  10.228 -@item [prefix] t r
  10.229 -        @dots{} タイプセッタ起動(領域指定)
  10.230 -@item [prefix] t e
  10.231 -        @dots{} タイプセッタ起動
  10.232 -        (ポイント位置の環境または数式モードのみ対称)
  10.233 -@item [prefix] t k
  10.234 -        @dots{} 動作中のタイプセッタの停止
  10.235 -@item [prefix] t b
  10.236 -        @dots{} jbibtex起動
  10.237 -@item [prefix] t i
  10.238 -        @dots{} makeindex起動
  10.239 -@item [prefix] t d
  10.240 -        @dots{} タイプセッタとdvipdfmx起動
  10.241 -@item [prefix] t p
  10.242 -        @dots{} プレヴューア起動
  10.243 -@item [prefix] t l
  10.244 -        @dots{} lpr(プリントアウト用)コマンド起動
  10.245 -@item [prefix] t s
  10.246 -        @dots{} xdvi -remote でのサーチ
  10.247 -@end table
  10.248 -
  10.249 -@menu
  10.250 -* Calling typesetter::          タイプセッタ起動
  10.251 -* Calling previewer::           プレヴューア起動
  10.252 -* Print out::                   プリントアウト用コマンドの起動
  10.253 -@end menu
  10.254 -
  10.255 -@node Calling typesetter, Calling previewer, Invocation, Invocation
  10.256 -@comment  node-name,  next,  previous,  up
  10.257 -@section タイプセッタ起動
  10.258 -@cindex タイプセッタ起動[たいふせつたきとう]
  10.259 -@cindex タイプセットエラー[たいふせつとえらあ]
  10.260 -@cindex エラー修正[えらあしゆうせい]
  10.261 -
  10.262 -  タイプセッタを起動すると、編集ウィンドウが2つに分割され、片方のウィンド
  10.263 -ウにタイプセット画面が表示されます。出力されるメッセージと連動しタイプセッ
  10.264 -トバッファは自動的にスクロールします。もし、途中でエラーが起こって止まって
  10.265 -しまった場合にはタイプセットバッファに移り、(@kbd{C-x o}) タイプセッタの出
  10.266 -している ? プロンプトに対して、@kbd{x} (処理の中断)などの指示を送ることが
  10.267 -できます。エラーを修正する場合は、
  10.268 -
  10.269 -@table @kbd
  10.270 -@item [prefix] '
  10.271 -@itemx (prefix+アポストロフィ)
  10.272 -        @dots{} 直前のエラー発生行へジャンプ
  10.273 -@end table
  10.274 -
  10.275 -を入力することにより、タイプセッタがエラーを発生した行に移ることができます。
  10.276 -また、タイプセッタの出力する overfull hbox などのウォーニング行にも対応し
  10.277 -ていますので、順次 @kbd{[prefix] '} を押すことにより、一つ前のウォーニング
  10.278 -発生行にジャンプしていきます。
  10.279 -
  10.280 -  もし、気になるエラー行があった場合は、タイプセットバッファで、エ
  10.281 -ラーの表示されている行にカーソルを合わせスペースキーを押すと La@TeX{} 
  10.282 -ソースの対応する行にジャンプします。
  10.283 -
  10.284 -@subsection 領域タイプセット
  10.285 -
  10.286 -  ポイントとマークの間、あるいはテキスト中に埋め込んだ @code{%#BEGIN} と
  10.287 -@code{%#END}の間の領域(@ref{%#notation})だけを切り取ってタイプセットすることが
  10.288 -できます。この場合メインファイルのプリアンブルが一時ファイルの
  10.289 -プリアンブルとして使われます。したがってプリアンブルにないマクロ定義が
  10.290 -領域内にあるとエラーになります。領域タイプセットを使う場合、
  10.291 -必ずマクロ定義はプリアンブル(@code{\begin{document}}より前)に置くよう
  10.292 -にして下さい。一時ファイルはメインファイルのある
  10.293 -ディレクトリの@file{texput.tex}という名前で出力されるので、
  10.294 -上書きには注意してください。
  10.295 -
  10.296 -@subsection{環境タイプセット}
  10.297 -
  10.298 -  @kbd{[prefix] te} を押すと、ポイント位置の最も内側の環境、または数式モー
  10.299 -ド内の場合はその数式モード全体が自動的に領域選択されて、領域タイプセットを
  10.300 -呼び出します。tabular環境や数式モードで複雑なものを作っている場合は確かめた
  10.301 -い部分だけを確認できるので便利です。これも @file{texput.tex} に該当部分を
  10.302 -書き出します。プレヴューアで @file{texput.dvi} を開いたままにしておけば
  10.303 -修正と確認が素早くできるでしょう。
  10.304 -
  10.305 -@node Calling previewer, Print out, Calling typesetter, Invocation
  10.306 -@comment  node-name,  next,  previous,  up
  10.307 -@section プレヴューア起動
  10.308 -  @kbd{[prefix] t p} によりプレヴューアの起動ができます。さらに、もしあな
  10.309 -たが、-remote 機能つきのxdviを利用している場合は @kbd{[prefix] t s} を押す
  10.310 -ことによりカーソル位置の文字列を検索してそのページを表示するようにすでに起
  10.311 -動中のxdviに命令を送ります。これにより、現在編集中の箇所のタイプセット結果
  10.312 -を即座に見ることができます。
  10.313 -
  10.314 -@c なお、-remote 機能付きの xdvi は
  10.315 -@c @code{ftp://ftp.ae.keio.ac.jp/pub/text/xdvi/xdvi-remote}
  10.316 -@c などから入手することができます。
  10.317 -
  10.318 -@node Print out,  , Calling previewer, Invocation
  10.319 -@comment  node-name,  next,  previous,  up
  10.320 -@section プリントアウト
  10.321 -
  10.322 -  @kbd{[prefix] t l}を押してプリントアウトを指示すると、出力開始/終了ペー
  10.323 -ジを聞いてくるので、それぞれに答えます。これを省略したい時は、
  10.324 -universal-argument をつけ、
  10.325 -
  10.326 -@cindex 出力開始ページ[しゆつりよくかいしへえし]
  10.327 -@cindex 出力終了ページ[しゆつりよくしゆうりようへえし]
  10.328 -
  10.329 -@table @kbd
  10.330 -@item C-u [prefix] t l
  10.331 -        @dots{} ページ確認省略lpr起動
  10.332 -@end table
  10.333 -@cindex ページ確認省略lpr起動[へえしかくにんしようりやくlprきとう]
  10.334 -
  10.335 -@noindent
  10.336 -のように起動してください。
  10.337 -
  10.338 -@node %#notation , Completion, Invocation, Top
  10.339 -@comment  node-name,  next,  previous,  up
  10.340 -@chapter %#記法
  10.341 -
  10.342 -  本文中に@code{%#}ではじまるキーワードを埋め込むことでタイプセッタ起動等
  10.343 -の制御をすることができます。
  10.344 -
  10.345 -@menu
  10.346 -* Changing typesetter::         タイプセット用コマンドの変更
  10.347 -* Splitting input files::       入力ファイル分割
  10.348 -* Fix region for typesetting::  領域の固定
  10.349 -* lpr format::                  プリントアウトコマンド用フォーマット
  10.350 -* Editing %# notation::         %#記法の編集
  10.351 -@end menu
  10.352 -
  10.353 -@node Changing typesetter, Splitting input files, %#notation , %#notation
  10.354 -@comment  node-name,  next,  previous,  up
  10.355 -@section タイプセット用コマンド変更
  10.356 -
  10.357 -  起動するコマンドを変えたい時は本文中に次のような行を書きます。
  10.358 -
  10.359 -@cindex 起動するコマンドを変える[きとうするこまんとをかえる]
  10.360 -
  10.361 -@example
  10.362 -        %#!jlatex-ntt
  10.363 -@end example
  10.364 -
  10.365 -NTT jTeX と、ASCII jTeX を使い分けたいような場合に便利でしょう。
  10.366 -
  10.367 -@cindex タイプセッタの使い分け[たいふせつたのつかいわけ]
  10.368 -
  10.369 -@node Splitting input files, Fix region for typesetting, Changing typesetter, %#notation
  10.370 -@comment  node-name,  next,  previous,  up
  10.371 -@section 入力ファイル分割
  10.372 -
  10.373 -また、章毎に別ファイルの .tex を作成している場合で、@file{main.tex}から 
  10.374 -@file{sub.tex}を @code{\include}しているような時は、@file{sub.tex}の任意の
  10.375 -位置に次のような行を埋め込みます。
  10.376 -
  10.377 -@example
  10.378 -        %#!platex main.tex
  10.379 -@end example
  10.380 -
  10.381 -@cindex 入力ファイル分割[にゆうりよくふあいるふんかつ]
  10.382 -
  10.383 -上の例のようにコマンド名だけでなく引数も書いた場合には、全てをそのまま 
  10.384 -shell に渡すので次のように書けば、ghostview などをプレヴューアに使う時に便
  10.385 -利です。
  10.386 -
  10.387 -@cindex ghostview
  10.388 -
  10.389 -@example
  10.390 -        %#!platex main ; dvi2ps main.dvi > main
  10.391 -@end example
  10.392 -
  10.393 -なお、この行の最後の単語のピリオド以前を「メインファイル」のベース
  10.394 -ネームであると仮定します(上の2つの場合どちらも@file{main})。
  10.395 -この行に記述した、@code{%f}はメインファイル名に、
  10.396 -@code{%r} はメインファイルの拡張子を取り除いた部分に置換されます。
  10.397 -ただし、@code{%f,%r}を利用した場合、初回タイプセット時に必ずメインファイル
  10.398 -名の入力を促されます。
  10.399 -
  10.400 -  @kbd{[prefix] g} (@ref{Cursor jump}参照) での
  10.401 -ファイル間ジャンプを有効に機能させるため、入力ファイル分割時には次のことに
  10.402 -注意して下さい。
  10.403 -
  10.404 -@enumerate
  10.405 -@item
  10.406 -サブディレクトリを作って、その中にサブファイルを置くことはできるが
  10.407 -サブディレクトリのサブディレクトリには置けない。
  10.408 -@item
  10.409 -メインファイルからサブディレクトリ内のファイルを include
  10.410 -する時には、相対パス指定を用いて、
  10.411 -@code{\include@{chap1/sub@}}のように記述。
  10.412 -@item
  10.413 -メインファイルが一つ上のディレクトリにある場合も、サブファイルには
  10.414 -%#!platex main.tex のように記述する(../mainではない)。
  10.415 -@end enumerate
  10.416 -
  10.417 -
  10.418 -
  10.419 -@node Fix region for typesetting, lpr format, Splitting input files, %#notation
  10.420 -@comment  node-name,  next,  previous,  up
  10.421 -@section 領域の固定
  10.422 -@cindex 固定領域のタイプセット[こていりよういきのたいふせつと]
  10.423 -@cindex %#BEGIN
  10.424 -@cindex %#END
  10.425 -
  10.426 -  @kbd{[prefix] tr} の領域指定のタイプセットでは、とくに指定のないかぎり、 
  10.427 -@kbd{C-SPC}でマークした位置と、ポイント(カーソル位置)の間を領域とみなしま
  10.428 -すが、必ず決まった領域をタイプセットしたい場合は、その領域を
  10.429 -
  10.430 -@example
  10.431 -        %#BEGIN
  10.432 -        <渡したい領域>
  10.433 -        %#END
  10.434 -@end example
  10.435 -
  10.436 -@noindent 
  10.437 -のように@code{%#BEGIN}と@code{%#END}で囲み、カーソルを「@code{%#BEGIN}以降」
  10.438 -に置いてください。この時の領域決定規則をまとめると次のようになります。
  10.439 -
  10.440 -
  10.441 -@enumerate
  10.442 -@item
  10.443 -カーソル位置よりバッファの先頭方向に@code{%#BEGIN}というキーワードが
  10.444 -ある場合
  10.445 -
  10.446 -@enumerate
  10.447 -@item
  10.448 -@code{%#BEGIN}よりバッファの末尾方向に@code{%#END}というキーワードが見つかっ
  10.449 -た場合。
  10.450 -@result{}@code{%#BEGIN} から、その @code{%#END} のある位置まで。
  10.451 -@item
  10.452 -@code{%#END} が見つからなかった場合。
  10.453 -@result{}バッファの最後尾まで。
  10.454 -@end enumerate
  10.455 -@cindex 領域決定規則[りよういきけつていきそく]
  10.456 -
  10.457 -@item
  10.458 -カーソル位置よりバッファの先頭方向に @code{%#BEGIN} というキーワードが
  10.459 -見つからなかった場合。
  10.460 -@result{}マーク(@kbd{C-SPC}位置)とポイント(カーソル位置)の間の領域。
  10.461 -@end enumerate
  10.462 -
  10.463 -  tabular 環境を何度も試行錯誤しているような場合は、@code{\begin}の前の行
  10.464 -に @code{%#BEGIN} と書き、@code{\end} の次の行に @code{%#END} と書いておく
  10.465 -と簡単に作表結果をテストすることができます。また、長い .tex ファイルの後半
  10.466 -に @code{%#BEGIN} を書いておけば、前半の部分は無視できます。このBEGINとEND
  10.467 -の消し忘れには十分ご注意下さい。
  10.468 -@cindex 長いファイルの編集[なかいふあいるのへんしゆう]
  10.469 -
  10.470 -@c @node  Require, lpr format, Fix region for typesetting, %#notation
  10.471 -@comment  node-name,  next,  previous,  up
  10.472 -
  10.473 -@node lpr format, Editing %# notation, Fix region for typesetting, %#notation
  10.474 -@comment  node-name,  next,  previous,  up
  10.475 -@section lprフォーマット
  10.476 -@cindex lprふぉーまっと[lprふおおまつと]
  10.477 -@cindex lprフォーマット[lprふおおまつと]
  10.478 -@cindex lpr format
  10.479 -
  10.480 -  まず、プリントアウト用コマンド列のフォーマットについて説明します。
  10.481 -コマンド列フォーマットは、3つの Lisp 変数によって表現されます。デ
  10.482 -フォルトの dvi2ps 用のフォーマットを例に説明します。
  10.483 -
  10.484 -@table @code
  10.485 -@item (1)dviprint-command-format
  10.486 -@code{"dvi2ps %f %t %s | lpr"}
  10.487 -
  10.488 -@item (2)dviprint-from-format
  10.489 -@code{"-f %b"}
  10.490 -
  10.491 -@item (3)dviprint-to-format
  10.492 -@code{"-t %e"}
  10.493 -@end table
  10.494 -
  10.495 -実際にプリントアウトする時は、(1)中の %s がファイル名に置き換えられ、%f が
  10.496 -(2)の内容、%t が(3)の内容に置き換えられます。その際に(2)の文字列中の %b は
  10.497 -「出力開始ページ」、(3)の文字列中の %e は「出力終了ページ」に置き換えられ
  10.498 -ます。もし、ページを指定しない時には、%f, %t 両方とも無視されます。
  10.499 -
  10.500 -  この、dviprint-command-format を臨時に変えたい時は、La@TeX{} の
  10.501 -ソーステキスト中の任意の場所に、
  10.502 -
  10.503 -@example
  10.504 -        %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2
  10.505 -@end example
  10.506 -
  10.507 -@noindent 
  10.508 -のように書いて下さい。プリントアウトするページ範囲をいちいち聞かせないよう
  10.509 -にする時に
  10.510 -
  10.511 -@example
  10.512 -        %#LPR dvi2ps %s | lpr
  10.513 -@end example
  10.514 -
  10.515 -@noindent 
  10.516 -などとするのも便利かもしれません。
  10.517 -
  10.518 -@node Editing %# notation,  , lpr format, %#notation
  10.519 -@comment  node-name,  next,  previous,  up
  10.520 -@section %#記法自体の編集
  10.521 -@cindex %#記法自体の編集[%#きほうしたいのへんしゆう]
  10.522 -
  10.523 -以上のような@code{%#}で始まる各種制御記法を編集するためには
  10.524 -
  10.525 -@table @kbd
  10.526 -@item [prefix] %
  10.527 -        @dots{} @code{%#}@var{記法編集メニュー}
  10.528 -@end table
  10.529 -
  10.530 -@noindent 
  10.531 -を押します。
  10.532 -
  10.533 -@example
  10.534 -        !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR
  10.535 -@end example
  10.536 -
  10.537 -@noindent 
  10.538 -というメニューが出て来るので、@code{%#!}に続くコマンドを変更したい時には
  10.539 -@kbd{!}を、@code{%#LPR}で lpr フォーマットを変えたい時は@kbd{l}を、あらか
  10.540 -じめ設定したリジョンを @code{%#BEGIN} 〜 @code{%#END} で括りたい時は、
  10.541 -@kbd{b}を押します。@kbd{b}を選んだ時には、それまでバッファ中に置かれていた 
  10.542 -@code{%#BEGIN}, @code{%#END} が自動的に消去されます。
  10.543 -@cindex lprフォーマットの変更[lprふおおまつとのへんこう]
  10.544 -
  10.545 -@node Completion, Local dictionary, %#notation , Top
  10.546 -@comment  node-name,  next,  previous,  up
  10.547 -@chapter 補完入力
  10.548 -
  10.549 -  La@TeX{} での環境名などは、野鳥の補完機能を利用して能率的に入力すること
  10.550 -ができます。
  10.551 -
  10.552 -@menu
  10.553 -* begin型補完::                 
  10.554 -* section型補完::               
  10.555 -* large型補完::                 
  10.556 -* maketitle型補完::             
  10.557 -* Arbitrary completion::        随時補完
  10.558 -* end補完::                     
  10.559 -* Accent mark completion::      アクセント記号補完
  10.560 -* Image completion::            数式記号イメージ補完
  10.561 -* Greek letter completion::     ギリシャ文字補完
  10.562 -@end menu
  10.563 -
  10.564 -@node begin型補完, section型補完, Completion, Completion
  10.565 -@comment  node-name,  next,  previous,  up
  10.566 -@section begin型補完
  10.567 -@cindex begin型補完[beginかたほかん]
  10.568 -@cindex 環境名の補完[かんきようめいのほかん]
  10.569 -@cindex prefix b
  10.570 -
  10.571 -  @code{\begin@{env@}...\end@{env@}}の様な形式の入力の補完をbegin型補完と
  10.572 -呼ぶことにします。begin 型補完は、
  10.573 -
  10.574 -@table @kbd
  10.575 -@item [prefix] b
  10.576 -        @dots{} begin 型補完開始(標準では @kbd{C-c b})
  10.577 -@end table
  10.578 -
  10.579 -@noindent 
  10.580 -で始まります。頻繁に用いられる次の La@TeX{} 環境の補完は、[prefix] @kbd{b}
  10.581 -に続く次の1文字を入力するだけで、@code{\begin@{xxx@}...\end@{xxx@}}を完成
  10.582 -させます。
  10.583 -
  10.584 -@table @kbd
  10.585 -@item [prefix] b c
  10.586 -        @dots{} @code{\begin@{center@}...\end@{center@}}
  10.587 -@item [prefix] b d
  10.588 -        @dots{} @code{\begin@{document@}...\end@{document@}}
  10.589 -@item [prefix] b D
  10.590 -        @dots{} @code{\begin@{description@}...\end@{description@}}
  10.591 -@item [prefix] b e
  10.592 -        @dots{} @code{\begin@{enumerate@}...\end@{enumerate@}}
  10.593 -@item [prefix] b E
  10.594 -        @dots{} @code{\begin@{equation@}...\end@{equation@}}
  10.595 -@item [prefix] b i
  10.596 -        @dots{} @code{\begin@{itemize@}...\end@{itemize@}}
  10.597 -@item [prefix] b l
  10.598 -        @dots{} @code{\begin@{flushleft@}...\end@{flushleft@}}
  10.599 -@item [prefix] b m
  10.600 -        @dots{} @code{\begin@{minipage@}...\end@{minipage@}}
  10.601 -@item [prefix] b t
  10.602 -        @dots{} @code{\begin@{tabbing@}...\end@{tabbing@}}
  10.603 -@item [prefix] b T
  10.604 -        @dots{} @code{\begin@{tabular@}...\end@{tabular@}}
  10.605 -@item [prefix] b ^T
  10.606 -        @dots{} @code{\begin@{table@}...\end@{table@}}
  10.607 -@item [prefix] b p
  10.608 -        @dots{} @code{\begin@{picture@}...\end@{picture@}}
  10.609 -@item [prefix] b q
  10.610 -        @dots{} @code{\begin@{quote@}...\end@{quote@}}
  10.611 -@item [prefix] b Q
  10.612 -        @dots{} @code{\begin@{quotation@}...\end@{quotation@}}
  10.613 -@item [prefix] b r
  10.614 -        @dots{} @code{\begin@{flushright@}...\end@{flushright@}}
  10.615 -@item [prefix] b v
  10.616 -        @dots{} @code{\begin@{verbatim@}...\end@{verbatim@}}
  10.617 -@item [prefix] b V
  10.618 -        @dots{} @code{\begin@{verse@}...\end@{verse@}}
  10.619 -@end table
  10.620 -
  10.621 -  上記のもの以外の環境名は Emacs の持つインクリメンタルな補完機能を用いて
  10.622 -入力します(上記の環境名も以下の補完入力可能)。
  10.623 -
  10.624 -@table @kbd
  10.625 -@item [prefix] b @key{SPC}
  10.626 -        @dots{} begin 型補完入力
  10.627 -@end table
  10.628 -
  10.629 -@kbd{[prefix] b @key{SPC}} と入力すると、最下行のミニバッファに
  10.630 -
  10.631 -@example
  10.632 -        Begin environment(default document): 
  10.633 -@end example
  10.634 -
  10.635 -@noindent
  10.636 -と表示されます。ここで、何も入れずにリターンキーのみ押すと、括弧内に出てい
  10.637 -るデフォルトの環境名が入力されますが、適当な環境名を入力すると、
  10.638 -@code{\begin@{環境名@} … \end@{環境名@}}が文書中に挿入されます。ミニバッ
  10.639 -ファで環境名を入力するときに、環境名の頭文字を入力し「スペース」をたたくと、
  10.640 -一致する環境名が内部テーブルに存在した場合、正しい環境名に補完されるので、
  10.641 -入力の手間が省けます。内部テーブルに存在しない環境名を入力した時はユーザ専
  10.642 -用のテーブルに登録され、さらにそのテーブルを自動的に、ユーザ辞書(デフォル
  10.643 -トでは @file{~/.yatexrc})に保存します。
  10.644 -
  10.645 -さらに、特定の環境を補完入力した時にはその環境で必ず用いられるエントリを自
  10.646 -動挿入します(例: @code{itemize}環境における@code{\item}など)。挿入されたエ
  10.647 -ントリが不要な場合にはundoによって消去して下さい。
  10.648 -@cindex ユーザ辞書[ゆうさししよ]
  10.649 -
  10.650 -@subsection 既に書いたテキストを環境で括る
  10.651 -
  10.652 -  ところで、最初に書いてしまったブロックを後から、itemize 環境の中
  10.653 -に閉じこめたいと思うことがありますが、そのようなときは、あらかじめ
  10.654 -閉じこめたい段落をマークして、begin 型補完の各コマンドの @kbd{[prefix]}
  10.655 -の次の『小文字の 'b'』 を『大文字』に変えて起動して下さい。(または、
  10.656 -@kbd{C-u} を先に打ち、universal argument をつけても可能です)
  10.657 -@cindex ブロック[ふろつく]
  10.658 -@cindex 閉じ込める[としこめる]
  10.659 -
  10.660 -  例えばあるパラグラフを description 環境の中に入れたいときは、
  10.661 -そのパラグラフをマークしてから、
  10.662 -
  10.663 -@table @kbd
  10.664 -@item [prefix] B D
  10.665 -@itemx (または ESC 1 [prefix] b D)
  10.666 -@itemx (または  C-u  [prefix] b D など)
  10.667 -@end table
  10.668 -
  10.669 -とタイプしてください。これは、@kbd{[prefix] b SPC}の補完入力にもあてはまり、
  10.670 -@kbd{b} を大文字に変えて、@kbd{[prefix] B SPC} とタイプすれば、あらかじめ
  10.671 -マークしておいたリジョンを、begin と end の環境で括ります。
  10.672 -
  10.673 -@node section型補完, large型補完, begin型補完, Completion
  10.674 -@comment  node-name,  next,  previous,  up
  10.675 -@section section型補完
  10.676 -@cindex  section型補完[sectionかたほかん]
  10.677 -@cindex prefix s
  10.678 -
  10.679 -  @code{\section@{目的@}} のような形式の入力の補完を section 型補完と呼ぶこ
  10.680 -とにします。section 型補完は、
  10.681 -
  10.682 -@table @kbd
  10.683 -@item [prefix] s
  10.684 -        @dots{} section 型補完
  10.685 -@end table
  10.686 -
  10.687 -@noindent 
  10.688 -で実行します。@kbd{[prefix] s} を入力するとミニバッファに、
  10.689 -
  10.690 -@example
  10.691 -        (C-v for view-section) \???@{@} (default documentclass):
  10.692 -@end example
  10.693 -
  10.694 -@noindent 
  10.695 -というプロンプトが現れるので、そこで @samp{section} のような La@TeX{} コマ
  10.696 -ンド名を入力します。ここでもリターンキーのみで括弧内のデフォルト値が選択さ
  10.697 -れるほか、@samp{chapter}などのような頻度の高い名称入力にはスペースキーによ
  10.698 -る補完機能が有効です。 次に、@{@}の中身の入力を促す、
  10.699 -
  10.700 -@example
  10.701 -        \section@{???@}:
  10.702 -@end example
  10.703 -
  10.704 -@noindent 
  10.705 -というプロンプトが現れるので、セクションのタイトルなどを入力します。
  10.706 -たとえば、
  10.707 -
  10.708 -@example
  10.709 -        (C-v for view-section) \???@{@} (default documentclass): section
  10.710 -        \section@{???@}: 目的
  10.711 -@end example
  10.712 -
  10.713 -@noindent 
  10.714 -のように入力した場合は、文章中に
  10.715 -
  10.716 -@example
  10.717 -        \section@{目的@}
  10.718 -@end example
  10.719 -
  10.720 -@noindent 
  10.721 -が挿入され、
  10.722 -
  10.723 -@example
  10.724 -        (C-v for view-section) \???@{@} (default section): vspace*
  10.725 -        \vspace*@{???@}: 
  10.726 -@end example
  10.727 -
  10.728 -@noindent 
  10.729 -のように@{@}の中身を省略したときは、
  10.730 -
  10.731 -@example
  10.732 -        \vspace*@{@}
  10.733 -@end example
  10.734 -
  10.735 -@noindent 
  10.736 -だけが挿入され、改行はせずカーソルは自動的に中括弧の内側に移動します。
  10.737 -
  10.738 -@menu
  10.739 -* 2個以上の引数をとる section型コマンド::  
  10.740 -* Enclose section-type command::  括り補完
  10.741 -* Recursive completion::        再帰補完
  10.742 -* view-sectioning::             セクション区切りのアウトライン表示
  10.743 -* label-generation::            ラベル自動生成
  10.744 -@end menu
  10.745 -
  10.746 -@node 2個以上の引数をとる section型コマンド, Enclose section-type command, section型補完, section型補完
  10.747 -@comment  node-name,  next,  previous,  up
  10.748 -@subsection 2個以上の引数をとる section型コマンド
  10.749 -@cindex 引数[ひきすう]
  10.750 -
  10.751 -  ところで、@samp{\addtolength@{\topmargin@}@{8mm@}} などのように、引数を二つ
  10.752 -以上取る La@TeX{} コマンドがあります。このようなコマンドの補完入力には、
  10.753 -section 型補完呼び出しに引数を付けてください。例えば上の@samp{addtolength} 
  10.754 -の例であれば、引数2を指定します。つまり、
  10.755 -
  10.756 -@example
  10.757 -        C-u 2 [prefix] s   (または、ESC 2 [prefix] s)
  10.758 -@end example
  10.759 -
  10.760 -@noindent 
  10.761 -と section 型補完を呼び出した後、
  10.762 -
  10.763 -@example
  10.764 -        (Ctrl-v for view-section) \???@{@} (default vspace*): addtolength
  10.765 -        \addtolength@{???@}: \topmargin
  10.766 -        Argument 2: 8mm
  10.767 -@end example
  10.768 -
  10.769 -@noindent 
  10.770 -のように入力してください。最初の addtolength の部分と、第一引数である 
  10.771 -\topmargin の入力は当然スペースによる補完入力が可能です。ユーザ辞書に登録
  10.772 -される La@TeX{} コマンドには、この引数の数も学習されるので、最初の補完の時
  10.773 -引数の数を指定して起動しておけば、以後の補完時には、記憶された個数だけ引数
  10.774 -を聞いて来るようになります。あとで引数の個数を変えたい時は、再び @kbd{C-u} 
  10.775 -を用いて個数を指定し直すことで、自動的に辞書中の引数の個数の部分を更新しま
  10.776 -す。
  10.777 -@cindex 引数の個数を変える[ひきすうのこすうをかえる]
  10.778 -
  10.779 -
  10.780 -@node Enclose section-type command, Recursive completion, 2個以上の引数をとる section型コマンド, section型補完
  10.781 -@subsection 既に書いたテキストを括る
  10.782 -@cindex 括る[くくる]
  10.783 -
  10.784 -  また、起動コマンドの@kbd{s}を大文字に変えて起動すると、あらかじめ書
  10.785 -いた文章を section 型コマンドの第一引数として括ります。
  10.786 -
  10.787 -@node Recursive completion, view-sectioning, Enclose section-type command, section型補完
  10.788 -@comment  node-name,  next,  previous,  up
  10.789 -@subsection 再帰補完
  10.790 -@cindex 再帰補完[さいきほかん]
  10.791 -
  10.792 -  高度な使い方になるかもしれませんが、section型補完の引数の入力時にさらに
  10.793 -補完入力を利用することができます(section/large/maketitle型に限る)。section
  10.794 -型コマンドの引数に更に La@TeX{} コマンドが来る場合にはミニバッファで野鳥の
  10.795 -補完キーを再帰的に入力することで引数の入力も効率的に行なえます。
  10.796 -
  10.797 -@node view-sectioning, label-generation, Recursive completion, section型補完
  10.798 -@comment  node-name,  next,  previous,  up
  10.799 -@subsection セクション区切りのアウトライン表示
  10.800 -@cindex アウトライン[あうとらいん]
  10.801 -
  10.802 -  通常のsection型補完の時にミニバッファで@kbd{C-v}を押すと現在存在するセク
  10.803 -ション区切りコマンド全てを @code{*Sectioning Lines*}というバッファに一覧表
  10.804 -示します(「<<--」のついている行がもっとも近いセクション区切り)。この時ミニ
  10.805 -バッファで@kbd{C-p}, @kbd{C-n} を押すと@samp{part}, @samp{chapter}, ...,
  10.806 -@samp{subparagraph} のコマンドが論理階層の高さにしたがって上下します。また、
  10.807 -@kbd{C-v}, @kbd{M-v} を押すとセクション区切り一覧バッファがスクロールし、
  10.808 -数字の@kbd{0}〜@kbd{7}を押すとある高さ以上のセクション区切りだけを選んで表
  10.809 -示します(実際にやって見れば分かります)。
  10.810 -
  10.811 -@code{*Sectioning Lines*}バッファは、
  10.812 -
  10.813 -@table @kbd
  10.814 -@item M-x YaTeX-section-overview
  10.815 -        @dots{} セクション区切り一覧バッファを生成
  10.816 -@end table
  10.817 -
  10.818 -@cindex セクション区切り一覧バッファ[せくしよんくきりいちらんはつふあ]
  10.819 -で作成することができます。このバッファを選択し任意の行でスペースを押すと、
  10.820 -該当するセクション区切りのある本文中の場所にジャンプします。さらに、同バッ
  10.821 -ファで @kbd{u} を押すと、ソーステキストの対応するセクションコマンドが一階
  10.822 -層上がり(例: subsection が section に変わる)、@kbd{d}を押すと一階層下がり
  10.823 -ます。@code{*Sectioning Lines*}バッファにあるセクション区切りの行をマーク
  10.824 -しておいて@kbd{U}を押すとリジョン内のものに対応するソーステキストのセクショ
  10.825 -ンコマンドすべてが一階層上がり、@kbd{D}を押すと下がります。セクション区切
  10.826 -り一覧バッファで利用できるキーコマンドには以下のものがあります。
  10.827 -
  10.828 -@table @kbd
  10.829 -@item SPC
  10.830 -        @dots{} 対応するソース行へジャンプ
  10.831 -@item .
  10.832 -        @dots{} 対応するソース行を表示
  10.833 -@item u
  10.834 -        @dots{} カーソル位置に対応するセクションコマンドを一階層上げる
  10.835 -@item d
  10.836 -        @dots{} カーソル位置に対応するセクションコマンドを一階層下げる
  10.837 -@item U
  10.838 -        @dots{} マークしたセクションコマンドを一階層上げる
  10.839 -@item D
  10.840 -        @dots{} マークしたセクションコマンドを一階層上げる
  10.841 -@item 0〜6
  10.842 -        @dots{} レベル n 以下のセクションコマンドを隠して表示
  10.843 -@end table
  10.844 -
  10.845 -@cindex 論理階層[ろんりかいそう]
  10.846 -@cindex セクション区切り[せくしよんくきり]
  10.847 -@cindex ジャンプ[しやんふ]
  10.848 -
  10.849 -@node label-generation,  , view-sectioning, section型補完
  10.850 -@comment  node-name,  next,  previous,  up
  10.851 -@subsection ラベル自動生成
  10.852 -@cindex ラベル自動生成[らへるしとうせいせい]
  10.853 -
  10.854 -  @code{\ref@{@}} や @code{\cite{@@}} マクロをsection型補完で入れた場合
  10.855 -参照先となり得るものを全て探してメニューにして選択できます。参照先には
  10.856 -@code{\label@{@}}をつけておく必要はありません。もしあれば、そのラベルを
  10.857 -使い、なければその場で参照先に@code{\label@{@}}を作らせてくれます。
  10.858 -ラベル名を考えるのは苦痛に感じるものです。全てのカウンタにラベルを
  10.859 -つけるのもたいへんです。もうラベル名に何をつけるか、ラベルをつけるかつけま
  10.860 -いか、などということは忘れましょう!
  10.861 -
  10.862 -@node large型補完, maketitle型補完, section型補完, Completion
  10.863 -@comment  node-name,  next,  previous,  up
  10.864 -@section large型補完
  10.865 -@cindex large型補完[largeかたほかん]
  10.866 -@cindex prefix l
  10.867 -
  10.868 -  @code{@{\large @}} のような形式の補完を large 型補完と呼ぶことにします。
  10.869 -
  10.870 -@table @kbd
  10.871 -@item [prefix] l
  10.872 -        @dots{} large 型補完開始
  10.873 -@end table
  10.874 -
  10.875 -@noindent 
  10.876 -がlarge型補完の開始です。@kbd{[prefix] l} を押すと、ミニバッファに
  10.877 -
  10.878 -@example
  10.879 -        @{\??? @} (default large): 
  10.880 -@end example
  10.881 -
  10.882 -@noindent 
  10.883 -と表示されるので、上記のものと同じ要領で補完入力して下さい。補完候補に用意
  10.884 -されているのは、@samp{footnotesize} や @samp{huge} のような文字サイズ指定
  10.885 -子と、@samp{bf}や@samp{dg}のようなフォント指定子です。
  10.886 -@cindex 文字サイズ指定子[もしさいすしていし]
  10.887 -@cindex フォント指定子[ふおんとしていし]
  10.888 -
  10.889 -@subsection 既に書いた文字を括る
  10.890 -@cindex 括る[くくる]
  10.891 -
  10.892 -  また、begin型補完の時と同様、先に書いてしまった一連の文章の文字のサイズ
  10.893 -を変えたいと思う時がありますが、そのような時は、サイズや大きさを変えたい文
  10.894 -字の範囲をマークしてから、呼び出しキーを @kbd{[prefix] L} と、大文字の L 
  10.895 -に変えて呼び出せば、そのリジョン全体が、ブレースで囲まれます。
  10.896 -
  10.897 -@node maketitle型補完, Arbitrary completion, large型補完, Completion
  10.898 -@comment  node-name,  next,  previous,  up
  10.899 -@section maketitle型補完
  10.900 -@cindex maketitle型補完[maketitleかたほかん]
  10.901 -@cindex prefix m
  10.902 -
  10.903 -  @code{\maketitle} の形式の補完を maketitle 型補完と呼ぶことにします。
  10.904 -
  10.905 -@table @kbd
  10.906 -@item [prefix] m
  10.907 -        @dots{} maketitle 型補完開始
  10.908 -@end table
  10.909 -
  10.910 -@noindent 
  10.911 -で、maketitle 型補完を開始します。補完の要領は今までのものとまったく同じで
  10.912 -す。La@TeX{} 用のコマンド名が補完候補として用意されています。
  10.913 -
  10.914 -@node Arbitrary completion, end補完, maketitle型補完, Completion
  10.915 -@comment  node-name,  next,  previous,  up
  10.916 -@section 随時補完
  10.917 -@cindex 随時補完[すいしほかん]
  10.918 -@cindex prefix SPC
  10.919 -
  10.920 -  さて、今まで述べた典型的な La@TeX{} コマンド形式の補完入力を用いずに、今
  10.921 -入力しようとしている La@TeX{} コマンドを文書中の任意の位置で随時補完するこ
  10.922 -ともできます。La@TeX{} コマンド(先頭が\で始まる)を入力している途中で、
  10.923 -
  10.924 -@table @kbd
  10.925 -@item [prefix] SPC
  10.926 -        @dots{} 随時補完
  10.927 -@end table
  10.928 -
  10.929 -@noindent 
  10.930 -を入力すれば、全ての補完候補の中から一致するものが選ばれカーソル位置に挿入
  10.931 -されます。
  10.932 -
  10.933 -@node end補完, Accent mark completion, Arbitrary completion, Completion
  10.934 -@comment  node-name,  next,  previous,  up
  10.935 -@section end補完
  10.936 -@cindex end補完[endほかん]
  10.937 -@cindex prefix e
  10.938 -
  10.939 -  現在開いたままの環境名を自動的に検出し、@code{\end@{環境名@}}を挿入しま
  10.940 -す。begin 型補完を用いれば環境の閉じ忘れはないのですが、時にはついつい手で 
  10.941 -@code{\begin@{環境名@}} を入れてしまい、悲しい思いをすることがあります。そ
  10.942 -のような時には気にせず続けて文章を入力し、しかるのちに
  10.943 -
  10.944 -@table @kbd
  10.945 -@item [prefix] e
  10.946 -        @dots{} end 補完
  10.947 -@end table
  10.948 -
  10.949 -@noindent 
  10.950 -とすることで、現在開いている環境名で \end@{@} が補われます。
  10.951 -
  10.952 -@node Accent mark completion, Image completion, end補完, Completion
  10.953 -@comment  node-name,  next,  previous,  up
  10.954 -@section アクセント記号補完
  10.955 -@cindex アクセント記号補完[あくせんときこうほかん]
  10.956 -@cindex prefix a
  10.957 -@cindex 欧文[おうふん]
  10.958 -
  10.959 -  欧文のアクセント記号(@code{\`@{o@}}など)を入力する時は、
  10.960 -
  10.961 -@table @kbd
  10.962 -@item [prefix] a
  10.963 -        @dots{} アクセント記号入力
  10.964 -@end table
  10.965 -
  10.966 -@noindent 
  10.967 -を押すと、ミニバッファに
  10.968 -
  10.969 -@example
  10.970 -        1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b
  10.971 -@end example
  10.972 -
  10.973 -@noindent 
  10.974 -というメニューが出て来るので、数字、または対応する記号/英字を入力
  10.975 -して下さい。すると編集バッファに、
  10.976 -
  10.977 -@example
  10.978 -        \`@{@}
  10.979 -@end example
  10.980 -
  10.981 -@noindent 
  10.982 -があらわれ、カーソルが@{@}内に位置するので、さらに一文字入力する事で、
  10.983 -
  10.984 -@example
  10.985 -        \`@{o@}
  10.986 -@end example
  10.987 -
  10.988 -@noindent 
  10.989 -が完成され、カーソルは@{@}の外に戻ります。
  10.990 -
  10.991 -@node Image completion, Greek letter completion, Accent mark completion, Completion
  10.992 -@comment  node-name,  next,  previous,  up
  10.993 -@section 数式記号イメージ補完
  10.994 -@cindex  数式記号イメージ補完[すうしききこういめえしほかん]
  10.995 -@cindex イメージ補完[いめえしほかん]
  10.996 -@cindex ;
  10.997 -@cindex 数式モード[すうしきもおと]
  10.998 -@cindex 矢印[やしるし]
  10.999 -@cindex Σ[しくま]
 10.1000 -@cindex leftarrow
 10.1001 -@cindex ∞[むけんたい]
 10.1002 -
 10.1003 -  主に数式モードで使用される、矢印やΣなどの記号を擬似的に表現するキー入力
 10.1004 -で、La@TeX{} コマンドを入力できます。これは野鳥自身の「数式モード」でのみ
 10.1005 -動作します。野鳥はカーソルが@TeX{}の数式環境の中にある時に@kbd{;}や、
 10.1006 -@kbd{:}に特殊な機能を持たせます。
 10.1007 -
 10.1008 -  さて、例えば、←(leftarrow)をASCII文字だけで表現する場合、一般的には「<-」
 10.1009 -のようにしますが、これを利用して、数式記号イメージ入力モードで 
 10.1010 -@code{\leftarrow}を入力するには、@kbd{;}(セミコロン)を打ってから@kbd{<-}と
 10.1011 -入力します。同様に、長い矢印←-(long-leftarrow) をASCII文字だけで表現する
 10.1012 -場合「<--」とするので、@code{\longleftarrow}を入力するためには、@kbd{;<--}
 10.1013 -と入力します。あるいは無限大記号をASCII文字だけで表現する時は「oo」のよう
 10.1014 -にすることから、@code{\infty} を入力する時は、@kbd{;oo}とキー入力します。
 10.1015 -
 10.1016 -  これらの操作をまとめると次のようになります。
 10.1017 -
 10.1018 -@example
 10.1019 -INPUT                   入力される La@TeX{} コマンド
 10.1020 -; < -                   @code{\leftarrow}
 10.1021 -; < - -                 @code{\longleftarrow}
 10.1022 -; < - - >               @code{\longleftrightarrow}
 10.1023 -; o                     @code{\circ}
 10.1024 -; o o                   @code{\infty}
 10.1025 -@end example
 10.1026 -
 10.1027 -
 10.1028 -@noindent 
 10.1029 -  いずれの場合も、イメージ入力を行っている途中で望みのものがバッファ
 10.1030 -に表示されたなら、そこでイメージ入力を止めて次の編集動作に移っても
 10.1031 -構いません。
 10.1032 -
 10.1033 -@cindex ;自身[;ししん]
 10.1034 -  数式環境中で@samp{;}自身を入力するには@kbd{;;}のようにします。イメージ
 10.1035 -入力の途中でTABを押すと、それまで入力した文字で始まるもの一覧が表示されま
 10.1036 -す。ここで目的の La@TeX{} コマンドまでカーソルを移動し再度TABを押すことで
 10.1037 -その La@TeX{} コマンドがバッファに挿入されます。
 10.1038 -
 10.1039 -  どのキー入力にどの記号が対応しているか全て知りたい時は、@kbd{;}を押した
 10.1040 -直後にTABを押してください。以下の例は、@kbd{;<}と押した後にTABを押したもの
 10.1041 -です。
 10.1042 -
 10.1043 -@example
 10.1044 -KEY             LaTeX sequence          sign
 10.1045 -<               \leq                    ≦
 10.1046 -<<              \ll                     《
 10.1047 -<-              \leftarrow              ←
 10.1048 -<=              \Leftarrow              <=
 10.1049 -@end example
 10.1050 -
 10.1051 -左から[入力キー]、[対応する La@TeX{} コマンド]、[(擬似)記号図示]、と
 10.1052 -いう順でメニューが出て来るので、よく使うものを覚えておくと良いでしょ
 10.1053 -う。ものによってはASCII文字で表現することが困難なので、あまり覚え
 10.1054 -やすいキー並びではないものがあるでしょうから、そのような場合は 
 10.1055 -\maketitle 型補完で入力するか、以下に述べる対応表の設定を行って単
 10.1056 -純なキー並びのものを設定すると良いでしょう。
 10.1057 -
 10.1058 -  入力キーと    La@TeX{} コマンド、記号の対応表を個人的に設定したい場合は 
 10.1059 -Emacs-Lisp 変数 @code{YaTeX-math-sign-alist-private}  に定義してください。
 10.1060 -その内容とデフォルトのものを合わせたものが対応表として使用されます(private
 10.1061 -の方が優先される)。なお、この変数の構造については @file{yatexmth.el}  を参
 10.1062 -照してください。
 10.1063 -@cindex YaTeX-math-sign-alist-private
 10.1064 -
 10.1065 -@node Greek letter completion,  , Image completion, Completion
 10.1066 -@comment  node-name,  next,  previous,  up
 10.1067 -@section ギリシャ文字補完
 10.1068 -@cindex ギリシャ文字補完[きりしやもしほかん]
 10.1069 -@cindex :
 10.1070 -
 10.1071 -  もう一つ、数式環境中で@kbd{:}を押すとギリシャ文字入力モードに入ります。
 10.1072 -@kbd{:}を押した直後に@kbd{a}を押すと@code{\alpha}が、@kbd{g} を押すと 
 10.1073 -@code{\gamma}が、などアルファベットに対応したギリシャ文字が挿入されます。
 10.1074 -操作方法は;の数式記号補完とまったく同じです。まずは@kbd{:}の直後に
 10.1075 -TABを押してどのアルファベットにどのギリシャ文字が対応しているか調べてみて
 10.1076 -ください。
 10.1077 -
 10.1078 -  @kbd{;}と@kbd{:}を数式環境中で押しているにもかかわらず、イメージ補完が働
 10.1079 -かない場合は、@kbd{C-u ;}のように universal-argument をつけてキーを押すこ
 10.1080 -とにより、強制的にイメージ補完に入ることができます。また、この時にどのよう
 10.1081 -な状態で数式環境内判定に失敗したかをご連絡下さい。
 10.1082 -
 10.1083 -@node Local dictionary, Commenting out, Completion, Top
 10.1084 -@comment  node-name,  next,  previous,  up
 10.1085 -@chapter ローカル辞書
 10.1086 -@cindex ローカル辞書[ろおかるししよ]
 10.1087 -@cindex .yatexrc
 10.1088 -
 10.1089 -  補完入力用の候補は三種類の辞書から構成されています。一つは
 10.1090 -@file{yatex.el}に組み込まれた「標準辞書」、もう一つはユーザが個人的に常用
 10.1091 -するコマンドを保存する「ユーザ辞書」、そしてもうひとつはあるディレクトリで
 10.1092 -のみ有効なコマンドを保存する「ローカル辞書」です。
 10.1093 -
 10.1094 -  補完入力時に新しい単語を入れた場合に、その単語をどの辞書に入れるか聞いて
 10.1095 -来ます。
 10.1096 -
 10.1097 -@example
 10.1098 -  `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard
 10.1099 -@end example
 10.1100 -
 10.1101 -@noindent 
 10.1102 -というプロンプトに対し、@kbd{u}と答えると「ユーザ辞書」を、@kbd{l}と答える
 10.1103 -とローカル辞書を更新し、@kbd{n}と答えると辞書ファイルは更新せず現在のEmacs
 10.1104 -セッションのみ有効な単語とし、@kbd{d}と答えると新たな単語を学習せずに捨て
 10.1105 -ることになります。
 10.1106 -
 10.1107 -  もし、ローカル辞書の機能はいらず、全てユーザ辞書の更新のみでよいと言う場
 10.1108 -合には@file{~/.emacs}などで、
 10.1109 -@cindex YaTeX-nervous
 10.1110 -
 10.1111 -@lisp
 10.1112 -        (setq YaTeX-nervous nil)
 10.1113 -@end lisp
 10.1114 -
 10.1115 -@noindent 
 10.1116 -として下さい。
 10.1117 -
 10.1118 -@node Commenting out, Cursor jump, Local dictionary, Top
 10.1119 -@comment  node-name,  next,  previous,  up
 10.1120 -@chapter コメントアウト
 10.1121 -@cindex コメントアウト[こめんとあうと]
 10.1122 -@cindex prefix <
 10.1123 -@cindex prefix >
 10.1124 -@cindex prefix .
 10.1125 -@cindex prefix ,
 10.1126 -
 10.1127 -
 10.1128 -  La@TeX{}の編集には試行錯誤がつきものです。ある部分を一括でコメントアウト
 10.1129 -したり、コメントを外したりしたいことがあります。
 10.1130 -
 10.1131 -@table @kbd
 10.1132 -@item [prefix] >
 10.1133 -        @dots{} リジョンを % でコメントアウト
 10.1134 -@item [prefix] <
 10.1135 -        @dots{} リジョンの % のコメントを外す
 10.1136 -@end table
 10.1137 -
 10.1138 -@noindent 
 10.1139 -は、あらかじめ設定したリジョンに対しての操作、
 10.1140 -
 10.1141 -@table @kbd
 10.1142 -@item [prefix] .
 10.1143 -        @dots{} 現在のパラグラフをコメントアウト
 10.1144 -@item [prefix] ,
 10.1145 -        @dots{} 現在のパラグラフのコメントを外す
 10.1146 -@end table
 10.1147 -
 10.1148 -@noindent 
 10.1149 -は、カーソルの位置するパラグラフ全体に対しての操作です。なお、ここでいう
 10.1150 -「パラグラフ」は (@code{mark-paragraph}) 関数によりマークされる範囲を指し
 10.1151 -ます(標準設定で@kbd{ESC h}にバインドされている)。なお、既に@code{%}でコメ
 10.1152 -ントアウトされているパラグラフに対して繰り返しパラグラフのコメントを使用し
 10.1153 -た場合の動作は保証しませんので御注意ください。
 10.1154 -
 10.1155 -  さて、文章に対してだけでなく、時には@code{\begin}, @code{\end} 自体に対
 10.1156 -してもコメントアウトの操作をしたいときがあります。このようなときは、
 10.1157 -@code{\begin@{@}} あるいは @code{\end@{@}} の行にカーソルを合わせ、
 10.1158 -
 10.1159 -@table @kbd
 10.1160 -@item [prefix] >
 10.1161 -        @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントアウト
 10.1162 -@item [prefix] <
 10.1163 -        @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントを外す
 10.1164 -@end table
 10.1165 -
 10.1166 -@noindent 
 10.1167 -とすることで、@code{\begin〜\end}で囲まれる環境全てに対してコメント操作し、
 10.1168 -
 10.1169 -@table @kbd
 10.1170 -@item [prefix] .
 10.1171 -        @dots{} @code{\begin@{@}} と @code{\end@{@}} をコメントアウト
 10.1172 -@item [prefix] ,
 10.1173 -        @dots{} @code{\begin@{@}} と @code{\end@{@}} のコメントを外す
 10.1174 -@end table
 10.1175 -
 10.1176 -は、対応する @code{\begin} と @code{\end} 2行だけを、コメント操作の対象と
 10.1177 -します。リジョンをコメントアウトしようとして、マークを設定したのちにカーソ
 10.1178 -ルを移動し@kbd{[preifx] >} を押してもカーソルが @code{\begin@{@}} の上にあ
 10.1179 -ると@code{\begin@{@}}〜@code{\end@{@}}モードでコメント機能が働いてしまうの
 10.1180 -で注意して下さい。
 10.1181 -
 10.1182 -@node Cursor jump, Modifying/Deleting, Commenting out, Top
 10.1183 -@comment  node-name,  next,  previous,  up
 10.1184 -@chapter カーソルジャンプ
 10.1185 -@cindex カーソルジャンプ[かあそるしやんふ]
 10.1186 -@cindex prefix g
 10.1187 -
 10.1188 -
 10.1189 -@menu
 10.1190 -* 対応オブジェクトへのジャンプ::  
 10.1191 -* お絵描きツール起動::          
 10.1192 -* メインファイルへのジャンプ::  
 10.1193 -* 環境を単位としたジャンプ::    
 10.1194 -* 最後の補完位置へのジャンプ::  
 10.1195 -@end menu
 10.1196 -
 10.1197 -@node 対応オブジェクトへのジャンプ, お絵描きツール起動, Cursor jump, Cursor jump
 10.1198 -@comment  node-name,  next,  previous,  up
 10.1199 -@section 対応オブジェクトへのジャンプ
 10.1200 -
 10.1201 -  文書中のいろいろな場所で
 10.1202 -
 10.1203 -@table @kbd
 10.1204 -@item [prefix] g
 10.1205 -        @dots{} 対応するオブジェクトにジャンプ
 10.1206 -@end table
 10.1207 -
 10.1208 -@noindent 
 10.1209 -を押すことにより、カーソル位置のLa@TeX{}コマンドに対応する場所にジャンプ
 10.1210 -します。対応関係が存在すると解釈されるコマンドには以下のものがあります。
 10.1211 -
 10.1212 -@itemize @bullet
 10.1213 -@item @code{\begin@{@}} ←→ @code{\end@{@}}
 10.1214 -@item @code{%#BEGIN} ←→ @code{%#END}
 10.1215 -@item 画像ファイルの取り込みマクロ → 対応するviewer/お絵かきツール起動
 10.1216 -@item @code{\label@{@}} ←→ @code{\ref@{@}}
 10.1217 -@item @code{\include(\input)} → 対応するファイル
 10.1218 -@item @code{\bibitem@{@}} ←→ @code{\cite@{@}}
 10.1219 -@end itemize
 10.1220 -
 10.1221 -  @code{\begin@{@}} か @code{\end@{@}} の行で@kbd{[prefix] g}を押すことに
 10.1222 -より、対応する@code{end/begin}の行にジャンプします。もちろん対応するものが
 10.1223 -ない場合はエラーになります。またこれは、領域固定のための @code{%#BEGIN} と 
 10.1224 -@code{%#END} のペアに対しても同様に動作します。なお、@code{label/ref}や
 10.1225 -@code{cite/bibitem}対応するものが別ファイルにある時は、ジャンプ先となるファ
 10.1226 -イルがオープンされていなければなりません。@xref{%#notation}.
 10.1227 -メインの .tex ファイルの @code{\include@{chap1@}} などにカーソルを合わせ、
 10.1228 -@kbd{[prefix] g} を押すと、@file{chap1.tex} にジャンプします。
 10.1229 -
 10.1230 -また、
 10.1231 -
 10.1232 -@table @kbd
 10.1233 -@item [prefix] 4 g
 10.1234 -        @dots{} 別ウィンドウで対応オブジェクトにジャンプ
 10.1235 -@end table
 10.1236 -
 10.1237 -@noindent
 10.1238 -を押すと、対応するオブジェクトへのジャンプを別ウィンドウで行います。ただし、
 10.1239 -この機能は @code{begin/end}, @code{%#BEGIN/%#END} 間のジャンプに対しては
 10.1240 -(意味がないと思われるので)機能しないので注意してください。
 10.1241 -
 10.1242 -@node お絵描きツール起動, メインファイルへのジャンプ, 対応オブジェクトへのジャンプ, Cursor jump
 10.1243 -@comment  node-name,  next,  previous,  up
 10.1244 -@section お絵描きツール起動
 10.1245 -@cindex お絵描きツール起動[おえかきつうるきとう]
 10.1246 -
 10.1247 -上記の「画像ファイルの取り込みマクロ」とは、例えば 
 10.1248 -@code{\epsfile@{file=foo@}} のような挿絵取り込みコマンドのことで、この行に
 10.1249 -カーソルを合わせて@kbd{[prefix] g}を押すとその画像ファイルの元となったファ
 10.1250 -イルを対応するお絵描きツールを起動してオープンします。起動するツールの判定
 10.1251 -は以下のようになされます。
 10.1252 -
 10.1253 -@enumerate
 10.1254 -@item
 10.1255 -カレント行が変数 @code{YaTeX-processed-file-regexp-alist} に定義さ
 10.1256 -れている正規表現のいずれかとマッチしたら、ファイル名に相当する部分を 
 10.1257 -\\(\\)から抜き出して覚えておく(何番目の\\(\\)かは変数の各リストの cdr 部に
 10.1258 -入れておく)。マッチしなければ何もしない。
 10.1259 -@item
 10.1260 -行末に、変数 @code{YaTeX-file-processor-alist} に登録されているコマンドが
 10.1261 -「%コマンド」 のように書いてあれば強制的に「コマンド ファイル名.拡張子」を
 10.1262 -起動。
 10.1263 -@item
 10.1264 -なければ、変数 @code{YaTeX-file-processor-alist} の各リストのcdr部に入って
 10.1265 -いる拡張子を「ファイル名」の後ろに足したファイルが存在するか順次調べて、存
 10.1266 -在した場合car部に入っているコマンドを起動する。
 10.1267 -@item
 10.1268 -以上どれかにマッチしなければあきらめる。
 10.1269 -@end enumerate
 10.1270 -
 10.1271 -
 10.1272 -変数 @code{YaTeX-file-processor-alist} と変数 
 10.1273 -@code{YaTeX-file-processor-alist} の設定方法についてはそれぞれの変数につい
 10.1274 -て describe-variable して説明を読んで下さい。うまく設定すると、画像ファイ
 10.1275 -ルにかぎらず、任意の形式のファイルを任意のプロセッサで処理するコマンドを簡
 10.1276 -単に呼び出すことができます。
 10.1277 -
 10.1278 -@node メインファイルへのジャンプ, 環境を単位としたジャンプ, お絵描きツール起動, Cursor jump
 10.1279 -@comment  node-name,  next,  previous,  up
 10.1280 -@section メインファイルへのジャンプ
 10.1281 -
 10.1282 -@file{chap1.tex}のようなサブファイルで、
 10.1283 -
 10.1284 -@table @kbd
 10.1285 -@item [prefix] ^
 10.1286 -        @dots{} メインファイルにジャンプ
 10.1287 -@item [prefix] 4 ^
 10.1288 -        @dots{} 別ウィンドウでメインファイルにジャンプ
 10.1289 -@end table
 10.1290 -
 10.1291 -@noindent 
 10.1292 -を押すと、メインファイルの編集バッファに切替えます。もし、メインファイルを
 10.1293 -オープンしていない場合は、カレントディレクトリから探して自動的にオープンし
 10.1294 -ます。
 10.1295 -
 10.1296 -@node 環境を単位としたジャンプ, 最後の補完位置へのジャンプ, メインファイルへのジャンプ, Cursor jump
 10.1297 -@comment  node-name,  next,  previous,  up
 10.1298 -@section 環境を単位としたジャンプ
 10.1299 -
 10.1300 -さらに現在の環境を単位として機能するコマンドに以下のものがあります。
 10.1301 -
 10.1302 -@cindex 環境の先頭へ[かんきようのせんとうへ]
 10.1303 -@cindex 環境の末尾へ[かんきようのまつひへ]
 10.1304 -@cindex 環境をマーク[かんきようをまあく]
 10.1305 -@cindex M-C-a
 10.1306 -@cindex M-C-e
 10.1307 -@cindex M-C-@@
 10.1308 -@table @kbd
 10.1309 -@item M-C-a
 10.1310 -        @dots{} 環境の先頭(@code{\begin})へジャンプ
 10.1311 -@item M-C-e
 10.1312 -        @dots{} 環境の末尾(@code{\end})へジャンプ
 10.1313 -@item M-C-@@
 10.1314 -        @dots{} 環境全体をマーク
 10.1315 -@end table
 10.1316 -
 10.1317 -上記のコマンドは通常の@kbd{[prefix]}キーではなく@kbd{META}キーをプリフィク
 10.1318 -スとして機能するのでご注意下さい。
 10.1319 -
 10.1320 -@node 最後の補完位置へのジャンプ,  , 環境を単位としたジャンプ, Cursor jump
 10.1321 -@comment  node-name,  next,  previous,  up
 10.1322 -@section 最後の補完位置へのジャンプ
 10.1323 -
 10.1324 -野鳥は補完入力した位置を常にレジスタ @code{3}に保存しています。
 10.1325 -入力途中で如何なるファイルの如何なる位置に行ったとしても、
 10.1326 -@kbd{C-x j 3}(@code{jump-to-register})を使って直ちに最後の補完入力位置に戻
 10.1327 -ることができます。
 10.1328 -
 10.1329 -@node Modifying/Deleting, Filling, Cursor jump, Top
 10.1330 -@comment  node-name,  next,  previous,  up
 10.1331 -@chapter 変更/削除
 10.1332 -@cindex 変更/削除[へんこう/さくしよ]
 10.1333 -@cindex prefix c
 10.1334 -@cindex prefix k
 10.1335 -
 10.1336 -  既に入力されている La@TeX{} コマンドの変更/削除のために以下の機能が用意
 10.1337 -されています。
 10.1338 -
 10.1339 -@table @kbd
 10.1340 -@item [prefix] c
 10.1341 -        @dots{} カーソル位置の La@TeX{} コマンドの変更
 10.1342 -@item [prefix] k
 10.1343 -        @dots{} カーソル位置の La@TeX{} コマンドの削除
 10.1344 -@end table
 10.1345 -
 10.1346 -@noindent 
 10.1347 -これらのコマンドは、コマンドを起動する場所によって動作を決定するので注意し
 10.1348 -て下さい。
 10.1349 -
 10.1350 -@menu
 10.1351 -* Changing LaTeX command::      La@TeX{} コマンドの変更
 10.1352 -* Killing LaTeX command::       La@TeX{} コマンドの削除
 10.1353 -@end menu
 10.1354 -
 10.1355 -@node Changing LaTeX command, Killing LaTeX command, Modifying/Deleting, Modifying/Deleting
 10.1356 -@comment  node-name,  next,  previous,  up
 10.1357 -@section La@TeX{} コマンドの変更
 10.1358 -
 10.1359 -変更したい La@TeX{} コマンドにカーソルを合わせて @kbd{[prefix] c} 
 10.1360 -を押すとそのコマンドを補完入力などを用いて手軽に変えることができます。
 10.1361 -@kbd{[prefix] c} で変更できるコマンドには以下のものがあります。
 10.1362 -
 10.1363 -@itemize
 10.1364 -@item @code{begin/end} の環境名
 10.1365 -@item section型コマンドのコマンド名
 10.1366 -@item section型コマンドの引数
 10.1367 -@item section型コマンドのオプションパラメータ([]で囲まれたもの)
 10.1368 -@item large型コマンド
 10.1369 -@item (イメージ補完で入力可能な)数式モード専用のmaketitle型コマンド
 10.1370 -@end itemize
 10.1371 -
 10.1372 -  変えたいsection型コマンドの引数がさらに La@TeX{} コマンドを含む場合は、
 10.1373 -その引数を囲む中括弧の上で @kbd{[prefix] c} を押すことで中のコマンドを変更
 10.1374 -対象判定から除外することができます。
 10.1375 -
 10.1376 -@cindex 環境名の変更[かんきようめいのへんこう]
 10.1377 -
 10.1378 -@node Killing LaTeX command,  , Changing LaTeX command, Modifying/Deleting
 10.1379 -@comment  node-name,  next,  previous,  up
 10.1380 -@section La@TeX{} コマンドの削除
 10.1381 -
 10.1382 -@kbd{[prefix] k} は起動する位置により
 10.1383 -次のような動作を行います。
 10.1384 -@cindex 環境の削除[かんきようのさくしよ]
 10.1385 -
 10.1386 -
 10.1387 -@example
 10.1388 -起動位置                        動作
 10.1389 -\begin, \endの行                @code{\begin\end}ペアの削除
 10.1390 -%#BEGIN, %#END の行             %#BEGIN,%#ENDペアの削除
 10.1391 -section型コマンドの上(中)       section型コマンドの削除
 10.1392 -フォント指定括弧の上            フォント指定の削除
 10.1393 -括弧の上                        対をなす括弧の削除
 10.1394 -@end example
 10.1395 -
 10.1396 -@noindent 
 10.1397 -@code{\begin, \end} および @code{%#BEGIN, %#END} を削除する場合、
 10.1398 -@code{\begin, \end} や @code{%#BEGIN, %#END} の存在する行は
 10.1399 -まるごと削除されるので、それらの一行に @code{\begin} などを二つ以上連ねて
 10.1400 -書かないように注意してください。
 10.1401 -上記のものはすべて本文を囲う「容器」を削除するように働きますが、
 10.1402 -universal-argument (@kbd{C-u}) を打った後で@kbd{[prefix] k}をタイプすると、
 10.1403 -それぞれの「容器」に含まれる「中身」も一気に削除します。以下の例を参考にし
 10.1404 -て下さい。
 10.1405 -
 10.1406 -@example
 10.1407 -        元のテキスト:                   [prefix] k      C-u [prefix] k
 10.1408 -        本文\footnote@{脚注@}です。     本文脚注です。  本文です。
 10.1409 -                ↑(カーソル位置)
 10.1410 -@end example
 10.1411 -
 10.1412 -@node Filling, Includeonly, Modifying/Deleting, Top
 10.1413 -@comment  node-name,  next,  previous,  up
 10.1414 -@chapter 桁揃え
 10.1415 -@cindex 桁揃え[けたそろえ]
 10.1416 -
 10.1417 -@section itemの桁揃え
 10.1418 -@cindex itemなどの桁揃え[itemなとのけたそろえ]
 10.1419 -@cindex prefix i
 10.1420 -
 10.1421 -  itemize 環境中にある@code{\item}の項目(文章)が複数行に渡る場合に、項
 10.1422 -目の先頭を桁揃えしたい場合には、
 10.1423 -
 10.1424 -@c @table @kbd
 10.1425 -@c @item [prefix] i
 10.1426 -@c         @dots{} itemの桁揃え
 10.1427 -@c @end table
 10.1428 -
 10.1429 -@table @kbd
 10.1430 -@item M-q
 10.1431 -        @dots{} 桁揃え
 10.1432 -@end table
 10.1433 -
 10.1434 -@cindex NTT-jTeX[えぬていいていいしえいてつく]
 10.1435 -@noindent 
 10.1436 -によって、その item のインデントの深さに応じて fill されます。なお、古い
 10.1437 -NTT jTeX を使用している場合には、Lisp 変数@code{NTT-jTeX}を@code{t}にセッ
 10.1438 -トして下さい。
 10.1439 -
 10.1440 -@cindex YaTeX-item-regexp
 10.1441 -  このとき、変数@code{YaTeX-item-regexp}の値(標準では @code{"\\\\item"})を
 10.1442 -項目指定コマンドの正規表現として検索に使用します。itemize 環境で、独自のコ
 10.1443 -マンドを定義して項目を列挙している場合(例えば@code{\underlineitem})は、
 10.1444 -@file{~/.emacs} で次のように指定して下さい。
 10.1445 -
 10.1446 -@lisp
 10.1447 -        (setq YaTeX-item-regexp
 10.1448 -              "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)")
 10.1449 -@end lisp
 10.1450 -
 10.1451 -@noindent 
 10.1452 -この変数の指定の仕方がよく分からない場合は、独自の項目列挙コマンドの名前を
 10.1453 -@code{@code{"\item"}で始まるものにして下さい(例えば"\itembf"})。
 10.1454 -
 10.1455 -野鳥の @kbd{M-q} では @code{\item} を環境に応じて以下のように「ハングイン
 10.1456 -デント」します。
 10.1457 -
 10.1458 -@example
 10.1459 -itemize, enumerate環境:
 10.1460 -       >\item[ほげほげ] 英語では、特に意味のない単語を `foo' であらわしま
 10.1461 -       >                すが、これの日本語版ともいえる単語が「ほげほげ」
 10.1462 -       >                です。
 10.1463 -description環境:
 10.1464 -       > \item[へろへろ] 「ほげほげ」をでたらめが単語として使った時に、第
 10.1465 -       >            2のでたらめな単語として「へろへろ」が使われることが多
 10.1466 -       >            いようです。
 10.1467 -@end example
 10.1468 -
 10.1469 -@section パラグラフの桁揃え
 10.1470 -@cindex パラグラフの桁揃え[はらくらふのけたそろえ]
 10.1471 -@cindex M-q
 10.1472 -
 10.1473 -  itemize環境以外でのパラグラフの桁揃え(fill)は、基本的に他のモードと同じ
 10.1474 -ように機能しますが、verbatim環境や、tabular環境など桁揃えをすると悲惨な状
 10.1475 -況になるような環境中では機能しません。また、\verb で括ってあるものは決して
 10.1476 -行分割されません(変数 @code{YaTeX-verb-regexp} で制御) )。さらに、一時的に
 10.1477 -インデントの深さを変えてある箇所では、そのインデントの先頭で@kbd{M-q}を押
 10.1478 -すことにより fill-prefix をいちいち変更しなくて桁揃えができます。
 10.1479 -
 10.1480 -
 10.1481 -@node Includeonly, What column, Filling, Top
 10.1482 -@comment  node-name,  next,  previous,  up
 10.1483 -@chapter 勝手にincludeonly
 10.1484 -@cindex 勝手にincludeonly[かつてにincludeonly]
 10.1485 -@cindex includeonly
 10.1486 -
 10.1487 -  ファイルを分割して文章を入力している時には、メインファイル中に
 10.1488 -
 10.1489 -@example
 10.1490 -        \includeonly@{現在編集中のファイル名@}
 10.1491 -@end example
 10.1492 -
 10.1493 -@noindent 
 10.1494 -のように書いておくことで、タイプセットの時間を節約できますが、ちょっと他の
 10.1495 -ファイルを手直ししたい時には
 10.1496 -@cindex 他のファイルの手直し[ほかのふあいるのてなおし]
 10.1497 -
 10.1498 -@example
 10.1499 -        \includeonly@{ちょっと手直ししたいファイル名@}
 10.1500 -@end example
 10.1501 -
 10.1502 -@noindent 
 10.1503 -と書き直さなければならず手間がかかります。野鳥では現在編集しているファイル
 10.1504 -名がメインファイルの@code{\includeonly}にない場合には自動的にこれを検出し、
 10.1505 -次の指示を仰ぎます。
 10.1506 -
 10.1507 -@example
 10.1508 -        A)dd R)eplace %)comment?
 10.1509 -@end example
 10.1510 -
 10.1511 -@noindent 
 10.1512 -現在編集中のファイルを @code{\includeonly} のリストに加えたい時には@kbd{a}
 10.1513 -を、現在編集中のファイルだけを @code{\includeonly} にしたい時は@kbd{r}を、
 10.1514 -@code{\includeonly} の行をコメントアウトして無効化したい時には、@kbd{%}を
 10.1515 -それぞれ押して下さい。
 10.1516 -
 10.1517 -@node What column, Intelligent newline, Includeonly, Top
 10.1518 -@comment  node-name,  next,  previous,  up
 10.1519 -@chapter ここはどこ?
 10.1520 -@cindex ここはどこ?[ここはとこ?]
 10.1521 -@cindex prefix &
 10.1522 -@cindex 複雑なtabular[ふくさつなtabular]
 10.1523 -
 10.1524 -  項目数の多い tabular などをたくさん書いていると下の方の行で、いま書いて
 10.1525 -いる桁がどこに対応するのかわからなくなってしまうことがあります。例えば、以
 10.1526 -下のような tabular において、
 10.1527 -
 10.1528 -@example
 10.1529 -        \begin@{tabular@}@{|c|c|c|c|c|c|c|c|@}\hline
 10.1530 -         氏名&所属&〒&住所&電話&FAX&帰省先&帰省先電話\\ \hline
 10.1531 -         矢上二郎 & 6 & 223 & 横浜市港北区日吉 & xxx-yyy &
 10.1532 -                zzz-www & トンガ & 9876-54321 \\
 10.1533 -         日吉小僧 & 2 & \multicolumn@{2@}@{c|@}@{教えない@}
 10.1534 -                &&&(???)
 10.1535 -         \\ \hline
 10.1536 -        \end@{tabular@}
 10.1537 -@end example
 10.1538 -
 10.1539 -@noindent 
 10.1540 -(???)の部分がどの項目なのかすぐに判断するのは難しいでしょう。こんな時は、
 10.1541 -
 10.1542 -@table @kbd
 10.1543 -@item [prefix] &
 10.1544 -        @dots{} 現在のカラム表示
 10.1545 -@end table
 10.1546 -@cindex 現在のカラム表示[けんさいのからむひようし]
 10.1547 -
 10.1548 -を押すとカーソル位置のカラムがどの項目に該当するかをミニバッファに表示しま
 10.1549 -す。tabular/array環境の第1行目を項目名の並びとみなして対応するものを探しま
 10.1550 -す。もし項目名として別のものを表示して欲しい場合は、行頭を@code{%}にしてダ
 10.1551 -ミーの項目並びを作っておくと良いでしょう。
 10.1552 -
 10.1553 -@node Intelligent newline, Usepackage cheker, What column, Top
 10.1554 -@comment  node-name,  next,  previous,  up
 10.1555 -@chapter おまかせ改行
 10.1556 -@cindex おまかせ改行[おまかせかいきよう]
 10.1557 -@cindex &入力[&にゆうりよく]
 10.1558 -
 10.1559 -  tabular[*], array, itemize, enumerate, tabbing 環境をbegin型補完で入力し
 10.1560 -た時、または各環境内で
 10.1561 -
 10.1562 -@table @kbd
 10.1563 -@item ESC RET
 10.1564 -        @dots{} おまかせ改行
 10.1565 -@end table
 10.1566 -
 10.1567 -@noindent 
 10.1568 -を押すと、その環境に応じた行エントリを次の行に挿入します(begin型補完時に自
 10.1569 -動挿入されたエントリが不要な場合は undo によって消去できます)。例えば、
 10.1570 -tabular環境では、その環境のカラム数に対応した個数の @code{&} に加え、行末
 10.1571 -の @code{\\} を入れます。この時それ以前に @code{\hline} があればそれも付け
 10.1572 -加えます。環境とそれに応じて自動入力するものの対応は以下のようになります。
 10.1573 -
 10.1574 -@itemize
 10.1575 -@item @code{tabular}, @code{tabular*}, @code{array}
 10.1576 -
 10.1577 -        カラム数-1 だけの @code{&} と @code{\\}。必要に応じて @code{\hline}
 10.1578 -
 10.1579 -@item @code{tabbing}
 10.1580 -
 10.1581 -        一行目で定義している @code{\=} と同じ個数の @code{\>}。
 10.1582 -
 10.1583 -@item @code{itemize}, @code{enumerate}, @code{description}, @code{list}
 10.1584 -
 10.1585 -        @code{\item} または @code{item[]}
 10.1586 -@end itemize
 10.1587 -
 10.1588 -  tabular 環境の例のように、本機能は各環境の一行目の内容を参考にして動作す
 10.1589 -るので、なるべく二行目以降で呼び出すようにしてください。
 10.1590 -
 10.1591 -  もし、その他の環境、例えば @code{foo}、に対して@code{おまかせ改行}を動作
 10.1592 -させたい時は、@code{YaTeX-intelligent-newline-foo} という名前の関数を定義
 10.1593 -します。定義した関数は、現在の行に改行を挿入した直後の行頭の位置で呼ばれま
 10.1594 -す。関数 @code{YaTeX-indent-line} を呼ぶと現在の環境のネストに応じた深さに
 10.1595 -インデントされるので、これを呼んでから何かを挿入するようなコードを書くとよ
 10.1596 -いでしょう。@file{yatexenv.el}内の関数 
 10.1597 -@code{YaTeX-intelligent-newline-itemize} の定義などを参考にしてください。
 10.1598 -
 10.1599 -
 10.1600 -@node Usepackage cheker, Changing mode of YaTeX, Intelligent newline, Top
 10.1601 -@comment  node-name,  next,  previous,  up
 10.1602 -@chapter 先回りusepackage
 10.1603 -@cindex 先回りusepackage[さきまわり]
 10.1604 -
 10.1605 -  begin型、section型、maketitle型、いずれかのLaTeX2eマクロを補完入力すると、
 10.1606 -そのマクロの利用に外部パッケージを必要とする場合、そのパッケージを
 10.1607 -本文中で @code{\usepackage@{@}} しているかどうかを調査し、もししていなければ
 10.1608 -プリアンブルに対応するパッケージを引数にした @code{\usepackage} 文を
 10.1609 -(確認後に)挿入します。
 10.1610 -
 10.1611 -  ただしこの機能が働くためには、パッケージ名とその中で定義されているマクロ
 10.1612 -群をalistの形式で変数 @code{YaTeX-package-alist-private} に設定しておく必
 10.1613 -要があります。
 10.1614 -
 10.1615 -@node Changing mode of YaTeX, Online help, Usepackage cheker, Top
 10.1616 -@comment  node-name,  next,  previous,  up
 10.1617 -@chapter 野鳥の動作モード切り替え
 10.1618 -@cindex モード切り替え[もうときりかえ]
 10.1619 -@cindex prefix w
 10.1620 -
 10.1621 -@table @kbd
 10.1622 -@item [prefix] w
 10.1623 -        @dots{} 野鳥動作モード切り替えメニュー
 10.1624 -@end table
 10.1625 -
 10.1626 -@noindent
 10.1627 -で野鳥自身の動作を決定する以下のモードを切り替えます。
 10.1628 -
 10.1629 -@itemize @bullet
 10.1630 -@item 修正モード
 10.1631 -@item 野鳥数式モード
 10.1632 -@end itemize
 10.1633 -
 10.1634 -修正モードは、開き括弧入力時の処理をコントロールし、修正モードONの時は開き
 10.1635 -括弧の入力は開き括弧のみの入力になり、修正モードOFFの時は開き括弧の入力だ
 10.1636 -けで閉じ括弧まで入力します。デフォルト(起動時)の設定は@emph{OFF}です。
 10.1637 -
 10.1638 -  野鳥数式モードは、変数 @code{YaTeX-auto-math-mode} が @code{nil} の時の
 10.1639 -み有効で、このとき@kbd{;}や@kbd{:}を押した時(@ref{Image completion}参照)に、
 10.1640 -どのようなイメージ補完を機能させるか、通常のキーとして機能させるかを手動で
 10.1641 -切り替えます。自動判定が遅いマシンでは@code{YaTeX-auto-math-mode}
 10.1642 -@code{nil}にセットし、野鳥数式モードを手動で切り替えると良いでしょう。
 10.1643 -
 10.1644 -
 10.1645 -@node Online help, Inclusion hierarchy browser, Changing mode of YaTeX, Top
 10.1646 -@comment  node-name,  next,  previous,  up
 10.1647 -@chapter オンラインヘルプ
 10.1648 -@cindex オンラインヘルプ[おんらいんへるふ]
 10.1649 -@cindex apropos
 10.1650 -@cindex キーワード検索[きいわあとけんさく]
 10.1651 -@cindex prefix ?
 10.1652 -@cindex prefix /
 10.1653 -
 10.1654 -  使おうとする La@TeX{} コマンドの用法がよく分からない時は、オンラインヘル
 10.1655 -プをひきましょう。ヘルプに関するキーには以下のものがあります。
 10.1656 -
 10.1657 -@table @kbd
 10.1658 -@item [prefix] ?
 10.1659 -        @dots{} オンラインヘルプ
 10.1660 -@item [prefix] /
 10.1661 -        @dots{} オンラインapropos
 10.1662 -@end table
 10.1663 -
 10.1664 -@section オンラインヘルプ
 10.1665 -@cindex グローバルヘルプ[くろおはるへるふ]
 10.1666 -@cindex プライベートヘルプ[ふらいへえとへるふ]
 10.1667 -@cindex YaTeX-help-file
 10.1668 -@cindex YaTeX-help-file-private
 10.1669 -
 10.1670 -  「オンラインヘルプ」は、一般的な La@TeX{} コマンド(デフォルトでカーソル
 10.1671 -位置のコマンド)に対する説明を隣のバッファに表示します。この時参照されるヘ
 10.1672 -ルプ用ファイルには「グローバルヘルプ」と「プライベートヘルプ」の二種類があ
 10.1673 -り、前者は La@TeX{} の標準コマンドの主なものの説明を含むファイルで、変数
 10.1674 -@code{YaTeX-help-file}の値で指定されます。このファイルは通常公共の場所(デ
 10.1675 -フォルトで@code{$EMACSEXECPATH})に置かれ、誰もがその内容を更新できるように
 10.1676 -全員に書き込み権が与えられるべきものです。後者は、非標準もしくは個人的なマ
 10.1677 -クロ定義に関する説明が書かれているファイルで、変数
 10.1678 -@code{YaTeX-help-file-private}の値で指定されます。こちらはユーザのホームディ
 10.1679 -レクトリの下などに置かれます。
 10.1680 -
 10.1681 -@section オンラインapropos
 10.1682 -
 10.1683 -  「オンラインapropos」は GNU Emacs の apropos と同様、ユーザが指定したキー
 10.1684 -ワードを説明文に含む項目すべてを隣のバッファに表示します。
 10.1685 -
 10.1686 -  もし、調べようとしたLa@TeX{}コマンドに対する説明がヘルプファイル中に見つ
 10.1687 -からなかった場合は、説明文の入力を求めてくるので、可能であれば参考書などを
 10.1688 -調べてそのコマンドの説明を入力してください。もし、なにか標準的なコマンドに
 10.1689 -対する説明を書いたならばぜひ私までその説明をお送り下さい。次回の配布に含め
 10.1690 -たいと思います。
 10.1691 -
 10.1692 -@node Inclusion hierarchy browser, Cooperation with other packages, Online help, Top
 10.1693 -@comment  node-name,  next,  previous,  up
 10.1694 -@chapter インクルード構造ブラウザ
 10.1695 -@cindex インクルード構造[いんくるうとこうそう]
 10.1696 -@cindex prefix d
 10.1697 -
 10.1698 -複数のファイルに分割しているドキュメントを書いている場合、
 10.1699 -
 10.1700 -@table @kbd
 10.1701 -@item [prefix] d
 10.1702 -        @dots{} インクルード構造ブラウズ
 10.1703 -@end table
 10.1704 -
 10.1705 -@noindent
 10.1706 -を押すと、そのドキュメントの親ファイルを聞いて来ます。ここで全てのファイル
 10.1707 -の親となるファイル(デフォルトが示されているので大抵はRETのみ)を入力すると
 10.1708 -インクルードしている全てのファイルを解析し、インクルード状況を視覚的に表示
 10.1709 -します。このバッファでは以下のキー操作が有効です。
 10.1710 -
 10.1711 -@table @kbd
 10.1712 -@item n
 10.1713 -        @dots{} 次の行に移動し対応するファイルを隣のバッファに表示
 10.1714 -@item p
 10.1715 -        @dots{} 上の行に移動し対応するファイルを隣のバッファに表示
 10.1716 -@item N
 10.1717 -        @dots{} 同じインクルードレベルの次のファイルに移動
 10.1718 -@item P
 10.1719 -        @dots{} 同じインクルードレベルの前のファイルに移動
 10.1720 -@item j
 10.1721 -        @dots{} 次の行に移動
 10.1722 -@item k
 10.1723 -        @dots{} 上の行に移動
 10.1724 -@item u
 10.1725 -        @dots{} 一代親にあたるファイルに移動
 10.1726 -@item .
 10.1727 -        @dots{} カーソル位置のファイルを隣のバッファに表示
 10.1728 -@item SPC
 10.1729 -        @dots{} 隣のバッファの対応ファイルをスクロールアップ
 10.1730 -@item DEL, b
 10.1731 -        @dots{} 隣のバッファの対応ファイルをスクロールダウン
 10.1732 -@item <
 10.1733 -        @dots{} 隣のバッファの対応ファイルの先頭を表示
 10.1734 -@item >
 10.1735 -        @dots{} 隣のバッファの対応ファイルの末尾を表示
 10.1736 -@item '
 10.1737 -        @dots{} (@kbd{<}や@kbd{>}の後で)元の表示位置に戻る
 10.1738 -@item RET, g
 10.1739 -        @dots{} カーソル位置のファイルを隣のバッファでオープン
 10.1740 -@item mouse-2
 10.1741 -        @dots{} RETと同じ(ウィンドウ使用時のみ)
 10.1742 -@item o
 10.1743 -        @dots{} 隣のウィンドウに移動
 10.1744 -@item 1
 10.1745 -        @dots{} 他のウィンドウを消す
 10.1746 -@item -
 10.1747 -        @dots{} ブラウズウィンドウを小さくする
 10.1748 -@item +
 10.1749 -        @dots{} ブラウズウィンドウを大きくする
 10.1750 -@item ?
 10.1751 -        @dots{} ヘルプ表示
 10.1752 -@item q
 10.1753 -        @dots{} 表示前の状態に戻る
 10.1754 -@end table
 10.1755 -
 10.1756 -  ただし、隣のウィンドウのファイルの内容を表示する機能に関しては、対応する
 10.1757 -ファイルをクローズしてしまうとうまく働きませんのでご注意ください。
 10.1758 -
 10.1759 -@node Cooperation with other packages, Customizations, Inclusion hierarchy browser, Top
 10.1760 -@comment  node-name,  next,  previous,  up
 10.1761 -@chapter 他パッケージとの連携
 10.1762 -@cindex  他パッケージとの連携[たはつけえしとのれんけい]
 10.1763 -
 10.1764 -@section gmhist
 10.1765 -@cindex gmhist
 10.1766 -@cindex コマンドヒストリ[こまんとひすとり]
 10.1767 -@cindex ヒストリ[ひすとり]
 10.1768 -
 10.1769 -  @file{gmhist.el}と@file{gmhist-mh.el} をロードしている場合、プレヴューコ
 10.1770 -マンドの入力(@kbd{[prefix] tp]})、印刷コマンドの入力(@kbd{[prefix] tl})の
 10.1771 -時に独立したヒストリを利用できます。それぞれのプロンプトで、@kbd{M-p} を押
 10.1772 -すと直前に利用したコマンド文字列をくり返し呼び出すことができます。
 10.1773 -
 10.1774 -@section min-out
 10.1775 -@cindex min-out
 10.1776 -
 10.1777 -  @file{min-out.el} (@code{outline-minor-mode}) と野鳥を組み合わせて使うこ
 10.1778 -とももちろん可能です。設定の方法に関しては@file{yatexm-o.el}をご覧ください。
 10.1779 -
 10.1780 -@node Customizations, Etc, Cooperation with other packages, Top
 10.1781 -@comment  node-name,  next,  previous,  up
 10.1782 -@chapter カスタマイズ
 10.1783 -@cindex カスタマイズ[かすたまいす]
 10.1784 -@cindex キーアサイン[きいあさいん]
 10.1785 -
 10.1786 -  野鳥の動作を制御する種々の変数を独自に設定することにより、補完入
 10.1787 -力を起動するキーアサインを変えたり、環境名の補完候補をさらに充実さ
 10.1788 -せることなどができます。
 10.1789 -
 10.1790 -@menu
 10.1791 -* Lisp variables::              lisp 変数
 10.1792 -* Add-in functions::            付加関数(アドイン関数)
 10.1793 -@end menu
 10.1794 -
 10.1795 -@node Lisp variables, Add-in functions, Customizations, Customizations
 10.1796 -@comment  node-name,  next,  previous,  up
 10.1797 -@section lisp 変数
 10.1798 -@cindex prefixキー変更[prefixきいへんこう]
 10.1799 -
 10.1800 -  例えば prefix キーを @kbd{C-c} 以外のキーにしたい場合は、
 10.1801 -@code{YaTeX-prefix}に prefix キーにしたいシンボルを定義してください。さら
 10.1802 -に、「@kbd{C-c 英字}」というキーバインドは独自の関数が割り当ててあるので使
 10.1803 -いたくない。このような時は、@code{YaTeX-inhibit-prefix-letter} を @code{t} 
 10.1804 -に設定することにより、@kbd{C-c 英字…}のバインドが全て、対応する@kbd{C-c
 10.1805 -C-英字…}に変わります(ただし、begin型 large型補完の大文字起動によるリジョ
 10.1806 -ン指定は可能なままです。これも無効にしたい場合は@code{t}ではなく 1 にセッ
 10.1807 -トして下さい。)。
 10.1808 -
 10.1809 -@menu
 10.1810 -* All customizable variables::  カスタマイズ変数一覧
 10.1811 -* Sample definitions::          カスタマイズ変数設定例
 10.1812 -* Hook variables::              hook変数
 10.1813 -* Hook file::                   hook用ファイル
 10.1814 -@end menu
 10.1815 -
 10.1816 -@node All customizable variables, Sample definitions, Lisp variables, Lisp variables
 10.1817 -@comment  node-name,  next,  previous,  up
 10.1818 -@subsection カスタマイズ変数一覧
 10.1819 -@cindex カスタマイズ変数一覧[かすたまいすへんすういちらん]
 10.1820 -
 10.1821 -  yatex-mode における次の変数がカスタマイズ可能です。@file{~/.emacs} で 
 10.1822 -@code{setq} しておけば、そちらの定義が優先されます。括弧の中はデフォルト値
 10.1823 -です。実際に変数の値を変更する場合は @kbd{M-x describe-variable} で
 10.1824 -変数の詳細な説明を参照してください。
 10.1825 -
 10.1826 -@defvar YaTeX-prefix
 10.1827 -yatex-mode 中のプリフィクスキー (@kbd{\C-c})
 10.1828 -@end defvar
 10.1829 -
 10.1830 -@defvar YaTeX-inhibit-prefix-letter
 10.1831 -prefix キーの直後のキーバインドで @kbd{英字} のものを @kbd{C-英字} に変更 
 10.1832 -(@code{nil})
 10.1833 -@end defvar
 10.1834 -
 10.1835 -@defvar YaTeX-fill-prefix
 10.1836 -本文を書く時の行頭に挿入する接頭辞すなわち fill-prefix (@code{""(nil)})
 10.1837 -@end defvar
 10.1838 -
 10.1839 -@defvar YaTeX-user-completion-table
 10.1840 -学習したLa@TeX{}コマンド保存ファイル名 (@code{"~/.yatexrc"})
 10.1841 -@end defvar
 10.1842 -
 10.1843 -@defvar YaTeX-kanji-code
 10.1844 -文書を作成する時の漢字コード
 10.1845 -nil=既存のコードのまま 0=no-conversion 1=Shift JIS,
 10.1846 -2=JIS, 3=EUC, 4=UTF-8 (2 (MS-DOSでは1))
 10.1847 -@end defvar
 10.1848 -
 10.1849 -@defvar tex-command
 10.1850 +\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 
 10.1851 +\input texinfo
 10.1852 +@setfilename yatexj
 10.1853 +@settitle Yet Another tex-mode for Emacs
 10.1854 +@direntry
 10.1855 +* YaTeX: (yatexj).      Yet Another tex-mode for Emacs (Japanese).
 10.1856 +@end direntry
 10.1857 +
 10.1858 +@iftex
 10.1859 +@c @syncodeindex fn cp
 10.1860 +@c いつも忘れるのでここに書いとくか。
 10.1861 +@c C-l C-c n でノード入れ
 10.1862 +@c ノードいじったら C-l C-u C-n 全部のノード更新 C-l C-u C-e
 10.1863 +@c メニュー増やしたら C-l C-u C-m 全部のメニュー更新 C-l C-u C-a
 10.1864 +@c フォーマットするときは C-l C-e C-b
 10.1865 +@c Last modified Fri May 11 15:40:21 2012 on firestorm
 10.1866 +@syncodeindex vr cp
 10.1867 +@end iftex
 10.1868 +
 10.1869 +@titlepage
 10.1870 +@sp 10
 10.1871 +@center
 10.1872 +@subtitle Yet Another tex-mode for emacs
 10.1873 +@title 『野鳥』
 10.1874 +@subtitle // YaTeX //
 10.1875 +@author @copyright{} 1991-2012 by    HIROSE, Yuuji [yuuji@@yatex.org]
 10.1876 +@end titlepage
 10.1877 +
 10.1878 +@node Top, Intro, (dir), (dir)
 10.1879 +@comment  node-name,  next,  previous,  up
 10.1880 +
 10.1881 +@menu
 10.1882 +* Intro::                       はじめに
 10.1883 +* Terminology::                 マニュアル参照上の注意
 10.1884 +* Main features::               主な機能
 10.1885 +* Installation::                インストール
 10.1886 +* Invocation::                  プロセス起動
 10.1887 +* %#notation ::                 %#記法
 10.1888 +* Completion::                  補完入力
 10.1889 +* Local dictionary::            ローカル辞書
 10.1890 +* Commenting out::              コメントアウト
 10.1891 +* Cursor jump::                 カーソルジャンプ
 10.1892 +* Modifying/Deleting::          LaTeXコマンドの変更/削除
 10.1893 +* Filling::                     桁揃え
 10.1894 +* Includeonly::                 勝手に includeonly
 10.1895 +* What column::                 カラム位置ガイド
 10.1896 +* Intelligent newline::         おまかせ改行
 10.1897 +* Usepackage cheker::           先回りusepackage
 10.1898 +* Changing mode of YaTeX::      野鳥動作モード変更
 10.1899 +* Online help::                 LaTeXオンラインヘルプ
 10.1900 +* Inclusion hierarchy browser::  ファイル分割階層構造の表示
 10.1901 +* Cooperation with other packages::  他パッケージとの連携
 10.1902 +* Customizations::              カスタマイズ
 10.1903 +* Etc::                         その他
 10.1904 +* Copying::                     取り扱い
 10.1905 +* Concept Index::               索引
 10.1906 +
 10.1907 +@end menu
 10.1908 +
 10.1909 +@node Intro, Terminology, Top, Top
 10.1910 +@comment  node-name,  next,  previous,  up
 10.1911 +@chapter はじめに
 10.1912 +@cindex Demacs
 10.1913 +@cindex Mule
 10.1914 +@cindex LaTeX
 10.1915 +@cindex やちょう[やちよう]
 10.1916 +
 10.1917 +  野鳥は、GNU Emacs で La@TeX{} 用の文書を作成する時に pLa@TeX{} などの
 10.1918 +タイプセットコマンドや、プレヴューアの起動を Emacs 編集画面中から
 10.1919 +行えるようにすると共に、拡張性の高い種々の補完機能によりソーステキ
 10.1920 +ストの編集を支援します。さらに La@TeX{} コマンドのオンラインヘルプに
 10.1921 +よりマニュアルを調べる手間を軽減します。
 10.1922 +
 10.1923 +  English manual @xref{Top, , , yatexe,YaTeX English info}.
 10.1924 +
 10.1925 +@node Terminology, Main features, Intro, Top
 10.1926 +@comment  node-name,  next,  previous,  up
 10.1927 +@chapter 本マニュアル参照上の注意
 10.1928 +
 10.1929 +  本マニュアルでは以下の表記を用います。
 10.1930 +
 10.1931 +@itemize @bullet
 10.1932 +@item
 10.1933 +begin型コマンド
 10.1934 +
 10.1935 +@code{\begin@{環境@} 〜 \end@{環境@}}という形式のLaTeXコマンドを指します。
 10.1936 +begin型コマンドを補完入力することをbegin型補完と呼びます。
 10.1937 +
 10.1938 +@item
 10.1939 +section型コマンド
 10.1940 +
 10.1941 +@code{\section@{タイトル@}}や@code{\mbox@{内容@}}のように
 10.1942 +引数を取るLaTeXコマンドを指します。
 10.1943 +
 10.1944 +@item
 10.1945 +maketitle型コマンド
 10.1946 +
 10.1947 +@code{\maketitle}や@code{\tableofcontents}のように引数を取らないLaTeXコマ
 10.1948 +ンドを指します。
 10.1949 +
 10.1950 +@item
 10.1951 +large型コマンド
 10.1952 +
 10.1953 +@code{@{\large ...@}} や @code{@{\tt ...@}} のようなフォント/サイズ指定子
 10.1954 +を指します。
 10.1955 +
 10.1956 +@item @kbd{[prefix]}
 10.1957 +
 10.1958 +野鳥の機能を呼び出すためのプリフィクスキー。デフォルトでは@kbd{C-c}に割り
 10.1959 +当てられているので、特に変更していない場合本マニュアルの @kbd{[prefix]} と
 10.1960 +いう表記は、@kbd{C-c} と読み換えてください。
 10.1961 +@end itemize
 10.1962 +
 10.1963 +@node Main features, Installation, Terminology, Top
 10.1964 +@comment  node-name,  next,  previous,  up
 10.1965 +@chapter 主な機能
 10.1966 +
 10.1967 +@itemize @bullet
 10.1968 +@item タイプセッタやプレヴューアなどの編集画面からの起動(@kbd{C-c t})
 10.1969 +@item カーソル位置によらない固定リジョンの部分タイプセット
 10.1970 +@item \includeonlyのワンタッチ更新
 10.1971 +@item エラー箇所への自動ジャンプ(@kbd{C-c '})
 10.1972 +@item @code{\begin@{@}, \end@{@}, \section...} などの La@TeX{}
 10.1973 +コマンドの補完入力
 10.1974 +(@kbd{C-c b}, @kbd{C-c s}, @kbd{C-c l}, @kbd{C-c m})
 10.1975 +@item 既に入力したテキストを環境やコマンド引数の中に取り込む括り補完
 10.1976 +(@kbd{C-u} +通常補完キー)
 10.1977 +@item セクション区切り入力時の文書構造アウトライン表示
 10.1978 +@item セクションコマンドの一括シフト (@ref{view-sectioning})
 10.1979 +@item 補完辞書の学習
 10.1980 +@item La@TeX{} の環境やコマンドに応じたガイド付き引数入力
 10.1981 +@item 野鳥にないガイド付き引数入力関数の自動生成(@file{yatexgen.el})
 10.1982 +@item La@TeX{} コマンドの削除/変更(@kbd{C-c k}, @kbd{C-c c})
 10.1983 +@item ファイル間、@code{\begin}<->@code{\end}間、
 10.1984 +        @code{\ref}<->@code{\label}間、
 10.1985 +        @code{\cite}<->@code{\bibitem}ジャンプ(@kbd{C-c g})
 10.1986 +@item 一括コメントアウト/アンコメントアウト
 10.1987 +        (@kbd{C-c >}, @kbd{C-c <}, @kbd{C-c ,}, @kbd{C-c .})
 10.1988 +@item アクセント記号/数式環境用コマンド/ギリシャ文字の入力支援
 10.1989 +        (@kbd{C-c a}, @kbd{;}, @kbd{/})
 10.1990 +@item tabular/array環境のカラム位置ガイド
 10.1991 +@item 標準的 La@TeX{} コマンドのオンラインヘルプ(@kbd{C-c ?}, @kbd{C-c /})
 10.1992 +@item ドキュメントのインクルード構造の視覚的表示とバッファ切り替え
 10.1993 +(@kbd{C-c d})
 10.1994 +@item 補完入力したマクロに応じて必要な \userpackage を入れてくれる先回り
 10.1995 +userpackage
 10.1996 +@item \labelを打つことはもう忘れよう! refやcite補完入力で自動生成します
 10.1997 +@end itemize
 10.1998 +
 10.1999 +@node Installation, Invocation, Main features, Top
 10.2000 +@comment  node-name,  next,  previous,  up
 10.2001 +@chapter 起動法
 10.2002 +@cindex Install
 10.2003 +@cindex インストール[いんすとおる]
 10.2004 +@cindex .emacs
 10.2005 +@cindex auto-mode-alist
 10.2006 +@cindex autoload
 10.2007 +@section 野鳥起動のための設定
 10.2008 +
 10.2009 +  ~/.emacsに下の2項目を加えます。
 10.2010 +
 10.2011 +@lisp
 10.2012 +(setq auto-mode-alist
 10.2013 +      (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
 10.2014 +(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
 10.2015 +@end lisp
 10.2016 +
 10.2017 +次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に加えます。
 10.2018 +たとえば、 @file{~/src/emacs/yatex}に置くのであれば、
 10.2019 +
 10.2020 +@lisp
 10.2021 +(setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path))
 10.2022 +@end lisp
 10.2023 +
 10.2024 +@noindent
 10.2025 +などとします。
 10.2026 +
 10.2027 +  以上の設定により、拡張子が .tex であるファイルを編集すると自動的に野鳥が
 10.2028 +ロードされます。野鳥が正常に起動できたときはモードラインの表示が「やてふ」
 10.2029 +に変わります。
 10.2030 +
 10.2031 +@section タイプセッタ/プレヴューア環境の設定
 10.2032 +
 10.2033 +  利用する外部プログラムに関する以下の変数を確認し、必要なら正しい値に変更
 10.2034 +します。
 10.2035 +@table @code
 10.2036 +@item tex-command
 10.2037 +        @dots{} 起動するタイプセッタのコマンド名
 10.2038 +@item dvi2-command
 10.2039 +        @dots{} 起動するプレヴューアのコマンド名
 10.2040 +@item NTT-jTeX
 10.2041 +        @dots{} 改行+インデントによって、タイプセット後の字間が空いてしま
 10.2042 +        うのを抑制する場合にtにする(古いNTT-jTeXで顕著に現れる)。具体的には、
 10.2043 +        fillするときに各行の終わりに%を付加するようになる。
 10.2044 +@item YaTeX-kanji-code
 10.2045 +        @dots{} 文書を作成する時の漢字コード
 10.2046 +@item dviprint-command-format
 10.2047 +        @dots{} ファイルの印刷に使われるコマンド列の書式
 10.2048 +@item makeindex-command
 10.2049 +        @dots{} makeindexコマンド
 10.2050 +@end table
 10.2051 +
 10.2052 +これらを変更する場合は、やはり@file{~/.emacs}にて、たとえば
 10.2053 +@lisp
 10.2054 +(setq tex-command "pdflatex")
 10.2055 +@end lisp
 10.2056 +のようにしてください。どのような値をセットすれば良いかについては、
 10.2057 +@ref{All customizable variables}を参照してください。
 10.2058 +
 10.2059 +
 10.2060 +@node Invocation, %#notation , Installation, Top
 10.2061 +@comment  node-name,  next,  previous,  up
 10.2062 +@chapter latexコマンド起動
 10.2063 +@cindex prefix key
 10.2064 +@cindex C-c
 10.2065 +@cindex タイプセッタ[たいふせつた]
 10.2066 +@cindex プレヴューア[ふれひゆうあ]
 10.2067 +@cindex jlatex
 10.2068 +@cindex platex
 10.2069 +@cindex プリントアウト[ふりんとあうと]
 10.2070 +
 10.2071 +LaTeXソースの編集中、次のキー入力により、platex などのタイプセットプログラ
 10.2072 +ム(以後タイプセッタと呼ぶ)、プレヴューアなどの起動ができます。
 10.2073 +
 10.2074 +@table @kbd
 10.2075 +@item [prefix] t j
 10.2076 +        @dots{} タイプセッタ(platex)起動
 10.2077 +@item [prefix] t r
 10.2078 +        @dots{} タイプセッタ起動(領域指定)
 10.2079 +@item [prefix] t e
 10.2080 +        @dots{} タイプセッタ起動
 10.2081 +        (ポイント位置の環境または数式モードのみ対象)
 10.2082 +@item [prefix] t k
 10.2083 +        @dots{} 動作中のタイプセッタの停止
 10.2084 +@item [prefix] t b
 10.2085 +        @dots{} jbibtex起動
 10.2086 +@item [prefix] t i
 10.2087 +        @dots{} makeindex起動
 10.2088 +@item [prefix] t d
 10.2089 +	@dots{} タイプセット完了後dvipdfmx起動
 10.2090 +@item [prefix] t p
 10.2091 +        @dots{} プレヴューア起動
 10.2092 +@item [prefix] t l
 10.2093 +        @dots{} lpr(プリントアウト用)コマンド起動
 10.2094 +@item [prefix] t s
 10.2095 +        @dots{} xdvi -remote でのサーチ
 10.2096 +@end table
 10.2097 +
 10.2098 +@menu
 10.2099 +* Calling typesetter::          タイプセッタ起動
 10.2100 +* Calling previewer::           プレヴューア起動
 10.2101 +* Print out::                   プリントアウト用コマンドの起動
 10.2102 +@end menu
 10.2103 +
 10.2104 +@node Calling typesetter, Calling previewer, Invocation, Invocation
 10.2105 +@comment  node-name,  next,  previous,  up
 10.2106 +@section タイプセッタ起動
 10.2107 +@cindex タイプセッタ起動[たいふせつたきとう]
 10.2108 +@cindex タイプセットエラー[たいふせつとえらあ]
 10.2109 +@cindex エラー修正[えらあしゆうせい]
 10.2110 +
 10.2111 +  タイプセッタを起動すると、編集ウィンドウが2つに分割され、片方のウィンド
 10.2112 +ウにタイプセット画面が表示されます。出力されるメッセージと連動しタイプセッ
 10.2113 +トバッファは自動的にスクロールします。もし、途中でエラーが起こって止まって
 10.2114 +しまった場合にはタイプセットバッファに移り、(@kbd{C-x o}) タイプセッタの出
 10.2115 +している ? プロンプトに対して、@kbd{x} (処理の中断)などの指示を送ることが
 10.2116 +できます。エラーを修正する場合は、
 10.2117 +
 10.2118 +@table @kbd
 10.2119 +@item [prefix] '
 10.2120 +@itemx (prefix+アポストロフィ)
 10.2121 +        @dots{} 直前のエラー発生行へジャンプ
 10.2122 +@end table
 10.2123 +
 10.2124 +を入力することにより、タイプセッタがエラーを発生した行に移ることができます。
 10.2125 +また、タイプセッタの出力する overfull hbox などのウォーニング行にも対応し
 10.2126 +ていますので、順次 @kbd{[prefix] '} を押すことにより、一つ前のウォーニング
 10.2127 +発生行にジャンプしていきます。
 10.2128 +
 10.2129 +  もし、気になるエラー行があった場合は、タイプセットバッファで、エ
 10.2130 +ラーの表示されている行にカーソルを合わせスペースキーを押すと La@TeX{} 
 10.2131 +ソースの対応する行にジャンプします。
 10.2132 +
 10.2133 +@subsection 領域タイプセット
 10.2134 +
 10.2135 +  ポイントとマークの間、あるいはテキスト中に埋め込んだ @code{%#BEGIN} と
 10.2136 +@code{%#END}の間の領域(@ref{%#notation})だけを切り取ってタイプセットすることが
 10.2137 +できます。この場合メインファイルのプリアンブルが一時ファイルの
 10.2138 +プリアンブルとして使われます。したがってプリアンブルにないマクロ定義が
 10.2139 +領域内にあるとエラーになります。領域タイプセットを使う場合、
 10.2140 +必ずマクロ定義はプリアンブル(@code{\begin@{document@}}より前)に置くよう
 10.2141 +にして下さい。一時ファイルはメインファイルのある
 10.2142 +ディレクトリの@file{texput.tex}という名前で出力されるので、
 10.2143 +上書きには注意してください。
 10.2144 +
 10.2145 +@subsection 環境タイプセット
 10.2146 +
 10.2147 +  @kbd{[prefix] te} を押すと、ポイント位置の最も内側の環境、または数式モー
 10.2148 +ド内の場合はその数式モード全体が自動的に領域選択されて、領域タイプセットを
 10.2149 +呼び出します。tabular環境や数式モードで複雑なものを作っている場合は確かめた
 10.2150 +い部分だけを確認できるので便利です。これも @file{texput.tex} に該当部分を
 10.2151 +書き出します。プレヴューアで @file{texput.dvi} を開いたままにしておけば
 10.2152 +修正と確認が素早くできるでしょう。
 10.2153 +
 10.2154 +@node Calling previewer, Print out, Calling typesetter, Invocation
 10.2155 +@comment  node-name,  next,  previous,  up
 10.2156 +@section プレヴューア起動
 10.2157 +  @kbd{[prefix] t p} によりプレヴューアの起動ができます。さらに、もしあな
 10.2158 +たが、-remote 機能つきのxdviを利用している場合は @kbd{[prefix] t s} を押す
 10.2159 +ことによりカーソル位置の文字列を検索してそのページを表示するようにすでに起
 10.2160 +動中のxdviに命令を送ります。これにより、現在編集中の箇所のタイプセット結果
 10.2161 +を即座に見ることができます。
 10.2162 +
 10.2163 +@c なお、-remote 機能付きの xdvi は
 10.2164 +@c @code{ftp://ftp.ae.keio.ac.jp/pub/text/xdvi/xdvi-remote}
 10.2165 +@c などから入手することができます。
 10.2166 +
 10.2167 +@node Print out,  , Calling previewer, Invocation
 10.2168 +@comment  node-name,  next,  previous,  up
 10.2169 +@section プリントアウト
 10.2170 +
 10.2171 +  @kbd{[prefix] t l}を押してプリントアウトを指示すると、出力開始/終了ペー
 10.2172 +ジを聞いてくるので、それぞれに答えます。これを省略したい時は、
 10.2173 +universal-argument をつけ、
 10.2174 +
 10.2175 +@cindex 出力開始ページ[しゆつりよくかいしへえし]
 10.2176 +@cindex 出力終了ページ[しゆつりよくしゆうりようへえし]
 10.2177 +
 10.2178 +@table @kbd
 10.2179 +@item C-u [prefix] t l
 10.2180 +        @dots{} ページ確認省略lpr起動
 10.2181 +@end table
 10.2182 +@cindex ページ確認省略lpr起動[へえしかくにんしようりやくlprきとう]
 10.2183 +
 10.2184 +@noindent
 10.2185 +のように起動してください。
 10.2186 +
 10.2187 +@node %#notation , Completion, Invocation, Top
 10.2188 +@comment  node-name,  next,  previous,  up
 10.2189 +@chapter %#記法
 10.2190 +
 10.2191 +  本文中に@code{%#}ではじまるキーワードを埋め込むことでタイプセッタ起動等
 10.2192 +の制御をすることができます。
 10.2193 +
 10.2194 +@menu
 10.2195 +* Changing typesetter::         タイプセット用コマンドの変更
 10.2196 +* Splitting input files::       入力ファイル分割
 10.2197 +* Fix region for typesetting::  領域の固定
 10.2198 +* lpr format::                  プリントアウトコマンド用フォーマット
 10.2199 +* Controlling which command to invoke::  その他の起動コマンド制御
 10.2200 +* Editing %# notation::         %#記法の編集
 10.2201 +@end menu
 10.2202 +
 10.2203 +@node Changing typesetter, Splitting input files, %#notation , %#notation
 10.2204 +@comment  node-name,  next,  previous,  up
 10.2205 +@section タイプセット用コマンド変更
 10.2206 +
 10.2207 +  起動するコマンドを変えたい時は本文中に次のような行を書きます。
 10.2208 +
 10.2209 +@cindex 起動するコマンドを変える[きとうするこまんとをかえる]
 10.2210 +
 10.2211 +@example
 10.2212 +        %#!jlatex-ntt
 10.2213 +@end example
 10.2214 +
 10.2215 +NTT jTeX と、ASCII jTeX を使い分けたいような場合に便利でしょう。
 10.2216 +
 10.2217 +@cindex タイプセッタの使い分け[たいふせつたのつかいわけ]
 10.2218 +
 10.2219 +@node Splitting input files, Fix region for typesetting, Changing typesetter, %#notation
 10.2220 +@comment  node-name,  next,  previous,  up
 10.2221 +@section 入力ファイル分割
 10.2222 +
 10.2223 +また、章毎に別ファイルの .tex を作成している場合で、@file{main.tex}から 
 10.2224 +@file{sub.tex} を @code{\include}しているような時は、@file{sub.tex}の任意の
 10.2225 +位置に次のような行を埋め込みます。
 10.2226 +
 10.2227 +@example
 10.2228 +        %#!platex main.tex
 10.2229 +@end example
 10.2230 +
 10.2231 +@cindex 入力ファイル分割[にゆうりよくふあいるふんかつ]
 10.2232 +
 10.2233 +上の例のようにコマンド名だけでなく引数も書いた場合には、全てをそのまま 
 10.2234 +shell に渡すので次のように書けば、ghostview などをプレヴューアに使う時に便
 10.2235 +利です。
 10.2236 +
 10.2237 +@cindex ghostview
 10.2238 +
 10.2239 +@example
 10.2240 +        %#!platex main && dvi2ps main.dvi > main
 10.2241 +@end example
 10.2242 +
 10.2243 +なお、この行の最後の単語のピリオド以前を「メインファイル」のベース
 10.2244 +ネームであると仮定します(上の2つの場合どちらも@file{main})。
 10.2245 +この行に記述した、@code{%f}はメインファイル名に、 
 10.2246 +@code{%r} はメインファイルの拡張子を取り除いた部分に置換されます。
 10.2247 +ただし、@code{%f,%r}を利用した場合、初回タイプセット時に必ずメインファイル
 10.2248 +名の入力を促されます。
 10.2249 +
 10.2250 +  @kbd{[prefix] g} (@ref{Cursor jump}参照) での
 10.2251 +ファイル間ジャンプを有効に機能させるため、入力ファイル分割時には次のことに
 10.2252 +注意して下さい。
 10.2253 +
 10.2254 +@enumerate
 10.2255 +@item
 10.2256 +サブディレクトリを作って、その中にサブファイルを置くことはできるが
 10.2257 +サブディレクトリのサブディレクトリには置けない。
 10.2258 +@item
 10.2259 +メインファイルからサブディレクトリ内のファイルを include する時には、
 10.2260 +相対パス指定を用いて、
 10.2261 +@code{\include@{chap1/sub@}}のように記述。
 10.2262 +@item
 10.2263 +メインファイルが一つ上のディレクトリにある場合も、サブファイルには
 10.2264 +%#!platex main.tex のように記述する(../mainではない)。
 10.2265 +@end enumerate
 10.2266 +
 10.2267 +
 10.2268 +
 10.2269 +@node Fix region for typesetting, lpr format, Splitting input files, %#notation
 10.2270 +@comment  node-name,  next,  previous,  up
 10.2271 +@section 領域の固定
 10.2272 +@cindex 固定領域のタイプセット[こていりよういきのたいふせつと]
 10.2273 +@cindex %#BEGIN
 10.2274 +@cindex %#END
 10.2275 +
 10.2276 +  @kbd{[prefix] tr} の領域指定のタイプセットでは、とくに指定のないかぎり、 
 10.2277 +@kbd{C-SPC}でマークした位置と、ポイント(カーソル位置)の間を領域とみなしま
 10.2278 +すが、必ず決まった領域をタイプセットしたい場合は、その領域を
 10.2279 +
 10.2280 +@example
 10.2281 +        %#BEGIN
 10.2282 +        <渡したい領域>
 10.2283 +        %#END
 10.2284 +@end example
 10.2285 +
 10.2286 +@noindent
 10.2287 +のように@code{%#BEGIN}と@code{%#END}で囲み、カーソルを「@code{%#BEGIN}以降」
 10.2288 +に置いてください。この時の領域決定規則をまとめると次のようになります。
 10.2289 +
 10.2290 +
 10.2291 +@enumerate
 10.2292 +@item
 10.2293 +カーソル位置よりバッファの先頭方向に@code{%#BEGIN}というキーワードが
 10.2294 +ある場合
 10.2295 +
 10.2296 +@enumerate
 10.2297 +@item
 10.2298 +@code{%#BEGIN}よりバッファの末尾方向に@code{%#END}というキーワードが見つかっ
 10.2299 +た場合。
 10.2300 +@result{}@code{%#BEGIN} から、その @code{%#END} のある位置まで。
 10.2301 +@item
 10.2302 +@code{%#END} が見つからなかった場合。
 10.2303 +@result{}バッファの最後尾まで。
 10.2304 +@end enumerate
 10.2305 +@cindex 領域決定規則[りよういきけつていきそく]
 10.2306 +
 10.2307 +@item
 10.2308 +カーソル位置よりバッファの先頭方向に @code{%#BEGIN} というキーワードが
 10.2309 +見つからなかった場合。
 10.2310 +@result{}マーク(@kbd{C-SPC}位置)とポイント(カーソル位置)の間の領域。
 10.2311 +@end enumerate
 10.2312 +
 10.2313 +  tabular 環境を何度も試行錯誤しているような場合は、@code{\begin}の前の行
 10.2314 +に @code{%#BEGIN} と書き、@code{\end} の次の行に @code{%#END} と書いておく
 10.2315 +と簡単に作表結果をテストすることができます。また、長い .tex ファイルの後半
 10.2316 +に @code{%#BEGIN} を書いておけば、前半の部分は無視できます。このBEGINとEND
 10.2317 +の消し忘れには十分ご注意下さい。
 10.2318 +@cindex 長いファイルの編集[なかいふあいるのへんしゆう]
 10.2319 +
 10.2320 +@c @node  Require, lpr format, Fix region for typesetting, %#notation
 10.2321 +@comment  node-name,  next,  previous,  up
 10.2322 +
 10.2323 +@node lpr format, Controlling which command to invoke, Fix region for typesetting, %#notation
 10.2324 +@comment  node-name,  next,  previous,  up
 10.2325 +@section lprフォーマット
 10.2326 +@cindex lprふぉーまっと[lprふおおまつと]
 10.2327 +@cindex lprフォーマット[lprふおおまつと]
 10.2328 +@cindex lpr format
 10.2329 +
 10.2330 +  まず、プリントアウト用コマンド列のフォーマットについて説明します。
 10.2331 +コマンド列フォーマットは、3つの Lisp 変数によって表現されます。デ
 10.2332 +フォルトの dvi2ps 用のフォーマットを例に説明します。
 10.2333 +
 10.2334 +@table @code
 10.2335 +@item (1)dviprint-command-format
 10.2336 +@code{"dvi2ps %f %t %s | lpr"}
 10.2337 +
 10.2338 +@item (2)dviprint-from-format
 10.2339 +@code{"-f %b"}
 10.2340 +
 10.2341 +@item (3)dviprint-to-format
 10.2342 +@code{"-t %e"}
 10.2343 +@end table
 10.2344 +
 10.2345 +実際にプリントアウトする時は、(1)中の %s がファイル名に置き換えられ、%f が
 10.2346 +(2)の内容、%t が(3)の内容に置き換えられます。その際に(2)の文字列中の %b は
 10.2347 +「出力開始ページ」、(3)の文字列中の %e は「出力終了ページ」に置き換えられ
 10.2348 +ます。もし、ページを指定しない時には、%f, %t 両方とも無視されます。
 10.2349 +
 10.2350 +  この、dviprint-command-format を臨時に変えたい時は、La@TeX{} の
 10.2351 +ソーステキスト中の任意の場所に、
 10.2352 +
 10.2353 +@example
 10.2354 +        %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2
 10.2355 +@end example
 10.2356 +
 10.2357 +@noindent
 10.2358 +のように書いて下さい。プリントアウトするページ範囲をいちいち聞かせないよう
 10.2359 +にする時に
 10.2360 +
 10.2361 +@example
 10.2362 +        %#LPR dvi2ps %s | lpr
 10.2363 +@end example
 10.2364 +
 10.2365 +@noindent
 10.2366 +などとするのも便利かもしれません。
 10.2367 +
 10.2368 +@node Controlling which command to invoke, Editing %# notation, lpr format, %#notation
 10.2369 +@comment  node-name,  next,  previous,  up
 10.2370 +@section その他の起動コマンド制御
 10.2371 +@cindex その他のコマンド制御[そのたのこまんとせいきよ]
 10.2372 +
 10.2373 +La@TeX{} 文書に関連するコマンドは以下の %# 記法で指定することができます。
 10.2374 +
 10.2375 +@table @code
 10.2376 + @item %#BIBTEX
 10.2377 +	@dots{} makeindexを行なうコマンドライン([prefix] t b)
 10.2378 + @item %#MAKEINDEX
 10.2379 +	@dots{} bibtexを行なうコマンドライン([prefix] t i)
 10.2380 +@end table
 10.2381 +
 10.2382 +行頭がこれらのキーワードで始まる行をLa@TeX{}文書の先頭付近に書いておけば、
 10.2383 +それで指定したコマンドを起動できます。
 10.2384 +
 10.2385 +@node Editing %# notation,  , Controlling which command to invoke, %#notation
 10.2386 +@comment  node-name,  next,  previous,  up
 10.2387 +@section %#記法自体の編集
 10.2388 +@cindex %#記法自体の編集[%#きほうしたいのへんしゆう]
 10.2389 +
 10.2390 +以上のような@code{%#}で始まる各種制御記法を編集するためには
 10.2391 +
 10.2392 +@table @kbd
 10.2393 +@item [prefix] %
 10.2394 +        @dots{} @code{%#}@var{記法編集メニュー}
 10.2395 +@end table
 10.2396 +
 10.2397 +@noindent
 10.2398 +を押します。
 10.2399 +
 10.2400 +@example
 10.2401 +        !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR
 10.2402 +@end example
 10.2403 +
 10.2404 +@noindent
 10.2405 +というメニューが出て来るので、@code{%#!}に続くコマンドを変更したい時には
 10.2406 +@kbd{!}を、@code{%#LPR}で lpr フォーマットを変えたい時は@kbd{l}を、あらか
 10.2407 +じめ設定したリジョンを @code{%#BEGIN} 〜 @code{%#END} で括りたい時は、
 10.2408 +@kbd{b}を押します。@kbd{b}を選んだ時には、それまでバッファ中に置かれていた
 10.2409 +@code{%#BEGIN}, @code{%#END} が自動的に消去されます。
 10.2410 +@cindex lprフォーマットの変更[lprふおおまつとのへんこう]
 10.2411 +
 10.2412 +@node Completion, Local dictionary, %#notation , Top
 10.2413 +@comment  node-name,  next,  previous,  up
 10.2414 +@chapter 補完入力
 10.2415 +
 10.2416 +  La@TeX{} での環境名などは、野鳥の補完機能を利用して能率的に入力すること
 10.2417 +ができます。
 10.2418 +
 10.2419 +@menu
 10.2420 +* begin型補完::                 
 10.2421 +* section型補完::               
 10.2422 +* large型補完::                 
 10.2423 +* maketitle型補完::             
 10.2424 +* Arbitrary completion::        随時補完
 10.2425 +* end補完::                     
 10.2426 +* Accent mark completion::      アクセント記号補完
 10.2427 +* Image completion::            数式記号イメージ補完
 10.2428 +* Greek letter completion::     ギリシャ文字補完
 10.2429 +@end menu
 10.2430 +
 10.2431 +@node begin型補完, section型補完, Completion, Completion
 10.2432 +@comment  node-name,  next,  previous,  up
 10.2433 +@section begin型補完
 10.2434 +@cindex begin型補完[beginかたほかん]
 10.2435 +@cindex 環境名の補完[かんきようめいのほかん]
 10.2436 +@cindex prefix b
 10.2437 +
 10.2438 +  @code{\begin@{env@}...\end@{env@}}の様な形式の入力の補完をbegin型補完と
 10.2439 +呼ぶことにします。begin 型補完は、
 10.2440 +
 10.2441 +@table @kbd
 10.2442 +@item [prefix] b
 10.2443 +        @dots{} begin 型補完開始(標準では @kbd{C-c b})
 10.2444 +@end table
 10.2445 +
 10.2446 +@noindent
 10.2447 +で始まります。頻繁に用いられる次の La@TeX{} 環境の補完は、[prefix] @kbd{b}
 10.2448 +に続く次の1文字を入力するだけで、@code{\begin@{xxx@}...\end@{xxx@}}を完成
 10.2449 +させます。
 10.2450 +
 10.2451 +@table @kbd
 10.2452 +@item [prefix] b c
 10.2453 +        @dots{} @code{\begin@{center@}...\end@{center@}}
 10.2454 +@item [prefix] b d
 10.2455 +        @dots{} @code{\begin@{document@}...\end@{document@}}
 10.2456 +@item [prefix] b D
 10.2457 +        @dots{} @code{\begin@{description@}...\end@{description@}}
 10.2458 +@item [prefix] b e
 10.2459 +        @dots{} @code{\begin@{enumerate@}...\end@{enumerate@}}
 10.2460 +@item [prefix] b E
 10.2461 +        @dots{} @code{\begin@{equation@}...\end@{equation@}}
 10.2462 +@item [prefix] b i
 10.2463 +        @dots{} @code{\begin@{itemize@}...\end@{itemize@}}
 10.2464 +@item [prefix] b l
 10.2465 +        @dots{} @code{\begin@{flushleft@}...\end@{flushleft@}}
 10.2466 +@item [prefix] b m
 10.2467 +        @dots{} @code{\begin@{minipage@}...\end@{minipage@}}
 10.2468 +@item [prefix] b t
 10.2469 +        @dots{} @code{\begin@{tabbing@}...\end@{tabbing@}}
 10.2470 +@item [prefix] b T
 10.2471 +        @dots{} @code{\begin@{tabular@}...\end@{tabular@}}
 10.2472 +@item [prefix] b ^T
 10.2473 +        @dots{} @code{\begin@{table@}...\end@{table@}}
 10.2474 +@item [prefix] b p
 10.2475 +        @dots{} @code{\begin@{picture@}...\end@{picture@}}
 10.2476 +@item [prefix] b q
 10.2477 +        @dots{} @code{\begin@{quote@}...\end@{quote@}}
 10.2478 +@item [prefix] b Q
 10.2479 +        @dots{} @code{\begin@{quotation@}...\end@{quotation@}}
 10.2480 +@item [prefix] b r
 10.2481 +        @dots{} @code{\begin@{flushright@}...\end@{flushright@}}
 10.2482 +@item [prefix] b v
 10.2483 +        @dots{} @code{\begin@{verbatim@}...\end@{verbatim@}}
 10.2484 +@item [prefix] b V
 10.2485 +        @dots{} @code{\begin@{verse@}...\end@{verse@}}
 10.2486 +@end table
 10.2487 +
 10.2488 +  上記のもの以外の環境名は Emacs の持つインクリメンタルな補完機能を用いて
 10.2489 +入力します(上記の環境名も以下の補完入力可能)。
 10.2490 +
 10.2491 +@table @kbd
 10.2492 +@item [prefix] b @key{SPC}
 10.2493 +        @dots{} begin 型補完入力
 10.2494 +@end table
 10.2495 +
 10.2496 +@kbd{[prefix] b @key{SPC}} と入力すると、最下行のミニバッファに
 10.2497 +
 10.2498 +@example
 10.2499 +        Begin environment(default document):
 10.2500 +@end example
 10.2501 +
 10.2502 +@noindent
 10.2503 +と表示されます。ここで、何も入れずにリターンキーのみ押すと、括弧内に出てい
 10.2504 +るデフォルトの環境名が入力されますが、適当な環境名を入力すると、
 10.2505 +@code{\begin@{環境名@} … \end@{環境名@}}が文書中に挿入されます。ミニバッ
 10.2506 +ファで環境名を入力するときに、環境名の頭文字を入力し「スペース」をたたくと、
 10.2507 +一致する環境名が内部テーブルに存在した場合、正しい環境名に補完されるので、
 10.2508 +入力の手間が省けます。内部テーブルに存在しない環境名を入力した時はユーザ専
 10.2509 +用のテーブルに登録され、さらにそのテーブルを自動的に、ユーザ辞書(デフォル
 10.2510 +トでは @file{~/.yatexrc})に保存します。
 10.2511 +
 10.2512 +さらに、特定の環境を補完入力した時にはその環境で必ず用いられるエントリを自
 10.2513 +動挿入します(例: @code{itemize}環境における@code{\item}など)。挿入されたエ
 10.2514 +ントリが不要な場合にはundoによって消去して下さい。
 10.2515 +@cindex ユーザ辞書[ゆうさししよ]
 10.2516 +
 10.2517 +@subsection 既に書いたテキストを環境で括る
 10.2518 +
 10.2519 +  ところで、最初に書いてしまったブロックを後から、itemize 環境の中
 10.2520 +に閉じこめたいと思うことがありますが、そのようなときは、あらかじめ
 10.2521 +閉じこめたい段落をマークして、begin 型補完の各コマンドの @kbd{[prefix]}
 10.2522 +の次の『小文字の 'b'』 を『大文字』に変えて起動して下さい。(または、
 10.2523 +@kbd{C-u} を先に打ち、universal argument をつけても可能です)
 10.2524 +@cindex ブロック[ふろつく]
 10.2525 +@cindex 閉じ込める[としこめる]
 10.2526 +
 10.2527 +  例えばあるパラグラフを description 環境の中に入れたいときは、
 10.2528 +そのパラグラフをマークしてから、
 10.2529 +
 10.2530 +@table @kbd
 10.2531 +@item [prefix] B D
 10.2532 +@itemx (または ESC 1 [prefix] b D)
 10.2533 +@itemx (または  C-u  [prefix] b D など)
 10.2534 +@end table
 10.2535 +
 10.2536 +とタイプしてください。これは、@kbd{[prefix] b SPC}の補完入力にもあてはまり、
 10.2537 +@kbd{b} を大文字に変えて、@kbd{[prefix] B SPC} とタイプすれば、あらかじめ
 10.2538 +マークしておいたリジョンを、begin と end の環境で括ります。
 10.2539 +
 10.2540 +@node section型補完, large型補完, begin型補完, Completion
 10.2541 +@comment  node-name,  next,  previous,  up
 10.2542 +@section section型補完
 10.2543 +@cindex  section型補完[sectionかたほかん]
 10.2544 +@cindex prefix s
 10.2545 +
 10.2546 +  @code{\section@{目的@}} のような形式の入力の補完を section 型補完と呼ぶこ
 10.2547 +とにします。section 型補完は、
 10.2548 +
 10.2549 +@table @kbd
 10.2550 +@item [prefix] s
 10.2551 +        @dots{} section 型補完
 10.2552 +@end table
 10.2553 +
 10.2554 +
 10.2555 +で実行します。@kbd{[prefix] s} を入力するとミニバッファに、
 10.2556 +
 10.2557 +@example
 10.2558 +        (C-v for view-section) \???@{@} (default documentclass):
 10.2559 +@end example
 10.2560 +
 10.2561 +@noindent
 10.2562 +というプロンプトが現れるので、そこで @samp{section} のような La@TeX{} コマ
 10.2563 +ンド名を入力します。ここでもリターンキーのみで括弧内のデフォルト値が選択さ
 10.2564 +れるほか、@samp{chapter}などのような頻度の高い名称入力にはスペースキーによ
 10.2565 +る補完機能が有効です。 次に、@{@}の中身の入力を促す、
 10.2566 +
 10.2567 +@example
 10.2568 +        \section@{???@}:
 10.2569 +@end example
 10.2570 +
 10.2571 +@noindent
 10.2572 +というプロンプトが現れるので、セクションのタイトルなどを入力します。
 10.2573 +たとえば、
 10.2574 +
 10.2575 +@example
 10.2576 +        (C-v for view-section) \???@{@} (default documentclass): section
 10.2577 +        \section@{???@}: 目的
 10.2578 +@end example
 10.2579 +
 10.2580 +@noindent
 10.2581 +のように入力した場合は、文章中に
 10.2582 +
 10.2583 +@example
 10.2584 +        \section@{目的@}
 10.2585 +@end example
 10.2586 +
 10.2587 +@noindent
 10.2588 +が挿入され、
 10.2589 +
 10.2590 +@example
 10.2591 +        (C-v for view-section) \???@{@} (default section): vspace*
 10.2592 +        \vspace*@{???@}:
 10.2593 +@end example
 10.2594 +
 10.2595 +@noindent
 10.2596 +のように@{@}の中身を省略したときは、
 10.2597 +
 10.2598 +@example
 10.2599 +        \vspace*@{@}
 10.2600 +@end example
 10.2601 +
 10.2602 +@noindent
 10.2603 +だけが挿入され、改行はせずカーソルは自動的に中括弧の内側に移動します。
 10.2604 +
 10.2605 +@menu
 10.2606 +* 2個以上の引数をとる section型コマンド::  
 10.2607 +* Enclose section-type command::  括り補完
 10.2608 +* Recursive completion::        再帰補完
 10.2609 +* view-sectioning::             セクション区切りのアウトライン表示
 10.2610 +* label-generation::            ラベル自動生成
 10.2611 +@end menu
 10.2612 +
 10.2613 +@node 2個以上の引数をとる section型コマンド, Enclose section-type command, section型補完, section型補完
 10.2614 +@comment  node-name,  next,  previous,  up
 10.2615 +@subsection 2個以上の引数をとる section型コマンド
 10.2616 +@cindex 引数[ひきすう]
 10.2617 +
 10.2618 +  ところで、@samp{\addtolength@{\topmargin@}@{8mm@}} などのように、引数を二つ
 10.2619 +以上取る La@TeX{} コマンドがあります。このようなコマンドの補完入力には、 
 10.2620 +section 型補完呼び出しに引数を付けてください。例えば上の@samp{addtolength}
 10.2621 +の例であれば、引数2を指定します。つまり、
 10.2622 +
 10.2623 +@example
 10.2624 +        C-u 2 [prefix] s   (または、ESC 2 [prefix] s)
 10.2625 +@end example
 10.2626 +
 10.2627 +@noindent
 10.2628 +と section 型補完を呼び出した後、
 10.2629 +
 10.2630 +@example
 10.2631 +        (Ctrl-v for view-section) \???@{@} (default vspace*): addtolength
 10.2632 +        \addtolength@{???@}: \topmargin
 10.2633 +        Argument 2: 8mm
 10.2634 +@end example
 10.2635 +
 10.2636 +@noindent
 10.2637 +のように入力してください。最初の addtolength の部分と、第一引数である 
 10.2638 +\topmargin の入力は当然スペースによる補完入力が可能です。ユーザ辞書に登録
 10.2639 +される La@TeX{} コマンドには、この引数の数も学習されるので、最初の補完の時
 10.2640 +引数の数を指定して起動しておけば、以後の補完時には、記憶された個数だけ引数
 10.2641 +を聞いて来るようになります。あとで引数の個数を変えたい時は、再び @kbd{C-u} 
 10.2642 +を用いて個数を指定し直すことで、自動的に辞書中の引数の個数の部分を更新しま
 10.2643 +す。
 10.2644 +@cindex 引数の個数を変える[ひきすうのこすうをかえる]
 10.2645 +
 10.2646 +
 10.2647 +@node Enclose section-type command, Recursive completion, 2個以上の引数をとる section型コマンド, section型補完
 10.2648 +@subsection 既に書いたテキストを括る
 10.2649 +@cindex 括る[くくる]
 10.2650 +
 10.2651 +  また、起動コマンドの@kbd{s}を大文字に変えて起動すると、あらかじめ書
 10.2652 +いた文章を section 型コマンドの第一引数として括ります。
 10.2653 +
 10.2654 +@node Recursive completion, view-sectioning, Enclose section-type command, section型補完
 10.2655 +@comment  node-name,  next,  previous,  up
 10.2656 +@subsection 再帰補完
 10.2657 +@cindex 再帰補完[さいきほかん]
 10.2658 +
 10.2659 +  高度な使い方になるかもしれませんが、section型補完の引数の入力時にさらに
 10.2660 +補完入力を利用することができます(section/large/maketitle型に限る)。section
 10.2661 +型コマンドの引数に更に La@TeX{} コマンドが来る場合にはミニバッファで野鳥の
 10.2662 +補完キーを再帰的に入力することで引数の入力も効率的に行なえます。
 10.2663 +
 10.2664 +@node view-sectioning, label-generation, Recursive completion, section型補完
 10.2665 +@comment  node-name,  next,  previous,  up
 10.2666 +@subsection セクション区切りのアウトライン表示
 10.2667 +@cindex アウトライン[あうとらいん]
 10.2668 +
 10.2669 +  通常のsection型補完の時にミニバッファで@kbd{C-v}を押すと現在存在するセク
 10.2670 +ション区切りコマンド全てを @code{*Sectioning Lines*}というバッファに一覧表
 10.2671 +示します(「<<--」のついている行がもっとも近いセクション区切り)。この時ミニ
 10.2672 +バッファで@kbd{C-p}, @kbd{C-n} を押すと@samp{part}, @samp{chapter}, ...,
 10.2673 +@samp{subparagraph} のコマンドが論理階層の高さにしたがって上下します。また、
 10.2674 +@kbd{C-v}, @kbd{M-v} を押すとセクション区切り一覧バッファがスクロールし、
 10.2675 +数字の@kbd{0}〜@kbd{7}を押すとある高さ以上のセクション区切りだけを選んで表
 10.2676 +示します(実際にやって見れば分かります)。
 10.2677 +
 10.2678 +@code{*Sectioning Lines*}バッファは、
 10.2679 +
 10.2680 +@table @kbd
 10.2681 +@item M-x YaTeX-section-overview
 10.2682 +        @dots{} セクション区切り一覧バッファを生成
 10.2683 +@end table
 10.2684 +
 10.2685 +@cindex セクション区切り一覧バッファ[せくしよんくきりいちらんはつふあ]
 10.2686 +で作成することができます。このバッファを選択し任意の行でスペースを押すと、
 10.2687 +該当するセクション区切りのある本文中の場所にジャンプします。さらに、同バッ
 10.2688 +ファで @kbd{u} を押すと、ソーステキストの対応するセクションコマンドが一階
 10.2689 +層上がり(例: subsection が section に変わる)、@kbd{d}を押すと一階層下がり
 10.2690 +ます。@code{*Sectioning Lines*}バッファにあるセクション区切りの行をマーク
 10.2691 +しておいて@kbd{U}を押すとリジョン内のものに対応するソーステキストのセクショ
 10.2692 +ンコマンドすべてが一階層上がり、@kbd{D}を押すと下がります。セクション区切
 10.2693 +り一覧バッファで利用できるキーコマンドには以下のものがあります。
 10.2694 +
 10.2695 +@table @kbd
 10.2696 +@item SPC
 10.2697 +        @dots{} 対応するソース行へジャンプ
 10.2698 +@item .
 10.2699 +        @dots{} 対応するソース行を表示
 10.2700 +@item u
 10.2701 +        @dots{} カーソル位置に対応するセクションコマンドを一階層上げる
 10.2702 +@item d
 10.2703 +        @dots{} カーソル位置に対応するセクションコマンドを一階層下げる
 10.2704 +@item U
 10.2705 +        @dots{} マークしたセクションコマンドを一階層上げる
 10.2706 +@item D
 10.2707 +        @dots{} マークしたセクションコマンドを一階層上げる
 10.2708 +@item 0〜6
 10.2709 +        @dots{} レベル n 以下のセクションコマンドを隠して表示
 10.2710 +@end table
 10.2711 +
 10.2712 +@cindex 論理階層[ろんりかいそう]
 10.2713 +@cindex セクション区切り[せくしよんくきり]
 10.2714 +@cindex ジャンプ[しやんふ]
 10.2715 +
 10.2716 +@node label-generation,  , view-sectioning, section型補完
 10.2717 +@comment  node-name,  next,  previous,  up
 10.2718 +@subsection ラベル自動生成
 10.2719 +@cindex ラベル自動生成[らへるしとうせいせい]
 10.2720 +
 10.2721 +  @code{\ref@{@}} や @code{\cite@{@}} マクロをsection型補完で入れた場合
 10.2722 +参照先となり得るものを全て探してメニューにして選択できます。参照先には
 10.2723 +@code{\label@{@}}をつけておく必要はありません。もしあれば、そのラベルを
 10.2724 +使い、なければその場で参照先に@code{\label@{@}}を作らせてくれます。
 10.2725 +ラベル名を考えるのは苦痛に感じるものです。全てのカウンタにラベルを
 10.2726 +つけるのもたいへんです。もうラベル名に何をつけるか、ラベルをつけるかつけま
 10.2727 +いか、などということは忘れましょう!
 10.2728 +
 10.2729 +@node large型補完, maketitle型補完, section型補完, Completion
 10.2730 +@comment  node-name,  next,  previous,  up
 10.2731 +@section large型補完
 10.2732 +@cindex large型補完[largeかたほかん]
 10.2733 +@cindex prefix l
 10.2734 +
 10.2735 +  @code{@{\large @}} のような形式の補完を large 型補完と呼ぶことにします。
 10.2736 +
 10.2737 +@table @kbd
 10.2738 +@item [prefix] l
 10.2739 +        @dots{} large 型補完開始
 10.2740 +@end table
 10.2741 +
 10.2742 +@noindent
 10.2743 +がlarge型補完の開始です。@kbd{[prefix] l} を押すと、ミニバッファに
 10.2744 +
 10.2745 +@example
 10.2746 +        @{\??? @} (default large):
 10.2747 +@end example
 10.2748 +
 10.2749 +
 10.2750 +と表示されるので、上記のものと同じ要領で補完入力して下さい。補完候補に用意
 10.2751 +されているのは、@samp{footnotesize} や @samp{huge} のような文字サイズ指定
 10.2752 +子と、@samp{bf}や@samp{dg}のようなフォント指定子です。
 10.2753 +@cindex 文字サイズ指定子[もしさいすしていし]
 10.2754 +@cindex フォント指定子[ふおんとしていし]
 10.2755 +
 10.2756 +@subsection 既に書いた文字を括る
 10.2757 +@cindex 括る[くくる]
 10.2758 +
 10.2759 +  また、begin型補完の時と同様、先に書いてしまった一連の文章の文字のサイズ
 10.2760 +を変えたいと思う時がありますが、そのような時は、サイズや大きさを変えたい文
 10.2761 +字の範囲をマークしてから、呼び出しキーを @kbd{[prefix] L} と、大文字の L 
 10.2762 +に変えて呼び出せば、そのリジョン全体が、ブレースで囲まれます。
 10.2763 +
 10.2764 +@node maketitle型補完, Arbitrary completion, large型補完, Completion
 10.2765 +@comment  node-name,  next,  previous,  up
 10.2766 +@section maketitle型補完
 10.2767 +@cindex maketitle型補完[maketitleかたほかん]
 10.2768 +@cindex prefix m
 10.2769 +
 10.2770 +  @code{\maketitle} の形式の補完を maketitle 型補完と呼ぶことにします。
 10.2771 +
 10.2772 +@table @kbd
 10.2773 +@item [prefix] m
 10.2774 +        @dots{} maketitle 型補完開始
 10.2775 +@end table
 10.2776 +
 10.2777 +@noindent
 10.2778 +で、maketitle 型補完を開始します。補完の要領は今までのものとまったく同じで
 10.2779 +す。La@TeX{} 用のコマンド名が補完候補として用意されています。
 10.2780 +
 10.2781 +@node Arbitrary completion, end補完, maketitle型補完, Completion
 10.2782 +@comment  node-name,  next,  previous,  up
 10.2783 +@section 随時補完
 10.2784 +@cindex 随時補完[すいしほかん]
 10.2785 +@cindex prefix SPC
 10.2786 +
 10.2787 +  さて、今まで述べた典型的な La@TeX{} コマンド形式の補完入力を用いずに、今
 10.2788 +入力しようとしている La@TeX{} コマンドを文書中の任意の位置で随時補完するこ
 10.2789 +ともできます。La@TeX{} コマンド(先頭が\で始まる)を入力している途中で、
 10.2790 +
 10.2791 +@table @kbd
 10.2792 +@item [prefix] SPC
 10.2793 +        @dots{} 随時補完
 10.2794 +@end table
 10.2795 +
 10.2796 +@noindent
 10.2797 +を入力すれば、全ての補完候補の中から一致するものが選ばれカーソル位置に挿入
 10.2798 +されます。
 10.2799 +
 10.2800 +@node end補完, Accent mark completion, Arbitrary completion, Completion
 10.2801 +@comment  node-name,  next,  previous,  up
 10.2802 +@section end補完
 10.2803 +@cindex end補完[endほかん]
 10.2804 +@cindex prefix e
 10.2805 +
 10.2806 +  現在開いたままの環境名を自動的に検出し、@code{\end@{環境名@}}を挿入しま
 10.2807 +す。begin 型補完を用いれば環境の閉じ忘れはないのですが、時にはついつい手で 
 10.2808 +@code{\begin@{環境名@}} を入れてしまい、悲しい思いをすることがあります。そ
 10.2809 +のような時には気にせず続けて文章を入力し、しかるのちに
 10.2810 +
 10.2811 +@table @kbd
 10.2812 +@item [prefix] e
 10.2813 +        @dots{} end 補完
 10.2814 +@end table
 10.2815 +
 10.2816 +@noindent
 10.2817 +とすることで、現在開いている環境名で \end@{@} が補われます。
 10.2818 +
 10.2819 +@node Accent mark completion, Image completion, end補完, Completion
 10.2820 +@comment  node-name,  next,  previous,  up
 10.2821 +@section アクセント記号補完
 10.2822 +@cindex アクセント記号補完[あくせんときこうほかん]
 10.2823 +@cindex prefix a
 10.2824 +@cindex 欧文[おうふん]
 10.2825 +
 10.2826 +  欧文のアクセント記号(@code{\`@{o@}}など)を入力する時は、
 10.2827 +
 10.2828 +@table @kbd
 10.2829 +@item [prefix] a
 10.2830 +        @dots{} アクセント記号入力
 10.2831 +@end table
 10.2832 +
 10.2833 +@noindent
 10.2834 +を押すと、ミニバッファに
 10.2835 +
 10.2836 +@example
 10.2837 +        1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b
 10.2838 +@end example
 10.2839 +
 10.2840 +@noindent
 10.2841 +というメニューが出て来るので、数字、または対応する記号/英字を入力
 10.2842 +して下さい。すると編集バッファに、
 10.2843 +
 10.2844 +@example
 10.2845 +        \`@{@}
 10.2846 +@end example
 10.2847 +
 10.2848 +@noindent
 10.2849 +が現われ、カーソルが@{@}内に位置するので、さらに一文字入力する事で、
 10.2850 +
 10.2851 +@example
 10.2852 +        \`@{o@}
 10.2853 +@end example
 10.2854 +
 10.2855 +@noindent
 10.2856 +が完成され、カーソルは@{@}の外に戻ります。
 10.2857 +
 10.2858 +@node Image completion, Greek letter completion, Accent mark completion, Completion
 10.2859 +@comment  node-name,  next,  previous,  up
 10.2860 +@section 数式記号イメージ補完
 10.2861 +@cindex  数式記号イメージ補完[すうしききこういめえしほかん]
 10.2862 +@cindex イメージ補完[いめえしほかん]
 10.2863 +@cindex ;
 10.2864 +@cindex 数式モード[すうしきもおと]
 10.2865 +@cindex 矢印[やしるし]
 10.2866 +@cindex Σ[しくま]
 10.2867 +@cindex leftarrow
 10.2868 +@cindex ∞[むけんたい]
 10.2869 +
 10.2870 +  主に数式モードで使用される、矢印やΣなどの記号を擬似的に表現するキー入力
 10.2871 +で、La@TeX{} コマンドを入力できます。これは野鳥自身の「数式モード」でのみ
 10.2872 +動作します。野鳥はカーソルが@TeX{}の数式環境の中にある時に@kbd{;}や、
 10.2873 +@kbd{:}に特殊な機能を持たせます。
 10.2874 +
 10.2875 +  さて、例えば、←(leftarrow)をASCII文字だけで表現する場合、一般的には「<-」
 10.2876 +のようにしますが、これを利用して、数式記号イメージ入力モードで
 10.2877 +@code{\leftarrow}を入力するには、@kbd{;}(セミコロン)を打ってから@kbd{<-}と
 10.2878 +入力します。同様に、長い矢印←-(long-leftarrow) をASCII文字だけで表現する
 10.2879 +場合「<--」とするので、@code{\longleftarrow}を入力するためには、@kbd{;<--}
 10.2880 +と入力します。あるいは無限大記号をASCII文字だけで表現する時は「oo」のよう
 10.2881 +にすることから、@code{\infty} を入力する時は、@kbd{;oo}とキー入力します。
 10.2882 +
 10.2883 +  これらの操作をまとめると次のようになります。
 10.2884 +
 10.2885 +@example
 10.2886 +INPUT                   入力される La@TeX{} コマンド
 10.2887 +; < -                   @code{\leftarrow}
 10.2888 +; < - -                 @code{\longleftarrow}
 10.2889 +; < - - >               @code{\longleftrightarrow}
 10.2890 +; o                     @code{\circ}
 10.2891 +; o o                   @code{\infty}
 10.2892 +@end example
 10.2893 +
 10.2894 +
 10.2895 +
 10.2896 +  いずれの場合も、イメージ入力を行っている途中で望みのものがバッファ
 10.2897 +に表示されたなら、そこでイメージ入力を止めて次の編集動作に移っても
 10.2898 +構いません。
 10.2899 +
 10.2900 +@cindex ;自身[;ししん]
 10.2901 +  数式環境中で@samp{;}自身を入力するには@kbd{;;}のようにします。イメージ
 10.2902 +入力の途中でTABを押すと、それまで入力した文字で始まるもの一覧が表示されま
 10.2903 +す。ここで目的の La@TeX{} コマンドまでカーソルを移動し再度TABを押すことで
 10.2904 +その La@TeX{} コマンドがバッファに挿入されます。
 10.2905 +
 10.2906 +  どのキー入力にどの記号が対応しているか全て知りたい時は、@kbd{;}を押した
 10.2907 +直後にTABを押してください。以下の例は、@kbd{;<}と押した後にTABを押したもの
 10.2908 +です。
 10.2909 +
 10.2910 +@example
 10.2911 +KEY             LaTeX sequence          sign
 10.2912 +<               \leq                    ≦
 10.2913 +<<              \ll                     《
 10.2914 +<-              \leftarrow              ←
 10.2915 +<=              \Leftarrow              <=
 10.2916 +@end example
 10.2917 +
 10.2918 +左から[入力キー]、[対応する La@TeX{} コマンド]、[(擬似)記号図示]、と
 10.2919 +いう順でメニューが出て来るので、よく使うものを覚えておくと良いでしょ
 10.2920 +う。ものによってはASCII文字で表現することが困難なので、あまり覚え
 10.2921 +やすいキー並びではないものがあるでしょうから、そのような場合は 
 10.2922 +\maketitle 型補完で入力するか、以下に述べる対応表の設定を行って単
 10.2923 +純なキー並びのものを設定すると良いでしょう。
 10.2924 +
 10.2925 +  入力キーと    La@TeX{} コマンド、記号の対応表を個人的に設定したい場合は 
 10.2926 +Emacs-Lisp 変数 @code{YaTeX-math-sign-alist-private}  に定義してください。
 10.2927 +その内容とデフォルトのものを合わせたものが対応表として使用されます(private
 10.2928 +の方が優先される)。なお、この変数の構造については @file{yatexmth.el}  を参
 10.2929 +照してください。
 10.2930 +@cindex YaTeX-math-sign-alist-private
 10.2931 +
 10.2932 +@node Greek letter completion,  , Image completion, Completion
 10.2933 +@comment  node-name,  next,  previous,  up
 10.2934 +@section ギリシャ文字補完
 10.2935 +@cindex ギリシャ文字補完[きりしやもしほかん]
 10.2936 +@cindex :
 10.2937 +
 10.2938 +  もう一つ、数式環境中で@kbd{:}を押すとギリシャ文字入力モードに入ります。
 10.2939 +@kbd{:}を押した直後に@kbd{a}を押すと@code{\alpha}が、@kbd{g} を押すと 
 10.2940 +@code{\gamma}が、などアルファベットに対応したギリシャ文字が挿入されます。
 10.2941 +操作方法は;の数式記号補完とまったく同じです。まずは@kbd{:}の直後に
 10.2942 +TABを押してどのアルファベットにどのギリシャ文字が対応しているか調べてみて
 10.2943 +ください。
 10.2944 +
 10.2945 +  @kbd{;}と@kbd{:}を数式環境中で押しているにもかかわらず、イメージ補完が働
 10.2946 +かない場合は、@kbd{C-u ;}のように universal-argument をつけてキーを押すこ
 10.2947 +とにより、強制的にイメージ補完に入ることができます。また、この時にどのよう
 10.2948 +な状態で数式環境内判定に失敗したかをご連絡下さい。
 10.2949 +
 10.2950 +@node Local dictionary, Commenting out, Completion, Top
 10.2951 +@comment  node-name,  next,  previous,  up
 10.2952 +@chapter ローカル辞書
 10.2953 +@cindex ローカル辞書[ろおかるししよ]
 10.2954 +@cindex .yatexrc
 10.2955 +
 10.2956 +  補完入力用の候補は三種類の辞書から構成されています。一つは
 10.2957 +@file{yatex.el}に組み込まれた「標準辞書」、もう一つはユーザが個人的に常用
 10.2958 +するコマンドを保存する「ユーザ辞書」、そしてもうひとつはあるディレクトリで
 10.2959 +のみ有効なコマンドを保存する「ローカル辞書」です。
 10.2960 +
 10.2961 +  補完入力時に新しい単語を入れた場合に、その単語をどの辞書に入れるか聞いて
 10.2962 +来ます。
 10.2963 +
 10.2964 +@example
 10.2965 +  `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard
 10.2966 +@end example
 10.2967 +
 10.2968 +@noindent
 10.2969 +というプロンプトに対し、@kbd{u}と答えると「ユーザ辞書」を、@kbd{l}と答える
 10.2970 +とローカル辞書を更新し、@kbd{n}と答えると辞書ファイルは更新せず現在のEmacs
 10.2971 +セッションのみ有効な単語とし、@kbd{d}と答えると新たな単語を学習せずに捨て
 10.2972 +ることになります。
 10.2973 +
 10.2974 +  もし、ローカル辞書の機能はいらず、全てユーザ辞書の更新のみでよいと言う場
 10.2975 +合には@file{~/.emacs}などで、
 10.2976 +@cindex YaTeX-nervous
 10.2977 +
 10.2978 +@lisp
 10.2979 +        (setq YaTeX-nervous nil)
 10.2980 +@end lisp
 10.2981 +
 10.2982 +@noindent
 10.2983 +として下さい。
 10.2984 +
 10.2985 +@node Commenting out, Cursor jump, Local dictionary, Top
 10.2986 +@comment  node-name,  next,  previous,  up
 10.2987 +@chapter コメントアウト
 10.2988 +@cindex コメントアウト[こめんとあうと]
 10.2989 +@cindex prefix <
 10.2990 +@cindex prefix >
 10.2991 +@cindex prefix .
 10.2992 +@cindex prefix ,
 10.2993 +
 10.2994 +
 10.2995 +  La@TeX{}の編集には試行錯誤がつきものです。ある部分を一括でコメントアウト
 10.2996 +したり、コメントを外したりしたいことがあります。
 10.2997 +
 10.2998 +@table @kbd
 10.2999 +@item [prefix] >
 10.3000 +        @dots{} リジョンを % でコメントアウト
 10.3001 +@item [prefix] <
 10.3002 +        @dots{} リジョンの % のコメントを外す
 10.3003 +@end table
 10.3004 +
 10.3005 +@noindent
 10.3006 +は、あらかじめ設定したリジョンに対しての操作、
 10.3007 +
 10.3008 +@table @kbd
 10.3009 +@item [prefix] .
 10.3010 +        @dots{} 現在のパラグラフをコメントアウト
 10.3011 +@item [prefix] ,
 10.3012 +        @dots{} 現在のパラグラフのコメントを外す
 10.3013 +@end table
 10.3014 +
 10.3015 +@noindent
 10.3016 +は、カーソルの位置するパラグラフ全体に対しての操作です。なお、ここでいう
 10.3017 +「パラグラフ」は (@code{mark-paragraph}) 関数によりマークされる範囲を指し
 10.3018 +ます(標準設定で@kbd{ESC h}にバインドされている)。なお、既に@code{%}でコメ
 10.3019 +ントアウトされているパラグラフに対して繰り返しパラグラフのコメントを使用し
 10.3020 +た場合の動作は保証しませんので御注意ください。
 10.3021 +
 10.3022 +  さて、文章に対してだけでなく、時には@code{\begin}, @code{\end} 自体に対
 10.3023 +してもコメントアウトの操作をしたいときがあります。このようなときは、
 10.3024 +@code{\begin@{@}} あるいは @code{\end@{@}} の行にカーソルを合わせ、
 10.3025 +
 10.3026 +@table @kbd
 10.3027 +@item [prefix] >
 10.3028 +        @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントアウト
 10.3029 +@item [prefix] <
 10.3030 +        @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントを外す
 10.3031 +@end table
 10.3032 +
 10.3033 +@noindent
 10.3034 +とすることで、@code{\begin〜\end}で囲まれる環境全てに対してコメント操作し、
 10.3035 +
 10.3036 +@table @kbd
 10.3037 +@item [prefix] .
 10.3038 +        @dots{} @code{\begin@{@}} と @code{\end@{@}} をコメントアウト
 10.3039 +@item [prefix] ,
 10.3040 +        @dots{} @code{\begin@{@}} と @code{\end@{@}} のコメントを外す
 10.3041 +@end table
 10.3042 +
 10.3043 +は、対応する @code{\begin} と @code{\end} 2行だけを、コメント操作の対象と
 10.3044 +します。リジョンをコメントアウトしようとして、マークを設定したのちにカーソ
 10.3045 +ルを移動し@kbd{[preifx] >} を押してもカーソルが @code{\begin@{@}} の上にあ
 10.3046 +ると@code{\begin@{@}}〜@code{\end@{@}}モードでコメント機能が働いてしまうの
 10.3047 +で注意して下さい。
 10.3048 +
 10.3049 +@node Cursor jump, Modifying/Deleting, Commenting out, Top
 10.3050 +@comment  node-name,  next,  previous,  up
 10.3051 +@chapter カーソルジャンプ
 10.3052 +@cindex カーソルジャンプ[かあそるしやんふ]
 10.3053 +@cindex prefix g
 10.3054 +
 10.3055 +
 10.3056 +@menu
 10.3057 +* 対応オブジェクトへのジャンプ::  
 10.3058 +* お絵描きツール起動::          
 10.3059 +* メインファイルへのジャンプ::  
 10.3060 +* 環境を単位としたジャンプ::    
 10.3061 +* 最後の補完位置へのジャンプ::  
 10.3062 +@end menu
 10.3063 +
 10.3064 +@node 対応オブジェクトへのジャンプ, お絵描きツール起動, Cursor jump, Cursor jump
 10.3065 +@comment  node-name,  next,  previous,  up
 10.3066 +@section 対応オブジェクトへのジャンプ
 10.3067 +
 10.3068 +  文書中のいろいろな場所で
 10.3069 +
 10.3070 +@table @kbd
 10.3071 +@item [prefix] g
 10.3072 +        @dots{} 対応するオブジェクトにジャンプ
 10.3073 +@end table
 10.3074 +
 10.3075 +@noindent
 10.3076 +を押すことにより、カーソル位置のLa@TeX{}コマンドに対応する場所にジャンプ
 10.3077 +します。対応関係が存在すると解釈されるコマンドには以下のものがあります。
 10.3078 +
 10.3079 +@itemize @bullet
 10.3080 +@item @code{\begin@{@}} ←→ @code{\end@{@}}
 10.3081 +@item @code{%#BEGIN} ←→ @code{%#END}
 10.3082 +@item 画像ファイルの取り込みマクロ → 対応するviewer/お絵かきツール起動
 10.3083 +@item @code{\label@{@}} ←→ @code{\ref@{@}}
 10.3084 +@item @code{\include(\input)} → 対応するファイル
 10.3085 +@item @code{\bibitem@{@}} ←→ @code{\cite@{@}}
 10.3086 +@end itemize
 10.3087 +
 10.3088 +  @code{\begin@{@}} か @code{\end@{@}} の行で@kbd{[prefix] g}を押すことに
 10.3089 +より、対応する@code{end/begin}の行にジャンプします。もちろん対応するものが
 10.3090 +ない場合はエラーになります。またこれは、領域固定のための @code{%#BEGIN} と 
 10.3091 +@code{%#END} のペアに対しても同様に動作します。なお、@code{label/ref}や
 10.3092 +@code{cite/bibitem}対応するものが別ファイルにある時は、ジャンプ先となるファ
 10.3093 +イルがオープンされていなければなりません。@xref{%#notation}.
 10.3094 +メインの .tex ファイルの @code{\include@{chap1@}} などにカーソルを合わせ、
 10.3095 +@kbd{[prefix] g} を押すと、@file{chap1.tex} にジャンプします。
 10.3096 +
 10.3097 +また、
 10.3098 +
 10.3099 +@table @kbd
 10.3100 +@item [prefix] 4 g
 10.3101 +        @dots{} 別ウィンドウで対応オブジェクトにジャンプ
 10.3102 +@end table
 10.3103 +
 10.3104 +@noindent
 10.3105 +を押すと、対応するオブジェクトへのジャンプを別ウィンドウで行います。ただし、
 10.3106 +この機能は @code{begin/end}, @code{%#BEGIN/%#END} 間のジャンプに対しては
 10.3107 +(意味がないと思われるので)機能しないので注意してください。
 10.3108 +
 10.3109 +@node お絵描きツール起動, メインファイルへのジャンプ, 対応オブジェクトへのジャンプ, Cursor jump
 10.3110 +@comment  node-name,  next,  previous,  up
 10.3111 +@section お絵描きツール起動
 10.3112 +@cindex お絵描きツール起動[おえかきつうるきとう]
 10.3113 +
 10.3114 +上記の「画像ファイルの取り込みマクロ」とは、例えば 
 10.3115 +@code{\epsfile@{file=foo@}} のような挿絵取り込みコマンドのことで、この行に
 10.3116 +カーソルを合わせて@kbd{[prefix] g}を押すとその画像ファイルの元となったファ
 10.3117 +イルを対応するお絵描きツールを起動してオープンします。起動するツールの判定
 10.3118 +は以下のようになされます。
 10.3119 +
 10.3120 +@enumerate
 10.3121 +@item
 10.3122 +カレント行が変数 @code{YaTeX-processed-file-regexp-alist} に定義さ
 10.3123 +れている正規表現のいずれかとマッチしたら、ファイル名に相当する部分を 
 10.3124 +\\(\\)から抜き出して覚えておく(何番目の\\(\\)かは変数の各リストの cdr 部に
 10.3125 +入れておく)。マッチしなければ何もしない。
 10.3126 +@item
 10.3127 +行末に、変数 @code{YaTeX-file-processor-alist} に登録されているコマンドが
 10.3128 +「%コマンド」 のように書いてあれば強制的に「コマンド ファイル名.拡張子」を
 10.3129 +起動。
 10.3130 +@item
 10.3131 +なければ、変数 @code{YaTeX-file-processor-alist} の各リストのcdr部に入って
 10.3132 +いる拡張子を「ファイル名」の後ろに足したファイルが存在するか順次調べて、存
 10.3133 +在した場合car部に入っているコマンドを起動する。
 10.3134 +@item
 10.3135 +以上どれかにマッチしなければあきらめる。
 10.3136 +@end enumerate
 10.3137 +
 10.3138 +
 10.3139 +変数 @code{YaTeX-file-processor-alist} と変数 
 10.3140 +@code{YaTeX-file-processor-alist} の設定方法についてはそれぞれの変数につい
 10.3141 +て describe-variable して説明を読んで下さい。うまく設定すると、画像ファイ
 10.3142 +ルにかぎらず、任意の形式のファイルを任意のプロセッサで処理するコマンドを簡
 10.3143 +単に呼び出すことができます。
 10.3144 +
 10.3145 +@node メインファイルへのジャンプ, 環境を単位としたジャンプ, お絵描きツール起動, Cursor jump
 10.3146 +@comment  node-name,  next,  previous,  up
 10.3147 +@section メインファイルへのジャンプ
 10.3148 +
 10.3149 +@file{chap1.tex}のようなサブファイルで、
 10.3150 +
 10.3151 +@table @kbd
 10.3152 +@item [prefix] ^
 10.3153 +        @dots{} メインファイルにジャンプ
 10.3154 +@item [prefix] 4 ^
 10.3155 +        @dots{} 別ウィンドウでメインファイルにジャンプ
 10.3156 +@end table
 10.3157 +
 10.3158 +@noindent
 10.3159 +を押すと、メインファイルの編集バッファに切替えます。もし、メインファイルを
 10.3160 +オープンしていない場合は、カレントディレクトリから探して自動的にオープンし
 10.3161 +ます。
 10.3162 +
 10.3163 +@node 環境を単位としたジャンプ, 最後の補完位置へのジャンプ, メインファイルへのジャンプ, Cursor jump
 10.3164 +@comment  node-name,  next,  previous,  up
 10.3165 +@section 環境を単位としたジャンプ
 10.3166 +
 10.3167 +さらに現在の環境を単位として機能するコマンドに以下のものがあります。
 10.3168 +
 10.3169 +@cindex 環境の先頭へ[かんきようのせんとうへ]
 10.3170 +@cindex 環境の末尾へ[かんきようのまつひへ]
 10.3171 +@cindex 環境をマーク[かんきようをまあく]
 10.3172 +@cindex M-C-a
 10.3173 +@cindex M-C-e
 10.3174 +@cindex M-C-@@
 10.3175 +@table @kbd
 10.3176 +@item M-C-a
 10.3177 +        @dots{} 環境の先頭(@code{\begin})へジャンプ
 10.3178 +@item M-C-e
 10.3179 +        @dots{} 環境の末尾(@code{\end})へジャンプ
 10.3180 +@item M-C-@@
 10.3181 +        @dots{} 環境全体をマーク
 10.3182 +@end table
 10.3183 +
 10.3184 +上記のコマンドは通常の@kbd{[prefix]}キーではなく@kbd{META}キーをプリフィク
 10.3185 +スとして機能するのでご注意下さい。
 10.3186 +
 10.3187 +@node 最後の補完位置へのジャンプ,  , 環境を単位としたジャンプ, Cursor jump
 10.3188 +@comment  node-name,  next,  previous,  up
 10.3189 +@section 最後の補完位置へのジャンプ
 10.3190 +
 10.3191 +野鳥は補完入力した位置を常にレジスタ @code{3}に保存しています。
 10.3192 +入力途中で如何なるファイルの如何なる位置に行ったとしても、
 10.3193 +@kbd{C-x j 3}(@code{jump-to-register})を使って直ちに最後の補完入力位置に戻
 10.3194 +ることができます。
 10.3195 +
 10.3196 +@node Modifying/Deleting, Filling, Cursor jump, Top
 10.3197 +@comment  node-name,  next,  previous,  up
 10.3198 +@chapter 変更/削除
 10.3199 +@cindex 変更/削除[へんこう/さくしよ]
 10.3200 +@cindex prefix c
 10.3201 +@cindex prefix k
 10.3202 +
 10.3203 +  既に入力されている La@TeX{} コマンドの変更/削除のために以下の機能が用意
 10.3204 +されています。
 10.3205 +
 10.3206 +@table @kbd
 10.3207 +@item [prefix] c
 10.3208 +        @dots{} カーソル位置の La@TeX{} コマンドの変更
 10.3209 +@item [prefix] k
 10.3210 +        @dots{} カーソル位置の La@TeX{} コマンドの削除
 10.3211 +@end table
 10.3212 +
 10.3213 +
 10.3214 +これらのコマンドは、コマンドを起動する場所によって動作を決定するので注意し
 10.3215 +て下さい。
 10.3216 +
 10.3217 +@menu
 10.3218 +* Changing LaTeX command::      La@TeX{} コマンドの変更
 10.3219 +* Killing LaTeX command::       La@TeX{} コマンドの削除
 10.3220 +@end menu
 10.3221 +
 10.3222 +@node Changing LaTeX command, Killing LaTeX command, Modifying/Deleting, Modifying/Deleting
 10.3223 +@comment  node-name,  next,  previous,  up
 10.3224 +@section La@TeX{} コマンドの変更
 10.3225 +
 10.3226 +変更したい La@TeX{} コマンドにカーソルを合わせて @kbd{[prefix] c} 
 10.3227 +を押すとそのコマンドを補完入力などを用いて手軽に変えることができます。
 10.3228 +@kbd{[prefix] c} で変更できるコマンドには以下のものがあります。
 10.3229 +
 10.3230 +@itemize
 10.3231 +@item @code{begin/end} の環境名
 10.3232 +@item section型コマンドのコマンド名
 10.3233 +@item section型コマンドの引数
 10.3234 +@item section型コマンドのオプションパラメータ([]で囲まれたもの)
 10.3235 +@item large型コマンド
 10.3236 +@item (イメージ補完で入力可能な)数式モード専用のmaketitle型コマンド
 10.3237 +@end itemize
 10.3238 +
 10.3239 +  変えたいsection型コマンドの引数がさらに La@TeX{} コマンドを含む場合は、
 10.3240 +その引数を囲む中括弧の上で @kbd{[prefix] c} を押すことで中のコマンドを変更
 10.3241 +対象判定から除外することができます。
 10.3242 +
 10.3243 +@cindex 環境名の変更[かんきようめいのへんこう]
 10.3244 +
 10.3245 +@node Killing LaTeX command,  , Changing LaTeX command, Modifying/Deleting
 10.3246 +@comment  node-name,  next,  previous,  up
 10.3247 +@section La@TeX{} コマンドの削除
 10.3248 +
 10.3249 +@kbd{[prefix] k} は起動する位置により
 10.3250 +次のような動作を行います。
 10.3251 +@cindex 環境の削除[かんきようのさくしよ]
 10.3252 +
 10.3253 +
 10.3254 +@example
 10.3255 +起動位置                        動作
 10.3256 +\begin, \endの行                @code{\begin\end}ペアの削除
 10.3257 +%#BEGIN, %#END の行             %#BEGIN,%#ENDペアの削除
 10.3258 +section型コマンドの上(中)       section型コマンドの削除
 10.3259 +フォント指定括弧の上            フォント指定の削除
 10.3260 +括弧の上                        対をなす括弧の削除
 10.3261 +@end example
 10.3262 +
 10.3263 +
 10.3264 +@code{\begin, \end} および @code{%#BEGIN, %#END} を削除する場合、
 10.3265 +@code{\begin, \end} や @code{%#BEGIN, %#END} の存在する行は
 10.3266 +まるごと削除されるので、それらの一行に @code{\begin} などを二つ以上連ねて
 10.3267 +書かないように注意してください。
 10.3268 +上記のものはすべて本文を囲う「容器」を削除するように働きますが、
 10.3269 +universal-argument (@kbd{C-u}) を打った後で@kbd{[prefix] k}をタイプすると、
 10.3270 +それぞれの「容器」に含まれる「中身」も一気に削除します。以下の例を参考にし
 10.3271 +て下さい。
 10.3272 +
 10.3273 +@example
 10.3274 +        元のテキスト:                   [prefix] k      C-u [prefix] k
 10.3275 +        本文\footnote@{脚注@}です。     本文脚注です。  本文です。
 10.3276 +                ↑(カーソル位置)
 10.3277 +@end example
 10.3278 +
 10.3279 +@node Filling, Includeonly, Modifying/Deleting, Top
 10.3280 +@comment  node-name,  next,  previous,  up
 10.3281 +@chapter 桁揃え
 10.3282 +@cindex 桁揃え[けたそろえ]
 10.3283 +
 10.3284 +@section itemの桁揃え
 10.3285 +@cindex itemなどの桁揃え[itemなとのけたそろえ]
 10.3286 +@cindex prefix i
 10.3287 +
 10.3288 +  itemize 環境中にある@code{\item}の項目(文章)が複数行に渡る場合に、項
 10.3289 +目の先頭を桁揃えしたい場合には、
 10.3290 +
 10.3291 +@c @table @kbd
 10.3292 +@c @item [prefix] i
 10.3293 +@c         @dots{} itemの桁揃え
 10.3294 +@c @end table
 10.3295 +
 10.3296 +@table @kbd
 10.3297 +@item M-q
 10.3298 +        @dots{} 桁揃え
 10.3299 +@end table
 10.3300 +@cindex NTT-jTeX[えぬていいていいしえいてつく]
 10.3301 +
 10.3302 +@noindent
 10.3303 +によって、その item のインデントの深さに応じて fill されます。なお、古い
 10.3304 +NTT jTeX を使用している場合には、Lisp 変数@code{NTT-jTeX}を@code{t}にセッ
 10.3305 +トして下さい。
 10.3306 +
 10.3307 +@cindex YaTeX-item-regexp
 10.3308 +  このとき、変数@code{YaTeX-item-regexp}の値(標準では @code{"\\\\item"})を
 10.3309 +項目指定コマンドの正規表現として検索に使用します。itemize 環境で、独自のコ
 10.3310 +マンドを定義して項目を列挙している場合(例えば@code{\underlineitem})は、
 10.3311 +@file{~/.emacs} で次のように指定して下さい。
 10.3312 +
 10.3313 +@lisp
 10.3314 +        (setq YaTeX-item-regexp
 10.3315 +              "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)")
 10.3316 +@end lisp
 10.3317 +
 10.3318 +
 10.3319 +この変数の指定の仕方がよく分からない場合は、独自の項目列挙コマンドの名前を
 10.3320 +@code{@code{"\item"}で始まるものにして下さい(例えば"\itembf"})。
 10.3321 +
 10.3322 +野鳥の @kbd{M-q} では @code{\item} を環境に応じて以下のように「ハングイン
 10.3323 +デント」します。
 10.3324 +
 10.3325 +@example
 10.3326 +itemize, enumerate環境:
 10.3327 +       >\item[ほげほげ] 英語では、特に意味のない単語を `foo' であらわしま
 10.3328 +       >                すが、これの日本語版ともいえる単語が「ほげほげ」
 10.3329 +       >                です。
 10.3330 +description環境:
 10.3331 +       > \item[へろへろ] 「ほげほげ」をでたらめが単語として使った時に、第
 10.3332 +       >            2のでたらめな単語として「へろへろ」が使われることが多
 10.3333 +       >            いようです。
 10.3334 +@end example
 10.3335 +
 10.3336 +@section パラグラフの桁揃え
 10.3337 +@cindex パラグラフの桁揃え[はらくらふのけたそろえ]
 10.3338 +@cindex M-q
 10.3339 +
 10.3340 +  itemize環境以外でのパラグラフの桁揃え(fill)は、基本的に他のモードと同じ
 10.3341 +ように機能しますが、verbatim環境や、tabular環境など桁揃えをすると悲惨な状
 10.3342 +況になるような環境中では機能しません。また、\verb で括ってあるものは決して
 10.3343 +行分割されません(変数 @code{YaTeX-verb-regexp} で制御) )。さらに、一時的に
 10.3344 +インデントの深さを変えてある箇所では、そのインデントの先頭で@kbd{M-q}を押
 10.3345 +すことにより fill-prefix をいちいち変更しなくて桁揃えができます。
 10.3346 +
 10.3347 +
 10.3348 +@node Includeonly, What column, Filling, Top
 10.3349 +@comment  node-name,  next,  previous,  up
 10.3350 +@chapter 勝手にincludeonly
 10.3351 +@cindex 勝手にincludeonly[かつてにincludeonly]
 10.3352 +@cindex includeonly
 10.3353 +
 10.3354 +  ファイルを分割して文章を入力している時には、メインファイル中に
 10.3355 +
 10.3356 +@example
 10.3357 +        \includeonly@{現在編集中のファイル名@}
 10.3358 +@end example
 10.3359 +
 10.3360 +@noindent
 10.3361 +のように書いておくことで、タイプセットの時間を節約できますが、ちょっと他の
 10.3362 +ファイルを手直ししたい時には
 10.3363 +@cindex 他のファイルの手直し[ほかのふあいるのてなおし]
 10.3364 +
 10.3365 +@example
 10.3366 +        \includeonly@{ちょっと手直ししたいファイル名@}
 10.3367 +@end example
 10.3368 +
 10.3369 +
 10.3370 +と書き直さなければならず手間がかかります。野鳥では現在編集しているファイル
 10.3371 +名がメインファイルの@code{\includeonly}にない場合には自動的にこれを検出し、
 10.3372 +次の指示を仰ぎます。
 10.3373 +
 10.3374 +@example
 10.3375 +        A)dd R)eplace %)comment?
 10.3376 +@end example
 10.3377 +
 10.3378 +
 10.3379 +現在編集中のファイルを @code{\includeonly} のリストに加えたい時には@kbd{a}
 10.3380 +を、現在編集中のファイルだけを @code{\includeonly} にしたい時は@kbd{r}を、
 10.3381 +@code{\includeonly} の行をコメントアウトして無効化したい時には、@kbd{%}を
 10.3382 +それぞれ押して下さい。
 10.3383 +
 10.3384 +@node What column, Intelligent newline, Includeonly, Top
 10.3385 +@comment  node-name,  next,  previous,  up
 10.3386 +@chapter ここはどこ?
 10.3387 +@cindex ここはどこ?[ここはとこ?]
 10.3388 +@cindex prefix &
 10.3389 +@cindex 複雑なtabular[ふくさつなtabular]
 10.3390 +
 10.3391 +  項目数の多い tabular などをたくさん書いていると下の方の行で、いま書いて
 10.3392 +いる桁がどこに対応するのかわからなくなってしまうことがあります。例えば、以
 10.3393 +下のような tabular において、
 10.3394 +
 10.3395 +@example
 10.3396 +        \begin@{tabular@}@{|c|c|c|c|c|c|c|c|@}\hline
 10.3397 +         氏名&所属&〒&住所&電話&FAX&帰省先&帰省先電話\\ \hline
 10.3398 +         矢上二郎 & 6 & 223 & 横浜市港北区日吉 & xxx-yyy &
 10.3399 +                zzz-www & トンガ & 9876-54321 \\
 10.3400 +         日吉小僧 & 2 & \multicolumn@{2@}@{c|@}@{教えない@}
 10.3401 +                &&&(???)
 10.3402 +         \\ \hline
 10.3403 +        \end@{tabular@}
 10.3404 +@end example
 10.3405 +
 10.3406 +
 10.3407 +(???)の部分がどの項目なのかすぐに判断するのは難しいでしょう。こんな時は、
 10.3408 +
 10.3409 +@table @kbd
 10.3410 +@item [prefix] &
 10.3411 +        @dots{} 現在のカラム表示
 10.3412 +@end table
 10.3413 +@cindex 現在のカラム表示[けんさいのからむひようし]
 10.3414 +
 10.3415 +@noindent
 10.3416 +を押すとカーソル位置のカラムがどの項目に該当するかをミニバッファに表示しま
 10.3417 +す。tabular/array環境の第1行目を項目名の並びとみなして対応するものを探しま
 10.3418 +す。もし項目名として別のものを表示して欲しい場合は、行頭を@code{%}にしてダ
 10.3419 +ミーの項目並びを作っておくと良いでしょう。
 10.3420 +
 10.3421 +@node Intelligent newline, Usepackage cheker, What column, Top
 10.3422 +@comment  node-name,  next,  previous,  up
 10.3423 +@chapter おまかせ改行
 10.3424 +@cindex おまかせ改行[おまかせかいきよう]
 10.3425 +@cindex &入力[&にゆうりよく]
 10.3426 +
 10.3427 +  tabular[*], array, itemize, enumerate, tabbing 環境をbegin型補完で入力し
 10.3428 +た時、または各環境内で
 10.3429 +
 10.3430 +@table @kbd
 10.3431 +@item ESC RET
 10.3432 +        @dots{} おまかせ改行
 10.3433 +@end table
 10.3434 +
 10.3435 +
 10.3436 +を押すと、その環境に応じた行エントリを次の行に挿入します(begin型補完時に自
 10.3437 +動挿入されたエントリが不要な場合は undo によって消去できます)。例えば、
 10.3438 +tabular環境では、その環境のカラム数に対応した個数の @code{&} に加え、行末
 10.3439 +の @code{\\} を入れます。この時それ以前に @code{\hline} があればそれも付け
 10.3440 +加えます。環境とそれに応じて自動入力するものの対応は以下のようになります。
 10.3441 +
 10.3442 +@itemize
 10.3443 +@item @code{tabular}, @code{tabular*}, @code{array}
 10.3444 +
 10.3445 +        カラム数-1 だけの @code{&} と @code{\\}。必要に応じて @code{\hline}
 10.3446 +
 10.3447 +@item @code{tabbing}
 10.3448 +
 10.3449 +        一行目で定義している @code{\=} と同じ個数の @code{\>}。
 10.3450 +
 10.3451 +@item @code{itemize}, @code{enumerate}, @code{description}, @code{list}
 10.3452 +
 10.3453 +        @code{\item} または @code{item[]}
 10.3454 +@end itemize
 10.3455 +
 10.3456 +  tabular 環境の例のように、本機能は各環境の一行目の内容を参考にして動作す
 10.3457 +るので、なるべく二行目以降で呼び出すようにしてください。
 10.3458 +
 10.3459 +  もし、その他の環境、例えば @code{foo}、に対して@code{おまかせ改行}を動作
 10.3460 +させたい時は、@code{YaTeX-intelligent-newline-foo} という名前の関数を定義
 10.3461 +します。定義した関数は、現在の行に改行を挿入した直後の行頭の位置で呼ばれま
 10.3462 +す。関数 @code{YaTeX-indent-line} を呼ぶと現在の環境のネストに応じた深さに
 10.3463 +インデントされるので、これを呼んでから何かを挿入するようなコードを書くとよ
 10.3464 +いでしょう。@file{yatexenv.el}内の関数 
 10.3465 +@code{YaTeX-intelligent-newline-itemize} の定義などを参考にしてください。
 10.3466 +
 10.3467 +
 10.3468 +@node Usepackage cheker, Changing mode of YaTeX, Intelligent newline, Top
 10.3469 +@comment  node-name,  next,  previous,  up
 10.3470 +@chapter 先回りusepackage
 10.3471 +@cindex 先回りusepackage[さきまわり]
 10.3472 +
 10.3473 +  begin型、section型、maketitle型、いずれかのLaTeX2eマクロを補完入力すると、
 10.3474 +そのマクロの利用に外部パッケージを必要とする場合、そのパッケージを
 10.3475 +本文中で @code{\usepackage@{@}} しているかどうかを調査し、もししていなければ
 10.3476 +プリアンブルに対応するパッケージを引数にした @code{\usepackage} 文を
 10.3477 +(確認後に)挿入します。
 10.3478 +
 10.3479 +  ただしこの機能が働くためには、パッケージ名とその中で定義されているマクロ
 10.3480 +群をalistの形式で変数 @code{YaTeX-package-alist-private} に設定しておく必
 10.3481 +要があります。
 10.3482 +
 10.3483 +@node Changing mode of YaTeX, Online help, Usepackage cheker, Top
 10.3484 +@comment  node-name,  next,  previous,  up
 10.3485 +@chapter 野鳥の動作モード切り替え
 10.3486 +@cindex モード切り替え[もうときりかえ]
 10.3487 +@cindex prefix w
 10.3488 +
 10.3489 +@table @kbd
 10.3490 +@item [prefix] w
 10.3491 +        @dots{} 野鳥動作モード切り替えメニュー
 10.3492 +@end table
 10.3493 +
 10.3494 +@noindent
 10.3495 +で野鳥自身の動作を決定する以下のモードを切り替えます。
 10.3496 +
 10.3497 +@itemize @bullet
 10.3498 +@item 修正モード
 10.3499 +@item 野鳥数式モード
 10.3500 +@end itemize
 10.3501 +
 10.3502 +修正モードは、開き括弧入力時の処理をコントロールし、修正モードONの時は開き
 10.3503 +括弧の入力は開き括弧のみの入力になり、修正モードOFFの時は開き括弧の入力だ
 10.3504 +けで閉じ括弧まで入力します。デフォルト(起動時)の設定は@emph{OFF}です。
 10.3505 +
 10.3506 +  野鳥数式モードは、変数 @code{YaTeX-auto-math-mode} が @code{nil} の時の
 10.3507 +み有効で、このとき@kbd{;}や@kbd{:}を押した時(@ref{Image completion}参照)に、
 10.3508 +どのようなイメージ補完を機能させるか、通常のキーとして機能させるかを手動で
 10.3509 +切り替えます。自動判定が遅いマシンでは@code{YaTeX-auto-math-mode}
 10.3510 +@code{nil}にセットし、野鳥数式モードを手動で切り替えると良いでしょう。
 10.3511 +
 10.3512 +
 10.3513 +@node Online help, Inclusion hierarchy browser, Changing mode of YaTeX, Top
 10.3514 +@comment  node-name,  next,  previous,  up
 10.3515 +@chapter オンラインヘルプ
 10.3516 +@cindex オンラインヘルプ[おんらいんへるふ]
 10.3517 +@cindex apropos
 10.3518 +@cindex キーワード検索[きいわあとけんさく]
 10.3519 +@cindex prefix ?
 10.3520 +@cindex prefix /
 10.3521 +
 10.3522 +  使おうとする La@TeX{} コマンドの用法がよく分からない時は、オンラインヘル
 10.3523 +プをひきましょう。ヘルプに関するキーには以下のものがあります。
 10.3524 +
 10.3525 +@table @kbd
 10.3526 +@item [prefix] ?
 10.3527 +        @dots{} オンラインヘルプ
 10.3528 +@item [prefix] /
 10.3529 +        @dots{} オンラインapropos
 10.3530 +@end table
 10.3531 +
 10.3532 +@section オンラインヘルプ
 10.3533 +@cindex グローバルヘルプ[くろおはるへるふ]
 10.3534 +@cindex プライベートヘルプ[ふらいへえとへるふ]
 10.3535 +@cindex YaTeX-help-file
 10.3536 +@cindex YaTeX-help-file-private
 10.3537 +
 10.3538 +  「オンラインヘルプ」は、一般的な La@TeX{} コマンド(デフォルトでカーソル
 10.3539 +位置のコマンド)に対する説明を隣のバッファに表示します。この時参照されるヘ
 10.3540 +ルプ用ファイルには「グローバルヘルプ」と「プライベートヘルプ」の二種類があ
 10.3541 +り、前者は La@TeX{} の標準コマンドの主なものの説明を含むファイルで、変数
 10.3542 +@code{YaTeX-help-file}の値で指定されます。このファイルは通常公共の場所(デ
 10.3543 +フォルトで@code{$EMACSEXECPATH})に置かれ、誰もがその内容を更新できるように
 10.3544 +全員に書き込み権が与えられるべきものです。後者は、非標準もしくは個人的なマ
 10.3545 +クロ定義に関する説明が書かれているファイルで、変数
 10.3546 +@code{YaTeX-help-file-private}の値で指定されます。こちらはユーザのホームディ
 10.3547 +レクトリの下などに置かれます。
 10.3548 +
 10.3549 +@section オンラインapropos
 10.3550 +
 10.3551 +  「オンラインapropos」は GNU Emacs の apropos と同様、ユーザが指定したキー
 10.3552 +ワードを説明文に含む項目すべてを隣のバッファに表示します。
 10.3553 +
 10.3554 +  もし、調べようとしたLa@TeX{}コマンドに対する説明がヘルプファイル中に見つ
 10.3555 +からなかった場合は、説明文の入力を求めてくるので、可能であれば参考書などを
 10.3556 +調べてそのコマンドの説明を入力してください。もし、なにか標準的なコマンドに
 10.3557 +対する説明を書いたならばぜひ私までその説明をお送り下さい。次回の配布に含め
 10.3558 +たいと思います。
 10.3559 +
 10.3560 +@node Inclusion hierarchy browser, Cooperation with other packages, Online help, Top
 10.3561 +@comment  node-name,  next,  previous,  up
 10.3562 +@chapter インクルード構造ブラウザ
 10.3563 +@cindex インクルード構造[いんくるうとこうそう]
 10.3564 +@cindex prefix d
 10.3565 +
 10.3566 +複数のファイルに分割しているドキュメントを書いている場合、
 10.3567 +
 10.3568 +@table @kbd
 10.3569 +@item [prefix] d
 10.3570 +        @dots{} インクルード構造ブラウズ
 10.3571 +@end table
 10.3572 +
 10.3573 +@noindent
 10.3574 +を押すと、そのドキュメントの親ファイルを聞いて来ます。ここで全てのファイル
 10.3575 +の親となるファイル(デフォルトが示されているので大抵はRETのみ)を入力すると
 10.3576 +インクルードしている全てのファイルを解析し、インクルード状況を視覚的に表示
 10.3577 +します。このバッファでは以下のキー操作が有効です。
 10.3578 +
 10.3579 +@table @kbd
 10.3580 +@item n
 10.3581 +        @dots{} 次の行に移動し対応するファイルを隣のバッファに表示
 10.3582 +@item p
 10.3583 +        @dots{} 上の行に移動し対応するファイルを隣のバッファに表示
 10.3584 +@item N
 10.3585 +        @dots{} 同じインクルードレベルの次のファイルに移動
 10.3586 +@item P
 10.3587 +        @dots{} 同じインクルードレベルの前のファイルに移動
 10.3588 +@item j
 10.3589 +        @dots{} 次の行に移動
 10.3590 +@item k
 10.3591 +        @dots{} 上の行に移動
 10.3592 +@item u
 10.3593 +        @dots{} 一代親にあたるファイルに移動
 10.3594 +@item .
 10.3595 +        @dots{} カーソル位置のファイルを隣のバッファに表示
 10.3596 +@item SPC
 10.3597 +        @dots{} 隣のバッファの対応ファイルをスクロールアップ
 10.3598 +@item DEL, b
 10.3599 +        @dots{} 隣のバッファの対応ファイルをスクロールダウン
 10.3600 +@item <
 10.3601 +        @dots{} 隣のバッファの対応ファイルの先頭を表示
 10.3602 +@item >
 10.3603 +        @dots{} 隣のバッファの対応ファイルの末尾を表示
 10.3604 +@item '
 10.3605 +        @dots{} (@kbd{<}や@kbd{>}の後で)元の表示位置に戻る
 10.3606 +@item RET, g
 10.3607 +        @dots{} カーソル位置のファイルを隣のバッファでオープン
 10.3608 +@item mouse-2
 10.3609 +        @dots{} RETと同じ(ウィンドウ使用時のみ)
 10.3610 +@item o
 10.3611 +        @dots{} 隣のウィンドウに移動
 10.3612 +@item 1
 10.3613 +        @dots{} 他のウィンドウを消す
 10.3614 +@item -
 10.3615 +        @dots{} ブラウズウィンドウを小さくする
 10.3616 +@item +
 10.3617 +        @dots{} ブラウズウィンドウを大きくする
 10.3618 +@item ?
 10.3619 +        @dots{} ヘルプ表示
 10.3620 +@item q
 10.3621 +        @dots{} 表示前の状態に戻る
 10.3622 +@end table
 10.3623 +
 10.3624 +  ただし、隣のウィンドウのファイルの内容を表示する機能に関しては、対応する
 10.3625 +ファイルをクローズしてしまうとうまく働きませんのでご注意ください。
 10.3626 +
 10.3627 +@node Cooperation with other packages, Customizations, Inclusion hierarchy browser, Top
 10.3628 +@comment  node-name,  next,  previous,  up
 10.3629 +@chapter 他パッケージとの連携
 10.3630 +@cindex  他パッケージとの連携[たはつけえしとのれんけい]
 10.3631 +
 10.3632 +@section gmhist
 10.3633 +@cindex gmhist
 10.3634 +@cindex コマンドヒストリ[こまんとひすとり]
 10.3635 +@cindex ヒストリ[ひすとり]
 10.3636 +
 10.3637 +  @file{gmhist.el}と@file{gmhist-mh.el} をロードしている場合、プレヴューコ
 10.3638 +マンドの入力(@kbd{[prefix] tp]})、印刷コマンドの入力(@kbd{[prefix] tl})の
 10.3639 +時に独立したヒストリを利用できます。それぞれのプロンプトで、@kbd{M-p} を押
 10.3640 +すと直前に利用したコマンド文字列をくり返し呼び出すことができます。
 10.3641 +
 10.3642 +@section min-out
 10.3643 +@cindex min-out
 10.3644 +
 10.3645 +  @file{min-out.el} (@code{outline-minor-mode}) と野鳥を組み合わせて使うこ
 10.3646 +とももちろん可能です。設定の方法に関しては@file{yatexm-o.el}をご覧ください。
 10.3647 +
 10.3648 +@node Customizations, Etc, Cooperation with other packages, Top
 10.3649 +@comment  node-name,  next,  previous,  up
 10.3650 +@chapter カスタマイズ
 10.3651 +@cindex カスタマイズ[かすたまいす]
 10.3652 +@cindex キーアサイン[きいあさいん]
 10.3653 +
 10.3654 +  野鳥の動作を制御する種々の変数を独自に設定することにより、補完入
 10.3655 +力を起動するキーアサインを変えたり、環境名の補完候補をさらに充実さ
 10.3656 +せることなどができます。
 10.3657 +
 10.3658 +@menu
 10.3659 +* Lisp variables::              lisp 変数
 10.3660 +* Add-in functions::            付加関数(アドイン関数)
 10.3661 +@end menu
 10.3662 +
 10.3663 +@node Lisp variables, Add-in functions, Customizations, Customizations
 10.3664 +@comment  node-name,  next,  previous,  up
 10.3665 +@section lisp 変数
 10.3666 +@cindex prefixキー変更[prefixきいへんこう]
 10.3667 +
 10.3668 +  例えば prefix キーを @kbd{C-c} 以外のキーにしたい場合は、
 10.3669 +@code{YaTeX-prefix}に prefix キーにしたいシンボルを定義してください。さら
 10.3670 +に、「@kbd{C-c 英字}」というキーバインドは独自の関数が割り当ててあるので使
 10.3671 +いたくない。このような時は、@code{YaTeX-inhibit-prefix-letter} を @code{t} 
 10.3672 +に設定することにより、@kbd{C-c 英字…}のバインドが全て、対応する@kbd{C-c
 10.3673 +C-英字…}に変わります(ただし、begin型 large型補完の大文字起動によるリジョ
 10.3674 +ン指定は可能なままです。これも無効にしたい場合は@code{t}ではなく 1 にセッ
 10.3675 +トして下さい。)。
 10.3676 +
 10.3677 +@menu
 10.3678 +* All customizable variables::  カスタマイズ変数一覧
 10.3679 +* Sample definitions::          カスタマイズ変数設定例
 10.3680 +* Hook variables::              hook変数
 10.3681 +* Hook file::                   hook用ファイル
 10.3682 +@end menu
 10.3683 +
 10.3684 +@node All customizable variables, Sample definitions, Lisp variables, Lisp variables
 10.3685 +@comment  node-name,  next,  previous,  up
 10.3686 +@subsection カスタマイズ変数一覧
 10.3687 +@cindex カスタマイズ変数一覧[かすたまいすへんすういちらん]
 10.3688 +
 10.3689 +  yatex-mode における次の変数がカスタマイズ可能です。@file{~/.emacs} で 
 10.3690 +@code{setq} しておけば、そちらの定義が優先されます。括弧の中はデフォルト値
 10.3691 +です。実際に変数の値を変更する場合は @kbd{M-x describe-variable} で
 10.3692 +変数の詳細な説明を参照してください。
 10.3693 +
 10.3694 +@defvar YaTeX-prefix
 10.3695 +yatex-mode 中のプリフィクスキー (@kbd{\C-c})
 10.3696 +@end defvar
 10.3697 +
 10.3698 +@defvar YaTeX-inhibit-prefix-letter
 10.3699 +prefix キーの直後のキーバインドで @kbd{英字} のものを @kbd{C-英字} に変更 
 10.3700 +(@code{nil})
 10.3701 +@end defvar
 10.3702 +
 10.3703 +@defvar YaTeX-fill-prefix
 10.3704 +本文を書く時の行頭に挿入する接頭辞すなわち fill-prefix (@code{""(nil)})
 10.3705 +@end defvar
 10.3706 +
 10.3707 +@defvar YaTeX-user-completion-table
 10.3708 +学習したLa@TeX{}コマンド保存ファイル名 (@code{"~/.yatexrc"})
 10.3709 +@end defvar
 10.3710 +
 10.3711 +@defvar YaTeX-kanji-code
 10.3712 +文書を作成する時の漢字コード
 10.3713 +nil=既存のコードのまま 0=no-conversion 1=Shift JIS,
 10.3714 +2=JIS, 3=EUC, 4=UTF-8 (2 (MS-DOSでは1))
 10.3715 +@end defvar
 10.3716 +
 10.3717 +@defvar tex-command
 10.3718  La@TeX{}タイプセッタコマンド名 (@code{"platex"})
 10.3719 -@end defvar
 10.3720 -
 10.3721 -@defvar dvi2-command
 10.3722 -プレヴューアコマンド名 (@code{"xdvi -geo +0+0 -s 4"})
 10.3723 -@end defvar
 10.3724 -
 10.3725 -@defvar dviprint-command-format
 10.3726 -dviファイルの印刷に使われるコマンド式 (@code{"dvi2ps %f %t %s | lpr"})
 10.3727 -@end defvar
 10.3728 -
 10.3729 -@defvar dviprint-from-format
 10.3730 -上の@code{%f}に相当する開始ページ指定書式、@code{%b} が開始ページ番号に変
 10.3731 -わる (@code{"-f %b"})
 10.3732 -@end defvar
 10.3733 -
 10.3734 -@defvar dviprint-to-format
 10.3735 -@code{%t} に相当する終了ページ指定書式、@code{%e}が終了ページ番号に変わる 
 10.3736 -(@code{"-t %e"})
 10.3737 -@end defvar
 10.3738 -
 10.3739 -@defvar makeindex-command
 10.3740 -makeindexコマンド (@code{"makeindex"} (MS-DOSでは@code{"makeind"}))
 10.3741 -@end defvar
 10.3742 -
 10.3743 -@defvar YaTeX-dvipdf-command
 10.3744 -dviをPDFに変換するコマンド (@code{"dvipdfmx"})
 10.3745 -@end defvar
 10.3746 -
 10.3747 -@defvar YaTeX-need-nonstop
 10.3748 -@code{\nonstopmode@{@}}を自動的に付加するか (@code{nil})
 10.3749 -@end defvar
 10.3750 -
 10.3751 -@defvar latex-warning-regexp
 10.3752 -latexコマンドの出力するウォーニング行の正規表現 (@code{"line.* [0-9]*"})
 10.3753 -@end defvar
 10.3754 -
 10.3755 -@defvar latex-error-regexp
 10.3756 -同じくエラー行の正規表現 (@code{"l\\.[1-9][0-9]*"})
 10.3757 -@end defvar
 10.3758 -
 10.3759 -@defvar latex-dos-emergency-message
 10.3760 -MS-DOS上で動作する latex コマンドが、エラーにより停止するとき出力するメッ
 10.3761 -セージ (@code{"Emergency stop"})
 10.3762 -@end defvar
 10.3763 -
 10.3764 -@defvar latex-message-kanji-code
 10.3765 -タイプセッタの出力するメッセージの漢字コード.タイプセットバッファ
 10.3766 -の出力が化ける時は、これを設定する (2, Nemacsでのみ有効)
 10.3767 -@end defvar
 10.3768 -
 10.3769 -@defvar NTT-jTeX
 10.3770 -古いNTT-j@TeX{}使用時のようにインデントした行の先頭と前の行の
 10.3771 -(タイプセット後の)字間が空いてしまうのを嫌う場合は@code{t}にする
 10.3772 -(@code{nil})
 10.3773 -@end defvar
 10.3774 -
 10.3775 -@defvar YaTeX-item-regexp
 10.3776 -itemの桁揃えの時に用いる、itemの正規表現 (@code{"\\\\(sub\\)*item"})
 10.3777 -@end defvar
 10.3778 -
 10.3779 -@defvar YaTeX-verb-regexp
 10.3780 -verbコマンドの正規表現。先頭の\\\\はつけない (@code{"verb\\*?\\|path"})
 10.3781 -@end defvar
 10.3782 -
 10.3783 -@defvar YaTeX-nervous
 10.3784 -ローカル辞書を用いる時 @code{t} (@code{t})
 10.3785 -@end defvar
 10.3786 -
 10.3787 -@defvar YaTeX-sectioning-regexp
 10.3788 -セクション区切り設定コマンドの正規表現 
 10.3789 -(@code{"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"})
 10.3790 -@end defvar
 10.3791 -
 10.3792 -@defvar YaTeX-fill-inhibit-environments
 10.3793 -fill を抑止する環境名のリスト 
 10.3794 -(@code{'("tabular" "tabular*" "array" "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" "verbatim" "verbatim*")})
 10.3795 -@end defvar
 10.3796 -
 10.3797 -@defvar YaTeX-uncomment-once
 10.3798 -領域uncommentで行頭の複数の@code{%}を全て削除するか (@code{nil})
 10.3799 -@end defvar
 10.3800 -
 10.3801 -@defvar YaTeX-close-paren-always
 10.3802 -開き括弧の入力で常に閉じ括弧を入力する (@code{t})
 10.3803 -@end defvar
 10.3804 -
 10.3805 -@defvar YaTeX-auto-math-mode
 10.3806 -数式モードの切り替えを自動的に行う (@code{t})
 10.3807 -@end defvar
 10.3808 -
 10.3809 -@defvar YaTeX-math-key-list-private
 10.3810 -数式イメージ補完で用いる (プリフィクスキー . 対応補完テーブル) の
 10.3811 -alist (@code{nil})。補完テーブルの書き方については@file{yatexmth.el}を参照。
 10.3812 -@end defvar
 10.3813 -
 10.3814 -@defvar YaTeX-default-pop-window-height
 10.3815 -1画面の時にタイプセットバッファを初めて作成する時の高さ。数値で行数、数字
 10.3816 -文字列でEmacsウィンドウに対する百分率 (10)
 10.3817 -@end defvar
 10.3818 -
 10.3819 -@defvar YaTeX-help-file
 10.3820 -共用ヘルプファイル (@file{$doc-directory/../../site-lisp/YATEXHLP.jp})
 10.3821 -@end defvar
 10.3822 -
 10.3823 -@defvar YaTeX-help-file-private
 10.3824 -個人用ヘルプファイル (@file{"~/YATEXHLP.jp"})
 10.3825 -@end defvar
 10.3826 -
 10.3827 -@defvar YaTeX-no-begend-shortcut
 10.3828 -@kbd{[prefix] b ??} のショートカットを使わず、@kbd{[prefix] b} だけで補完
 10.3829 -入力に入る (@code{nil})
 10.3830 -@end defvar
 10.3831 -
 10.3832 -@defvar YaTeX-hilit-pattern-adjustment-private
 10.3833 -正規表現とそれにマッチするものの論理的意味をシンボルであらわしたものの
 10.3834 -リスト…のリスト。hilit19 を組み込んでいる時のみ有効。
 10.3835 -詳しくは @code{(assq 'yatex-mode hilit-patterns-alist)} 
 10.3836 -した結果と、変数 @code{YaTeX-hilit-pattern-adjustment-default} の値(と場合
 10.3837 -によっては hilit19 のドキュメント)を参照せよ。
 10.3838 -@end defvar
 10.3839 -
 10.3840 -@defvar YaTeX-sectioning-level
 10.3841 -LaTeXのセクション単位宣言コマンドとその論理的高さのalist。
 10.3842 -@end defvar
 10.3843 -
 10.3844 -@defvar YaTeX-hierarchy-ignore-heading-regexp
 10.3845 -Hierarchy バッファは通常ファイルヘッダとして、LaTeXのセクション宣言コマン
 10.3846 -ドの引数を検索し、それがなければコメント行を探すが、その際にヘッダとしては
 10.3847 -意味を持たないパターンをこの変数に設定する。デフォルトでは RCS ヘッダとモー
 10.3848 -ド指定行(-*- xxx -*-)が設定されている。
 10.3849 -@end defvar
 10.3850 -
 10.3851 -@defvar YaTeX-skip-default-reader
 10.3852 -Non-nil に設定するとsection型コマンドの引数入力時、アドイン関数がなければ
 10.3853 -ミニバッファでの読み込みをせずに入力を完了させる (@code{nil})
 10.3854 -@end defvar
 10.3855 -
 10.3856 -@defvar YaTeX-create-file-prefix-g
 10.3857 -@code{\include}などで @kbd{prefix g}した時に、ジャンプ先が存在しないファイ
 10.3858 -ルであってもオープンする (@code{nil})
 10.3859 -@end defvar
 10.3860 -
 10.3861 -@defvar YaTeX-simple-messages
 10.3862 -各種補完時のメッセージ出力を簡素化する (@code{nil})
 10.3863 -@end defvar
 10.3864 -
 10.3865 -@defvar YaTeX-hilit-sectioning-face
 10.3866 -色付けが有効な時の @code{\part} の色 
 10.3867 -(@code{'(yellow/dodgerblue yellow/slateblue)})。
 10.3868 -リストの第一要素は @code{hilit-background-mode} が @code{'light} の時の、
 10.3869 -第二要素は @code{'dark} の時の @code{\chapter} の色で、文字色/背景色 のよ
 10.3870 -うに指定する。
 10.3871 -@end defvar
 10.3872 -
 10.3873 -@defvar YaTeX-hilit-sectioning-attenuation-rate
 10.3874 -色付けが有効な時の、@code{\subparagraph} の色を @code{\chapter} の濃度の何
 10.3875 -%薄くしたものにするか (@code{'(15 40)}) @code{YaTeX-hilit-sectioning-face}
 10.3876 -の項参照。
 10.3877 -@end defvar
 10.3878 -
 10.3879 -@defvar YaTeX-use-AMS-LaTeX
 10.3880 -AMS-LaTeX を使用する場合は @code{t} に設定する (@code{nil})
 10.3881 -@end defvar
 10.3882 -
 10.3883 -@defvar YaTeX-use-LaTeX2e
 10.3884 -LaTeX2e を使用する場合は @code{t} に設定する (@code{t})
 10.3885 -@end defvar
 10.3886 -
 10.3887 -@defvar YaTeX-template-file
 10.3888 -新規ファイル作成時に自動挿入するファイル名 (@code{~/work/template.tex})
 10.3889 -@end defvar
 10.3890 -
 10.3891 -@defvar YaTeX-search-file-from-top-directory
 10.3892 -inputするファイルを探すときの基準ディレクトリをmainファイルのあるディレクト
 10.3893 -リにするか (@code{t})
 10.3894 -@end defvar
 10.3895 -@defvar YaTeX-use-font-lock
 10.3896 -ソースの色づけパッケージとして font-lock を利用するかどうか
 10.3897 -(@code{(featurep 'font-lock)})
 10.3898 -@end defvar
 10.3899 -
 10.3900 -@defvar YaTeX-use-hilit19
 10.3901 -ソースの色づけパッケージとして hilit19 を利用するかどうか
 10.3902 -(@code{(featurep 'hilit19)})
 10.3903 -@end defvar
 10.3904 -
 10.3905 -@defvar YaTeX-use-italic-bold
 10.3906 -italic, boldフォントを野鳥が探すかどうか (Emacs20以降なら@code{t})
 10.3907 -font-lock利用時のみ有効。
 10.3908 -(@code{(featurep 'hilit19)}
 10.3909 -@end defvar
 10.3910 -
 10.3911 -@defvar YaTeX-singlecmd-suffix
 10.3912 -全てのmaketitle型コマンドの補完入力直後に挿入する文字列。
 10.3913 -@code{"{}"} などがお勧め。
 10.3914 -@end defvar
 10.3915 -
 10.3916 -@defvar YaTeX-package-alist-private
 10.3917 -LaTeX2eのパッケージ名とその中に含まれるマクロのリスト。
 10.3918 -適切に設定しておくと本文入力時にマクロを補完入力すると
 10.3919 -そのマクロに必要なパッケージを usepackage するか自動的に検査してくれる。
 10.3920 -していなければ \usepackage を自動追加することもできる。
 10.3921 -リストは 
 10.3922 -@lisp
 10.3923 -   '((パッケージ名1
 10.3924 -        (補完タイプ マクロのリスト……)
 10.3925 -        (補完タイプ マクロのリスト……))
 10.3926 -     (パッケージ名2
 10.3927 -        (補完タイプ マクロのリスト……)
 10.3928 -        (補完タイプ マクロのリスト……))………)
 10.3929 -@end lisp
 10.3930 -という形式にする。補完タイプは @code{env, section, maketitle} のどれか。
 10.3931 -具体例は変数 @code{YaTeX-package-alist-default}
 10.3932 -の値参照。
 10.3933 -@end defvar
 10.3934 -
 10.3935 -@defvar YaTeX-tabular-indentation
 10.3936 -tabular/array 環境で現在行の先頭位置が表の第Nカラムのときは
 10.3937 -標準インデント位置から N*YaTeX-tabular-indentation 桁下げた
 10.3938 -インデントにする。
 10.3939 -@end defvar
 10.3940 -
 10.3941 -@defvar YaTeX-noindent-env-regexp
 10.3942 -別の環境内にあっても \begin{} が行頭から始まるべき環境名の正規表現。
 10.3943 -verbatim環境などを指定する。
 10.3944 -@end defvar
 10.3945 -
 10.3946 -@defvar YaTeX-ref-default-label-string
 10.3947 -\ref{} のラベル補完でラベル未設定のものに自動的に生成する
 10.3948 -ラベル名の書式。strftime(3)関数に似た日付ベースで指定する。
 10.3949 -利用できる書式は以下のとおり。
 10.3950 -%y -> 西暦下二桁,  %b -> 月の英名,  %m -> 月(1〜12)
 10.3951 -%d -> 日,  %H -> 時,  %M -> 分,  %S -> 秒,
 10.3952 -%qx -> アルファベットで26進数化した yymmdd.
 10.3953 -%qX -> アルファベットで26進数化した HHMMSS.
 10.3954 -デフォルトは "%H%M%S_%d%b%y"
 10.3955 -@end defvar
 10.3956 -
 10.3957 -@defvar YaTeX-ref-generate-label-function
 10.3958 -\ref{}のラベル名自動生成のときに使う関数のシンボル。
 10.3959 -デフォルトは標準の YaTeX::ref-generate-label 関数が割り当ててある。
 10.3960 -引数を2つ取る関数を定義して、この変数にセットするとその関数を呼んだ
 10.3961 -結果をデフォルトのラベル名候補とする。設定例:
 10.3962 -@lisp
 10.3963 -  (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label)
 10.3964 -  (defun my-yatex-generate-label (command value)
 10.3965 -    (and (string= command "caption")
 10.3966 -         (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t)
 10.3967 -         (setq command (match-string 1)))
 10.3968 -    (let ((alist '(("chapter" . "chap")
 10.3969 -                   ("section" . "sec")
 10.3970 -                   ("subsection" . "subsec")
 10.3971 -                   ("figure" . "fig")
 10.3972 -                   ("table" . "tbl"))))
 10.3973 -      (if (setq command (cdr (assoc command alist)))
 10.3974 -          (concat command ":" value)
 10.3975 -        (YaTeX::ref-generate-label nil nil))))
 10.3976 -@end lisp
 10.3977 -@end defvar
 10.3978 -
 10.3979 -@node Sample definitions, Hook variables, All customizable variables, Lisp variables
 10.3980 -@comment  node-name,  next,  previous,  up
 10.3981 -@subsection カスタマイズ変数設定例
 10.3982 -@cindex 設定例[せつていれい]
 10.3983 -
 10.3984 -  たとえば、prefix キーとして@kbd{ESC}を使用し、新たな補完候補を格納するファ
 10.3985 -イルを、@file{~/src/emacs/yatexrc} にし、行頭の prefix をタブ文字一つに変
 10.3986 -えたいときは、
 10.3987 -
 10.3988 -@lisp
 10.3989 -        (setq YaTeX-prefix "\e"
 10.3990 -              YaTeX-user-completion-table "~/src/emacs/yatexrc"
 10.3991 -              YaTeX-fill-prefix "       ")
 10.3992 -@end lisp
 10.3993 -
 10.3994 -@noindent 
 10.3995 -を @file{~/.emacs} に加えます。
 10.3996 -
 10.3997 -@node Hook variables, Hook file, Sample definitions, Lisp variables
 10.3998 -@comment  node-name,  next,  previous,  up
 10.3999 -@subsection hook変数
 10.4000 -@cindex hook変数[hookへんすう]
 10.4001 -@cindex yatex-mode-hook
 10.4002 -@cindex yatex-mode-load-hook
 10.4003 -
 10.4004 -  また、hook 変数 @code{yatex-mode-hook}, @code{yatex-mode-load-hook} を用
 10.4005 -意しています。すべての yatex-mode のバッファで作用させたいものは、
 10.4006 -@code{yatex-mode-hook} に記述し、@file{yatex.el} をロードする時だけ作用さ
 10.4007 -せたいものは@code{yatex-mode-load-hook} に記述します。例えば、
 10.4008 -@code{outline-minor-mode} を利用する場合、それぞれのバッファで 
 10.4009 -@code{outline-minor-mode} を有効にしたいので、@code{yatex-mode-hook} を次
 10.4010 -のように設定します。
 10.4011 -
 10.4012 -@lisp
 10.4013 -        (setq yatex-mode-hook
 10.4014 -              '(lambda () (outline-minor-mode t)))
 10.4015 -@end lisp
 10.4016 -
 10.4017 -@noindent 
 10.4018 -逆に、独自のキー定義を行いたい時などは、@code{yatex-mode-load-hook} を利用
 10.4019 -します。例えば、begin 型補完において、 document や、enumerate 以外の環境名
 10.4020 -もショートカットキーで入れたいなどという時は、次のようにします。以下の例は、
 10.4021 -@kbd{[prefix] ba} で @code{\begin@{abstract@}}, @code{\end@{abstract@}} を
 10.4022 -挿入します。
 10.4023 -
 10.4024 -@lisp
 10.4025 -        (setq yatex-mode-load-hook
 10.4026 -              '(lambda() (YaTeX-define-begend-key "ba" "abstract")))
 10.4027 -@end lisp
 10.4028 -
 10.4029 -なお、新たなキーの定義には、関数 @code{YaTeX-define-key}
 10.4030 -@code{YaTeX-define-begend-key}を利用するようにしてください。
 10.4031 -
 10.4032 -@node Hook file,  , Hook variables, Lisp variables
 10.4033 -@comment  node-name,  next,  previous,  up
 10.4034 -@subsection hook用ファイル
 10.4035 -
 10.4036 -  変数 @code{yatex-mode-load-hook} で定義する内容が多い時は、
 10.4037 -@file{yatexhks.el}というファイルを作り、その中に野鳥関連の設定を書く事で、
 10.4038 -初期化の時に自動的にロードします。
 10.4039 -
 10.4040 -
 10.4041 -@node Add-in functions,  , Lisp variables, Customizations
 10.4042 -@comment  node-name,  next,  previous,  up
 10.4043 -@section 付加関数(アドイン関数)
 10.4044 -
 10.4045 -  各種補完時に、環境名やコマンド名に応じたきめ細やかな補完入力機能を実現す
 10.4046 -るための関数を作成することができます。この関数の作成方法や、組み込み方法に
 10.4047 -関しては、@code{yatexadd.doc} をご覧ください。
 10.4048 -
 10.4049 -@node Etc, Copying, Customizations, Top
 10.4050 -@comment  node-name,  next,  previous,  up
 10.4051 -@chapter その他
 10.4052 -
 10.4053 -  野鳥の標準の La@TeX{} コマンドの辞書には、作者が頻繁に使うものしか登録さ
 10.4054 -れていません。これは、補完候補に使いそうもないコマンドが存在して、補完した
 10.4055 -いコマンドを出すまでのストローク数を増やしてしまう事を防止するためです。標
 10.4056 -準辞書にないコマンドも、できるだけ補完入力方式を利用し、ユーザ辞書を充実さ
 10.4057 -せることで、あなたの La@TeX{} スタイルにあった野鳥へと育っていくことでしょ
 10.4058 -う。
 10.4059 -
 10.4060 -@node Copying, Concept Index, Etc, Top
 10.4061 -@comment  node-name,  next,  previous,  up
 10.4062 -@chapter 取り扱い
 10.4063 -
 10.4064 -  本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな
 10.4065 -る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた
 10.4066 -しません。常識的に扱ってください。また、本プログラムに含まれるコードを利用
 10.4067 -すること、改造することも自由に行なって構いませんが、流用することにより契約
 10.4068 -締結の必要が生じる場合、私はいかなる契約も締結しません。具体的にはGPLへの
 10.4069 -サインはしませんので、GNUに寄贈するものを作っている場合私の作品から取り込
 10.4070 -んだコードを流用すると苦労するかもしれません。いかなるコード流用も拒否しま
 10.4071 -せんが契約締結は辞退します。
 10.4072 -
 10.4073 -  苦情、希望、バグ報告、感想等は歓迎いたします。
 10.4074 -連絡は yuuji@@yatex.org まで(2004年1月現在)。
 10.4075 -継続的に使用してくださる方はメイリングリスト「fj野鳥の会」に
 10.4076 -是非加入してください。加入方法については本パッケージの @file{docs/qanda}
 10.4077 -ファイルの「その他」の章を御覧ください。
 10.4078 -
 10.4079 -仕様は、予告なく確実に(気分次第で)変更されます:-p。
 10.4080 -
 10.4081 -@flushright
 10.4082 -広瀬雄二
 10.4083 -@end flushright
 10.4084 -
 10.4085 -@node    Concept Index,  , Copying, Top
 10.4086 -@comment node-name, next, previous, up
 10.4087 -@unnumbered 索引
 10.4088 -@printindex cp
 10.4089 -
 10.4090 -@c カスタマイズ変数索引を索引と分離する場合にはコメントアウトを外す!!!
 10.4091 -@c @node    Variable Index
 10.4092 -@c @comment node-name, next, previous, up
 10.4093 -@c @unnumbered カスタマイズ変数索引
 10.4094 -@c @printindex vr
 10.4095 -
 10.4096 -@contents
 10.4097 -
 10.4098 -@bye
 10.4099 -
 10.4100 -@c Local Variables:
 10.4101 -@c fill-column: 74
 10.4102 -@c fill-prefix: nil
 10.4103 -@c buffer-file-coding-system: sjis-dos
 10.4104 -@c End:
 10.4105 -
 10.4106 -Tag table:
 10.4107 -
 10.4108 -End tag table
 10.4109 +@end defvar
 10.4110 +
 10.4111 +@defvar dvi2-command
 10.4112 +プレヴューアコマンド名 (@code{"xdvi -geo +0+0 -s 4"})
 10.4113 +@end defvar
 10.4114 +
 10.4115 +@defvar dviprint-command-format
 10.4116 +dviファイルの印刷に使われるコマンド式 (@code{"dvi2ps %f %t %s | lpr"})
 10.4117 +@end defvar
 10.4118 +
 10.4119 +@defvar dviprint-from-format
 10.4120 +上の@code{%f}に相当する開始ページ指定書式、@code{%b} が開始ページ番号に変
 10.4121 +わる (@code{"-f %b"})
 10.4122 +@end defvar
 10.4123 +
 10.4124 +@defvar dviprint-to-format
 10.4125 +@code{%t} に相当する終了ページ指定書式、@code{%e}が終了ページ番号に変わる 
 10.4126 +(@code{"-t %e"})
 10.4127 +@end defvar
 10.4128 +
 10.4129 +@defvar makeindex-command
 10.4130 +makeindexコマンド (@code{"makeindex"} (MS-DOSでは@code{"makeind"}))
 10.4131 +@end defvar
 10.4132 +
 10.4133 +@defvar YaTeX-dvipdf-command
 10.4134 +dviをPDFに変換するコマンド (@code{"dvipdfmx"})
 10.4135 +@end defvar
 10.4136 +
 10.4137 +@defvar YaTeX-need-nonstop
 10.4138 +@code{\nonstopmode@{@}}を自動的に付加するか (@code{nil})
 10.4139 +@end defvar
 10.4140 +
 10.4141 +@defvar latex-warning-regexp
 10.4142 +latexコマンドの出力するウォーニング行の正規表現 (@code{"line.* [0-9]*"})
 10.4143 +@end defvar
 10.4144 +
 10.4145 +@defvar latex-error-regexp
 10.4146 +同じくエラー行の正規表現 (@code{"l\\.[1-9][0-9]*"})
 10.4147 +@end defvar
 10.4148 +
 10.4149 +@defvar latex-dos-emergency-message
 10.4150 +MS-DOS上で動作する latex コマンドが、エラーにより停止するとき出力するメッ
 10.4151 +セージ (@code{"Emergency stop"})
 10.4152 +@end defvar
 10.4153 +
 10.4154 +@defvar latex-message-kanji-code
 10.4155 +タイプセッタの出力するメッセージの漢字コード.タイプセットバッファ
 10.4156 +の出力が化ける時は、これを設定する (2, Nemacsでのみ有効)
 10.4157 +@end defvar
 10.4158 +
 10.4159 +@defvar NTT-jTeX
 10.4160 +古いNTT-j@TeX{}使用時のようにインデントした行の先頭と前の行の
 10.4161 +(タイプセット後の)字間が空いてしまうのを嫌う場合は@code{t}にする
 10.4162 +(@code{nil})
 10.4163 +@end defvar
 10.4164 +
 10.4165 +@defvar YaTeX-item-regexp
 10.4166 +itemの桁揃えの時に用いる、itemの正規表現 (@code{"\\\\(sub\\)*item"})
 10.4167 +@end defvar
 10.4168 +
 10.4169 +@defvar YaTeX-verb-regexp
 10.4170 +verbコマンドの正規表現。先頭の\\\\はつけない (@code{"verb\\*?\\|path"})
 10.4171 +@end defvar
 10.4172 +
 10.4173 +@defvar YaTeX-nervous
 10.4174 +ローカル辞書を用いる時 @code{t} (@code{t})
 10.4175 +@end defvar
 10.4176 +
 10.4177 +@defvar YaTeX-sectioning-regexp
 10.4178 +セクション区切り設定コマンドの正規表現 
 10.4179 +(@code{"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"})
 10.4180 +@end defvar
 10.4181 +
 10.4182 +@defvar YaTeX-fill-inhibit-environments
 10.4183 +fill を抑止する環境名のリスト 
 10.4184 +(@code{'("tabular" "tabular*" "array" "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" "verbatim" "verbatim*")})
 10.4185 +@end defvar
 10.4186 +
 10.4187 +@defvar YaTeX-uncomment-once
 10.4188 +領域uncommentで行頭の複数の@code{%}を全て削除するか (@code{nil})
 10.4189 +@end defvar
 10.4190 +
 10.4191 +@defvar YaTeX-close-paren-always
 10.4192 +開き括弧の入力で常に閉じ括弧を入力する (@code{t})
 10.4193 +@end defvar
 10.4194 +
 10.4195 +@defvar YaTeX-auto-math-mode
 10.4196 +数式モードの切り替えを自動的に行う (@code{t})
 10.4197 +@end defvar
 10.4198 +
 10.4199 +@defvar YaTeX-math-key-list-private
 10.4200 +数式イメージ補完で用いる (プリフィクスキー . 対応補完テーブル) の
 10.4201 +alist (@code{nil})。補完テーブルの書き方については@file{yatexmth.el}を参照。
 10.4202 +@end defvar
 10.4203 +
 10.4204 +@defvar YaTeX-default-pop-window-height
 10.4205 +1画面の時にタイプセットバッファを初めて作成する時の高さ。数値で行数、数字
 10.4206 +文字列でEmacsウィンドウに対する百分率 (10)
 10.4207 +@end defvar
 10.4208 +
 10.4209 +@defvar YaTeX-help-file
 10.4210 +共用ヘルプファイル (@file{$doc-directory/../../site-lisp/YATEXHLP.jp})
 10.4211 +@end defvar
 10.4212 +
 10.4213 +@defvar YaTeX-help-file-private
 10.4214 +個人用ヘルプファイル (@file{"~/YATEXHLP.jp"})
 10.4215 +@end defvar
 10.4216 +
 10.4217 +@defvar YaTeX-no-begend-shortcut
 10.4218 +@kbd{[prefix] b ??} のショートカットを使わず、@kbd{[prefix] b} だけで補完
 10.4219 +入力に入る (@code{nil})
 10.4220 +@end defvar
 10.4221 +
 10.4222 +@defvar YaTeX-hilit-pattern-adjustment-private
 10.4223 +正規表現とそれにマッチするものの論理的意味をシンボルであらわしたものの
 10.4224 +リスト…のリスト。hilit19 を組み込んでいる時のみ有効。
 10.4225 +詳しくは @code{(assq 'yatex-mode hilit-patterns-alist)} 
 10.4226 +した結果と、変数 @code{YaTeX-hilit-pattern-adjustment-default} の値(と場合
 10.4227 +によっては hilit19 のドキュメント)を参照せよ。
 10.4228 +@end defvar
 10.4229 +
 10.4230 +@defvar YaTeX-sectioning-level
 10.4231 +LaTeXのセクション単位宣言コマンドとその論理的高さのalist。
 10.4232 +@end defvar
 10.4233 +
 10.4234 +@defvar YaTeX-hierarchy-ignore-heading-regexp
 10.4235 +Hierarchy バッファは通常ファイルヘッダとして、LaTeXのセクション宣言コマン
 10.4236 +ドの引数を検索し、それがなければコメント行を探すが、その際にヘッダとしては
 10.4237 +意味を持たないパターンをこの変数に設定する。デフォルトでは RCS ヘッダとモー
 10.4238 +ド指定行(-*- xxx -*-)が設定されている。
 10.4239 +@end defvar
 10.4240 +
 10.4241 +@defvar YaTeX-skip-default-reader
 10.4242 +Non-nil に設定するとsection型コマンドの引数入力時、アドイン関数がなければ
 10.4243 +ミニバッファでの読み込みをせずに入力を完了させる (@code{nil})
 10.4244 +@end defvar
 10.4245 +
 10.4246 +@defvar YaTeX-create-file-prefix-g
 10.4247 +@code{\include}などで @kbd{prefix g}した時に、ジャンプ先が存在しないファイ
 10.4248 +ルであってもオープンする (@code{nil})
 10.4249 +@end defvar
 10.4250 +
 10.4251 +@defvar YaTeX-simple-messages
 10.4252 +各種補完時のメッセージ出力を簡素化する (@code{nil})
 10.4253 +@end defvar
 10.4254 +
 10.4255 +@defvar YaTeX-hilit-sectioning-face
 10.4256 +色付けが有効な時の @code{\part} の色 
 10.4257 +(@code{'(yellow/dodgerblue yellow/slateblue)})。
 10.4258 +リストの第一要素は @code{hilit-background-mode} が @code{'light} の時の、
 10.4259 +第二要素は @code{'dark} の時の @code{\chapter} の色で、文字色/背景色 のよ
 10.4260 +うに指定する。
 10.4261 +@end defvar
 10.4262 +
 10.4263 +@defvar YaTeX-hilit-sectioning-attenuation-rate
 10.4264 +色付けが有効な時の、@code{\subparagraph} の色を @code{\chapter} の濃度の何
 10.4265 +%薄くしたものにするか (@code{'(15 40)}) @code{YaTeX-hilit-sectioning-face}
 10.4266 +の項参照。
 10.4267 +@end defvar
 10.4268 +
 10.4269 +@defvar YaTeX-use-AMS-LaTeX
 10.4270 +AMS-LaTeX を使用する場合は @code{t} に設定する (@code{nil})
 10.4271 +@end defvar
 10.4272 +
 10.4273 +@defvar YaTeX-use-LaTeX2e
 10.4274 +LaTeX2e を使用する場合は @code{t} に設定する (@code{t})
 10.4275 +@end defvar
 10.4276 +
 10.4277 +@defvar YaTeX-template-file
 10.4278 +新規ファイル作成時に自動挿入するファイル名 (@code{~/work/template.tex})
 10.4279 +@end defvar
 10.4280 +
 10.4281 +@defvar YaTeX-search-file-from-top-directory
 10.4282 +inputするファイルを探すときの基準ディレクトリをmainファイルのあるディレクト
 10.4283 +リにするか (@code{t})
 10.4284 +@end defvar
 10.4285 +@defvar YaTeX-use-font-lock
 10.4286 +ソースの色づけパッケージとして font-lock を利用するかどうか
 10.4287 +(@code{(featurep 'font-lock)})
 10.4288 +@end defvar
 10.4289 +
 10.4290 +@defvar YaTeX-use-hilit19
 10.4291 +ソースの色づけパッケージとして hilit19 を利用するかどうか
 10.4292 +(@code{(featurep 'hilit19)})
 10.4293 +@end defvar
 10.4294 +
 10.4295 +@defvar YaTeX-use-italic-bold
 10.4296 +italic, boldフォントを野鳥が探すかどうか (Emacs20以降なら@code{t})
 10.4297 +font-lock利用時のみ有効。
 10.4298 +(@code{(featurep 'hilit19)}
 10.4299 +@end defvar
 10.4300 +
 10.4301 +@defvar YaTeX-singlecmd-suffix
 10.4302 +全てのmaketitle型コマンドの補完入力直後に挿入する文字列。
 10.4303 +@code{"@{@}"} などがお勧め。
 10.4304 +@end defvar
 10.4305 +
 10.4306 +@defvar YaTeX-package-alist-private
 10.4307 +LaTeX2eのパッケージ名とその中に含まれるマクロのリスト。
 10.4308 +適切に設定しておくと本文入力時にマクロを補完入力すると
 10.4309 +そのマクロに必要なパッケージを usepackage するか自動的に検査してくれる。
 10.4310 +していなければ \usepackage を自動追加することもできる。
 10.4311 +リストは 
 10.4312 +@lisp
 10.4313 +   '((パッケージ名1
 10.4314 +        (補完タイプ マクロのリスト……)
 10.4315 +        (補完タイプ マクロのリスト……))
 10.4316 +     (パッケージ名2
 10.4317 +        (補完タイプ マクロのリスト……)
 10.4318 +        (補完タイプ マクロのリスト……))………)
 10.4319 +@end lisp
 10.4320 +という形式にする。補完タイプは @code{env, section, maketitle} のどれか。
 10.4321 +具体例は変数 @code{YaTeX-package-alist-default}
 10.4322 +の値参照。
 10.4323 +@end defvar
 10.4324 +
 10.4325 +@defvar YaTeX-tabular-indentation
 10.4326 +tabular/array 環境で現在行の先頭位置が表の第Nカラムのときは
 10.4327 +標準インデント位置から N*YaTeX-tabular-indentation 桁下げた
 10.4328 +インデントにする。
 10.4329 +@end defvar
 10.4330 +
 10.4331 +@defvar YaTeX-noindent-env-regexp
 10.4332 +別の環境内にあっても \begin@{@} が行頭から始まるべき環境名の正規表現。
 10.4333 +verbatim環境などを指定する。
 10.4334 +@end defvar
 10.4335 +
 10.4336 +@defvar YaTeX-ref-default-label-string
 10.4337 +\ref@{@} のラベル補完でラベル未設定のものに自動的に生成する
 10.4338 +ラベル名の書式。strftime(3)関数に似た日付ベースで指定する。
 10.4339 +利用できる書式は以下のとおり。
 10.4340 +%y -> 西暦下二桁,  %b -> 月の英名,  %m -> 月(1〜12)
 10.4341 +%d -> 日,  %H -> 時,  %M -> 分,  %S -> 秒,
 10.4342 +%qx -> アルファベットで26進数化した yymmdd.
 10.4343 +%qX -> アルファベットで26進数化した HHMMSS.
 10.4344 +デフォルトは "%H%M%S_%d%b%y"
 10.4345 +@end defvar
 10.4346 +
 10.4347 +@defvar YaTeX-ref-generate-label-function
 10.4348 +\ref@{@}のラベル名自動生成のときに使う関数のシンボル。
 10.4349 +デフォルトは標準の YaTeX::ref-generate-label 関数が割り当ててある。
 10.4350 +引数を2つ取る関数を定義して、この変数にセットするとその関数を呼んだ
 10.4351 +結果をデフォルトのラベル名候補とする。設定例:
 10.4352 +@lisp
 10.4353 +  (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label)
 10.4354 +  (defun my-yatex-generate-label (command value)
 10.4355 +    (and (string= command "caption")
 10.4356 +         (re-search-backward "\\\\begin@{\\(figure\\|table\\)@}" nil t)
 10.4357 +         (setq command (match-string 1)))
 10.4358 +    (let ((alist '(("chapter" . "chap")
 10.4359 +                   ("section" . "sec")
 10.4360 +                   ("subsection" . "subsec")
 10.4361 +                   ("figure" . "fig")
 10.4362 +                   ("table" . "tbl"))))
 10.4363 +      (if (setq command (cdr (assoc command alist)))
 10.4364 +          (concat command ":" value)
 10.4365 +        (YaTeX::ref-generate-label nil nil))))
 10.4366 +@end lisp
 10.4367 +@end defvar
 10.4368 +
 10.4369 +@node Sample definitions, Hook variables, All customizable variables, Lisp variables
 10.4370 +@comment  node-name,  next,  previous,  up
 10.4371 +@subsection カスタマイズ変数設定例
 10.4372 +@cindex 設定例[せつていれい]
 10.4373 +
 10.4374 +  たとえば、prefix キーとして@kbd{ESC}を使用し、新たな補完候補を格納するファ
 10.4375 +イルを、@file{~/src/emacs/yatexrc} にし、行頭の prefix をタブ文字一つに変
 10.4376 +えたいときは、
 10.4377 +
 10.4378 +@lisp
 10.4379 +        (setq YaTeX-prefix "\e"
 10.4380 +              YaTeX-user-completion-table "~/src/emacs/yatexrc"
 10.4381 +              YaTeX-fill-prefix "       ")
 10.4382 +@end lisp
 10.4383 +
 10.4384 +@noindent
 10.4385 +を @file{~/.emacs} に加えます。
 10.4386 +
 10.4387 +@node Hook variables, Hook file, Sample definitions, Lisp variables
 10.4388 +@comment  node-name,  next,  previous,  up
 10.4389 +@subsection hook変数
 10.4390 +@cindex hook変数[hookへんすう]
 10.4391 +@cindex yatex-mode-hook
 10.4392 +@cindex yatex-mode-load-hook
 10.4393 +
 10.4394 +  また、hook 変数 @code{yatex-mode-hook}, @code{yatex-mode-load-hook} を用
 10.4395 +意しています。すべての yatex-mode のバッファで作用させたいものは、
 10.4396 +@code{yatex-mode-hook} に記述し、@file{yatex.el} をロードする時だけ作用さ
 10.4397 +せたいものは@code{yatex-mode-load-hook} に記述します。例えば、
 10.4398 +@code{outline-minor-mode} を利用する場合、それぞれのバッファで 
 10.4399 +@code{outline-minor-mode} を有効にしたいので、@code{yatex-mode-hook} を次
 10.4400 +のように設定します。
 10.4401 +
 10.4402 +@lisp
 10.4403 +        (setq yatex-mode-hook
 10.4404 +              '(lambda () (outline-minor-mode t)))
 10.4405 +@end lisp
 10.4406 +
 10.4407 +
 10.4408 +逆に、独自のキー定義を行いたい時などは、@code{yatex-mode-load-hook} を利用
 10.4409 +します。例えば、begin 型補完において、 document や、enumerate 以外の環境名
 10.4410 +もショートカットキーで入れたいなどという時は、次のようにします。以下の例は、
 10.4411 +@kbd{[prefix] ba} で @code{\begin@{abstract@}}, @code{\end@{abstract@}} を
 10.4412 +挿入します。
 10.4413 +
 10.4414 +@lisp
 10.4415 +        (setq yatex-mode-load-hook
 10.4416 +              '(lambda() (YaTeX-define-begend-key "ba" "abstract")))
 10.4417 +@end lisp
 10.4418 +
 10.4419 +なお、新たなキーの定義には、関数 @code{YaTeX-define-key}
 10.4420 +@code{YaTeX-define-begend-key}を利用するようにしてください。
 10.4421 +
 10.4422 +@node Hook file,  , Hook variables, Lisp variables
 10.4423 +@comment  node-name,  next,  previous,  up
 10.4424 +@subsection hook用ファイル
 10.4425 +
 10.4426 +  変数 @code{yatex-mode-load-hook} で定義する内容が多い時は、
 10.4427 +@file{yatexhks.el}というファイルを作り、その中に野鳥関連の設定を書く事で、
 10.4428 +初期化の時に自動的にロードします。
 10.4429 +
 10.4430 +
 10.4431 +@node Add-in functions,  , Lisp variables, Customizations
 10.4432 +@comment  node-name,  next,  previous,  up
 10.4433 +@section 付加関数(アドイン関数)
 10.4434 +
 10.4435 +  各種補完時に、環境名やコマンド名に応じたきめ細やかな補完入力機能を実現す
 10.4436 +るための関数を作成することができます。この関数の作成方法や、組み込み方法に
 10.4437 +関しては、@code{yatexadd.doc} をご覧ください。
 10.4438 +
 10.4439 +@node Etc, Copying, Customizations, Top
 10.4440 +@comment  node-name,  next,  previous,  up
 10.4441 +@chapter その他
 10.4442 +
 10.4443 +  野鳥の標準の La@TeX{} コマンドの辞書には、作者が頻繁に使うものしか登録さ
 10.4444 +れていません。これは、補完候補に使いそうもないコマンドが存在して、補完した
 10.4445 +いコマンドを出すまでのストローク数を増やしてしまう事を防止するためです。標
 10.4446 +準辞書にないコマンドも、できるだけ補完入力方式を利用し、ユーザ辞書を充実さ
 10.4447 +せることで、あなたの La@TeX{} スタイルにあった野鳥へと育っていくことでしょ
 10.4448 +う。
 10.4449 +
 10.4450 +@node Copying, Concept Index, Etc, Top
 10.4451 +@comment  node-name,  next,  previous,  up
 10.4452 +@chapter 取り扱い
 10.4453 +
 10.4454 +  本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな
 10.4455 +る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた
 10.4456 +しません。常識的に扱ってください。また、本プログラムに含まれるコードを利用
 10.4457 +すること、改造することも自由に行なって構いませんが、流用することにより契約
 10.4458 +締結の必要が生じる場合、私はいかなる契約も締結しません。具体的にはGPLへの
 10.4459 +サインはしませんので、GNUに寄贈するものを作っている場合私の作品から取り込
 10.4460 +んだコードを流用すると苦労するかもしれません。いかなるコード流用も拒否しま
 10.4461 +せんが契約締結は辞退します。
 10.4462 +
 10.4463 +  苦情、希望、バグ報告、感想等は歓迎いたします。
 10.4464 +連絡は yuuji@@yatex.org まで(2004年1月現在)。
 10.4465 +継続的に使用してくださる方はメイリングリスト「fj野鳥の会」に
 10.4466 +是非加入してください。加入方法については本パッケージの @file{docs/qanda}
 10.4467 +ファイルの「その他」の章を御覧ください。
 10.4468 +
 10.4469 +仕様は、予告なく確実に(気分次第で)変更されます:-p。
 10.4470 +
 10.4471 +@flushright
 10.4472 +広瀬雄二
 10.4473 +@end flushright
 10.4474 +
 10.4475 +@node    Concept Index,  , Copying, Top
 10.4476 +@comment node-name, next, previous, up
 10.4477 +@unnumbered 索引
 10.4478 +@printindex cp
 10.4479 +
 10.4480 +@c カスタマイズ変数索引を索引と分離する場合にはコメントアウトを外す!!!
 10.4481 +@c @node    Variable Index
 10.4482 +@c @comment node-name, next, previous, up
 10.4483 +@c @unnumbered カスタマイズ変数索引
 10.4484 +@c @printindex vr
 10.4485 +
 10.4486 +@contents
 10.4487 +
 10.4488 +@bye
 10.4489 +
 10.4490 +@c Local Variables:
 10.4491 +@c fill-column: 74
 10.4492 +@c fill-prefix: nil
 10.4493 +@c buffer-file-coding-system: sjis
 10.4494 +@c End:
 10.4495 +
 10.4496 +Tag table:
 10.4497 +
 10.4498 +End tag table
    11.1 --- a/makefile	Thu Jan 12 12:27:20 2012 +0900
    11.2 +++ b/makefile	Mon May 14 18:39:05 2012 +0900
    11.3 @@ -49,7 +49,7 @@
    11.4  # make clean		to delete all producted files
    11.5  # make ci		to check in all
    11.6  # make co		to check out all
    11.7 -MVER	= 1.75
    11.8 +MVER	= 1.76
    11.9  LISP	= ${LISP18} ${LISP19}
   11.10  YAHTML	= yahtml.el
   11.11  COMMON	= yatexlib.el yatexprc.el
    12.1 --- a/manifest	Thu Jan 12 12:27:20 2012 +0900
    12.2 +++ b/manifest	Mon May 14 18:39:05 2012 +0900
    12.3 @@ -19,6 +19,7 @@
    12.4  help/YATEXHLP.jp 	オンラインヘルプデータ
    12.5  help/YATEXHLP.eng 	LaTeX on-line help text
    12.6  install			インストールガイド
    12.7 +newpage.rb		yahtml用新規ページ生成補助スクリプト
    12.8  readme.meadow.j		Meadow 用インストールガイド
    12.9  yahtml.el		野鳥風 html モード
   12.10  yatex.el		野鳥・主 Emacs-Lisp ファイル
    13.1 --- a/yahtml.el	Thu Jan 12 12:27:20 2012 +0900
    13.2 +++ b/yahtml.el	Mon May 14 18:39:05 2012 +0900
    13.3 @@ -1,9 +1,9 @@
    13.4  ;;; -*- Emacs-Lisp -*-
    13.5  ;;; (c) 1994-2012 by HIROSE Yuuji [yuuji(@)yatex.org]
    13.6 -;;; Last modified Thu Jan 12 11:40:53 2012 on firestorm
    13.7 +;;; Last modified Thu May 10 11:06:39 2012 on firestorm
    13.8  ;;; $Id$
    13.9  
   13.10 -(defconst yahtml-revision-number "1.75"
   13.11 +(defconst yahtml-revision-number "1.76"
   13.12    "Revision number of running yahtml.el")
   13.13  
   13.14  ;;;[Installation]
   13.15 @@ -1401,8 +1401,8 @@
   13.16  (defun yahtml:ol ()
   13.17    "Add-in function for <ol>"
   13.18    (setq yahtml-last-single-cmd "li")
   13.19 -  (let ((start (read-string "start="))
   13.20 -	(type (completing-read
   13.21 +  (let ((start (YaTeX-read-string-or-skip "start="))
   13.22 +	(type (YaTeX-completing-read-or-skip
   13.23  	       "type=" '(("1") ("a") ("A") ("i") ("I")) nil t)))
   13.24      (concat
   13.25       (yahtml-make-optional-argument "start" start)
   13.26 @@ -1428,12 +1428,12 @@
   13.27    (let ((size "") name type value checked (maxlength "")
   13.28  	(l yahtml-prefer-upcase-attributes))
   13.29      (setq name (read-string "name: ")
   13.30 -	  type (completing-read "type (default=text): "
   13.31 +	  type (YaTeX-completing-read-or-skip "type (default=text): "
   13.32  				yahtml-input-types nil t)
   13.33 -	  value (read-string "value: "))
   13.34 +	  value (YaTeX-read-string-or-skip "value: "))
   13.35      (if (string-match "text\\|password\\|^$" type)
   13.36 -	(setq size (read-string "size: ")
   13.37 -	      maxlength (read-string "maxlength: ")))
   13.38 +	(setq size (YaTeX-read-string-or-skip "size: ")
   13.39 +	      maxlength (YaTeX-read-string-or-skip "maxlength: ")))
   13.40      (concat
   13.41       (if l "NAME" "name") "=\"" name "\""
   13.42       (yahtml-make-optional-argument "type" type)
    14.1 --- a/yatex.el	Thu Jan 12 12:27:20 2012 +0900
    14.2 +++ b/yatex.el	Mon May 14 18:39:05 2012 +0900
    14.3 @@ -1,15 +1,15 @@
    14.4  ;;; -*- Emacs-Lisp -*-
    14.5  ;;; Yet Another tex-mode for emacs - //野鳥//
    14.6 -;;; yatex.el rev. 1.75
    14.7 +;;; yatex.el rev. 1.76
    14.8  ;;; (c)1991-2012 by HIROSE Yuuji.[yuuji@yatex.org]
    14.9 -;;; Last modified Thu Jan 12 11:40:38 2012 on firestorm
   14.10 +;;; Last modified Sat May 12 14:53:03 2012 on firestorm
   14.11  ;;; $Id$
   14.12  ;;; The latest version of this software is always available at;
   14.13  ;;; http://www.yatex.org/
   14.14  
   14.15  (require 'comment)
   14.16  (require 'yatexlib)
   14.17 -(defconst YaTeX-revision-number "1.75"
   14.18 +(defconst YaTeX-revision-number "1.76"
   14.19    "Revision number of running yatex.el")
   14.20  
   14.21  ;---------- Local variables ----------
   14.22 @@ -321,7 +321,8 @@
   14.23       ("verbatim") ("itemize") ("enumerate") ("description")
   14.24       ("list") ("tabular") ("tabular*") ("table") ("tabbing") ("titlepage")
   14.25       ("sloppypar") ("picture") ("displaymath")
   14.26 -     ("eqnarray") ("figure") ("equation") ("abstract") ("array")
   14.27 +     ("eqnarray") ("eqnarray*") ("figure") ("equation") ("equation*")
   14.28 +     ("abstract") ("array")
   14.29       ("thebibliography") ("theindex") ("flushleft") ("flushright")
   14.30       ("minipage")
   14.31       ("supertabular")
   14.32 @@ -711,7 +712,7 @@
   14.33  (defvar YaTeX-struct-end
   14.34    (concat YaTeX-ec "end{%1}")
   14.35    "Keyword format of end-environment.")
   14.36 -(defvar YaTeX-struct-name-regexp "[^}]+"
   14.37 +(defvar YaTeX-struct-name-regexp "[^}]*"
   14.38    "Environment name regexp.")
   14.39  (defvar YaTeX-TeX-token-regexp
   14.40    (cond (YaTeX-japan "[A-Za-z*ぁ-ん亜-龠]+")
   14.41 @@ -829,9 +830,9 @@
   14.42  	  (insert "\n")
   14.43  	  (or exchange (exchange-point-and-mark)))
   14.44        (goto-char beg2)
   14.45 -      (if (intern-soft (concat "YaTeX-intelligent-newline-" env))
   14.46 +      (YaTeX-intelligent-newline nil)
   14.47 +      (if (fboundp (intern-soft (concat "YaTeX-intelligent-newline-" env)))
   14.48  	  (progn
   14.49 -	    (YaTeX-intelligent-newline nil)
   14.50  	    (message
   14.51  	     (cond
   14.52  	      (YaTeX-japan "%s で次の行の入力に進みます。")
   14.53 @@ -950,17 +951,17 @@
   14.54  	    (function
   14.55  	     (lambda (n)
   14.56  	       (while (<= j n)
   14.57 -		 (insert
   14.58 -		  (concat		;to allow nil return value
   14.59 -		   "{"
   14.60 -		   (setq title
   14.61 -			 (cond
   14.62 -			  (addin-args (funcall arg-reader j))
   14.63 -			  (YaTeX-skip-default-reader "")
   14.64 -			  (t
   14.65 -			   (read-string
   14.66 -			    (format "Argument %d of %s: " j section)))))
   14.67 -		   "}"))
   14.68 +		 (unwind-protect
   14.69 +		     (setq title
   14.70 +			   (cond
   14.71 +			    (addin-args (funcall arg-reader j))
   14.72 +			    (YaTeX-skip-default-reader "")
   14.73 +			    (t
   14.74 +			     (read-string
   14.75 +			      (format "Argument %d of %s: " j section)))))
   14.76 +		   (insert
   14.77 +		    (concat		;to allow nil return value
   14.78 +		     "{" title "}")))
   14.79  		 (setq j (1+ j))))))
   14.80  	   );;let
   14.81  	(setq YaTeX-section-name section)
   14.82 @@ -972,10 +973,12 @@
   14.83  	      (insert "}")
   14.84  	      (set-marker e (point))
   14.85  	      (goto-char beg)
   14.86 -	      (insert YaTeX-ec YaTeX-section-name
   14.87 -		      (YaTeX-addin YaTeX-section-name))
   14.88 -	      (if (> numarg 1) (funcall mkarg-func (1- numarg)))
   14.89 -	      (insert "{")
   14.90 +	      (unwind-protect
   14.91 +		  (progn
   14.92 +		    (insert YaTeX-ec YaTeX-section-name
   14.93 +			    (YaTeX-addin YaTeX-section-name))
   14.94 +		    (if (> numarg 1) (funcall mkarg-func (1- numarg))))
   14.95 +		(insert "{"))
   14.96  	      (if arp (funcall ar2 (point) e))
   14.97  	      (goto-char e)
   14.98  	      (set-marker e nil))
   14.99 @@ -1615,10 +1618,10 @@
  14.100       ((= c ?j) (YaTeX-typeset-buffer))
  14.101       ((= c ?r) (YaTeX-typeset-region))
  14.102       ((= c ?e) (YaTeX-typeset-environment))
  14.103 -     ((= c ?b) (YaTeX-call-command-on-file
  14.104 -		bibtex-command "*YaTeX-bibtex*" YaTeX-parent-file))
  14.105 -     ((= c ?i) (YaTeX-call-command-on-file
  14.106 -		makeindex-command "*YaTeX-makeindex*" YaTeX-parent-file))
  14.107 +     ((= c ?b) (YaTeX-call-builtin-on-file
  14.108 +		"BIBTEX" bibtex-command arg))
  14.109 +     ((= c ?i) (YaTeX-call-builtin-on-file
  14.110 +		"MAKEINDEX" makeindex-command arg))
  14.111       ((= c ?k) (YaTeX-kill-typeset-process YaTeX-typeset-process))
  14.112       ((= c ?p) (call-interactively 'YaTeX-preview))
  14.113       ((= c ?q) (YaTeX-system "lpq" "*Printer queue*"))
  14.114 @@ -1637,26 +1640,18 @@
  14.115    "Operate %# notation."
  14.116    ;;Do not use interactive"r" for the functions which require no mark
  14.117    (interactive)
  14.118 -  (message "!)Edit-%%#! B)EGIN-END-region L)Edit-%%#LPR")
  14.119 +  (message "!)Edit-%%#! B)EGIN-END-region P)review L)Edit-%%#LPR make(I)ndex B)ibtex")
  14.120    (let ((c (or char (read-char))) (string "") key
  14.121  	(b (make-marker)) (e (make-marker)))
  14.122      (save-excursion
  14.123        (cond
  14.124 -       ((or (= c ?!) (= c ?l))		;Edit `%#!'
  14.125 -	(goto-char (point-min))
  14.126 -	(setq key (cond ((= c ?!) "%#!")
  14.127 -			((= c ?l) "%#LPR")))
  14.128 -	(if (re-search-forward key nil t)
  14.129 -	    (progn
  14.130 -	      (setq string (YaTeX-buffer-substring
  14.131 -			    (point) (point-end-of-line)))
  14.132 -	      (delete-region (point) (progn (end-of-line) (point))))
  14.133 -	  (open-line 1)
  14.134 -	  (delete-region (point) (progn (beginning-of-line)(point)));for 19 :-<
  14.135 -	  (insert key))
  14.136 -	(unwind-protect
  14.137 -	    (setq string (read-string (concat key ": ") string))
  14.138 -	  (insert string)))
  14.139 +       ((rindex "!plib" c)		;Edit %#xxx
  14.140 +	(setq key (cdr (assq c '((?! . "!")
  14.141 +				 (?p . "PREVIEW")
  14.142 +				 (?l . "LPR")
  14.143 +				 (?i . "MAKEINDEX")
  14.144 +				 (?b . "BIBTEX")))))
  14.145 +	(YaTeX-getset-builtin key t))
  14.146  
  14.147         ((= c ?b)			;%#BEGIN %#END region
  14.148  	(or end (setq beg (min (point) (mark)) end (max (point) (mark))))
  14.149 @@ -1895,7 +1890,8 @@
  14.150    '(("\\\\epsfile\\(\\[[^]]+\\]\\)?{[^},]*file=\\(\\([^,} ]*/\\)?[^,}. ]+\\)\\(\\.e?ps\\)?[^}]*}" 2)
  14.151      ("\\\\epsfig{[^},]*fi\\(le\\|gure\\)=\\(\\([^,} ]*/\\)?[^,}. ]+\\)\\(\\.e?ps\\)?[^}]*}" 2)
  14.152      ("\\\\postscriptbox{[^}]*}{[^}]*}{\\(\\([^,} ]*/\\)?[^}. ]+\\)\\(\\.e?ps\\)?}" 1)
  14.153 -    ("\\\\\\(epsfbox\\|includegraphics\\|epsfig\\)\\*?{\\(\\([^,} ]*/\\)?[^}. ]+\\)\\(\\.e?ps\\)?}" 2) ;\epsfbox{hoge.ps} or \includegraphics{hoge.eps}
  14.154 +    ("\\\\\\(epsfbox\\|epsfig\\)\\*?{\\(\\([^,} ]*/\\)?[^}. ]+\\)\\(\\.e?ps\\)?}" 2) ;\epsfbox{hoge.ps}
  14.155 +    ("\\\\includegraphics\\*?\\(.*\\]\\|\\s \\)?{\\(.*\\)\\(\\.ai\\|\\.pdf\\|\\.svg\\|\\.png\\|\\.jpe?g\\|\\.e?ps\\)}" 2) ;\includegraphics[options...]{hoge.eps}
  14.156      ("\\\\\\(psbox\\)\\(\\[[^]]+\\]\\)?{\\(\\([^,} ]*/\\)?[^} ]+\\)\\(\\.e?ps\\)}" 3) ;\psbox[options...]{hoge.eps} (97/1/11)
  14.157      ("\\\\input{\\([^} ]+\\)\\(\\.tps\\)}" 1) ;tgif2tex (1998/9/16)
  14.158      )
  14.159 @@ -1904,11 +1900,16 @@
  14.160  (defvar YaTeX-file-processor-alist nil
  14.161    "*Alist of files' processor vs. its extension;
  14.162  See also the documentation of YaTeX-processed-file-regexp-alist.")
  14.163 -  
  14.164 +
  14.165  (defvar YaTeX-file-processor-alist-default
  14.166    '(("tgif" . ".obj")
  14.167 -    ("ghostview" . ".ps")
  14.168 -    ("ghostview" . ".eps")
  14.169 +    ("gimp" . ".xcf") ("gimp" . ".xcf.gz") ("gimp" . ".xcf.bz2")
  14.170 +    ("inkscape" . ".svg") ("inkscape" . ".svgz") ("inkscape" . ".ai")
  14.171 +    ("soffice" . ".odg")
  14.172 +    ("gimp" . ".jpeg") ("gimp" . ".jpg") ("gimp" . ".png")
  14.173 +    ("evince" . ".ps")
  14.174 +    ("evince" . ".eps")
  14.175 +    ("soffice" . ".pdf")
  14.176      (t . ".tex")
  14.177      (t . ".sty")
  14.178      (t . ""))
  14.179 @@ -2008,6 +2009,11 @@
  14.180  		 (looking-at ec+command))
  14.181  	       (goto-char (match-beginning 0))
  14.182  	       (throw 'found t))
  14.183 +	  ;;If inside of parentheses, try to escape.
  14.184 +	  (while (condition-case err
  14.185 +		     (progn (up-list -1) t)
  14.186 +		   (error nil)))
  14.187 +	  (while (equal (preceding-char) ?\]) (backward-list))
  14.188  	  ;;(2) search command directly
  14.189  	  (skip-chars-forward "^{}[]")
  14.190  	  (and (YaTeX-re-search-active-backward
    15.1 --- a/yatex.new	Thu Jan 12 12:27:20 2012 +0900
    15.2 +++ b/yatex.new	Mon May 14 18:39:05 2012 +0900
    15.3 @@ -1,6 +1,18 @@
    15.4  	What's new in YaTeX/yahtml
    15.5  	野鳥/yahtml - 各バージョンの変更点について
    15.6  
    15.7 +1.76	=== yatex ===
    15.8 +	タイプセットでラベル未定義があったら自動的にrerunする。
    15.9 +	自動rerun無効化は YaTeX-typeset-auto-rerun を nil に。
   15.10 +	%#BIBTEX で始まる行に起動すべき bibtex コマンドを記述可能。
   15.11 +	%#MAKEINDEX で始まる行に起動すべき makeindex コマンドを記述可能。
   15.12 +	[prefix] t % で %#BIBTEX、%#MAKEINDEX 行を更新可能に。
   15.13 +	[prefix] t d の platex+dvipdfmx をメニューに追加。
   15.14 +	\includegraphicsでPNG/JPG/GIF/BMP指定時、bb= を自動生成する(c)。
   15.15 +	数式用環境のお任せ改行を刷新。
   15.16 +	=== yahtml ===
   15.17 +	<ol>, <input> の属性入力を C-j でスキップ可能に。
   15.18 +	
   15.19  1.75	=== yatex ===
   15.20  	[prefix] t e でポイント位置を含む環境か数式環境をタイプセット。
   15.21  	M-C-SPC で環境だけでなく数式環境もマークする。
    16.1 --- a/yatex19.el	Thu Jan 12 12:27:20 2012 +0900
    16.2 +++ b/yatex19.el	Mon May 14 18:39:05 2012 +0900
    16.3 @@ -1,7 +1,7 @@
    16.4  ;;; -*- Emacs-Lisp -*-
    16.5  ;;; YaTeX facilities for Emacs 19 or later
    16.6 -;;; (c)1994-2009 by HIROSE Yuuji.[yuuji@yatex.org]
    16.7 -;;; Last modified Mon Sep 28 10:45:30 2009 on firestorm
    16.8 +;;; (c)1994-2012 by HIROSE Yuuji.[yuuji@yatex.org]
    16.9 +;;; Last modified Sun Jan 29 23:00:52 2012 on firestorm
   16.10  ;;; $Id$
   16.11  
   16.12  ;(require 'yatex)
   16.13 @@ -39,6 +39,7 @@
   16.14   'YaTeX-mode-menu-map-process
   16.15   (nreverse
   16.16   '((buffer "LaTeX" . (lambda () (interactive) (YaTeX-typeset-menu nil ?j)))
   16.17 +   (pdf "LaTeX+PDF" . (lambda () (interactive) (YaTeX-typeset-menu nil ?d)))
   16.18     (kill "Kill LaTeX" . (lambda () (interactive) (YaTeX-typeset-menu nil ?k)))
   16.19     (bibtex "BibTeX" . (lambda () (interactive) (YaTeX-typeset-menu nil ?b)))
   16.20     (mindex "makeindex" . (lambda () (interactive) (YaTeX-typeset-menu nil ?i)))
    17.1 --- a/yatexadd.el	Thu Jan 12 12:27:20 2012 +0900
    17.2 +++ b/yatexadd.el	Mon May 14 18:39:05 2012 +0900
    17.3 @@ -1,8 +1,8 @@
    17.4  ;;; -*- Emacs-Lisp -*-
    17.5  ;;; YaTeX add-in functions.
    17.6 -;;; yatexadd.el rev.19
    17.7 -;;; (c)1991-2011 by HIROSE Yuuji.[yuuji@yatex.org]
    17.8 -;;; Last modified Mon Mar  7 12:12:11 2011 on firestorm
    17.9 +;;; yatexadd.el rev.20
   17.10 +;;; (c)1991-2012 by HIROSE Yuuji.[yuuji@yatex.org]
   17.11 +;;; Last modified Fri Mar  9 21:19:09 2012 on firestorm
   17.12  ;;; $Id$
   17.13  
   17.14  ;;;
   17.15 @@ -99,12 +99,33 @@
   17.16    (let ((pos (YaTeX:read-oneof oneof)))
   17.17      (if (string= pos "")  "" (concat "[" pos "]"))))
   17.18  
   17.19 +;;;
   17.20 +;; Functions for figure environemnt
   17.21 +;;;
   17.22 +(defvar YaTeX:figure-caption-first nil
   17.23 +  "Non-nil indicates put caption before figure.")
   17.24 +(defun YaTeX:figure (&optional type firstp)
   17.25 +  "YaTeX add-in function for figure(*) environment."
   17.26 +  (setq YaTeX-section-name
   17.27 +	(if YaTeX:figure-caption-first "caption" "includegraphics")
   17.28 +	YaTeX-env-name "center")
   17.29 +  (YaTeX:read-position "htbp"))
   17.30 +
   17.31 +
   17.32 +(fset 'YaTeX:figure* 'YaTeX:figure)
   17.33 +
   17.34 +;;;
   17.35 +;; Functions for table environemnt
   17.36 +;;;
   17.37 +(defvar YaTeX:table-caption-first t
   17.38 +  "*Non-nil indicates put caption before tabular.")
   17.39  (defun YaTeX:table ()
   17.40    "YaTeX add-in function for table environment."
   17.41    (cond
   17.42     ((eq major-mode 'yatex-mode)
   17.43 -    (setq YaTeX-env-name "tabular"
   17.44 -	  YaTeX-section-name "caption")
   17.45 +    (setq YaTeX-section-name
   17.46 +	  (if YaTeX:table-caption-first "caption" "label")
   17.47 +	  YaTeX-env-name "tabular")
   17.48      (YaTeX:read-position "htbp"))
   17.49     ((eq major-mode 'texinfo-mode)
   17.50      (concat " "
   17.51 @@ -112,10 +133,7 @@
   17.52  	     "Highlights with: "
   17.53  	     '(("@samp")("@kbd")("@code")("@asis")("@file")("@var"))
   17.54  	     nil nil "@")))))
   17.55 -
   17.56 -(fset 'YaTeX:figure 'YaTeX:table)
   17.57 -(fset 'YaTeX:figure* 'YaTeX:table)
   17.58 -
   17.59 +(fset 'YaTeX:table* 'YaTeX:table)
   17.60  
   17.61  (defun YaTeX:description ()
   17.62    "Truly poor service:-)"
   17.63 @@ -127,7 +145,10 @@
   17.64    (setq YaTeX-single-command "item")
   17.65    "")
   17.66  
   17.67 -(fset 'YaTeX:enumerate 'YaTeX:itemize)
   17.68 +(defun YaTeX:enumerate ()
   17.69 +  (setq YaTeX-single-command "item"
   17.70 +	YaTeX-section-name "label")
   17.71 +  "")
   17.72  
   17.73  (defun YaTeX:picture ()
   17.74    "Ask the size of coordinates of picture environment."
   17.75 @@ -585,6 +606,7 @@
   17.76        (setq cc (current-column))
   17.77        (if (= (char-after (point)) ?\\) (forward-char 1))
   17.78        (cond
   17.79 +       ;; In each codition, 'inspoint and 'boundary should be set
   17.80         ((looking-at YaTeX-sectioning-regexp)
   17.81  	(setq command (YaTeX-match-string 0))
   17.82  	(skip-chars-forward "^{")
   17.83 @@ -659,14 +681,19 @@
   17.84  	;;(setq boundary (concat YaTeX-ec-regexp "\\(\\\\\\|end{" env "}\\)"))
   17.85  	(setq boundary
   17.86  	      (save-excursion
   17.87 -		(if (YaTeX-re-search-active-forward
   17.88 -		     (concat
   17.89 -		      YaTeX-ec-regexp "\\("
   17.90 -		      (if exp1 "" "\\\\\\|")
   17.91 -		      "end{" env "}\\)")
   17.92 -		     r-escape nil 1)
   17.93 -		    (match-beginning 0)
   17.94 -		  (1- (point))))
   17.95 +		(or (catch 'bndry
   17.96 +		      (while (YaTeX-re-search-active-forward
   17.97 +			      (concat
   17.98 +			       YaTeX-ec-regexp "\\("
   17.99 +			       (if exp1 "" "\\\\\\|")
  17.100 +			       "\\(end{" env "\\)}\\)")
  17.101 +			      r-escape nil 1)
  17.102 +			(setq foundpoint (match-beginning 0))
  17.103 +			(if (or (match-beginning 2) ;end of outer math-env
  17.104 +				(equal env (YaTeX-inner-environment t)))
  17.105 +			    ;; YaTeX-inner-environment destroys match-data
  17.106 +			    (throw 'bndry foundpoint))))
  17.107 +		    (1- (point))))
  17.108  	      inspoint boundary))
  17.109         ((looking-at "footnote\\s *{")
  17.110  	(setq command "footnote")
  17.111 @@ -697,6 +724,7 @@
  17.112  		    (match-beginning 0)
  17.113  		(1- (point))))))
  17.114         (t ))
  17.115 +      ;;cond by kind of labeling ends here.
  17.116        (if (save-excursion (skip-chars-forward " \t") (looking-at "%"))
  17.117  	  (forward-line 1))
  17.118        (cond
  17.119 @@ -733,6 +761,7 @@
  17.120  	(if mathp nil 
  17.121  	  (insert "\n")
  17.122  	  (YaTeX-reindent cc))
  17.123 +	(put 'YaTeX::ref-getset-label 'foundpoint (point))
  17.124  	(insert (format "\\label{%s}" newlabel))
  17.125  	newlabel)))))
  17.126  
  17.127 @@ -883,8 +912,6 @@
  17.128  			      e0 (match-end 1)))
  17.129  		    (funcall output (format "--subequation--%s" label) e0)))
  17.130  		 ((string-match mathenvs cmd) ;;if matches mathematical env
  17.131 -		  ;(skip-chars-forward "} \t\n")
  17.132 -		  ;(forward-line 1) ;2004/1/25
  17.133  		  (skip-chars-forward "}")
  17.134  		  (setq x (point)
  17.135  			envname (substring
  17.136 @@ -901,15 +928,15 @@
  17.137  		      (while (YaTeX-re-search-active-forward
  17.138  			      (concat
  17.139  			       "\\\\end{\\(" (regexp-quote envname) "\\)";;(1)
  17.140 -			       (if YaTeX-use-AMS-LaTeX
  17.141 -				   "\\|\\\\\\(notag\\)") ;;2
  17.142 +			       "\\|\\\\\\(notag\\)" ;;2
  17.143  			       (if (string-match
  17.144  				    YaTeX::ref-mathenv-exp1-regexp  cmd)
  17.145 -				   "" "\\|\\\\\\\\$")
  17.146 +				   "" "\\|\\(\\\\\\\\\\)$") ;;3
  17.147  			       )
  17.148  			      percent nil t)
  17.149  			(let*((quit (match-beginning 1))
  17.150  			      (notag (match-beginning 2))
  17.151 +			      (newln (match-beginning 3))
  17.152  			      (label ".......................") l2
  17.153  			      (e (point)) (m0 (match-beginning 0))
  17.154  			      (ln (YaTeX-string-width label)))
  17.155 @@ -917,7 +944,12 @@
  17.156  			   (notag
  17.157  			    (YaTeX-re-search-active-forward
  17.158  			     "\\\\\\\\" percent nil 1)
  17.159 -			    (setq x (point)))
  17.160 +			    (setq x (point))) ;use x as \label search bound
  17.161 +			   ((and newln	; `\\' found
  17.162 +				 (not (equal (YaTeX-inner-environment)
  17.163 +					     envname)))
  17.164 +			    (YaTeX-end-of-environment)
  17.165 +			    (goto-char (match-end 0)))
  17.166  			   (t
  17.167  			    (if (YaTeX-re-search-active-backward
  17.168  				 YaTeX::ref-labeling-regexp
  17.169 @@ -1180,7 +1212,7 @@
  17.170  				    'exit-recursive-edit '(keymap) t)))
  17.171  				 (sleep-for 2)
  17.172  				 (recursive-edit))
  17.173 -				((= ch ?y) (throw 'query t))
  17.174 +				((memq ch '(?y ?\  )) (throw 'query t))
  17.175  				((= ch ?!) (throw 'query (setq continue t)))
  17.176  				((= ch ??)
  17.177  				 (describe-function
  17.178 @@ -1192,7 +1224,7 @@
  17.179  				 (sit-for 0)
  17.180  				 (select-window sw))
  17.181  				((= ch ?n) (throw 'query nil)))))))
  17.182 -		      (replace-match new))
  17.183 +		      (replace-match new t))
  17.184  		(and ov (delete-overlay ov)))))
  17.185  	  (setq bufs (cdr bufs)))))))
  17.186  
  17.187 @@ -1207,17 +1239,11 @@
  17.188  		  (format "New %s name: " (or labname "label"))
  17.189  		  (cons dlab 1))))
  17.190        (if (string< "" label)
  17.191 -	  (let ((refstr (format "\\%s{%s}" (or refname "ref") label))
  17.192 -		(key (key-description (where-is-internal 'yank nil t)))
  17.193 -		(msg
  17.194 -		 (if YaTeX-japan
  17.195 -		     "をkill-ringに入れました。yank(%s)で取り出せます。"
  17.196 -		   " is stored into kill-ring.  Paste it by yank(%s).")))
  17.197 -	    (kill-new refstr)
  17.198 +	  (let ((refstr (format "\\%s{%s}" (or refname "ref") label)))
  17.199 +	    (YaTeX-push-to-kill-ring refstr)
  17.200  	    (and chmode
  17.201  		 (not (equal old label))
  17.202 -		 (YaTeX::label-rename-refs old label))
  17.203 -	    (message (concat "`%s'" msg) refstr key)))
  17.204 +		 (YaTeX::label-rename-refs old label))))
  17.205        label))))
  17.206        
  17.207  
  17.208 @@ -1234,6 +1260,12 @@
  17.209     (function
  17.210      (lambda ()
  17.211        (YaTeX-quick-in-environment-p "figure")))))
  17.212 +(defun YaTeX::eqref (argp)
  17.213 +  (YaTeX::ref
  17.214 +   argp nil nil
  17.215 +   (function
  17.216 +    (lambda ()
  17.217 +      (YaTeX-in-math-mode-p)))))
  17.218  
  17.219  (defun YaTeX::cite-collect-bibs-external (bibptn &rest files)
  17.220    "Collect bibentry from FILES(variable length argument) ;
  17.221 @@ -1392,8 +1424,6 @@
  17.222    "Add-in function to insert argument of \\bibitem."
  17.223    (YaTeX::label argp "label" "cite"))
  17.224  
  17.225 -;;; for AMS-LaTeX
  17.226 -(and YaTeX-use-AMS-LaTeX (fset 'YaTeX::eqref 'YaTeX::ref))
  17.227  ;;; for Harvard citation style
  17.228  (fset 'YaTeX::citeasnoun 'YaTeX::cite)
  17.229  (fset 'YaTeX::possessivecite 'YaTeX::cite)
  17.230 @@ -1750,7 +1780,26 @@
  17.231  	    'YaTeX:documentclasses-private
  17.232  	    'YaTeX:documentclasses-local)))
  17.233        (if (string= "" sname) (setq sname YaTeX-default-documentclass))
  17.234 -      (setq YaTeX-default-documentclass sname)))))
  17.235 +      (setq YaTeX-section-name "title"
  17.236 +	    YaTeX-default-documentclass sname)))))
  17.237 +
  17.238 +(defun YaTeX::title (&optional argp)
  17.239 +  (prog1 (read-string "Document Title: ")
  17.240 +    (setq YaTeX-section-name "author"
  17.241 +	  YaTeX-single-command "maketitle")))
  17.242 +
  17.243 +(defun YaTeX::author (&optional argp)
  17.244 +  (prog1 (read-string "Document Author: ")
  17.245 +    (setq YaTeX-section-name "date"
  17.246 +	  YaTeX-single-command "maketitle")))
  17.247 +
  17.248 +(defun YaTeX:document ()
  17.249 +  (setq YaTeX-section-name
  17.250 +	(if (string-match "book\\|bk" YaTeX-default-documentclass)
  17.251 +	    "chapter"
  17.252 +	  "section"))
  17.253 +  "")
  17.254 +      
  17.255  
  17.256  (defvar YaTeX:latex2e-named-color-alist
  17.257    '(("GreenYellow") ("Yellow") ("Goldenrod") ("Dandelion") ("Apricot")
  17.258 @@ -1854,11 +1903,11 @@
  17.259  (defun YaTeX:includegraphics ()
  17.260    "Add-in for \\includegraphics's option"
  17.261    (let (width height (scale "") angle str)
  17.262 -    (setq width (read-string "Width: ")
  17.263 -	  height (read-string "Height: "))
  17.264 -    (or (string< width "") (string< "" height)
  17.265 -	(setq scale (read-string "Scale: ")))
  17.266 -    (setq angle (read-string "Angle(0-359): "))
  17.267 +    (setq width (YaTeX-read-string-or-skip "Width: ")
  17.268 +	  height (YaTeX-read-string-or-skip "Height: "))
  17.269 +    (or (string< "" width) (string< "" height)
  17.270 +	(setq scale (YaTeX-read-string-or-skip "Scale: ")))
  17.271 +    (setq angle (YaTeX-read-string-or-skip "Angle(0-359): "))
  17.272      (setq str
  17.273  	  (mapconcat
  17.274  	   'concat
  17.275 @@ -1874,7 +1923,46 @@
  17.276  
  17.277  (defun YaTeX::includegraphics (argp)
  17.278    "Add-in for \\includegraphics"
  17.279 -  (YaTeX::include argp "Image File: "))
  17.280 +  (let ((imgfile (YaTeX::include argp "Image File: "))
  17.281 +	(case-fold-search t) info bb noupdate needclose c)
  17.282 +    (and (string-match "\\.\\(jpe?g\\|png\\|gif\\|bmp\\)$" imgfile)
  17.283 +	 (file-exists-p imgfile)
  17.284 +	 (or (fboundp 'yahtml-get-image-info)
  17.285 +	     (progn
  17.286 +	       (load "yahtml" t) (featurep 'yahtml))) ;(require 'yahtml nil t)
  17.287 +	 (setq info (yahtml-get-image-info imgfile))
  17.288 +	 (car info)			;if has width value
  17.289 +	 (car (cdr info))		;if has height value
  17.290 +	 (setq bb (format "bb=%d %d %d %d" 0 0 (car info) (car (cdr info))))
  17.291 +	 (save-excursion
  17.292 +	   (cond
  17.293 +	    ((and (save-excursion
  17.294 +		    (YaTeX-re-search-active-backward
  17.295 +		     "\\\\\\(includegraphics\\)\\|\\(bb=[-+ \t0-9]+\\)"
  17.296 +		     YaTeX-comment-prefix nil t))
  17.297 +		  (match-beginning 2)
  17.298 +		  (not (setq noupdate (equal (YaTeX-match-string 2) bb)))
  17.299 +		  (y-or-n-p (format "Update `bb=' line to `%s'?: " bb)))
  17.300 +	     (message "")
  17.301 +	     (replace-match bb))
  17.302 +	    (noupdate nil)
  17.303 +	    ((and (match-beginning 1)
  17.304 +		  (prog2
  17.305 +		      (message "Insert `%s'?  Y)es N)o C)yes+`clip': " bb)
  17.306 +		      (memq (setq c (read-char)) '(?y ?Y ?\  ?c ?C))
  17.307 +		    (message "")))
  17.308 +	     (goto-char (match-end 0))
  17.309 +	     (message "")
  17.310 +	     (if (looking-at "\\[") (forward-char 1)
  17.311 +	       (insert-before-markers "[")
  17.312 +	       (setq needclose t))
  17.313 +	     (insert-before-markers bb)
  17.314 +	     (if (memq c '(?c ?C)) (insert-before-markers ",clip"))
  17.315 +	     (if needclose (insert-before-markers "]")
  17.316 +	       (or (looking-at "\\]") (insert-before-markers ","))))
  17.317 +	    (t (YaTeX-push-to-kill-ring bb)))))
  17.318 +    (setq YaTeX-section-name "caption")
  17.319 +    imgfile))
  17.320   
  17.321  (defun YaTeX::verbfile (argp)
  17.322    "Add-in for \\verbfile"
    18.1 --- a/yatexenv.el	Thu Jan 12 12:27:20 2012 +0900
    18.2 +++ b/yatexenv.el	Mon May 14 18:39:05 2012 +0900
    18.3 @@ -1,8 +1,8 @@
    18.4  ;;; -*- Emacs-Lisp -*-
    18.5  ;;; YaTeX environment-specific functions.
    18.6  ;;; yatexenv.el
    18.7 -;;; (c) 1994-2006 by HIROSE Yuuji.[yuuji@yatex.org]
    18.8 -;;; Last modified Sat Jun 24 08:14:11 2006 on firestorm
    18.9 +;;; (c) 1994-2012 by HIROSE Yuuji.[yuuji@yatex.org]
   18.10 +;;; Last modified Sun Feb 12 11:15:33 2012 on firestorm
   18.11  ;;; $Id$
   18.12  
   18.13  ;;;
   18.14 @@ -134,12 +134,10 @@
   18.15  	     ((eq type 'alignat)
   18.16  	      (max
   18.17  	       1
   18.18 -	       (1-
   18.19 -		(* 2
   18.20 -		   (string-to-int
   18.21 -		    (buffer-substring
   18.22 -		     (point)
   18.23 -		     (progn (up-list -1) (forward-list 1) (1- (point)))))))))
   18.24 +	       (* 2 (string-to-int
   18.25 +		     (buffer-substring
   18.26 +		      (point)
   18.27 +		      (progn (up-list -1) (forward-list 1) (1- (point))))))))
   18.28  	     (t
   18.29  	      (YaTeX-tabular-parse-format-count-cols (point) eoform))))
   18.30        (list cols (1+ eoform)))))
   18.31 @@ -174,25 +172,29 @@
   18.32  (fset 'YaTeX-intelligent-newline-array 'YaTeX-intelligent-newline-tabular)
   18.33  (fset 'YaTeX-intelligent-newline-supertabular 'YaTeX-intelligent-newline-tabular)
   18.34  
   18.35 -(defun YaTeX-intelligent-newline-alignat ()
   18.36 -  (YaTeX-intelligent-newline-tabular 'alignat))
   18.37 -(fset 'YaTeX-intelligent-newline-alignat* 'YaTeX-intelligent-newline-alignat)
   18.38 -
   18.39  (defun YaTeX-intelligent-newline-align ()
   18.40    "Intelligent newline function for align.
   18.41  Count the number of & in the first align line and insert that many &s."
   18.42 -  (let*((p (point)) (cols 0))
   18.43 +  (let*((p (point)) (amps 0))
   18.44 +    (if (string-match "alignat" env)
   18.45 +	(setq amps (1- (car (YaTeX-tabular-parse-format 'alignat))))
   18.46 +      (save-excursion
   18.47 +	(YaTeX-beginning-of-environment)
   18.48 +	(catch 'done
   18.49 +	  (while (YaTeX-re-search-active-forward
   18.50 +		  "\\(&\\)\\|\\(\\\\\\\\\\)" YaTeX-comment-prefix p t)
   18.51 +	    (if (match-beginning 1) (setq amps (1+ amps)) (throw 'done t))))))
   18.52      (save-excursion
   18.53 -      (YaTeX-beginning-of-environment)
   18.54 -      (catch 'done
   18.55 -	(while (YaTeX-re-search-active-forward
   18.56 -		"\\(&\\)\\|\\(\\\\\\\\\\)" YaTeX-comment-prefix p t)
   18.57 -	  (if (match-beginning 1) (setq cols (1+ cols)) (throw 'done t)))))
   18.58 +      (forward-line -1)
   18.59 +      (skip-chars-forward " \t")
   18.60 +      (or (prog1 (looking-at "\\\\begin{") (end-of-line))
   18.61 +	  (save-excursion
   18.62 +	    (skip-chars-backward " \t")
   18.63 +	    (and (= (preceding-char) ?\\) (= (char-after (- (point) 2)) ?\\)))
   18.64 +	  (insert "\\\\")))
   18.65      (save-excursion
   18.66 -      (if (= cols 0)
   18.67 -	  (insert "&")
   18.68 -	(while (>= (setq cols (1- cols)) 0)
   18.69 -	  (insert "& "))))
   18.70 +      (while (>= (setq amps (1- amps)) 0)
   18.71 +	(insert "& ")))
   18.72      (YaTeX-indent-line)))
   18.73  
   18.74  (mapcar
   18.75 @@ -201,7 +203,7 @@
   18.76  			   (symbol-name s)))
   18.77  	  'YaTeX-intelligent-newline-align))
   18.78   '(align* flalign  flalign* matrix pmatrix bmatrix Bmatrix vmatrix Vmatrix
   18.79 -   cases))
   18.80 +   cases eqnarray eqnarray* alignat alignat*))
   18.81  
   18.82  ;;;
   18.83  ;; Functions for tabbing environment
   18.84 @@ -227,8 +229,7 @@
   18.85  	      (setq tabcount (1- tabcount))))
   18.86  	  (forward-char 2))
   18.87        (insert "\\= \\\\")
   18.88 -      (forward-char -5)))
   18.89 -)
   18.90 +      (forward-char -5))))
   18.91  
   18.92  ;;;
   18.93  ;; Functions for itemize/enumerate/list environments
   18.94 @@ -237,23 +238,39 @@
   18.95  (defun YaTeX-intelligent-newline-itemize ()
   18.96    "Insert '\\item '."
   18.97    (insert "\\item ")
   18.98 -  (YaTeX-indent-line)
   18.99 -)
  18.100 +  (YaTeX-indent-line))
  18.101 +
  18.102  (fset 'YaTeX-intelligent-newline-enumerate 'YaTeX-intelligent-newline-itemize)
  18.103  (fset 'YaTeX-intelligent-newline-list 'YaTeX-intelligent-newline-itemize)
  18.104  
  18.105  (defun YaTeX-intelligent-newline-description ()
  18.106    (insert "\\item[] ")
  18.107    (forward-char -2)
  18.108 -  (YaTeX-indent-line)
  18.109 -)
  18.110 +  (YaTeX-indent-line))
  18.111  
  18.112  (defun YaTeX-intelligent-newline-thebibliography ()
  18.113    "Insert '\\bibitem '."
  18.114    (YaTeX-indent-line)
  18.115    (YaTeX-make-section nil nil nil "bibitem")
  18.116 -  (YaTeX-indent-line)
  18.117 -)
  18.118 +  (YaTeX-indent-line))
  18.119 +
  18.120 +;;;
  18.121 +;; For document environment
  18.122 +;;;
  18.123 +(defun YaTeX-intelligent-newline-document ()
  18.124 +  "New paragraph by null line or `\\par'."
  18.125 +  (if (< (count-lines
  18.126 +	  (or (get 'YaTeX-inner-environment 'point)
  18.127 +	      (max 1 (- (point) 17)))	;"\begin{document}\n" == 17
  18.128 +	  (point))
  18.129 +	 2)
  18.130 +      nil
  18.131 +    (if (save-excursion (re-search-backward "\\\\par\\>" nil t))
  18.132 +	(progn
  18.133 +	  (YaTeX-indent-line)
  18.134 +	  (insert "\\par")))
  18.135 +    (newline))
  18.136 +  (YaTeX-indent-line))
  18.137  
  18.138  ;;;
  18.139  ;; Intelligent newline
    19.1 --- a/yatexlib.el	Thu Jan 12 12:27:20 2012 +0900
    19.2 +++ b/yatexlib.el	Mon May 14 18:39:05 2012 +0900
    19.3 @@ -2,7 +2,7 @@
    19.4  ;;; YaTeX and yahtml common libraries, general functions and definitions
    19.5  ;;; yatexlib.el
    19.6  ;;; (c)1994-2012 by HIROSE Yuuji.[yuuji@yatex.org]
    19.7 -;;; Last modified Mon Jan  9 20:20:09 2012 on firestorm
    19.8 +;;; Last modified Wed Feb 29 09:49:30 2012 on firestorm
    19.9  ;;; $Id$
   19.10  
   19.11  ;; General variables
   19.12 @@ -464,6 +464,7 @@
   19.13  
   19.14  ;;;###autoload
   19.15  (defun rindex (string char)
   19.16 +  "Return the last position of STRING where character CHAR found."
   19.17    (let ((pos (1- (length string)))(index -1))
   19.18      (catch 'rindex
   19.19        (while (>= pos 0)
   19.20 @@ -751,6 +752,19 @@
   19.21      (read-with-history-in hsym prompt init))
   19.22     (t (read-string prompt init))))
   19.23  
   19.24 +(defvar YaTeX-skip-next-reader-char ?\C-j)
   19.25 +(defun YaTeX-read-string-or-skip (&rest args)
   19.26 +  "Read string, or skip if last input char is \C-j."
   19.27 +  (if (equal last-input-char YaTeX-skip-next-reader-char)
   19.28 +      ""
   19.29 +    (apply 'read-string args)))
   19.30 +
   19.31 +(defun YaTeX-completing-read-or-skip (&rest args)
   19.32 +  "Do completing-read, or skip if last input char is \C-j."
   19.33 +  (if (equal last-input-char YaTeX-skip-next-reader-char)
   19.34 +      ""
   19.35 +    (apply 'completing-read args)))
   19.36 +
   19.37  ;;;###autoload
   19.38  (fset 'YaTeX-rassoc
   19.39        (if (and nil (fboundp 'rassoc) (subrp (symbol-function 'rassoc)))
   19.40 @@ -1084,16 +1098,18 @@
   19.41  	 (get-file-buffer pf)
   19.42  	 (switch-to-buffer (get-file-buffer pf)))))
   19.43  
   19.44 -(defun YaTeX-get-builtin (key)
   19.45 +(defun YaTeX-getset-builtin (key &optional value)
   19.46    "Read source built-in command of %# usage."
   19.47    (catch 'builtin
   19.48 -    (let ((bl (delq nil (list (current-buffer)
   19.49 +    (let*((bl (delq nil (list (current-buffer)
   19.50  			      (and YaTeX-parent-file
   19.51  				   (get-file-buffer YaTeX-parent-file)))))
   19.52 -	  (leader (or (cdr-safe (assq major-mode
   19.53 -				      '((yatex-mode . "%#")
   19.54 -					(yahtml-mode . "<!-- #"))))
   19.55 -		      "")))
   19.56 +	  (tuple (cdr (assq major-mode
   19.57 +			    '((yatex-mode "%#" . "\n")
   19.58 +			      (yahtml-mode "<!-- #" . "[ \t]*-->\\|\n")))))
   19.59 +	  (leader (or (car tuple) ""))
   19.60 +	  (closer (or (cdr tuple) ""))
   19.61 +	  (prompt (format "Built-in for %s: " key)))
   19.62        (save-excursion
   19.63  	(while bl
   19.64  	  (set-buffer (car bl))
   19.65 @@ -1103,17 +1119,35 @@
   19.66  		      (concat "^" (regexp-quote (concat leader key))) nil t)
   19.67  		     (not (eolp)))
   19.68  		(throw 'builtin
   19.69 -		       (YaTeX-buffer-substring
   19.70 -			(progn
   19.71 -			  (skip-chars-forward " \t" (point-end-of-line))
   19.72 -			  (point))
   19.73 -			(if (string< "" comment-end)
   19.74 -			    (progn
   19.75 -			      (search-forward
   19.76 -			       comment-end (point-end-of-line) t)
   19.77 -			      (match-beginning 0))
   19.78 -			  (point-end-of-line))))))
   19.79 -	  (setq bl (cdr bl)))))))
   19.80 +		       (let (b e w)
   19.81 +			 (skip-chars-forward " \t" (point-end-of-line))
   19.82 +			 (setq b (point)
   19.83 +			       e (if (re-search-forward closer nil t)
   19.84 +				     (match-beginning 0)
   19.85 +				   (point-end-of-line))
   19.86 +			       w (YaTeX-buffer-substring b e))
   19.87 +			 (if (null value)
   19.88 +			     w
   19.89 +			   (delete-region b e)
   19.90 +			   (goto-char b)
   19.91 +			   (if (symbolp value)
   19.92 +			       (setq value (read-string prompt w)))
   19.93 +			   (insert value)
   19.94 +			   value)))))
   19.95 +	  (setq bl (cdr bl)))
   19.96 +	; not found
   19.97 +	(if (null value)
   19.98 +	    nil				;not set mode, return simply nil
   19.99 +	  (if (symbolp value)
  19.100 +	      (setq value (read-string prompt)))
  19.101 +	  (save-excursion
  19.102 +	    (goto-char (point-min))
  19.103 +	    (insert leader key " " value "\n")
  19.104 +	    value))))))			;on set mode, return set value
  19.105 +
  19.106 +(defun YaTeX-get-builtin (key)
  19.107 +  "Read source built-in command of %# usage."
  19.108 +  (YaTeX-getset-builtin key))
  19.109  
  19.110  ;;;VER2
  19.111  (defun YaTeX-insert-struc (what env)
  19.112 @@ -1489,6 +1523,26 @@
  19.113  	    (throw 'found (car alist)))
  19.114  	(setq alist (cdr alist))))))
  19.115  
  19.116 +(defun YaTeX-push-to-kill-ring (string)
  19.117 +  "Push STRING to kill-ring, then show guidance message."
  19.118 +  (and (stringp string) (string< "" string)
  19.119 +       (let ((key (key-description (where-is-internal 'yank nil t)))
  19.120 +	     (msg
  19.121 +	      (if YaTeX-japan
  19.122 +		  " をkill-ringに入れました。次のyank(%s)で貼付できます"
  19.123 +		" is stored into kill-ring.  Paste it by yank(%s).")))
  19.124 +	 (kill-new string)
  19.125 +	 (message (concat "`%s'" msg) string key))))
  19.126 +
  19.127 +(defun YaTeX-elapsed-time (before after)
  19.128 +  "Get elapsed time from BEFORE and AFTER, which are given from currente-time."
  19.129 +  (if (fboundp 'float)			;Then, current-time function should be.
  19.130 +      (let ((mil (float 1000000)))	;To protect parse error before 19
  19.131 +	(+ (* (- (nth 0 after) (nth 0 before)) 65536)
  19.132 +	   (- (nth 1 after) (nth 1 before))
  19.133 +	   (- (/ (nth 2 after) mil)
  19.134 +	      (/ (nth 2 before) mil))))))
  19.135 +
  19.136  ;;;
  19.137  ;; Functions for the Installation time
  19.138  ;;;
  19.139 @@ -1514,7 +1568,15 @@
  19.140  		 (lambda (arg)
  19.141  		   (find-file arg)
  19.142  		   (texinfo-format-buffer)
  19.143 -		   (basic-save-buffer)))
  19.144 +		   (cond
  19.145 +		    ((fboundp 'set-buffer-file-coding-system)
  19.146 +		     (set-buffer-file-coding-system 'sjis-dos))
  19.147 +		    ((fboundp 'set-file-coding-system)
  19.148 +		     (set-file-coding-system '*sjis*dos))
  19.149 +		    ((boundp 'NEMACS)
  19.150 +		     (set (make-local-variable 'kanji-fileio-code) 1)))
  19.151 +		   (let ((coding-system-for-write buffer-file-coding-system))
  19.152 +		     (basic-save-buffer))))
  19.153  		command-line-args-left)
  19.154  	(kill-emacs))))
  19.155  
    20.1 --- a/yatexmth.el	Thu Jan 12 12:27:20 2012 +0900
    20.2 +++ b/yatexmth.el	Mon May 14 18:39:05 2012 +0900
    20.3 @@ -2,7 +2,7 @@
    20.4  ;;; YaTeX math-mode-specific functions.
    20.5  ;;; yatexmth.el
    20.6  ;;; (c)1993-2012 by HIROSE Yuuji [yuuji@yatex.org]
    20.7 -;;; Last modified Mon Jan  9 20:14:02 2012 on firestorm
    20.8 +;;; Last modified Tue Jan 24 08:58:56 2012 on firestorm
    20.9  ;;; $Id$
   20.10  
   20.11  ;;; [Customization guide]
   20.12 @@ -315,6 +315,13 @@
   20.13     ("D"		"diamondsuit"	"/\\\n\\/")
   20.14     ("H"		"heartsuit"	"<^^>\n \\/")
   20.15     ("S"		"spadesuit"	" /\\\n<++>\n /\\")
   20.16 +   ("mi"	"mathit"	"\\mathit{}")
   20.17 +   ("mr"	"mathrm"	"\\mathrm{}")
   20.18 +   ("mb"	"mathbf"	"\\mathbf{}")
   20.19 +   ("mt"	"mathtt"	"\\mathtt{}")
   20.20 +   ("ms"	"mathsf"	"\\mathsf{}")
   20.21 +   ("mc"	"mathcal"	"\\mathcal{}")
   20.22 +   ("mn"	"mathnormal"	"\\mathnormal{}")
   20.23     )
   20.24   "Default LaTeX-math-command alist.")
   20.25  
    21.1 --- a/yatexprc.el	Thu Jan 12 12:27:20 2012 +0900
    21.2 +++ b/yatexprc.el	Mon May 14 18:39:05 2012 +0900
    21.3 @@ -2,7 +2,7 @@
    21.4  ;;; YaTeX process handler.
    21.5  ;;; yatexprc.el
    21.6  ;;; (c)1993-2012 by HIROSE Yuuji.[yuuji@yatex.org]
    21.7 -;;; Last modified Mon Jan  9 20:20:24 2012 on firestorm
    21.8 +;;; Last modified Fri Feb 17 22:35:38 2012 on firestorm
    21.9  ;;; $Id$
   21.10  
   21.11  ;(require 'yatex)
   21.12 @@ -55,6 +55,9 @@
   21.13    (modify-syntax-entry ?\[ "w" YaTeX-typeset-buffer-syntax)
   21.14    (modify-syntax-entry ?\] "w" YaTeX-typeset-buffer-syntax))
   21.15  
   21.16 +(defvar YaTeX-typeset-marker nil)
   21.17 +(defvar YaTeX-typeset-consumption nil)
   21.18 +(make-variable-buffer-local 'YaTeX-typeset-consumption)
   21.19  (defun YaTeX-typeset (command buffer &optional prcname modename ppcmd)
   21.20    "Execute jlatex (or other) to LaTeX typeset."
   21.21    (interactive)
   21.22 @@ -92,11 +95,23 @@
   21.23  			      YaTeX-shell-command-option command))
   21.24  	 (get-buffer buffer))
   21.25  	(set-process-sentinel YaTeX-typeset-process 'YaTeX-typeset-sentinel)
   21.26 +	(put 'YaTeX-typeset-process 'thiscmd command)
   21.27 +	(put 'YaTeX-typeset-process 'name prcname)
   21.28 +	(if (fboundp 'current-time)
   21.29 +	    (setq YaTeX-typeset-consumption
   21.30 +		  (cons (cons 'time (current-time))
   21.31 +			(delq 'time YaTeX-typeset-consumption))))
   21.32  	(let ((ppprop (get 'YaTeX-typeset-process 'ppcmd)))
   21.33  	  (setq ppprop (delq (assq YaTeX-typeset-process ppprop) ppprop))
   21.34  	  (if ppcmd
   21.35  	      (setq ppprop (cons (cons YaTeX-typeset-process ppcmd) ppprop)))
   21.36 -	  (put 'YaTeX-typeset-process 'ppcmd ppprop))))
   21.37 +	  (put 'YaTeX-typeset-process 'ppcmd ppprop))
   21.38 +	(if (and (boundp 'bibcmd) bibcmd)
   21.39 +	    (let ((bcprop (get 'YaTeX-typeset-process 'bibcmd)))
   21.40 +	      (setq bcprop (cons
   21.41 +			    (cons YaTeX-typeset-process bibcmd)
   21.42 +			    (delq (assq YaTeX-typeset-process bcprop) bcprop)))
   21.43 +	      (put 'YaTeX-typeset-process 'bibcmd bcprop)))))
   21.44        (message (format "Calling `%s'..." command))
   21.45        (setq YaTeX-current-TeX-buffer (buffer-name))
   21.46        (use-local-map map)		;map may be localized
   21.47 @@ -114,6 +129,10 @@
   21.48  		  YaTeX-latex-message-code outcode))
   21.49  		((boundp 'NEMACS)
   21.50  		 (set-kanji-process-code YaTeX-latex-message-code))))
   21.51 +      (set-marker (or YaTeX-typeset-marker
   21.52 +		      (setq YaTeX-typeset-marker (make-marker)))
   21.53 +		  (point))
   21.54 +      (insert (format "Call `%s'\n" command))
   21.55        (if YaTeX-dos (message "Done.")
   21.56  	(insert " ")
   21.57  	(set-marker (process-mark YaTeX-typeset-process) (1- (point))))
   21.58 @@ -133,6 +152,15 @@
   21.59        (switch-to-buffer cb)
   21.60        (YaTeX-remove-nonstopmode))))
   21.61  
   21.62 +(defvar YaTeX-typeset-auto-rerun t
   21.63 +  "*Non-nil automatically reruns typesetter when cross-refs update found.
   21.64 +This is a toy mechanism.  DO NOT RELY ON THIS MECHANISM.
   21.65 +You SHOULD check the integrity of cross-references with your eyes!!
   21.66 +Supplying an integer to this variable inhibit compulsory call of bibtex,
   21.67 +thus, it call bibtex only if warning messages about citation are seen.")
   21.68 +(defvar YaTeX-typeset-rerun-msg "Rerun to get cross-references right.")
   21.69 +(defvar YaTeX-typeset-citation-msg
   21.70 +  "Warning: Citation \`")
   21.71  (defun YaTeX-typeset-sentinel (proc mes)
   21.72    (cond ((null (buffer-name (process-buffer proc)))
   21.73           ;; buffer killed
   21.74 @@ -140,7 +168,17 @@
   21.75          ((memq (process-status proc) '(signal exit))
   21.76           (let* ((obuf (current-buffer)) (pbuf (process-buffer proc))
   21.77  		(pwin (get-buffer-window pbuf))
   21.78 -		(owin (selected-window)) win)
   21.79 +		(owin (selected-window)) win
   21.80 +		tobecalled shortname
   21.81 +		(thiscmd (get 'YaTeX-typeset-process 'thiscmd))
   21.82 +		(ppprop (get 'YaTeX-typeset-process 'ppcmd))
   21.83 +		(ppcmd (cdr (assq proc ppprop)))
   21.84 +		(bcprop (get 'YaTeX-typeset-process 'bibcmd))
   21.85 +		(bibcmd (cdr (assq proc bcprop))))
   21.86 +	   (put 'YaTeX-typeset-process 'ppcmd ;erase ppcmd
   21.87 +		(delq (assq proc ppprop) ppprop))
   21.88 +	   (put 'YaTeX-typeset-process 'bibcmd ;erase bibcmd
   21.89 +		(delq (assq proc bcprop) bcprop))
   21.90             ;; save-excursion isn't the right thing if
   21.91             ;;  process-buffer is current-buffer
   21.92             (unwind-protect
   21.93 @@ -154,36 +192,102 @@
   21.94  		 (if pwin (recenter -3))
   21.95                   (insert ?\n mode-name " " mes)
   21.96                   (forward-char -1)
   21.97 -                 (insert " at " (substring (current-time-string) 0 -5) "\n")
   21.98 +                 (insert
   21.99 +		  (format " at %s%s\n"
  21.100 +			  (substring (current-time-string) 0 -5)
  21.101 +			  (if (and (fboundp 'current-time) (fboundp 'float)
  21.102 +				   (assq 'time YaTeX-typeset-consumption))
  21.103 +			      (format
  21.104 +			       " (%.2f secs)"
  21.105 +			       (YaTeX-elapsed-time
  21.106 +				(cdr (assq 'time YaTeX-typeset-consumption))
  21.107 +				(current-time))))))
  21.108                   (setq mode-line-process
  21.109                         (concat ": "
  21.110                                 (symbol-name (process-status proc))))
  21.111 -		 (message mode-name " %s."
  21.112 +		 (message "%s %s" mode-name
  21.113  			  (if (eq (process-status proc) 'exit)
  21.114  			      "done" "ceased"))
  21.115                   ;; If buffer and mode line shows that the process
  21.116                   ;; is dead, we can delete it now.  Otherwise it
  21.117                   ;; will stay around until M-x list-processes.
  21.118                   (delete-process proc)
  21.119 -		 ;; If ppcmd is active, call it.
  21.120 -		 (let* ((ppprop (get 'YaTeX-typeset-process 'ppcmd))
  21.121 -			(ppcmd (cdr (assq proc ppprop))))
  21.122 -		   (put 'YaTeX-typeset-process 'ppcmd ;erase ppcmd
  21.123 -			(delq (assq proc ppprop) ppprop))
  21.124 +		 (if (cond
  21.125 +		      ((or (not YaTeX-typeset-auto-rerun)
  21.126 +			   (string-match "latexmk" thiscmd))
  21.127 +		       nil)
  21.128 +		      ((and bibcmd     ;Call bibtex if bibcmd defined &&
  21.129 +			    (or	       ;  (1st call  || warning found)
  21.130 +			     (and (not (numberp YaTeX-typeset-auto-rerun))
  21.131 +				  ; cancel call at 1st, if value is a number.
  21.132 +				  (not (string-match "bibtex" mode-name)))
  21.133 +			     (re-search-backward
  21.134 +			      YaTeX-typeset-citation-msg
  21.135 +			      YaTeX-typeset-marker t))
  21.136 +			    (save-excursion ; && using .bbl files.
  21.137 +			      (search-backward
  21.138 +			       ".bbl" YaTeX-typeset-marker t)))
  21.139 +		       ;; Always call bibtex after the first typesetting,
  21.140 +		       ;; because bibtex doesn't warn disappeared \cite.
  21.141 +		       ;; (Suggested by ryseto. 2012)
  21.142 +		       ;; It is more efficient to call bibtex directly than
  21.143 +		       ;; to call it after deep inspection on the balance
  21.144 +		       ;; of \cite vs. \bib*'s referring all *.aux files.
  21.145 +		       (insert "\n" YaTeX-typeset-rerun-msg "\n")
  21.146 +		       (setq tobecalled bibcmd shortname "+bibtex"))
  21.147 +		      ((or
  21.148 +			(save-excursion
  21.149 +			  (search-backward
  21.150 +			   YaTeX-typeset-rerun-msg YaTeX-typeset-marker t))
  21.151 +			(save-excursion
  21.152 +			  (re-search-backward
  21.153 +			   "natbib.*Rerun to get citations correct"
  21.154 +			   YaTeX-typeset-marker t)))
  21.155 +		       (if bibcmd
  21.156 +			   (put 'YaTeX-typeset-process 'bibcmd
  21.157 +				(cons (cons (get-buffer-process pbuf) bibcmd)
  21.158 +				      bcprop)))
  21.159 +		       (setq tobecalled thiscmd shortname "+typeset"))
  21.160 +		      (t
  21.161 +		       nil))			  ;no need to call any process
  21.162 +		     (progn
  21.163 +		       (insert
  21.164 +			(format
  21.165 +			 "===!!! %s !!!===\n"
  21.166 +			 (message "Rerun `%s' to get cross-references right"
  21.167 +				  tobecalled)))
  21.168 +		       (if (equal tobecalled thiscmd)
  21.169 +			   (set-marker YaTeX-typeset-marker (point)))
  21.170 +		       (set-process-sentinel
  21.171 +			(start-process
  21.172 +			 (setq mode-name (concat mode-name shortname))
  21.173 +			 pbuf
  21.174 +			 shell-file-name YaTeX-shell-command-option tobecalled)
  21.175 +			'YaTeX-typeset-sentinel)
  21.176 +		       (if ppcmd
  21.177 +			   (put 'YaTeX-typeset-process 'ppcmd
  21.178 +				(cons (cons (get-buffer-process pbuf) ppcmd)
  21.179 +				      ppprop)))
  21.180 +		       (if thiscmd
  21.181 +			   (put 'YaTeX-typeset-process 'thiscmd thiscmd)))
  21.182 +		   ;; If ppcmd is active, call it.
  21.183  		   (cond
  21.184  		    ((and ppcmd (string-match "finish" mes))
  21.185  		     (insert (format "=======> Success! Calling %s\n" ppcmd))
  21.186  		     (setq mode-name	; set process name
  21.187 -			   (substring ppcmd 0 (string-match " " ppcmd)))
  21.188 -		     ; to reach here, 'start-process exists on this emacsen
  21.189 +			   (concat
  21.190 +			    mode-name "+"
  21.191 +			    (substring ppcmd 0 (string-match " " ppcmd))))
  21.192 +					; to reach here, 'start-process exists on this emacsen
  21.193  		     (set-process-sentinel
  21.194  		      (start-process
  21.195  		       mode-name
  21.196  		       pbuf		; Use this buffer twice.
  21.197  		       shell-file-name YaTeX-shell-command-option
  21.198  		       ppcmd)
  21.199 -		      'YaTeX-typeset-sentinel))))
  21.200 -		 
  21.201 +		      'YaTeX-typeset-sentinel))
  21.202 +		    (t ;pull back original mode-name
  21.203 +		     (setq mode-name "typeset"))))
  21.204  		 (forward-char 1))
  21.205  	     (setq YaTeX-typeset-process nil)
  21.206               ;; Force mode line redisplay soon
  21.207 @@ -304,13 +408,17 @@
  21.208    (YaTeX-save-buffers)
  21.209    (let*((me (substring (buffer-name) 0 (rindex (buffer-name) ?.)))
  21.210  	(mydir (file-name-directory (buffer-file-name)))
  21.211 -	(cmd (YaTeX-get-latex-command t)) pparg ppcmd
  21.212 +	(cmd (YaTeX-get-latex-command t)) pparg ppcmd bibcmd
  21.213  	(cb (current-buffer)))
  21.214 +    (setq pparg (substring cmd 0 (string-match "[;&]" cmd)) ;rm multistmt
  21.215 +	  pparg (substring pparg (rindex pparg ? ))	 ;get last arg
  21.216 +	  pparg (substring pparg 0 (rindex pparg ?.))	 ;rm ext
  21.217 +	  bibcmd (or (YaTeX-get-builtin "BIBTEX") bibtex-command))
  21.218 +    (or (string-match "\\s " bibcmd)		;if bibcmd has no spaces,
  21.219 +	(setq bibcmd (concat bibcmd pparg)))	;append argument(== %#!)
  21.220      (and pp
  21.221  	 (stringp pp)
  21.222 -	 (setq pparg (substring cmd 0 (string-match "[;&]" cmd)) ;rm multistmt
  21.223 -	       pparg (substring pparg (rindex pparg ? ))	 ;get last arg
  21.224 -	       ppcmd (concat pp (substring pparg 0 (rindex pparg ?.)))));rm ext
  21.225 +	 (setq ppcmd (concat pp pparg)))
  21.226      (if (YaTeX-main-file-p) nil
  21.227        (save-excursion
  21.228  	(YaTeX-visit-main t)	;search into main buffer
  21.229 @@ -377,13 +485,34 @@
  21.230        'YaTeX-call-command-history)
  21.231       buffer)))
  21.232  
  21.233 -(defun YaTeX-bibtex-buffer (cmd)
  21.234 -  "Pass the bibliography data of editing file to bibtex."
  21.235 -  (interactive)
  21.236 +(defvar YaTeX-call-builtin-on-file)
  21.237 +(make-variable-buffer-local 'YaTeX-call-builtin-on-file)
  21.238 +(defun YaTeX-call-builtin-on-file (builtin-type &optional default update)
  21.239 +  "Call command on file specified by BUILTIN-TYPE."
  21.240    (YaTeX-save-buffers)
  21.241 -  (let ((main (or YaTeX-parent-file
  21.242 -		  (progn (YaTeX-visit-main t) buffer-file-name))))
  21.243 -    (YaTeX-call-command-on-file cmd "*YaTeX-bibtex*" main)))
  21.244 +  (let*((main (or YaTeX-parent-file
  21.245 +		  (save-excursion (YaTeX-visit-main t) buffer-file-name)))
  21.246 +	(mainroot (file-name-nondirectory (substring main 0 (rindex main ?.))))
  21.247 +	(alist YaTeX-call-builtin-on-file)
  21.248 +	(b-in (or (YaTeX-get-builtin builtin-type)
  21.249 +		  (cdr (assoc builtin-type alist))))
  21.250 +	(command b-in))
  21.251 +    (if (or update (null b-in))
  21.252 +	(progn
  21.253 +	  (setq command (read-string-with-history
  21.254 +			 (format "%s command: " builtin-type)
  21.255 +			 (or b-in
  21.256 +			     (format "%s %s" default mainroot))
  21.257 +			 'YaTeX-call-command-history))
  21.258 +	  (if (or update (null b-in))
  21.259 +	      (if (y-or-n-p "Use this command line in the future? ")
  21.260 +		  (YaTeX-getset-builtin builtin-type command) ;keep in a file
  21.261 +		(setq YaTeX-call-builtin-on-file	      ;keep in memory
  21.262 +		      (cons (cons builtin-type command)
  21.263 +			    (delete (assoc builtin-type alist) alist)))))))
  21.264 +    (YaTeX-typeset
  21.265 +     command
  21.266 +     (format " *YaTeX-%s*" (downcase builtin-type)))))
  21.267  
  21.268  (defun YaTeX-kill-typeset-process (proc)
  21.269    "Kill process PROC after sending signal to PROC.
  21.270 @@ -566,20 +695,24 @@
  21.271  	    -1)))))
  21.272  
  21.273  (defun YaTeX-prev-error ()
  21.274 -  "Visit previous typeset error.
  21.275 +  "Visit position of previous typeset error or warning.
  21.276    To avoid making confliction of line numbers by editing, jump to
  21.277  error or warning lines in reverse order."
  21.278    (interactive)
  21.279 -  (let ((cur-buf (buffer-name)) (cur-win (selected-window))
  21.280 -	b0 errorp error-line typeset-win error-buffer error-win)
  21.281 +  (let ((cur-buf (save-excursion (YaTeX-visit-main t) (buffer-name)))
  21.282 +	(cur-win (selected-window))
  21.283 +	b0 bound errorp error-line typeset-win error-buffer error-win)
  21.284      (if (null (get-buffer YaTeX-typeset-buffer))
  21.285  	(error "There is no typesetting buffer."))
  21.286      (YaTeX-showup-buffer YaTeX-typeset-buffer nil t)
  21.287 +    (if (and (markerp YaTeX-typeset-marker)
  21.288 +	     (eq (marker-buffer YaTeX-typeset-marker) (current-buffer)))
  21.289 +	(setq bound YaTeX-typeset-marker))
  21.290      (setq typeset-win (selected-window))
  21.291      (if (re-search-backward
  21.292  	 (concat "\\(" latex-error-regexp "\\)\\|\\("
  21.293  		 latex-warning-regexp "\\)")
  21.294 -	 nil t)
  21.295 +	 bound t)
  21.296  	(setq errorp (match-beginning 1))
  21.297        (select-window cur-win)
  21.298        (error "No more errors on %s" cur-buf))