# HG changeset patch # User yuuji # Date 779993659 0 # Node ID cd1b63102eedec7948ae7b3149d1920bc131eabf # Parent b0fc9c2950cdf8fa3e3ba52f781ee4878dcd467e Support Mule2 diff -r b0fc9c2950cd -r cd1b63102eed docs/yatexe.tex --- a/docs/yatexe.tex Sun Jul 24 15:07:23 1994 +0000 +++ b/docs/yatexe.tex Mon Sep 19 16:54:19 1994 +0000 @@ -1,9 +1,10 @@ +\def\lang{jp} % -*- texinfo -*- \input texinfo.tex @setfilename yatexe @settitle Yet Another tex-mode for Emacs @iftex -@syncodeindex fn cp +@c @syncodeindex fn cp @syncodeindex vr cp @end iftex @@ -98,7 +99,7 @@ @chapter Main features @itemize -@item Invocation of typesetter, previewer and related programs(C-c t) +@item Invocation of typesetter, previewer and related programs(@kbd{C-c t}) @item Typesetting on static region which is independent from point @item Semiautomatic replacing of @code{\include only} @item Jumping to error line(@kbd{C-c '}) @@ -132,7 +133,7 @@ @lisp (setq auto-mode-alist - (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) + (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) (autoload 'yatex-mode "yatex" "Yet Another La@TeX{} mode" t) @end lisp @@ -168,17 +169,17 @@ @table @kbd @item [prefix] tj - @dots{} invoke latex + @dots{} invoke latex @item [prefix] tr - @dots{} invoke latex on region + @dots{} invoke latex on region @item [prefix] tk - @dots{} kill current typesetting process + @dots{} kill current typesetting process @item [prefix] tb - @dots{} invoke bibtex + @dots{} invoke bibtex @item [prefix] tp - @dots{} preview + @dots{} preview @item [prefix] tl - @dots{} lpr dvi-file + @dots{} lpr dvi-file @end table The current editing window will be divided horizontally when you @@ -195,7 +196,7 @@ @item [prefix] ' @itemx ([prefix]+single quotation) - @dots{} jump to the previous error or warning + @dots{} jump to the previous error or warning @end table If you find a noticeable error, move to the typesetting buffer and move @@ -241,7 +242,7 @@ To change the typesetting command, write @example - %#!latex-big + %#!latex-big @end example @noindent @@ -249,7 +250,7 @@ edit subfile that should be included from main text. @example - %#!latex main.tex + %#!latex main.tex @end example @noindent @@ -258,7 +259,7 @@ description makes it convenient to use ghostview as dvi-previewer. @example - %#!latex main ; dvi2ps main.dvi > main + %#!latex main ; dvi2ps main.dvi > main @end example @noindent @@ -290,9 +291,9 @@ follows. @example - %#BEGIN - TheRegionYouWantToTypesetManyTimes - %#END + %#BEGIN + TheRegionYouWantToTypesetManyTimes + %#END @end example This is the rule of deciding the region. @@ -338,11 +339,11 @@ @table @code @item (1)dviprint-command-format - @code{"dvi2ps %f %t %s | lpr"} + @code{"dvi2ps %f %t %s | lpr"} @item (2)dviprint-from-format - @code{"-f %b"} + @code{"-f %b"} @item (3)dviprint-to-format - @code{"-t %e"} + @code{"-t %e"} @end table On YaTeX-lpr, @code{%s} in (1) is replaced by the file name of main @@ -356,14 +357,14 @@ such as follows somewhere in the text: @example - %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2 + %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2 @end example And if you want YaTeX not to ask you the range of printing out, the next example may be helpful. @example - %#LPR dvi2ps %s | lpr + %#LPR dvi2ps %s | lpr @end example @node Editing %# notation, , Lpr format, %# notation @@ -374,14 +375,14 @@ @table @kbd @item [prefix] % - @dots{} editing %# notation menu + @dots{} editing %# notation menu @end table @noindent and select one of the entry of the menu as follows. @example - !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR + !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR @end example @noindent @@ -423,7 +424,7 @@ @table @kbd @item [prefix] b - @dots{} start begin-type completion + @dots{} start begin-type completion @end table @noindent @@ -432,39 +433,39 @@ @table @kbd @item [prefix] b c - @dots{} @code{\begin@{center@}...\end@{center@}} + @dots{} @code{\begin@{center@}...\end@{center@}} @item [prefix] b d - @dots{} @code{\begin@{document@}...\end@{document@}} + @dots{} @code{\begin@{document@}...\end@{document@}} @item [prefix] b D - @dots{} @code{\begin@{description@}...\end@{description@}} + @dots{} @code{\begin@{description@}...\end@{description@}} @item [prefix] b e - @dots{} @code{\begin@{enumerate@}...\end@{enumerate@}} + @dots{} @code{\begin@{enumerate@}...\end@{enumerate@}} @item [prefix] b E - @dots{} @code{\begin@{equation@}...\end@{equation@}} + @dots{} @code{\begin@{equation@}...\end@{equation@}} @item [prefix] b i - @dots{} @code{\begin@{itemize@}...\end@{itemize@}} + @dots{} @code{\begin@{itemize@}...\end@{itemize@}} @item [prefix] b l - @dots{} @code{\begin@{flushleft@}...\end@{flushleft@}} + @dots{} @code{\begin@{flushleft@}...\end@{flushleft@}} @item [prefix] b m - @dots{} @code{\begin@{minipage@}...\end@{minipage@}} + @dots{} @code{\begin@{minipage@}...\end@{minipage@}} @item [prefix] b t - @dots{} @code{\begin@{tabbing@}...\end@{tabbing@}} + @dots{} @code{\begin@{tabbing@}...\end@{tabbing@}} @item [prefix] b T - @dots{} @code{\begin@{tabular@}...\end@{tabular@}} + @dots{} @code{\begin@{tabular@}...\end@{tabular@}} @item [prefix] b^T - @dots{} @code{\begin@{table@}...\end@{table@}} + @dots{} @code{\begin@{table@}...\end@{table@}} @item [prefix] b p - @dots{} @code{\begin@{picture@}...\end@{picture@}} + @dots{} @code{\begin@{picture@}...\end@{picture@}} @item [prefix] b q - @dots{} @code{\begin@{quote@}...\end@{quote@}} + @dots{} @code{\begin@{quote@}...\end@{quote@}} @item [prefix] b Q - @dots{} @code{\begin@{quotation@}...\end@{quotation@}} + @dots{} @code{\begin@{quotation@}...\end@{quotation@}} @item [prefix] b r - @dots{} @code{\begin@{flushright@}...\end@{flushright@}} + @dots{} @code{\begin@{flushright@}...\end@{flushright@}} @item [prefix] b v - @dots{} @code{\begin@{verbatim@}...\end@{verbatim@}} + @dots{} @code{\begin@{verbatim@}...\end@{verbatim@}} @item [prefix] b V - @dots{} @code{\begin@{verse@}...\end@{verse@}} + @dots{} @code{\begin@{verse@}...\end@{verse@}} @end table Any other La@TeX{} environments are made by completing-read of the @@ -472,14 +473,14 @@ @table @kbd @item [prefix] b SPACE - @dots{} begin-type completion + @dots{} begin-type completion @end table @noindent The next message will show up in the minibuffer @example - Begin environment(default document): + Begin environment(default document): @end example @noindent @@ -504,7 +505,7 @@ @itemx (or ESC 1 [prefix] b D) @itemx (or C-u [prefix] b D) - @dots{} begin-type completion for region + @dots{} begin-type completion for region @end table This enclosing holds good for the completing input by @kbd{[prefix] b @@ -523,14 +524,14 @@ @table @kbd @item [prefix] s - @dots{} section-type completion + @dots{} section-type completion @end table @noindent then the prompt @example - (C-v for view) \???@{@} (default documentstyle): + (C-v for view) \???@{@} (default documentstyle): @end example @noindent @@ -541,7 +542,7 @@ Next, @example - \section@{???@}: + \section@{???@}: @end example @noindent @@ -549,28 +550,28 @@ example, the following inputs @example - \???@{@} (default documentstyle): section - \section{???}: Hello world. + \???@{@} (default documentstyle): section + \section{???}: Hello world. @end example @noindent will insert the string @example - \section@{Hello world.@} + \section@{Hello world.@} @end example in your La@TeX{} source. When you neglect argument such as @example - (C-v for view) \???@{@} (default section): vspace* - \vspace*@{???@}: + (C-v for view) \???@{@} (default section): vspace* + \vspace*@{???@}: @end example YaTeX puts @example - \vspace*@{@} + \vspace*@{@} @end example @noindent @@ -589,9 +590,9 @@ and make answers in minibuffer like this. @example - (C-v for view) \???@{@} (default vspace*): addtolength - \addtolength@{???@}: \topmargin - Argument 2: 8mm + (C-v for view) \???@{@} (default vspace*): addtolength + \addtolength@{???@}: \topmargin + Argument 2: 8mm @end example @code{\addtolength} and the first argument @code{\topmargin} can be typed @@ -646,14 +647,14 @@ @table @kbd @item [prefix] l - @dots{} large-type completion + @dots{} large-type completion @end table @noindent the message in the minibuffer @example - @{\??? @} (default large): + @{\??? @} (default large): @end example prompts prompts you large-type command with completing-read. There are @@ -675,7 +676,7 @@ @table @kbd @item [prefix] m - @dots{} maketitle-type completion + @dots{} maketitle-type completion @end table @noindent @@ -694,7 +695,7 @@ @table @kbd @item [prefix] SPC - @dots{} arbitrary completion + @dots{} arbitrary completion @end table @noindent @@ -713,7 +714,7 @@ @table @kbd @item [prefix] e - @dots{} @code{end} completion + @dots{} @code{end} completion @end table @noindent @@ -728,14 +729,14 @@ @table @kbd @item [prefix] a - @dots{} accent completion + @dots{} accent completion @end table @noindent shows the menu @example - 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b + 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b @end example @noindent @@ -743,7 +744,7 @@ and you will see @example - \`{} + \`{} @end example @noindent @@ -751,7 +752,7 @@ one more character `o' for example, then @example - \`{o} + \`{o} @end example @noindent @@ -848,9 +849,9 @@ @table @kbd @item [prefix] > - @dots{} comment out region by % + @dots{} comment out region by % @item [prefix] < - @dots{} uncomment region + @dots{} uncomment region @end table @noindent @@ -858,9 +859,9 @@ @table @kbd @item [prefix] . - @dots{} comment out current paragraph + @dots{} comment out current paragraph @item [prefix] , - @dots{} uncomment current paragraph + @dots{} uncomment current paragraph @end table @noindent @@ -877,9 +878,9 @@ @table @kbd @item [prefix] > - @dots{} comment out from \begin to \@code{end} + @dots{} comment out from \begin to \@code{end} @item [prefix] < - @dots{} uncomment from \begin to \@code{end} + @dots{} uncomment from \begin to \@code{end} @end table @noindent @@ -887,9 +888,9 @@ @table @kbd @item [prefix] . - @dots{} comment out \begin and \@code{end} + @dots{} comment out \begin and \@code{end} @item [prefix] , - @dots{} uncomment \begin and \@code{end} + @dots{} uncomment \begin and \@code{end} @end table @noindent @@ -909,7 +910,7 @@ @table @kbd @item [prefix] g - @dots{} go to corresponding object + @dots{} go to corresponding object @end table @noindent @@ -918,14 +919,14 @@ @code{%#END} pair. If you type @code{[prefix] g} on the line of @code{\include@{chap1@}}, -maybe in main text, YaTeX switches buffer to @file{chap1.tex}. On the +maybe in main text, YaTeX switches buffer to @file{chap1.tex}. On the contrary, the key strokes @table @kbd @item [prefix] ^ - @dots{} visit main file + @dots{} visit main file @item [prefix] 4^ - @dots{} visit main file in other buffer + @dots{} visit main file in other buffer @end table @cindex prefix ^ @cindex prefix 4 ^ @@ -938,11 +939,11 @@ @table @kbd @item M-C-a - @dots{} beginning of environment + @dots{} beginning of environment @item M-C-e - @dots{} @code{end} of environment + @dots{} @code{end} of environment @item M-C-@@ - @dots{} mark environment + @dots{} mark environment @end table @cindex M-C-a @cindex M-C-e @@ -957,9 +958,9 @@ @table @kbd @item [prefix] c - @dots{} change La@TeX{} command + @dots{} change La@TeX{} command @item [prefix] k - @dots{} kill La@TeX{} command + @dots{} kill La@TeX{} command @end table @cindex prefix c @cindex prefix k @@ -980,8 +981,8 @@ `containers' but also `contents' of them. See below as a sample. @example -Original text: [prefix] k C-u [prefix] k -Main \footnote@{note@} here. Main note here. Main here. +Original text: [prefix] k C-u [prefix] k +Main \footnote@{note@} here. Main note here. Main here. ~(cursor) @end example @@ -995,7 +996,7 @@ @table @kbd @item [prefix] i - @dots{} fill item + @dots{} fill item @end table @noindent @@ -1006,8 +1007,8 @@ If you make a newcommand to itemize terms(eg. @code{\underlineitem}), put @lisp - (setq YaTeX-item-regexp - "\\(\\\\item\\)\\|\\(\\\\underlineitem\\)") + (setq YaTeX-item-regexp + "\\(\\\\item\\)\\|\\(\\\\underlineitem\\)") @end lisp @cindex YaTeX-item-regexp @@ -1041,7 +1042,7 @@ next expression into your @file{~/.emacs} @lisp - (setq YaTeX-nervous nil) + (setq YaTeX-nervous nil) @end lisp @node Updation of @code{\includeonly}, What column?, Local dictionaries, Top @@ -1052,7 +1053,7 @@ When you edit splitting source texts, the notation @example - \includeonly@{CurrentEditingFileName@} + \includeonly@{CurrentEditingFileName@} @end example @noindent @@ -1060,7 +1061,7 @@ to hack other file a little however, you have to rewrite it to @example - \includeonly@{OtherFileNameYouWantToFix@} + \includeonly@{OtherFileNameYouWantToFix@} @end example @noindent @@ -1068,7 +1069,7 @@ edited text is not in includeonly list and prompts you @example - A)dd R)eplace %)comment? + A)dd R)eplace %)comment? @end example in the minibuffer. Type @kbd{a} if you want to add the current file name @@ -1104,7 +1105,7 @@ @table @kbd @item [prefix] & - @dots{} What column + @dots{} What column @end table @noindent @@ -1125,7 +1126,7 @@ @table @kbd @item ESC RET - @dots{} Intelligent newline + @dots{} Intelligent newline @end table @noindent @@ -1138,16 +1139,16 @@ @itemize @item @code{tabular}, @code{tabular*}, @code{array} - Corresponding number of @code{&} and @code{\\}. - And @code{\hline} if needed. + Corresponding number of @code{&} and @code{\\}. + And @code{\hline} if needed. @item @code{tabbing} - The same number of @code{\>} as @code{\=} in the first line. + The same number of @code{\>} as @code{\=} in the first line. @item @code{itemize}, @code{enumerate}, @code{description}, @code{list} - @code{\item} or @code{item[]}. + @code{\item} or @code{item[]}. @end itemize Note that since this function works seeing the contents of the first @@ -1178,9 +1179,9 @@ @table @kbd @item [prefix] ? - @dots{} Online help + @dots{} Online help @item [prefix] / - @dots{} Online apropos + @dots{} Online apropos @end table @section Online help @@ -1285,143 +1286,141 @@ in @file{~/.emacs} is preferred and that of defined in @file{yatex.el} is neglected. Parenthesized contents stands for the default value. -@table @samp -@item YaTeX-prefix +@defvar YaTeX-prefix + Prefix key stroke (@kbd{C-c}) +@end defvar - Prefix key stroke (@kbd{C-c}) - -@item YaTeX-inhibit-prefix-letter - +@defvar YaTeX-inhibit-prefix-letter Change key stroke from @kbd{C-c letter} to @kbd{C-c C-letter} (@code{nil}) +@end defvar -@item YaTeX-fill-prefix +@defvar YaTeX-fill-prefix + Fill-prefix used in yatex-mode (@code{nil}) +@end defvar - Fill-prefix used in yatex-mode (@code{nil}) +@defvar YaTeX-open-lines + Number of blank lines between cursor and @code{\begin@{@}}, + @code{\@code{end}@{@}} (0) +@end defvar -@item YaTeX-open-lines +@defvar YaTeX-user-completion-table + Name of user dictionary where learned completion table will be stored. + (@code{"~/.yatexrc"}) +@end defvar - Number of blank lines between cursor and @code{\begin@{@}}, - @code{\@code{end}@{@}} (0) +@defvar YaTeX-item-regexp + Regular expression of item command(@code{"\\\\item"}) +@end defvar -@item YaTeX-user-completion-table +@defvar tex-command + La@TeX{} typesetter command (@code{"latex"}) +@end defvar - Name of user dictionary where learned completion table will be stored. - (@code{"~/.yatexrc"}) +@defvar dvi2-command + Preview command + (@code{"xdvi -geo +0+0 -s 4 -display (getenv"DISPLAY")"}) +@end defvar -@item YaTeX-item-regexp +@defvar dviprint-command-format + Command format to print dvi file (@code{"dvi2ps %f %t %s | lpr"}) +@end defvar - Regular expression of item command(@code{"\\\\item"}) +@defvar dviprint-from-format + Start page format of above %f. %b will turn to start page + (@code{"-f %b"}) +@end defvar -@item tex-command +@defvar dviprint-to-format + End page format of above %t. %e will turn to @code{end} page + (@code{"-t %e"}) +@end defvar - La@TeX{} typesetter command (@code{"latex"}) +@defvar section-name + Initial default value at the first section-type completion + (@code{"documentstyle"}) +@end defvar -@item dvi2-command +@defvar env-name + Initial default value at the first begin-type completion + (@code{"document"}) +@end defvar - Preview command - (@code{"xdvi -geo +0+0 -s 4 -display (getenv"DISPLAY")"}) +@defvar fontsize-name + Ditto of large-type (@code{"large"}) +@end defvar -@item dviprint-command-format +@defvar single-command + Ditto of maketitle-type (@code{"maketitle"}) +@end defvar - Command format to print dvi file (@code{"dvi2ps %f %t %s | lpr"}) +@defvar YaTeX-need-nonstop + Put @code{\nonstopmode@{@}} or not (@code{nil}) +@end defvar -@item dviprint-from-format +@defvar latex-warning-regexp + Regular expression of warning message latex command puts out + (@code{"line.* [0-9]*"}) +@end defvar - Start page format of above %f. %b will turn to start page - (@code{"-f %b"}) +@defvar latex-error-regexp + Regular expression of error message (@code{"l\\.[1-9][0-9]*"}) +@end defvar -@item dviprint-to-format +@defvar latex-dos-emergency-message + Message latex command running on DOS puts at abort + (@code{"Emergency stop"}) +@end defvar - End page format of above %t. %e will turn to @code{end} page - (@code{"-t %e"}) +@defvar YaTeX-item-regexp + Regexp of La@TeX{} itemization command (@code{"\\\\(sub\\)*item"}) +@end defvar -@item section-name +@defvar YaTeX-nervous + T for using local dictionary (@code{t}) +@end defvar - Initial default value at the first section-type completion - (@code{"documentstyle"}) +@defvar YaTeX-sectioning-regexp + Regexp of La@TeX{} sectioning command -@item env-name + (@code{"part\\|chapter\\|\\(sub\\)*\\(section\\|paragraph\\)"}) +@end defvar - Initial default value at the first begin-type completion - (@code{"document"}) +@defvar YaTeX-fill-inhibit-environments + Inhibit fill in these environments (@code{'("verbatim" "tabular")}) +@end defvar -@item fontsize-name +@defvar YaTeX-uncomment-once + @code{T} for deleting all preceding @code{%} (@code{nil}) +@end defvar - Ditto of large-type (@code{"large"}) +@defvar YaTeX-close-paren-always + @code{T} for always close all parenthesis automatically, + @code{nil} for only eol(@code{t}) +@end defvar -@item single-command +@defvar YaTeX-auto-math-mode + Switch math-mode automatically(@code{t}) +@end defvar - Ditto of maketitle-type (@code{"maketitle"}) - -@item YaTeX-need-nonstop - - Put @code{\nonstopmode@{@}} or not (@code{nil}) - -@item latex-warning-regexp - - Regular expression of warning message latex command puts out - (@code{"line.* [0-9]*"}) - -@item latex-error-regexp - - Regular expression of error message (@code{"l\\.[1-9][0-9]*"}) - -@item latex-dos-emergency-message - - Message latex command running on DOS puts at abort - (@code{"Emergency stop"}) - -@item YaTeX-item-regexp - - Regexp of La@TeX{} itemization command (@code{"\\\\(sub\\)*item"}) - -@item YaTeX-nervous - - T for using local dictionary (@code{t}) - -@item YaTeX-sectioning-regexp - - Regexp of La@TeX{} sectioning command - - (@code{"part\\|chapter\\|\\(sub\\)*\\(section\\|paragraph\\)"}) - -@item YaTeX-fill-inhibit-environments - - Inhibit fill in these environments (@code{'("verbatim" "tabular")}) - -@item YaTeX-uncomment-once - - @code{T} for deleting all preceding @code{%} (@code{nil}) - -@item YaTeX-close-paren-always - - @code{T} for always close all parenthesis automatically, - @code{nil} for only eol(@code{t}) - -@item YaTeX-auto-math-mode - - Switch math-mode automatically(@code{t}) - -@item YaTeX-default-pop-window-height - +@defvar YaTeX-default-pop-window-height Initial height of typesetting buffer when one-window. Number for the lines of the buffer, numerical string for the percentage of the screen-height. @code{nil} for half height(10) +@end defvar -@item YaTeX-help-file +@defvar YaTeX-help-file + Global online help file name (@file{$EMACS/etc/YATEXHLP.jp}) +@end defvar - Global online help file name (@file{$EMACS/etc/YATEXHLP.jp}) +@defvar YaTeX-help-file-private + Private online help file name (@file{"~/YATEXHLP.jp"}) +@end defvar -@item YaTeX-help-file-private - - Private online help file name (@file{"~/YATEXHLP.jp"}) - -@item YaTeX-no-begend-shortcut - - Disable [prefix] b ?? shortcut (@code{nil)} -@end table +@defvar YaTeX-no-begend-shortcut + Disable [prefix] b ?? shortcut (@code{nil)} +@end defvar @node Sample definitions, Hook variables, All customizable variables, Lisp variables @comment node-name, next, previous, up @@ -1434,9 +1433,9 @@ to single TAB character, add the following @code{setq} to @file{~/.emacs}. @lisp - (setq YaTeX-prefix "\e" - YaTeX-user-completion-table "~/src/emacs/yatexrc" - YaTeX-fill-prefix " ") + (setq YaTeX-prefix "\e" + YaTeX-user-completion-table "~/src/emacs/yatexrc" + YaTeX-fill-prefix " ") @end lisp @node Hook variables, Hook file, Sample definitions, Lisp variables @@ -1452,12 +1451,12 @@ immediately. @lisp - (setq yatex-mode-hook - '(lambda() (YaTeX-define-begend-key "ba" "abstract"))) + (setq yatex-mode-hook + '(lambda() (YaTeX-define-begend-key "ba" "abstract"))) @end lisp - You should use functions @code{YaTeX-define-key}, or -@code{YaTeX-define-begend-key} to define all the key sequences of + You should use functions @code{YaTeX-define-key}, or +@code{YaTeX-define-begend-key} to define all the key sequences of yatex-mode. @node Hook file, , Hook variables, Lisp variables diff -r b0fc9c2950cd -r cd1b63102eed docs/yatexgen.doc --- a/docs/yatexgen.doc Sun Jul 24 15:07:23 1994 +0000 +++ b/docs/yatexgen.doc Mon Sep 19 16:54:19 1994 +0000 @@ -141,6 +141,13 @@ Item[3](RET to exit): dframe RET Item[4](RET to exit): RET + さらに補完候補以外の選択を認めるかを聞いて来るので、y か n で答え + ます。この場合 plain, frame, dframe 以外は選べないので + + Require match? (y or n) y + + のように y と答えます。 + 最後の引数は単に文字列を読めば良いので、補完タイプは String。 「default:」ではミニバッファで入力する時にデフォルトで入力されてい る文字列を入れます。必要なければRETを空打ちします。 @@ -149,13 +156,6 @@ Prompt for argument#3 Caption RET default: の絵 RET - さらに補完候補以外の選択を認めるかを聞いて来るので、y か n で答え - ます。この場合 plain, frame, dframe 以外は選べないので - - Require match? (y or n) y - - のように y と答えます。 - これで隣のウィンドウに \epsinput 用の引数型付加関数が生成されま す。 diff -r b0fc9c2950cd -r cd1b63102eed docs/yatexj.tex --- a/docs/yatexj.tex Sun Jul 24 15:07:23 1994 +0000 +++ b/docs/yatexj.tex Mon Sep 19 16:54:19 1994 +0000 @@ -1,9 +1,10 @@ -\input texinfo @c -*- texinfo -*- +\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 +\input texinfo @setfilename yatexj @settitle Yet Another tex-mode for Emacs @iftex -@syncodeindex fn cp +@c @syncodeindex fn cp @syncodeindex vr cp @end iftex @@ -16,38 +17,39 @@ @author @copyright{} 1991-1994 by HIROSE, Yuuji [yuuji@@ae.keio.ac.jp] @end titlepage -@node Top, Intro - はじめに, (dir), (dir) +@node Top, Intro, (dir), (dir) @comment node-name, next, previous, up @menu -* Intro - はじめに:: -* Main features - 主な機能:: -* Installation - インストール:: -* Invocation - 外部コマンドの起動:: +* Intro:: はじめに +* Main features:: 主な機能 +* Installation:: インストール +* Invocation:: 外部コマンドの起動 * %#記法:: -* Completion - 補完入力:: -* Commenting out - コメントアウト:: -* Cursor jump - カーソルジャンプ:: -* Modifying/Deleting - 変更/削除:: -* Filling item - itemの桁揃え:: -* Local dictionary - ローカル辞書:: -* Includeonly - 勝手にincludeonly:: -* Where am I? - 今はどこ?:: -* Intelligent newline - おまかせ改行:: -* Online help - オンラインヘルプ:: -* Cooperation with other packages - 他パッケージとの連携:: -* Customizations - カスタマイズ:: -* Etc - その他:: -* Copying - 取り扱い:: +* Completion:: 補完入力 +* Commenting out:: コメントアウト +* Cursor jump:: カーソルジャンプ +* Modifying/Deleting:: 変更/削除 +* Filling item:: itemの桁揃え +* Local dictionary:: ローカル辞書 +* Includeonly:: 勝手にincludeonly +* Where am I?:: +* Intelligent newline:: おまかせ改行 +* Online help:: オンラインヘルプ +* Cooperation with other packages:: 他パッケージとの連携 +* Customizations:: カスタマイズ +* Etc:: その他 +* Copying:: 取り扱い +* Concept Index:: 索引 @end menu -@node Intro - はじめに, Main features - 主な機能, Top, Top +@node Intro, Main features, Top, Top @comment node-name, next, previous, up @chapter はじめに @cindex Demacs @cindex Mule @cindex LaTeX -@cindex やちょう +@cindex やちょう[やちよう] 野鳥は、GNU Emacs で La@TeX{} 用の文書を作成する時に jLa@TeX{} などの タイプセットコマンドや、プレヴューアの起動を Emacs 編集画面中から @@ -56,15 +58,15 @@ よりマニュアルを調べる手間を軽減します。 -@node Main features - 主な機能, Installation - インストール, Intro - はじめに, Top +@node Main features, Installation, Intro, Top @comment node-name, next, previous, up @chapter 主な機能 @itemize @bullet -@item タイプセッタやプレヴューアなどの編集画面からの起動(C-c t) +@item タイプセッタやプレヴューアなどの編集画面からの起動(@kbd{C-c t}) @item カーソル位置によらない固定リジョンの部分タイプセット @item \includeonlyのワンタッチ更新 -@item エラー箇所への自動ジャンプ(C-c ') +@item エラー箇所への自動ジャンプ(@kbd{C-c '}) @item @code{\begin@{@}, \end@{@}, \section...} などの La@TeX{} コマンドの補完入力 (@kbd{C-c b}, @kbd{C-c s}, @kbd{C-c l}, @kbd{C-c m}) @@ -75,20 +77,20 @@ @item 野鳥にないガイド付き引数入力関数の自動生成(@file{yatexgen.el}) @item La@TeX{} コマンドの削除/変更(@kbd{C-c k}, @kbd{C-c c}) @item ファイル間、@code{\begin}<->@code{\end}間、 - @code{\ref}<->@code{\label}間ジャンプ(@code{C-c g}) + @code{\ref}<->@code{\label}間ジャンプ(@kbd{C-c g}) @item 一括コメントアウト/アンコメントアウト - (@code{C-c >}, @code{C-c <}, @code{C-c ,}, @code{C-c .}) + (@kbd{C-c >}, @kbd{C-c <}, @kbd{C-c ,}, @kbd{C-c .}) @item アクセント記号/数式環境用コマンド/ギリシャ文字の入力支援 - (@code{C-c a}, @code{;}, @code{/}) + (@kbd{C-c a}, @code{;}, @code{/}) @item tabular/array環境のカラム位置ガイド -@item 標準的 La@TeX{} コマンドのオンラインヘルプ(@code{C-c ?}, @code{C-c /}) +@item 標準的 La@TeX{} コマンドのオンラインヘルプ(@kbd{C-c ?}, @kbd{C-c /}) @end itemize -@node Installation - インストール, Invocation - 外部コマンドの起動, Main features - 主な機能, Top +@node Installation, Invocation, Main features, Top @comment node-name, next, previous, up @chapter 起動法 @cindex Install -@cindex インストール[いんすとーる] +@cindex インストール[いんすとおる] @cindex .emacs @cindex auto-mode-alist @cindex autoload @@ -96,13 +98,13 @@ ~/.emacsに下の2項目を加えます。 @lisp - (setq auto-mode-alist +(setq auto-mode-alist (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) - (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) +(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) @end lisp -次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に -加えます。たとえば、@file{~/src/emacs/yatex}に置くのであれば、 +次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に加えます。 +たとえば、 @file{~/src/emacs/yatex}に置くのであれば、 @lisp (setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path)) @@ -116,15 +118,15 @@ に変わります。 -@node Invocation - 外部コマンドの起動, %#記法, Installation - インストール, Top +@node Invocation, %#記法, Installation, Top @comment node-name, next, previous, up @chapter latexコマンド起動 @cindex prefix key @cindex C-c -@cindex タイプセッタ[たいぷせった] -@cindex プレヴューア[ぷれびゅーあ] +@cindex タイプセッタ[たいふせつた] +@cindex プレヴューア[ふれひゆうあ] @cindex jlatex -@cindex プリントアウト[ぷりんとあうと] +@cindex プリントアウト[ふりんとあうと] yatex-mode の prefix キーは、標準状態で @kbd{C-c} (Ctrlキーを押しながらc) です。以下、標準のキー割当の場合、@kbd{[prefix]} は @kbd{C-c} と読み換えて @@ -133,30 +135,30 @@ @table @kbd @item [prefix] t j - @dots{} タイプセッタ(jlatex)起動 + @dots{} タイプセッタ(jlatex)起動 @item [prefix] t r - @dots{} タイプセッタ起動(領域指定) + @dots{} タイプセッタ起動(領域指定) @item [prefix] t k - @dots{} 動作中のタイプセッタの停止 + @dots{} 動作中のタイプセッタの停止 @item [prefix] t b - @dots{} jbibtex起動 + @dots{} jbibtex起動 @item [prefix] t p - @dots{} プレヴューア起動 + @dots{} プレヴューア起動 @item [prefix] t l - @dots{} lpr(プリントアウト用)コマンド起動 + @dots{} lpr(プリントアウト用)コマンド起動 @end table @menu -* Calling typesetter - タイプセッタ起動:: -* Print out - プリントアウト用コマンドの起動:: +* Calling typesetter:: タイプセッタ起動 +* Print out:: プリントアウト用コマンドの起動 @end menu -@node Calling typesetter - タイプセッタ起動, Print out - プリントアウト用コマンドの起動, Invocation - 外部コマンドの起動, Invocation - 外部コマンドの起動 +@node Calling typesetter, Print out, Invocation, Invocation @comment node-name, next, previous, up @section タイプセッタ起動 @cindex タイプセッタ起動 -@cindex タイプセットエラー[たいぷせっとえらー] -@cindex エラー修正[えらーしゅうせい] +@cindex タイプセットエラー[たいふせつとえらあ] +@cindex エラー修正[えらあしゆうせい] タイプセッタを起動すると、編集ウィンドウが2つに分割され、片方のウィンド ウにタイプセット画面が表示されます。出力されるメッセージと連動しタイプセッ @@ -168,7 +170,7 @@ @table @kbd @item [prefix] ' @itemx (prefix+アポストロフィ) - @dots{} 直前のエラー発生行へジャンプ + @dots{} 直前のエラー発生行へジャンプ @end table を入力することにより、タイプセッタがエラーを発生した行に移ることができます。 @@ -184,27 +186,27 @@ にはそのファイルの documentstyle が、別ファイルから include している場合に はメインファイルの documentstyle が自動的に選択されます。指定領域は、メイ ンファイルのあるディレクトリの@file{texput.tex}という臨時ファイルに出力さ -れますので、上書きには注意してください。領域の指定方法は@xref{%#記法}の項を +れますので、上書きには注意してください。領域の指定方法は@ref{%#記法}の項を 参照してください。 -@node Print out - プリントアウト用コマンドの起動, , Calling typesetter - タイプセッタ起動, Invocation - 外部コマンドの起動 +@node Print out, , Calling typesetter, Invocation @comment node-name, next, previous, up @section プリントアウト プリントアウトする時は、出力開始/終了ページを聞いてきますが、こ れを省略したい時は、universal-argument をつけて下さい。 -@cindex 出力開始ページ[しゅつりょくかいしぺーじ] -@cindex 出力終了ページ[しゅつりょくしゅうりょうぺーじ] +@cindex 出力開始ページ[しゆつりよくかいしへえし] +@cindex 出力終了ページ[しゆつりよくしゆうりようへえし] @table @kbd @item C-u [prefix] t l - @dots{} ページ確認省略lpr起動 + @dots{} ページ確認省略lpr起動 @end table -@cindex ページ確認省略lpr起動[ぺーじかくにんしょうりゃくlprきどう] +@cindex ページ確認省略lpr起動[へえしかくにんしようりやくlprきとう] -@node %#記法, Completion - 補完入力, Invocation - 外部コマンドの起動, Top +@node %#記法, Completion, Invocation, Top @comment node-name, next, previous, up @chapter %#記法 @@ -212,30 +214,30 @@ の制御をすることができます。 @menu -* Changing typesetter - タイプセット用コマンドの変更:: -* Splitting input files - 入力ファイル分割:: -* Fix region for typesetting - 領域の固定:: -* lpr format - プリントアウトコマンド用フォーマット:: -* Editing %# notation - %#記法の編集:: +* Changing typesetter:: タイプセット用コマンドの変更 +* Splitting input files:: 入力ファイル分割 +* Fix region for typesetting:: 領域の固定 +* lpr format:: プリントアウトコマンド用フォーマット +* Editing %# notation:: %#記法の編集 @end menu -@node Changing typesetter - タイプセット用コマンドの変更, Splitting input files - 入力ファイル分割, %#記法, %#記法 +@node Changing typesetter, Splitting input files, %#記法, %#記法 @comment node-name, next, previous, up @section タイプセット用コマンド変更 起動するコマンドを変えたい時は本文中に次のような行を書きます。 -@cindex 起動するコマンドを変える[きどうするこまんどをかえる] +@cindex 起動するコマンドを変える[きとうするこまんとをかえる] @example - %#!jlatex-ntt example + %#!jlatex-ntt example @end example NTT jTeX と、ASCII jTeX を使い分けたいような場合に便利でしょう。 -@cindex タイプセッタの使い分け[たいぷせったのつかいわけ] +@cindex タイプセッタの使い分け[たいふせつたのつかいわけ] -@node Splitting input files - 入力ファイル分割, Fix region for typesetting - 領域の固定, Changing typesetter - タイプセット用コマンドの変更, %#記法 +@node Splitting input files, Fix region for typesetting, Changing typesetter, %#記法 @comment node-name, next, previous, up @section 入力ファイル分割 @@ -244,10 +246,10 @@ 位置に次のような行を埋め込みます。 @example - %#!jlatex main.tex + %#!jlatex main.tex @end example -@cindex 入力ファイル分割[にゅうりょくふぁいるぶんかつ] +@cindex 入力ファイル分割[にゆうりよくふあいるふんかつ] 上の例のようにコマンド名だけでなく引数も書いた場合には、全てをそのまま shell に渡すので次のように書けば、ghostview などをプレヴューアに使う時に便 @@ -256,7 +258,7 @@ @cindex ghostview @example - %#!jlatex main ; dvi2ps main.dvi > main + %#!jlatex main ; dvi2ps main.dvi > main @end example なお、この行の最後の単語のピリオド以前を「メインファイル」のベース @@ -281,10 +283,10 @@ -@node Fix region for typesetting - 領域の固定, lpr format - プリントアウトコマンド用フォーマット, Splitting input files - 入力ファイル分割, %#記法 +@node Fix region for typesetting, lpr format, Splitting input files, %#記法 @comment node-name, next, previous, up @section 領域の固定 -@cindex 固定領域のタイプセット[こていりょういきのたいぷせっと] +@cindex 固定領域のタイプセット[こていりよういきのたいふせつと] @cindex %#BEGIN @cindex %#END @@ -293,9 +295,9 @@ すが、必ず決まった領域をタイプセットしたい場合は、その領域を @example - %#BEGIN - <渡したい領域> - %#END + %#BEGIN + <渡したい領域> + %#END @end example @noindent @@ -312,17 +314,17 @@ @item @code{%#BEGIN}よりバッファの末尾方向に@code{%#END}というキーワードが見つかっ た場合。 -→@code{%#BEGIN} から、その @code{%#END} のある位置まで。 +@result{}@code{%#BEGIN} から、その @code{%#END} のある位置まで。 @item @code{%#END} が見つからなかった場合。 -→バッファの最後尾まで。 +@result{}バッファの最後尾まで。 @end enumerate -@cindex 領域決定規則[りょういきけっていきそく] +@cindex 領域決定規則[りよういきけつていきそく] @item カーソル位置よりバッファの先頭方向に @code{%#BEGIN} というキーワードが 見つからなかった場合。 -→マーク(C-SPC位置)とポイント(カーソル位置)の間の領域。 +@result{}マーク(@kbd{C-SPC}位置)とポイント(カーソル位置)の間の領域。 @end enumerate tabular 環境を何度も試行錯誤しているような場合は、@code{\begin}の前の行 @@ -330,16 +332,16 @@ と簡単に作表結果をテストすることができます。また、長い .tex ファイルの後半 に @code{%#BEGIN} を書いておけば、前半の部分は無視できます。このBEGINとEND の消し忘れには十分ご注意下さい。 -@cindex 長いファイルの編集[ながいふぁいるのへんしゅう] +@cindex 長いファイルの編集[なかいふあいるのへんしゆう] -@node Require, lpr format - プリントアウトコマンド用フォーマット, Fix region for typesetting - 領域の固定, %#記法 +@node Require, lpr format, Fix region for typesetting, %#記法 @comment node-name, next, previous, up -@node lpr format - プリントアウトコマンド用フォーマット, Editing %# notation - %#記法の編集, Fix region for typesetting - 領域の固定, %#記法 +@node lpr format, Editing %# notation, Fix region for typesetting, %#記法 @comment node-name, next, previous, up @section lprフォーマット -@cindex lprふぉーまっと -@cindex lprフォーマット +@cindex lprふぉーまっと[lprふおおまつと] +@cindex lprフォーマット[lprふおおまつと] @cindex lpr format まず、プリントアウト用コマンド列のフォーマットについて説明します。 @@ -347,14 +349,14 @@ フォルトの dvi2ps 用のフォーマットを例に説明します。 @table @code -@item dviprint-command-format -"dvi2ps %f %t %s | lpr" +@item (1)dviprint-command-format +@code{"dvi2ps %f %t %s | lpr"} -@item dviprint-from-format -"-f %b" +@item (2)dviprint-from-format +@code{"-f %b"} -@item dviprint-to-format -"-t %e" +@item (3)dviprint-to-format +@code{"-t %e"} @end table 実際にプリントアウトする時は、(1)中の %s がファイル名に置き換えられ、%f が @@ -374,29 +376,29 @@ にする時に @example - %#LPR dvi2ps %s | lpr + %#LPR dvi2ps %s | lpr @end example @noindent などとするのも便利かもしれません。 -@node Editing %# notation - %#記法の編集, , lpr format - プリントアウトコマンド用フォーマット, %#記法 +@node Editing %# notation, , lpr format, %#記法 @comment node-name, next, previous, up @section %#記法自体の編集 -@cindex %#きほうじたいのへんしゅう +@cindex %#きほうじたいのへんしゅう[%#きほうしたいのへんしゆう] 以上のような@code{%#}で始まる各種制御記法を編集するためには @table @kbd @item [prefix] % - @dots{} %#記法編集メニュー + @dots{} @code{%#}@var{記法編集メニュー} @end table @noindent を押します。 @example - !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR + !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR @end example @noindent @@ -405,9 +407,9 @@ じめ設定したリジョンを @code{%#BEGIN} 〜 @code{%#END} で括りたい時は、 @kbd{b}を押します。@kbd{b}を選んだ時には、それまでバッファ中に置かれていた @code{%#BEGIN}, @code{%#END} が自動的に消去されます。 -@cindex lprフォーマットの変更[lprふぉーまっとのへんこう] +@cindex lprフォーマットの変更[lprふおおまつとのへんこう] -@node Completion - 補完入力, Commenting out - コメントアウト, %#記法, Top +@node Completion, Commenting out, %#記法, Top @comment node-name, next, previous, up @chapter 補完入力 @@ -419,18 +421,18 @@ * section型補完:: * large型補完:: * maketitle型補完:: -* Arbitrary completion - 随時補完:: +* Arbitrary completion:: 随時補完 * end補完:: -* Accent mark completion - アクセント記号補完:: -* Image completion - 数式記号イメージ補完:: -* Greek letter completion - ギリシャ文字補完:: +* Accent mark completion:: アクセント記号補完 +* Image completion:: 数式記号イメージ補完 +* Greek letter completion:: ギリシャ文字補完 @end menu -@node begin型補完, section型補完, Completion - 補完入力, Completion - 補完入力 +@node begin型補完, section型補完, Completion, Completion @comment node-name, next, previous, up @section begin型補完 -@cindex begin型補完[beginがたほかん] -@cindex 環境名の補完[かんきょうめいのほかん] +@cindex begin型補完[beginかたほかん] +@cindex 環境名の補完[かんきようめいのほかん] @cindex prefix b @code{\begin@{env@}...\end@{env@}}の様な形式の入力の補完をbegin型補完と @@ -438,7 +440,7 @@ @table @kbd @item [prefix] b - @dots{} begin 型補完開始(標準では C-c b) + @dots{} begin 型補完開始(標準では @kbd{C-c b}) @end table @noindent @@ -448,39 +450,39 @@ @table @kbd @item [prefix] b c - @dots{} @code{\begin@{center@}...\end@{center@}} + @dots{} @code{\begin@{center@}...\end@{center@}} @item [prefix] b d - @dots{} @code{\begin@{document@}...\end@{document@}} + @dots{} @code{\begin@{document@}...\end@{document@}} @item [prefix] b D - @dots{} @code{\begin@{description@}...\end@{description@}} + @dots{} @code{\begin@{description@}...\end@{description@}} @item [prefix] b e - @dots{} @code{\begin@{enumerate@}...\end@{enumerate@}} + @dots{} @code{\begin@{enumerate@}...\end@{enumerate@}} @item [prefix] b E - @dots{} @code{\begin@{equation@}...\end@{equation@}} + @dots{} @code{\begin@{equation@}...\end@{equation@}} @item [prefix] b i - @dots{} @code{\begin@{itemize@}...\end@{itemize@}} + @dots{} @code{\begin@{itemize@}...\end@{itemize@}} @item [prefix] b l - @dots{} @code{\begin@{flushleft@}...\end@{flushleft@}} + @dots{} @code{\begin@{flushleft@}...\end@{flushleft@}} @item [prefix] b m - @dots{} @code{\begin@{minipage@}...\end@{minipage@}} + @dots{} @code{\begin@{minipage@}...\end@{minipage@}} @item [prefix] b t - @dots{} @code{\begin@{tabbing@}...\end@{tabbing@}} + @dots{} @code{\begin@{tabbing@}...\end@{tabbing@}} @item [prefix] b T - @dots{} @code{\begin@{tabular@}...\end@{tabular@}} + @dots{} @code{\begin@{tabular@}...\end@{tabular@}} @item [prefix] b ^T - @dots{} @code{\begin@{table@}...\end@{table@}} + @dots{} @code{\begin@{table@}...\end@{table@}} @item [prefix] b p - @dots{} @code{\begin@{picture@}...\end@{picture@}} + @dots{} @code{\begin@{picture@}...\end@{picture@}} @item [prefix] b q - @dots{} @code{\begin@{quote@}...\end@{quote@}} + @dots{} @code{\begin@{quote@}...\end@{quote@}} @item [prefix] b Q - @dots{} @code{\begin@{quotation@}...\end@{quotation@}} + @dots{} @code{\begin@{quotation@}...\end@{quotation@}} @item [prefix] b r - @dots{} @code{\begin@{flushright@}...\end@{flushright@}} + @dots{} @code{\begin@{flushright@}...\end@{flushright@}} @item [prefix] b v - @dots{} @code{\begin@{verbatim@}...\end@{verbatim@}} + @dots{} @code{\begin@{verbatim@}...\end@{verbatim@}} @item [prefix] b V - @dots{} @code{\begin@{verse@}...\end@{verse@}} + @dots{} @code{\begin@{verse@}...\end@{verse@}} @end table 上記のもの以外の環境名は Emacs の持つインクリメンタルな補完機能を用いて @@ -488,7 +490,7 @@ @table @kbd @item [prefix] b @key{SPC} - @dots{} begin 型補完入力 + @dots{} begin 型補完入力 @end table @kbd{[prefix] b @key{SPC}} と入力すると、最下行のミニバッファに @@ -506,7 +508,7 @@ 入力の手間が省けます。内部テーブルに存在しない環境名を入力した時はユーザ専 用のテーブルに登録され、さらにそのテーブルを自動的に、ユーザ辞書(デフォル トでは @file{~/.yatexrc})に保存します。 -@cindex ユーザ辞書[ゆーざじしょ] +@cindex ユーザ辞書[ゆうさししよ] @subsection 既に書いたテキストを環境で括る @@ -515,8 +517,8 @@ 閉じこめたい段落をマークして、begin 型補完の各コマンドの @kbd{[prefix]} の次の『小文字の 'b'』 を『大文字』に変えて起動して下さい。(または、 @kbd{C-u} を先に打ち、universal argument をつけても可能です) -@cindex ブロック[ぶろっく] -@cindex 閉じ込める[とじこめる] +@cindex ブロック[ふろつく] +@cindex 閉じ込める[としこめる] 例えばあるパラグラフを description 環境の中に入れたいときは、 そのパラグラフをマークしてから、 @@ -531,10 +533,10 @@ @kbd{b} を大文字に変えて、@kbd{[prefix] B SPC} とタイプすれば、あらかじめ マークしておいたリジョンを、begin と end の環境で括ります。 -@node section型補完, large型補完, begin型補完, Completion - 補完入力 +@node section型補完, large型補完, begin型補完, Completion @comment node-name, next, previous, up @section section型補完 -@cindex section型補完[sectionがたほかん] +@cindex section型補完[sectionかたほかん] @cindex prefix s @code{\section@{目的@}} のような形式の入力の補完を section 型補完と呼ぶこ @@ -542,7 +544,7 @@ @table @kbd @item [prefix] s - @dots{} section 型補完 + @dots{} section 型補完 @end table @noindent @@ -559,7 +561,7 @@ る補完機能が有効です。 次に、@{@}の中身の入力を促す、 @example - \section@{???@}: + \section@{???@}: @end example @noindent @@ -567,30 +569,30 @@ たとえば、 @example - (C-v for view) \???@{@} (default documentstyle): section - \section@{???@}: 目的 + (C-v for view) \???@{@} (default documentstyle): section + \section@{???@}: 目的 @end example @noindent のように入力した場合は、文章中に @example - \section@{目的@} + \section@{目的@} @end example @noindent が挿入され、 @example - (C-v for view) \???@{@} (default section): vspace* - \vspace*@{???@}: + (C-v for view) \???@{@} (default section): vspace* + \vspace*@{???@}: @end example @noindent のように@{@}の中身を省略したときは、 @example - \vspace*@{@} + \vspace*@{@} @end example @noindent @@ -598,13 +600,13 @@ @menu * 2個以上の引数をとる section型コマンド:: -* Input argument without copletion - 引数入力時に補完しない:: -* Enclose region -type command - 既に書いたテキストを括る:: -* Recursive completion - 再帰補完:: -* view-sectioning - セクション区切りのアウトライン表示:: +* Input argument without copletion:: 引数入力時に補完しない +* Enclose region-type command:: +* Recursive completion:: 再帰補完 +* view-sectioning:: セクション区切りのアウトライン表示 @end menu -@node 2個以上の引数をとる section型コマンド, Input argument without copletion - 引数入力時に補完しない, section型補完, section型補完 +@node 2個以上の引数をとる section型コマンド, Input argument without copletion, section型補完, section型補完 @comment node-name, next, previous, up @subsection 2個以上の引数をとる section型コマンド @cindex 引数[ひきすう] @@ -628,19 +630,19 @@ @end example @noindent -のように入力してください。最初の addtolength の部分と、第一引数で -ある \topmargin の入力は当然スペースによる補完入力が可能です。ユー -ザ辞書に登録される La@TeX{} コマンドには、この引数の数も学習されるの -で、最初の補完の時引数の数を指定して起動しておけば、以後の補完時に -は、記憶された個数だけ引数を聞いて来るようになります。あとで引数の -個数を変えたい時は、再び C-u を用いて個数を指定し直すことで、自動 -的に辞書中の引数の個数の部分を更新します。 +のように入力してください。最初の addtolength の部分と、第一引数である +\topmargin の入力は当然スペースによる補完入力が可能です。ユーザ辞書に登録 +される La@TeX{} コマンドには、この引数の数も学習されるので、最初の補完の時 +引数の数を指定して起動しておけば、以後の補完時には、記憶された個数だけ引数 +を聞いて来るようになります。あとで引数の個数を変えたい時は、再び @kbd{C-u} +を用いて個数を指定し直すことで、自動的に辞書中の引数の個数の部分を更新しま +す。 @cindex 引数の個数を変える[ひきすうのこすうをかえる] -@node Input argument without copletion - 引数入力時に補完しない, Enclose region -type command - 既に書いたテキストを括る, 2個以上の引数をとる section型コマンド, section型補完 +@node Input argument without copletion, Enclose region-type command, 2個以上の引数をとる section型コマンド, section型補完 @comment node-name, next, previous, up @subsection 引数入力時に補完しない -@cindex 引数入力時に補完しない[ひきすうにゅうりょくじにほかんしない] +@cindex 引数入力時に補完しない[ひきすうにゆうりよくしにほかんしない] なお、特別な例として引数0を指定すると、第一引数の入力時に補完入力ではな く、単純な文字列入力を使用するようになります。段落を指定する@samp{chapter} @@ -649,7 +651,7 @@ 指定コマンド(chapter, section, paragraph など)に引数0の指定が埋め込まれて います。 -@node Enclose region -type command - 既に書いたテキストを括る, Recursive completion - 再帰補完, Input argument without copletion - 引数入力時に補完しない, section型補完 +@node Enclose region-type command, Recursive completion, Input argument without copletion, section型補完 @comment node-name, next, previous, up @subsection 既に書いたテキストを括る @cindex 括る[くくる] @@ -657,7 +659,7 @@ また、起動コマンドの@kbd{s}を大文字に変えて起動すると、あらかじめ書 いた文章を section 型コマンドの第一引数として括ります。 -@node Recursive completion - 再帰補完, view-sectioning - セクション区切りのアウトライン表示, Enclose region -type command - 既に書いたテキストを括る, section型補完 +@node Recursive completion, view-sectioning, Enclose region-type command, section型補完 @comment node-name, next, previous, up @subsection 再帰補完 @cindex 再帰補完[さいきほかん] @@ -667,7 +669,7 @@ 型コマンドの引数に更に La@TeX{} コマンドが来る場合にはミニバッファで野鳥の 補完キーを再帰的に入力することで引数の入力も効率的に行なえます。 -@node view-sectioning - セクション区切りのアウトライン表示, , Recursive completion - 再帰補完, section型補完 +@node view-sectioning, , Recursive completion, section型補完 @comment node-name, next, previous, up @subsection セクション区切りのアウトライン表示 @cindex アウトライン[あうとらいん] @@ -682,35 +684,35 @@ この一覧バッファにカーソルを移しスペースを押すと、該当するセクション区切り のある本文中の場所にジャンプします。 @cindex 論理階層[ろんりかいそう] -@cindex セクション区切り[せくしょんくぎり] -@cindex ジャンプ[じゃんぷ] +@cindex セクション区切り[せくしよんくきり] +@cindex ジャンプ[しやんふ] -@node large型補完, maketitle型補完, section型補完, Completion - 補完入力 +@node large型補完, maketitle型補完, section型補完, Completion @comment node-name, next, previous, up @section large型補完 -@cindex large型補完[largeがたほかん] +@cindex large型補完[largeかたほかん] @cindex prefix l @code{@{\large @}} のような形式の補完を large 型補完と呼ぶことにします。 @table @kbd @item [prefix] l - @dots{} large 型補完開始 + @dots{} large 型補完開始 @end table @noindent がlarge型補完の開始です。@kbd{[prefix] l} を押すと、ミニバッファに @example - @{\??? @} (default large): + @{\??? @} (default large): @end example @noindent と表示されるので、上記のものと同じ要領で補完入力して下さい。補完候補に用意 されているのは、@samp{footnotesize} や @samp{huge} のような文字サイズ指定 子と、@samp{bf}や@samp{dg}のようなフォント指定子です。 -@cindex 文字サイズ指定子[もじさいずしていし] -@cindex フォント指定子[ふぉんとしていし] +@cindex 文字サイズ指定子[もしさいすしていし] +@cindex フォント指定子[ふおんとしていし] @subsection 既に書いた文字を括る @cindex 括る[くくる] @@ -720,27 +722,27 @@ 字の範囲をマークしてから、呼び出しキーを @kbd{[prefix] L} と、大文字の L に変えて呼び出せば、そのリジョン全体が、ブレースで囲まれます。 -@node maketitle型補完, Arbitrary completion - 随時補完, large型補完, Completion - 補完入力 +@node maketitle型補完, Arbitrary completion, large型補完, Completion @comment node-name, next, previous, up @section maketitle型補完 -@cindex maketitle型補完[maketitleがたほかん] +@cindex maketitle型補完[maketitleかたほかん] @cindex prefix m @code{\maketitle} の形式の補完を maketitle 型補完と呼ぶことにします。 @table @kbd @item [prefix] m - @dots{} maketitle 型補完開始 + @dots{} maketitle 型補完開始 @end table @noindent で、maketitle 型補完を開始します。補完の要領は今までのものとまったく同じで す。La@TeX{} 用のコマンド名が補完候補として用意されています。 -@node Arbitrary completion - 随時補完, end補完, maketitle型補完, Completion - 補完入力 +@node Arbitrary completion, end補完, maketitle型補完, Completion @comment node-name, next, previous, up @section 随時補完 -@cindex 随時補完[ずいじほかん] +@cindex 随時補完[すいしほかん] @cindex prefix SPC さて、今まで述べた典型的な La@TeX{} コマンド形式の補完入力を用いずに、今 @@ -749,14 +751,14 @@ @table @kbd @item [prefix] SPC - @dots{} 随時補完 + @dots{} 随時補完 @end table @noindent を入力すれば、全ての補完候補の中から一致するものが選ばれカーソル位置に挿入 されます。 -@node end補完, Accent mark completion - アクセント記号補完, Arbitrary completion - 随時補完, Completion - 補完入力 +@node end補完, Accent mark completion, Arbitrary completion, Completion @comment node-name, next, previous, up @section end補完 @cindex end補完[endほかん] @@ -769,31 +771,31 @@ @table @kbd @item [prefix] e - @dots{} end 補完 + @dots{} end 補完 @end table @noindent - とすることで、現在開いている環境名で \end{} が補われます。 + とすることで、現在開いている環境名で \end{} が補われます。 -@node Accent mark completion - アクセント記号補完, Image completion - 数式記号イメージ補完, end補完, Completion - 補完入力 +@node Accent mark completion, Image completion, end補完, Completion @comment node-name, next, previous, up @section アクセント記号補完 -@cindex アクセント記号補完[あくせんときごうほかん] +@cindex アクセント記号補完[あくせんときこうほかん] @cindex prefix a -@cindex 欧文[おうぶん] +@cindex 欧文[おうふん] 欧文のアクセント記号(@code{\`@{o@}}など)を入力する時は、 @table @kbd @item [prefix] a - @dots{} アクセント記号入力 + @dots{} アクセント記号入力 @end table @noindent を押すと、ミニバッファに @example - 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b + 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b @end example @noindent @@ -801,30 +803,30 @@ して下さい。すると編集バッファに、 @example - \`@{@} + \`@{@} @end example @noindent があらわれ、カーソルが@{@}内に位置するので、さらに一文字入力する事で、 @example - \`@{o@} + \`@{o@} @end example @noindent が完成され、カーソルは@{@}の外に戻ります。 -@node Image completion - 数式記号イメージ補完, Greek letter completion - ギリシャ文字補完, Accent mark completion - アクセント記号補完, Completion - 補完入力 +@node Image completion, Greek letter completion, Accent mark completion, Completion @comment node-name, next, previous, up @section 数式記号イメージ補完 -@cindex 数式記号イメージ補完[すうしききごういめーじほかん] -@cindex イメージ補完[いめーじほかん] +@cindex 数式記号イメージ補完[すうしききこういめえしほかん] +@cindex イメージ補完[いめえしほかん] @cindex ; -@cindex 数式モード[すうしきもーど] -@cindex 矢印[やじるし] -@cindex Σ[しぐま] +@cindex 数式モード[すうしきもおと] +@cindex 矢印[やしるし] +@cindex Σ[しくま] @cindex leftarrow -@cindex ∞[むげんだい] +@cindex ∞[むけんたい] 主に数式モードで使用される、矢印やΣなどの記号を擬似的に表現するキー入力 で、La@TeX{} コマンドを入力できます。これは野鳥自身の「数式モード」でのみ @@ -860,7 +862,7 @@ 入力の途中でTABを押すと、それまで入力した文字で始まるもの一覧が表示されま す。ここで目的の La@TeX{} コマンドまでカーソルを移動し再度TABを押すことで その La@TeX{} コマンドがバッファに挿入されます。 -@cindex ;自身[;じしん] +@cindex ;自身[;ししん] どのキー入力にどの記号が対応しているか全て知りたい時は、@kbd{;}を押した 直後にリターンキーを押してください。以下の例は、@kbd{;<}と押した後にTAB @@ -888,10 +890,10 @@ 照してください。 @cindex YaTeX-math-sign-alist-private -@node Greek letter completion - ギリシャ文字補完, , Image completion - 数式記号イメージ補完, Completion - 補完入力 +@node Greek letter completion, , Image completion, Completion @comment node-name, next, previous, up @section ギリシャ文字補完 -@cindex ギリシャ文字補完[ぎりしゃもじほかん] +@cindex ギリシャ文字補完[きりしやもしほかん] @cindex / もう一つ、数式環境中で@kbd{/}を押すとギリシャ文字入力モードに入ります。 @@ -906,7 +908,7 @@ とにより、強制的にイメージ補完に入ることができます。また、この時にどのよう な状態で数式環境内判定に失敗したかをご連絡下さい。 -@node Commenting out - コメントアウト, Cursor jump - カーソルジャンプ, Completion - 補完入力, Top +@node Commenting out, Cursor jump, Completion, Top @comment node-name, next, previous, up @chapter コメントアウト @cindex コメントアウト[こめんとあうと] @@ -921,9 +923,9 @@ @table @kbd @item [prefix] > - @dots{} リジョンを % でコメントアウト + @dots{} リジョンを % でコメントアウト @item [prefix] < - @dots{} リジョンの % のコメントを外す + @dots{} リジョンの % のコメントを外す @end table @noindent @@ -931,9 +933,9 @@ @table @kbd @item [prefix] . - @dots{} 現在のパラグラフをコメントアウト + @dots{} 現在のパラグラフをコメントアウト @item [prefix] , - @dots{} 現在のパラグラフのコメントを外す + @dots{} 現在のパラグラフのコメントを外す @end table @noindent @@ -949,9 +951,9 @@ @table @kbd @item [prefix] > - @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントアウト + @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントアウト @item [prefix] < - @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントを外す + @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントを外す @end table @noindent @@ -959,9 +961,9 @@ @table @kbd @item [prefix] . - @dots{} @code{\begin@{@}} と @code{\end@{@}} をコメントアウト + @dots{} @code{\begin@{@}} と @code{\end@{@}} をコメントアウト @item [prefix] , - @dots{} @code{\begin@{@}} と @code{\end@{@}} のコメントを外す + @dots{} @code{\begin@{@}} と @code{\end@{@}} のコメントを外す @end table は、対応する @code{\begin} と @code{\end} 2行だけを、コメント操作の対象と @@ -970,17 +972,17 @@ ると@code{\begin@{@}}〜@code{\end@{@}}モードでコメント機能が働いてしまうの で注意して下さい。 -@node Cursor jump - カーソルジャンプ, Modifying/Deleting - 変更/削除, Commenting out - コメントアウト, Top +@node Cursor jump, Modifying/Deleting, Commenting out, Top @comment node-name, next, previous, up @chapter カーソルジャンプ -@cindex カーソルジャンプ[かーそるじゃんぷ] +@cindex カーソルジャンプ[かあそるしやんふ] @cindex prefix g @code{\begin@{@}} や @code{\end@{@}} の行にカーソルを合わせ、 @table @kbd @item [prefix] g - @dots{} 対応するオブジェクトにジャンプ + @dots{} 対応するオブジェクトにジャンプ @end table @noindent @@ -995,9 +997,9 @@ @table @kbd @item [prefix] ^ - @dots{} メインファイルにジャンプ + @dots{} メインファイルにジャンプ @item [prefix] 4 ^ - @dots{} 別ウィンドウでメインファイルにジャンプ + @dots{} 別ウィンドウでメインファイルにジャンプ @end table @noindent @@ -1007,15 +1009,15 @@ @table @kbd @item M-C-a - @dots{} 環境の先頭(@code{\begin})へジャンプ + @dots{} 環境の先頭(@code{\begin})へジャンプ @item M-C-e - @dots{} 環境の末尾(@code{\end})へジャンプ + @dots{} 環境の末尾(@code{\end})へジャンプ @item M-C-@@ - @dots{} 環境全体をマーク + @dots{} 環境全体をマーク @end table -@cindex 環境の先頭へ[かんきょうのせんとうへ] -@cindex 環境の末尾へ[かんきょうのまつびへ] -@cindex 環境をマーク[かんきょうをまーく] +@cindex 環境の先頭へ[かんきようのせんとうへ] +@cindex 環境の末尾へ[かんきようのまつひへ] +@cindex 環境をマーク[かんきようをまあく] @cindex M-C-a @cindex M-C-e @cindex M-C-@@ @@ -1023,10 +1025,10 @@ 上記のコマンドは通常の@kbd{[prefix]}キーではなく@kbd{META}キーをプリフィク スとして機能するのでご注意下さい。 -@node Modifying/Deleting - 変更/削除, Filling item - itemの桁揃え, Cursor jump - カーソルジャンプ, Top +@node Modifying/Deleting, Filling item, Cursor jump, Top @comment node-name, next, previous, up @chapter 変更/削除 -@cindex 変更/削除[へんこう/さくじょ] +@cindex 変更/削除[へんこう/さくしよ] @cindex prefix c @cindex prefix k @@ -1035,9 +1037,9 @@ @table @kbd @item [prefix] c - @dots{} カーソル位置の La@TeX{} コマンドの変更 + @dots{} カーソル位置の La@TeX{} コマンドの変更 @item [prefix] k - @dots{} カーソル位置の La@TeX{} コマンドの削除 + @dots{} カーソル位置の La@TeX{} コマンドの削除 @end table @noindent @@ -1047,8 +1049,8 @@ @kbd{[prefix] c} は、@code{\begin@{@}} または @code{\end@{@}} のある場所で 起動すると、環境名の変更を行います。@kbd{[prefix] k} は起動する位置により 次のような動作を行います。 -@cindex 環境名の変更[かんきょうめいのへんこう] -@cindex 環境の削除[かんきょうのさくじょ] +@cindex 環境名の変更[かんきようめいのへんこう] +@cindex 環境の削除[かんきようのさくしよ] @example @@ -1067,15 +1069,15 @@ て下さい。 @example - 元のテキスト: [prefix] k C-u [prefix] k - 本文\footnote@{脚注@}です。 本文脚注です。 本文です。 - ↑(カーソル位置) + 元のテキスト: [prefix] k C-u [prefix] k + 本文\footnote@{脚注@}です。 本文脚注です。 本文です。 + ↑(カーソル位置) @end example -@node Filling item - itemの桁揃え, Local dictionary - ローカル辞書, Modifying/Deleting - 変更/削除, Top +@node Filling item, Local dictionary, Modifying/Deleting, Top @comment node-name, next, previous, up @chapter itemの桁揃え -@cindex itemの桁揃え[itemのけたぞろえ] +@cindex itemの桁揃え[itemのけたそろえ] @cindex prefix i itemize 環境中にある@code{\item}の項目(文章)が複数行に渡る場合に、項 @@ -1083,14 +1085,14 @@ @table @kbd @item [prefix] i - @dots{} itemの桁揃え + @dots{} itemの桁揃え @end table @noindent によって、その item のインデントの深さに応じて fill されます。なお、NTT jTeX を使用している場合には、Lisp 変数@code{NTT-jTeX}を@code{t}にセットし て下さい。 -@cindex NTT-jTeX[えぬてぃーてぃーじぇーてっく] +@cindex NTT-jTeX[えぬていいていいしえいてつく] このとき、変数@code{YaTeX-item-regexp}の値(標準では @code{"\\\\item"})を 項目指定コマンドの正規表現として検索に使用します。itemize 環境で、独自のコ @@ -1099,20 +1101,20 @@ @cindex YaTeX-item-regexp @lisp - (setq YaTeX-item-regexp - "\\(\\\\item\\)\\|\\(\\\\underlineitem\\)") + (setq YaTeX-item-regexp + "\\(\\\\item\\)\\|\\(\\\\underlineitem\\)") @end lisp @noindent この変数の指定の仕方がよく分からない場合は、独自の項目列挙コマンドの名前を @code{@code{"\item"}で始まるものにして下さい(例えば"\itembf"})。 -@node Local dictionary - ローカル辞書, Includeonly - 勝手にincludeonly, Filling item - itemの桁揃え, Top +@node Local dictionary, Includeonly, Filling item, Top @comment node-name, next, previous, up @chapter ローカル辞書 -@cindex ローカル辞書[ろーかるじしょ] +@cindex ローカル辞書[ろおかるししよ] @cindex .yatexrc -@cindex へんなたんご[へんなたんご] +@cindex 変な単語[へんなたんこ] 補完入力用の候補は三種類の辞書から構成されています。一つは @file{yatex.el}に組み込まれた「標準辞書」、もう一つはユーザが個人的に常用 @@ -1135,32 +1137,32 @@ 合には@file{~/.emacs}などで、 @lisp - (setq YaTeX-nervous nil) + (setq YaTeX-nervous nil) @end lisp @cindex YaTeX-nervous @noindent として下さい。 -@node Includeonly - 勝手にincludeonly, Where am I? - 今はどこ?, Local dictionary - ローカル辞書, Top +@node Includeonly, Where am I?, Local dictionary, Top @comment node-name, next, previous, up @chapter 勝手にincludeonly -@cindex 勝手にincludeonly[かってにincludeonly] +@cindex 勝手にincludeonly[かつてにincludeonly] @cindex includeonly ファイルを分割して文章を入力している時には、メインファイル中に @example - \includeonly@{現在編集中のファイル名@} + \includeonly@{現在編集中のファイル名@} @end example @noindent のように書いておくことで、タイプセットの時間を節約できますが、ちょっと他の ファイルを手直ししたい時には -@cindex 他のファイルの手直し[ほかのふぁいるのてなおし] +@cindex 他のファイルの手直し[ほかのふあいるのてなおし] @example - \includeonly@{ちょっと手直ししたいファイル名@} + \includeonly@{ちょっと手直ししたいファイル名@} @end example @noindent @@ -1169,7 +1171,7 @@ を仰ぎます。 @example - A)dd R)eplace %)comment? + A)dd R)eplace %)comment? @end example @noindent @@ -1178,26 +1180,26 @@ @code{\includeonly} の行をコメントアウトして無効化したい時には、@kbd{%}を それぞれ押して下さい。 -@node Where am I? - 今はどこ?, Intelligent newline - おまかせ改行, Includeonly - 勝手にincludeonly, Top +@node Where am I?, Intelligent newline, Includeonly, Top @comment node-name, next, previous, up @chapter 今はどこ? -@cindex 今はどこ?[いまはどこ] +@cindex 今はどこ?[いまはとこ] @cindex prefix & -@cindex 複雑なtabular[ふくざつなtabular] +@cindex 複雑なtabular[ふくさつなtabular] 項目数の多い tabular などをたくさん書いていると下の方の行で、いま書いて いる桁がどこに対応するのかわからなくなってしまうことがあります。例えば、以 下のような tabular において、 @example - \begin@{tabular@}{|c|c|c|c|c|c|c|c|}\hline - 氏名&所属&〒&住所&電話&FAX&帰省先&帰省先電話\\ \hline - 矢上二郎 & 6 & 223 & 横浜市港北区日吉 & xxx-yyy & - zzz-www & トンガ & 9876-54321 \\ - 日吉小僧 & 2 & \multicolumn@{2@}@{c|@}@{教えない@} - &&&(???) - \\ \hline - \end@{tabular@} + \begin@{tabular@}{|c|c|c|c|c|c|c|c|}\hline + 氏名&所属&〒&住所&電話&FAX&帰省先&帰省先電話\\ \hline + 矢上二郎 & 6 & 223 & 横浜市港北区日吉 & xxx-yyy & + zzz-www & トンガ & 9876-54321 \\ + 日吉小僧 & 2 & \multicolumn@{2@}@{c|@}@{教えない@} + &&&(???) + \\ \hline + \end@{tabular@} @end example @noindent @@ -1205,16 +1207,16 @@ @table @kbd @item [prefix] & - @dots{} 現在のカラム表示 + @dots{} 現在のカラム表示 @end table -@cindex 現在のカラム表示[げんざいのからむひょうじ] +@cindex 現在のカラム表示[けんさいのからむひようし] を押すとカーソル位置のカラムがどの項目に該当するかをミニバッファに表示しま す。tabular/array環境の第1行目を項目名の並びとみなして対応するものを探しま す。もし項目名として別のものを与えたい場合は、行頭を@code{%}にしてダミーの 項目並びを作っておくと良いでしょう。 -@node Intelligent newline - おまかせ改行, Online help - オンラインヘルプ, Where am I? - 今はどこ?, Top +@node Intelligent newline, Online help, Where am I?, Top @comment node-name, next, previous, up @chapter おまかせ改行 @cindex おまかせ改行[おまかせかいぎょう] @@ -1225,7 +1227,7 @@ @table @kbd @item ESC RET - @dots{} おまかせ改行 + @dots{} おまかせ改行 @end table @noindent @@ -1237,15 +1239,15 @@ @itemize @item @code{tabular}, @code{tabular*}, @code{array} - カラム数-1 だけの @code{&} と @code{\\}。必要に応じて @code{\hline} + カラム数-1 だけの @code{&} と @code{\\}。必要に応じて @code{\hline} @item @code{tabbing} - 一行目で定義している @code{\=} と同じ個数の @code{\>}。 + 一行目で定義している @code{\=} と同じ個数の @code{\>}。 @item @code{itemize}, @code{enumerate}, @code{description}, @code{list} - @code{\item} または @code{item[]} + @code{\item} または @code{item[]} @end itemize tabular 環境の例のように、本機能は各環境の一行目の内容を参考にして動作す @@ -1259,12 +1261,12 @@ いでしょう。関数 @code{YaTeX-intelligent-newline-itemize} の定義などを参考 にしてください。 -@node Online help - オンラインヘルプ, Cooperation with other packages - 他パッケージとの連携, Intelligent newline - おまかせ改行, Top +@node Online help, Cooperation with other packages, Intelligent newline, Top @comment node-name, next, previous, up @chapter オンラインヘルプ -@cindex オンラインヘルプ[おんらいんへるぷ] +@cindex オンラインヘルプ[おんらいんへるふ] @cindex apropos -@cindex キーワード検索[きーわーどけんさく] +@cindex キーワード検索[きいわあとけんさく] @cindex prefix ? @cindex prefix / @@ -1273,14 +1275,14 @@ @table @kbd @item [prefix] ? - @dots{} オンラインヘルプ + @dots{} オンラインヘルプ @item [prefix] / - @dots{} オンラインapropos + @dots{} オンラインapropos @end table @section オンラインヘルプ -@cindex グローバルヘルプ[ぐろーばるへるぷ] -@cindex プライベートヘルプ[ぷらいべーとへるぷ] +@cindex グローバルヘルプ[くろおはるへるふ] +@cindex プライベートヘルプ[ふらいへえとへるふ] 「オンラインヘルプ」は、一般的な La@TeX{} コマンド(デフォルトでカーソル 位置のコマンド)に対する説明を隣のバッファに表示します。この時参照されるヘ @@ -1306,14 +1308,14 @@ 対する説明を書いたならばぜひ私までその説明をお送り下さい。次回の配布に含め たいと思います。 -@node Cooperation with other packages - 他パッケージとの連携, Customizations - カスタマイズ, Online help - オンラインヘルプ, Top +@node Cooperation with other packages, Customizations, Online help, Top @comment node-name, next, previous, up @chapter 他パッケージとの連携 -@cindex 他パッケージとの連携[たぱっけーじとのれんけい] +@cindex 他パッケージとの連携[たはつけえしとのれんけい] @section gmhist @cindex gmhist -@cindex コマンドヒストリ[こまんどひすとり] +@cindex コマンドヒストリ[こまんとひすとり] @cindex ヒストリ[ひすとり] @file{gmhist.el}と@file{gmhist-mh.el} をロードしている場合、プレヴューコ @@ -1327,28 +1329,28 @@ @file{min-out.el} (@code{outline-minor-mode}) と野鳥を組み合わせて使うこ とももちろん可能です。設定の方法に関しては@file{yatexm-o.el}をご覧ください。 -@node Customizations - カスタマイズ, Etc - その他, Cooperation with other packages - 他パッケージとの連携, Top +@node Customizations, Etc, Cooperation with other packages, Top @comment node-name, next, previous, up @chapter カスタマイズ -@cindex カスタマイズ[かすたまいず] -@cindex キーアサイン[きーあさいん] +@cindex カスタマイズ[かすたまいす] +@cindex キーアサイン[きいあさいん] 野鳥の動作を制御する種々の変数を独自に設定することにより、補完入 力を起動するキーアサインを変えたり、環境名の補完候補をさらに充実さ せることなどができます。 @menu -* Lisp variables - lisp 変数:: -* Add-in functions - 付加関数(アドイン関数):: +* Lisp variables:: lisp 変数 +* Add-in functions:: 付加関数(アドイン関数) @end menu -@node Lisp variables - lisp 変数, Add-in functions - 付加関数(アドイン関数), Customizations - カスタマイズ, Customizations - カスタマイズ +@node Lisp variables, Add-in functions, Customizations, Customizations @comment node-name, next, previous, up @section lisp 変数 -@cindex prefixキー変更[prefixきーへんこう] +@cindex prefixキー変更[prefixきいへんこう] 例えば prefix キーを @kbd{C-c} 以外のキーにしたい場合は、 -@code{YaTeX-prefix }に prefix キーにしたいシンボルを定義してください。さら +@code{YaTeX-prefix}に prefix キーにしたいシンボルを定義してください。さら に、「@kbd{C-c 英字}」というキーバインドは独自の関数が割り当ててあるので使 いたくない。このような時は、@code{YaTeX-inhibit-prefix-letter} を @code{t} に設定することにより、@kbd{C-c 英字…}のバインドが全て、対応する@kbd{C-c @@ -1357,184 +1359,183 @@ トして下さい。)。 @menu -* All customizable variables - カスタマイズ変数一覧:: -* Sample definitions - カスタマイズ変数設定例:: -* Hook variables - hook変数:: -* Hook file - hook用ファイル:: +* All customizable variables:: カスタマイズ変数一覧 +* Sample definitions:: カスタマイズ変数設定例 +* Hook variables:: hook変数 +* Hook file:: hook用ファイル @end menu -@node All customizable variables - カスタマイズ変数一覧, Sample definitions - カスタマイズ変数設定例, Lisp variables - lisp 変数, Lisp variables - lisp 変数 +@node All customizable variables, Sample definitions, Lisp variables, Lisp variables @comment node-name, next, previous, up @subsection カスタマイズ変数一覧 -@cindex カスタマイズ変数一覧[かすたまいずへんすういちらん] +@cindex カスタマイズ変数一覧[かすたまいすへんすういちらん] yatex-mode における次の変数がカスタマイズ可能です。@file{~/.emacs} で @code{setq} しておけば、そちらの定義が優先されます。括弧の中はデフォルト値 です。 -@table @samp -@item YaTeX-prefix +@defvar YaTeX-prefix +yatex-mode 中のプリフィクスキー(@kbd{C-c}) +@end defvar -yatex-mode 中のプリフィクスキー(@kbd{C-c}) - -@item YaTeX-inhibit-prefix-letter - +@defvar YaTeX-inhibit-prefix-letter prefix キーの直後のキーバインドで@kbd{英字}のものを@kbd{C-英字}に変更 (@code{nil}) +@end defvar -@item YaTeX-fill-prefix +@defvar YaTeX-fill-prefix +本文を書く時の行頭に挿入する接頭辞すなわち fill-prefix (@code{""(nil)}) +@end defvar -本文を書く時の行頭に挿入する接頭辞すなわち fill-prefix (@code{""(nil)}) +@defvar YaTeX-open-lines +\begin{環境}と\end{環境}のあいだの空白行数 (0) +@end defvar -@item YaTeX-open-lines +@defvar YaTeX-user-completion-table +学習したLa@TeX{}コマンド保存ファイル名(@code{"~/.yatexrc"}) +@end defvar -\begin{環境}と\end{環境}のあいだの空白行数 (0) +@defvar YaTeX-kanji-code +文書を作成する時の漢字コード1=Shift JIS, 2=JIS, 3=EUC(2 (MS-DOSでは1)) +@end defvar -@item YaTeX-user-completion-table +@defvar YaTeX-item-regexp +itemの桁揃えの時に用いる、itemの正規表現(@code{"\\\\item"}) +@end defvar -学習したLa@TeX{}コマンド保存ファイル名(@code{"~/.yatexrc"}) +@defvar tex-command +La@TeX{}タイプセッタコマンド名 (@code{"jlatex"}) +@end defvar -@item YaTeX-kanji-code +@defvar dvi2-command +プレヴューアコマンド名(@code{"xdvi -geo +0+0 -s 4 -display (getenv"DISPLAY")"}) +@end defvar -文書を作成する時の漢字コード1=Shift JIS, 2=JIS, 3=EUC(2 (MS-DOSでは1)) +@defvar dviprint-command-format +dviファイルの印刷に使われるコマンド式(@code{"dvi2ps %f %t %s | lpr"}) +@end defvar -@item YaTeX-item-regexp - -itemの桁揃えの時に用いる、itemの正規表現(@code{"\\\\item"}) - -@item tex-command - -La@TeX{}タイプセッタコマンド名 (@code{"jlatex"}) - -@item dvi2-command - -プレヴューアコマンド名(@code{"xdvi -geo +0+0 -s 4 -display (getenv"DISPLAY")"}) - -@item dviprint-command-format - -dviファイルの印刷に使われるコマンド式(@code{"dvi2ps %f %t %s | lpr"}) - -@item dviprint-from-format - +@defvar dviprint-from-format 上の@code{%f}に相当する開始ページ指定書式、@code{%b} が開始ページ番号に変 わる(@code{"-f %b"}) +@end defvar -@item dviprint-to-format - +@defvar dviprint-to-format @code{%t} に相当する終了ページ指定書式、@code{%e}が終了ページ番号に変わる (@code{"-t %e"}) +@end defvar -@item section-name +@defvar section-name +最初のsection型補完の規定値(@code{"documentstyle"}) +@end defvar -最初のsection型補完の規定値(@code{"documentstyle"}) +@defvar env-name +最初のbegin型補完の規定値(@code{"document"}) +@end defvar -@item env-name +@defvar fontsize-name +最初のlarge型補完の規定値(@code{"large"}) +@end defvar -最初のbegin型補完の規定値(@code{"document"}) +@defvar single-command +@end defvar +最初のmaketitle型補完の規定値(@code{"maketitle"}) -@item fontsize-name +@defvar YaTeX-need-nonstop +@code{\nonstopmode@{@}}を自動的に付加するか(@code{nil}) +@end defvar -最初のlarge型補完の規定値(@code{"large"}) +@defvar latex-warning-regexp +latexコマンドの出力するウォーニング行の正規表現(@code{"line.* [0-9]*"}) +@end defvar -@item single-command +@defvar latex-error-regexp +同じくエラー行の正規表現(@code{"l\\.[1-9][0-9]*"}) +@end defvar -最初のmaketitle型補完の規定値(@code{"maketitle"}) -@item YaTeX-need-nonstop - -@code{\nonstopmode@{@}}を自動的に付加するか(@code{nil}) - -@item latex-warning-regexp - -latexコマンドの出力するウォーニング行の正規表現(@code{"line.* [0-9]*"}) - -@item latex-error-regexp - -同じくエラー行の正規表現(@code{"l\\.[1-9][0-9]*"}) - -@item latex-dos-emergency-message - +@defvar latex-dos-emergency-message MS-DOS上で動作する latex コマンドが、エラーにより停止するとき出力するメッ セージ (@code{"Emergency stop"}) +@end defvar -@item latex-message-kanji-code - +@defvar latex-message-kanji-code jlatex コマンドの出力するメッセージの漢字コード.タイプセットバッファ の出力が化ける時は、これを設定する(2, Nemacsでのみ有効) +@end defvar -@item NTT-jTeX +@defvar NTT-jTeX +NTT-j@TeX{}使用時@code{t}にする(@code{nil}) +@end defvar -NTT-j@TeX{}使用時@code{t}にする(@code{nil}) +@defvar YaTeX-item-regexp +item化コマンドの正規表現(@code{"\\\\(sub\\)*item"}) +@end defvar -@item YaTeX-item-regexp +@defvar YaTeX-nervous +ローカル辞書を用いる時 @code{t} (@code{t}) +@end defvar -item化コマンドの正規表現(@code{"\\\\(sub\\)*item"}) - -@item YaTeX-nervous - -ローカル辞書を用いる時 @code{t} (@code{t}) - -@item YaTeX-sectioning-regexp - +@defvar YaTeX-sectioning-regexp セクション区切り設定コマンドの正規表現 (@code{"part\\|chapter\\|\\(sub\\)*\\(section\\|paragraph\\)"}) +@end defvar -@item YaTeX-fill-inhibit-environments +@defvar YaTeX-fill-inhibit-environments +fill を抑止する環境名のリスト(@code{'("verbatim" "tabular")}) +@end defvar -fill を抑止する環境名のリスト(@code{'("verbatim" "tabular")}) +@defvar YaTeX-uncomment-once +領域uncommentで行頭の複数の@code{%}を全て削除するか(@code{nil}) +@end defvar -@item YaTeX-uncomment-once +@defvar YaTeX-close-paren-always +開き括弧の入力で常に閉じ括弧を入力する(@code{t}) +@end defvar -領域uncommentで行頭の複数の@code{%}を全て削除するか(@code{nil}) +@defvar YaTeX-auto-math-mode +数式モードの切り替えを自動的に行う。(@code{nil}) +@end defvar -@item YaTeX-close-paren-always - -開き括弧の入力で常に閉じ括弧を入力する(@code{t}) - -@item YaTeX-auto-math-mode - -数式モードの切り替えを自動的に行う。(@code{nil}) - -@item YaTeX-default-pop-window-height - +@defvar YaTeX-default-pop-window-height 1画面の時にタイプセットバッファを初めて作成する時の高さ。数値で行数、数字 文字列でEmacsウィンドウに対する百分率(10)。 +@end defvar -@item YaTeX-help-file +@defvar YaTeX-help-file +共用ヘルプファイル(@file{$EMACS/etc/YATEXHLP.jp}) +@end defvar -共用ヘルプファイル(@file{$EMACS/etc/YATEXHLP.jp}) +@defvar YaTeX-help-file-private +個人用ヘルプファイル(@file{"~/YATEXHLP.jp"}) +@end defvar -@item YaTeX-help-file-private - -個人用ヘルプファイル(@file{"~/YATEXHLP.jp"}) - -@item YaTeX-no-begend-shortcut - +@defvar YaTeX-no-begend-shortcut @kbd{[prefix] b ??} のショートカットを使わず、@kbd{[prefix] b} だけで補完 入力に入る(@kbd{nil}) -@end table +@end defvar -@node Sample definitions - カスタマイズ変数設定例, Hook variables - hook変数, All customizable variables - カスタマイズ変数一覧, Lisp variables - lisp 変数 +@node Sample definitions, Hook variables, All customizable variables, Lisp variables @comment node-name, next, previous, up @subsection カスタマイズ変数設定例 -@cindex 設定例[せっていれい] +@cindex 設定例[せつていれい] たとえば、prefix キーとして@kbd{ESC}を使用し、新たな補完候補を格納するファ イルを、@file{~/src/emacs/yatexrc} にし、行頭の prefix をタブ文字一つに変 えたいときは、 @lisp - (setq YaTeX-prefix "\e" - YaTeX-user-completion-table "~/src/emacs/yatexrc" - YaTeX-fill-prefix " ") + (setq YaTeX-prefix "\e" + YaTeX-user-completion-table "~/src/emacs/yatexrc" + YaTeX-fill-prefix " ") @end lisp @noindent を @file{~/.emacs} に加えます。 -@node Hook variables - hook変数, Hook file - hook用ファイル, Sample definitions - カスタマイズ変数設定例, Lisp variables - lisp 変数 +@node Hook variables, Hook file, Sample definitions, Lisp variables @comment node-name, next, previous, up @subsection hook変数 -@cindex hook変数[hook変数] +@cindex hook変数[hookへんすう] @cindex yatex-mode-hook @cindex yatex-mode-load-hook @@ -1547,8 +1548,8 @@ のように設定します。 @lisp - (setq yatex-mode-hook - '(lambda () (outline-minor-mode t))) + (setq yatex-mode-hook + '(lambda () (outline-minor-mode t))) @end lisp @noindent @@ -1559,14 +1560,14 @@ 挿入します。 @lisp - (setq yatex-mode-load-hook - '(lambda() (YaTeX-define-begend-key "ba" "abstract"))) + (setq yatex-mode-load-hook + '(lambda() (YaTeX-define-begend-key "ba" "abstract"))) @end lisp なお、新たなキーの定義には、関数 @code{YaTeX-define-key} @code{YaTeX-define-begend-key}を利用するようにしてください。 -@node Hook file - hook用ファイル, , Hook variables - hook変数, Lisp variables - lisp 変数 +@node Hook file, , Hook variables, Lisp variables @comment node-name, next, previous, up @subsection hook用ファイル @@ -1575,7 +1576,7 @@ 初期化の時に自動的にロードします。 -@node Add-in functions - 付加関数(アドイン関数), , Lisp variables - lisp 変数, Customizations - カスタマイズ +@node Add-in functions, , Lisp variables, Customizations @comment node-name, next, previous, up @section 付加関数(アドイン関数) @@ -1583,7 +1584,7 @@ るための関数を作成することができます。この関数の作成方法や、組み込み方法に 関しては、@code{yatexadd.doc} をご覧ください。 -@node Etc - その他, Copying - 取り扱い, Customizations - カスタマイズ, Top +@node Etc, Copying, Customizations, Top @comment node-name, next, previous, up @chapter その他 @@ -1594,7 +1595,7 @@ せることで、あなたの La@TeX{} スタイルにあった野鳥へと育っていくことでしょ う。 -@node Copying - 取り扱い, , Etc - その他, Top +@node Copying, Concept Index, Etc, Top @comment node-name, next, previous, up @chapter 取り扱い @@ -1613,6 +1614,19 @@ 広瀬雄二 @end flushright +@node Concept Index, , Copying, Top +@comment node-name, next, previous, up +@unnumbered 索引 +@printindex cp + +@c カスタマイズ変数索引を索引と分離する場合にはコメントアウトを外す!!! +@c @node Variable Index +@c @comment node-name, next, previous, up +@c @unnumbered カスタマイズ変数索引 +@c @printindex vr + +@contents + @bye @c Local Variables: diff -r b0fc9c2950cd -r cd1b63102eed help/YATEXHLP.jp --- a/help/YATEXHLP.jp Sun Jul 24 15:07:23 1994 +0000 +++ b/help/YATEXHLP.jp Mon Sep 19 16:54:19 1994 +0000 @@ -1044,6 +1044,13 @@ alpha "Foo94" のようなタグをつける abbrv 著者のファーストネーム、発行月、書籍名が省略される +thebibliography +\begin{thebibliography} \bibitem{アイテム}… \end{thebibliography} +参考文献データの登録環境を開始する。 +データは \bibitem コマンドによって登録する。 +\bibitem コマンドの用法は以下の通り。 + + bibitem \bibitem{NAME} \bibitem[LABEL]{NAME} \bibitem{NAME}の書式では、NAMEで参照され、[1],[2] のような形で引用記号が diff -r b0fc9c2950cd -r cd1b63102eed yatex.el Binary file yatex.el has changed diff -r b0fc9c2950cd -r cd1b63102eed yatex.new --- a/yatex.new Sun Jul 24 15:07:23 1994 +0000 +++ b/yatex.new Mon Sep 19 16:54:19 1994 +0000 @@ -1,6 +1,11 @@ Yet Another tex-mode for Emacs yatex.el 各バージョンの変更点について。 +1.51 メニューバーへのメニュー登録。 + YaTeX-fill-item(C-c C-i) と YaTeX-indent-line (C-i)が賢くなった。 + hilit19をロードしておくとセクション区切りが目立つように色が付く。 + YaTeX-generate-simple のバグフィクス。 + 1.50 YaTeX-math モードの記号用 prefix を , から ; に変えた(注意!)。 イメージ補完の一覧表示キーを RET から TAB に変えた(注意!)。 [prefix] / の YaTeX-apropos の追加。 diff -r b0fc9c2950cd -r cd1b63102eed yatex19.el --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/yatex19.el Mon Sep 19 16:54:19 1994 +0000 @@ -0,0 +1,261 @@ +;;; -*- Emacs-Lisp -*- +;;; YaTeX facilities for Emacs 19 +;;; (c )1994 by HIROSE Yuuji.[yuuji@ae.keio.ac.jp] +;;; Last modified Sat Sep 17 12:53:23 1994 on figaro +;;; $Id$ + +;;; $B$H$j$"$($:(B hilit19 $B$r;H$C$F$$$k;~$K?'$,IU$/$h$&$K$7$F(B +;;; $B%a%K%e!<%P!<$G$4$K$g$4$K$g$G$-$k$h$&$K$7$?$@$1!#(B +;;; $B$$$C$?$$C/$,%a%K%e!<%P!<;H$C$F(BLaTeX$B%=!<%9=q$/$s$@$m$&$+(B? +;;; $B$^$"$$$$$dN}=,N}=,!#8e$m$NJ}$K$A$g$C$H%3%a%s%H$"$j!#(B + +(defun YaTeX-19-define-sub-menu (map vec &rest bindings) + "Define sub-menu-item in MAP at vector VEC as BINDINGS. +BINDINGS is a form with optional length: (symbol title binding). +When you defined menu-bar keymap such like: + (define-key foo-map [menu-bar foo] (make-sparse-keymap \"foo menu\")) +and you want to define sub menu for `foo menu' as followings. + foo -> menu1 (calling function `func1') + menu2 (doing interactive call `(func2 ...)' +Call this function like this: + (YaTeX-19-define-sub-menu foo-map [menu-bar foo] + '(m1 \"Function 1\" func1) + '(m2 \"Function 2\" (lambda () (interactive) (func2 ...)))) +where + `m1' and `m2' are the keymap symbol for sub-menu of `[menu-bar foo]. + `Funtion 1' and `Function 2' are the title strings for sub-menu. +" + (let ((i 0) (vec2 (make-vector (1+ (length vec)) nil))) + (while (< i (length vec)) + (aset vec2 i (aref vec i)) + (setq i (1+ i))) + (setq bindings (reverse bindings)) + (mapcar + (function + (lambda (bind) + (aset vec2 (1- (length vec2)) (car bind)) ;set menu-symbol + (define-key map vec2 + (cons (car (cdr bind)) + (car (cdr (cdr bind))))))) + bindings))) + +;; Menu for Typeset relating processes ---------------------------------------- +(define-key YaTeX-mode-map [menu-bar yatex] + (cons "YaTeX" (make-sparse-keymap "YaTeX"))) +(define-key YaTeX-mode-map [menu-bar yatex process] + (cons "Process" (make-sparse-keymap "Process"))) +(YaTeX-19-define-sub-menu + YaTeX-mode-map [menu-bar yatex process] + '(buffer "LaTeX" (lambda () (interactive) (YaTeX-typeset-menu nil ?j))) + '(kill "Kill LaTeX" (lambda () (interactive) (YaTeX-typeset-menu nil ?k))) + '(bibtex "BibTeX" (lambda () (interactive) (YaTeX-typeset-menu nil ?b))) + '(makeindex "makeindex" (lambda () (interactive) (YaTeX-typeset-menu nil ?i))) + '(preview "Preview" (lambda () (interactive) (YaTeX-typeset-menu nil ?p))) + '(lpr "lpr" (lambda () (interactive) (YaTeX-typeset-menu nil ?l))) + '(lpq "lpq" (lambda () (interactive) (YaTeX-typeset-menu nil ?q))) +) + +;; Help for LaTeX ------------------------------------------------------------ +(YaTeX-19-define-sub-menu + YaTeX-mode-map [menu-bar yatex] + '(sephelp "--") + '(help "Help on LaTeX commands" YaTeX-help) + '(apropos "Apropos on LaTeX commands" YaTeX-apropos)) + +;; Switch modes -------------------------------------------------------------- +(define-key YaTeX-mode-map [menu-bar yatex switch] + (cons "Switching YaTeX's modes" (make-sparse-keymap "modes"))) +(or YaTeX-auto-math-mode + (define-key YaTeX-mode-map [menu-bar yatex switch math] + '("Toggle math mode" . (lambda () (interactive) + (YaTeX-switch-mode-menu nil ?t))))) +(define-key YaTeX-mode-map [menu-bar yatex switch mod] + '("Toggle modify mode" . (lambda () (interactive) + (YaTeX-switch-mode-menu nil ?m)))) + +;; % menu -------------------------------------------------------------------- +(define-key YaTeX-mode-map [menu-bar yatex percent] + (cons "Edit %# notation" (make-sparse-keymap "Edit %# notation"))) +(YaTeX-19-define-sub-menu + YaTeX-mode-map [menu-bar yatex percent] + '(! "Change LaTeX typesetter(%#!)" + (lambda () (interactive) (YaTeX-%-menu nil nil ?!))) + '(begend "Set %#BEGIN-%#END on region" + (lambda () (interactive) (YaTeX-%-menu nil nil ?b))) + '(lpr "Change LPR format" + (lambda () (interactive) (YaTeX-%-menu nil nil ?l)))) + +;; What position ------------------------------------------------------------- +(YaTeX-19-define-sub-menu + YaTeX-mode-map [menu-bar yatex] + '(what "What column in tabular" YaTeX-what-column)) + +;; Jump cursor --------------------------------------------------------------- +(define-key YaTeX-mode-map [menu-bar yatex jump] + (cons "Jump cursor" + (make-sparse-keymap "Jump cursor"))) +(YaTeX-19-define-sub-menu + YaTeX-mode-map [menu-bar yatex jump] + '(corres "Goto corersponding position" YaTeX-goto-corresponding-*) + '(main "Visit main source" (lambda () (interactive) (YaTeX-visit-main))) + '(main-other "Visit main source other window" YaTeX-visit-main-other-window) + ) + +;; =========================================================================== +(define-key YaTeX-mode-map [menu-bar yatex sepcom] + '("---" . nil)) + +;; Comment/Uncomment --------------------------------------------------------- +(YaTeX-19-define-sub-menu + YaTeX-mode-map [menu-bar yatex] + '(comment "Comment region or environment" YaTeX-comment-region) + '(uncomment "Unomment region or environment" YaTeX-uncomment-region) + '(commentp "Comment paragraph" YaTeX-comment-paragraph) + '(uncommentp "Unomment paragraph" YaTeX-uncomment-paragraph) + '(sepcom "--" nil) +) + + +;; =========================================================================== +;; Change/Kill/Fill +(YaTeX-19-define-sub-menu + YaTeX-mode-map [menu-bar yatex] + '(change "Change macros" YaTeX-change-*) + '(kill "Kill macros" YaTeX-kill-*) + '(fillitem "Fill \\item" YaTeX-fill-item) + '(newline "Newline" YaTeX-intelligent-newline) + '(sepchg "--" nil) +) + +;; Menu for completions ------------------------------------------------------ + + +;;;(YaTeX-19-define-sub-menu +;;; YaTeX-mode-map [menu-bar yatex] +;;; '(secr "Section-type command on region" YaTeX-make-section-region) +;;; '(sec "Section-type command" YaTeX-make-section)) + +(define-key YaTeX-mode-map [menu-bar yatex sectionr] + (cons "Section-type region(long name)" + (make-sparse-keymap "Enclose region with section-type macro"))) +(define-key YaTeX-mode-map [menu-bar yatex section] + (cons "Sectio-type(long name)" + (make-sparse-keymap "Section-type macro"))) +(let ((sorted-section + (sort + (delq nil + (mapcar (function (lambda (s) + (if (> (length (car s)) 5) + (car s)))) + (append section-table user-section-table))) + 'string<))) + (apply 'YaTeX-19-define-sub-menu + YaTeX-mode-map [menu-bar yatex section] + (mapcar (function (lambda (secname) + (list (intern secname) secname + (list 'lambda () + (list 'interactive) + (list 'YaTeX-make-section + nil nil nil secname))))) + sorted-section)) + (apply 'YaTeX-19-define-sub-menu + YaTeX-mode-map [menu-bar yatex sectionr] + (mapcar (function (lambda (secname) + (list (intern secname) secname + (list 'lambda () + (list 'interactive) + (list 'YaTeX-make-section + nil + (list 'region-beginning) + (list 'region-end) + secname))))) + sorted-section))) + +(define-key YaTeX-mode-map [menu-bar yatex envr] + (cons "Environment region" (make-sparse-keymap "Environment region"))) +(define-key YaTeX-mode-map [menu-bar yatex env] + (cons "Environment" (make-sparse-keymap "Environment"))) +(let (prev envname) + (mapcar + (function + (lambda (envalist) + (setq envname (car envalist)) + (define-key-after + (lookup-key YaTeX-mode-map [menu-bar yatex env]) + (vector (intern envname)) + (cons envname + (list 'lambda () (list 'interactive) + (list 'YaTeX-insert-begin-end + envname nil))) + prev) + (define-key-after + (lookup-key YaTeX-mode-map [menu-bar yatex envr]) + (vector (intern envname)) + (cons envname + (list 'lambda () (list 'interactive) + (list 'YaTeX-insert-begin-end + envname t))) + prev) + (setq prev (intern envname)))) + (sort (append env-table user-env-table) + '(lambda (x y) (string< (car x) (car y)))))) + +;; Highlightening +;; $B%m!<%+%k$J%^%/%m$rFI$_9~$s$@8e(B redraw $B$9$k$H(B +;; $B%m!<%+%k%^%/%m$r(B keyword $B$H$7$F8w$i$;$k(B(keyword$B$8$c$^$:$$$+$J!D(B)$B!#(B +(defvar YaTeX-hilit-pattern-adjustment + (list + ;;\def $B$,(B define $B$J$s$@$+$i(B new* $B$b(B define $B$G$7$g$&!#(B + '("\\\\\\(re\\)?new\\(environment\\|command\\){" "}" define) + '("\\\\new\\(length\\|theorem\\|counter\\){" "}" define) + ;;$B%;%/%7%g%s%3%^%s%I$,C1$J$k%-!<%o!<%I$C$F$3$H$O$J$$$G$7$g$&!#(B + (list + (concat "\\\\\\(" YaTeX-sectioning-regexp "\\){") "}" + 'sectioning)) + "Adjustment for hilit19's LaTeX hilit pattern.") +(defvar YaTeX-hilit-sectioning-face + 'yellow/cornflowerblue) +(defun YaTeX-19-collect-macro () + (cond + ((and (featurep 'hilit19) (fboundp 'hilit-translate)) + (hilit-translate sectioning YaTeX-hilit-sectioning-face) + (setq hilit-patterns-alist ;Remove at the first time. + (delq 'yatex-mode hilit-patterns-alist) + hilit-patterns-alist + (cons + (cons 'yatex-mode + (append + YaTeX-hilit-pattern-adjustment + (cdr (assq 'latex-mode hilit-patterns-alist)) + (list + (list + (concat "\\\\\\(" + (mapconcat + (function (lambda (s) (regexp-quote (car s)))) + (append user-section-table tmp-section-table) + "\\|") + "\\){") + "}" 'keyword)))) + hilit-patterns-alist))))) +(YaTeX-19-collect-macro) +(defun YaTeX-hilit-recenter (arg) + "Collect current local macro and hilit-recenter." + (interactive "P") + (YaTeX-19-collect-macro) + (hilit-recenter arg)) +(if (fboundp 'hilit-recenter) ;Replace hilit-recenter with + (mapcar (function (lambda (key) ;YaTeX-hilit-recenter in yatex-mode + (define-key YaTeX-mode-map key 'YaTeX-hilit-recenter))) + (where-is-internal 'hilit-recenter))) + +;;; reverseVideo $B$K$7$F(B hilit-background-mode $B$r(B 'dark +;;; $B$K$7$F$$$k?M$O?t<0$J$I$,0E$/$J$j$9$.$F8+$E$i$$$+$b$7$l$J$$!#(B +;;; $Bl=j$ND>8e$KCV$/$H$A$g$C(B +;;; $B$H$O$^$7!#(B +;;; (if (eq hilit-background-mode 'dark) +;;; (hilit-translate +;;; string 'mediumspringgreen +;;; formula 'khaki +;;; label 'yellow-underlined)) + +(provide 'yatex19) diff -r b0fc9c2950cd -r cd1b63102eed yatexadd.el --- a/yatexadd.el Sun Jul 24 15:07:23 1994 +0000 +++ b/yatexadd.el Mon Sep 19 16:54:19 1994 +0000 @@ -2,7 +2,7 @@ ;;; YaTeX add-in functions. ;;; yatexadd.el rev.9 ;;; (c )1991-1994 by HIROSE Yuuji.[yuuji@ae.keio.ac.jp] -;;; Last modified Mon Jul 25 00:04:43 1994 on figaro +;;; Last modified Mon Aug 22 14:19:39 1994 on figaro ;;; $Id$ ;;; @@ -99,6 +99,10 @@ (YaTeX:read-position "htbp") ) +(fset 'YaTeX:figure 'YaTeX:table) +(fset 'YaTeX:figure* 'YaTeX:table) + + (defun YaTeX:description () "Truly poor service:-)" (setq single-command "item[]") diff -r b0fc9c2950cd -r cd1b63102eed yatexenv.el --- a/yatexenv.el Sun Jul 24 15:07:23 1994 +0000 +++ b/yatexenv.el Mon Sep 19 16:54:19 1994 +0000 @@ -2,7 +2,7 @@ ;;; YaTeX environment-specific functions. ;;; yatexenv.el ;;; (c ) 1994 by HIROSE Yuuji.[yuuji@ae.keio.ac.jp] -;;; Last modified Mon Jul 11 02:01:18 1994 on 98fa +;;; Last modified Tue Sep 20 01:35:46 1994 on figaro ;;; $Id$ ;;; diff -r b0fc9c2950cd -r cd1b63102eed yatexgen.el --- a/yatexgen.el Sun Jul 24 15:07:23 1994 +0000 +++ b/yatexgen.el Mon Sep 19 16:54:19 1994 +0000 @@ -1,8 +1,8 @@ ;;; -*- Emacs-Lisp -*- ;;; YaTeX add-in function generator. -;;; yatexgen.el rev.2 +;;; yatexgen.el rev.3 ;;; (c )1991-1994 by HIROSE Yuuji.[yuuji@ae.keio.ac.jp] -;;; Last modified Fri Jul 8 00:46:09 1994 on figaro +;;; Last modified Tue Sep 20 01:34:46 1994 on figaro ;;; $Id$ (require 'yatex) @@ -432,7 +432,7 @@ (while (string< "" (setq cand (read-string (format "Item[%d](RET to exit): " i)))) - (setq cands (concat cands (format "(""%s"")\n" cand)) + (setq cands (concat cands (format "(\"%s\")\n" cand)) i (1+ i)) (insert cand "\n")) (kill-buffer buf))) @@ -450,33 +450,33 @@ ) (defun YaTeX-generate-create-read-string (&optional nth) (concat - "(read-string """ + "(read-string \"" (read-string (if nth (format "Prompt for argument#%d: " nth) "Prompt: ")) - ": ""\n" - """" (read-string "Default: ") """" + ": \"\n" + "\"" (read-string "Default: ") "\"" ")\n") ) (defun YaTeX-generate-create-completing-read (&optional nth) (concat - "(completing-read """ + "(completing-read \"" (read-string (if nth (format "Prompt for argument#%d: " nth) "Prompt: ")) - ": ""\n" + ": \"\n" (format "'%s\n" (YaTeX-generate-read-completion-table)) "nil " (format "%s)" (y-or-n-p "Require match? "))) ) (defun YaTeX-generate-create-read-file-name (&optional nth) (concat - "(read-file-name """ + "(read-file-name \"" (read-string (if nth (format "Prompt for argument#%d: " nth) "Prompt: ")) - ": "" nil nil t """")\n") + ": \" nil nil t \"\")\n") ) (defun YaTeX-generate-create-read-oneof (&optional nth readpos) (concat (if readpos - "(YaTeX:read-position """ - "(YaTeX:read-oneof """) - (read-string "Acceptable characters: " "lcr") """)\n") + "(YaTeX:read-position \"" + "(YaTeX:read-oneof \"") + (read-string "Acceptable characters: " "lcr") "\")\n") ) (defun YaTeX-generate-option-type (command) (let ((func (format "YaTeX:%s" command)) leftp @@ -491,41 +491,41 @@ (cond ;;Read string ((eq type 'string) - (concat """" (setq leftp (read-string "Left parenthesis: " "{")) - """\n" + (concat \"\" (setq leftp (read-string "Left parenthesis: " "{")) + \""\n" (YaTeX-generate-create-read-string) - """" (YaTeX-generate-corresponding-paren leftp) """" + \"\" (YaTeX-generate-corresponding-paren leftp) \"\" )) ;;Completing-read ((eq type 'completion) - (concat """" (setq leftp (read-string "Left parenthesis: " "{")) - """\n" + (concat \"\" (setq leftp (read-string "Left parenthesis: " "{")) + \""\n" (YaTeX-generate-create-completing-read) - """" (YaTeX-generate-corresponding-paren leftp) """") + \"\" (YaTeX-generate-corresponding-paren leftp) \"\") ) ((eq type 'file) - (concat """" (setq leftp (read-string "Left parenthesis: " "{")) - """\n" + (concat \"\" (setq leftp (read-string "Left parenthesis: " "{")) + \""\n" (YaTeX-generate-create-read-file-name) - """" (YaTeX-generate-corresponding-paren leftp) """") + \"\" (YaTeX-generate-corresponding-paren leftp) \"\") ) ((eq type 'oneof) (YaTeX-generate-create-read-oneof nil t) ) ((eq type 'option) - (concat "(let ((op (read-string """ + (concat "(let ((op (read-string \"" (read-string "Prompt: ") - ": "")))\n" - "(if (string< """" op)\n" - " (concat ""["" op ""]"")\n" - " """"))\n") + ": \")))\n" + "(if (string< \"\" op)\n" + " (concat \"[\" op \"]\")\n" + " \"\"))\n") ) ((eq type 'coord) - (concat "(YaTeX:read-coordinates """ + (concat "(YaTeX:read-coordinates \"" (read-string "Prompt for coordinates: ") - ": """) + ": \")\n") ) ((eq type 'macro) (error "not yet supported") diff -r b0fc9c2950cd -r cd1b63102eed yatexhlp.el --- a/yatexhlp.el Sun Jul 24 15:07:23 1994 +0000 +++ b/yatexhlp.el Mon Sep 19 16:54:19 1994 +0000 @@ -2,15 +2,17 @@ ;;; YaTeX helper with LaTeX commands and macros. ;;; yatexhlp.el ;;; (c )1994 by HIROSE Yuuji.[yuuji@ae.keio.ac.jp] -;;; Last modified Fri Jul 1 17:03:23 1994 on VFR +;;; Last modified Tue Sep 20 01:35:12 1994 on figaro ;;; $Id$ -(let ((help-file - (concat "YATEXHLP." - (cond (YaTeX-japan "jp") - (t "eng"))))) +(let ((help-file (concat "YATEXHLP." + (cond (YaTeX-japan "jp") + (t "eng")))) + (help-dir + (cond (YaTeX-emacs-19 (expand-file-name "../etc" exec-directory)) + (t exec-directory)))) (defvar YaTeX-help-file - (expand-file-name help-file exec-directory) + (expand-file-name help-file help-dir) "*Help file of LaTeX/TeX commands or macros.") (defvar YaTeX-help-file-private (expand-file-name (concat "~/" help-file)) diff -r b0fc9c2950cd -r cd1b63102eed yatexlib.el --- a/yatexlib.el Sun Jul 24 15:07:23 1994 +0000 +++ b/yatexlib.el Mon Sep 19 16:54:19 1994 +0000 @@ -2,7 +2,7 @@ ;;; YaTeX library of general functions. ;;; yatexlib.el ;;; (c )1994 by HIROSE Yuuji.[yuuji@ae.keio.ac.jp] -;;; Last modified Fri Jul 8 00:44:41 1994 on figaro +;;; Last modified Fri Sep 16 01:50:34 1994 on figaro ;;; $Id$ ;;;###autoload @@ -53,7 +53,9 @@ (file-name-nondirectory file)) buf) (if (file-exists-p file) - (progn (find-file file) (current-buffer)) + (funcall + (if setbuf 'find-file-noselect 'find-file) + file) (message "%s was not found in this directory." file) nil))) ) diff -r b0fc9c2950cd -r cd1b63102eed yatexprc.el --- a/yatexprc.el Sun Jul 24 15:07:23 1994 +0000 +++ b/yatexprc.el Mon Sep 19 16:54:19 1994 +0000 @@ -2,7 +2,7 @@ ;;; YaTeX process handler. ;;; yatexprc.el ;;; (c )1993-1994 by HIROSE Yuuji.[yuuji@ae.keio.ac.jp] -;;; Last modified Sun Jul 24 01:24:08 1994 on figaro +;;; Last modified Fri Sep 16 01:50:36 1994 on figaro ;;; $Id$ (require 'yatex) diff -r b0fc9c2950cd -r cd1b63102eed yatexsec.el --- a/yatexsec.el Sun Jul 24 15:07:23 1994 +0000 +++ b/yatexsec.el Mon Sep 19 16:54:19 1994 +0000 @@ -2,7 +2,7 @@ ;;; YaTeX sectioning browser. ;;; yatexsec.el ;;; (c ) 1994 by HIROSE Yuuji [yuuji@ae.keio.ac.jp] -;;; Last modified Thu Jul 7 01:26:26 1994 on 98fa +;;; Last modified Tue Sep 20 01:35:32 1994 on figaro ;;; $Id$ (defvar YaTeX-sectioning-level