yatex

view docs/yatexe @ 409:781604df4cbd

New variables: YaTeX-electric-indent-mode, yahtml-electric-indent-mode
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 11 Feb 2015 11:45:37 +0900
parents e95ae850eefb
children 510106cf15fb
line source
1 Info file: yatexe, -*-Text-*-
2 produced by `texinfo-format-buffer'
3 from file `yatexe.tex'
4 using `texinfmt.el' version 2.38 of 3 July 1998.
6 START-INFO-DIR-ENTRY
7 * YaTeX-e: (yatexe). Yet Another tex-mode for Emacs (English).
8 END-INFO-DIR-ENTRY
14 
15 File: yatexe, Node: Top, Next: What is YaTeX?, Prev: (dir), Up: (dir)
17 * Menu:
19 * What is YaTeX?::
20 * Main features:: What YaTeX can do
21 * Installation:: Guide to install
22 * Typesetting:: Call typesetting processes
23 * %#notation:: Meta-keyword `%#'
24 * Completion:: Input LaTeX commands with completion
25 * Local dictionaries:: Directory dependent completion
26 * Commenting out:: Commenting/uncommenting text
27 * Cursor jump:: Jumping to related position
28 * Changing and Deleting:: Changing/deleting certain unit of text
29 * Filling:: Filling an item or paragraph
30 * Updation of includeonly:: Free from maintaining includeonly
31 * What column:: Check what table-column the cursor belong
32 * Intelligent newline:: Guess requisites of new line
33 * Usepackage checker:: Selecting correct \usepackage is YaTeX's job
34 * Online help:: On-line documentation of LaTeX
35 * Browsing file hierarchy:: Walking through file hierarchy
36 * Cooperation with other packages:: Work well with gmhist, min-out
37 * Customizations:: How to breed `Wild Bird'
38 * Etcetera:: YaTeX is acquisitive.
39 * Copying:: Redistribution
43 
44 File: yatexe, Node: What is YaTeX?, Next: Main features, Prev: Top, Up: Top
46 What is YaTeX?
47 **************
49 YaTeX automates typesetting and previewing of LaTeX and enables
50 completing input of LaTeX mark-up command such as `\begin{}'..`\end{}'.
52 YaTeX also supports Demacs which runs on MS-DOS(386), Mule (Multi
53 Language Enhancement to GNU Emacs), and latex on DOS.
56 
57 File: yatexe, Node: Main features, Next: Installation, Prev: What is YaTeX?, Up: Top
59 Main features
60 *************
62 * Invocation of typesetter, previewer and related programs(`C-c t')
63 * Typesetting on static region which is independent from point
64 * Semiautomatic replacing of `\includeonly'
65 * Jumping to error line(`C-c '')
66 * Completing-read of LaTeX commands such as `\begin{}', `\section' etc.
67 (`C-c b', `C-c s', `C-c l', `C-c m')
68 * Enclosing text into LaTeX environments or commands (ABOVEKEYSTROKES
69 after region setting)
70 * Displaying the structure of text at entering sectioning commands
71 * Lump shifting of sectioning commands (*Note view-sectioning::)
72 * Learning unknown/new LaTeX commands for the next completion
73 * Argument reading with a guide for complicated LaTeX commands
74 * Generating argument-readers for new/unsupported commands(`yatexgen')
75 * Quick changing or deleting of LaTeX commands(`C-c c', `C-c k')
76 * Jumping from and to inter-file, begin<->end, ref<->label(`C-c g')
77 * Blanket commenting out or uncommenting (`C-c >', `C-c <', `C-c ,',
78 `C-c .')
79 * Easy input of accent mark, math-mode's commands and Greek letters
80 (`C-c a', `;', `:')
81 * Online help for the popular LaTeX commands (`C-c ?', `C-c /')
82 * Document files hierarchy browser (`C-c d')
83 * Adding automatically \usepackage corresponding to inputting LaTeX
84 macro with completion
85 * Allow you to forget creating \label{}s, \ref{} or \cite{} completion
86 automatically generate labels.
89 
90 File: yatexe, Node: Installation, Next: Typesetting, Prev: Main features, Up: Top
92 Installation
93 ************
95 Put next two expressions into your `~/.emacs'.
97 (setq auto-mode-alist
98 (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
99 (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
101 Next, add certain path name where you put files of YaTeX to your
102 load-path. If you want to put them in `~/src/emacs', write
104 (setq load-path
105 (cons (expand-file-name "~/src/emacs") load-path))
107 in your `~/.emacs'
109 Then, yatex-mode will be automatically loaded when you visit a file
110 which has extension `.tex'. If yatex-mode is successfully loaded, mode
111 string on mode line will be turned to "YaTeX".
115 
116 File: yatexe, Node: Typesetting, Next: %#notation, Prev: Installation, Up: Top
118 Typesetting
119 ***********
121 The prefix key stroke of yatex-mode is `C-c' (Press 'C' with Control
122 key) by default. If you don't intend to change the prefix key stroke,
123 assume all `[prefix]' as `C-c' in this document. These key strokes
124 execute typeset or preview command.
126 `[prefix] t j'
127 ... invoke typesetter
128 `[prefix] t r'
129 ... invoke typesetter on region
130 `[prefix] t e'
131 ... `on-the-fly preview' on current environment or whole
132 portion of current formulas in math-mode
133 `[prefix] t d'
134 ... invoke dvipdfmx after successful typesetting
135 `[prefix] t k'
136 ... kill current typesetting process
137 `[prefix] t b'
138 ... invoke bibtex
139 `[prefix] t i'
140 ... invoke makeindex
141 `[prefix] t d'
142 ... invoke latex && dvipdfmx
143 `[prefix] t p'
144 ... preview
145 `[prefix] t l'
146 ... lpr dvi-file
147 `[prefix] t s'
148 ... search current string on xdvi-remote
150 * Menu:
152 * Calling typesetter::
153 * Calling previewer::
154 * Printing out::
157 
158 File: yatexe, Node: Calling typesetter, Next: Calling previewer, Prev: Typesetting, Up: Typesetting
160 Calling typesetter
161 ==================
163 Typing `[prefix] t j', the current editing window will be divided
164 horizontally when you invoke latex command, and log message of LaTeX
165 typesetting will be displayed in the other window; called typesetting
166 buffer. The typesetting buffer automatically scrolls up and traces LaTeX
167 warnings and error messages. If you see latex stopping by an error, you
168 can send string to latex in the typesetting buffer.
170 If an error stops the LaTeX typesetting, this key stroke will move the
171 cursor to the line where LaTeX error is detected.
173 `[prefix] ''
174 `([prefix]+single quotation)'
176 ... jump to the previous error or warning
178 If you find a noticeable error, move to the typesetting buffer and move
179 the cursor on the line of error message and type `SPACE' key. This makes
180 the cursor move to corresponding source line.
182 YaTeX-typeset-region invoked by `[prefix] tr' call typesetter for
183 region. The region is specified by standard point and mark, or by
184 `%#BEGIN' and `%#END' marks. Selected region will be copied to the
185 temporary file `texput.tex' with the same preamble as the main file of
186 current editing sources. Be sure to put all local macro settings in
187 preamble, not after `\begin{document}'. The method of specification of
188 the region is shown in the section *Note %#notation::.
190 The documentclass for typeset-region is the same as that of editing file
191 if you edit one file, and is the same as main file's if you edit splitting
192 files.
194 The `[prefix] te' key automatically marks current inner environment or
195 inner math mode or paragraph, and then call typeset-region with marked
196 region. This is convenient to quick view of current tabular environment
197 or current editing formulas. If running Emacs has the ability of
198 displaying images, typeset image will be shown in the next window.
199 Further more, if you modify the content within that environment, YaTeX
200 performs `on-the-fly' preview that automatically update preview image as
201 you typed.
203 If your Emacs does not supply on-the-fly preview, keeping previewer window
204 for `texput.dvi' is handy for debugging. Since `[prefix] te' selects the
205 inner-most environment as region, it is not suitable for partial
206 typesetting of doubly or more composed environment. If you want to do
207 partial typesetting for a nested environment, use `[prefix] tr' for
208 static-region, which is described in the section *Note %#notation::.
211 
212 File: yatexe, Node: Calling previewer, Next: Printing out, Prev: Calling typesetter, Up: Typesetting
214 Calling previewer
215 =================
217 `[prefix] t p' invokes the TeX previewer. And if you are using
218 xdvi-remote, which can be controled from other terminals, `[prefix] t s'
219 enables you to search current string at the cursor on the running xdvi
220 window.
223 
224 File: yatexe, Node: Printing out, Prev: Calling previewer, Up: Typesetting
226 Printing out
227 ============
229 When you type `[preifx] t l', YaTeX asks you the range of dvi-printing
230 by default. You can skip this by invoking it with universal-argument as
231 follows:
233 C-u [prefix] tl
236 
237 File: yatexe, Node: %#notation, Next: Completion, Prev: Typesetting, Up: Top
239 %# notation
240 ***********
242 You can control the typesetting process by describing `%#' notations in
243 the source text.
245 * Menu:
247 * Changing typesetter::
248 * Splitting input files::
249 * Static region for typesetting::
250 * Lpr format::
251 * Controlling which command to invoke::
252 * Editing %# notation::
255 
256 File: yatexe, Node: Changing typesetter, Next: Splitting input files, Prev: %#notation, Up: %#notation
258 To change the `latex' command or to split a source text.
259 ========================================================
261 To change the typesetting command, write
263 %#!latex-big
265 anywhere in the source text. This is useful for changing typesetter.
268 
269 File: yatexe, Node: Splitting input files, Next: Static region for typesetting, Prev: Changing typesetter, Up: %#notation
271 Splitting input files
272 =====================
274 And if you split the source text and edit subfile that should be
275 included from main text.
277 %#!latex main.tex
279 will be helpful to execute latex on main file from sub text buffer. Since
280 this command line after `%#!' will be sent to shell literally, next
281 description makes it convenient to use ghostview as dvi-previewer.
283 %#!latex main && dvi2ps main.dvi > main
285 Note that YaTeX assumes the component before the last period of the last
286 word in this line as base name of the main LaTeX source. The `%f'
287 notation in this line is replaced by main file name, and `%r' replaced by
288 root name of main file name. If you specify `%f' or `%r', YaTeX always
289 ask you the name of main file at the first typesetting.
291 To make best use of the feature of inter-file jumping by `[prefix] g'
292 (see *Note Cursor jump::), take described below into consideration.
294 * You can put split texts in sub directory, but not in sub directory of
295 sub directory.
296 * In the main text, specify the child file name with relative path name
297 such as \include{chap1/sub}, when you include the file in a
298 sub-directory.
299 * In a sub-text, write `%#!latex main.tex' even if `main.tex' is in the
300 parent directory(not %#!latex ../main.tex).
303 
304 File: yatexe, Node: Static region for typesetting, Next: Lpr format, Prev: Splitting input files, Up: %#notation
306 Static region
307 =============
309 Typeset-region by `[prefix] tr' passes the region between point and mark
310 to typesetting command by default. But when you want to typeset static
311 region, enclose the region by `%#BEGIN' and `%#END' as follows.
313 %#BEGIN
314 TheRegionYouWantToTypesetManyTimes
315 %#END
317 This is the rule of deciding the region.
319 1. If there exists %#BEGIN before point,
321 1. If there exists %#END after %#BEGIN,
322 * From %#BEGIN to %#END.
324 2. If %#END does not exist after %#BEGIN,
325 * From %#BEGIN to the end of buffer.
327 2. If there does not exist %#BEGIN before point,
328 * Between point and mark(standard method of Emacs).
330 It is useful to write `%#BEGIN' in the previous line of \begin and
331 `%#END' in the next line of \`end' when you try complex environment such
332 as `tabular' many times. It is also useful to put only `%#BEGIN' alone at
333 the middle of very long text. Do not forget to erase `%#BEGIN' `%#END'
334 pair.
337 
338 File: yatexe, Node: Lpr format, Prev: Static region for typesetting, Up: %#notation
340 Lpr format
341 ==========
343 Lpr format is specified by three Lisp variables. Here are the default
344 values of them.
346 `(1)dviprint-command-format'
347 `"dvi2ps %f %t %s | lpr"'
348 `(2)dviprint-from-format'
349 `"-f %b"'
350 `(3)dviprint-to-format'
351 `"-t %e"'
353 On YaTeX-lpr, `%s' in (1) is replaced by the file name of main text,
354 `%f' by contents of (2), %t by contents of (3). At these replacements,
355 `%b' in (2) is also replaced by the number of beginning page, `%e' in (3)
356 is replaced by the number of ending page. But `%f' and `%t' are ignored
357 when you omit the range of print-out by `C-u [prefix] tl'.
359 If you want to change this lpr format temporarily, put a command such as
360 follows somewhere in the text:
362 %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2
364 And if you want YaTeX not to ask you the range of printing out, the next
365 example may be helpful.
367 %#LPR dvi2ps %s | lpr
370 
371 File: yatexe, Node: Controlling which command to invoke, Next: Editing %# notation, Prev: Lpr format, Up: %#notation
373 Controlling which command to invoke
374 ===================================
376 These %# notation below can control which command to invoke for LaTeX
377 related process.
379 `%#BIBTEX'
381 ... Command line for makeindex ([prefix] t i)
382 `%#MAKEINDEX'
384 ... Command line for bibtex ([prefix] t b)
385 `%#DVIPDF'
387 ... Command line for dvipdf(mx) ([prefix] t b)
389 If you want to invoke "makeidx hogehoge" to update index, put the next
390 line some upper place in the source, for example.
392 %#MAKEINDEX makeidx hogehoge
396 
397 File: yatexe, Node: Editing %# notation, Prev: Controlling which command to invoke, Up: %#notation
399 Editing %# notation
400 ===================
402 To edit `%#' notation described above, type
404 `[prefix] %'
405 ... editing %# notation menu
407 and select one of the entry of the menu as follows.
409 !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR
411 Type `!' to edit `%#!' entry, `b' to enclose the region with `%#BEGIN' and
412 `%#END', and `l' to edit `%#LPR' entry. When you type `b', all `%#BEGIN'
413 and `%#END' are automatically erased.
416 
417 File: yatexe, Node: Completion, Next: Local dictionaries, Prev: %#notation, Up: Top
419 Completion
420 **********
422 YaTeX makes it easy to input the LaTeX commands. There are several
423 kinds of completion type, begin-type, section-type, large-type, etc...
425 * Menu:
427 * Begin-type completion::
428 * Section-type completion::
429 * Large-type completion::
430 * Maketitle-type completion::
431 * Arbitrary completion::
432 * End completion::
433 * Accent completion::
434 * Image completion::
435 * Greek letters completion::
436 * Inserting parentheses::
439 
440 File: yatexe, Node: Begin-type completion, Next: Section-type completion, Prev: Completion, Up: Completion
442 Begin-type completion
443 =====================
445 "Begin-type completion" completes commands of `\begin{env}' ...
446 `\end{env}'. All of the begin-type completions begin with this key
447 sequence.
449 `[prefix] b'
450 ... start begin-type completion
452 An additional key stroke immediately completes a frequently used LaTeX
453 `\begin{}'...`\`end'{}' environment.
455 `[prefix] b c'
456 ... `\begin{center}...\end{center}'
457 `[prefix] b d'
458 ... `\begin{document}...\end{document}'
459 `[prefix] b D'
460 ... `\begin{description}...\end{description}'
461 `[prefix] b e'
462 ... `\begin{enumerate}...\end{enumerate}'
463 `[prefix] b E'
464 ... `\begin{equation}...\end{equation}'
465 `[prefix] b i'
466 ... `\begin{itemize}...\end{itemize}'
467 `[prefix] b l'
468 ... `\begin{flushleft}...\end{flushleft}'
469 `[prefix] b m'
470 ... `\begin{minipage}...\end{minipage}'
471 `[prefix] b t'
472 ... `\begin{tabbing}...\end{tabbing}'
473 `[prefix] b T'
474 ... `\begin{tabular}...\end{tabular}'
475 `[prefix] b^T'
476 ... `\begin{table}...\end{table}'
477 `[prefix] b p'
478 ... `\begin{picture}...\end{picture}'
479 `[prefix] b q'
480 ... `\begin{quote}...\end{quote}'
481 `[prefix] b Q'
482 ... `\begin{quotation}...\end{quotation}'
483 `[prefix] b r'
484 ... `\begin{flushright}...\end{flushright}'
485 `[prefix] b v'
486 ... `\begin{verbatim}...\end{verbatim}'
487 `[prefix] b V'
488 ... `\begin{verse}...\end{verse}'
490 Any other LaTeX environments are made by completing-read of the Emacs
491 function.
493 `[prefix] b SPACE'
494 ... begin-type completion
496 The next message will show up in the minibuffer
498 Begin environment(default document):
500 by typing `[prefix] b'. Put the wishing environment with completion in
501 the minibuffer, and `\begin{env}'...\`\end{env}' will be inserted in the
502 LaTeX source text. If the environment you want to put does not exist in
503 the YaTeX completion table, it will be registered in the user completion
504 table. YaTeX automatically saves the user completion table in the user
505 dictionary file at exiting of emacs.
507 At the completion of certain environments, the expected initial entry will
508 automatically inserted such as `\item' for `itemize' environment. If you
509 don't want the entry, it can be removed by undoing.
511 If you want to enclose some paragraphs which have already been written
512 into environment, invoke the begin-type completion right after region
513 marking.
515 If you set `transient-mark-mode' to `nil' in your `~/.emacs', typing
516 `C-space' (`set-mark-command') twice turns `transient-mark-mode' on
517 temporarily. Then, type call begin-type completion to enclose text into a
518 environment.
522 
523 File: yatexe, Node: Section-type completion, Next: Large-type completion, Prev: Begin-type completion, Up: Completion
525 Section-type completion
526 =======================
528 "Section-type completion" completes section-type commands which take an
529 argument or more such as `\section{foo}'. To invoke section-type
530 completion, type
532 `[prefix] s'
533 ... section-type completion
535 then the prompt
537 (C-v for view) \???{} (default documentclass):
539 will show up in the minibuffer. Section-type LaTeX commands are completed
540 by space key, and the default value is selected when you type nothing in
541 the minibuffer.
543 Next,
545 \section{???}:
547 prompts you the argument of section-type LaTeX command. For example, the
548 following inputs
550 \???{} (default documentclass): section
551 \section{???}: Hello world.
553 will insert the string
555 \section{Hello world.}
557 in your LaTeX source. When you neglect argument such as
559 (C-v for view) \???{} (default section): vspace*
560 \vspace*{???}:
562 YaTeX puts
564 \vspace*{}
566 and move the cursor in the braces.
568 In LaTeX command, there are commands which take more than one arguments
569 such as `\addtolength{\topmargin}{8mm}'. To complete these commands,
570 invoke section-type completion with universal argument as,
572 C-u 2 [prefix] s (or ESC 2 [prefix] s)
574 and make answers in minibuffer like this.
576 (C-v for view) \???{} (default vspace*): addtolength
577 \addtolength{???}: \topmargin
578 Argument 2: 8mm
580 `\addtolength' and the first argument `\topmargin' can be typed easily by
581 completing read. Since YaTeX also learns the number of arguments of
582 section-type command and will ask that many arguments in future
583 completion, you had better tell the number of arguments to YaTeX at the
584 first completion of the new word. But you can change the number of
585 arguments by calling the completion with different universal argument
586 again.
589 Invoking section-type completion with `[Prefix] S' (Capital `S')
590 includes the region as the first argument of section-type command.
592 The section/large/maketitle type completion can work at the prompt for
593 the argument of other section-type completion. Nested LaTeX commands are
594 efficiently read with the recursive completion by typing YaTeX's
595 completion key sequence in the minibuffer.
597 * Menu:
599 * view-sectioning::
602 
603 File: yatexe, Node: view-sectioning, Prev: Section-type completion, Up: Section-type completion
605 view-sectioning
606 ---------------
608 In the minibuffer at the prompt of section-type command completion,
609 typing `C-v' shows a list of sectioning commands in source text(The line
610 with `<<--' mark is the nearest sectioning command). Then, default
611 sectioning command appears in the minibuffer. You can go up/down
612 sectioning command by typing `C-p'/`C-n', can scrolls up/down the listing
613 buffer by `C-v'/`M-v', and can hide sectioning commands under certain
614 level by 0 through 6. Type `?' in the minibuffer of sectioning prompt
615 for more information.
617 You can generate this listing buffer (`*Sectioning Lines*' buffer) by
618 typing
619 `M-x YaTeX-section-overview'
620 ... Generate *Sectioning Lines* buffer
622 from the LaTeX source buffer. In this listing buffer, typing `u' on the
623 sectioning command shifts up the corresponding sectioning command in
624 source text and `d' shifts down. After marking lines in the listing
625 buffer, typing `U' shifts up all sectioning commands in the region, and
626 `U' shifts down. Here are all the key bindings of `*Sectioning Lines*'
627 buffer.
629 `SPC'
630 ... Jump to corresponding source line
631 `.'
632 ... Display corresponding source line
633 `u'
634 ... Shift up a sectioning line
635 `d'
636 ... Shift down a sectioning line
637 `U'
638 ... Shift up sectioning lines in region
639 `D'
640 ... Shift down sectioning lines in region
641 `0...6'
642 ... Hide sectioning commands whose level is lower than n
646 
647 File: yatexe, Node: Large-type completion, Next: Maketitle-type completion, Prev: Section-type completion, Up: Completion
649 Large-type completion
650 =====================
652 "Large-type completion" inputs the font or size changing descriptions
653 such as `{\large }'. When you type
655 `[prefix] l'
656 ... large-type completion
658 the message in the minibuffer
660 {\??? } (default large):
662 prompts prompts you large-type command with completing-read. There are
663 TeX commands to change fonts or sizes, `it', `huge' and so on, in the
664 completion table.
666 Region-based completion is also invoked by calling completion after
667 region activated.
670 
671 File: yatexe, Node: Maketitle-type completion, Next: Arbitrary completion, Prev: Large-type completion, Up: Completion
673 Maketitle-type completion
674 =========================
676 We call it "maketitle-type completion" which completes commands such as
677 `\maketitle'. Take notice that maketitle-type commands take no arguments.
678 Then, typing
680 `[prefix] m'
681 ... maketitle-type completion
683 begins maketitle-completion. Above mentioned method is true for
684 maketitle-completion, and there are LaTeX commands with no arguments in
685 completion table.
688 
689 File: yatexe, Node: Arbitrary completion, Next: End completion, Prev: Maketitle-type completion, Up: Completion
691 Arbitrary completion
692 ====================
694 You can complete certain LaTeX command anywhere without typical
695 completing method as described, by typing
697 `[prefix] SPC'
698 ... arbitrary completion
700 after the initial string of LaTeX command that is preceded by `\'.
703 
704 File: yatexe, Node: End completion, Next: Accent completion, Prev: Arbitrary completion, Up: Completion
706 End completion
707 ==============
709 YaTeX automatically detects the opened environment and close it with
710 \`\end{environment}'. Though proficient YaTeX users never fail to make
711 environment with begin-type completion, some may begin an environment
712 manually. In that case, type
714 `[prefix] e'
715 ... `end' completion
717 at the end of the opened environment.
720 
721 File: yatexe, Node: Accent completion, Next: Image completion, Prev: End completion, Up: Completion
723 Accent completion
724 =================
726 When you want to write the European accent marks(like `\`{o}'),
728 `[prefix] a'
729 ... accent completion
731 shows the menu
733 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b
735 in the minibuffer. Chose one character or corresponding numeric, and you
736 will see
738 \`{}
740 in the editing buffer with the cursor positioned in braces. Type one more
741 character `o' for example, then
743 \`{o}
745 will be completed, and the cursor gets out from braces.
748 
749 File: yatexe, Node: Image completion, Next: Greek letters completion, Prev: Accent completion, Up: Completion
751 Image completion of mathematical sign
752 =====================================
754 Arrow marks, sigma mark and those signs mainly used in the TeX's math
755 environment are completed by key sequences which imitate the corresponding
756 symbols graphically. This completion only works in the math environment.
757 YaTeX automatically detects whether the cursor located in math environment
758 or not, and change the behavior of key strokes `;' and `:'.
760 By the way, we often express the leftarrow mark by `<-' for example.
761 Considering such image, you can write `\leftarrow' by typing `<-' after
762 `;' (semicolon) as a prefix. In the same way, `\longleftarrow' (`<--') is
763 completed by typing `;<--', infinity mark which is imitated by `oo' is
764 completed by typing `;oo'.
766 Here are the sample operations in YaTeX math-mode.
768 INPUT Completed LaTeX commands
769 ; < - `\leftarrow'
770 ; < - - `\longleftarrow'
771 ; < - - > `\longleftrightarrow'
772 ; o `\circ'
773 ; o o `\infty'
775 In any case, you can quit from image completion and can move to the next
776 editing operation if the LaTeX command you want is shown in the buffer.
778 `;' itself in math-environment is inserted by `;;'. Typing `TAB' in the
779 midst of image completion shows all of the LaTeX commands that start with
780 the same name as string you previously typed in. In this menu buffer,
781 press `RET' after moving the cursor (by `n', `p', `b', `f') to insert the
782 LaTeX command.
784 To know all of the completion table, type `TAB' just after `;'. And
785 here is the sample menu by `TAB' after `;<'.
787 KEY LaTeX sequence sign
788 < \leq <
789 ~
790 << \ll <<
791 <- \leftarrow <-
792 <= \Leftarrow <=
794 You can define your favorite key-vs-sequence completion table in the
795 Emacs-Lisp variable `YaTeX-math-sign-alist-private'. See also
796 `yatexmth.el' for the information of the structure of this variable.
799 
800 File: yatexe, Node: Greek letters completion, Next: Inserting parentheses, Prev: Image completion, Up: Completion
802 Greek letters completion
803 ========================
805 Math-mode of YaTeX provides another image completion, Greek letters
806 completion in the same method. After prefix `:', typing `a' makes
807 `\alpha', `b' makes `\beta' and `g' makes `\gamma' and so on. First, type
808 `:TAB' to know all the correspondence of alphabets vs. Greek letters.
810 If you will find `;' or `:' doesn't work in correct position of math
811 environment, it may be a bug of YaTeX. Please send me a bug report with
812 the configuration of your text, and avoid it temporarily by typing `;' or
813 `:' after universal-argument(`C-u') which forces `;' and `:' to work as
814 math-prefix.
817 
818 File: yatexe, Node: Inserting parentheses, Prev: Greek letters completion, Up: Completion
820 Inserting parentheses
821 =====================
823 Typing opening parenthesis, one of `(', `{ and `['', automatically
824 inserts the closing one. If a opening bracket is typed after `\', `\]' is
825 automatically inserted with computed indentation. If you stop automatic
826 insertion, type `C-q' before opening parenthesis.
829 
830 File: yatexe, Node: Local dictionaries, Next: Commenting out, Prev: Completion, Up: Top
832 Local dictionaries
833 ******************
835 Tables for completion consist of three dictionaries; `standard
836 dictionary' built in `yatex.el', `user dictionary' for your common private
837 commands, and `local dictionary' that is effective in a certain directory.
839 When you input the command unknown to YaTeX at a completion in the
840 minibuffer, YaTeX asks you with the following prompt;
842 `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard
844 In this menu, typing `u' updates your `user dictionary', `l' updates your
845 local dictionary, `n' updates only on-memory dictionary which go through
846 only current Emacs session, and `d' updates no dictionary and throws the
847 new word away.
849 If you find this switching feature meaningless and bothersome, put the
850 next expression into your `~/.emacs'
852 (setq YaTeX-nervous nil)
855 
856 File: yatexe, Node: Commenting out, Next: Cursor jump, Prev: Local dictionaries, Up: Top
858 Commenting out
859 **************
861 You may want to comment out some region.
863 `[prefix] >'
864 ... comment out region by %
865 `[prefix] <'
866 ... uncomment region
868 cause an operation to the region between point and mark.
870 `[prefix] .'
871 ... comment out current paragraph
872 `[prefix] ,'
873 ... uncomment current paragraph
875 comments or uncomments the paragraph where the cursor belongs. This
876 `paragraph' means the region marked by the function mark-paragraph, bound
877 to `ESC h' by default. It is NOT predictable what will happen when you
878 continuously comment out some paragraph many times.
880 You can also comment out an environment between `\begin' and `\end', or
881 a `\begin'-\`\end' pair themselves, by making the following key strokes on
882 the line where `\begin{}' or `\end{}' exists.
884 `[prefix] >'
885 ... comment out from \begin to \`end'
886 `[prefix] <'
887 ... uncomment from \begin to \`end'
889 comment whole the contents of environment. Moreover,
891 `[prefix] .'
892 ... comment out \begin and \`end'
893 `[prefix] ,'
894 ... uncomment \begin and \`end'
896 (un)comments out only environment declaration: `\begin{}' and `\end{}'.
897 NOTE that even if you intend to comment out some region, invoking
898 `[prefix] >' on the `\begin',`\end' line decides to work in `commenting
899 out from `\begin' to `\end'' mode.
903 
904 File: yatexe, Node: Cursor jump, Next: Changing and Deleting, Prev: Commenting out, Up: Top
906 Cursor jump
907 ***********
910 * Menu:
912 * Jump to corresponding object::
913 * Invoking image processor::
914 * Jump to main file::
915 * Jumping around the environment::
916 * Jumping to last completion position::
919 
920 File: yatexe, Node: Jump to corresponding object, Next: Invoking image processor, Prev: Cursor jump, Up: Cursor jump
922 Jump to corresponding object
923 ============================
925 Typing
927 `[prefix] g'
928 ... go to corresponding object
930 in a certain place move the cursor to the place corresponding to the LaTeX
931 command of last place. YaTeX recognize the followings as pairs that have
932 relation each other.
934 * `\begin{}' <-> `\end{}'
935 * `%#BEGIN' <-> `%#END'
936 * On the image-including line -> corresponding viewer or drawing tool
937 * `\label{}' <-> `\ref{}'
938 * `\include(\input)' -> included file
939 * `\bibitem{}' <-> `\cite{}'
941 On a `\begin',`\end' line, typing `[prefix] g' moves the cursor to the
942 corresponding `\end',`\begin' line, if its partner really exists. The
943 behavior on the line `%#BEGIN' and `%#END' are the same. Note that if the
944 correspondent of `label/ref' or `cite/bibitem' exists in another file,
945 that file have to be opened to make a round trip between references by
946 `[prefix] g'.
948 If you type `[prefix] g' on the line of `\include{chap1}', typically in
949 the main text, YaTeX switches buffer to `chap1.tex'.
951 `[prefix] 4 g'
952 ... go to corresponding object in other window
954 do the same job as `[prefix] g' except it's done in other window. Note
955 that this function doesn't work on `begin/end', `%#BEGIN/%#END' pairs
956 because it is meaningless.
959 
960 File: yatexe, Node: Invoking image processor, Next: Jump to main file, Prev: Jump to corresponding object, Up: Cursor jump
962 Invoking image processor
963 ========================
966 `image-including line' described above means such lines as
967 `\epsfile{file=foo.ps}'. If you type `[prefix] g' on that line, YaTeX
968 automatically searches source of `foo.ps' and invokes image viewer or
969 drawing tool correspoinding to it. For example; if you draw an image
970 foo.obj with Tgif and enclose its product named foo.eps by `\epsfile'
971 command. Typing `[prefix] g' on `\epsfile' line make YaTeX invoke `tgif
972 foo.obj'. How a processor is choosen is as follows.
974 1. If there is an expression matching with one of the pattern defined in
975 `YaTeX-processed-file-regexp-alist', extract file name from regexp
976 group surrounded by \\(\\). (Which group corresponds is written in
977 the cdr part of each list.) If no matches were found, do nothing.
978 2. If there is a pattern as `%PROCESSOR' which is defined in the
979 variable `YaTeX-file-processor-alist', call that processor giving the
980 file name with corresponding extension.
981 3. If not, check the existence of each file which is supplied the
982 extension in the cdr part of each list of
983 `YaTeX-file-processor-alist'. If any, call the corresponding image
984 viewer or drawing tool.
987 
988 File: yatexe, Node: Jump to main file, Next: Jumping around the environment, Prev: Invoking image processor, Up: Cursor jump
990 Jump to main file
991 =================
993 Typing
995 `[prefix] ^'
996 ... visit main file
997 `[prefix] 4^'
998 ... visit main file in other buffer
1000 in a sub text switch the buffer to the main text specified by `%#!'
1001 notation.
1005 File: yatexe, Node: Jumping around the environment, Next: Jumping to last completion position, Prev: Jump to main file, Up: Cursor jump
1007 Jumping around the environment
1008 ==============================
1010 And these are the functions which work on the current LaTeX environment:
1012 `M-C-a'
1013 ... beginning of environment
1014 `M-C-e'
1015 ... `end' of environment
1016 `M-C-@'
1017 ... mark environment
1021 File: yatexe, Node: Jumping to last completion position, Prev: Jumping around the environment, Up: Cursor jump
1023 Jumping to last completion position
1024 ===================================
1026 YaTeX always memorize the position of completion into register `3'. So
1027 every time you make a trip to any other part of text other than you are
1028 writing, you can return to the editing paragraph by calling
1029 register-to-point with argument YaTeX-current-position-register, which is
1030 achieved by typing `C-x j 3'(by default).
1034 File: yatexe, Node: Changing and Deleting, Next: Filling, Prev: Cursor jump, Up: Top
1036 Changing and Deleting
1037 *********************
1039 These functions are for change or deletion of LaTeX commands already
1040 entered.
1042 `[prefix] c'
1043 ... change LaTeX command
1044 `[prefix] k'
1045 ... kill LaTeX command
1047 * Menu:
1049 * Changing LaTeX commands::
1050 * Killing LaTeX commands::
1054 File: yatexe, Node: Changing LaTeX commands, Next: Killing LaTeX commands, Prev: Changing and Deleting, Up: Changing and Deleting
1056 Changing LaTeX commands
1057 =======================
1059 `[prefix] c' can change the various (La)TeX commands. This can change the
1060 followings.
1061 * Environment names
1062 * Section-type commands
1063 * Argument of section-type commands
1064 * Optional parameters (enclosed by []) of section-type commands
1065 * Font/size designators
1066 * Math-mode's maketitle-type commands that can be inputted with image
1067 completion
1069 Typing `[prefix] c' on one of above objects you want to change brings a
1070 suitable reading function sometimes with completion. Note: If you want to
1071 change the argument of section-type command that contains other LaTeX
1072 commands, type `[prefix] c' either of surrounding braces of the argument
1073 in order to make YaTeX ignore the internal LaTeX sequences as an object of
1074 changing. Anyway, it is very difficult to know which argument position
1075 the cursor belongs because the LaTeX commands can be nested and braces can
1076 freely emerge. So keep it mind to put the cursor on a brace when you are
1077 thinking of changing a complicated argument.
1081 File: yatexe, Node: Killing LaTeX commands, Prev: Changing LaTeX commands, Up: Changing and Deleting
1083 Killing LaTeX commands
1084 ======================
1086 `[prefix] k' kills the LaTeX commands sometimes with their arguments.
1087 Following table illustrates the correspondence of the invoking position
1088 and what is killed.
1090 [Invoking position] [action]
1091 \begin, \end line kill \begin,\end pairs
1092 %#BEGIN, %#END line kill %#BEGIN,%#END pairs
1093 on a Section-type command kill section-type command
1094 on a parenthesis kill parentheses
1096 Note that when killing `\begin, \end' or `%#BEGIN, %#END' pair, the lines
1097 `\begin, \end' or `%#BEGIN, %#END' exist will be killed entirely. So take
1098 care not to create any line that contains more than one `\begin' or so.
1100 While all operations above are to kill `containers' which surround some
1101 text, universal argument (`C-u') for these commands kills not only
1102 `containers' but also `contents' of them. See below as a sample.
1104 Original text: [prefix] k C-u [prefix] k
1105 Main \footnote{note} here. Main note here. Main here.
1106 ~(cursor)
1110 File: yatexe, Node: Filling, Next: Updation of includeonly, Prev: Changing and Deleting, Up: Top
1112 Filling
1113 *******
1116 Filling an item
1117 ===============
1119 To fill a term (descriptive sentences) of `\item', type
1121 `M-q'
1122 ... fill item
1124 on that item.
1126 YaTeX uses the value of the variable `YaTeX-item-regexp' as the regular
1127 expression to search item header in itemize environment. If you make a
1128 newcommand to itemize terms(e.g. `\underlineitem'), put
1130 (setq YaTeX-item-regexp
1131 "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)")
1133 in your `~/.emacs'. If you are not familiar with regular expression for
1134 Emacs-Lisp, name a newcommand for `itemize' beginning with `\item' such as
1135 `\itembf', not `\bfitem'.
1137 This function reformats the `\item' into `hang-indented' style. For
1138 example:
1140 itemize, enumerate environment:
1142 >\item[foo] `foo' is the typical word for describing an
1143 > arbitrarily written....
1144 description environment:
1145 > \item[bar] When the word `for' is used as an arbitrarily
1146 > word, `bar' is bound to follow it.
1148 Note that the indent depth of an `\item' word and its descriptive
1149 paragraph are the same in latter case. If you want to use different
1150 depth, invoke fill-paragraph at the beginning of non-whitespace
1151 character(see below).
1154 Filling paragraph
1155 =================
1157 Fill-paragraph is little bit adapted for LaTeX sources. It retains from
1158 filling in certain environments where formatting leads to a disaster such
1159 as verbatim, tabular, or so. And it protects `\verb' expressions from
1160 being folded (The variable `YaTeX-verb-regexp' controls this). Besides,
1161 putting cursor on the first occurrence of non-whitespace character on a
1162 line changes the fill-prefix temporarily to the depth of the line.
1166 File: yatexe, Node: Updation of includeonly, Next: What column, Prev: Filling, Up: Top
1168 Updation of `\includeonly'
1169 **************************
1171 When you edit splitting source texts, the notation
1173 \includeonly{CurrentEditingFileName}
1175 in the main file reduces the time of typesetting. If you want to hack
1176 other file a little however, you have to rewrite it to
1178 \includeonly{OtherFileNameYouWantToFix}
1180 in the main file. YaTeX automatically detects that the current edited
1181 text is not in includeonly list and prompts you
1183 A)dd R)eplace %)comment?
1185 in the minibuffer. Type `a' if you want to add the current file name to
1186 `\includeonly' list, `r' to replace \`includeonly' list with the current
1187 file, and type `%' to comment out the `\includeonly' line.
1191 File: yatexe, Node: What column, Next: Intelligent newline, Prev: Updation of includeonly, Up: Top
1193 What column?
1194 ************
1196 We are often get tired of finding the corresponding column in large
1197 tabulars. For example,
1199 \begin{tabular}{|c|c|c|c|c|c|c|c|}\hline
1200 Name&Position&Post No.&Addr.&Phone No.&FAX No.&
1201 Home Addr.&Home Phone\\ \hline
1202 Thunder Bird & 6 & 223 & LA & xxx-yyy &
1203 zzz-www & Japan & 9876-54321 \\
1204 & 2 & \multicolumn{2}{c|}{Unknown}
1205 &&&(???)
1206 \\ \hline
1207 \end{tabular}
1209 Suppose you have the cursor located at `(???)' mark, can you tell which
1210 column it is belonging at once? Maybe no. In such case, type
1212 `[prefix] &'
1213 ... What column
1215 in that position. YaTeX tells you the column header of the current field.
1216 Since YaTeX assumes the first line of tabular environment as a row of
1217 column headers, you can create a row of virtual column headers by putting
1218 them in the first line and commenting that line with `%'.
1222 File: yatexe, Node: Intelligent newline, Next: Usepackage checker, Prev: What column, Up: Top
1224 Intelligent newline
1225 *******************
1227 At the end of begin-type completion of tabular[*], array, itemize,
1228 enumerate or tabbing environment, or typing
1230 `ESC RET'
1231 ... Intelligent newline
1233 in these environments inserts the contents corresponding to the current
1234 environment in the next line. (At the begin-type completion, this
1235 contents can be removed by `undo'.) In `tabular' environment, for
1236 example, `ESC RET' inserts the certain number of `&' and trailing `\\',
1237 and `\hline' if other `\hline' is found in backward. Here are the list of
1238 contents vs. environments.
1240 * `tabular', `tabular*', `array'
1242 Corresponding number of `&' and `\\'. And `\hline' if
1243 needed.
1245 * `tabbing'
1247 The same number of `\>' as `\=' in the first line.
1249 * `itemize', `enumerate', `description', `list'
1251 `\item' or `item[]'.
1253 Note that since this function works seeing the contents of the first
1254 line, please call this after the second line if possible.
1256 If you want to apply these trick to other environments, `foo'
1257 environment for example, define the function named
1258 `YaTeX-intelligent-newline-foo' to insert corresponding contents. That
1259 function will be called at the beginning of the next line after the
1260 newline is inserted to the current line. Since the function
1261 `YaTeX-indent-line' is designed to indent the current line properly,
1262 calling this function before your code to insert certain contents must be
1263 useful. See the definition of the function
1264 `YaTeX-intelligent-newline-itemize' as an example.
1268 File: yatexe, Node: Usepackage checker, Next: Online help, Prev: Intelligent newline, Up: Top
1270 Usepackage checker
1271 ******************
1273 When you input begint-type, section-type, maketitle-type macros with
1274 completion, and it requires some LaTeX2e package, YaTeX examines the
1275 existence of correct `\usepackage'. If not, YaTeX inserts the
1276 `\usepackage{}' declaration corresponding to input macro.
1278 To activate the package completion for your favarite package, set the
1279 variable `YaTeX-package-alist-private' correctly. Please refere the value
1280 of `YaTeX-package-alist-default' as an example.
1284 File: yatexe, Node: Online help, Next: Browsing file hierarchy, Prev: Usepackage checker, Up: Top
1286 Online help
1287 ***********
1289 YaTeX provides you the online help with popular LaTeX commands.
1291 Here are the key strokes for the online help.
1293 `[prefix] ?'
1294 ... Online help
1295 `[prefix] /'
1296 ... Online apropos
1299 Online help
1300 ===========
1302 `Online help' shows the documentation for the popular LaTeX
1303 commands(defaults to the commands on the cursor) in the next buffer.
1304 There are two help file, `global help' and `private help'. The former
1305 file contains the descriptions on the standard LaTeX command and is
1306 specified its name by variable `YaTeX-help-file'. Usually, the global
1307 help file should be located in public space (`$EMACSEXECPATH' by default)
1308 and should be world writable so that anyone can update it to enrich its
1309 contents. The latter file contains descriptions on non-standard or
1310 personal command definitions and is specified by
1311 `YaTeX-help-file-private'. This file should be put into private
1312 directory.
1315 Online apropos
1316 ==============
1318 `Online apropos' is an equivalent of GNU Emacs's apropos. It shows all
1319 the documentations that contains the keyword entered by the user.
1322 When no descriptions are found...
1323 =================================
1325 If there is no description on a command in help files, YaTeX requires
1326 you to write a description on that command. If you are willing to do,
1327 determine which help file to add and write the description on it referring
1328 your manual of (La)TeX. Please send me your additional descriptions if
1329 you describe the help on some standard commands. I might want to include
1330 it in the next distribution.
1334 File: yatexe, Node: Browsing file hierarchy, Next: Cooperation with other packages, Prev: Online help, Up: Top
1336 Browsing file hierarchy
1337 ***********************
1339 When you are editing multi-file source, typing
1341 `[prefix] d'
1342 ... browse file hierarchy
1344 asks you the parent-most file (which may be defaulted) and displays the
1345 documentation hierarchy in the next window. In this buffer, the following
1346 commands are available.
1348 `n'
1349 ... move to the next line and show its contents
1350 `p'
1351 ... move to the previous line and show its contents
1352 `N'
1353 ... move to the next file in the same inclusion level
1354 `P'
1355 ... move to the previous file in the same inclusion level
1356 `j'
1357 ... move to the next line
1358 `k'
1359 ... move to the previous line
1360 `u'
1361 ... move to the parent file
1362 `.'
1363 ... show the current files contents in the next window
1364 `SPC'
1365 ... scroll up the current file window
1366 `DEL, b'
1367 ... scroll down the current file window
1368 `<'
1369 ... show the beginning of the current file
1370 `>'
1371 ... show the end of the current file
1372 `>'
1373 ... return to the previous postion after `<' or `>'
1374 `RET, g'
1375 ... open the current file in the next window
1376 `mouse-2'
1377 ... same as RET(available only with window system)
1378 `o'
1379 ... other window
1380 `1'
1381 ... delete other windows
1382 `-'
1383 ... shrink hierarchy buffer window
1384 `+'
1385 ... enlarge hierarchy buffer window
1386 `?'
1387 ... describe mode
1388 `q'
1389 ... quit
1391 Note that operations on the file contents in the next window do not work
1392 correctly when you close the corresponding file.
1396 File: yatexe, Node: Cooperation with other packages, Next: Customizations, Prev: Browsing file hierarchy, Up: Top
1398 Cooperation with other packages
1399 *******************************
1401 YaTeX works better with other brilliant packages.
1404 gmhist
1405 ======
1407 When you are loading `gmhist.el' and `gmhist-mh.el', you can use
1408 independent command history list at the prompt of preview command
1409 (`[prefix] tp') and print command (`[prefix] tl'). On each prompt, you
1410 can enter the previous command line string repeatedly by typing `M-p'.
1413 min-out
1414 =======
1416 `min-out', the outline minor mode, can be used in yatex-mode buffers.
1417 If you want to use it with YaTeX, please refer the file `yatexm-o.el' as
1418 an example.
1422 File: yatexe, Node: Customizations, Next: Etcetera, Prev: Cooperation with other packages, Up: Top
1424 Customizations
1425 **************
1427 You can customize YaTeX by setting Emacs-Lisp variables and by making
1428 add-in functions.
1430 * Menu:
1432 * Lisp variables::
1433 * Add-in functions::
1434 * Add-in generator::
1438 File: yatexe, Node: Lisp variables, Next: Add-in functions, Prev: Customizations, Up: Customizations
1440 Lisp variables
1441 ==============
1443 You can change the key assignments or make completion more comfortable
1444 by setting the values of various variables which control the movement of
1445 yatex-mode.
1447 For example, if you want to change the prefix key stroke from `C-c' to
1448 any other sequence, set YaTeX-prefix to whatever you want to use. If you
1449 don't want to use the key sequence `C-c letter' which is assumed to be the
1450 user reserved sequence in Emacs world, set `YaTeX-inhibit-prefix-letter'
1451 to `t', and all of the default key bind of `C-c letter' will turn to the
1452 corresponding `C-c C-letter' (but the region based completions that is
1453 invoked with `C-c Capital-letter' remain valid, if you want to disable
1454 those bindings, set that variable to 1 instead of `t').
1456 * Menu:
1458 * All customizable variables::
1459 * Sample definitions::
1460 * Hook variables::
1461 * Hook file::
1465 File: yatexe, Node: All customizable variables, Next: Sample definitions, Prev: Lisp variables, Up: Lisp variables
1467 All customizable variables
1468 --------------------------
1470 Here are the customizable variables of yatex-mode. Each value setq-ed
1471 in `~/.emacs' is preferred and that of defined in `yatex.el' is neglected.
1472 Parenthesized contents stands for the default value. When you are to
1473 change some of these variables, see more detailed documentation of the
1474 variable by `M-x describe-variable'.
1476 -- Variable: YaTeX-japan
1477 Set this nil to produce all messages in English (`Depends on Japanese
1478 feature of Emacs')
1480 -- Variable: YaTeX-kanji-code
1481 Default buffer-file-coding-system for YaTeX modes' buffer. Set this
1482 0 to no language conversion. Nil to preserve original
1483 coding-system. 1=Shift JIS, 2=JIS, 3=EUC, 4=UTF-8 (`1 or 2')
1485 -- Variable: YaTeX-prefix
1486 Prefix key stroke (`C-c')
1488 -- Variable: YaTeX-inhibit-prefix-letter
1489 Change key stroke from `C-c letter' to `C-c C-letter' (`nil')
1491 -- Variable: YaTeX-fill-prefix
1492 Fill-prefix used in yatex-mode (`nil')
1494 -- Variable: YaTeX-user-completion-table
1495 Name of user dictionary where learned completion table will be
1496 stored. (`"~/.yatexrc"')
1498 -- Variable: tex-command
1499 LaTeX typesetter command (`"latex"')
1501 -- Variable: dvi2-command
1502 Preview command (`"xdvi -geo +0+0 -s 4"')
1504 -- Variable: dviprint-command-format
1505 Command format to print dvi file (`"dvi2ps %f %t %s | lpr"')
1507 -- Variable: dviprint-from-format
1508 Start page format of above %f. %b will turn to start page (`"-f %b"')
1510 -- Variable: dviprint-to-format
1511 End page format of above %t. %e will turn to `end' page (`"-t %e"')
1513 -- Variable: makeindex-command
1514 Default makeindex command (`"makeindex"' (`"makeind"' on MS-DOS))
1516 -- Variable: YaTeX-dvipdf-command
1517 Default command name to convert .dvi to PDF (`"dvipdfmx"')
1519 -- Variable: YaTeX-on-the-fly-preview-interval
1520 Interval time in seconds of idle to trigger on-the-fly preview of
1521 environment by `[prefix] t e'(0.9). `Nil' disables on-the-fly
1522 preview.
1524 -- Variable: YaTeX-on-the-fly-math-preview-engine
1525 Function symbol to use on-the-fly preview of MATH environment started
1526 by `[prefix] t e' (`'YaTeX-typeset-environment-by-lmp' which calls
1527 latex-math-preview-expression function if latex-math-preview is
1528 available, otherwise `'YaTeX-typeset-environment-by-builtin' which
1529 alls built-in function).
1531 `Nil' disables on-the-fly preview.
1533 -- Variable: YaTeX-cmd-gimp
1534 Command name of GIMP (code{"gimp"})
1535 -- Variable: YaTeX-cmd-tgif
1536 Command name of tgif (code{"tgif"})
1537 -- Variable: YaTeX-cmd-inkscape
1538 Command name of Inkscape (code{"inkscape"})
1539 -- Variable: YaTeX-cmd-dia
1540 Command name of Dia (code{"dia"})
1541 -- Variable: YaTeX-cmd-ooo
1542 Command name of OpenOffice.org/LibreOffice (code{"soffice"})
1543 -- Variable: YaTeX-cmd-gs
1544 Command name of Ghostscript (code{"gs"})
1545 -- Variable: YaTeX-cmd-dvips
1546 Command name of dvips (code{"dvips"})
1547 -- Variable: YaTeX-cmd-displayline
1548 Command name of displayline
1549 (code{"/Applications/Skim.app/Contents/SharedSupport/displayline"})
1550 -- Variable: YaTeX-cmd-edit-ps
1551 Command name for editing PostScript files(Value of
1552 code{"YaTeX-cmd-gimp"})
1553 -- Variable: YaTeX-cmd-edit-pdf
1554 Command name for editing PDF files(Value of code{"YaTeX-cmd-ooo"})
1555 -- Variable: YaTeX-cmd-edit-ai
1556 Command name for editing `.ai' files(Value of
1557 code{"YaTeX-cmd-inkscape"})
1558 -- Variable: YaTeX-cmd-edit-svg
1559 Command name for editing SVG files(Value of
1560 code{"YaTeX-cmd-inkscape"})
1561 -- Variable: YaTeX-cmd-edit-images
1562 Command name for editing image files(Value of code{"YaTeX-cmd-gimp"})
1564 -- Variable: YaTeX-need-nonstop
1565 Put `\nonstopmode{}' or not (`nil')
1567 -- Variable: latex-warning-regexp
1568 Regular expression of warning message latex command puts out
1569 (`"line.* [0-9]*"')
1571 -- Variable: latex-error-regexp
1572 Regular expression of error message (`"l\\.[1-9][0-9]*"')
1574 -- Variable: latex-dos-emergency-message
1575 Message latex command running on DOS puts at abort (`"Emergency
1576 stop"')
1578 -- Variable: YaTeX-item-regexp
1579 Regular expression of item command (`"\\\\item"')
1581 -- Variable: YaTeX-verb-regexp
1582 Regexp of verb family. Omit \\\\. (`"verb\\*?\\|path"')
1584 -- Variable: YaTeX-nervous
1585 T for using local dictionary (`t')
1587 -- Variable: YaTeX-sectioning-regexp
1588 Regexp of LaTeX sectioning command
1589 (`"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"')
1591 -- Variable: YaTeX-fill-inhibit-environments
1592 Inhibit fill in these environments (`'("tabular" "tabular*" "array"
1593 "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath"
1594 "verbatim" "verbatim*")')
1596 -- Variable: YaTeX-uncomment-once
1597 T for deleting all preceding `%' (`nil')
1599 -- Variable: YaTeX-close-paren-always
1600 T for always close all parenthesis automatically, `nil' for only eol
1601 (`t')
1603 -- Variable: YaTeX-auto-math-mode
1604 Switch math-mode automatically (`t')
1606 -- Variable: YaTeX-math-key-list-private
1607 User defined alist, math-mode-prefix vs completion alist used in
1608 image completion (`nil'). See `yatexmth.el' for the information
1609 about how to define a completion alist.
1611 -- Variable: YaTeX-default-pop-window-height
1612 Initial height of typesetting buffer when one-window. Number for the
1613 lines of the buffer, numerical string for the percentage of the
1614 screen-height. `nil' for half height (10)
1616 -- Variable: YaTeX-help-file
1617 Global online help file name
1618 (`$doc-directory/../../site-lisp/YATEXHLP.eng')
1620 -- Variable: YaTeX-help-file-private
1621 Private online help file name (`"~/YATEXHLP.eng"')
1623 -- Variable: YaTeX-no-begend-shortcut
1624 Disable [prefix] b ?? shortcut (`nil)'
1626 -- Variable: YaTeX-hilit-pattern-adjustment-private
1627 List of the list that contain the regular expression and the symbol
1628 of logical meaning of the string that matches the pattern. See also
1629 the value from `(assq 'yatex-mode hilit-patterns-alist)' and the
1630 value of `YaTeX-hilit-pattern-adjustment-default' (and even the
1631 document of hilit19.el).
1633 -- Variable: YaTeX-sectioning-level
1634 Alist of LaTeX's sectioning command vs its height.
1636 -- Variable: YaTeX-hierarchy-ignore-heading-regexp
1637 `YaTeX-display-hierarchy' searches for sectioning command first, and
1638 comment line secondary as a file headings. In latter case, ignore lines
1639 that match with regular expression of this variable. Default value of
1640 this variable is RCS header expressions and mode specifying line `-*- xxxx
1641 -*'.
1643 -- Variable: YaTeX-skip-default-reader
1644 Non-nil for this variable skips the default argument reader of
1645 section-type command when add-in function for it is not defined
1646 (`nil')
1648 -- Variable: YaTeX-create-file-prefix-g
1649 When typing `prefix g' on the `\include' line, open the target file
1650 even if the file doesn't exist (`nil')
1652 -- Variable: YaTeX-simple-messages
1653 Simplyfy messages of various completions (`nil')
1655 -- Variable: YaTeX-hilit-sectioning-face
1656 When hilit19 and yatex19 is active, YaTeX colors the sectioning
1657 commands. This variable specifies the foreground and background
1658 color of `\part' macro. The default value is `'(yellow/dodgerblue
1659 yellow/slateblue)'. The first element of this list is for the screen
1660 when `hilit-background-mode' is `'light', and the second element is
1661 for `'dark'. You should specify both color as `forecolor/backcolor'.
1663 -- Variable: YaTeX-hilit-sectioning-attenuation-rate
1664 When color mode, this variable specifies how much attenuate the color
1665 density of `\subparagraph' compared with that of `\chapter' (`'(15
1666 40)') See also `YaTeX-hilit-sectioning-face'.
1668 -- Variable: YaTeX-use-AMS-LaTeX
1669 If you use AMS-LaTeX, set to `t' (`nil')
1671 -- Variable: YaTeX-use-LaTeX2e
1672 If you use LaTeX2e, set to `t' (`t')
1674 -- Variable: YaTeX-template-file
1675 File name which is automatically inserted at creation
1676 (`~/work/template.tex')
1678 -- Variable: YaTeX-search-file-from-top-directory
1679 Non-nil means to search input-files from the directory where main
1680 file exists (`t')
1682 -- Variable: YaTeX-use-font-lock
1683 Use font-lock to fontify buffer or not (`(featurep 'font-lock)'
1685 -- Variable: YaTeX-use-hilit19
1686 Use hilit19 to highlight buffer or not (`(featurep 'hilit19)'
1688 -- Variable: YaTeX-use-italic-bold
1689 YaTeX tries to search italic, bold fontsets or not (`t' if Emacs-20
1690 or later). This variable is effective only when font-lock is used.
1691 (`(featurep 'hilit19)'
1693 -- Variable: YaTeX-singlecmd-suffix
1694 Suffix which is always inserted after maketitle-type macros. `"{}"'
1695 is recommended.
1697 -- Variable: YaTeX-package-alist-private
1698 Alist of LaTeX2e-package name vs. lists of macros in it. Set this
1699 alist properly and YaTeX automatically check the declaratiion of
1700 `usepackage' for corresponding macro, when you input that macro with
1701 completion. If required `usepackage' is not found, YaTeX also
1702 automatically inserts `\usepackage'. Alist is as follows;
1703 '((PackageName1 (completionType ListOfMacro) (completionType
1704 ListOfMacro)) (PackageName2 (completionType ListOfMacro)
1705 (completionType ListOfMacro...))....) completionType is one of `env,
1706 section, maketitle'. Consult the value of
1707 `YaTeX-package-alist-default' as an example.
1709 -- Variable: YaTeX-tabular-indentation
1710 At indentation by `C-i' in tabular or array environment, YaTeX put
1711 the additional spaces to the normail indentation depth. The number
1712 of additional spaces is the product of YaTeX-tabular-indentation and
1713 the number of column position in tabular.
1715 -- Variable: YaTeX-noindent-env-regexp
1716 Regexp of environment names that should begin with no indentation.
1717 All verbatime-like environment name should match with.
1719 -- Variable: YaTeX-ref-default-label-string
1720 Default \\ref time string format. This format is like strftime(3)
1721 but allowed conversion char are as follows; %y -> Last 2 digit of
1722 year, %b -> Month name, %m -> Monthe number(1-12), %d -> Day, %H ->
1723 Hour, %M -> Minute, %S -> Second, %qx -> alphabetical-decimal
1724 conversion of yymmdd. %qX -> alphabetical-decimal conversion of
1725 HHMMSS. Beware defualt label-string should be always unique. So
1726 this format string should have both time part (%H+%M+%S or %qX) and
1727 date part (%y+(%b|%m)+%d or %qx).
1729 -- Variable: YaTeX-ref-generate-label-function
1730 Function to generate default label string for unnamed \\label{}s.
1731 The function pointed to this value should take two arguments. First
1732 argument is LaTeX macro's name, second is macro's argument. Here is
1733 an example for using this value.
1734 (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label)
1735 (defun my-yatex-generate-label (command value)
1736 (and (string= command "caption")
1737 (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t)
1738 (setq command (match-string 1)))
1739 (let ((alist '(("chapter" . "chap")
1740 ("section" . "sec")
1741 ("subsection" . "subsec")
1742 ("figure" . "fig")
1743 ("table" . "tbl"))))
1744 (if (setq command (cdr (assoc command alist)))
1745 (concat command ":" value)
1746 (YaTeX::ref-generate-label nil nil))))
1751 File: yatexe, Node: Sample definitions, Next: Hook variables, Prev: All customizable variables, Up: Lisp variables
1753 Sample definitions
1754 ------------------
1756 For instance, to change the prefix key stroke to `ESC', and name of the
1757 user dictionary `~/src/emacs/yatexrc', and set `fill-prefix' to single TAB
1758 character, add the following `setq' to `~/.emacs'.
1760 (setq YaTeX-prefix "\e"
1761 YaTeX-user-completion-table "~/src/emacs/yatexrc"
1762 YaTeX-fill-prefix " ")
1766 File: yatexe, Node: Hook variables, Next: Hook file, Prev: Sample definitions, Up: Lisp variables
1768 Hook variables
1769 --------------
1771 More customizations will be done by the hook-function defined in
1772 hook-variable `yatex-mode-hook'. This is useful to define a shortcut key
1773 sequence to enter some environments other than `document' and `enumerate'
1774 etc. The following statement defines `[prefix] ba' to enter
1775 `\begin{abstract}' ... `=end{abstract}' immediately.
1777 (setq yatex-mode-hook
1778 '(lambda() (YaTeX-define-begend-key "ba" "abstract")))
1780 You should use functions `YaTeX-define-key', or
1781 `YaTeX-define-begend-key' to define all the key sequences of yatex-mode.
1785 File: yatexe, Node: Hook file, Prev: Hook variables, Up: Lisp variables
1787 Hook file
1788 ---------
1790 You can stuff all of YaTeX related expressions into a file named
1791 `yatexhks.el' if you have a lot of codes. YaTeX automatically load this
1792 file at the initialization of itself. Using `yatexhks.el' makes
1793 `yatex-mode-load-hook' unnecessary.
1797 File: yatexe, Node: Add-in functions, Next: Add-in generator, Prev: Lisp variables, Up: Customizations
1799 Add-in functions
1800 ================
1802 You can easily define a function to input detailed arguments with
1803 completion according to LaTeX environments or commands.
1806 What is add-in functions?
1807 -------------------------
1809 When you input `tabular' environment, don't you think "I want YaTeX to
1810 complete its argument toward my favorite one such as `{|c|c|c|}'..."?
1811 Yes, you can define the function to complete arguments for any environment
1812 and any LaTeX commands.
1815 Procedure
1816 ---------
1818 Here is the procedure to define add-in functions.
1819 1. Define the function
1820 2. Put the function into `yatexhks.el'
1822 * Menu:
1824 * How the add-in function works::
1825 * How the function is called::
1826 * Useful functions for creating add-in::
1827 * Contribution::
1831 File: yatexe, Node: How the add-in function works, Next: How the function is called, Prev: Add-in functions, Up: Add-in functions
1833 How the add-in function works
1834 -----------------------------
1836 There are three types of add-in.
1838 1. Option add-in
1839 2. argument add-in
1840 3. enclosing add-in
1842 "Option add-in" returns the LaTeX's optional parameters such as optional
1843 strings after `\begin{ENV}', optional strings between a section-type
1844 command and its first argument, and optional strings just after type
1845 maketitle-type command. The following illustrates the name of add-in
1846 functions, where underlined strings are generated by add-in functions.
1848 \begin{table}[ht] (Function name: YaTeX:table)
1849 ~~~~
1850 \put(100,200){} (Function name: YaTeX:put)
1851 ~~~~~~~~~
1852 \sum_{i=0}^{n} (Function name: YaTeX:sum)
1853 ~~~~~~~~~~
1855 Obviously, the function name is decided by concatenating the prefix
1856 `YaTeX:' and LaTeX command's name.
1858 Another add-in type is "argument add-in", which completes arguments for
1859 section-type commands.
1861 \newcommand{\foo}{bar} (Function name: YaTeX::newcommand)
1862 ~~~~ ~~~
1864 When the section-type command is inputted, the function named by
1865 concatenating `YaTeX::' and section-type command, is called automatically
1866 with an integer argument which indicates which argument of section-type
1867 command is being read. Thus the add-in should determine the job referring
1868 the value of its argument.
1870 "enclosing add-in" is for modifying and/or checking the region that will
1871 be enclosed by section-type commands via `[prefix] S'. An enclosing
1872 add-in function will be called with two arguments, beginning of the
1873 enclosed region and end of the region. Suppose you want to enclose the
1874 existing text `(a+b)/c' by `\frac{}'.
1876 a/c
1877 | |
1878 A B
1880 You do set-mark-command at point A and then move to point B. Typing
1881 `[prefix] S' and input `frac' enclose the region like this;
1883 \frac{a/c}
1885 Normally, the expression `a/c' is translated to `\frac{a}{c}'. An
1886 enclosing add-in is useful for modifying `/' to `}{'.
1888 * Menu:
1890 * Defining option-add-in::
1891 * Defining argument-add-in::
1892 * Defining enclosing-add-in::
1896 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
1898 Defining `option add-in'
1899 ........................
1901 If you want `{|c|c|c|}' for all `tabular' environment,
1903 (defun YaTeX:tabular ()
1904 "{|c|c|c|}")
1906 is enough. If you want more complicated format, define as below.
1908 (defun YaTeX:tabular ()
1909 "{@{\\vrule width 1pt\\ }|||@{\\ \\vrule width 1pt}}")
1911 Note that the character `\' must be described as `\\' in Emacs-Lisp. The
1912 next example reads the tabular format from keyboard.
1913 (defun YaTeX:tabular ()
1914 (concat "{" (read-string "Rule: ") "}"))
1918 File: yatexe, Node: Defining argument-add-in, Next: Defining enclosing-add-in, Prev: Defining option-add-in, Up: How the add-in function works
1920 Defining `argument add-in'
1921 ..........................
1923 This section describes how to define the add-in function for
1924 `\newcommand'.
1926 The first argument of `\newcommand' begins always with `\'. The second
1927 argument is usually so complex that we can not edit them in the
1928 minibuffer. Here is the created function considering this.
1930 (defun YaTeX::newcommand (n) ;n is argument position
1931 (cond
1932 ((= n 1) ;1st argument is macro name
1933 (read-string "Command: " "\\")) ;initial input `\'
1934 ((= n 2) "") ;do nothing when reading arg#2
1935 (t nil)))
1937 Note that when the `argument add-in' function return `nil', normal
1938 argument reader will be called.
1942 File: yatexe, Node: Defining enclosing-add-in, Prev: Defining argument-add-in, Up: How the add-in function works
1944 Defining `enclosing add-in'
1945 ...........................
1947 This section describes how to define the add-in function for text
1948 enclosed by `\frac{}'.
1950 When enclosing the text `5/3' by `\frac{}', you might want to replace
1951 `/' with `}{'. Enclosing function `YaTeX::frac-region' is called with two
1952 arguments, beginning of enclosed text and end of enclosed text. The
1953 function is expected to replace `/' with `}{'. Here is an example
1954 expression.
1956 (defun YaTeX::frac-region (beg end)
1957 (catch 'done
1958 (while (search-forward "/" end t)
1959 (goto-char (match-beginning 0))
1960 (if (y-or-n-p "Replace this slash(/) with `}{'")
1961 (throw 'done (replace-match "}{")))
1962 (goto-char (match-end 0)))))
1966 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
1968 How the function is called
1969 --------------------------
1971 YaTeX calls the add-in functions for specified begin-type, section-type,
1972 and maketitle-type command, if any. `Option add-in' functions for
1973 begin-type are called when `\begin{ENV}' has been inserted, functions for
1974 section-type are called just before input of the first argument, and
1975 functions for maketitle-type is called after maketitle-type command has
1976 been inserted. `Argument add-in' functions are called at each entry of
1977 arguments for section-type commands.
1981 File: yatexe, Node: Useful functions for creating add-in, Next: Contribution, Prev: How the function is called, Up: Add-in functions
1983 Useful functions for creating add-in
1984 ------------------------------------
1986 Many add-in functions for typical LaTeX commands are defined in
1987 `yatexadd.el'. Those are also useful as references. Here are the short
1988 descriptions on useful functions, where [F] means function, [A] means
1989 arguments, [D] means description.
1991 `[F]'
1992 YaTeX:read-position
1993 `[A]'
1994 Character list which can show up in the brackets
1995 `[D]'
1996 Return the location specifier such as `[htb]'. When nothing is
1997 entered, omit [] itself. If the possible characters are "htbp", call
1998 this function as `(YaTeX:read-position "htbp")'
2000 `[F]'
2001 YaTeX:read-coordinates
2002 `[A]'
2003 Base prompt, X-axis prompt, Y-axis prompt (each optional)
2004 `[D]'
2005 Read the coordinates with the prompt "BasePrompt X-axisPrompt:" for
2006 X-axis, "BasePrompt Y-axisPrompt:" for Y-axis, and return it in the
2007 form of "(X,Y)". The default prompts are `Dimension', `X', `Y'
2008 respectively.
2010 `[F]'
2011 YaTeX:check-completion-type
2012 `[A]'
2013 One of the symbols: 'begin, 'section, or 'maketitle
2014 `[D]'
2015 Check the current completion type is specified one and cause error
2016 if not. The variable `YaTeX-current-completion-type' holds the symbol
2017 according to the current completion type.
2021 File: yatexe, Node: Contribution, Prev: Useful functions for creating add-in, Up: Add-in functions
2023 Contribution
2024 ------------
2026 If you make your own pretty function and you let it be in public, please
2027 send me the function. I'm going to include it in the next release.
2031 File: yatexe, Node: Add-in generator, Prev: Add-in functions, Up: Customizations
2033 Add-in generator
2034 ================
2036 First, don't forget to read the section of add-in functions *Note Add-in
2037 functions::. If you easily understand how to define them, there's no need
2038 to read this section. But being not familiar with Emacs-Lisp, when you
2039 don't have clear idea what to do, this section describes how to get YaTeX
2040 make add-in function.
2042 There are two methods of generation. One is for fully interactive
2043 generator for beginners and another requires little knowledge of
2044 Emacs-Lisp.
2047 Generator for beginners
2048 -----------------------
2049 The former generator is called by
2050 `M-x YaTeX-generate'
2052 strokes. All you have to do is follow the guidances. Defying them may
2053 cases the disaster (I wonder what is it???). So when you make some
2054 mistake, it is recommendable to type `C-g' and start afresh.
2057 Simple generator
2058 ----------------
2060 The latter generator is invoked by the next sequence. `M-x
2061 YaTeX-generate-simple' This generator can make both "option add-in" and
2062 "argument add-in" (*refer the section add-in functions* *Note How the
2063 add-in function works::), whereas `YaTeX-generate' cannot make "argument
2064 addin".
2066 For example, assume you have the LaTeX command as follows.
2068 \epsinput[t](250,50){hoge.eps}{plain}{Picture of foo}
2069 (A) (B) (1) (2) (3)
2070 (A)Optional parameter to specify the position
2071 One of t(top), b(bottom), l(left), r(right)
2072 (B)Maximum size of frame
2073 (1)1st argument is filename of EPS file
2074 (2)2nd argument indicates
2075 plain do nothing
2076 frame make frame around image
2077 dframe make double-frame around image
2078 for included EPS file.
2079 (3)Caption for the picture
2081 Now get start with generation. Typing `M-x YaTeX-generate-simple'
2082 brings the prompt:
2083 (O)ption? (A)rgument?
2086 Generating "option add-in"
2087 ..........................
2089 Since (A), (B) above are optional argument, all we have to do to
2090 complete them is define the option add-in for them. Let's generate the
2091 function to complete (A).
2093 M-x YaTeX-generate-simple RET
2094 epsinput RET
2097 Typing as above leads the next prompt.
2099 Read type(1): (S)tring (C)omplete (F)ile ([)option (P)osition co(O)rd. (q)uit
2101 This asks that "Which type is the completion style of 1st argument?".
2102 Here are the possible completion style.
2104 `String'
2105 read plain string
2106 `Complete'
2107 read with completion
2108 `File'
2109 read file name
2110 `Option'
2111 read optional string (if string omitted, omit [] too)
2112 `Position'
2113 read positional option (like [htbp])
2114 `Coord.'
2115 read coordinates
2116 `Quit'
2117 quit from generating
2119 Since (A) is the optional argument to specify the location of included
2120 EPS file, the completion style is `Position', and the possible characters
2121 are t, b, l, and r. To tell these information to generator, operate as
2122 follows.
2124 Read type(1).... p
2125 Acceptable characters: tblr RET
2127 (B) is coordinate. So its completion style is coOrd. We want a prompt
2128 meaning "Maximum size" when completion.
2130 Read type(2).... o
2131 Prompt for coordinates: Max size RET
2133 That's all for optional argument. Select quit.
2135 Read type(3).... q
2137 Then the generated option add-in function for \epsinput will be shown in
2138 the next window.
2141 Generating "argument add-in"
2142 ............................
2144 Next, create the argument add-in. The arguments for \epsinput are EPS
2145 file name, framing style, and caption string in sequence.
2147 M-x YaTeX-generate-simple RET
2148 epsinput RET
2151 Above key strokes bring the prompt that asks the number of argument.
2152 Answer it with 3.
2154 How many arguments?: 3 RET
2156 Then the generator asks the completion style and prompt for completion.
2157 Answer them. `f' for FileName and prompt string.
2159 Read type(1).... f
2160 Prompt for argument#1 EPS file name RET
2162 The second argument is one of selected symbol. So the completion type
2163 is `Completion'.
2165 Read type(2).... c
2166 Prompt for argument#2 Include style RET
2168 Then all the candidates ready to be read. Type single RET after
2169 entering all.
2171 Item[1](RET to exit): plain RET
2172 Item[2](RET to exit): frame RET
2173 Item[3](RET to exit): dframe RET
2174 Item[4](RET to exit): RET
2176 The following prompt asks whether the entered string must belong to
2177 candidates or not. In this case, since the argument must be one of
2178 `plain', `frame', and `dframe', type `y'.
2180 Require match? (y or n) y
2182 The last argument is the caption string for which any completion is
2183 needed.
2185 Read type(3).... s
2186 Prompt for argument#3 Caption RET
2187 default: Figure of RET
2189 Finally we'll get the argument add-in in the next window.
2192 Contribution
2193 ------------
2195 If you get your own pretty function and you let it be in public, please
2196 steel yourself in the happy atmosphere and do not send me the function. I
2197 do know it is not fine because it is generated by yatexgen:-p.
2201 File: yatexe, Node: Etcetera, Next: Copying, Prev: Customizations, Up: Top
2203 Etcetera
2204 ********
2206 The standard completion tables provided in `yatex.el' contain a few
2207 LaTeX commands I frequently use. This is to lessen the key strokes to
2208 complete entire word, because too many candidates rarely used often cause
2209 too many hits. Therefore always try to use completion in order to enrich
2210 your dictionary, and you will also find `Wild Bird' growing suitable for
2211 your LaTeX style.
2213 The package name `Wild Bird' is the English translation of Japanese
2214 title `Yachou', which is a trick on words of Japanese.
2218 File: yatexe, Node: Copying, Prev: Etcetera, Up: Top
2220 Copying
2221 *******
2223 This program is distributed as a free software. You can
2224 use/copy/modify/redistribute this software freely but with NO warranty to
2225 anything as a result of using this software. Adopting code from this
2226 program is also free. But I would not do contract act.
2228 Any reports and suggestions are welcome as long as I feel interests in
2229 this software. My possible e-mail address is `yuuji@yatex.org'. (as of
2230 Jan.2004) And there is mailing list for YaTeX. Although the common
2231 language is Japanese, questions in English will be welcome. To join the
2232 ML, send the mail whose subject is `append' to the address
2233 `yatex@yatex.org. If you have some question, please ask to
2234 `yatex-admin@yatex.org'.
2236 The specification of this software will be surely modified (depending on
2237 my feelings) without notice :-p.
2240 HIROSE Yuuji
2243 Tag table:
2244 Node: Top253
2245 Node: What is YaTeX?1594
2246 Node: Main features1967
2247 Node: Installation3511
2248 Node: Typesetting4288
2249 Node: Calling typesetter5435
2250 Node: Calling previewer7962
2251 Node: Printing out8323
2252 Node: %#notation8615
2253 Node: Changing typesetter9033
2254 Node: Splitting input files9397
2255 Node: Static region for typesetting10822
2256 Node: Lpr format11951
2257 Node: Controlling which command to invoke12981
2258 Node: Editing %# notation13651
2259 Node: Completion14195
2260 Node: Begin-type completion14710
2261 Node: Section-type completion17565
2262 Node: view-sectioning20000
2263 Node: Large-type completion21580
2264 Node: Maketitle-type completion22234
2265 Node: Arbitrary completion22786
2266 Node: End completion23176
2267 Node: Accent completion23646
2268 Node: Image completion24263
2269 Node: Greek letters completion26520
2270 Node: Inserting parentheses27276
2271 Node: Local dictionaries27683
2272 Node: Commenting out28620
2273 Node: Cursor jump30079
2274 Node: Jump to corresponding object30391
2275 Node: Invoking image processor31792
2276 Node: Jump to main file33135
2277 Node: Jumping around the environment33500
2278 Node: Jumping to last completion position33918
2279 Node: Changing and Deleting34427
2280 Node: Changing LaTeX commands34819
2281 Node: Killing LaTeX commands35996
2282 Node: Filling37181
2283 Node: Updation of includeonly39032
2284 Node: What column39829
2285 Node: Intelligent newline40914
2286 Node: Usepackage checker42568
2287 Node: Online help43159
2288 Node: Browsing file hierarchy44834
2289 Node: Cooperation with other packages46571
2290 Node: Customizations47276
2291 Node: Lisp variables47610
2292 Node: All customizable variables48614
2293 Node: Sample definitions60262
2294 Node: Hook variables60775
2295 Node: Hook file61479
2296 Node: Add-in functions61818
2297 Node: How the add-in function works62678
2298 Node: Defining option-add-in64877
2299 Node: Defining argument-add-in65599
2300 Node: Defining enclosing-add-in66481
2301 Node: How the function is called67335
2302 Node: Useful functions for creating add-in68011
2303 Node: Contribution69416
2304 Node: Add-in generator69690
2305 Node: Etcetera75062
2306 Node: Copying75667
2308 End tag table