# HG changeset patch # User yuuji # Date 1022043462 0 # Node ID f41b01fef5d608de2aea5336f3280f269e8a3d19 # Parent 0aaebd07dad004ebcd301298e18208c44ff3336a Stable version(hope to be) diff -r 0aaebd07dad0 -r f41b01fef5d6 docs/yatexe.tex --- a/docs/yatexe.tex Mon Dec 25 10:19:28 2000 +0000 +++ b/docs/yatexe.tex Wed May 22 04:57:42 2002 +0000 @@ -5,7 +5,7 @@ @iftex @c @syncodeindex fn cp -@c Last modified Fri Dec 22 09:50:10 2000 on buell +@c Last modified Fri Feb 2 12:39:12 2001 on firestorm @syncodeindex vr cp @end iftex @@ -257,7 +257,7 @@ overwriting. The method of specification of the region is shown in the section @xref{%#notation}. - The documentstyle for typeset-region is the same as that of editing + The documentclass for typeset-region is the same as that of editing file if you edit one file, and is the same as main file's if you edit splitting files. @@ -607,7 +607,7 @@ then the prompt @example - (C-v for view) \???@{@} (default documentstyle): + (C-v for view) \???@{@} (default documentclass): @end example @noindent @@ -626,7 +626,7 @@ example, the following inputs @example - \???@{@} (default documentstyle): section + \???@{@} (default documentclass): section \section@{???@}: Hello world. @end example @@ -953,7 +953,7 @@ minibuffer, YaTeX asks you with the following prompt; @example - `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscad + `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard @end example @noindent @@ -1737,11 +1737,11 @@ @end defvar @defvar YaTeX-help-file -Global online help file name (@file{$EMACS/etc/YATEXHLP.jp}) +Global online help file name (@file{$doc-directory/../../site-lisp/YATEXHLP.eng}) @end defvar @defvar YaTeX-help-file-private -Private online help file name (@file{"~/YATEXHLP.jp"}) +Private online help file name (@file{"~/YATEXHLP.eng"}) @end defvar @defvar YaTeX-no-begend-shortcut @@ -1803,7 +1803,7 @@ @end defvar @defvar YaTeX-use-LaTeX2e -If you use LaTeX2e, set to @code{t} (@code{nil}) +If you use LaTeX2e, set to @code{t} (@code{t}) @end defvar @defvar YaTeX-template-file diff -r 0aaebd07dad0 -r f41b01fef5d6 docs/yatexj.tex --- a/docs/yatexj.tex Mon Dec 25 10:19:28 2000 +0000 +++ b/docs/yatexj.tex Wed May 22 04:57:42 2002 +0000 @@ -1,2160 +1,2162 @@ -\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 -\input texinfo -@setfilename yatexj -@settitle Yet Another tex-mode for Emacs - -@iftex -@c @syncodeindex fn cp -@c $B$$$D$bK:$l$k$N$G$3$3$K=q$$$H$/$+!#(B -@c C-l C-c n $B$G%N!<%IF~$l(B -@c $B%N!<%I$$$8$C$?$i(B C-l C-u C-n $BA4It$N%N!<%I99?7(B C-l C-u C-e -@c $B%a%K%e!H>e$NCm0U(B -* Main features:: $B!%Q%C%1!<%8$H$NO"7H(B -* Customizations:: $B%+%9%?%^%$%:(B -* Etc:: $B$=$NB>(B -* Copying:: $Be$N0z?t$r$H$k(B section$B7?%3%^%s%I(B:: -* Enclose section-type command:: $B3g$jJd40(B -* Recursive completion:: $B:F5"Jd40(B -* view-sectioning:: $B%;%/%7%g%s6h@Z$j$N%"%&%H%i%$%sI=<((B - -$B%+!<%=%k%8%c%s%W(B - -* $BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B:: -* $B$*3(IA$-%D!<%k5/F0(B:: -* $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B:: -* $B4D6-$rC10L$H$7$?%8%c%s%W(B:: -* $B:G8e$NJd400LCV$X$N%8%c%s%W(B:: - -$BJQ99(B/$B:o=|(B - -* Changing LaTeX command:: La@TeX{} $B%3%^%s%I$NJQ99(B -* Killing LaTeX command:: La@TeX{} $B%3%^%s%I$N:o=|(B - -$B%+%9%?%^%$%:(B - -* Lisp variables:: lisp $BJQ?t(B -* Add-in functions:: $BIU2C4X?t(B($B%"%I%$%s4X?t(B) - -lisp $BJQ?t(B - -* All customizable variables:: $B%+%9%?%^%$%:JQ?t0lMw(B -* Sample definitions:: $B%+%9%?%^%$%:JQ?t@_DjNc(B -* Hook variables:: hook$BJQ?t(B -* Hook file:: hook$BMQ%U%!%$%k(B -@end menu - -@node Intro, Terminology, Top, Top -@comment node-name, next, previous, up -@chapter $B$O$8$a$K(B -@cindex Demacs -@cindex Mule -@cindex LaTeX -@cindex $B$d$A$g$&(B[$B$d$A$h$&(B] - - $BLnD;$O!"(BGNU Emacs $B$G(B La@TeX{} $BMQ$NJ8=q$r:n@.$9$k;~$K(B jLa@TeX{} $B$J$I$N(B -$B%?%$%W%;%C%H%3%^%s%I$d!"%W%l%t%e!<%"$N5/F0$r(B Emacs $BJT=82hLLCf$+$i(B -$B9T$($k$h$&$K$9$k$H6&$K!"3HD%@-$N9b$$H>e$NCm0U(B - - $BK\%^%K%e%"%k$G$O0J2<$NI=5-$rMQ$$$^$9!#(B - -@itemize @bullet -@item -begin$B7?%3%^%s%I(B - -@code{\begin@{$B4D6-(B@} $B!A(B \end@{$B4D6-(B@}}$B$H$$$&7A<0$N(BLaTeX$B%3%^%s%I$r;X$7$^$9!#(B -begin$B7?%3%^%s%I$rJd40F~NO$9$k$3$H$r(Bbegin$B7?Jd40$H8F$S$^$9!#(B - -@item -section$B7?%3%^%s%I(B - -@code{\section@{$B%?%$%H%k(B@}}$B$d(B@code{\mbox@{$BFbMF(B@}}$B$N$h$&$K(B -$B0z?t$rl9gK\%^%K%e%"%k$N(B @kbd{[prefix]} $B$H(B -$B$$$&I=5-$O!"(B@kbd{C-c} $B$HFI$_49$($F$/$@$5$$!#(B -@end itemize - -@node Main features, Installation, Terminology, Top -@comment node-name, next, previous, up -@chapter $BoJd40%-!<(B) -@item $B%;%/%7%g%s6h@Z$jF~NO;~$NJ8=q9=B$%"%&%H%i%$%sI=<((B -@item $B%;%/%7%g%s%3%^%s%I$N0l3g%7%U%H(B (@ref{view-sectioning}) -@item $BJd40<-=q$N3X=,(B -@item La@TeX{} $B$N4D6-$d%3%^%s%I$K1~$8$?%,%$%IIU$-0z?tF~NO(B -@item $BLnD;$K$J$$%,%$%IIU$-0z?tF~NO4X?t$N<+F0@8@.(B(@file{yatexgen.el}) -@item La@TeX{} $B%3%^%s%I$N:o=|(B/$BJQ99(B(@kbd{C-c k}, @kbd{C-c c}) -@item $B%U%!%$%k4V!"(B@code{\begin}<->@code{\end}$B4V!"(B - @code{\ref}<->@code{\label}$B4V!"(B - @code{\cite}<->@code{\bibitem}$B%8%c%s%W(B(@kbd{C-c g}) -@item $B0l3g%3%a%s%H%"%&%H(B/$B%"%s%3%a%s%H%"%&%H(B - (@kbd{C-c >}, @kbd{C-c <}, @kbd{C-c ,}, @kbd{C-c .}) -@item $B%"%/%;%s%H5-9f(B/$B?t<04D6-MQ%3%^%s%I(B/$B%.%j%7%cJ8;z$NF~NO;Y1g(B - (@kbd{C-c a}, @kbd{;}, @kbd{/}) -@item tabular/array$B4D6-$N%+%i%`0LCV%,%$%I(B -@item $BI8=`E*(B La@TeX{} $B%3%^%s%I$N%*%s%i%$%s%X%k%W(B(@kbd{C-c ?}, @kbd{C-c /}) -@item $B%I%-%e%a%s%H$N%$%s%/%k!<%I9=B$$N;k3PE*I=<($H%P%C%U%!@Z$jBX$((B -(@kbd{C-c d}) -@end itemize - -@node Installation, Invocation, Main features, Top -@comment node-name, next, previous, up -@chapter $B5/F0K!(B -@cindex Install -@cindex $B%$%s%9%H!<%k(B[$B$$$s$9$H$*$k(B] -@cindex .emacs -@cindex auto-mode-alist -@cindex autoload -@section $BLnD;5/F0$N$?$a$N@_Dj(B - - ~/.emacs$B$K2<$N(B2$B9`L\$r2C$($^$9!#(B - -@lisp -(setq auto-mode-alist - (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) -(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) -@end lisp - -$Be$N@_Dj$K$h$j!"3HD%;R$,(B .tex $B$G$"$k%U%!%$%k$rJT=8$9$k$H<+F0E*$KLnD;$,(B -$B%m!<%I$5$l$^$9!#LnD;$,@5>o$K5/F0$G$-$?$H$-$O%b!<%I%i%$%s$NI=<($,!V$d$F$U!W(B -$B$KJQ$o$j$^$9!#(B - -@section $B%?%$%W%;%C%?(B/$B%W%l%t%e!<%"4D6-$N@_Dj(B - - $BMxMQ$9$k30It%W%m%0%i%`$K4X$9$k0J2<$NJQ?t$r3NG'$7!"I,MW$J$i@5$7$$CM$KJQ99(B -$B$7$^$9!#(B -@table @code -@item tex-command - @dots{} $B5/F0$9$k%?%$%W%;%C%?$N%3%^%s%IL>(B -@item dvi2-command - @dots{} $B5/F0$9$k%W%l%t%e!<%"$N%3%^%s%IL>(B -@item NTT-jTeX - @dots{} $B2~9T(B+$B%$%s%G%s%H$K$h$C$F!"%?%$%W%;%C%H8e$N;z4V$,6u$$$F$7$^(B - $B$&$N$rM^@)$9$k>l9g$K(Bt$B$K$9$k(B($B8E$$(BNTT-jTeX$B$G82Cx$K8=$l$k(B)$B!#6qBNE*$K$O!"(B - fill$B$9$k$H$-$K3F9T$N=*$o$j$K(B%$B$rIU2C$9$k$h$&$K$J$k!#(B -@item YaTeX-kanji-code - @dots{} $BJ8=q$r:n@.$9$k;~$N4A;z%3!<%I(B -@item dviprint-command-format - @dots{} $B%U%!%$%k$N0u:~$K;H$o$l$k%3%^%s%INs$N=q<0(B -@item makeindex-command - @dots{} makeindex$B%3%^%s%I(B -@end table - -$B$3$l$i$rJQ99$9$k>l9g$O!"$d$O$j(B@file{~/.emacs}$B$K$F!"$?$H$($P(B -@lisp -(setq tex-command "bigjlatex") -@end lisp -$B$N$h$&$K$7$F$/$@$5$$!#$I$N$h$&$JCM$r%;%C%H$9$l$PNI$$$+$K$D$$$F$O!"(B -@ref{All customizable variables}$B$r;2>H$7$F$/$@$5$$!#(B - - -@node Invocation, %#notation , Installation, Top -@comment node-name, next, previous, up -@chapter latex$B%3%^%s%I5/F0(B -@cindex prefix key -@cindex C-c -@cindex $B%?%$%W%;%C%?(B[$B$?$$$U$;$D$?(B] -@cindex $B%W%l%t%e!<%"(B[$B$U$l$R$f$&$"(B] -@cindex jlatex -@cindex $B%W%j%s%H%"%&%H(B[$B$U$j$s$H$"$&$H(B] - -LaTeX$B%=!<%9$NJT=8Cf!"l9g$K$O%?%$%W%;%C%H%P%C%U%!$K0\$j!"(B(@kbd{C-x o}) $B%?%$%W%;%C%?$N=P(B -$B$7$F$$$k(B ? $B%W%m%s%W%H$KBP$7$F!"(B@kbd{x} ($B=hM}$NCfCG(B)$B$J$I$N;X<($rAw$k$3$H$,(B -$B$G$-$^$9!#%(%i!<$r=$@5$9$k>l9g$O!"(B - -@table @kbd -@item [prefix] ' -@itemx (prefix+$B%"%]%9%H%m%U%#(B) - @dots{} $BD>A0$N%(%i!l9g$O!"%?%$%W%;%C%H%P%C%U%!$G!"%((B -$B%i!<$NI=<($5$l$F$$$k9T$K%+!<%=%k$r9g$o$;%9%Z!<%9%-!<$r2!$9$H(B La@TeX{} -$B%=!<%9$NBP1~$9$k9T$K%8%c%s%W$7$^$9!#(B - -@subsection $BNN0h%?%$%W%;%C%H(B - - $B%]%$%s%H$H%^!<%/$N4V!"$"$k$$$O%F%-%9%HCf$KKd$a9~$s$@(B @code{%#BEGIN} $B$H(B -@code{%#END}$B$N4V$NNN0h(B(@ref{%#notation})$B$@$1$r@Z$jl9g$N(B documentstyle $B$O!"C10l%U%!%$%k$N(B La@TeX{} $B%=!<%9$NJT(B -$B=8;~$K$O$=$N%U%!%$%k$N(B documentstyle $B$,!"JL%U%!%$%k$+$i(B include $B$7$F$$$k>l(B -$B9g$K$O%a%$%s%U%!%$%k$N(B documentstyle $B$,<+F0E*$KA*Br$5$l$^$9!#;XDjNN0h$O!"(B -$B%a%$%s%U%!%$%k$N$"$k%G%#%l%/%H%j$N(B@file{texput.tex}$B$H$$$&NW;~%U%!%$%k$K=P(B -$BNO$5$l$^$9$N$G!">e=q$-$K$OCm0U$7$F$/$@$5$$!#(B - -@node Calling previewer, Print out, Calling typesetter, Invocation -@comment node-name, next, previous, up -@section $B%W%l%t%e!<%"5/F0(B - @kbd{[prefix] t p} $B$K$h$j%W%l%t%e!<%"$N5/F0$,$G$-$^$9!#$5$i$K!"$b$7$"$J(B -$B$?$,!"(B-remote $B5!G=$D$-$N(Bxdvi$B$rMxMQ$7$F$$$k>l9g$O(B @kbd{[prefix] t s} $B$r2!$9(B -$B$3$H$K$h$j%+!<%=%k0LCV$NJ8;zNs$r8!:w$7$F$=$N%Z!<%8$rI=<($9$k$h$&$K$9$G$K5/(B -$BF0Cf$N(Bxdvi$B$KL?Na$rAw$j$^$9!#$3$l$K$h$j!"8=:_JT=8Cf$N2U=j$N%?%$%W%;%C%H7k2L(B -$B$rB(:B$K8+$k$3$H$,$G$-$^$9!#(B - -@c $B$J$*!"(B-remote $B5!G=IU$-$N(B xdvi $B$O(B -@c @code{ftp://ftp.ae.keio.ac.jp/pub/text/xdvi/xdvi-remote} -@c $B$J$I$+$iF~$l$KEz$($^$9!#$3$l$r>JN,$7$?$$;~$O!"(B -universal-argument $B$r$D$1!"(B - -@cindex $B=PNO3+;O%Z!<%8(B[$B$7$f$D$j$h$/$+$$$7$X$($7(B] -@cindex $B=PNO=*N;%Z!<%8(B[$B$7$f$D$j$h$/$7$f$&$j$h$&$X$($7(B] - -@table @kbd -@item C-u [prefix] t l - @dots{} $B%Z!<%83NG'>JN,(Blpr$B5/F0(B -@end table -@cindex $B%Z!<%83NG'>JN,(Blpr$B5/F0(B[$B$X$($7$+$/$K$s$7$h$&$j$d$/(Blpr$B$-$H$&(B] - -@noindent -$B$N$h$&$K5/F0$7$F$/$@$5$$!#(B - -@node %#notation , Completion, Invocation, Top -@comment node-name, next, previous, up -@chapter %#$B5-K!(B - - $BK\J8Cf$K(B@code{%#}$B$G$O$8$^$k%-!<%o!<%I$rKd$a9~$`$3$H$G%?%$%W%;%C%?5/F0Ey(B -$B$N@)8f$r$9$k$3$H$,$G$-$^$9!#(B - -@menu -* Changing typesetter:: $B%?%$%W%;%C%HMQ%3%^%s%I$NJQ99(B -* Splitting input files:: $BF~NO%U%!%$%kJ,3d(B -* Fix region for typesetting:: $BNN0h$N8GDj(B -* lpr format:: $B%W%j%s%H%"%&%H%3%^%s%IMQ%U%)!<%^%C%H(B -* Editing %# notation:: %#$B5-K!$NJT=8(B -@end menu - -@node Changing typesetter, Splitting input files, %#notation , %#notation -@comment node-name, next, previous, up -@section $B%?%$%W%;%C%HMQ%3%^%s%IJQ99(B - - $B5/F0$9$k%3%^%s%I$rJQ$($?$$;~$OK\J8Cf$Kl9g$KJXMx$G$7$g$&!#(B - -@cindex $B%?%$%W%;%C%?$N;H$$J,$1(B[$B$?$$$U$;$D$?$N$D$+$$$o$1(B] - -@node Splitting input files, Fix region for typesetting, Changing typesetter, %#notation -@comment node-name, next, previous, up -@section $BF~NO%U%!%$%kJ,3d(B - -$B$^$?!">OKh$KJL%U%!%$%k$N(B .tex $B$r:n@.$7$F$$$k>l9g$G!"(B@file{main.tex}$B$+$i(B -@file{sub.tex}$B$r(B @code{\include}$B$7$F$$$k$h$&$J;~$O!"(B@file{sub.tex}$B$NG$0U$N(B -$B0LCV$Ke$NNc$N$h$&$K%3%^%s%IL>$@$1$G$J$/0z?t$b=q$$$?>l9g$K$O!"A4$F$r$=$N$^$^(B -shell $B$KEO$9$N$G main -@end example - -$B$J$*!"$3$N9T$N:G8e$NC18l$N%T%j%*%I0JA0$r!V%a%$%s%U%!%$%k!W$N%Y!<%9(B -$B%M!<%`$G$"$k$H2>Dj$7$^$9(B($B>e$N(B2$B$D$N>l9g$I$A$i$b(B@file{main})$B!#(B - - @kbd{[prefix] g} (@ref{Cursor jump}$B;2>H(B) $B$G$N(B -$B%U%!%$%k4V%8%c%s%W$rM-8z$K5!G=$5$;$k$?$a!"F~NO%U%!%$%kJ,3d;~$K$Oe$N%G%#%l%/%H%j$K$"$k>l9g$b!"%5%V%U%!%$%k$K$O(B -%#!jlatex main.tex $B$N$h$&$K5-=R$9$k(B(../main$B$G$O$J$$(B)$B!#(B -@end enumerate - - - -@node Fix region for typesetting, lpr format, Splitting input files, %#notation -@comment node-name, next, previous, up -@section $BNN0h$N8GDj(B -@cindex $B8GDjNN0h$N%?%$%W%;%C%H(B[$B$3$F$$$j$h$&$$$-$N$?$$$U$;$D$H(B] -@cindex %#BEGIN -@cindex %#END - - @kbd{[prefix] tr} $B$NNN0h;XDj$N%?%$%W%;%C%H$G$O!"$H$/$K;XDj$N$J$$$+$.$j!"(B -@kbd{C-SPC}$B$G%^!<%/$7$?0LCV$H!"%]%$%s%H(B($B%+!<%=%k0LCV(B)$B$N4V$rNN0h$H$_$J$7$^(B -$B$9$,!"I,$:7h$^$C$?NN0h$r%?%$%W%;%C%H$7$?$$>l9g$O!"$=$NNN0h$r(B - -@example - %#BEGIN - <$BEO$7$?$$NN0h(B> - %#END -@end example - -@noindent -$B$N$h$&$K(B@code{%#BEGIN}$B$H(B@code{%#END}$B$G0O$_!"%+!<%=%k$r!V(B@code{%#BEGIN}$B0J9_!W(B -$B$KCV$$$F$/$@$5$$!#$3$N;~$NNN0h7hDj5,B'$r$^$H$a$k$Hl9g(B - -@enumerate -@item -@code{%#BEGIN}$B$h$j%P%C%U%!$NKvHxJ}8~$K(B@code{%#END}$B$H$$$&%-!<%o!<%I$,8+$D$+$C(B -$B$?>l9g!#(B -@result{}@code{%#BEGIN} $B$+$i!"$=$N(B @code{%#END} $B$N$"$k0LCV$^$G!#(B -@item -@code{%#END} $B$,8+$D$+$i$J$+$C$?>l9g!#(B -@result{}$B%P%C%U%!$N:G8eHx$^$G!#(B -@end enumerate -@cindex $BNN0h7hDj5,B'(B[$B$j$h$&$$$-$1$D$F$$$-$=$/(B] - -@item -$B%+!<%=%k0LCV$h$j%P%C%U%!$N@hF,J}8~$K(B @code{%#BEGIN} $B$H$$$&%-!<%o!<%I$,(B -$B8+$D$+$i$J$+$C$?>l9g!#(B -@result{}$B%^!<%/(B(@kbd{C-SPC}$B0LCV(B)$B$H%]%$%s%H(B($B%+!<%=%k0LCV(B)$B$N4V$NNN0h!#(B -@end enumerate - - tabular $B4D6-$r2?EY$b;n9T:x8m$7$F$$$k$h$&$J>l9g$O!"(B@code{\begin}$B$NA0$N9T(B -$B$K(B @code{%#BEGIN} $B$H=q$-!"(B@code{\end} $B$N(B -$B$K(B @code{%#BEGIN} $B$r=q$$$F$*$1$P!"A0H>$NItJ,$OL5;k$G$-$^$9!#$3$N(BBEGIN$B$H(BEND -$B$N>C$7K:$l$K$O==J,$4Cm0U2<$5$$!#(B -@cindex $BD9$$%U%!%$%k$NJT=8(B[$B$J$+$$$U$"$$$k$N$X$s$7$f$&(B] - -@c @node Require, lpr format, Fix region for typesetting, %#notation -@comment node-name, next, previous, up - -@node lpr format, Editing %# notation, Fix region for typesetting, %#notation -@comment node-name, next, previous, up -@section lpr$B%U%)!<%^%C%H(B -@cindex lpr$B$U$)!<$^$C$H(B[lpr$B$U$*$*$^$D$H(B] -@cindex lpr$B%U%)!<%^%C%H(B[lpr$B$U$*$*$^$D$H(B] -@cindex lpr format - - $B$^$:!"%W%j%s%H%"%&%HMQ%3%^%s%INs$N%U%)!<%^%C%H$K$D$$$F@bL@$7$^$9!#(B -$B%3%^%s%INs%U%)!<%^%C%H$O!"(B3$B$D$N(B Lisp $BJQ?t$K$h$C$FI=8=$5$l$^$9!#%G(B -$B%U%)%k%H$N(B dvi2ps $BMQ$N%U%)!<%^%C%H$rNc$K@bL@$7$^$9!#(B - -@table @code -@item (1)dviprint-command-format -@code{"dvi2ps %f %t %s | lpr"} - -@item (2)dviprint-from-format -@code{"-f %b"} - -@item (3)dviprint-to-format -@code{"-t %e"} -@end table - -$B$KCV$-49$($i$l!"(B%f $B$,(B -(2)$B$NFbMF!"(B%t $B$,(B(3)$B$NFbMF$KCV$-49$($i$l$^$9!#$=$N:]$K(B(2)$B$NJ8;zNsCf$N(B %b $B$O(B -$B!V=PNO3+;O%Z!<%8!W!"(B(3)$B$NJ8;zNsCf$N(B %e $B$O!V=PNO=*N;%Z!<%8!W$KCV$-49$($i$l(B -$B$^$9!#$b$7!"%Z!<%8$r;XDj$7$J$$;~$K$O!"(B%f, %t $BN>J}$H$bL5;k$5$l$^$9!#(B - - $B$3$N!"(Bdviprint-command-format $B$rNW;~$KJQ$($?$$;~$O!"(BLa@TeX{} $B$N(B -$B%=!<%9%F%-%9%HCf$NG$0U$N>l=j$K!"(B - -@example - %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2 -@end example - -@noindent -$B$N$h$&$K=q$$$F2<$5$$!#%W%j%s%H%"%&%H$9$k%Z!<%8HO0O$r$$$A$$$AJ9$+$;$J$$$h$&(B -$B$K$9$k;~$K(B - -@example - %#LPR dvi2ps %s | lpr -@end example - -@noindent -$B$J$I$H$9$k$N$bJXMx$+$b$7$l$^$;$s!#(B - -@node Editing %# notation, , lpr format, %#notation -@comment node-name, next, previous, up -@section %#$B5-K!<+BN$NJT=8(B -@cindex %#$B5-K!<+BN$NJT=8(B[%#$B$-$[$&$7$?$$$N$X$s$7$f$&(B] - -$B0J>e$N$h$&$J(B@code{%#}$B$G;O$^$k3FC5n$5$l$^$9!#(B -@cindex lpr$B%U%)!<%^%C%H$NJQ99(B[lpr$B$U$*$*$^$D$H$N$X$s$3$&(B] - -@node Completion, Local dictionary, %#notation , Top -@comment node-name, next, previous, up -@chapter $BJd40F~NO(B - - La@TeX{} $B$G$N4D6-L>$J$I$O!"LnD;$NJd405!G=$rMxMQ$7$FG=N(E*$KF~NO$9$k$3$H(B -$B$,$G$-$^$9!#(B - -@menu -* begin$B7?Jd40(B:: -* section$B7?Jd40(B:: -* large$B7?Jd40(B:: -* maketitle$B7?Jd40(B:: -* Arbitrary completion:: $B?o;~Jd40(B -* end$BJd40(B:: -* Accent mark completion:: $B%"%/%;%s%H5-9fJd40(B -* Image completion:: $B?t<05-9f%$%a!<%8Jd40(B -* Greek letter completion:: $B%.%j%7%cJ8;zJd40(B -@end menu - -@node begin$B7?Jd40(B, section$B7?Jd40(B, Completion, Completion -@comment node-name, next, previous, up -@section begin$B7?Jd40(B -@cindex begin$B7?Jd40(B[begin$B$+$?$[$+$s(B] -@cindex $B4D6-L>$NJd40(B[$B$+$s$-$h$&$a$$$N$[$+$s(B] -@cindex prefix b - - @code{\begin@{env@}...\end@{env@}}$B$NMM$J7A<0$NF~NO$NJd40$r(Bbegin$B7?Jd40$H(B -$B8F$V$3$H$K$7$^$9!#(Bbegin $B7?Jd40$O!"(B - -@table @kbd -@item [prefix] b - @dots{} begin $B7?Jd403+;O(B($BI8=`$G$O(B @kbd{C-c b}) -@end table - -@noindent -$B$G;O$^$j$^$9!#IQHK$KMQ$$$i$l$ke5-$N$b$N0J30$N4D6-L>$O(B Emacs $B$N;}$D%$%s%/%j%a%s%?%k$JJd405!G=$rMQ$$$F(B -$BF~NO$7$^$9(B($B>e5-$N4D6-L>$b0J2<$NJd40F~NO2DG=(B)$B!#(B - -@table @kbd -@item [prefix] b @key{SPC} - @dots{} begin $B7?Jd40F~NO(B -@end table - -@kbd{[prefix] b @key{SPC}} $B$HF~NO$9$k$H!":G2<9T$N%_%K%P%C%U%!$K(B - -@example - Begin environment(default document): -@end example - -@noindent -$B$HI=<($5$l$^$9!#$3$3$G!"2?$bF~$l$:$K%j%?!<%s%-!<$N$_2!$9$H!"3g8LFb$K=P$F$$(B -$B$k%G%U%)%k%H$N4D6-L>$,F~NO$5$l$^$9$,!"E,Ev$J4D6-L>$rF~NO$9$k$H!"(B -@code{\begin@{$B4D6-L>(B@} $B!D(B \end@{$B4D6-L>(B@}}$B$,J8=qCf$KA^F~$5$l$^$9!#%_%K%P%C(B -$B%U%!$G4D6-L>$rF~NO$9$k$H$-$K!"4D6-L>$NF,J8;z$rF~NO$7!V%9%Z!<%9!W$r$?$?$/$H!"(B -$B0lCW$9$k4D6-L>$,FbIt%F!<%V%k$KB8:_$7$?>l9g!"@5$7$$4D6-L>$KJd40$5$l$k$N$G!"(B -$BF~NO$NJ$1$^$9!#FbIt%F!<%V%k$KB8:_$7$J$$4D6-L>$rF~NO$7$?;~$O%f!<%6@l(B -$BMQ$N%F!<%V%k$KEPO?$5$l!"$5$i$K$=$N%F!<%V%k$r<+F0E*$K!"%f!<%6<-=q(B($B%G%U%)%k(B -$B%H$G$O(B @file{~/.yatexrc})$B$KJ]B8$7$^$9!#(B - -$B$5$i$K!"FCDj$N4D6-$rJd40F~NO$7$?;~$K$O$=$N4D6-$GI,$:MQ$$$i$l$k%(%s%H%j$r<+(B -$BF0A^F~$7$^$9(B($BNc(B: @code{itemize}$B4D6-$K$*$1$k(B@code{\item}$B$J$I(B)$B!#A^F~$5$l$?%((B -$B%s%H%j$,ITMW$J>l9g$K$O(Bundo$B$K$h$C$F>C5n$7$F2<$5$$!#(B -@cindex $B%f!<%6<-=q(B[$B$f$&$5$7$7$h(B] - -@subsection $B4{$K=q$$$?%F%-%9%H$r4D6-$G3g$k(B - - $B$H$3$m$G!":G=i$K=q$$$F$7$^$C$?%V%m%C%/$r8e$+$i!"(Bitemize $B4D6-$NCf(B -$B$KJD$8$3$a$?$$$H;W$&$3$H$,$"$j$^$9$,!"$=$N$h$&$J$H$-$O!"$"$i$+$8$a(B -$BJD$8$3$a$?$$CJMn$r%^!<%/$7$F!"(Bbegin $B7?Jd40$N3F%3%^%s%I$N(B @kbd{[prefix]} -$B$N.J8;z$N(B 'b'$B!Y(B $B$r!XBgJ8;z!Y$KJQ$($F5/F0$7$F2<$5$$!#(B($B$^$?$O!"(B -@kbd{C-u} $B$r@h$KBG$A!"(Buniversal argument $B$r$D$1$F$b2DG=$G$9(B) -@cindex $B%V%m%C%/(B[$B$U$m$D$/(B] -@cindex $BJD$89~$a$k(B[$B$H$7$3$a$k(B] - - $BNc$($P$"$k%Q%i%0%i%U$r(B description $B4D6-$NCf$KF~$l$?$$$H$-$O!"(B -$B$=$N%Q%i%0%i%U$r%^!<%/$7$F$+$i!"(B - -@table @kbd -@item [prefix] B D -@itemx ($B$^$?$O(B ESC 1 [prefix] b D) -@itemx ($B$^$?$O(B C-u [prefix] b D $B$J$I(B) -@end table - -$B$H%?%$%W$7$F$/$@$5$$!#$3$l$O!"(B@kbd{[prefix] b SPC}$B$NJd40F~NO$K$b$"$F$O$^$j!"(B -@kbd{b} $B$rBgJ8;z$KJQ$($F!"(B@kbd{[prefix] B SPC} $B$H%?%$%W$9$l$P!"$"$i$+$8$a(B -$B%^!<%/$7$F$*$$$?%j%8%g%s$r!"(Bbegin $B$H(B end $B$N4D6-$G3g$j$^$9!#(B - -@node section$B7?Jd40(B, large$B7?Jd40(B, begin$B7?Jd40(B, Completion -@comment node-name, next, previous, up -@section section$B7?Jd40(B -@cindex section$B7?Jd40(B[section$B$+$?$[$+$s(B] -@cindex prefix s - - @code{\section@{$BL\E*(B@}} $B$N$h$&$J7A<0$NF~NO$NJd40$r(B section $B7?Jd40$H8F$V$3(B -$B$H$K$7$^$9!#(Bsection $B7?Jd40$O!"(B - -@table @kbd -@item [prefix] s - @dots{} section $B7?Jd40(B -@end table - -@noindent -$B$G$rF~NO$7$^$9!#$3$3$G$b%j%?!<%s%-!<$N$_$G3g8LFb$N%G%U%)%k%HCM$,A*Br$5(B -$B$l$k$[$+!"(B@samp{chapter}$B$J$I$N$h$&$JIQEY$N9b$$L>>NF~NO$K$O%9%Z!<%9%-!<$K$h(B -$B$kJd405!G=$,M-8z$G$9!#(B $Bl9g$O!"J8>OCf$K(B - -@example - \section@{$BL\E*(B@} -@end example - -@noindent -$B$,A^F~$5$l!"(B - -@example - (C-v for view-section) \???@{@} (default section): vspace* - \vspace*@{???@}: -@end example - -@noindent -$B$N$h$&$K(B@{@}$B$NCf?H$r>JN,$7$?$H$-$O!"(B - -@example - \vspace*@{@} -@end example - -@noindent -$B$@$1$,A^F~$5$l!"2~9T$O$;$:%+!<%=%k$O<+F0E*$KCf3g8L$NFbB&$K0\F0$7$^$9!#(B - -@menu -* 2$B8D0J>e$N0z?t$r$H$k(B section$B7?%3%^%s%I(B:: -* Enclose section-type command:: $B3g$jJd40(B -* Recursive completion:: $B:F5"Jd40(B -* view-sectioning:: $B%;%/%7%g%s6h@Z$j$N%"%&%H%i%$%sI=<((B -@end menu - -@node 2$B8D0J>e$N0z?t$r$H$k(B section$B7?%3%^%s%I(B, Enclose section-type command, section$B7?Jd40(B, section$B7?Jd40(B -@comment node-name, next, previous, up -@subsection 2$B8D0J>e$N0z?t$r$H$k(B section$B7?%3%^%s%I(B -@cindex $B0z?t(B[$B$R$-$9$&(B] - - $B$H$3$m$G!"(B@samp{\addtolength@{\topmargin@}@{8mm@}} $B$J$I$N$h$&$K!"0z?t$rFs$D(B -$B0J>ee$N(B@samp{addtolength} -$B$NNc$G$"$l$P!"0z?t(B2$B$r;XDj$7$^$9!#$D$^$j!"(B - -@example - C-u 2 [prefix] s ($B$^$?$O!"(BESC 2 [prefix] s) -@end example - -@noindent -$B$H(B section $B7?Jd40$r8F$S=P$7$?8e!"(B - -@example - (Ctrl-v for view-section) \???@{@} (default vspace*): addtolength - \addtolength@{???@}: \topmargin - Argument 2: 8mm -@end example - -@noindent -$B$N$h$&$KF~NO$7$F$/$@$5$$!#:G=i$N(B addtolength $B$NItJ,$H!"Bh0l0z?t$G$"$k(B -\topmargin $B$NF~NO$OEvA3%9%Z!<%9$K$h$kJd40F~NO$,2DG=$G$9!#%f!<%6<-=q$KEPO?(B -$B$5$l$k(B La@TeX{} $B%3%^%s%I$K$O!"$3$N0z?t$N?t$b3X=,$5$l$k$N$G!":G=i$NJd40$N;~(B -$B0z?t$N?t$r;XDj$7$F5/F0$7$F$*$1$P!"0J8e$NJd40;~$K$O!"5-21$5$l$?8D?t$@$10z?t(B -$B$rJ9$$$FMh$k$h$&$K$J$j$^$9!#$"$H$G0z?t$N8D?t$rJQ$($?$$;~$O!":F$S(B @kbd{C-u} -$B$rMQ$$$F8D?t$r;XDj$7D>$9$3$H$G!"<+F0E*$K<-=qCf$N0z?t$N8D?t$NItJ,$r99?7$7$^(B -$B$9!#(B -@cindex $B0z?t$N8D?t$rJQ$($k(B[$B$R$-$9$&$N$3$9$&$r$+$($k(B] - - -@node Enclose section-type command, Recursive completion, 2$B8D0J>e$N0z?t$r$H$k(B section$B7?%3%^%s%I(B, section$B7?Jd40(B -@subsection $B4{$K=q$$$?%F%-%9%H$r3g$k(B -@cindex $B3g$k(B[$B$/$/$k(B] - - $B$^$?!"5/F0%3%^%s%I$N(B@kbd{s}$B$rBgJ8;z$KJQ$($F5/F0$9$k$H!"$"$i$+$8$a=q(B -$B$$$?J8>O$r(B section $B7?%3%^%s%I$NBh0l0z?t$H$7$F3g$j$^$9!#(B - -@node Recursive completion, view-sectioning, Enclose section-type command, section$B7?Jd40(B -@comment node-name, next, previous, up -@subsection $B:F5"Jd40(B -@cindex $B:F5"Jd40(B[$B$5$$$-$[$+$s(B] - - $B9bEY$J;H$$J}$K$J$k$+$b$7$l$^$;$s$,!"(Bsection$B7?Jd40$N0z?t$NF~NO;~$K$5$i$K(B -$BJd40F~NO$rMxMQ$9$k$3$H$,$G$-$^$9(B(section/large/maketitle$B7?$K8B$k(B)$B!#(Bsection -$B7?%3%^%s%I$N0z?t$K99$K(B La@TeX{} $B%3%^%s%I$,Mh$k>l9g$K$O%_%K%P%C%U%!$GLnD;$N(B -$BJd40%-!<$r:F5"E*$KF~NO$9$k$3$H$G0z?t$NF~NO$b8zN(E*$K9T$J$($^$9!#(B - -@node view-sectioning, , Recursive completion, section$B7?Jd40(B -@comment node-name, next, previous, up -@subsection $B%;%/%7%g%s6h@Z$j$N%"%&%H%i%$%sI=<((B -@cindex $B%"%&%H%i%$%s(B[$B$"$&$H$i$$$s(B] - - $BDL>o$N(Bsection$B7?Jd40$N;~$K%_%K%P%C%U%!$G(B@kbd{C-v}$B$r2!$9$H8=:_B8:_$9$k%;%/(B -$B%7%g%s6h@Z$j%3%^%s%IA4$F$r(B @code{*Sectioning Lines*}$B$H$$$&%P%C%U%!$K0lMwI=(B -$B<($7$^$9(B($B!V(B<<--$B!W$N$D$$$F$$$k9T$,$b$C$H$b6a$$%;%/%7%g%s6h@Z$j(B)$B!#$3$N;~%_%K(B -$B%P%C%U%!$G(B@kbd{C-p}, @kbd{C-n} $B$r2!$9$H(B@samp{part}, @samp{chapter}, ..., -@samp{subparagraph} $B$N%3%^%s%I$,O@M}3,AX$N9b$5$K$7$?$,$C$F>e2<$7$^$9!#$^$?!"(B -@kbd{C-v}, @kbd{M-v} $B$r2!$9$H%;%/%7%g%s6h@Z$j0lMw%P%C%U%!$,%9%/%m!<%k$7!"(B -$B?t;z$N(B@kbd{0}$B!A(B@kbd{7}$B$r2!$9$H$"$k9b$50J>e$N%;%/%7%g%s6h@Z$j$@$1$rA*$s$GI=(B -$B<($7$^$9(B($Bl=j$K%8%c%s%W$7$^$9!#$5$i$K!"F1%P%C(B -$B%U%!$G(B @kbd{u} $B$r2!$9$H!"%=!<%9%F%-%9%H$NBP1~$9$k%;%/%7%g%s%3%^%s%I$,0l3,(B -$BAX>e$,$j(B($BNc(B: subsection $B$,(B section $B$KJQ$o$k(B)$B!"(B@kbd{d}$B$r2!$9$H0l3,AX2<$,$j(B -$B$^$9!#(B@code{*Sectioning Lines*}$B%P%C%U%!$K$"$k%;%/%7%g%s6h@Z$j$N9T$r%^!<%/(B -$B$7$F$*$$$F(B@kbd{U}$B$r2!$9$H%j%8%g%sFb$N$b$N$KBP1~$9$k%=!<%9%F%-%9%H$N%;%/%7%g(B -$B%s%3%^%s%I$9$Y$F$,0l3,AX>e$,$j!"(B@kbd{D}$B$r2!$9$H2<$,$j$^$9!#%;%/%7%g%s6h@Z(B -$B$j0lMw%P%C%U%!$GMxMQ$G$-$k%-!<%3%^%s%I$K$O0J2<$N$b$N$,$"$j$^$9!#(B - -@table @kbd -@item SPC - @dots{} $BBP1~$9$k%=!<%99T$X%8%c%s%W(B -@item . - @dots{} $BBP1~$9$k%=!<%99T$rI=<((B -@item u - @dots{} $B%+!<%=%k0LCV$KBP1~$9$k%;%/%7%g%s%3%^%s%I$r0l3,AX>e$2$k(B -@item d - @dots{} $B%+!<%=%k0LCV$KBP1~$9$k%;%/%7%g%s%3%^%s%I$r0l3,AX2<$2$k(B -@item U - @dots{} $B%^!<%/$7$?%;%/%7%g%s%3%^%s%I$r0l3,AX>e$2$k(B -@item D - @dots{} $B%^!<%/$7$?%;%/%7%g%s%3%^%s%I$r0l3,AX>e$2$k(B -@item 0$B!A(B6 - @dots{} $B%l%Y%k(B n $B0J2<$N%;%/%7%g%s%3%^%s%I$r1#$7$FI=<((B -@end table - -@cindex $BO@M}3,AX(B[$B$m$s$j$+$$$=$&(B] -@cindex $B%;%/%7%g%s6h@Z$j(B[$B$;$/$7$h$s$/$-$j(B] -@cindex $B%8%c%s%W(B[$B$7$d$s$U(B] - -@node large$B7?Jd40(B, maketitle$B7?Jd40(B, section$B7?Jd40(B, Completion -@comment node-name, next, previous, up -@section large$B7?Jd40(B -@cindex large$B7?Jd40(B[large$B$+$?$[$+$s(B] -@cindex prefix l - - @code{@{\large @}} $B$N$h$&$J7A<0$NJd40$r(B large $B7?Jd40$H8F$V$3$H$K$7$^$9!#(B - -@table @kbd -@item [prefix] l - @dots{} large $B7?Jd403+;O(B -@end table - -@noindent -$B$,(Blarge$B7?Jd40$N3+;O$G$9!#(B@kbd{[prefix] l} $B$r2!$9$H!"%_%K%P%C%U%!$K(B - -@example - @{\??? @} (default large): -@end example - -@noindent -$B$HI=<($5$l$k$N$G!">e5-$N$b$N$HF1$8MWNN$GJd40F~NO$7$F2<$5$$!#Jd408uJd$KMQ0U(B -$B$5$l$F$$$k$N$O!"(B@samp{footnotesize} $B$d(B @samp{huge} $B$N$h$&$JJ8;z%5%$%:;XDj(B -$B;R$H!"(B@samp{bf}$B$d(B@samp{dg}$B$N$h$&$J%U%)%s%H;XDj;R$G$9!#(B -@cindex $BJ8;z%5%$%:;XDj;R(B[$B$b$7$5$$$9$7$F$$$7(B] -@cindex $B%U%)%s%H;XDj;R(B[$B$U$*$s$H$7$F$$$7(B] - -@subsection $B4{$K=q$$$?J8;z$r3g$k(B -@cindex $B3g$k(B[$B$/$/$k(B] - - $B$^$?!"(Bbegin$B7?Jd40$N;~$HF1MM!"@h$K=q$$$F$7$^$C$?0lO"$NJ8>O$NJ8;z$N%5%$%:(B -$B$rJQ$($?$$$H;W$&;~$,$"$j$^$9$,!"$=$N$h$&$J;~$O!"%5%$%:$dBg$-$5$rJQ$($?$$J8(B -$B;z$NHO0O$r%^!<%/$7$F$+$i!"8F$S=P$7%-!<$r(B @kbd{[prefix] L} $B$H!"BgJ8;z$N(B L -$B$KJQ$($F8F$S=P$;$P!"$=$N%j%8%g%sA4BN$,!"%V%l!<%9$G0O$^$l$^$9!#(B - -@node maketitle$B7?Jd40(B, Arbitrary completion, large$B7?Jd40(B, Completion -@comment node-name, next, previous, up -@section maketitle$B7?Jd40(B -@cindex maketitle$B7?Jd40(B[maketitle$B$+$?$[$+$s(B] -@cindex prefix m - - @code{\maketitle} $B$N7A<0$NJd40$r(B maketitle $B7?Jd40$H8F$V$3$H$K$7$^$9!#(B - -@table @kbd -@item [prefix] m - @dots{} maketitle $B7?Jd403+;O(B -@end table - -@noindent -$B$G!"(Bmaketitle $B7?Jd40$r3+;O$7$^$9!#Jd40$NMWNN$O:#$^$G$N$b$N$H$^$C$?$/F1$8$G(B -$B$9!#(BLa@TeX{} $BMQ$N%3%^%s%IL>$,Jd408uJd$H$7$FMQ0U$5$l$F$$$^$9!#(B - -@node Arbitrary completion, end$BJd40(B, maketitle$B7?Jd40(B, Completion -@comment node-name, next, previous, up -@section $B?o;~Jd40(B -@cindex $B?o;~Jd40(B[$B$9$$$7$[$+$s(B] -@cindex prefix SPC - - $B$5$F!":#$^$G=R$Y$?E57?E*$J(B La@TeX{} $B%3%^%s%I7A<0$NJd40F~NO$rMQ$$$:$K!":#(B -$BF~NO$7$h$&$H$7$F$$$k(B La@TeX{} $B%3%^%s%I$rJ8=qCf$NG$0U$N0LCV$G?o;~Jd40$9$k$3(B -$B$H$b$G$-$^$9!#(BLa@TeX{} $B%3%^%s%I(B($B@hF,$,(B\$B$G;O$^$k(B)$B$rF~NO$7$F$$$kESCf$G!"(B - -@table @kbd -@item [prefix] SPC - @dots{} $B?o;~Jd40(B -@end table - -@noindent -$B$rF~NO$9$l$P!"A4$F$NJd408uJd$NCf$+$i0lCW$9$k$b$N$,A*$P$l%+!<%=%k0LCV$KA^F~(B -$B$5$l$^$9!#(B - -@node end$BJd40(B, Accent mark completion, Arbitrary completion, Completion -@comment node-name, next, previous, up -@section end$BJd40(B -@cindex end$BJd40(B[end$B$[$+$s(B] -@cindex prefix e - - $B8=:_3+$$$?$^$^$N4D6-L>$r<+F0E*$K8!=P$7!"(B@code{\end@{$B4D6-L>(B@}}$B$rA^F~$7$^(B -$B$9!#(Bbegin $B7?Jd40$rMQ$$$l$P4D6-$NJD$8K:$l$O$J$$$N$G$9$,!";~$K$O$D$$$D$$(B@}} $B$rF~$l$F$7$^$$!"Ha$7$$;W$$$r$9$k$3$H$,$"$j$^$9!#$=(B -$B$N$h$&$J;~$K$O5$$K$;$:B3$1$FJ8>O$rF~NO$7!"$7$+$k$N$A$K(B - -@table @kbd -@item [prefix] e - @dots{} end $BJd40(B -@end table - -@noindent -$B$H$9$k$3$H$G!"8=:_3+$$$F$$$k4D6-L>$G(B \end@{@} $B$,Jd$o$l$^$9!#(B - -@node Accent mark completion, Image completion, end$BJd40(B, Completion -@comment node-name, next, previous, up -@section $B%"%/%;%s%H5-9fJd40(B -@cindex $B%"%/%;%s%H5-9fJd40(B[$B$"$/$;$s$H$-$3$&$[$+$s(B] -@cindex prefix a -@cindex $B2$J8(B[$B$*$&$U$s(B] - - $B2$J8$N%"%/%;%s%H5-9f(B(@code{\`@{o@}}$B$J$I(B)$B$rF~NO$9$k;~$O!"(B - -@table @kbd -@item [prefix] a - @dots{} $B%"%/%;%s%H5-9fF~NO(B -@end table - -@noindent -$B$r2!$9$H!"%_%K%P%C%U%!$K(B - -@example - 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b -@end example - -@noindent -$B$H$$$&%a%K%e!<$,=P$FMh$k$N$G!"?t;z!"$^$?$OBP1~$9$k5-9f(B/$B1Q;z$rF~NO(B -$B$7$F2<$5$$!#$9$k$HJT=8%P%C%U%!$K!"(B - -@example - \`@{@} -@end example - -@noindent -$B$,$"$i$o$l!"%+!<%=%k$,(B@{@}$BFb$K0LCV$9$k$N$G!"$5$i$K0lJ8;zF~NO$9$k;v$G!"(B - -@example - \`@{o@} -@end example - -@noindent -$B$,40@.$5$l!"%+!<%=%k$O(B@{@}$B$N30$KLa$j$^$9!#(B - -@node Image completion, Greek letter completion, Accent mark completion, Completion -@comment node-name, next, previous, up -@section $B?t<05-9f%$%a!<%8Jd40(B -@cindex $B?t<05-9f%$%a!<%8Jd40(B[$B$9$&$7$-$-$3$&$$$a$($7$[$+$s(B] -@cindex $B%$%a!<%8Jd40(B[$B$$$a$($7$[$+$s(B] -@cindex ; -@cindex $B?t<0%b!<%I(B[$B$9$&$7$-$b$*$H(B] -@cindex $BLp0u(B[$B$d$7$k$7(B] -@cindex $B&2(B[$B$7$/$^(B] -@cindex leftarrow -@cindex $B!g(B[$B$`$1$s$?$$(B] - - $Bl9g!"0lHLE*$K$O!V(B<-$B!W(B -$B$N$h$&$K$7$^$9$,!"$3$l$rMxMQ$7$F!"?t<05-9f%$%a!<%8F~NO%b!<%I$G(B -@code{\leftarrow}$B$rF~NO$9$k$K$O!"(B@kbd{;}($B%;%_%3%m%s(B)$B$rBG$C$F$+$i(B@kbd{<-}$B$H(B -$BF~NO$7$^$9!#F1MM$K!"D9$$Lp0u"+(B-(long-leftarrow) $B$r(BASCII$BJ8;z$@$1$GI=8=$9$k(B -$B>l9g!V(B<--$B!W$H$9$k$N$G!"(B@code{\longleftarrow}$B$rF~NO$9$k$?$a$K$O!"(B@kbd{;<--} -$B$HF~NO$7$^$9!#$"$k$$$OL58BBg5-9f$r(BASCII$BJ8;z$@$1$GI=8=$9$k;~$O!V(Boo$B!W$N$h$&(B -$B$K$9$k$3$H$+$i!"(B@code{\infty} $B$rF~NO$9$k;~$O!"(B@kbd{;oo}$B$H%-! @code{\longleftrightarrow} -; o @code{\circ} -; o o @code{\infty} -@end example - - -@noindent - $B$$$:$l$N>l9g$b!"%$%a!<%8F~NO$r9T$C$F$$$kESCf$GK>$_$N$b$N$,%P%C%U%!(B -$B$KI=<($5$l$?$J$i!"$=$3$G%$%a!<%8F~NO$r;_$a$F8e$K(BTAB$B$r2!$7$F$/$@$5$$!#0J2<$NNc$O!"(B@kbd{;<}$B$H2!$7$?8e$K(BTAB$B$r2!$7$?$b$N(B -$B$G$9!#(B - -@example -KEY LaTeX sequence sign -< \leq $B!e(B -<< \ll $B!T(B -<- \leftarrow $B"+(B -<= \Leftarrow <= -@end example - -$B:8$+$i(B[$BF~NO%-!<(B]$B!"(B[$BBP1~$9$k(B La@TeX{} $B%3%^%s%I(B]$B!"(B[($B5<;w(B)$B5-9f?^<((B]$B!"$H(B -$B$$$&=g$G%a%K%e!<$,=P$FMh$k$N$G!"$h$/;H$&$b$N$r3P$($F$*$/$HNI$$$G$7$g(B -$B$&!#$b$N$K$h$C$F$O(BASCII$BJ8;z$GI=8=$9$k$3$H$,:$Fq$J$N$G!"$"$^$j3P$((B -$B$d$9$$%-!l9g$O(B -\maketitle $B7?Jd40$GF~NO$9$k$+!"0J2<$K=R$Y$kBP1~I=$N@_Dj$r9T$C$FC1(B -$B=c$J%-!l9g$O(B -Emacs-Lisp $BJQ?t(B @code{YaTeX-math-sign-alist-private} $B$KDj5A$7$F$/$@$5$$!#(B -$B$=$NFbMF$H%G%U%)%k%H$N$b$N$r9g$o$;$?$b$N$,BP1~I=$H$7$F;HMQ$5$l$^$9(B(private -$B$NJ}$,M%@h$5$l$k(B)$B!#$J$*!"$3$NJQ?t$N9=B$$K$D$$$F$O(B @file{yatexmth.el} $B$r;2(B -$B>H$7$F$/$@$5$$!#(B -@cindex YaTeX-math-sign-alist-private - -@node Greek letter completion, , Image completion, Completion -@comment node-name, next, previous, up -@section $B%.%j%7%cJ8;zJd40(B -@cindex $B%.%j%7%cJ8;zJd40(B[$B$-$j$7$d$b$7$[$+$s(B] -@cindex : - - $B$b$&0l$D!"?t<04D6-Cf$G(B@kbd{:}$B$r2!$9$H%.%j%7%cJ8;zF~NO%b!<%I$KF~$j$^$9!#(B -@kbd{:}$B$r2!$7$?D>8e$K(B@kbd{a}$B$r2!$9$H(B@code{\alpha}$B$,!"(B@kbd{g} $B$r2!$9$H(B -@code{\gamma}$B$,!"$J$I%"%k%U%!%Y%C%H$KBP1~$7$?%.%j%7%cJ8;z$,A^F~$5$l$^$9!#(B -$BA`:nJ}K!$O(B;$B$N?t<05-9fJd40$H$^$C$?$/F1$8$G$9!#$^$:$O(B@kbd{:}$B$ND>8e$K(B -TAB$B$r2!$7$F$I$N%"%k%U%!%Y%C%H$K$I$N%.%j%7%cJ8;z$,BP1~$7$F$$$k$+D4$Y$F$_$F(B -$B$/$@$5$$!#(B - - @kbd{;}$B$H(B@kbd{:}$B$r?t<04D6-Cf$G2!$7$F$$$k$K$b$+$+$o$i$:!"%$%a!<%8Jd40$,F/(B -$B$+$J$$>l9g$O!"(B@kbd{C-u ;}$B$N$h$&$K(B universal-argument $B$r$D$1$F%-!<$r2!$9$3(B -$B$H$K$h$j!"6/@)E*$K%$%a!<%8Jd40$KF~$k$3$H$,$G$-$^$9!#$^$?!"$3$N;~$K$I$N$h$&(B -$B$J>uBV$G?t<04D6-FbH=Dj$K<:GT$7$?$+$r$4O"Mm2<$5$$!#(B - -@node Local dictionary, Commenting out, Completion, Top -@comment node-name, next, previous, up -@chapter $B%m!<%+%k<-=q(B -@cindex $B%m!<%+%k<-=q(B[$B$m$*$+$k$7$7$h(B] -@cindex .yatexrc - - $BJd40F~NOMQ$N8uJd$O;0oMQ(B -$B$9$k%3%^%s%I$rJ]B8$9$k!V%f!<%6<-=q!W!"$=$7$F$b$&$R$H$D$O$"$k%G%#%l%/%H%j$G(B -$B$N$_M-8z$J%3%^%s%I$rJ]B8$9$k!V%m!<%+%k<-=q!W$G$9!#(B - - $BJd40F~NO;~$K?7$7$$C18l$rF~$l$?>l9g$K!"$=$NC18l$r$I$N<-=q$KF~$l$k$+J9$$$F(B -$BMh$^$9!#(B - -@example - `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard -@end example - -@noindent -$B$H$$$&%W%m%s%W%H$KBP$7!"(B@kbd{u}$B$HEz$($k$H!V%f!<%6<-=q!W$r!"(B@kbd{l}$B$HEz$($k(B -$B$H%m!<%+%k<-=q$r99?7$7!"(B@kbd{n}$B$HEz$($k$H<-=q%U%!%$%k$O99?7$;$:8=:_$N(BEmacs -$B%;%C%7%g%s$N$_M-8z$JC18l$H$7!"(B@kbd{d}$B$HEz$($k$H?7$?$JC18l$r3X=,$;$:$Kl(B -$B9g$K$O(B@file{~/.emacs}$B$J$I$G!"(B -@cindex YaTeX-nervous - -@lisp - (setq YaTeX-nervous nil) -@end lisp - -@noindent -$B$H$7$F2<$5$$!#(B - -@node Commenting out, Cursor jump, Local dictionary, Top -@comment node-name, next, previous, up -@chapter $B%3%a%s%H%"%&%H(B -@cindex $B%3%a%s%H%"%&%H(B[$B$3$a$s$H$"$&$H(B] -@cindex prefix < -@cindex prefix > -@cindex prefix . -@cindex prefix , - - - La@TeX{}$B$NJT=8$K$O;n9T:x8m$,$D$-$b$N$G$9!#$"$kItJ,$r0l3g$G%3%a%s%H%"%&%H(B -$B$7$?$j!"%3%a%s%H$r30$7$?$j$7$?$$$3$H$,$"$j$^$9!#(B - -@table @kbd -@item [prefix] > - @dots{} $B%j%8%g%s$r(B % $B$G%3%a%s%H%"%&%H(B -@item [prefix] < - @dots{} $B%j%8%g%s$N(B % $B$N%3%a%s%H$r30$9(B -@end table - -@noindent -$B$O!"$"$i$+$8$a@_Dj$7$?%j%8%g%s$KBP$7$F$NA`:n!"(B - -@table @kbd -@item [prefix] . - @dots{} $B8=:_$N%Q%i%0%i%U$r%3%a%s%H%"%&%H(B -@item [prefix] , - @dots{} $B8=:_$N%Q%i%0%i%U$N%3%a%s%H$r30$9(B -@end table - -@noindent -$B$O!"%+!<%=%k$N0LCV$9$k%Q%i%0%i%UA4BN$KBP$7$F$NA`:n$G$9!#$J$*!"$3$3$G$$$&(B -$B!V%Q%i%0%i%U!W$O(B (@code{mark-paragraph}) $B4X?t$K$h$j%^!<%/$5$l$kHO0O$r;X$7(B -$B$^$9(B($BI8=`@_Dj$G(B@kbd{ESC h}$B$K%P%$%s%I$5$l$F$$$k(B)$B!#$J$*!"4{$K(B@code{%}$B$G%3%a(B -$B%s%H%"%&%H$5$l$F$$$k%Q%i%0%i%U$KBP$7$F7+$jJV$7%Q%i%0%i%U$N%3%a%s%H$r;HMQ$7(B -$B$?>l9g$NF0:n$OJ]>Z$7$^$;$s$N$G8fCm0U$/$@$5$$!#(B - - $B$5$F!"J8>O$KBP$7$F$@$1$G$J$/!";~$K$O(B@code{\begin}, @code{\end} $B<+BN$KBP(B -$B$7$F$b%3%a%s%H%"%&%H$NA`:n$r$7$?$$$H$-$,$"$j$^$9!#$3$N$h$&$J$H$-$O!"(B -@code{\begin@{@}} $B$"$k$$$O(B @code{\end@{@}} $B$N9T$K%+!<%=%k$r9g$o$;!"(B - -@table @kbd -@item [prefix] > - @dots{} @code{\begin@{@}}$B!A(B@code{\end@{@}} $BA4$F%3%a%s%H%"%&%H(B -@item [prefix] < - @dots{} @code{\begin@{@}}$B!A(B@code{\end@{@}} $BA4$F%3%a%s%H$r30$9(B -@end table - -@noindent -$B$H$9$k$3$H$G!"(B@code{\begin$B!A(B\end}$B$G0O$^$l$k4D6-A4$F$KBP$7$F%3%a%s%HA`:n$7!"(B - -@table @kbd -@item [prefix] . - @dots{} @code{\begin@{@}} $B$H(B @code{\end@{@}} $B$r%3%a%s%H%"%&%H(B -@item [prefix] , - @dots{} @code{\begin@{@}} $B$H(B @code{\end@{@}} $B$N%3%a%s%H$r30$9(B -@end table - -$B$O!"BP1~$9$k(B @code{\begin} $B$H(B @code{\end} 2$B9T$@$1$r!"%3%a%s%HA`:n$NBP>]$H(B -$B$7$^$9!#%j%8%g%s$r%3%a%s%H%"%&%H$7$h$&$H$7$F!"%^!<%/$r@_Dj$7$?$N$A$K%+!<%=(B -$B%k$r0\F0$7(B@kbd{[preifx] >} $B$r2!$7$F$b%+!<%=%k$,(B @code{\begin@{@}} $B$N>e$K$"(B -$B$k$H(B@code{\begin@{@}}$B!A(B@code{\end@{@}}$B%b!<%I$G%3%a%s%H5!G=$,F/$$$F$7$^$&$N(B -$B$GCm0U$7$F2<$5$$!#(B - -@node Cursor jump, Modifying/Deleting, Commenting out, Top -@comment node-name, next, previous, up -@chapter $B%+!<%=%k%8%c%s%W(B -@cindex $B%+!<%=%k%8%c%s%W(B[$B$+$"$=$k$7$d$s$U(B] -@cindex prefix g - - -@menu -* $BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B:: -* $B$*3(IA$-%D!<%k5/F0(B:: -* $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B:: -* $B4D6-$rC10L$H$7$?%8%c%s%W(B:: -* $B:G8e$NJd400LCV$X$N%8%c%s%W(B:: -@end menu - -@node $BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B, $B$*3(IA$-%D!<%k5/F0(B, Cursor jump, Cursor jump -@comment node-name, next, previous, up -@section $BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B - - $BJ8=qCf$N$$$m$$$m$J>l=j$G(B - -@table @kbd -@item [prefix] g - @dots{} $BBP1~$9$k%*%V%8%'%/%H$K%8%c%s%W(B -@end table - -@noindent -$B$r2!$9$3$H$K$h$j!"%+!<%=%k0LCV$N(BLa@TeX{}$B%3%^%s%I$KBP1~$9$k>l=j$K%8%c%s%W(B -$B$7$^$9!#BP1~4X78$,B8:_$9$k$H2rl9g$O%(%i!<$K$J$j$^$9!#$^$?$3$l$O!"NN0h8GDj$N$?$a$N(B @code{%#BEGIN} $B$H(B -@code{%#END} $B$N%Z%"$KBP$7$F$bF1MM$KF0:n$7$^$9!#$J$*!"(B@code{label/ref}$B$d(B -@code{cite/bibitem}$BBP1~$9$k$b$N$,JL%U%!%$%k$K$"$k;~$O!"%8%c%s%W@h$H$J$k%U%!(B -$B%$%k$,%*!<%W%s$5$l$F$$$J$1$l$P$J$j$^$;$s!#(B@xref{%#notation}. -$B%a%$%s$N(B .tex $B%U%!%$%k$N(B @code{\include@{chap1@}} $B$J$I$K%+!<%=%k$r9g$o$;!"(B -@kbd{[prefix] g} $B$r2!$9$H!"(B@file{chap1.tex} $B$K%8%c%s%W$7$^$9!#(B - -$B$^$?!"(B - -@table @kbd -@item [prefix] 4 g - @dots{} $BJL%&%#%s%I%&$GBP1~%*%V%8%'%/%H$K%8%c%s%W(B -@end table - -@noindent -$B$r2!$9$H!"BP1~$9$k%*%V%8%'%/%H$X$N%8%c%s%W$rJL%&%#%s%I%&$G9T$$$^$9!#$?$@$7!"(B -$B$3$N5!G=$O(B @code{begin/end}, @code{%#BEGIN/%#END} $B4V$N%8%c%s%W$KBP$7$F$O(B -($B0UL#$,$J$$$H;W$o$l$k$N$G(B)$B5!G=$7$J$$$N$GCm0U$7$F$/$@$5$$!#(B - -@node $B$*3(IA$-%D!<%k5/F0(B, $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B, $BBP1~%*%V%8%'%/%H$X$N%8%c%s%W(B, Cursor jump -@comment node-name, next, previous, up -@section $B$*3(IA$-%D!<%k5/F0(B -@cindex $B$*3(IA$-%D!<%k5/F0(B[$B$*$($+$-$D$&$k$-$H$&(B] - -$B>e5-$N!V2hA|%U%!%$%k$N$KAjEv$9$kItJ,$r(B -\\(\\)$B$+$iH4$-=P$7$F3P$($F$*$/(B($B2?HVL\$N(B\\(\\)$B$+$OJQ?t$N3F%j%9%H$N(B cdr $BIt$K(B -$BF~$l$F$*$/(B)$B!#%^%C%A$7$J$1$l$P2?$b$7$J$$!#(B -@item -$B9TKv$K!"JQ?t(B @code{YaTeX-file-processor-alist} $B$KEPO?$5$l$F$$$k%3%^%s%I$,(B -$B!V(B%$B%3%^%s%I!W(B $B$N$h$&$K=q$$$F$"$l$P6/@)E*$K!V%3%^%s%I(B $B%U%!%$%kL>(B.$B3HD%;R!W$r(B -$B5/F0!#(B -@item -$B$J$1$l$P!"JQ?t(B @code{YaTeX-file-processor-alist} $B$N3F%j%9%H$N(Bcdr$BIt$KF~$C$F(B -$B$$$k3HD%;R$r!V%U%!%$%kL>!W$N8e$m$KB-$7$?%U%!%$%k$,B8:_$9$k$+=gl9g(Bcar$BIt$KF~$C$F$$$k%3%^%s%I$r5/F0$9$k!#(B -@item -$B0J>e$I$l$+$K%^%C%A$7$J$1$l$P$"$-$i$a$k!#(B -@end enumerate - - -$BJQ?t(B @code{YaTeX-file-processor-alist} $B$HJQ?t(B -@code{YaTeX-file-processor-alist} $B$N@_DjJ}K!$K$D$$$F$O$=$l$>$l$NJQ?t$K$D$$(B -$B$F(B describe-variable $B$7$F@bL@$rFI$s$G2<$5$$!#$&$^$/@_Dj$9$k$H!"2hA|%U%!%$(B -$B%k$K$+$.$i$:!"G$0U$N7A<0$N%U%!%$%k$rG$0U$N%W%m%;%C%5$G=hM}$9$k%3%^%s%I$r4J(B -$BC1$K8F$S=P$9$3$H$,$G$-$^$9!#(B - -@node $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B, $B4D6-$rC10L$H$7$?%8%c%s%W(B, $B$*3(IA$-%D!<%k5/F0(B, Cursor jump -@comment node-name, next, previous, up -@section $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B - -@file{chap1.tex}$B$N$h$&$J%5%V%U%!%$%k$G!"(B - -@table @kbd -@item [prefix] ^ - @dots{} $B%a%$%s%U%!%$%k$K%8%c%s%W(B -@item [prefix] 4 ^ - @dots{} $BJL%&%#%s%I%&$G%a%$%s%U%!%$%k$K%8%c%s%W(B -@end table - -@noindent -$B$r2!$9$H!"%a%$%s%U%!%$%k$NJT=8%P%C%U%!$K@ZBX$($^$9!#$b$7!"%a%$%s%U%!%$%k$r(B -$B%*!<%W%s$7$F$$$J$$>l9g$O!"%+%l%s%H%G%#%l%/%H%j$+$iC5$7$F<+F0E*$K%*!<%W%s$7(B -$B$^$9!#(B - -@node $B4D6-$rC10L$H$7$?%8%c%s%W(B, $B:G8e$NJd400LCV$X$N%8%c%s%W(B, $B%a%$%s%U%!%$%k$X$N%8%c%s%W(B, Cursor jump -@comment node-name, next, previous, up -@section $B4D6-$rC10L$H$7$?%8%c%s%W(B - -$B$5$i$K8=:_$N4D6-$rC10L$H$7$F5!G=$9$k%3%^%s%I$K0J2<$N$b$N$,$"$j$^$9!#(B - -@cindex $B4D6-$N@hF,$X(B[$B$+$s$-$h$&$N$;$s$H$&$X(B] -@cindex $B4D6-$NKvHx$X(B[$B$+$s$-$h$&$N$^$D$R$X(B] -@cindex $B4D6-$r%^!<%/(B[$B$+$s$-$h$&$r$^$"$/(B] -@cindex M-C-a -@cindex M-C-e -@cindex M-C-@@ -@table @kbd -@item M-C-a - @dots{} $B4D6-$N@hF,(B(@code{\begin})$B$X%8%c%s%W(B -@item M-C-e - @dots{} $B4D6-$NKvHx(B(@code{\end})$B$X%8%c%s%W(B -@item M-C-@@ - @dots{} $B4D6-A4BN$r%^!<%/(B -@end table - -$B>e5-$N%3%^%s%I$ODL>o$N(B@kbd{[prefix]}$B%-!<$G$O$J$/(B@kbd{META}$B%-!<$r%W%j%U%#%/(B -$B%9$H$7$F5!G=$9$k$N$G$4Cm0U2<$5$$!#(B - -@node $B:G8e$NJd400LCV$X$N%8%c%s%W(B, , $B4D6-$rC10L$H$7$?%8%c%s%W(B, Cursor jump -@comment node-name, next, previous, up -@section $B:G8e$NJd400LCV$X$N%8%c%s%W(B - -$BLnD;$OJd40F~NO$7$?0LCV$r>o$K%l%8%9%?(B @code{3}$B$KJ]B8$7$F$$$^$9!#(B -$BF~NOESCf$GG!2?$J$k%U%!%$%k$NG!2?$J$k0LCV$K9T$C$?$H$7$F$b!"(B -@kbd{C-x j 3}(@code{jump-to-register})$B$r;H$C$FD>$A$K:G8e$NJd40F~NO0LCV$KLa(B -$B$k$3$H$,$G$-$^$9!#(B - -@node Modifying/Deleting, Filling, Cursor jump, Top -@comment node-name, next, previous, up -@chapter $BJQ99(B/$B:o=|(B -@cindex $BJQ99(B/$B:o=|(B[$B$X$s$3$&(B/$B$5$/$7$h(B] -@cindex prefix c -@cindex prefix k - - $B4{$KF~NO$5$l$F$$$k(B La@TeX{} $B%3%^%s%I$NJQ99(B/$B:o=|$N$?$a$K0J2<$N5!G=$,MQ0U(B -$B$5$l$F$$$^$9!#(B - -@table @kbd -@item [prefix] c - @dots{} $B%+!<%=%k0LCV$N(B La@TeX{} $B%3%^%s%I$NJQ99(B -@item [prefix] k - @dots{} $B%+!<%=%k0LCV$N(B La@TeX{} $B%3%^%s%I$N:o=|(B -@end table - -@noindent -$B$3$l$i$N%3%^%s%I$O!"%3%^%s%I$r5/F0$9$k>l=j$K$h$C$FF0:n$r7hDj$9$k$N$GCm0U$7(B -$B$F2<$5$$!#(B - -@menu -* Changing LaTeX command:: La@TeX{} $B%3%^%s%I$NJQ99(B -* Killing LaTeX command:: La@TeX{} $B%3%^%s%I$N:o=|(B -@end menu - -@node Changing LaTeX command, Killing LaTeX command, Modifying/Deleting, Modifying/Deleting -@comment node-name, next, previous, up -@section La@TeX{} $B%3%^%s%I$NJQ99(B - -$BJQ99$7$?$$(B La@TeX{} $B%3%^%s%I$K%+!<%=%k$r9g$o$;$F(B @kbd{[prefix] c} -$B$r2!$9$H$=$N%3%^%s%I$rJd40F~NO$J$I$rMQ$$$F(B -@item section$B7?%3%^%s%I$N%3%^%s%IL>(B -@item section$B7?%3%^%s%I$N0z?t(B -@item section$B7?%3%^%s%I$N%*%W%7%g%s%Q%i%a!<%?(B([]$B$G0O$^$l$?$b$N(B) -@item large$B7?%3%^%s%I(B -@item ($B%$%a!<%8Jd40$GF~NO2DG=$J(B)$B?t<0%b!<%I@lMQ$N(Bmaketitle$B7?%3%^%s%I(B -@end itemize - - $BJQ$($?$$(Bsection$B7?%3%^%s%I$N0z?t$,$5$i$K(B La@TeX{} $B%3%^%s%I$r4^$`>l9g$O!"(B -$B$=$N0z?t$r0O$`Cf3g8L$N>e$G(B @kbd{[prefix] c} $B$r2!$9$3$H$GCf$N%3%^%s%I$rJQ99(B -$BBP>]H=Dj$+$i=|30$9$k$3$H$,$G$-$^$9!#(B - -@cindex $B4D6-L>$NJQ99(B[$B$+$s$-$h$&$a$$$N$X$s$3$&(B] - -@node Killing LaTeX command, , Changing LaTeX command, Modifying/Deleting -@comment node-name, next, previous, up -@section La@TeX{} $B%3%^%s%I$N:o=|(B - -@kbd{[prefix] k} $B$O5/F0$9$k0LCV$K$h$j(B -$Be(B($BCf(B) section$B7?%3%^%s%I$N:o=|(B -$B%U%)%s%H;XDj3g8L$N>e(B $B%U%)%s%H;XDj$N:o=|(B -$B3g8L$N>e(B $BBP$r$J$93g8L$N:o=|(B -@end example - -@noindent -@code{\begin, \end} $B$*$h$S(B @code{%#BEGIN, %#END} $B$r:o=|$9$k>l9g!"(B -@code{\begin, \end} $B$d(B @code{%#BEGIN, %#END} $B$NB8:_$9$k9T$O(B -$B$^$k$4$H:o=|$5$l$k$N$G!"$=$l$i$N0l9T$K(B @code{\begin} $B$J$I$rFs$D0J>eO"$M$F(B -$B=q$+$J$$$h$&$KCm0U$7$F$/$@$5$$!#(B -$B>e5-$N$b$N$O$9$Y$FK\J8$r0O$&!VMF4o!W$r:o=|$9$k$h$&$KF/$-$^$9$,!"(B -universal-argument (@kbd{C-u}) $B$rBG$C$?8e$G(B@kbd{[prefix] k}$B$r%?%$%W$9$k$H!"(B -$B$=$l$>$l$N!VMF4o!W$K4^$^$l$k!VCf?H!W$b0l5$$K:o=|$7$^$9!#0J2<$NNc$r;29M$K$7(B -$B$F2<$5$$!#(B - -@example - $B85$N%F%-%9%H(B: [prefix] k C-u [prefix] k - $BK\J8(B\footnote@{$B5SCm(B@}$B$G$9!#(B $BK\J85SCm$G$9!#(B $BK\J8$G$9!#(B - $B",(B($B%+!<%=%k0LCV(B) -@end example - -@node Filling, Includeonly, Modifying/Deleting, Top -@comment node-name, next, previous, up -@chapter $B7eB7$((B -@cindex $B7eB7$((B[$B$1$?$=$m$((B] - -@section item$B$N7eB7$((B -@cindex item$B$J$I$N7eB7$((B[item$B$J$H$N$1$?$=$m$((B] -@cindex prefix i - - itemize $B4D6-Cf$K$"$k(B@code{\item}$B$N9`L\(B($BJ8>O(B)$B$,J#?t9T$KEO$k>l9g$K!"9`(B -$BL\$N@hF,$r7eB7$($7$?$$>l9g$K$O!"(B - -@c @table @kbd -@c @item [prefix] i -@c @dots{} item$B$N7eB7$((B -@c @end table - -@table @kbd -@item M-q - @dots{} $B7eB7$((B -@end table - -@cindex NTT-jTeX[$B$($L$F$$$$$F$$$$$7$($$$F$D$/(B] -@noindent -$B$K$h$C$F!"$=$N(B item $B$N%$%s%G%s%H$N?<$5$K1~$8$F(B fill $B$5$l$^$9!#$J$*!"8E$$(B -NTT jTeX $B$r;HMQ$7$F$$$k>l9g$K$O!"(BLisp $BJQ?t(B@code{NTT-jTeX}$B$r(B@code{t}$B$K%;%C(B -$B%H$7$F2<$5$$!#(B - -@cindex YaTeX-item-regexp - $B$3$N$H$-!"JQ?t(B@code{YaTeX-item-regexp}$B$NCM(B($BI8=`$G$O(B @code{"\\\\item"})$B$r(B -$B9`L\;XDj%3%^%s%I$N@55,I=8=$H$7$F8!:w$K;HMQ$7$^$9!#(Bitemize $B4D6-$G!"FH<+$N%3(B -$B%^%s%I$rDj5A$7$F9`L\$rNs5s$7$F$$$k>l9g(B($BNc$($P(B@code{\underlineitem})$B$O!"(B -@file{~/.emacs} $B$Gl9g$O!"FH<+$N9`L\Ns5s%3%^%s%I$NL>A0$r(B -@code{@code{"\item"}$B$G;O$^$k$b$N$K$7$F2<$5$$(B($BNc$($P(B"\itembf"})$B!#(B - -$BLnD;$N(B @kbd{M-q} $B$G$O(B @code{\item} $B$r4D6-$K1~$8$F0J2<$N$h$&$K!V%O%s%0%$%s(B -$B%G%s%H!W$7$^$9!#(B - -@example -itemize, enumerate$B4D6-(B: - >\item[$B$[$2$[$2(B] $B1Q8l$G$O!"FC$K0UL#$N$J$$C18l$r(B `foo' $B$G$"$i$o$7$^(B - > $B$9$,!"$3$l$NF|K\8lHG$H$b$$$($kC18l$,!V$[$2$[$2!W(B - > $B$G$9!#(B -description$B4D6-(B: - > \item[$B$X$m$X$m(B] $B!V$[$2$[$2!W$r$G$?$i$a$,C18l$H$7$F;H$C$?;~$K!"Bh(B - > 2$B$N$G$?$i$a$JC18l$H$7$F!V$X$m$X$m!W$,;H$o$l$k$3$H$,B?(B - > $B$$$h$&$G$9!#(B -@end example - -@section $B%Q%i%0%i%U$N7eB7$((B -@cindex $B%Q%i%0%i%U$N7eB7$((B[$B$O$i$/$i$U$N$1$?$=$m$((B] -@cindex M-q - - itemize$B4D6-0J30$G$N%Q%i%0%i%U$N7eB7$((B(fill)$B$O!"4pK\E*$KB>$N%b!<%I$HF1$8(B -$B$h$&$K5!G=$7$^$9$,!"(Bverbatim$B4D6-$d!"(Btabular$B4D6-$J$I7eB7$($r$9$k$HHa;4$J>u(B -$B67$K$J$k$h$&$J4D6-Cf$G$O5!G=$7$^$;$s!#$^$?!"(B\verb $B$G3g$C$F$"$k$b$N$O7h$7$F(B -$B9TJ,3d$5$l$^$;$s(B($BJQ?t(B @code{YaTeX-verb-regexp} $B$G@)8f(B) )$B!#$5$i$K!"0l;~E*$K(B -$B%$%s%G%s%H$N?<$5$rJQ$($F$"$k2U=j$G$O!"$=$N%$%s%G%s%H$N@hF,$G(B@kbd{M-q}$B$r2!(B -$B$9$3$H$K$h$j(B fill-prefix $B$r$$$A$$$AJQ99$7$J$/$F7eB7$($,$G$-$^$9!#(B - - -@node Includeonly, What column, Filling, Top -@comment node-name, next, previous, up -@chapter $B>!!O$rF~NO$7$F$$$k;~$K$O!"%a%$%s%U%!%$%kCf$K(B - -@example - \includeonly@{$B8=:_JT=8Cf$N%U%!%$%kL>(B@} -@end example - -@noindent -$B$N$h$&$K=q$$$F$*$/$3$H$G!"%?%$%W%;%C%H$N;~4V$r@aLs$G$-$^$9$,!"$A$g$C$HB>$N(B -$B%U%!%$%k$r$7$7$?$$;~$K$O(B -@cindex $BB>$N%U%!%$%k$N$7(B[$B$[$+$N$U$"$$$k$N$F$J$*$7(B] - -@example - \includeonly@{$B$A$g$C$H$7$7$?$$%U%!%$%kL>(B@} -@end example - -@noindent -$B$H=q$-D>$5$J$1$l$P$J$i$:$,%a%$%s%U%!%$%k$N(B@code{\includeonly}$B$K$J$$>l9g$K$O<+F0E*$K$3$l$r8!=P$7!"(B -$B$l2!$7$F2<$5$$!#(B - -@node What column, Intelligent newline, Includeonly, Top -@comment node-name, next, previous, up -@chapter $B$3$3$O$I$3(B? -@cindex $B$3$3$O$I$3(B?[$B$3$3$O$H$3(B?] -@cindex prefix & -@cindex $BJ#;($J(Btabular[$B$U$/$5$D$J(Btabular] - - $B9`L\?t$NB?$$(B tabular $B$J$I$r$?$/$5$s=q$$$F$$$k$H2<$NJ}$N9T$G!"$$$^=q$$$F(B -$B$$$k7e$,$I$3$KBP1~$9$k$N$+$o$+$i$J$/$J$C$F$7$^$&$3$H$,$"$j$^$9!#Nc$($P!"0J(B -$B2<$N$h$&$J(B tabular $B$K$*$$$F!"(B - -@example - \begin@{tabular@}@{|c|c|c|c|c|c|c|c|@}\hline - $B;aL>(B&$B=jB0(B&$B")(B&$B=;=j(B&$BEEOC(B&FAX&$B5">J@h(B&$B5">J@hEEOC(B\\ \hline - $BLp>eFsO:(B & 6 & 223 & $B2#IM;T9AKL6hF|5H(B & xxx-yyy & - zzz-www & $B%H%s%,(B & 9876-54321 \\ - $BF|5H>.AN(B & 2 & \multicolumn@{2@}@{c|@}@{$B65$($J$$(B@} - &&&(???) - \\ \hline - \end@{tabular@} -@end example - -@noindent -(???)$B$NItJ,$,$I$N9`L\$J$N$+$9$0$KH=CG$9$k$N$OFq$7$$$G$7$g$&!#$3$s$J;~$O!"(B - -@table @kbd -@item [prefix] & - @dots{} $B8=:_$N%+%i%`I=<((B -@end table -@cindex $B8=:_$N%+%i%`I=<((B[$B$1$s$5$$$N$+$i$`$R$h$&$7(B] - -$B$r2!$9$H%+!<%=%k0LCV$N%+%i%`$,$I$N9`L\$K3:Ev$9$k$+$r%_%K%P%C%U%!$KI=<($7$^(B -$B$9!#(Btabular/array$B4D6-$NBh(B1$B9TL\$r9`L\L>$NJB$S$H$_$J$7$FBP1~$9$k$b$N$rC5$7$^(B -$B$9!#$b$79`L\L>$H$7$FJL$N$b$N$rI=<($7$FM_$7$$>l9g$O!"9TF,$r(B@code{%}$B$K$7$F%@(B -$B%_!<$N9`L\JB$S$r:n$C$F$*$/$HNI$$$G$7$g$&!#(B - -@node Intelligent newline, Changing mode of YaTeX, What column, Top -@comment node-name, next, previous, up -@chapter $B$*$^$+$;2~9T(B -@cindex $B$*$^$+$;2~9T(B[$B$*$^$+$;$+$$$-$h$&(B] -@cindex &$BF~NO(B[&$B$K$f$&$j$h$/(B] - - tabular[*], array, itemize, enumerate, tabbing $B4D6-$r(Bbegin$B7?Jd40$GF~NO$7(B -$B$?;~!"$^$?$O3F4D6-Fb$G(B - -@table @kbd -@item ESC RET - @dots{} $B$*$^$+$;2~9T(B -@end table - -@noindent -$B$r2!$9$H!"$=$N4D6-$K1~$8$?9T%(%s%H%j$rl9g$O(B undo $B$K$h$C$F>C5n$G$-$^$9(B)$B!#Nc$($P!"(B -tabular$B4D6-$G$O!"$=$N4D6-$N%+%i%`?t$KBP1~$7$?8D?t$N(B @code{&} $B$K2C$(!"9TKv(B -$B$N(B @code{\\} $B$rF~$l$^$9!#$3$N;~$=$l0JA0$K(B @code{\hline} $B$,$"$l$P$=$l$bIU$1(B -$B2C$($^$9!#4D6-$H$=$l$K1~$8$F<+F0F~NO$9$k$b$N$NBP1~$O0J2<$N$h$&$K$J$j$^$9!#(B - -@itemize -@item @code{tabular}, @code{tabular*}, @code{array} - - $B%+%i%`?t(B-1 $B$@$1$N(B @code{&} $B$H(B @code{\\}$B!#I,MW$K1~$8$F(B @code{\hline} - -@item @code{tabbing} - - $B0l9TL\$GDj5A$7$F$$$k(B @code{\=} $B$HF1$88D?t$N(B @code{\>}$B!#(B - -@item @code{itemize}, @code{enumerate}, @code{description}, @code{list} - - @code{\item} $B$^$?$O(B @code{item[]} -@end itemize - - tabular $B4D6-$NNc$N$h$&$K!"K\5!G=$O3F4D6-$N0l9TL\$NFbMF$r;29M$K$7$FF0:n$9(B -$B$k$N$G!"$J$k$Y$/Fs9TL\0J9_$G8F$S=P$9$h$&$K$7$F$/$@$5$$!#(B - - $B$b$7!"$=$NB>$N4D6-!"Nc$($P(B @code{foo}$B!"$KBP$7$F(B@code{$B$*$^$+$;2~9T(B}$B$rF0:n(B -$B$5$;$?$$;~$O!"(B@code{YaTeX-intelligent-newline-foo} $B$H$$$&L>A0$N4X?t$rDj5A(B -$B$7$^$9!#Dj5A$7$?4X?t$O!"8=:_$N9T$K2~9T$rA^F~$7$?D>8e$N9TF,$N0LCV$G8F$P$l$^(B -$B$9!#4X?t(B @code{YaTeX-indent-line} $B$r8F$V$H8=:_$N4D6-$N%M%9%H$K1~$8$??<$5$K(B -$B%$%s%G%s%H$5$l$k$N$G!"$3$l$r8F$s$G$+$i2?$+$rA^F~$9$k$h$&$J%3!<%I$r=q$/$H$h(B -$B$$$G$7$g$&!#(B@file{yatexenv.el}$BFb$N4X?t(B -@code{YaTeX-intelligent-newline-itemize} $B$NDj5A$J$I$r;29M$K$7$F$/$@$5$$!#(B - -@node Changing mode of YaTeX, Online help, Intelligent newline, Top -@comment node-name, next, previous, up -@chapter $BLnD;$NF0:n%b!<%I@Z$jBX$((B -@cindex $B%b!<%I@Z$jBX$((B[$B$b$&$H$-$j$+$((B] -@cindex prefix w - -@table @kbd -@item [prefix] w - @dots{} $BLnD;F0:n%b!<%I@Z$jBX$(%a%K%e!<(B -@end table - -@noindent -$B$GLnD;<+?H$NF0:n$r7hDj$9$k0J2<$N%b!<%I$r@Z$jBX$($^$9!#(B - -@itemize @bullet -@item $B=$@5%b!<%I(B -@item $BLnD;?t<0%b!<%I(B -@end itemize - -$B=$@5%b!<%I$O!"3+$-3g8LF~NO;~$N=hM}$r%3%s%H%m!<%k$7!"=$@5%b!<%I(BON$B$N;~$O3+$-(B -$B3g8L$NF~NO$O3+$-3g8L$N$_$NF~NO$K$J$j!"=$@5%b!<%I(BOFF$B$N;~$O3+$-3g8L$NF~NO$@(B -$B$1$GJD$83g8L$^$GF~NO$7$^$9!#%G%U%)%k%H(B($B5/F0;~(B)$B$N@_Dj$O(B@emph{OFF}$B$G$9!#(B - - $BLnD;?t<0%b!<%I$O!"JQ?t(B @code{YaTeX-auto-math-mode} $B$,(B @code{nil} $B$N;~$N(B -$B$_M-8z$G!"$3$N$H$-(B@kbd{;}$B$d(B@kbd{:}$B$r2!$7$?;~(B(@ref{Image completion}$B;2>H(B)$B$K!"(B -$B$I$N$h$&$J%$%a!<%8Jd40$r5!G=$5$;$k$+!"DL>o$N%-!<$H$7$F5!G=$5$;$k$+$rH$5$l$k%X(B -$B%k%WMQ%U%!%$%k$K$O!V%0%m!<%P%k%X%k%W!W$H!V%W%i%$%Y!<%H%X%k%W!W$NFso8x6&$N>l=j(B($B%G(B -$B%U%)%k%H$G(B@code{$EMACSEXECPATH})$B$KCV$+$l!"C/$b$,$=$NFbMF$r99?7$G$-$k$h$&$K(B -$BA40w$K=q$-9~$_8"$,M?$($i$l$k$Y$-$b$N$G$9!#8el9g$O!"@bL@J8$NF~NO$r5a$a$F$/$k$N$G!"2DG=$G$"$l$P;29M=q$J$I$r(B -$BD4$Y$F$=$N%3%^%s%I$N@bL@$rF~NO$7$F$/$@$5$$!#$b$7!"$J$K$+I8=`E*$J%3%^%s%I$K(B -$BBP$9$k@bL@$r=q$$$?$J$i$P$<$R;d$^$G$=$N@bL@$r$*Aw$j2<$5$$!#l9g!"(B - -@table @kbd -@item [prefix] d - @dots{} $B%$%s%/%k!<%I9=B$%V%i%&%:(B -@end table - -@noindent -$B$r2!$9$H!"$=$N%I%-%e%a%s%H$N?F%U%!%$%k$rJ9$$$FMh$^$9!#$3$3$GA4$F$N%U%!%$%k(B -$B$N?F$H$J$k%U%!%$%k(B($B%G%U%)%k%H$,<($5$l$F$$$k$N$GBgDq$O(BRET$B$N$_(B)$B$rF~NO$9$k$H(B -$B%$%s%/%k!<%I$7$F$$$kA4$F$N%U%!%$%k$r2r@O$7!"%$%s%/%k!<%I>u67$r;k3PE*$KI=<((B -$B$7$^$9!#$3$N%P%C%U%!$G$O0J2<$N%-!e$N9T$K0\F0$7BP1~$9$k%U%!%$%k$rNY$N%P%C%U%!$KI=<((B -@item N - @dots{} $BF1$8%$%s%/%k!<%I%l%Y%k$Ne$N9T$K0\F0(B -@item u - @dots{} $B0lBe?F$K$"$?$k%U%!%$%k$K0\F0(B -@item . - @dots{} $B%+!<%=%k0LCV$N%U%!%$%k$rNY$N%P%C%U%!$KI=<((B -@item SPC - @dots{} $BNY$N%P%C%U%!$NBP1~%U%!%$%k$r%9%/%m!<%k%"%C%W(B -@item DEL, b - @dots{} $BNY$N%P%C%U%!$NBP1~%U%!%$%k$r%9%/%m!<%k%@%&%s(B -@item < - @dots{} $BNY$N%P%C%U%!$NBP1~%U%!%$%k$N@hF,$rI=<((B -@item > - @dots{} $BNY$N%P%C%U%!$NBP1~%U%!%$%k$NKvHx$rI=<((B -@item ' - @dots{} (@kbd{<}$B$d(B@kbd{>}$B$N8e$G(B)$B85$NI=<(0LCV$KLa$k(B -@item RET, g - @dots{} $B%+!<%=%k0LCV$N%U%!%$%k$rNY$N%P%C%U%!$G%*!<%W%s(B -@item mouse-2 - @dots{} RET$B$HF1$8(B($B%&%#%s%I%&;HMQ;~$N$_(B) -@item o - @dots{} $BNY$N%&%#%s%I%&$K0\F0(B -@item 1 - @dots{} $BB>$N%&%#%s%I%&$r>C$9(B -@item - - @dots{} $B%V%i%&%:%&%#%s%I%&$r>.$5$/$9$k(B -@item + - @dots{} $B%V%i%&%:%&%#%s%I%&$rBg$-$/$9$k(B -@item ? - @dots{} $B%X%k%WI=<((B -@item q - @dots{} $BI=<(A0$N>uBV$KLa$k(B -@end table - - $B$?$@$7!"NY$N%&%#%s%I%&$N%U%!%$%k$NFbMF$rI=<($9$k5!G=$K4X$7$F$O!"BP1~$9$k(B -$B%U%!%$%k$r%/%m!<%:$7$F$7$^$&$H$&$^$/F/$-$^$;$s$N$G$4Cm0U$/$@$5$$!#(B - -@node Cooperation with other packages, Customizations, Inclusion hierarchy browser, Top -@comment node-name, next, previous, up -@chapter $BB>%Q%C%1!<%8$H$NO"7H(B -@cindex $BB>%Q%C%1!<%8$H$NO"7H(B[$B$?$O$D$1$($7$H$N$l$s$1$$(B] - -@section gmhist -@cindex gmhist -@cindex $B%3%^%s%I%R%9%H%j(B[$B$3$^$s$H$R$9$H$j(B] -@cindex $B%R%9%H%j(B[$B$R$9$H$j(B] - - @file{gmhist.el}$B$H(B@file{gmhist-mh.el} $B$r%m!<%I$7$F$$$k>l9g!"%W%l%t%e!<%3(B -$B%^%s%I$NF~NO(B(@kbd{[prefix] tp]})$B!"0u:~%3%^%s%I$NF~NO(B(@kbd{[prefix] tl})$B$N(B -$B;~$KFHN)$7$?%R%9%H%j$rMxMQ$G$-$^$9!#$=$l$>$l$N%W%m%s%W%H$G!"(B@kbd{M-p} $B$r2!(B -$B$9$HD>A0$KMxMQ$7$?%3%^%s%IJ8;zNs$r$/$jJV$78F$S=P$9$3$H$,$G$-$^$9!#(B - -@section min-out -@cindex min-out - - @file{min-out.el} (@code{outline-minor-mode}) $B$HLnD;$rAH$_9g$o$;$F;H$&$3(B -$B$H$b$b$A$m$s2DG=$G$9!#@_Dj$NJ}K!$K4X$7$F$O(B@file{yatexm-o.el}$B$r$4Mw$/$@$5$$!#(B - -@node Customizations, Etc, Cooperation with other packages, Top -@comment node-name, next, previous, up -@chapter $B%+%9%?%^%$%:(B -@cindex $B%+%9%?%^%$%:(B[$B$+$9$?$^$$$9(B] -@cindex $B%-!<%"%5%$%s(B[$B$-$$$"$5$$$s(B] - - $BLnD;$NF0:n$r@)8f$9$k$NJd408uJd$r$5$i$K=<l9g$O!"(B -@code{YaTeX-prefix}$B$K(B prefix $B%-!<$K$7$?$$%7%s%\%k$rDj5A$7$F$/$@$5$$!#$5$i(B -$B$K!"!V(B@kbd{C-c $B1Q;z(B}$B!W$H$$$&%-!<%P%$%s%I$OFH<+$N4X?t$,3d$jEv$F$F$"$k$N$G;H(B -$B$$$?$/$J$$!#$3$N$h$&$J;~$O!"(B@code{YaTeX-inhibit-prefix-letter} $B$r(B @code{t} -$B$K@_Dj$9$k$3$H$K$h$j!"(B@kbd{C-c $B1Q;z!D(B}$B$N%P%$%s%I$,A4$F!"BP1~$9$k(B@kbd{C-c -C-$B1Q;z!D(B}$B$KJQ$o$j$^$9(B($B$?$@$7!"(Bbegin$B7?(B large$B7?Jd40$NBgJ8;z5/F0$K$h$k%j%8%g(B -$B%s;XDj$O2DG=$J$^$^$G$9!#$3$l$bL58z$K$7$?$$>l9g$O(B@code{t}$B$G$O$J$/(B 1 $B$K%;%C(B -$B%H$7$F2<$5$$!#(B)$B!#(B - -@menu -* All customizable variables:: $B%+%9%?%^%$%:JQ?t0lMw(B -* Sample definitions:: $B%+%9%?%^%$%:JQ?t@_DjNc(B -* Hook variables:: hook$BJQ?t(B -* Hook file:: hook$BMQ%U%!%$%k(B -@end menu - -@node All customizable variables, Sample definitions, Lisp variables, Lisp variables -@comment node-name, next, previous, up -@subsection $B%+%9%?%^%$%:JQ?t0lMw(B -@cindex $B%+%9%?%^%$%:JQ?t0lMw(B[$B$+$9$?$^$$$9$X$s$9$&$$$A$i$s(B] - - yatex-mode $B$K$*$1$kl9g$O(B @kbd{M-x describe-variable} $B$G(B -$BJQ?t$N>\:Y$J@bL@$r;2>H$7$F$/$@$5$$!#(B - -@defvar YaTeX-prefix -yatex-mode $BCf$N%W%j%U%#%/%9%-!<(B (@kbd{\C-c}) -@end defvar - -@defvar YaTeX-inhibit-prefix-letter -prefix $B%-!<$ND>8e$N%-!<%P%$%s%I$G(B @kbd{$B1Q;z(B} $B$N$b$N$r(B @kbd{C-$B1Q;z(B} $B$KJQ99(B -(@code{nil}) -@end defvar - -@defvar YaTeX-fill-prefix -$BK\J8$r=q$/;~$N9TF,$KA^F~$9$k@\F,<-$9$J$o$A(B fill-prefix (@code{""(nil)}) -@end defvar - -@defvar YaTeX-user-completion-table -$B3X=,$7$?(BLa@TeX{}$B%3%^%s%IJ]B8%U%!%$%kL>(B (@code{"~/.yatexrc"}) -@end defvar - -@defvar YaTeX-kanji-code -$BJ8=q$r:n@.$9$k;~$N4A;z%3!<%I(B 1=Shift JIS, 2=JIS, 3=EUC (2 (MS-DOS$B$G$O(B1)) -@end defvar - -@defvar tex-command -La@TeX{}$B%?%$%W%;%C%?%3%^%s%IL>(B (@code{"jlatex"}) -@end defvar - -@defvar dvi2-command -$B%W%l%t%e!<%"%3%^%s%IL>(B (@code{"xdvi -geo +0+0 -s 4"}) -@end defvar - -@defvar dviprint-command-format -dvi$B%U%!%$%k$N0u:~$K;H$o$l$k%3%^%s%I<0(B (@code{"dvi2ps %f %t %s | lpr"}) -@end defvar - -@defvar dviprint-from-format -$B>e$N(B@code{%f}$B$KAjEv$9$k3+;O%Z!<%8;XDj=q<0!"(B@code{%b} $B$,3+;O%Z!<%8HV9f$KJQ(B -$B$o$k(B (@code{"-f %b"}) -@end defvar - -@defvar dviprint-to-format -@code{%t} $B$KAjEv$9$k=*N;%Z!<%8;XDj=q<0!"(B@code{%e}$B$,=*N;%Z!<%8HV9f$KJQ$o$k(B -(@code{"-t %e"}) -@end defvar - -@defvar makeindex-command -makeindex$B%3%^%s%I(B (@code{"makeindex"} (MS-DOS$B$G$O(B@code{"makeind"})) -@end defvar - -@defvar YaTeX-need-nonstop -@code{\nonstopmode@{@}}$B$r<+F0E*$KIU2C$9$k$+(B (@code{nil}) -@end defvar - -@defvar latex-warning-regexp -latex$B%3%^%s%I$N=PNO$9$k%&%)!<%K%s%09T$N@55,I=8=(B (@code{"line.* [0-9]*"}) -@end defvar - -@defvar latex-error-regexp -$BF1$8$/%(%i!<9T$N@55,I=8=(B (@code{"l\\.[1-9][0-9]*"}) -@end defvar - -@defvar latex-dos-emergency-message -MS-DOS$B>e$GF0:n$9$k(B latex $B%3%^%s%I$,!"%(%i!<$K$h$jDd;_$9$k$H$-=PNO$9$k%a%C(B -$B%;!<%8(B (@code{"Emergency stop"}) -@end defvar - -@defvar latex-message-kanji-code -jlatex $B%3%^%s%I$N=PNO$9$k%a%C%;!<%8$N4A;z%3!<%I(B.$B%?%$%W%;%C%H%P%C%U%!(B -$B$N=PNO$,2=$1$k;~$O!"$3$l$r@_Dj$9$k(B (2, Nemacs$B$G$N$_M-8z(B) -@end defvar - -@defvar NTT-jTeX -$B8E$$(BNTT-j@TeX{}$B;HMQ;~$N$h$&$K%$%s%G%s%H$7$?9T$N@hF,$HA0$N9T$N(B -($B%?%$%W%;%C%H8e$N(B)$B;z4V$,6u$$$F$7$^$&$N$r7y$&>l9g$O(B@code{t}$B$K$9$k(B -(@code{nil}) -@end defvar - -@defvar YaTeX-item-regexp -item$B$N7eB7$($N;~$KMQ$$$k!"(Bitem$B$N@55,I=8=(B (@code{"\\\\(sub\\)*item"}) -@end defvar - -@defvar YaTeX-verb-regexp -verb$B%3%^%s%I$N@55,I=8=!#@hF,$N(B\\\\$B$O$D$1$J$$(B (@code{"verb\\*?\\|path"}) -@end defvar - -@defvar YaTeX-nervous -$B%m!<%+%k<-=q$rMQ$$$k;~(B @code{t} (@code{t}) -@end defvar - -@defvar YaTeX-sectioning-regexp -$B%;%/%7%g%s6h@Z$j@_Dj%3%^%s%I$N@55,I=8=(B -(@code{"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"}) -@end defvar - -@defvar YaTeX-fill-inhibit-environments -fill $B$rM^;_$9$k4D6-L>$N%j%9%H(B -(@code{'("tabular" "tabular*" "array" "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" "verbatim" "verbatim*")}) -@end defvar - -@defvar YaTeX-uncomment-once -$BNN0h(Buncomment$B$G9TF,$NJ#?t$N(B@code{%}$B$rA4$F:o=|$9$k$+(B (@code{nil}) -@end defvar - -@defvar YaTeX-close-paren-always -$B3+$-3g8L$NF~NO$G>o$KJD$83g8L$rF~NO$9$k(B (@code{t}) -@end defvar - -@defvar YaTeX-auto-math-mode -$B?t<0%b!<%I$N@Z$jBX$($r<+F0E*$K9T$&(B (@code{t}) -@end defvar - -@defvar YaTeX-math-key-list-private -$B?t<0%$%a!<%8Jd40$GMQ$$$k(B ($B%W%j%U%#%/%9%-!<(B . $BBP1~Jd40%F!<%V%k(B) $B$N(B -alist (@code{nil})$B!#Jd40%F!<%V%k$N=q$-J}$K$D$$$F$O(B@file{yatexmth.el}$B$r;2>H!#(B -@end defvar - -@defvar YaTeX-default-pop-window-height -1$B2hLL$N;~$K%?%$%W%;%C%H%P%C%U%!$r=i$a$F:n@.$9$k;~$N9b$5!#?tCM$G9T?t!"?t;z(B -$BJ8;zNs$G(BEmacs$B%&%#%s%I%&$KBP$9$kI4J,N((B (10) -@end defvar - -@defvar YaTeX-help-file -$B6&MQ%X%k%W%U%!%$%k(B (@file{$EMACS/etc/YATEXHLP.jp}) -@end defvar - -@defvar YaTeX-help-file-private -$B8D?MMQ%X%k%W%U%!%$%k(B (@file{"~/YATEXHLP.jp"}) -@end defvar - -@defvar YaTeX-no-begend-shortcut -@kbd{[prefix] b ??} $B$N%7%g!<%H%+%C%H$r;H$o$:!"(B@kbd{[prefix] b} $B$@$1$GJd40(B -$BF~NO$KF~$k(B (@code{nil}) -@end defvar - -@defvar YaTeX-hilit-pattern-adjustment-private -$B@55,I=8=$H$=$l$K%^%C%A$9$k$b$N$NO@M}E*0UL#$r%7%s%\%k$G$"$i$o$7$?$b$N$N(B -$B%j%9%H!D$N%j%9%H!#(Bhilit19 $B$rAH$_9~$s$G$$$k;~$N$_M-8z!#(B -$B>\$7$/$O(B @code{(assq 'yatex-mode hilit-patterns-alist)} -$B$7$?7k2L$H!"JQ?t(B @code{YaTeX-hilit-pattern-adjustment-default} $B$NCM(B($B$H>l9g(B -$B$K$h$C$F$O(B hilit19 $B$N%I%-%e%a%s%H(B)$B$r;2>H$;$h!#(B -@end defvar - -@defvar YaTeX-sectioning-level -LaTeX$B$N%;%/%7%g%sC10L@k8@%3%^%s%I$H$=$NO@M}E*9b$5$N(Balist$B!#(B -@end defvar - -@defvar YaTeX-hierarchy-ignore-heading-regexp -Hierarchy $B%P%C%U%!$ODL>o%U%!%$%k%X%C%@$H$7$F!"(BLaTeX$B$N%;%/%7%g%s@k8@%3%^%s(B -$B%I$N0z?t$r8!:w$7!"$=$l$,$J$1$l$P%3%a%s%H9T$rC5$9$,!"$=$N:]$K%X%C%@$H$7$F$O(B -$B0UL#$r;}$?$J$$%Q%?!<%s$r$3$NJQ?t$K@_Dj$9$k!#%G%U%)%k%H$G$O(B RCS $B%X%C%@$H%b!<(B -$B%I;XDj9T(B(-*- xxx -*-)$B$,@_Dj$5$l$F$$$k!#(B -@end defvar - -@defvar YaTeX-skip-default-reader -Non-nil $B$K@_Dj$9$k$H(Bsection$B7?%3%^%s%I$N0z?tF~NO;~!"%"%I%$%s4X?t$,$J$1$l$P(B -$B%_%K%P%C%U%!$G$NFI$_9~$_$r$;$:$KF~NO$r40N;$5$;$k(B (@code{nil}) -@end defvar - -@defvar YaTeX-create-file-prefix-g -@code{\include}$B$J$I$G(B @kbd{prefix g}$B$7$?;~$K!"%8%c%s%W@h$,B8:_$7$J$$%U%!%$(B -$B%k$G$"$C$F$b%*!<%W%s$9$k(B (@code{nil}) -@end defvar - -@defvar YaTeX-simple-messages -$B3FH!#(B -@end defvar - -@defvar YaTeX-use-AMS-LaTeX -AMS-LaTeX $B$r;HMQ$9$k>l9g$O(B @code{t} $B$K@_Dj$9$k(B (@code{nil}) -@end defvar - -@defvar YaTeX-use-LaTeX2e -LaTeX2e $B$r;HMQ$9$k>l9g$O(B @code{t} $B$K@_Dj$9$k(B (@code{nil}) -@end defvar - -@defvar YaTeX-template-file -$B?75,%U%!%$%k:n@.;~$K<+F0A^F~$9$k%U%!%$%kL>(B (@code{~/work/template.tex}) -@end defvar - -@defvar YaTeX-search-file-from-top-directory -input$B$9$k%U%!%$%k$rC5$9$H$-$N4p=`%G%#%l%/%H%j$r(Bmain$B%U%!%$%k$N$"$k%G%#%l%/%H(B -$B%j$K$9$k$+(B (@code{t}) -@end defvar -@defvar YaTeX-use-font-lock -$B%=!<%9$N?'$E$1%Q%C%1!<%8$H$7$F(B font-lock $B$rMxMQ$9$k$+$I$&$+(B -(@code{(featurep 'font-lock)} -@end defvar - -@defvar YaTeX-use-hilit19 -$B%=!<%9$N?'$E$1%Q%C%1!<%8$H$7$F(B hilit19 $B$rMxMQ$9$k$+$I$&$+(B -(@code{(featurep 'hilit19)} -@end defvar - -@defvar YaTeX-use-italic-bold -italic, bold$B%U%)%s%H$rLnD;$,C5$9$+$I$&$+(B (Emacs20$B0J9_$J$i(B@code{t}) -font-lock$BMxMQ;~$N$_M-8z!#(B -(@code{(featurep 'hilit19)} -@end defvar - -@node Sample definitions, Hook variables, All customizable variables, Lisp variables -@comment node-name, next, previous, up -@subsection $B%+%9%?%^%$%:JQ?t@_DjNc(B -@cindex $B@_DjNc(B[$B$;$D$F$$$l$$(B] - - $B$?$H$($P!"(Bprefix $B%-!<$H$7$F(B@kbd{ESC}$B$r;HMQ$7!"?7$?$JJd408uJd$r3JG<$9$k%U%!(B -$B%$%k$r!"(B@file{~/src/emacs/yatexrc} $B$K$7!"9TF,$N(B prefix $B$r%?%VJ8;z0l$D$KJQ(B -$B$($?$$$H$-$O!"(B - -@lisp - (setq YaTeX-prefix "\e" - YaTeX-user-completion-table "~/src/emacs/yatexrc" - YaTeX-fill-prefix " ") -@end lisp - -@noindent -$B$r(B @file{~/.emacs} $B$K2C$($^$9!#(B - -@node Hook variables, Hook file, Sample definitions, Lisp variables -@comment node-name, next, previous, up -@subsection hook$BJQ?t(B -@cindex hook$BJQ?t(B[hook$B$X$s$9$&(B] -@cindex yatex-mode-hook -@cindex yatex-mode-load-hook - - $B$^$?!"(Bhook $BJQ?t(B @code{yatex-mode-hook}, @code{yatex-mode-load-hook} $B$rMQ(B -$B0U$7$F$$$^$9!#$9$Y$F$N(B yatex-mode $B$N%P%C%U%!$G:nMQ$5$;$?$$$b$N$O!"(B -@code{yatex-mode-hook} $B$K5-=R$7!"(B@file{yatex.el} $B$r%m!<%I$9$k;~$@$1:nMQ$5(B -$B$;$?$$$b$N$O(B@code{yatex-mode-load-hook} $B$K5-=R$7$^$9!#Nc$($P!"(B -@code{outline-minor-mode} $B$rMxMQ$9$k>l9g!"$=$l$>$l$N%P%C%U%!$G(B -@code{outline-minor-mode} $B$rM-8z$K$7$?$$$N$G!"(B@code{yatex-mode-hook} $B$r(B -$B$b%7%g!<%H%+%C%H%-!<$GF~$l$?$$$J$I$H$$$&;~$O!"$d%3%^%s%IL>$K1~$8$?$-$a:Y$d$+$JJd40F~NO5!G=$r(B - - $BLnD;$NI8=`$N(B La@TeX{} $B%3%^%s%I$N<-=q$K$O!":n:\Ey$K4X$7$F$O@)8B$$$?(B -$B$7$^$;$s!#>o<1E*$K07$C$F$/$@$5$$!#$^$?!";HMQ$7$F$$$k;]$r%a%$%k$G$*CN$i$;$$(B -$B$?$@$/$H!":np!"4uK>!"%P%0Js9p!"46A[Ey$O4?7^$$$?$7$^$9!#(B -$BO"Mm$O(B yuuji@@yatex.org $B$^$G(B(2000$BG/(B12$B7n8=:_(B)$B!#(B -$B7QB3E*$K;HMQ$7$F$/$@$5$kJ}$O%a%$%j%s%0%j%9%H!V(Bfj$BLnD;$N2q!W$K(B -$B@'Hs2CF~$7$F$/$@$5$$!#2CF~J}K!$K$D$$$F$OK\%Q%C%1!<%8$N(B @file{docs/qanda} -$B%U%!%$%k$N!V$=$NB>!W$N>O$r8fMw$/$@$5$$!#(B - -$B;EMM$O!"M=9p$J$/3Nl9g$K$O%3%a%s%H%"%&%H$r30$9(B!!! -@c @node Variable Index -@c @comment node-name, next, previous, up -@c @unnumbered $B%+%9%?%^%$%:JQ?t:w0z(B -@c @printindex vr - -@contents - -@bye - -@c Local Variables: -@c fill-column: 74 -@c fill-prefix: nil -@c End: - -Tag table: - -End tag table +\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 +\input texinfo +@setfilename yatexj +@settitle Yet Another tex-mode for Emacs + +@iftex +@c @syncodeindex fn cp +@c いつも忘れるのでここに書いとくか。 +@c C-l C-c n でノード入れ +@c ノードいじったら C-l C-u C-n 全部のノード更新 C-l C-u C-e +@c メニュー増やしたら C-l C-u C-m 全部のメニュー更新 C-l C-u C-a +@c フォーマットするときは C-l C-e C-b +@c Last modified Fri Feb 2 10:03:49 2001 on firestorm +@syncodeindex vr cp +@end iftex + +@titlepage +@sp 10 +@center +@subtitle Yet Another tex-mode for emacs +@title 『野鳥』 +@subtitle // YaTeX // +@author @copyright{} 1991-2000 by HIROSE, Yuuji [yuuji@@yatex.org] +@end titlepage + +@node Top, Intro, (dir), (dir) +@comment node-name, next, previous, up + +@menu +* Intro:: はじめに +* Terminology:: マニュアル参照上の注意 +* Main features:: 主な機能 +* Installation:: インストール +* Invocation:: プロセス起動 +* %#notation :: %#記法 +* Completion:: 補完入力 +* Local dictionary:: ローカル辞書 +* Commenting out:: コメントアウト +* Cursor jump:: カーソルジャンプ +* Modifying/Deleting:: LaTeXコマンドの変更/削除 +* Filling:: 桁揃え +* Includeonly:: 勝手に includeonly +* What column:: カラム位置ガイド +* Intelligent newline:: おまかせ改行 +* Changing mode of YaTeX:: 野鳥動作モード変更 +* Online help:: LaTeXオンラインヘルプ +* Inclusion hierarchy browser:: ファイル分割階層構造の表示 +* Cooperation with other packages:: 他パッケージとの連携 +* Customizations:: カスタマイズ +* Etc:: その他 +* Copying:: 取り扱い +* Concept Index:: 索引 + + --- The Detailed Node Listing --- + +latexコマンド起動 + +* Calling typesetter:: タイプセッタ起動 +* Calling previewer:: プレヴューア起動 +* Print out:: プリントアウト用コマンドの起動 + +%#記法 + +* Changing typesetter:: タイプセット用コマンドの変更 +* Splitting input files:: 入力ファイル分割 +* Fix region for typesetting:: 領域の固定 +* lpr format:: プリントアウトコマンド用フォーマット +* Editing %# notation:: %#記法の編集 + +補完入力 + +* begin型補完:: +* section型補完:: +* large型補完:: +* maketitle型補完:: +* Arbitrary completion:: 随時補完 +* end補完:: +* Accent mark completion:: アクセント記号補完 +* Image completion:: 数式記号イメージ補完 +* Greek letter completion:: ギリシャ文字補完 + +section型補完 + +* 2個以上の引数をとる section型コマンド:: +* Enclose section-type command:: 括り補完 +* Recursive completion:: 再帰補完 +* view-sectioning:: セクション区切りのアウトライン表示 + +カーソルジャンプ + +* 対応オブジェクトへのジャンプ:: +* お絵描きツール起動:: +* メインファイルへのジャンプ:: +* 環境を単位としたジャンプ:: +* 最後の補完位置へのジャンプ:: + +変更/削除 + +* Changing LaTeX command:: La@TeX{} コマンドの変更 +* Killing LaTeX command:: La@TeX{} コマンドの削除 + +カスタマイズ + +* Lisp variables:: lisp 変数 +* Add-in functions:: 付加関数(アドイン関数) + +lisp 変数 + +* All customizable variables:: カスタマイズ変数一覧 +* Sample definitions:: カスタマイズ変数設定例 +* Hook variables:: hook変数 +* Hook file:: hook用ファイル +@end menu + +@node Intro, Terminology, Top, Top +@comment node-name, next, previous, up +@chapter はじめに +@cindex Demacs +@cindex Mule +@cindex LaTeX +@cindex やちょう[やちよう] + + 野鳥は、GNU Emacs で La@TeX{} 用の文書を作成する時に pLa@TeX{} などの +タイプセットコマンドや、プレヴューアの起動を Emacs 編集画面中から +行えるようにすると共に、拡張性の高い種々の補完機能によりソーステキ +ストの編集を支援します。さらに La@TeX{} コマンドのオンラインヘルプに +よりマニュアルを調べる手間を軽減します。 + + English manual @xref{Top, , , yatexe,YaTeX English info}. + +@node Terminology, Main features, Intro, Top +@comment node-name, next, previous, up +@chapter 本マニュアル参照上の注意 + + 本マニュアルでは以下の表記を用います。 + +@itemize @bullet +@item +begin型コマンド + +@code{\begin@{環境@} 〜 \end@{環境@}}という形式のLaTeXコマンドを指します。 +begin型コマンドを補完入力することをbegin型補完と呼びます。 + +@item +section型コマンド + +@code{\section@{タイトル@}}や@code{\mbox@{内容@}}のように +引数を取るLaTeXコマンドを指します。 + +@item +maketitle型コマンド + +@code{\maketitle}や@code{\tableofcontents}のように引数を取らないLaTeXコマ +ンドを指します。 + +@item +large型コマンド + +@code{@{\large ...@}} や @code{@{\tt ...@}} のようなフォント/サイズ指定子 +を指します。 + +@item @kbd{[prefix]} + +野鳥の機能を呼び出すためのプリフィクスキー。デフォルトでは@kbd{C-c}に割り +当てられているので、特に変更していない場合本マニュアルの @kbd{[prefix]} と +いう表記は、@kbd{C-c} と読み換えてください。 +@end itemize + +@node Main features, Installation, Terminology, Top +@comment node-name, next, previous, up +@chapter 主な機能 + +@itemize @bullet +@item タイプセッタやプレヴューアなどの編集画面からの起動(@kbd{C-c t}) +@item カーソル位置によらない固定リジョンの部分タイプセット +@item \includeonlyのワンタッチ更新 +@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}) +@item 既に入力したテキストを環境やコマンド引数の中に取り込む括り補完 +(@kbd{C-u} +通常補完キー) +@item セクション区切り入力時の文書構造アウトライン表示 +@item セクションコマンドの一括シフト (@ref{view-sectioning}) +@item 補完辞書の学習 +@item La@TeX{} の環境やコマンドに応じたガイド付き引数入力 +@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{\cite}<->@code{\bibitem}ジャンプ(@kbd{C-c g}) +@item 一括コメントアウト/アンコメントアウト + (@kbd{C-c >}, @kbd{C-c <}, @kbd{C-c ,}, @kbd{C-c .}) +@item アクセント記号/数式環境用コマンド/ギリシャ文字の入力支援 + (@kbd{C-c a}, @kbd{;}, @kbd{/}) +@item tabular/array環境のカラム位置ガイド +@item 標準的 La@TeX{} コマンドのオンラインヘルプ(@kbd{C-c ?}, @kbd{C-c /}) +@item ドキュメントのインクルード構造の視覚的表示とバッファ切り替え +(@kbd{C-c d}) +@end itemize + +@node Installation, Invocation, Main features, Top +@comment node-name, next, previous, up +@chapter 起動法 +@cindex Install +@cindex インストール[いんすとおる] +@cindex .emacs +@cindex auto-mode-alist +@cindex autoload +@section 野鳥起動のための設定 + + ~/.emacsに下の2項目を加えます。 + +@lisp +(setq auto-mode-alist + (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) +(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) +@end lisp + +次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に加えます。 +たとえば、 @file{~/src/emacs/yatex}に置くのであれば、 + +@lisp +(setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path)) +@end lisp + +@noindent +などとします。 + + 以上の設定により、拡張子が .tex であるファイルを編集すると自動的に野鳥が +ロードされます。野鳥が正常に起動できたときはモードラインの表示が「やてふ」 +に変わります。 + +@section タイプセッタ/プレヴューア環境の設定 + + 利用する外部プログラムに関する以下の変数を確認し、必要なら正しい値に変更 +します。 +@table @code +@item tex-command + @dots{} 起動するタイプセッタのコマンド名 +@item dvi2-command + @dots{} 起動するプレヴューアのコマンド名 +@item NTT-jTeX + @dots{} 改行+インデントによって、タイプセット後の字間が空いてしま + うのを抑制する場合にtにする(古いNTT-jTeXで顕著に現れる)。具体的には、 + fillするときに各行の終わりに%を付加するようになる。 +@item YaTeX-kanji-code + @dots{} 文書を作成する時の漢字コード +@item dviprint-command-format + @dots{} ファイルの印刷に使われるコマンド列の書式 +@item makeindex-command + @dots{} makeindexコマンド +@end table + +これらを変更する場合は、やはり@file{~/.emacs}にて、たとえば +@lisp +(setq tex-command "bigjlatex") +@end lisp +のようにしてください。どのような値をセットすれば良いかについては、 +@ref{All customizable variables}を参照してください。 + + +@node Invocation, %#notation , Installation, Top +@comment node-name, next, previous, up +@chapter latexコマンド起動 +@cindex prefix key +@cindex C-c +@cindex タイプセッタ[たいふせつた] +@cindex プレヴューア[ふれひゆうあ] +@cindex jlatex +@cindex platex +@cindex プリントアウト[ふりんとあうと] + +LaTeXソースの編集中、次のキー入力により、platex などのタイプセットプログラ +ム(以後タイプセッタと呼ぶ)、プレヴューアなどの起動ができます。 + +@table @kbd +@item [prefix] t j + @dots{} タイプセッタ(platex)起動 +@item [prefix] t r + @dots{} タイプセッタ起動(領域指定) +@item [prefix] t k + @dots{} 動作中のタイプセッタの停止 +@item [prefix] t b + @dots{} jbibtex起動 +@item [prefix] t p + @dots{} プレヴューア起動 +@item [prefix] t l + @dots{} lpr(プリントアウト用)コマンド起動 +@item [prefix] t s + @dots{} xdvi -remote でのサーチ +@end table + +@menu +* Calling typesetter:: タイプセッタ起動 +* Calling previewer:: プレヴューア起動 +* Print out:: プリントアウト用コマンドの起動 +@end menu + +@node Calling typesetter, Calling previewer, Invocation, Invocation +@comment node-name, next, previous, up +@section タイプセッタ起動 +@cindex タイプセッタ起動[たいふせつたきとう] +@cindex タイプセットエラー[たいふせつとえらあ] +@cindex エラー修正[えらあしゆうせい] + + タイプセッタを起動すると、編集ウィンドウが2つに分割され、片方のウィンド +ウにタイプセット画面が表示されます。出力されるメッセージと連動しタイプセッ +トバッファは自動的にスクロールします。もし、途中でエラーが起こって止まって +しまった場合にはタイプセットバッファに移り、(@kbd{C-x o}) タイプセッタの出 +している ? プロンプトに対して、@kbd{x} (処理の中断)などの指示を送ることが +できます。エラーを修正する場合は、 + +@table @kbd +@item [prefix] ' +@itemx (prefix+アポストロフィ) + @dots{} 直前のエラー発生行へジャンプ +@end table + +を入力することにより、タイプセッタがエラーを発生した行に移ることができます。 +また、タイプセッタの出力する overfull hbox などのウォーニング行にも対応し +ていますので、順次 @kbd{[prefix] '} を押すことにより、一つ前のウォーニング +発生行にジャンプしていきます。 + + もし、気になるエラー行があった場合は、タイプセットバッファで、エ +ラーの表示されている行にカーソルを合わせスペースキーを押すと La@TeX{} +ソースの対応する行にジャンプします。 + +@subsection 領域タイプセット + + ポイントとマークの間、あるいはテキスト中に埋め込んだ @code{%#BEGIN} と +@code{%#END}の間の領域(@ref{%#notation})だけを切り取ってタイプセットすることが +できます。この場合の documentclass は、単一ファイルの La@TeX{} ソースの編 +集時にはそのファイルの documentclass が、別ファイルから include している場 +合にはメインファイルの documentclass が自動的に選択されます。指定領域は、 +メインファイルのあるディレクトリの@file{texput.tex}という臨時ファイルに出 +力されますので、上書きには注意してください。 + +@node Calling previewer, Print out, Calling typesetter, Invocation +@comment node-name, next, previous, up +@section プレヴューア起動 + @kbd{[prefix] t p} によりプレヴューアの起動ができます。さらに、もしあな +たが、-remote 機能つきのxdviを利用している場合は @kbd{[prefix] t s} を押す +ことによりカーソル位置の文字列を検索してそのページを表示するようにすでに起 +動中のxdviに命令を送ります。これにより、現在編集中の箇所のタイプセット結果 +を即座に見ることができます。 + +@c なお、-remote 機能付きの xdvi は +@c @code{ftp://ftp.ae.keio.ac.jp/pub/text/xdvi/xdvi-remote} +@c などから入手することができます。 + +@node Print out, , Calling previewer, Invocation +@comment node-name, next, previous, up +@section プリントアウト + + @kbd{[prefix] t l}を押してプリントアウトを指示すると、出力開始/終了ペー +ジを聞いてくるので、それぞれに答えます。これを省略したい時は、 +universal-argument をつけ、 + +@cindex 出力開始ページ[しゆつりよくかいしへえし] +@cindex 出力終了ページ[しゆつりよくしゆうりようへえし] + +@table @kbd +@item C-u [prefix] t l + @dots{} ページ確認省略lpr起動 +@end table +@cindex ページ確認省略lpr起動[へえしかくにんしようりやくlprきとう] + +@noindent +のように起動してください。 + +@node %#notation , Completion, Invocation, Top +@comment node-name, next, previous, up +@chapter %#記法 + + 本文中に@code{%#}ではじまるキーワードを埋め込むことでタイプセッタ起動等 +の制御をすることができます。 + +@menu +* Changing typesetter:: タイプセット用コマンドの変更 +* Splitting input files:: 入力ファイル分割 +* Fix region for typesetting:: 領域の固定 +* lpr format:: プリントアウトコマンド用フォーマット +* Editing %# notation:: %#記法の編集 +@end menu + +@node Changing typesetter, Splitting input files, %#notation , %#notation +@comment node-name, next, previous, up +@section タイプセット用コマンド変更 + + 起動するコマンドを変えたい時は本文中に次のような行を書きます。 + +@cindex 起動するコマンドを変える[きとうするこまんとをかえる] + +@example + %#!jlatex-ntt +@end example + +NTT jTeX と、ASCII jTeX を使い分けたいような場合に便利でしょう。 + +@cindex タイプセッタの使い分け[たいふせつたのつかいわけ] + +@node Splitting input files, Fix region for typesetting, Changing typesetter, %#notation +@comment node-name, next, previous, up +@section 入力ファイル分割 + +また、章毎に別ファイルの .tex を作成している場合で、@file{main.tex}から +@file{sub.tex}を @code{\include}しているような時は、@file{sub.tex}の任意の +位置に次のような行を埋め込みます。 + +@example + %#!platex main.tex +@end example + +@cindex 入力ファイル分割[にゆうりよくふあいるふんかつ] + +上の例のようにコマンド名だけでなく引数も書いた場合には、全てをそのまま +shell に渡すので次のように書けば、ghostview などをプレヴューアに使う時に便 +利です。 + +@cindex ghostview + +@example + %#!platex main ; dvi2ps main.dvi > main +@end example + +なお、この行の最後の単語のピリオド以前を「メインファイル」のベース +ネームであると仮定します(上の2つの場合どちらも@file{main})。 + + @kbd{[prefix] g} (@ref{Cursor jump}参照) での +ファイル間ジャンプを有効に機能させるため、入力ファイル分割時には次のことに +注意して下さい。 + +@enumerate +@item +サブディレクトリを作って、その中にサブファイルを置くことはできるが +サブディレクトリのサブディレクトリには置けない。 +@item +メインファイルからサブディレクトリ内のファイルを include +する時には、相対パス指定を用いて、 +@code{\include@{chap1/sub@}}のように記述。 +@item +メインファイルが一つ上のディレクトリにある場合も、サブファイルには +%#!platex main.tex のように記述する(../mainではない)。 +@end enumerate + + + +@node Fix region for typesetting, lpr format, Splitting input files, %#notation +@comment node-name, next, previous, up +@section 領域の固定 +@cindex 固定領域のタイプセット[こていりよういきのたいふせつと] +@cindex %#BEGIN +@cindex %#END + + @kbd{[prefix] tr} の領域指定のタイプセットでは、とくに指定のないかぎり、 +@kbd{C-SPC}でマークした位置と、ポイント(カーソル位置)の間を領域とみなしま +すが、必ず決まった領域をタイプセットしたい場合は、その領域を + +@example + %#BEGIN + <渡したい領域> + %#END +@end example + +@noindent +のように@code{%#BEGIN}と@code{%#END}で囲み、カーソルを「@code{%#BEGIN}以降」 +に置いてください。この時の領域決定規則をまとめると次のようになります。 + + +@enumerate +@item +カーソル位置よりバッファの先頭方向に@code{%#BEGIN}というキーワードが +ある場合 + +@enumerate +@item +@code{%#BEGIN}よりバッファの末尾方向に@code{%#END}というキーワードが見つかっ +た場合。 +@result{}@code{%#BEGIN} から、その @code{%#END} のある位置まで。 +@item +@code{%#END} が見つからなかった場合。 +@result{}バッファの最後尾まで。 +@end enumerate +@cindex 領域決定規則[りよういきけつていきそく] + +@item +カーソル位置よりバッファの先頭方向に @code{%#BEGIN} というキーワードが +見つからなかった場合。 +@result{}マーク(@kbd{C-SPC}位置)とポイント(カーソル位置)の間の領域。 +@end enumerate + + tabular 環境を何度も試行錯誤しているような場合は、@code{\begin}の前の行 +に @code{%#BEGIN} と書き、@code{\end} の次の行に @code{%#END} と書いておく +と簡単に作表結果をテストすることができます。また、長い .tex ファイルの後半 +に @code{%#BEGIN} を書いておけば、前半の部分は無視できます。このBEGINとEND +の消し忘れには十分ご注意下さい。 +@cindex 長いファイルの編集[なかいふあいるのへんしゆう] + +@c @node Require, lpr format, Fix region for typesetting, %#notation +@comment node-name, next, previous, up + +@node lpr format, Editing %# notation, Fix region for typesetting, %#notation +@comment node-name, next, previous, up +@section lprフォーマット +@cindex lprふぉーまっと[lprふおおまつと] +@cindex lprフォーマット[lprふおおまつと] +@cindex lpr format + + まず、プリントアウト用コマンド列のフォーマットについて説明します。 +コマンド列フォーマットは、3つの Lisp 変数によって表現されます。デ +フォルトの dvi2ps 用のフォーマットを例に説明します。 + +@table @code +@item (1)dviprint-command-format +@code{"dvi2ps %f %t %s | lpr"} + +@item (2)dviprint-from-format +@code{"-f %b"} + +@item (3)dviprint-to-format +@code{"-t %e"} +@end table + +実際にプリントアウトする時は、(1)中の %s がファイル名に置き換えられ、%f が +(2)の内容、%t が(3)の内容に置き換えられます。その際に(2)の文字列中の %b は +「出力開始ページ」、(3)の文字列中の %e は「出力終了ページ」に置き換えられ +ます。もし、ページを指定しない時には、%f, %t 両方とも無視されます。 + + この、dviprint-command-format を臨時に変えたい時は、La@TeX{} の +ソーステキスト中の任意の場所に、 + +@example + %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2 +@end example + +@noindent +のように書いて下さい。プリントアウトするページ範囲をいちいち聞かせないよう +にする時に + +@example + %#LPR dvi2ps %s | lpr +@end example + +@noindent +などとするのも便利かもしれません。 + +@node Editing %# notation, , lpr format, %#notation +@comment node-name, next, previous, up +@section %#記法自体の編集 +@cindex %#記法自体の編集[%#きほうしたいのへんしゆう] + +以上のような@code{%#}で始まる各種制御記法を編集するためには + +@table @kbd +@item [prefix] % + @dots{} @code{%#}@var{記法編集メニュー} +@end table + +@noindent +を押します。 + +@example + !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR +@end example + +@noindent +というメニューが出て来るので、@code{%#!}に続くコマンドを変更したい時には +@kbd{!}を、@code{%#LPR}で lpr フォーマットを変えたい時は@kbd{l}を、あらか +じめ設定したリジョンを @code{%#BEGIN} 〜 @code{%#END} で括りたい時は、 +@kbd{b}を押します。@kbd{b}を選んだ時には、それまでバッファ中に置かれていた +@code{%#BEGIN}, @code{%#END} が自動的に消去されます。 +@cindex lprフォーマットの変更[lprふおおまつとのへんこう] + +@node Completion, Local dictionary, %#notation , Top +@comment node-name, next, previous, up +@chapter 補完入力 + + La@TeX{} での環境名などは、野鳥の補完機能を利用して能率的に入力すること +ができます。 + +@menu +* begin型補完:: +* section型補完:: +* large型補完:: +* maketitle型補完:: +* Arbitrary completion:: 随時補完 +* end補完:: +* Accent mark completion:: アクセント記号補完 +* Image completion:: 数式記号イメージ補完 +* Greek letter completion:: ギリシャ文字補完 +@end menu + +@node begin型補完, section型補完, Completion, Completion +@comment node-name, next, previous, up +@section begin型補完 +@cindex begin型補完[beginかたほかん] +@cindex 環境名の補完[かんきようめいのほかん] +@cindex prefix b + + @code{\begin@{env@}...\end@{env@}}の様な形式の入力の補完をbegin型補完と +呼ぶことにします。begin 型補完は、 + +@table @kbd +@item [prefix] b + @dots{} begin 型補完開始(標準では @kbd{C-c b}) +@end table + +@noindent +で始まります。頻繁に用いられる次の La@TeX{} 環境の補完は、[prefix] @kbd{b} +に続く次の1文字を入力するだけで、@code{\begin@{xxx@}...\end@{xxx@}}を完成 +させます。 + +@table @kbd +@item [prefix] b c + @dots{} @code{\begin@{center@}...\end@{center@}} +@item [prefix] b d + @dots{} @code{\begin@{document@}...\end@{document@}} +@item [prefix] b D + @dots{} @code{\begin@{description@}...\end@{description@}} +@item [prefix] b e + @dots{} @code{\begin@{enumerate@}...\end@{enumerate@}} +@item [prefix] b E + @dots{} @code{\begin@{equation@}...\end@{equation@}} +@item [prefix] b i + @dots{} @code{\begin@{itemize@}...\end@{itemize@}} +@item [prefix] b l + @dots{} @code{\begin@{flushleft@}...\end@{flushleft@}} +@item [prefix] b m + @dots{} @code{\begin@{minipage@}...\end@{minipage@}} +@item [prefix] b t + @dots{} @code{\begin@{tabbing@}...\end@{tabbing@}} +@item [prefix] b T + @dots{} @code{\begin@{tabular@}...\end@{tabular@}} +@item [prefix] b ^T + @dots{} @code{\begin@{table@}...\end@{table@}} +@item [prefix] b p + @dots{} @code{\begin@{picture@}...\end@{picture@}} +@item [prefix] b q + @dots{} @code{\begin@{quote@}...\end@{quote@}} +@item [prefix] b Q + @dots{} @code{\begin@{quotation@}...\end@{quotation@}} +@item [prefix] b r + @dots{} @code{\begin@{flushright@}...\end@{flushright@}} +@item [prefix] b v + @dots{} @code{\begin@{verbatim@}...\end@{verbatim@}} +@item [prefix] b V + @dots{} @code{\begin@{verse@}...\end@{verse@}} +@end table + + 上記のもの以外の環境名は Emacs の持つインクリメンタルな補完機能を用いて +入力します(上記の環境名も以下の補完入力可能)。 + +@table @kbd +@item [prefix] b @key{SPC} + @dots{} begin 型補完入力 +@end table + +@kbd{[prefix] b @key{SPC}} と入力すると、最下行のミニバッファに + +@example + Begin environment(default document): +@end example + +@noindent +と表示されます。ここで、何も入れずにリターンキーのみ押すと、括弧内に出てい +るデフォルトの環境名が入力されますが、適当な環境名を入力すると、 +@code{\begin@{環境名@} … \end@{環境名@}}が文書中に挿入されます。ミニバッ +ファで環境名を入力するときに、環境名の頭文字を入力し「スペース」をたたくと、 +一致する環境名が内部テーブルに存在した場合、正しい環境名に補完されるので、 +入力の手間が省けます。内部テーブルに存在しない環境名を入力した時はユーザ専 +用のテーブルに登録され、さらにそのテーブルを自動的に、ユーザ辞書(デフォル +トでは @file{~/.yatexrc})に保存します。 + +さらに、特定の環境を補完入力した時にはその環境で必ず用いられるエントリを自 +動挿入します(例: @code{itemize}環境における@code{\item}など)。挿入されたエ +ントリが不要な場合にはundoによって消去して下さい。 +@cindex ユーザ辞書[ゆうさししよ] + +@subsection 既に書いたテキストを環境で括る + + ところで、最初に書いてしまったブロックを後から、itemize 環境の中 +に閉じこめたいと思うことがありますが、そのようなときは、あらかじめ +閉じこめたい段落をマークして、begin 型補完の各コマンドの @kbd{[prefix]} +の次の『小文字の 'b'』 を『大文字』に変えて起動して下さい。(または、 +@kbd{C-u} を先に打ち、universal argument をつけても可能です) +@cindex ブロック[ふろつく] +@cindex 閉じ込める[としこめる] + + 例えばあるパラグラフを description 環境の中に入れたいときは、 +そのパラグラフをマークしてから、 + +@table @kbd +@item [prefix] B D +@itemx (または ESC 1 [prefix] b D) +@itemx (または C-u [prefix] b D など) +@end table + +とタイプしてください。これは、@kbd{[prefix] b SPC}の補完入力にもあてはまり、 +@kbd{b} を大文字に変えて、@kbd{[prefix] B SPC} とタイプすれば、あらかじめ +マークしておいたリジョンを、begin と end の環境で括ります。 + +@node section型補完, large型補完, begin型補完, Completion +@comment node-name, next, previous, up +@section section型補完 +@cindex section型補完[sectionかたほかん] +@cindex prefix s + + @code{\section@{目的@}} のような形式の入力の補完を section 型補完と呼ぶこ +とにします。section 型補完は、 + +@table @kbd +@item [prefix] s + @dots{} section 型補完 +@end table + +@noindent +で実行します。@kbd{[prefix] s} を入力するとミニバッファに、 + +@example + (C-v for view-section) \???@{@} (default documentclass): +@end example + +@noindent +というプロンプトが現れるので、そこで @samp{section} のような La@TeX{} コマ +ンド名を入力します。ここでもリターンキーのみで括弧内のデフォルト値が選択さ +れるほか、@samp{chapter}などのような頻度の高い名称入力にはスペースキーによ +る補完機能が有効です。 次に、@{@}の中身の入力を促す、 + +@example + \section@{???@}: +@end example + +@noindent +というプロンプトが現れるので、セクションのタイトルなどを入力します。 +たとえば、 + +@example + (C-v for view-section) \???@{@} (default documentclass): section + \section@{???@}: 目的 +@end example + +@noindent +のように入力した場合は、文章中に + +@example + \section@{目的@} +@end example + +@noindent +が挿入され、 + +@example + (C-v for view-section) \???@{@} (default section): vspace* + \vspace*@{???@}: +@end example + +@noindent +のように@{@}の中身を省略したときは、 + +@example + \vspace*@{@} +@end example + +@noindent +だけが挿入され、改行はせずカーソルは自動的に中括弧の内側に移動します。 + +@menu +* 2個以上の引数をとる section型コマンド:: +* Enclose section-type command:: 括り補完 +* Recursive completion:: 再帰補完 +* view-sectioning:: セクション区切りのアウトライン表示 +@end menu + +@node 2個以上の引数をとる section型コマンド, Enclose section-type command, section型補完, section型補完 +@comment node-name, next, previous, up +@subsection 2個以上の引数をとる section型コマンド +@cindex 引数[ひきすう] + + ところで、@samp{\addtolength@{\topmargin@}@{8mm@}} などのように、引数を二つ +以上取る La@TeX{} コマンドがあります。このようなコマンドの補完入力には、 +section 型補完呼び出しに引数を付けてください。例えば上の@samp{addtolength} +の例であれば、引数2を指定します。つまり、 + +@example + C-u 2 [prefix] s (または、ESC 2 [prefix] s) +@end example + +@noindent +と section 型補完を呼び出した後、 + +@example + (Ctrl-v for view-section) \???@{@} (default vspace*): addtolength + \addtolength@{???@}: \topmargin + Argument 2: 8mm +@end example + +@noindent +のように入力してください。最初の addtolength の部分と、第一引数である +\topmargin の入力は当然スペースによる補完入力が可能です。ユーザ辞書に登録 +される La@TeX{} コマンドには、この引数の数も学習されるので、最初の補完の時 +引数の数を指定して起動しておけば、以後の補完時には、記憶された個数だけ引数 +を聞いて来るようになります。あとで引数の個数を変えたい時は、再び @kbd{C-u} +を用いて個数を指定し直すことで、自動的に辞書中の引数の個数の部分を更新しま +す。 +@cindex 引数の個数を変える[ひきすうのこすうをかえる] + + +@node Enclose section-type command, Recursive completion, 2個以上の引数をとる section型コマンド, section型補完 +@subsection 既に書いたテキストを括る +@cindex 括る[くくる] + + また、起動コマンドの@kbd{s}を大文字に変えて起動すると、あらかじめ書 +いた文章を section 型コマンドの第一引数として括ります。 + +@node Recursive completion, view-sectioning, Enclose section-type command, section型補完 +@comment node-name, next, previous, up +@subsection 再帰補完 +@cindex 再帰補完[さいきほかん] + + 高度な使い方になるかもしれませんが、section型補完の引数の入力時にさらに +補完入力を利用することができます(section/large/maketitle型に限る)。section +型コマンドの引数に更に La@TeX{} コマンドが来る場合にはミニバッファで野鳥の +補完キーを再帰的に入力することで引数の入力も効率的に行なえます。 + +@node view-sectioning, , Recursive completion, section型補完 +@comment node-name, next, previous, up +@subsection セクション区切りのアウトライン表示 +@cindex アウトライン[あうとらいん] + + 通常のsection型補完の時にミニバッファで@kbd{C-v}を押すと現在存在するセク +ション区切りコマンド全てを @code{*Sectioning Lines*}というバッファに一覧表 +示します(「<<--」のついている行がもっとも近いセクション区切り)。この時ミニ +バッファで@kbd{C-p}, @kbd{C-n} を押すと@samp{part}, @samp{chapter}, ..., +@samp{subparagraph} のコマンドが論理階層の高さにしたがって上下します。また、 +@kbd{C-v}, @kbd{M-v} を押すとセクション区切り一覧バッファがスクロールし、 +数字の@kbd{0}〜@kbd{7}を押すとある高さ以上のセクション区切りだけを選んで表 +示します(実際にやって見れば分かります)。 + +@code{*Sectioning Lines*}バッファは、 + +@table @kbd +@item M-x YaTeX-section-overview + @dots{} セクション区切り一覧バッファを生成 +@end table + +@cindex セクション区切り一覧バッファ[せくしよんくきりいちらんはつふあ] +で作成することができます。このバッファを選択し任意の行でスペースを押すと、 +該当するセクション区切りのある本文中の場所にジャンプします。さらに、同バッ +ファで @kbd{u} を押すと、ソーステキストの対応するセクションコマンドが一階 +層上がり(例: subsection が section に変わる)、@kbd{d}を押すと一階層下がり +ます。@code{*Sectioning Lines*}バッファにあるセクション区切りの行をマーク +しておいて@kbd{U}を押すとリジョン内のものに対応するソーステキストのセクショ +ンコマンドすべてが一階層上がり、@kbd{D}を押すと下がります。セクション区切 +り一覧バッファで利用できるキーコマンドには以下のものがあります。 + +@table @kbd +@item SPC + @dots{} 対応するソース行へジャンプ +@item . + @dots{} 対応するソース行を表示 +@item u + @dots{} カーソル位置に対応するセクションコマンドを一階層上げる +@item d + @dots{} カーソル位置に対応するセクションコマンドを一階層下げる +@item U + @dots{} マークしたセクションコマンドを一階層上げる +@item D + @dots{} マークしたセクションコマンドを一階層上げる +@item 0〜6 + @dots{} レベル n 以下のセクションコマンドを隠して表示 +@end table + +@cindex 論理階層[ろんりかいそう] +@cindex セクション区切り[せくしよんくきり] +@cindex ジャンプ[しやんふ] + +@node large型補完, maketitle型補完, section型補完, Completion +@comment node-name, next, previous, up +@section large型補完 +@cindex large型補完[largeかたほかん] +@cindex prefix l + + @code{@{\large @}} のような形式の補完を large 型補完と呼ぶことにします。 + +@table @kbd +@item [prefix] l + @dots{} large 型補完開始 +@end table + +@noindent +がlarge型補完の開始です。@kbd{[prefix] l} を押すと、ミニバッファに + +@example + @{\??? @} (default large): +@end example + +@noindent +と表示されるので、上記のものと同じ要領で補完入力して下さい。補完候補に用意 +されているのは、@samp{footnotesize} や @samp{huge} のような文字サイズ指定 +子と、@samp{bf}や@samp{dg}のようなフォント指定子です。 +@cindex 文字サイズ指定子[もしさいすしていし] +@cindex フォント指定子[ふおんとしていし] + +@subsection 既に書いた文字を括る +@cindex 括る[くくる] + + また、begin型補完の時と同様、先に書いてしまった一連の文章の文字のサイズ +を変えたいと思う時がありますが、そのような時は、サイズや大きさを変えたい文 +字の範囲をマークしてから、呼び出しキーを @kbd{[prefix] L} と、大文字の L +に変えて呼び出せば、そのリジョン全体が、ブレースで囲まれます。 + +@node maketitle型補完, Arbitrary completion, large型補完, Completion +@comment node-name, next, previous, up +@section maketitle型補完 +@cindex maketitle型補完[maketitleかたほかん] +@cindex prefix m + + @code{\maketitle} の形式の補完を maketitle 型補完と呼ぶことにします。 + +@table @kbd +@item [prefix] m + @dots{} maketitle 型補完開始 +@end table + +@noindent +で、maketitle 型補完を開始します。補完の要領は今までのものとまったく同じで +す。La@TeX{} 用のコマンド名が補完候補として用意されています。 + +@node Arbitrary completion, end補完, maketitle型補完, Completion +@comment node-name, next, previous, up +@section 随時補完 +@cindex 随時補完[すいしほかん] +@cindex prefix SPC + + さて、今まで述べた典型的な La@TeX{} コマンド形式の補完入力を用いずに、今 +入力しようとしている La@TeX{} コマンドを文書中の任意の位置で随時補完するこ +ともできます。La@TeX{} コマンド(先頭が\で始まる)を入力している途中で、 + +@table @kbd +@item [prefix] SPC + @dots{} 随時補完 +@end table + +@noindent +を入力すれば、全ての補完候補の中から一致するものが選ばれカーソル位置に挿入 +されます。 + +@node end補完, Accent mark completion, Arbitrary completion, Completion +@comment node-name, next, previous, up +@section end補完 +@cindex end補完[endほかん] +@cindex prefix e + + 現在開いたままの環境名を自動的に検出し、@code{\end@{環境名@}}を挿入しま +す。begin 型補完を用いれば環境の閉じ忘れはないのですが、時にはついつい手で +@code{\begin@{環境名@}} を入れてしまい、悲しい思いをすることがあります。そ +のような時には気にせず続けて文章を入力し、しかるのちに + +@table @kbd +@item [prefix] e + @dots{} end 補完 +@end table + +@noindent +とすることで、現在開いている環境名で \end@{@} が補われます。 + +@node Accent mark completion, Image completion, end補完, Completion +@comment node-name, next, previous, up +@section アクセント記号補完 +@cindex アクセント記号補完[あくせんときこうほかん] +@cindex prefix a +@cindex 欧文[おうふん] + + 欧文のアクセント記号(@code{\`@{o@}}など)を入力する時は、 + +@table @kbd +@item [prefix] a + @dots{} アクセント記号入力 +@end table + +@noindent +を押すと、ミニバッファに + +@example + 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b +@end example + +@noindent +というメニューが出て来るので、数字、または対応する記号/英字を入力 +して下さい。すると編集バッファに、 + +@example + \`@{@} +@end example + +@noindent +があらわれ、カーソルが@{@}内に位置するので、さらに一文字入力する事で、 + +@example + \`@{o@} +@end example + +@noindent +が完成され、カーソルは@{@}の外に戻ります。 + +@node Image completion, Greek letter completion, Accent mark completion, Completion +@comment node-name, next, previous, up +@section 数式記号イメージ補完 +@cindex 数式記号イメージ補完[すうしききこういめえしほかん] +@cindex イメージ補完[いめえしほかん] +@cindex ; +@cindex 数式モード[すうしきもおと] +@cindex 矢印[やしるし] +@cindex Σ[しくま] +@cindex leftarrow +@cindex ∞[むけんたい] + + 主に数式モードで使用される、矢印やΣなどの記号を擬似的に表現するキー入力 +で、La@TeX{} コマンドを入力できます。これは野鳥自身の「数式モード」でのみ +動作します。野鳥はカーソルが@TeX{}の数式環境の中にある時に@kbd{;}や、 +@kbd{:}に特殊な機能を持たせます。 + + さて、例えば、←(leftarrow)をASCII文字だけで表現する場合、一般的には「<-」 +のようにしますが、これを利用して、数式記号イメージ入力モードで +@code{\leftarrow}を入力するには、@kbd{;}(セミコロン)を打ってから@kbd{<-}と +入力します。同様に、長い矢印←-(long-leftarrow) をASCII文字だけで表現する +場合「<--」とするので、@code{\longleftarrow}を入力するためには、@kbd{;<--} +と入力します。あるいは無限大記号をASCII文字だけで表現する時は「oo」のよう +にすることから、@code{\infty} を入力する時は、@kbd{;oo}とキー入力します。 + + これらの操作をまとめると次のようになります。 + +@example +INPUT 入力される La@TeX{} コマンド +; < - @code{\leftarrow} +; < - - @code{\longleftarrow} +; < - - > @code{\longleftrightarrow} +; o @code{\circ} +; o o @code{\infty} +@end example + + +@noindent + いずれの場合も、イメージ入力を行っている途中で望みのものがバッファ +に表示されたなら、そこでイメージ入力を止めて次の編集動作に移っても +構いません。 + +@cindex ;自身[;ししん] + 数式環境中で@samp{;}自身を入力するには@kbd{;;}のようにします。イメージ +入力の途中でTABを押すと、それまで入力した文字で始まるもの一覧が表示されま +す。ここで目的の La@TeX{} コマンドまでカーソルを移動し再度TABを押すことで +その La@TeX{} コマンドがバッファに挿入されます。 + + どのキー入力にどの記号が対応しているか全て知りたい時は、@kbd{;}を押した +直後にTABを押してください。以下の例は、@kbd{;<}と押した後にTABを押したもの +です。 + +@example +KEY LaTeX sequence sign +< \leq ≦ +<< \ll 《 +<- \leftarrow ← +<= \Leftarrow <= +@end example + +左から[入力キー]、[対応する La@TeX{} コマンド]、[(擬似)記号図示]、と +いう順でメニューが出て来るので、よく使うものを覚えておくと良いでしょ +う。ものによってはASCII文字で表現することが困難なので、あまり覚え +やすいキー並びではないものがあるでしょうから、そのような場合は +\maketitle 型補完で入力するか、以下に述べる対応表の設定を行って単 +純なキー並びのものを設定すると良いでしょう。 + + 入力キーと La@TeX{} コマンド、記号の対応表を個人的に設定したい場合は +Emacs-Lisp 変数 @code{YaTeX-math-sign-alist-private} に定義してください。 +その内容とデフォルトのものを合わせたものが対応表として使用されます(private +の方が優先される)。なお、この変数の構造については @file{yatexmth.el} を参 +照してください。 +@cindex YaTeX-math-sign-alist-private + +@node Greek letter completion, , Image completion, Completion +@comment node-name, next, previous, up +@section ギリシャ文字補完 +@cindex ギリシャ文字補完[きりしやもしほかん] +@cindex : + + もう一つ、数式環境中で@kbd{:}を押すとギリシャ文字入力モードに入ります。 +@kbd{:}を押した直後に@kbd{a}を押すと@code{\alpha}が、@kbd{g} を押すと +@code{\gamma}が、などアルファベットに対応したギリシャ文字が挿入されます。 +操作方法は;の数式記号補完とまったく同じです。まずは@kbd{:}の直後に +TABを押してどのアルファベットにどのギリシャ文字が対応しているか調べてみて +ください。 + + @kbd{;}と@kbd{:}を数式環境中で押しているにもかかわらず、イメージ補完が働 +かない場合は、@kbd{C-u ;}のように universal-argument をつけてキーを押すこ +とにより、強制的にイメージ補完に入ることができます。また、この時にどのよう +な状態で数式環境内判定に失敗したかをご連絡下さい。 + +@node Local dictionary, Commenting out, Completion, Top +@comment node-name, next, previous, up +@chapter ローカル辞書 +@cindex ローカル辞書[ろおかるししよ] +@cindex .yatexrc + + 補完入力用の候補は三種類の辞書から構成されています。一つは +@file{yatex.el}に組み込まれた「標準辞書」、もう一つはユーザが個人的に常用 +するコマンドを保存する「ユーザ辞書」、そしてもうひとつはあるディレクトリで +のみ有効なコマンドを保存する「ローカル辞書」です。 + + 補完入力時に新しい単語を入れた場合に、その単語をどの辞書に入れるか聞いて +来ます。 + +@example + `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard +@end example + +@noindent +というプロンプトに対し、@kbd{u}と答えると「ユーザ辞書」を、@kbd{l}と答える +とローカル辞書を更新し、@kbd{n}と答えると辞書ファイルは更新せず現在のEmacs +セッションのみ有効な単語とし、@kbd{d}と答えると新たな単語を学習せずに捨て +ることになります。 + + もし、ローカル辞書の機能はいらず、全てユーザ辞書の更新のみでよいと言う場 +合には@file{~/.emacs}などで、 +@cindex YaTeX-nervous + +@lisp + (setq YaTeX-nervous nil) +@end lisp + +@noindent +として下さい。 + +@node Commenting out, Cursor jump, Local dictionary, Top +@comment node-name, next, previous, up +@chapter コメントアウト +@cindex コメントアウト[こめんとあうと] +@cindex prefix < +@cindex prefix > +@cindex prefix . +@cindex prefix , + + + La@TeX{}の編集には試行錯誤がつきものです。ある部分を一括でコメントアウト +したり、コメントを外したりしたいことがあります。 + +@table @kbd +@item [prefix] > + @dots{} リジョンを % でコメントアウト +@item [prefix] < + @dots{} リジョンの % のコメントを外す +@end table + +@noindent +は、あらかじめ設定したリジョンに対しての操作、 + +@table @kbd +@item [prefix] . + @dots{} 現在のパラグラフをコメントアウト +@item [prefix] , + @dots{} 現在のパラグラフのコメントを外す +@end table + +@noindent +は、カーソルの位置するパラグラフ全体に対しての操作です。なお、ここでいう +「パラグラフ」は (@code{mark-paragraph}) 関数によりマークされる範囲を指し +ます(標準設定で@kbd{ESC h}にバインドされている)。なお、既に@code{%}でコメ +ントアウトされているパラグラフに対して繰り返しパラグラフのコメントを使用し +た場合の動作は保証しませんので御注意ください。 + + さて、文章に対してだけでなく、時には@code{\begin}, @code{\end} 自体に対 +してもコメントアウトの操作をしたいときがあります。このようなときは、 +@code{\begin@{@}} あるいは @code{\end@{@}} の行にカーソルを合わせ、 + +@table @kbd +@item [prefix] > + @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントアウト +@item [prefix] < + @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントを外す +@end table + +@noindent +とすることで、@code{\begin〜\end}で囲まれる環境全てに対してコメント操作し、 + +@table @kbd +@item [prefix] . + @dots{} @code{\begin@{@}} と @code{\end@{@}} をコメントアウト +@item [prefix] , + @dots{} @code{\begin@{@}} と @code{\end@{@}} のコメントを外す +@end table + +は、対応する @code{\begin} と @code{\end} 2行だけを、コメント操作の対象と +します。リジョンをコメントアウトしようとして、マークを設定したのちにカーソ +ルを移動し@kbd{[preifx] >} を押してもカーソルが @code{\begin@{@}} の上にあ +ると@code{\begin@{@}}〜@code{\end@{@}}モードでコメント機能が働いてしまうの +で注意して下さい。 + +@node Cursor jump, Modifying/Deleting, Commenting out, Top +@comment node-name, next, previous, up +@chapter カーソルジャンプ +@cindex カーソルジャンプ[かあそるしやんふ] +@cindex prefix g + + +@menu +* 対応オブジェクトへのジャンプ:: +* お絵描きツール起動:: +* メインファイルへのジャンプ:: +* 環境を単位としたジャンプ:: +* 最後の補完位置へのジャンプ:: +@end menu + +@node 対応オブジェクトへのジャンプ, お絵描きツール起動, Cursor jump, Cursor jump +@comment node-name, next, previous, up +@section 対応オブジェクトへのジャンプ + + 文書中のいろいろな場所で + +@table @kbd +@item [prefix] g + @dots{} 対応するオブジェクトにジャンプ +@end table + +@noindent +を押すことにより、カーソル位置のLa@TeX{}コマンドに対応する場所にジャンプ +します。対応関係が存在すると解釈されるコマンドには以下のものがあります。 + +@itemize @bullet +@item @code{\begin@{@}} ←→ @code{\end@{@}} +@item @code{%#BEGIN} ←→ @code{%#END} +@item 画像ファイルの取り込みマクロ → 対応するviewer/お絵かきツール起動 +@item @code{\label@{@}} ←→ @code{\ref@{@}} +@item @code{\include(\input)} → 対応するファイル +@item @code{\bibitem@{@}} ←→ @code{\cite@{@}} +@end itemize + + @code{\begin@{@}} か @code{\end@{@}} の行で@kbd{[prefix] g}を押すことに +より、対応する@code{end/begin}の行にジャンプします。もちろん対応するものが +ない場合はエラーになります。またこれは、領域固定のための @code{%#BEGIN} と +@code{%#END} のペアに対しても同様に動作します。なお、@code{label/ref}や +@code{cite/bibitem}対応するものが別ファイルにある時は、ジャンプ先となるファ +イルがオープンされていなければなりません。@xref{%#notation}. +メインの .tex ファイルの @code{\include@{chap1@}} などにカーソルを合わせ、 +@kbd{[prefix] g} を押すと、@file{chap1.tex} にジャンプします。 + +また、 + +@table @kbd +@item [prefix] 4 g + @dots{} 別ウィンドウで対応オブジェクトにジャンプ +@end table + +@noindent +を押すと、対応するオブジェクトへのジャンプを別ウィンドウで行います。ただし、 +この機能は @code{begin/end}, @code{%#BEGIN/%#END} 間のジャンプに対しては +(意味がないと思われるので)機能しないので注意してください。 + +@node お絵描きツール起動, メインファイルへのジャンプ, 対応オブジェクトへのジャンプ, Cursor jump +@comment node-name, next, previous, up +@section お絵描きツール起動 +@cindex お絵描きツール起動[おえかきつうるきとう] + +上記の「画像ファイルの取り込みマクロ」とは、例えば +@code{\epsfile@{file=foo@}} のような挿絵取り込みコマンドのことで、この行に +カーソルを合わせて@kbd{[prefix] g}を押すとその画像ファイルの元となったファ +イルを対応するお絵描きツールを起動してオープンします。起動するツールの判定 +は以下のようになされます。 + +@enumerate +@item +カレント行が変数 @code{YaTeX-processed-file-regexp-alist} に定義さ +れている正規表現のいずれかとマッチしたら、ファイル名に相当する部分を +\\(\\)から抜き出して覚えておく(何番目の\\(\\)かは変数の各リストの cdr 部に +入れておく)。マッチしなければ何もしない。 +@item +行末に、変数 @code{YaTeX-file-processor-alist} に登録されているコマンドが +「%コマンド」 のように書いてあれば強制的に「コマンド ファイル名.拡張子」を +起動。 +@item +なければ、変数 @code{YaTeX-file-processor-alist} の各リストのcdr部に入って +いる拡張子を「ファイル名」の後ろに足したファイルが存在するか順次調べて、存 +在した場合car部に入っているコマンドを起動する。 +@item +以上どれかにマッチしなければあきらめる。 +@end enumerate + + +変数 @code{YaTeX-file-processor-alist} と変数 +@code{YaTeX-file-processor-alist} の設定方法についてはそれぞれの変数につい +て describe-variable して説明を読んで下さい。うまく設定すると、画像ファイ +ルにかぎらず、任意の形式のファイルを任意のプロセッサで処理するコマンドを簡 +単に呼び出すことができます。 + +@node メインファイルへのジャンプ, 環境を単位としたジャンプ, お絵描きツール起動, Cursor jump +@comment node-name, next, previous, up +@section メインファイルへのジャンプ + +@file{chap1.tex}のようなサブファイルで、 + +@table @kbd +@item [prefix] ^ + @dots{} メインファイルにジャンプ +@item [prefix] 4 ^ + @dots{} 別ウィンドウでメインファイルにジャンプ +@end table + +@noindent +を押すと、メインファイルの編集バッファに切替えます。もし、メインファイルを +オープンしていない場合は、カレントディレクトリから探して自動的にオープンし +ます。 + +@node 環境を単位としたジャンプ, 最後の補完位置へのジャンプ, メインファイルへのジャンプ, Cursor jump +@comment node-name, next, previous, up +@section 環境を単位としたジャンプ + +さらに現在の環境を単位として機能するコマンドに以下のものがあります。 + +@cindex 環境の先頭へ[かんきようのせんとうへ] +@cindex 環境の末尾へ[かんきようのまつひへ] +@cindex 環境をマーク[かんきようをまあく] +@cindex M-C-a +@cindex M-C-e +@cindex M-C-@@ +@table @kbd +@item M-C-a + @dots{} 環境の先頭(@code{\begin})へジャンプ +@item M-C-e + @dots{} 環境の末尾(@code{\end})へジャンプ +@item M-C-@@ + @dots{} 環境全体をマーク +@end table + +上記のコマンドは通常の@kbd{[prefix]}キーではなく@kbd{META}キーをプリフィク +スとして機能するのでご注意下さい。 + +@node 最後の補完位置へのジャンプ, , 環境を単位としたジャンプ, Cursor jump +@comment node-name, next, previous, up +@section 最後の補完位置へのジャンプ + +野鳥は補完入力した位置を常にレジスタ @code{3}に保存しています。 +入力途中で如何なるファイルの如何なる位置に行ったとしても、 +@kbd{C-x j 3}(@code{jump-to-register})を使って直ちに最後の補完入力位置に戻 +ることができます。 + +@node Modifying/Deleting, Filling, Cursor jump, Top +@comment node-name, next, previous, up +@chapter 変更/削除 +@cindex 変更/削除[へんこう/さくしよ] +@cindex prefix c +@cindex prefix k + + 既に入力されている La@TeX{} コマンドの変更/削除のために以下の機能が用意 +されています。 + +@table @kbd +@item [prefix] c + @dots{} カーソル位置の La@TeX{} コマンドの変更 +@item [prefix] k + @dots{} カーソル位置の La@TeX{} コマンドの削除 +@end table + +@noindent +これらのコマンドは、コマンドを起動する場所によって動作を決定するので注意し +て下さい。 + +@menu +* Changing LaTeX command:: La@TeX{} コマンドの変更 +* Killing LaTeX command:: La@TeX{} コマンドの削除 +@end menu + +@node Changing LaTeX command, Killing LaTeX command, Modifying/Deleting, Modifying/Deleting +@comment node-name, next, previous, up +@section La@TeX{} コマンドの変更 + +変更したい La@TeX{} コマンドにカーソルを合わせて @kbd{[prefix] c} +を押すとそのコマンドを補完入力などを用いて手軽に変えることができます。 +@kbd{[prefix] c} で変更できるコマンドには以下のものがあります。 + +@itemize +@item @code{begin/end} の環境名 +@item section型コマンドのコマンド名 +@item section型コマンドの引数 +@item section型コマンドのオプションパラメータ([]で囲まれたもの) +@item large型コマンド +@item (イメージ補完で入力可能な)数式モード専用のmaketitle型コマンド +@end itemize + + 変えたいsection型コマンドの引数がさらに La@TeX{} コマンドを含む場合は、 +その引数を囲む中括弧の上で @kbd{[prefix] c} を押すことで中のコマンドを変更 +対象判定から除外することができます。 + +@cindex 環境名の変更[かんきようめいのへんこう] + +@node Killing LaTeX command, , Changing LaTeX command, Modifying/Deleting +@comment node-name, next, previous, up +@section La@TeX{} コマンドの削除 + +@kbd{[prefix] k} は起動する位置により +次のような動作を行います。 +@cindex 環境の削除[かんきようのさくしよ] + + +@example +起動位置 動作 +\begin, \endの行 @code{\begin\end}ペアの削除 +%#BEGIN, %#END の行 %#BEGIN,%#ENDペアの削除 +section型コマンドの上(中) section型コマンドの削除 +フォント指定括弧の上 フォント指定の削除 +括弧の上 対をなす括弧の削除 +@end example + +@noindent +@code{\begin, \end} および @code{%#BEGIN, %#END} を削除する場合、 +@code{\begin, \end} や @code{%#BEGIN, %#END} の存在する行は +まるごと削除されるので、それらの一行に @code{\begin} などを二つ以上連ねて +書かないように注意してください。 +上記のものはすべて本文を囲う「容器」を削除するように働きますが、 +universal-argument (@kbd{C-u}) を打った後で@kbd{[prefix] k}をタイプすると、 +それぞれの「容器」に含まれる「中身」も一気に削除します。以下の例を参考にし +て下さい。 + +@example + 元のテキスト: [prefix] k C-u [prefix] k + 本文\footnote@{脚注@}です。 本文脚注です。 本文です。 + ↑(カーソル位置) +@end example + +@node Filling, Includeonly, Modifying/Deleting, Top +@comment node-name, next, previous, up +@chapter 桁揃え +@cindex 桁揃え[けたそろえ] + +@section itemの桁揃え +@cindex itemなどの桁揃え[itemなとのけたそろえ] +@cindex prefix i + + itemize 環境中にある@code{\item}の項目(文章)が複数行に渡る場合に、項 +目の先頭を桁揃えしたい場合には、 + +@c @table @kbd +@c @item [prefix] i +@c @dots{} itemの桁揃え +@c @end table + +@table @kbd +@item M-q + @dots{} 桁揃え +@end table + +@cindex NTT-jTeX[えぬていいていいしえいてつく] +@noindent +によって、その item のインデントの深さに応じて fill されます。なお、古い +NTT jTeX を使用している場合には、Lisp 変数@code{NTT-jTeX}を@code{t}にセッ +トして下さい。 + +@cindex YaTeX-item-regexp + このとき、変数@code{YaTeX-item-regexp}の値(標準では @code{"\\\\item"})を +項目指定コマンドの正規表現として検索に使用します。itemize 環境で、独自のコ +マンドを定義して項目を列挙している場合(例えば@code{\underlineitem})は、 +@file{~/.emacs} で次のように指定して下さい。 + +@lisp + (setq YaTeX-item-regexp + "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)") +@end lisp + +@noindent +この変数の指定の仕方がよく分からない場合は、独自の項目列挙コマンドの名前を +@code{@code{"\item"}で始まるものにして下さい(例えば"\itembf"})。 + +野鳥の @kbd{M-q} では @code{\item} を環境に応じて以下のように「ハングイン +デント」します。 + +@example +itemize, enumerate環境: + >\item[ほげほげ] 英語では、特に意味のない単語を `foo' であらわしま + > すが、これの日本語版ともいえる単語が「ほげほげ」 + > です。 +description環境: + > \item[へろへろ] 「ほげほげ」をでたらめが単語として使った時に、第 + > 2のでたらめな単語として「へろへろ」が使われることが多 + > いようです。 +@end example + +@section パラグラフの桁揃え +@cindex パラグラフの桁揃え[はらくらふのけたそろえ] +@cindex M-q + + itemize環境以外でのパラグラフの桁揃え(fill)は、基本的に他のモードと同じ +ように機能しますが、verbatim環境や、tabular環境など桁揃えをすると悲惨な状 +況になるような環境中では機能しません。また、\verb で括ってあるものは決して +行分割されません(変数 @code{YaTeX-verb-regexp} で制御) )。さらに、一時的に +インデントの深さを変えてある箇所では、そのインデントの先頭で@kbd{M-q}を押 +すことにより fill-prefix をいちいち変更しなくて桁揃えができます。 + + +@node Includeonly, What column, Filling, Top +@comment node-name, next, previous, up +@chapter 勝手にincludeonly +@cindex 勝手にincludeonly[かつてにincludeonly] +@cindex includeonly + + ファイルを分割して文章を入力している時には、メインファイル中に + +@example + \includeonly@{現在編集中のファイル名@} +@end example + +@noindent +のように書いておくことで、タイプセットの時間を節約できますが、ちょっと他の +ファイルを手直ししたい時には +@cindex 他のファイルの手直し[ほかのふあいるのてなおし] + +@example + \includeonly@{ちょっと手直ししたいファイル名@} +@end example + +@noindent +と書き直さなければならず手間がかかります。野鳥では現在編集しているファイル +名がメインファイルの@code{\includeonly}にない場合には自動的にこれを検出し、 +次の指示を仰ぎます。 + +@example + A)dd R)eplace %)comment? +@end example + +@noindent +現在編集中のファイルを @code{\includeonly} のリストに加えたい時には@kbd{a} +を、現在編集中のファイルだけを @code{\includeonly} にしたい時は@kbd{r}を、 +@code{\includeonly} の行をコメントアウトして無効化したい時には、@kbd{%}を +それぞれ押して下さい。 + +@node What column, Intelligent newline, Includeonly, Top +@comment node-name, next, previous, up +@chapter ここはどこ? +@cindex ここはどこ?[ここはとこ?] +@cindex prefix & +@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@} +@end example + +@noindent +(???)の部分がどの項目なのかすぐに判断するのは難しいでしょう。こんな時は、 + +@table @kbd +@item [prefix] & + @dots{} 現在のカラム表示 +@end table +@cindex 現在のカラム表示[けんさいのからむひようし] + +を押すとカーソル位置のカラムがどの項目に該当するかをミニバッファに表示しま +す。tabular/array環境の第1行目を項目名の並びとみなして対応するものを探しま +す。もし項目名として別のものを表示して欲しい場合は、行頭を@code{%}にしてダ +ミーの項目並びを作っておくと良いでしょう。 + +@node Intelligent newline, Changing mode of YaTeX, What column, Top +@comment node-name, next, previous, up +@chapter おまかせ改行 +@cindex おまかせ改行[おまかせかいきよう] +@cindex &入力[&にゆうりよく] + + tabular[*], array, itemize, enumerate, tabbing 環境をbegin型補完で入力し +た時、または各環境内で + +@table @kbd +@item ESC RET + @dots{} おまかせ改行 +@end table + +@noindent +を押すと、その環境に応じた行エントリを次の行に挿入します(begin型補完時に自 +動挿入されたエントリが不要な場合は undo によって消去できます)。例えば、 +tabular環境では、その環境のカラム数に対応した個数の @code{&} に加え、行末 +の @code{\\} を入れます。この時それ以前に @code{\hline} があればそれも付け +加えます。環境とそれに応じて自動入力するものの対応は以下のようになります。 + +@itemize +@item @code{tabular}, @code{tabular*}, @code{array} + + カラム数-1 だけの @code{&} と @code{\\}。必要に応じて @code{\hline} + +@item @code{tabbing} + + 一行目で定義している @code{\=} と同じ個数の @code{\>}。 + +@item @code{itemize}, @code{enumerate}, @code{description}, @code{list} + + @code{\item} または @code{item[]} +@end itemize + + tabular 環境の例のように、本機能は各環境の一行目の内容を参考にして動作す +るので、なるべく二行目以降で呼び出すようにしてください。 + + もし、その他の環境、例えば @code{foo}、に対して@code{おまかせ改行}を動作 +させたい時は、@code{YaTeX-intelligent-newline-foo} という名前の関数を定義 +します。定義した関数は、現在の行に改行を挿入した直後の行頭の位置で呼ばれま +す。関数 @code{YaTeX-indent-line} を呼ぶと現在の環境のネストに応じた深さに +インデントされるので、これを呼んでから何かを挿入するようなコードを書くとよ +いでしょう。@file{yatexenv.el}内の関数 +@code{YaTeX-intelligent-newline-itemize} の定義などを参考にしてください。 + +@node Changing mode of YaTeX, Online help, Intelligent newline, Top +@comment node-name, next, previous, up +@chapter 野鳥の動作モード切り替え +@cindex モード切り替え[もうときりかえ] +@cindex prefix w + +@table @kbd +@item [prefix] w + @dots{} 野鳥動作モード切り替えメニュー +@end table + +@noindent +で野鳥自身の動作を決定する以下のモードを切り替えます。 + +@itemize @bullet +@item 修正モード +@item 野鳥数式モード +@end itemize + +修正モードは、開き括弧入力時の処理をコントロールし、修正モードONの時は開き +括弧の入力は開き括弧のみの入力になり、修正モードOFFの時は開き括弧の入力だ +けで閉じ括弧まで入力します。デフォルト(起動時)の設定は@emph{OFF}です。 + + 野鳥数式モードは、変数 @code{YaTeX-auto-math-mode} が @code{nil} の時の +み有効で、このとき@kbd{;}や@kbd{:}を押した時(@ref{Image completion}参照)に、 +どのようなイメージ補完を機能させるか、通常のキーとして機能させるかを手動で +切り替えます。自動判定が遅いマシンでは@code{YaTeX-auto-math-mode} +@code{nil}にセットし、野鳥数式モードを手動で切り替えると良いでしょう。 + + +@node Online help, Inclusion hierarchy browser, Changing mode of YaTeX, Top +@comment node-name, next, previous, up +@chapter オンラインヘルプ +@cindex オンラインヘルプ[おんらいんへるふ] +@cindex apropos +@cindex キーワード検索[きいわあとけんさく] +@cindex prefix ? +@cindex prefix / + + 使おうとする La@TeX{} コマンドの用法がよく分からない時は、オンラインヘル +プをひきましょう。ヘルプに関するキーには以下のものがあります。 + +@table @kbd +@item [prefix] ? + @dots{} オンラインヘルプ +@item [prefix] / + @dots{} オンラインapropos +@end table + +@section オンラインヘルプ +@cindex グローバルヘルプ[くろおはるへるふ] +@cindex プライベートヘルプ[ふらいへえとへるふ] +@cindex YaTeX-help-file +@cindex YaTeX-help-file-private + + 「オンラインヘルプ」は、一般的な La@TeX{} コマンド(デフォルトでカーソル +位置のコマンド)に対する説明を隣のバッファに表示します。この時参照されるヘ +ルプ用ファイルには「グローバルヘルプ」と「プライベートヘルプ」の二種類があ +り、前者は La@TeX{} の標準コマンドの主なものの説明を含むファイルで、変数 +@code{YaTeX-help-file}の値で指定されます。このファイルは通常公共の場所(デ +フォルトで@code{$EMACSEXECPATH})に置かれ、誰もがその内容を更新できるように +全員に書き込み権が与えられるべきものです。後者は、非標準もしくは個人的なマ +クロ定義に関する説明が書かれているファイルで、変数 +@code{YaTeX-help-file-private}の値で指定されます。こちらはユーザのホームディ +レクトリの下などに置かれます。 + +@section オンラインapropos + + 「オンラインapropos」は GNU Emacs の apropos と同様、ユーザが指定したキー +ワードを説明文に含む項目すべてを隣のバッファに表示します。 + + もし、調べようとしたLa@TeX{}コマンドに対する説明がヘルプファイル中に見つ +からなかった場合は、説明文の入力を求めてくるので、可能であれば参考書などを +調べてそのコマンドの説明を入力してください。もし、なにか標準的なコマンドに +対する説明を書いたならばぜひ私までその説明をお送り下さい。次回の配布に含め +たいと思います。 + +@node Inclusion hierarchy browser, Cooperation with other packages, Online help, Top +@comment node-name, next, previous, up +@chapter インクルード構造ブラウザ +@cindex インクルード構造[いんくるうとこうそう] +@cindex prefix d + +複数のファイルに分割しているドキュメントを書いている場合、 + +@table @kbd +@item [prefix] d + @dots{} インクルード構造ブラウズ +@end table + +@noindent +を押すと、そのドキュメントの親ファイルを聞いて来ます。ここで全てのファイル +の親となるファイル(デフォルトが示されているので大抵はRETのみ)を入力すると +インクルードしている全てのファイルを解析し、インクルード状況を視覚的に表示 +します。このバッファでは以下のキー操作が有効です。 + +@table @kbd +@item n + @dots{} 次の行に移動し対応するファイルを隣のバッファに表示 +@item p + @dots{} 上の行に移動し対応するファイルを隣のバッファに表示 +@item N + @dots{} 同じインクルードレベルの次のファイルに移動 +@item P + @dots{} 同じインクルードレベルの前のファイルに移動 +@item j + @dots{} 次の行に移動 +@item k + @dots{} 上の行に移動 +@item u + @dots{} 一代親にあたるファイルに移動 +@item . + @dots{} カーソル位置のファイルを隣のバッファに表示 +@item SPC + @dots{} 隣のバッファの対応ファイルをスクロールアップ +@item DEL, b + @dots{} 隣のバッファの対応ファイルをスクロールダウン +@item < + @dots{} 隣のバッファの対応ファイルの先頭を表示 +@item > + @dots{} 隣のバッファの対応ファイルの末尾を表示 +@item ' + @dots{} (@kbd{<}や@kbd{>}の後で)元の表示位置に戻る +@item RET, g + @dots{} カーソル位置のファイルを隣のバッファでオープン +@item mouse-2 + @dots{} RETと同じ(ウィンドウ使用時のみ) +@item o + @dots{} 隣のウィンドウに移動 +@item 1 + @dots{} 他のウィンドウを消す +@item - + @dots{} ブラウズウィンドウを小さくする +@item + + @dots{} ブラウズウィンドウを大きくする +@item ? + @dots{} ヘルプ表示 +@item q + @dots{} 表示前の状態に戻る +@end table + + ただし、隣のウィンドウのファイルの内容を表示する機能に関しては、対応する +ファイルをクローズしてしまうとうまく働きませんのでご注意ください。 + +@node Cooperation with other packages, Customizations, Inclusion hierarchy browser, Top +@comment node-name, next, previous, up +@chapter 他パッケージとの連携 +@cindex 他パッケージとの連携[たはつけえしとのれんけい] + +@section gmhist +@cindex gmhist +@cindex コマンドヒストリ[こまんとひすとり] +@cindex ヒストリ[ひすとり] + + @file{gmhist.el}と@file{gmhist-mh.el} をロードしている場合、プレヴューコ +マンドの入力(@kbd{[prefix] tp]})、印刷コマンドの入力(@kbd{[prefix] tl})の +時に独立したヒストリを利用できます。それぞれのプロンプトで、@kbd{M-p} を押 +すと直前に利用したコマンド文字列をくり返し呼び出すことができます。 + +@section min-out +@cindex min-out + + @file{min-out.el} (@code{outline-minor-mode}) と野鳥を組み合わせて使うこ +とももちろん可能です。設定の方法に関しては@file{yatexm-o.el}をご覧ください。 + +@node Customizations, Etc, Cooperation with other packages, Top +@comment node-name, next, previous, up +@chapter カスタマイズ +@cindex カスタマイズ[かすたまいす] +@cindex キーアサイン[きいあさいん] + + 野鳥の動作を制御する種々の変数を独自に設定することにより、補完入 +力を起動するキーアサインを変えたり、環境名の補完候補をさらに充実さ +せることなどができます。 + +@menu +* Lisp variables:: lisp 変数 +* Add-in functions:: 付加関数(アドイン関数) +@end menu + +@node Lisp variables, Add-in functions, Customizations, Customizations +@comment node-name, next, previous, up +@section lisp 変数 +@cindex prefixキー変更[prefixきいへんこう] + + 例えば prefix キーを @kbd{C-c} 以外のキーにしたい場合は、 +@code{YaTeX-prefix}に prefix キーにしたいシンボルを定義してください。さら +に、「@kbd{C-c 英字}」というキーバインドは独自の関数が割り当ててあるので使 +いたくない。このような時は、@code{YaTeX-inhibit-prefix-letter} を @code{t} +に設定することにより、@kbd{C-c 英字…}のバインドが全て、対応する@kbd{C-c +C-英字…}に変わります(ただし、begin型 large型補完の大文字起動によるリジョ +ン指定は可能なままです。これも無効にしたい場合は@code{t}ではなく 1 にセッ +トして下さい。)。 + +@menu +* All customizable variables:: カスタマイズ変数一覧 +* Sample definitions:: カスタマイズ変数設定例 +* Hook variables:: hook変数 +* Hook file:: hook用ファイル +@end menu + +@node All customizable variables, Sample definitions, Lisp variables, Lisp variables +@comment node-name, next, previous, up +@subsection カスタマイズ変数一覧 +@cindex カスタマイズ変数一覧[かすたまいすへんすういちらん] + + yatex-mode における次の変数がカスタマイズ可能です。@file{~/.emacs} で +@code{setq} しておけば、そちらの定義が優先されます。括弧の中はデフォルト値 +です。実際に変数の値を変更する場合は @kbd{M-x describe-variable} で +変数の詳細な説明を参照してください。 + +@defvar YaTeX-prefix +yatex-mode 中のプリフィクスキー (@kbd{\C-c}) +@end defvar + +@defvar YaTeX-inhibit-prefix-letter +prefix キーの直後のキーバインドで @kbd{英字} のものを @kbd{C-英字} に変更 +(@code{nil}) +@end defvar + +@defvar YaTeX-fill-prefix +本文を書く時の行頭に挿入する接頭辞すなわち fill-prefix (@code{""(nil)}) +@end defvar + +@defvar YaTeX-user-completion-table +学習したLa@TeX{}コマンド保存ファイル名 (@code{"~/.yatexrc"}) +@end defvar + +@defvar YaTeX-kanji-code +文書を作成する時の漢字コード 1=Shift JIS, 2=JIS, 3=EUC (2 (MS-DOSでは1)) +@end defvar + +@defvar tex-command +La@TeX{}タイプセッタコマンド名 (@code{"platex"}) +@end defvar + +@defvar dvi2-command +プレヴューアコマンド名 (@code{"xdvi -geo +0+0 -s 4"}) +@end defvar + +@defvar dviprint-command-format +dviファイルの印刷に使われるコマンド式 (@code{"dvi2ps %f %t %s | lpr"}) +@end defvar + +@defvar dviprint-from-format +上の@code{%f}に相当する開始ページ指定書式、@code{%b} が開始ページ番号に変 +わる (@code{"-f %b"}) +@end defvar + +@defvar dviprint-to-format +@code{%t} に相当する終了ページ指定書式、@code{%e}が終了ページ番号に変わる +(@code{"-t %e"}) +@end defvar + +@defvar makeindex-command +makeindexコマンド (@code{"makeindex"} (MS-DOSでは@code{"makeind"})) +@end defvar + +@defvar YaTeX-need-nonstop +@code{\nonstopmode@{@}}を自動的に付加するか (@code{nil}) +@end defvar + +@defvar latex-warning-regexp +latexコマンドの出力するウォーニング行の正規表現 (@code{"line.* [0-9]*"}) +@end defvar + +@defvar latex-error-regexp +同じくエラー行の正規表現 (@code{"l\\.[1-9][0-9]*"}) +@end defvar + +@defvar latex-dos-emergency-message +MS-DOS上で動作する latex コマンドが、エラーにより停止するとき出力するメッ +セージ (@code{"Emergency stop"}) +@end defvar + +@defvar latex-message-kanji-code +タイプセッタの出力するメッセージの漢字コード.タイプセットバッファ +の出力が化ける時は、これを設定する (2, Nemacsでのみ有効) +@end defvar + +@defvar NTT-jTeX +古いNTT-j@TeX{}使用時のようにインデントした行の先頭と前の行の +(タイプセット後の)字間が空いてしまうのを嫌う場合は@code{t}にする +(@code{nil}) +@end defvar + +@defvar YaTeX-item-regexp +itemの桁揃えの時に用いる、itemの正規表現 (@code{"\\\\(sub\\)*item"}) +@end defvar + +@defvar YaTeX-verb-regexp +verbコマンドの正規表現。先頭の\\\\はつけない (@code{"verb\\*?\\|path"}) +@end defvar + +@defvar YaTeX-nervous +ローカル辞書を用いる時 @code{t} (@code{t}) +@end defvar + +@defvar YaTeX-sectioning-regexp +セクション区切り設定コマンドの正規表現 +(@code{"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"}) +@end defvar + +@defvar YaTeX-fill-inhibit-environments +fill を抑止する環境名のリスト +(@code{'("tabular" "tabular*" "array" "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" "verbatim" "verbatim*")}) +@end defvar + +@defvar YaTeX-uncomment-once +領域uncommentで行頭の複数の@code{%}を全て削除するか (@code{nil}) +@end defvar + +@defvar YaTeX-close-paren-always +開き括弧の入力で常に閉じ括弧を入力する (@code{t}) +@end defvar + +@defvar YaTeX-auto-math-mode +数式モードの切り替えを自動的に行う (@code{t}) +@end defvar + +@defvar YaTeX-math-key-list-private +数式イメージ補完で用いる (プリフィクスキー . 対応補完テーブル) の +alist (@code{nil})。補完テーブルの書き方については@file{yatexmth.el}を参照。 +@end defvar + +@defvar YaTeX-default-pop-window-height +1画面の時にタイプセットバッファを初めて作成する時の高さ。数値で行数、数字 +文字列でEmacsウィンドウに対する百分率 (10) +@end defvar + +@defvar YaTeX-help-file +共用ヘルプファイル (@file{$doc-directory/../../site-lisp/YATEXHLP.jp}) +@end defvar + +@defvar YaTeX-help-file-private +個人用ヘルプファイル (@file{"~/YATEXHLP.jp"}) +@end defvar + +@defvar YaTeX-no-begend-shortcut +@kbd{[prefix] b ??} のショートカットを使わず、@kbd{[prefix] b} だけで補完 +入力に入る (@code{nil}) +@end defvar + +@defvar YaTeX-hilit-pattern-adjustment-private +正規表現とそれにマッチするものの論理的意味をシンボルであらわしたものの +リスト…のリスト。hilit19 を組み込んでいる時のみ有効。 +詳しくは @code{(assq 'yatex-mode hilit-patterns-alist)} +した結果と、変数 @code{YaTeX-hilit-pattern-adjustment-default} の値(と場合 +によっては hilit19 のドキュメント)を参照せよ。 +@end defvar + +@defvar YaTeX-sectioning-level +LaTeXのセクション単位宣言コマンドとその論理的高さのalist。 +@end defvar + +@defvar YaTeX-hierarchy-ignore-heading-regexp +Hierarchy バッファは通常ファイルヘッダとして、LaTeXのセクション宣言コマン +ドの引数を検索し、それがなければコメント行を探すが、その際にヘッダとしては +意味を持たないパターンをこの変数に設定する。デフォルトでは RCS ヘッダとモー +ド指定行(-*- xxx -*-)が設定されている。 +@end defvar + +@defvar YaTeX-skip-default-reader +Non-nil に設定するとsection型コマンドの引数入力時、アドイン関数がなければ +ミニバッファでの読み込みをせずに入力を完了させる (@code{nil}) +@end defvar + +@defvar YaTeX-create-file-prefix-g +@code{\include}などで @kbd{prefix g}した時に、ジャンプ先が存在しないファイ +ルであってもオープンする (@code{nil}) +@end defvar + +@defvar YaTeX-simple-messages +各種補完時のメッセージ出力を簡素化する (@code{nil}) +@end defvar + +@defvar YaTeX-hilit-sectioning-face +色付けが有効な時の @code{\part} の色 +(@code{'(yellow/dodgerblue yellow/slateblue)})。 +リストの第一要素は @code{hilit-background-mode} が @code{'light} の時の、 +第二要素は @code{'dark} の時の @code{\chapter} の色で、文字色/背景色 のよ +うに指定する。 +@end defvar + +@defvar YaTeX-hilit-sectioning-attenuation-rate +色付けが有効な時の、@code{\subparagraph} の色を @code{\chapter} の濃度の何 +%薄くしたものにするか (@code{'(15 40)}) @code{YaTeX-hilit-sectioning-face} +の項参照。 +@end defvar + +@defvar YaTeX-use-AMS-LaTeX +AMS-LaTeX を使用する場合は @code{t} に設定する (@code{nil}) +@end defvar + +@defvar YaTeX-use-LaTeX2e +LaTeX2e を使用する場合は @code{t} に設定する (@code{t}) +@end defvar + +@defvar YaTeX-template-file +新規ファイル作成時に自動挿入するファイル名 (@code{~/work/template.tex}) +@end defvar + +@defvar YaTeX-search-file-from-top-directory +inputするファイルを探すときの基準ディレクトリをmainファイルのあるディレクト +リにするか (@code{t}) +@end defvar +@defvar YaTeX-use-font-lock +ソースの色づけパッケージとして font-lock を利用するかどうか +(@code{(featurep 'font-lock)}) +@end defvar + +@defvar YaTeX-use-hilit19 +ソースの色づけパッケージとして hilit19 を利用するかどうか +(@code{(featurep 'hilit19)}) +@end defvar + +@defvar YaTeX-use-italic-bold +italic, boldフォントを野鳥が探すかどうか (Emacs20以降なら@code{t}) +font-lock利用時のみ有効。 +(@code{(featurep 'hilit19)} +@end defvar + +@node Sample definitions, Hook variables, All customizable variables, Lisp variables +@comment node-name, next, previous, up +@subsection カスタマイズ変数設定例 +@cindex 設定例[せつていれい] + + たとえば、prefix キーとして@kbd{ESC}を使用し、新たな補完候補を格納するファ +イルを、@file{~/src/emacs/yatexrc} にし、行頭の prefix をタブ文字一つに変 +えたいときは、 + +@lisp + (setq YaTeX-prefix "\e" + YaTeX-user-completion-table "~/src/emacs/yatexrc" + YaTeX-fill-prefix " ") +@end lisp + +@noindent +を @file{~/.emacs} に加えます。 + +@node Hook variables, Hook file, Sample definitions, Lisp variables +@comment node-name, next, previous, up +@subsection hook変数 +@cindex hook変数[hookへんすう] +@cindex yatex-mode-hook +@cindex yatex-mode-load-hook + + また、hook 変数 @code{yatex-mode-hook}, @code{yatex-mode-load-hook} を用 +意しています。すべての yatex-mode のバッファで作用させたいものは、 +@code{yatex-mode-hook} に記述し、@file{yatex.el} をロードする時だけ作用さ +せたいものは@code{yatex-mode-load-hook} に記述します。例えば、 +@code{outline-minor-mode} を利用する場合、それぞれのバッファで +@code{outline-minor-mode} を有効にしたいので、@code{yatex-mode-hook} を次 +のように設定します。 + +@lisp + (setq yatex-mode-hook + '(lambda () (outline-minor-mode t))) +@end lisp + +@noindent +逆に、独自のキー定義を行いたい時などは、@code{yatex-mode-load-hook} を利用 +します。例えば、begin 型補完において、 document や、enumerate 以外の環境名 +もショートカットキーで入れたいなどという時は、次のようにします。以下の例は、 +@kbd{[prefix] ba} で @code{\begin@{abstract@}}, @code{\end@{abstract@}} を +挿入します。 + +@lisp + (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 variables, Lisp variables +@comment node-name, next, previous, up +@subsection hook用ファイル + + 変数 @code{yatex-mode-load-hook} で定義する内容が多い時は、 +@file{yatexhks.el}というファイルを作り、その中に野鳥関連の設定を書く事で、 +初期化の時に自動的にロードします。 + + +@node Add-in functions, , Lisp variables, Customizations +@comment node-name, next, previous, up +@section 付加関数(アドイン関数) + + 各種補完時に、環境名やコマンド名に応じたきめ細やかな補完入力機能を実現す +るための関数を作成することができます。この関数の作成方法や、組み込み方法に +関しては、@code{yatexadd.doc} をご覧ください。 + +@node Etc, Copying, Customizations, Top +@comment node-name, next, previous, up +@chapter その他 + + 野鳥の標準の La@TeX{} コマンドの辞書には、作者が頻繁に使うものしか登録さ +れていません。これは、補完候補に使いそうもないコマンドが存在して、補完した +いコマンドを出すまでのストローク数を増やしてしまう事を防止するためです。標 +準辞書にないコマンドも、できるだけ補完入力方式を利用し、ユーザ辞書を充実さ +せることで、あなたの La@TeX{} スタイルにあった野鳥へと育っていくことでしょ +う。 + +@node Copying, Concept Index, Etc, Top +@comment node-name, next, previous, up +@chapter 取り扱い + + 本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな +る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた +しません。常識的に扱ってください。また、使用している旨をメイルでお知らせい +ただくと、作者は喜んでサポートに励むことでしょう。 + + 苦情、希望、バグ報告、感想等は歓迎いたします。 +連絡は yuuji@@yatex.org まで(2000年12月現在)。 +継続的に使用してくださる方はメイリングリスト「fj野鳥の会」に +是非加入してください。加入方法については本パッケージの @file{docs/qanda} +ファイルの「その他」の章を御覧ください。 + +仕様は、予告なく確実に(気分次第で)変更されます:-p。 + +@flushright +広瀬雄二 +@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: +@c fill-column: 74 +@c fill-prefix: nil +@c buffer-file-coding-system: sjis-dos +@c End: + +Tag table: + +End tag table diff -r 0aaebd07dad0 -r f41b01fef5d6 yahtml.el --- a/yahtml.el Mon Dec 25 10:19:28 2000 +0000 +++ b/yahtml.el Wed May 22 04:57:42 2002 +0000 @@ -1,9 +1,9 @@ ;;; -*- Emacs-Lisp -*- -;;; (c ) 1994-2000 by HIROSE Yuuji [yuuji@yatex.org] -;;; Last modified Mon Dec 25 18:56:49 2000 on firestorm +;;; (c ) 1994-2002 by HIROSE Yuuji [yuuji@yatex.org] +;;; Last modified Wed May 22 13:55:01 2002 on firestorm ;;; $Id$ -(defconst yahtml-revision-number "1.69" +(defconst yahtml-revision-number "1.70" "Revision number of running yahtml.el") ;;;[Installation] @@ -246,6 +246,13 @@ (not yahtml-use-font-lock)) "*Non-nil means to Use hilit19 to highlight buffer") +(defvar yahtml-mode-abbrev-table nil + "*Abbrev table in use in yahtml-mode buffers.") +(define-abbrev-table 'yahtml-mode-abbrev-table ()) + +(defvar yahtml-indentation-boundary "^\\s *" + "*Boundary regexp for indentation calculation.") + ;;; --- customizable variable ends here --- (defvar yahtml-prefix-map nil) (defvar yahtml-mode-map nil "Keymap used in yahtml-mode.") @@ -452,7 +459,10 @@ (mapconcat 'car yahtml-env-table "\\|") "\\)\\b") "Regexp of any closable elemnts.") - + +(defvar yahtml-indent-listing-constant t + "*Nil means indentation for listing obeys the column of `>'. +T for static indentation depth") (or (assoc "p" yahtml-env-table) (setq yahtml-env-table (cons '("p") yahtml-env-table))) @@ -540,24 +550,27 @@ (defvar yahtml-mode-old-mode nil) (defun yahtml-mode () (interactive) - (kill-all-local-variables) + (let ((old-mm major-mode)) ;Emacs21.0.95 resets major-mode + (kill-all-local-variables) ;with kill-all-local-variables + (if (not (eq 'yahtml-mode old-mm)) + (set (make-local-variable 'yahtml-mode-old-mode) old-mm))) (let ((coding (or (yahtml-dir-default-charset) yahtml-kanji-code))) (cond ((and YaTeX-emacs-20 (boundp 'buffer-file-coding-system)) (setq buffer-file-coding-system (or (and (fboundp 'set-auto-coding) buffer-file-name - (save-excursion (set-auto-coding buffer-file-name 2000))) + (save-excursion (set-auto-coding buffer-file-name (buffer-size)))) coding))) ((featurep 'mule) (set-file-coding-system coding)) ((boundp 'NEMACS) (make-local-variable 'kanji-fileio-code) (setq kanji-fileio-code coding)))) - (if (not (eq 'yahtml-mode major-mode)) - (set (make-local-variable 'yahtml-mode-old-mode) major-mode)) (setq major-mode 'yahtml-mode mode-name "yahtml" - YaTeX-current-file-name (file-name-nondirectory (buffer-file-name))) + YaTeX-current-file-name (file-name-nondirectory + (or (buffer-file-name) "")) + local-abbrev-table yahtml-mode-abbrev-table) (mapcar (function (lambda (x) (make-local-variable (car x)) @@ -833,14 +846,15 @@ (not (equal last-command-char ?\C-j)) (memq yahtml-current-completion-type '(multiline inline)) (yahtml-make-optional-argument ;should be made generic? - "class" (completing-read "class: " a))) + "class" + (let ((completion-ignore-case t)) + (completing-read "class: " a)))) (if (and (intern-soft addin) (fboundp (intern-soft addin)) (stringp (setq s (funcall (intern addin)))) (string< "" s)) (if (eq (aref s 0) ? ) s (concat " " s)) "")))) - (defvar yahtml-completing-buffer nil) (defun yahtml-collect-labels (&optional file) "Collect current buffers label (). @@ -881,14 +895,15 @@ "Complete external URL from history or local file name." (interactive) (let ((p (point)) initial i2 cmpl path dir file listfunc beg labels - (lim (YaTeX-minibuffer-begin))) + (lim (YaTeX-minibuffer-begin)) + (min (if (fboundp 'field-beginning) (field-beginning) (point-min)))) (setq initial (YaTeX-minibuffer-string)) (cond ((string-match "^http:" initial) (setq cmpl (try-completion initial yahtml-urls) listfunc (list 'lambda nil (list 'all-completions initial 'yahtml-urls)) - beg (point-min))) + beg min)) ((setq beg (string-match "#" initial)) (or (equal beg 0) ;begin with # (progn @@ -901,7 +916,7 @@ listfunc (list 'lambda () (list 'all-completions initial (list 'quote labels))) - beg (+ (point-min) beg))) + beg (+ min beg))) (t (setq path (if (string-match "^/" initial) (or (yahtml-url-to-path initial) initial) @@ -1035,7 +1050,8 @@ ("rev" . yahtml-link-types-alist) ("rel" . yahtml-link-types-alist) ("type" . yahtml-content-types-alist) - ("codetype" . yahtml-content-types-alist))) + ("codetype" . yahtml-content-types-alist) + ("http-equiv" ("Refresh")))) (defvar yahtml-link-types-alist '(("alternate") ("stylesheet") ("start") ("next") ("prev") @@ -1177,7 +1193,7 @@ c3 (char-after 3) c4 (char-after 4)) (cond - ((and (eq c1 255) (eq c2 216)) ; 0xff 0xd8 + ((and (eq c1 ?\377) (eq c2 ?\330)) ; 0xff 0xd8 ;;JPEG images need JPEG markers inspection ;;JPEG markers consist of [ 0xff ID(B) LEN(S) CONTENTS... ] ;; Warning: here seekpoint is measured by Emacs's point value @@ -1186,16 +1202,19 @@ (catch 'exit (while (< seekpoint (- (buffer-size) 4)) (cond - ((not (eq (char-after seekpoint) 255)) + ((not (eq (char-after seekpoint) ?\377)) ;maybe corrupted, exit from loop (throw 'exit t)) - ((memq (char-after (1+ seekpoint)) - '(192 193 194 195 197 198 199 201 202 203 205 206 207)) + ((memq + (char-after (1+ seekpoint)) + '(?\300 ?\301 ?\302 ?\303 + ?\305 ?\306 ?\307 ?\311 ?\312 ?\313 ?\315 ?\316 ?\317)) + ;;'(192 193 194 195 197 198 199 201 202 203 205 206 207 ;;found! (setq height (yahtml-hex-value (+ seekpoint 4) 2) width (yahtml-hex-value (+ seekpoint 6) 2) depth (yahtml-hex-value (+ seekpoint 3) 1))) - ((eq (char-after (1+ seekpoint)) 254) ;0xFE = comment + ((eq (char-after (1+ seekpoint)) ?\376) ;0xFE = comment ;; JPEG comment area (setq beg (+ seekpoint 2 2) end (+ seekpoint @@ -1206,7 +1225,7 @@ (setq seekpoint (+ seekpoint 2) seekpoint (+ seekpoint (yahtml-hex-value (1- seekpoint) 2)))))) - ((and (eq c1 137) ;0x89 + ((and (eq c1 ?\211) ;0x89 (eq c2 ?P) (eq c3 ?N) (eq c4 ?G)) ;;PNG Image data X=@0x10(L), Y=@0x14(L), D=@0x18(B) (setq width (yahtml-hex-value 16 4) @@ -1236,7 +1255,7 @@ (defun yahtml:form () "Add-in function `form' input format" (concat - " " (if yahtml-prefer-upcase-attributes "METHOD" "method=") + " " (if yahtml-prefer-upcase-attributes "METHOD" "method") "=" (completing-read "Method: " '(("POST") ("GET")) nil t) " " (if yahtml-prefer-upcase-attributes "ACTION" "action") "=\"" (read-string "Action: ") "\"" @@ -1249,7 +1268,14 @@ (read-string "name: ") "\"")) (defun yahtml:ol () - (setq yahtml-last-single-cmd "li") "") + "Add-in function for
    " + (setq yahtml-last-single-cmd "li") + (let ((start (read-string "start=")) + (type (completing-read + "type=" '(("1") ("a") ("A") ("i") ("I")) nil t))) + (concat + (yahtml-make-optional-argument "start" start) + (yahtml-make-optional-argument "type" type)))) (defun yahtml:ul () (setq yahtml-last-single-cmd "li") "") (defun yahtml:dl () @@ -1360,6 +1386,44 @@ (t ;;?? )))) +(defvar yahtml:meta-names + '(("name" ("keywords")("author")("copyright")("date")("GENERATOR")))) + +(defun yahtml:meta () + (let ((name (yahtml-make-optional-argument + "name" + (yahtml-read-parameter "name" nil yahtml:meta-names))) + http-equiv content) + (if (string= "" name) + (if (string-match + "Content-type" + (setq http-equiv (yahtml-make-optional-argument + "http-equiv" + (yahtml-read-parameter "http-equiv" nil)))) + (error "It's very bad idea to set Content-type in META. %s" + "See docs/qanda") + (concat http-equiv + (yahtml-make-optional-argument + "content" (yahtml-read-parameter "content")))) + (concat + name + (yahtml-make-optional-argument + "content" + (cond + ((string-match "date" name) + (read-string "Date: " (current-time-string))) + ((string-match "author" name) + (read-string "Author: " + (if (and (user-full-name) (string< "" (user-full-name))) + (user-full-name) + (user-login-name)))) + ((string-match "GENERATOR" name) + (setq content (read-string "Generator: " "User-agent: ")) + (if (string-match "yahtml" content) + (message "Thank you!")) + content) + (t (read-string (concat name ": "))))))))) + (defun yahtml:br () (yahtml-make-optional-argument "clear" (yahtml-read-parameter "clear"))) @@ -1571,7 +1635,8 @@ (if (file-exists-p (concat file f)) (throw 'dirindex (setq file (concat file f)))))) - (yahtml-get-directory-index))) + (yahtml-get-directory-index)) + nil) (setq file (concat file yahtml-directory-index)))) (if (string-match "^/" file) (setq file (yahtml-url-to-path file))) @@ -2173,7 +2238,7 @@ (itemizing-envs "^\\([uod]l\\|menu\\|dir\\)$") (itms "<\\(dt\\|dd\\|li\\|t[rdh]\\|option\\)\\b") (excludes - "\\(a\\|p\\|span\\|tt\\|em\\|u\\|i\\|big\\|small\\|font\\)\\b") + "\\(a\\|p\\|span\\|code\\|tt\\|em\\|u\\|i\\|big\\|small\\|font\\)\\b") inenv p col peol (case-fold-search t)) (save-excursion (beginning-of-line) @@ -2204,12 +2269,15 @@ (goto-char p) (re-search-forward itms op t) (progn - (skip-chars-forward "^>") - (skip-chars-forward ">") - (skip-chars-forward " \t") - (setq col (if (looking-at "$") - (+ col yahtml-environment-indent) - (current-column))))))) + (if yahtml-indent-listing-constant + (setq col (+ (current-column) + (if yahtml-faithful-to-htmllint 1 2))) + (skip-chars-forward "^>") + (skip-chars-forward ">") + (skip-chars-forward " \t") + (setq col (if (looking-at "$") + (+ col yahtml-environment-indent) + (current-column)))))))) col) (t (+ col yahtml-environment-indent))))) @@ -2402,7 +2470,7 @@ (interactive) (let ((case-fold-search t)) (if (save-excursion - (re-search-backward "<\\(\\(dt\\)\\|\\(dd\\)\\)>" + (re-search-backward "<\\(\\(dt\\)\\|\\(dd\\)\\)[ \t>]" (get 'YaTeX-inner-environment 'point) t)) (cond ((match-beginning 2) @@ -2510,12 +2578,12 @@ (setq e (point)) (goto-char b) (while (re-search-forward ;ちょといい加減なREGEXP - "\\([a-z][a-z0-9]*\\)?\\.\\([a-z][a-z0-9]*\\)\\>" e t) + "\\([a-z][-a-z0-9]*\\)?\\.\\([-a-z0-9][-a-z0-9]*\\)\\>" e t) (setq element (YaTeX-match-string 1) class (YaTeX-match-string 2)) ;;if starts with period (match-string 1 is nil), ;;this is global class - (setq element (or element "global")) + (setq element (downcase (or element "global"))) (if (setq a (assoc element alist)) (or (assoc class (cdr a)) (setcdr a (cons (list class) (cdr a)))) @@ -2568,7 +2636,7 @@ (setq yahtml-css-class-alist alist))))) (defun yahtml-css-get-element-completion-alist (element) - (let ((alist (cdr-safe (assoc element yahtml-css-class-alist))) + (let ((alist (cdr-safe (assoc (downcase element) yahtml-css-class-alist))) (global (cdr-safe (assoc "global" yahtml-css-class-alist)))) (and (or alist global) (append alist global)))) @@ -2615,9 +2683,12 @@ (defun yahtml-hilit-region-tag-itself (ptn) "Return list of start/end point of itself." (if (re-search-forward ptn nil t) - (let ((m0 (match-beginning 0))) - (skip-chars-forward "^>") - (cons m0 (1+ (point) ))))) + (let ((m0 (match-beginning 0)) (e0 (match-end 0))) + (skip-chars-forward "^<>") + (if (eq (char-after (point)) ?<) nil + (prog1 + (cons m0 (min (point-max) (1+ (point)))) + (goto-char e0)))))) ;(setq hilit-patterns-alist (delq (assq 'yahtml-mode hilit-patterns-alist) hilit-patterns-alist)) (and yahtml-use-hilit19 @@ -2666,6 +2737,11 @@ (delq 'yahtml-mode hilit-mode-enable-list)))) (yahtml-font-lock-set-default-keywords))) +(defun yahtml-font-lock-recenter (&optional arg) + (interactive "P") + (font-lock-mode -1) ;is stupid, but sure. + (font-lock-mode 1)) + ;; (defun yahtml-fontify-to-tagend (lim) ;; "*Fontify any tag including < and >. ;; This is invalid use of font-lock function. Therefore diff -r 0aaebd07dad0 -r f41b01fef5d6 yatex.el --- a/yatex.el Mon Dec 25 10:19:28 2000 +0000 +++ b/yatex.el Wed May 22 04:57:42 2002 +0000 @@ -1,8 +1,8 @@ ;;; -*- Emacs-Lisp -*- ;;; Yet Another tex-mode for emacs - //野鳥// -;;; yatex.el rev. 1.69 -;;; (c )1991-2000 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Mon Dec 25 18:57:10 2000 on firestorm +;;; yatex.el rev. 1.70 +;;; (c )1991-2002 by HIROSE Yuuji.[yuuji@yatex.org] +;;; Last modified Wed May 22 13:54:47 2002 on firestorm ;;; $Id$ ;;; The latest version of this software is always available at; ;;; http://www.yatex.org/ @@ -24,7 +24,7 @@ (require 'comment) (require 'yatexlib) -(defconst YaTeX-revision-number "1.69" +(defconst YaTeX-revision-number "1.70" "Revision number of running yatex.el") ;---------- Local variables ---------- @@ -218,7 +218,8 @@ "*Use font-lock to fontify buffer or not.") (defvar YaTeX-use-hilit19 (and (featurep 'hilit19) (fboundp 'x-color-values) - (fboundp 'hilit-translate)) + (fboundp 'hilit-translate) + (not YaTeX-use-font-lock)) "*Use hilit19 to highlight buffer or not.") ;;-- Math mode values -- @@ -245,6 +246,12 @@ "*Template TeX source file. This will be inserted to empty file.") (defvar YaTeX-addin-prefix "YaTeX:") + +(defvar yatex-mode-abbrev-table nil + "*Abbrev table in use in yatex-mode buffers.") +(define-abbrev-table 'yatex-mode-abbrev-table ()) + + ;------------ Completion table ------------ ; Set tex-section-like command possible completion (defvar section-table @@ -609,7 +616,7 @@ (setq buffer-file-coding-system (or (and (fboundp 'set-auto-coding) buffer-file-name (save-excursion - (set-auto-coding buffer-file-name 2000))) + (set-auto-coding buffer-file-name (buffer-size)))) YaTeX-coding-system))) ((featurep 'mule) (set-file-coding-system YaTeX-coding-system)) @@ -624,10 +631,7 @@ comment-start YaTeX-comment-prefix comment-end "" comment-start-skip "[^\\\\]%+[ \t]*" - ) - (if (boundp 'kill-buffer-hook) ;For Recent Emacs - (set (make-local-variable 'kill-buffer-hook) - (cons 'YaTeX-kill-buffer-hook kill-buffer-hook))) + local-abbrev-table yatex-mode-abbrev-table) (if (and YaTeX-use-font-lock (featurep 'font-lock)) (progn (YaTeX-font-lock-set-default-keywords) @@ -640,7 +644,7 @@ (set-syntax-table YaTeX-mode-syntax-table) (if YaTeX-dos (setq YaTeX-saved-screen-height (screen-height))) (YaTeX-read-user-completion-table) - (and (fboundp 'YaTeX-19-collect-macros) (YaTeX-19-collect-macros)) + (and (fboundp 'YaTeX-hilit-setup-alist) (YaTeX-hilit-setup-alist)) (makunbound 'inenv) (turn-on-auto-fill) ;1.63 (and (= 0 (buffer-size)) (file-exists-p YaTeX-template-file) @@ -1533,81 +1537,7 @@ (setq search-last-regexp string))) (t nil)))) -(defun YaTeX-goto-corresponding-environment (&optional allow-mismatch noerr) - "Go to corresponding begin/end enclosure. -Optional argument ALLOW-MISMATCH allows mismatch open/clese. Use this -for \left(, \right). -Optional third argument NOERR causes no error for unballanced environment." - (interactive) - (if (not (YaTeX-on-begin-end-p)) nil - (let ((p (match-end 0)) b0 b1 env (nest 0) regexp re-s (op (point)) - (m0 (match-beginning 0)) ;whole matching - (m1 (match-beginning 1)) ;environment in \begin{} - (m2 (match-beginning 2)) ;environment in \end{} - (m3 (match-beginning 3))) ;environment in \[ \] \( \) - ;(setq env (regexp-quote (buffer-substring p (match-beginning 0)))) - (if (cond - (m1 ;if begin{xxx} - (setq env - (if allow-mismatch YaTeX-struct-name-regexp - (regexp-quote (buffer-substring m1 (match-end 1))))) - ; (setq regexp (concat "\\(\\\\end{" env "}\\)\\|" - ; "\\(\\\\begin{" env "}\\)")) - (setq regexp - (concat - "\\(" - (YaTeX-replace-format-args - (regexp-quote YaTeX-struct-end) env "" "") - "\\)\\|\\(" - (YaTeX-replace-format-args - (regexp-quote YaTeX-struct-begin) env "" "") - "\\)")) - (setq re-s 're-search-forward)) - (m2 ;if end{xxx} - (setq env - (if allow-mismatch YaTeX-struct-name-regexp - (regexp-quote (buffer-substring m2 (match-end 2))))) - ; (setq regexp (concat "\\(\\\\begin{" env "}\\)\\|" - ; "\\(\\\\end{" env "}\\)")) - (setq regexp - (concat - "\\(" - (YaTeX-replace-format-args - (regexp-quote YaTeX-struct-begin) env "" "") - "\\)\\|\\(" - (YaTeX-replace-format-args - (regexp-quote YaTeX-struct-end) env "" "") - "\\)")) - (setq re-s 're-search-backward)) - (m3 ;math environment - (setq env (char-after (1+ m3)) - regexp (format "\\(%s%s\\)\\|\\(%s%s\\)" - YaTeX-ec-regexp - (regexp-quote - (cdr (assq env '((?( . ")") (?) . "(") - (?[ . "]") (?] . "["))))) - YaTeX-ec-regexp - (regexp-quote (char-to-string env))) - re-s (if (memq env '(?\( ?\[)) - 're-search-forward - 're-search-backward))) - (t (if noerr nil (error "Corresponding environment not found.")))) - (progn - (while (and (>= nest 0) (funcall re-s regexp nil t)) - (setq b0 (match-beginning 0) b1 (match-beginning 1)) - (if (or (equal b0 m0) - (YaTeX-literal-p b0)) - nil - (setq nest (if (equal b0 b1) - (1- nest) (1+ nest))))) - (if (< nest 0) - (goto-char (match-beginning 0)) ;found. - (goto-char op) - (funcall - (if noerr 'message 'error) - "Corresponding environment `%s' not found." env) - (sit-for 1) - nil)))))) +;;YaTeX-goto-corresponding-environment was moved to yatexlib (defun YaTeX-goto-corresponding-file (&optional other) "Visit or switch buffer of corresponding file, @@ -2533,9 +2463,13 @@ (while (re-search-forward "\\\\\\(\\(page\\)?ref\\|cite\\){" nil t) (if (< (point-end-of-line) (save-excursion (forward-char -1) (forward-list 1) (point))) - (progn (end-of-line) (insert YaTeX-comment-prefix)))) + (progn (end-of-line) + (if (save-excursion + (backward-word 1) + (looking-at "[^0-9A-z!-)]")) + (insert YaTeX-comment-prefix))))) (goto-char (point-min)) - (if (and NTT-jTeX (looking-at "[ \t]")) + (if (and NTT-jTeX (looking-at "[ \t]\\|^$")) (progn (goto-char (point-min)) (while (not (eobp)) @@ -2543,7 +2477,7 @@ (or (bolp) (save-excursion (backward-word 1) - (looking-at "\\sw+")) ;is not japanese string + (looking-at "[0-9A-z!-)]")) ;is not japanese string (progn (setq p (point)) (insert YaTeX-comment-prefix))) (forward-line 1)) (goto-char p) @@ -2775,7 +2709,7 @@ (substitute-all-key-definition 'fill-paragraph 'YaTeX-fill-paragraph YaTeX-mode-map) (substitute-all-key-definition - 'kill-buffer 'YaTeX-kill-buffer yahtml-mode-map) + 'kill-buffer 'YaTeX-kill-buffer YaTeX-mode-map) (run-hooks 'yatex-mode-load-hook) ;; `History' was moved to ChangeLog diff -r 0aaebd07dad0 -r f41b01fef5d6 yatex.new --- a/yatex.new Mon Dec 25 10:19:28 2000 +0000 +++ b/yatex.new Wed May 22 04:57:42 2002 +0000 @@ -1,6 +1,10 @@ What's new in YaTeX/yahtml 野鳥/yahtml - 各バージョンの変更点について +1.70 Emacs21でmake-frameがエラーになることがあるのを回避 + font-lock での Recenter が効かなくなるのを修正 + (他、細かい修正がほとんど) + 1.69 font-lock 対応(XEmacs, Emacs-20, Emacs-21 のみ)。 hilit19, font-lockを共存させている場合 YaTeX-use-hilit19 か、 YaTeX-use-font-lock どちらか一方を Non-nil にする。 diff -r 0aaebd07dad0 -r f41b01fef5d6 yatex19.el --- a/yatex19.el Mon Dec 25 10:19:28 2000 +0000 +++ b/yatex19.el Wed May 22 04:57:42 2002 +0000 @@ -1,14 +1,14 @@ ;;; -*- Emacs-Lisp -*- ;;; YaTeX facilities for Emacs 19 -;;; (c )1994-2000 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Mon Dec 25 19:16:04 2000 on firestorm +;;; (c )1994-2002 by HIROSE Yuuji.[yuuji@yatex.org] +;;; Last modified Wed May 22 13:55:20 2002 on firestorm ;;; $Id$ ;(require 'yatex) -(cond - (YaTeX-use-hilit19 (require 'hilit19)) - (YaTeX-use-font-lock (require 'font-lock))) +(and (boundp 'YaTeX-use-hilit19) + YaTeX-use-hilit19 + (require 'hilit19)) (defvar YaTeX-use-highlighting (or YaTeX-use-font-lock YaTeX-use-hilit19) "*Use highlighting buffer or not.") @@ -18,6 +18,15 @@ ((boundp 'frame-background-mode) frame-background-mode) ((fboundp 'get-frame-background-mode) (get-frame-background-mode (selected-frame))) + (if (face-background 'default) + (if (> (+ 32768 32768 32768) + (apply '+ + (funcall (if (fboundp 'color-rgb-components) + 'color-rgb-components + 'x-color-values) + (face-background 'default)))) + 'dark + 'light)) (t nil))) (defvar YaTeX-mode-menu-map (make-sparse-keymap "YaTeX")) @@ -319,7 +328,8 @@ "\\\\\\(title\\|author\\|date\\|thanks\\)\\>" define) ("\\\\document\\(style\\|class\\)\\(\\[.*\\]\\)?{" "}" decl) - ("\\\\\\(begin\\|end\\|nofiles\\|includeonly\\){" "}" decl) + + ("\\\\\\(begin\\|end\\|nofiles\\|includeonly\\|usepackage\\(\\[.*\\]\\)?\\){" "}" decl) ("\\\\\\(raggedright\\|makeindex\\|makeglossary\\|maketitle\\)\\b" 0 decl) ("\\\\\\(pagestyle\\|thispagestyle\\|pagenumbering\\){" "}" decl) ("\\\\\\(normalsize\\|small\\|footnotesize\\|scriptsize\\|tiny\\|large\\|Large\\|LARGE\\|huge\\|Huge\\)\\b" 0 decl) @@ -488,8 +498,9 @@ (cond ((eq YaTeX-background-mode 'light) (car table)) ((eq YaTeX-background-mode 'dark) (cdr table)) - (t nil))))) - sect single) + ;; Default case equals to 'light mode...is it OK? + (t (car table)))))) + sect single pattern-alist) (YaTeX-19-create-face ;;hilit-translate ;;sectioning (funcall get-face YaTeX-hilit-sectioning-face) 'macro (funcall get-face YaTeX-hilit-singlecmd-face)) @@ -508,53 +519,68 @@ single "\\|") "\\)\\b"))) - (setq hilit-patterns-alist ;Remove at first. - (delq (assq 'yatex-mode hilit-patterns-alist) hilit-patterns-alist) - hilit-patterns-alist - (cons - (cons 'yatex-mode - (append - (list nil) - YaTeX-sectioning-patterns-alist - YaTeX-hilit-pattern-adjustment-private - ;;YaTeX-hilit-pattern-adjustment-default - YaTeX-hilit-patterns-alist - (delq nil - (list - (if sect (list - 'YaTeX-19-region-section-type - sect - 'keyword)) - (if single (list single 0 'macro)))))) - hilit-patterns-alist)))))) + (cons 'yatex-mode + (append + (list nil) + YaTeX-sectioning-patterns-alist + YaTeX-hilit-pattern-adjustment-private + ;;YaTeX-hilit-pattern-adjustment-default + YaTeX-hilit-patterns-alist + (delq nil + (list + (if sect (list + 'YaTeX-19-region-section-type + sect + 'keyword)) + (if single (list single 0 'macro)))))))))) ;;(YaTeX-19-collect-macros) ;causes an error +(defun YaTeX-hilit-setup-alist () + (cond + ((boundp 'hilit-patterns-alist) + (setq hilit-patterns-alist + (delq (assq 'yatex-mode hilit-patterns-alist) hilit-patterns-alist)) + (if YaTeX-use-hilit19 + (setq hilit-patterns-alist + (cons (YaTeX-19-collect-macros) hilit-patterns-alist)))))) + (defun YaTeX-hilit-recenter (arg) "Collect current local macro and hilit-recenter." (interactive "P") - (YaTeX-19-collect-macros) + (YaTeX-hilit-setup-alist) + (if (fboundp 'font-lock-mode) (font-lock-mode -1)) (hilit-recenter arg)) -(defvar YaTeX-19-recenter-function - (cond - (YaTeX-use-hilit19 (cons 'YaTeX-hilit-recenter 'hilit-recenter)) - (YaTeX-use-font-lock (cons 'YaTeX-font-lock-recenter 'recenter)) - (t nil))) -(if YaTeX-19-recenter-function - (let ((k (where-is-internal (cdr YaTeX-19-recenter-function)))) - (while k - (define-key YaTeX-mode-map (car k) (car YaTeX-19-recenter-function)) - (setq k (cdr k))))) +(let ((k (append (where-is-internal 'hilit-recenter) + (where-is-internal 'recenter)))) + (while k + (define-key YaTeX-mode-map (car k) 'YaTeX-19-recenter) + (setq k (cdr k)))) + +(defun YaTeX-19-recenter (&optional arg) + (interactive "P") + (if YaTeX-use-hilit19 + (YaTeX-hilit-recenter arg) + (YaTeX-font-lock-recenter arg))) (defun YaTeX-font-lock-recenter (&optional arg) (interactive "P") + (cond + ((and (boundp 'hilit-patterns-alist) + (assq 'yatex-mode hilit-patterns-alist)) + (if (fboundp 'hilit-unhighlight-region) + (hilit-unhighlight-region (point-min) (point-max))) + (setq hilit-patterns-alist ;ensure to remove + (delq (assq 'yatex-mode hilit-patterns-alist) + hilit-patterns-alist)))) (setq YaTeX-font-lock-keywords (YaTeX-convert-pattern-hilit2fontlock - (cdr (assq 'yatex-mode (YaTeX-19-collect-macros)))) + (cdr (YaTeX-19-collect-macros))) font-lock-keywords nil) ;(save-excursion ; (font-lock-fontify-region (window-start) (window-end))) (font-lock-mode -1) ;is stupid, but sure. - (font-lock-mode 1)) + (font-lock-mode 1) + (recenter arg)) (defvar YaTeX-font-lock-keywords nil "Pattern-face alist of yahtml-mode for font-lock") diff -r 0aaebd07dad0 -r f41b01fef5d6 yatexadd.el --- a/yatexadd.el Mon Dec 25 10:19:28 2000 +0000 +++ b/yatexadd.el Wed May 22 04:57:42 2002 +0000 @@ -2,7 +2,7 @@ ;;; YaTeX add-in functions. ;;; yatexadd.el rev.14 ;;; (c )1991-2000 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Mon Dec 25 19:17:09 2000 on firestorm +;;; Last modified Sat Sep 29 23:17:06 2001 on duke ;;; $Id$ ;;; @@ -90,9 +90,17 @@ (defun YaTeX:table () "YaTeX add-in function for table environment." - (setq YaTeX-env-name "tabular" - YaTeX-section-name "caption") - (YaTeX:read-position "htbp")) + (cond + ((eq major-mode 'yatex-mode) + (setq YaTeX-env-name "tabular" + YaTeX-section-name "caption") + (YaTeX:read-position "htbp")) + ((eq major-mode 'texinfo-mode) + (concat " " + (completing-read + "Highlights with: " + '(("@samp")("@kbd")("@code")("@asis")("@file")("@var")) + nil nil "@"))))) (fset 'YaTeX:figure 'YaTeX:table) (fset 'YaTeX:figure* 'YaTeX:table) @@ -273,8 +281,12 @@ (concat "[" label "]")))) (defun YaTeX:item () - (YaTeX-indent-line) - (setq YaTeX-section-name "label") + (cond + ((eq major-mode 'yatex-mode) + (YaTeX-indent-line) + (setq YaTeX-section-name "label")) + ((eq major-mode 'texinfo-mode) + (setq YaTeX-section-name "dots"))) ;?? " ") (fset 'YaTeX:item\[\] 'YaTeX:item) (fset 'YaTeX:subitem 'YaTeX:item) @@ -464,8 +476,11 @@ (defun YaTeX::ref-getset-label (buffer point) "Get label string in the BUFFER near the POINT. Make \\label{xx} if no label." - (let (boundary inspoint cc newlabel (labelholder "label") mathp env) - ;(set-buffer buffer) + ;;Here, we rewrite the LaTeX source. Therefore we should be careful + ;;to decide the location suitable for \label. Do straightforward! + (let (boundary inspoint cc newlabel (labelholder "label") mathp env + (r-escape (regexp-quote YaTeX-comment-prefix))) + ;;(set-buffer buffer) (switch-to-buffer buffer) (save-excursion (goto-char point) @@ -476,29 +491,72 @@ (skip-chars-forward "^{") (forward-list 1) (skip-chars-forward " \t\n") - (setq boundary "[^\\]")) + ;(setq boundary "[^\\]") + (setq boundary + (save-excursion + (if (YaTeX-re-search-active-forward "[^\\]" r-escape nil 1) + (match-beginning 0) + (1- (point)))))) ((looking-at "item\\s ") (setq cc (+ cc 6)) - (setq boundary (concat YaTeX-ec-regexp "\\(item\\|begin\\|end\\)\\b"))) + ;(setq boundary (concat YaTeX-ec-regexp "\\(item\\|begin\\|end\\)\\b")) + (setq boundary + (save-excursion + (if (YaTeX-re-search-active-forward + (concat YaTeX-ec-regexp "\\(item\\|begin\\|end\\)\\b") + r-escape nil 1) + (match-beginning 0) + (1- (point)))))) ((looking-at "bibitem") - (setq labelholder "bibitem")) ; label holder is bibitem itself + (setq labelholder "bibitem") ; label holder is bibitem itself + (setq boundary + (save-excursion + (if (YaTeX-re-search-active-forward + (concat YaTeX-ec-regexp "\\(bibitem\\|end\\)\\b") + r-escape nil 1) + (match-beginning 0) + (1- (point)))))) ((string-match YaTeX::ref-mathenv-regexp (setq env (or (YaTeX-inner-environment t) "document"))) (setq mathp t) - (setq boundary (concat YaTeX-ec-regexp "\\(\\\\\\|end{" env "}\\)"))) + ;;(setq boundary (concat YaTeX-ec-regexp "\\(\\\\\\|end{" env "}\\)")) + (setq boundary + (save-excursion + (if (YaTeX-re-search-active-forward + (concat YaTeX-ec-regexp "\\(\\\\\\|end{" env "}\\)") + r-escape nil 1) + (match-beginning 0) + (1- (point)))))) + ((looking-at "footnote\\s *{") + (skip-chars-forward "^{") ;move onto `{' + (setq boundary + (save-excursion + (condition-case err + (forward-list 1) + (error (error "\\\\footnote at point %s's brace not closed" + (point)))) + (1- (point))))) ((looking-at "caption\\|\\(begin\\)") (skip-chars-forward "^{") (if (match-beginning 1) (forward-list 1)) - (setq boundary (concat YaTeX-ec-regexp "\\(begin\\|end\\)\\b"))) + ;;(setq boundary (concat YaTeX-ec-regexp "\\(begin\\|end\\)\\b")) + (setq boundary + (save-excursion + (if (YaTeX-re-search-active-forward + (concat YaTeX-ec-regexp "\\(begin\\|end\\)\\b") + r-escape nil 1) + (match-beginning 0) + (1- (point)))))) (t )) (if (save-excursion (skip-chars-forward " \t") (looking-at "%")) (forward-line 1)) (if (and (save-excursion (YaTeX-re-search-active-forward - (concat "\\(" labelholder "\\)\\|\\(" boundary "\\)") + ;;(concat "\\(" labelholder "\\)\\|\\(" boundary "\\)") + labelholder (regexp-quote YaTeX-comment-prefix) - nil 1)) - (match-beginning 1)) + boundary 1)) + (match-beginning 0)) ;; if \label{hoge} found, return it (buffer-substring (progn @@ -507,7 +565,8 @@ (progn (forward-sexp 1) (1- (point)))) ;;else make a label - (goto-char (match-beginning 0)) + ;(goto-char (match-beginning 0)) + (goto-char boundary) (skip-chars-backward " \t\n") (save-excursion (setq newlabel (YaTeX::ref-generate-label))) (delete-region (point) (progn (skip-chars-backward " \t") (point))) @@ -555,7 +614,7 @@ (car s)))) YaTeX-sectioning-level)) "\\|") - "\\|caption\\){" + "\\|caption\\|footnote\\){" "\\|\\(begin{\\(" mathenvs "\\|" enums "\\)\\)\\)"))) (regexp (concat "\\(" counter "\\)\\|\\(" YaTeX::ref-labeling-regexp "\\)")) @@ -603,6 +662,7 @@ ;(goto-char (match-beginning 0)) (setq e0 (match-end 0)) (cond + ((YaTeX-literal-p) nil) ((YaTeX-match-string 1) ;;if standard counter commands found (setq cmd (YaTeX-match-string 2)) @@ -1246,6 +1306,27 @@ (format "{%s}[%s]" vmag hmag) (format "{%s}" vmag)))) +(defun YaTeX:includegraphics () + "Add-in for \\includegraphics's option" + (let (width height (scale "") angle str) + (setq width (read-string "Width: ") + height (read-string "Height: ")) + (or (string< width "") (string< "" height) + (setq scale (read-string "Scale: "))) + (setq angle (read-string "Angle(0-359): ")) + (setq str + (mapconcat + 'concat + (delq nil + (mapcar '(lambda (s) + (and (stringp (symbol-value s)) + (string< "" (symbol-value s)) + (format "%s=%s" s (symbol-value s)))) + '(width height scale angle))) + ",")) + (if (string= "" str) "" + (concat "[" str "]")))) + (defun YaTeX::includegraphics (argp) "Add-in for \\includegraphics" (cond diff -r 0aaebd07dad0 -r f41b01fef5d6 yatexenv.el --- a/yatexenv.el Mon Dec 25 10:19:28 2000 +0000 +++ b/yatexenv.el Wed May 22 04:57:42 2002 +0000 @@ -2,7 +2,7 @@ ;;; YaTeX environment-specific functions. ;;; yatexenv.el ;;; (c ) 1994-1997 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Thu Aug 26 18:14:51 1999 on firestorm +;;; Last modified Thu Jan 18 15:21:26 2001 on buell ;;; $Id$ ;;; @@ -230,7 +230,7 @@ (looking-at "\\\\right\\b")) (progn (YaTeX-reindent (save-excursion (YaTeX-goto-corresponding-leftright) - (1- (current-column))))) + (- (current-column) 0)))) (save-excursion (forward-line -1) (while (and (not (bobp)) (YaTeX-on-comment-p)) @@ -285,7 +285,7 @@ is on another line." (let ((YaTeX-struct-begin "\\left%1") (YaTeX-struct-end "\\right%1") - (YaTeX-struct-name-regexp "[][(){}.|]")) + (YaTeX-struct-name-regexp "[][(){}\\.|]")) (YaTeX-goto-corresponding-environment t))) ;;; diff -r 0aaebd07dad0 -r f41b01fef5d6 yatexlib.el --- a/yatexlib.el Mon Dec 25 10:19:28 2000 +0000 +++ b/yatexlib.el Wed May 22 04:57:42 2002 +0000 @@ -1,8 +1,8 @@ ;;; -*- Emacs-Lisp -*- ;;; YaTeX and yahtml common libraries, general functions and definitions ;;; yatexlib.el -;;; (c )1994-2000 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Mon Dec 25 18:51:11 2000 on firestorm +;;; (c )1994-2002 by HIROSE Yuuji.[yuuji@yatex.org] +;;; Last modified Wed May 22 13:55:31 2002 on firestorm ;;; $Id$ ;; General variables @@ -755,6 +755,28 @@ (setq str nil))) (nreverse list))) +;;;###autoload +(defun YaTeX-delete1 (elt list) + "Delete" + (let (e) + (while (setq e (YaTeX-member elt list)) + (setq list (delq (car e) list)))) + list) +(if (fboundp 'delete) + (fset 'YaTeX-delete (symbol-function 'delete)) + (fset 'YaTeX-delete (symbol-function 'YaTeX-delete1))) + +(defun YaTeX-member1 (elt list) + (catch 'found + (while list + (if (equal elt (car list)) + (throw 'found list)) + (setq list (cdr list))))) + +(if (and (fboundp 'member) (subrp (symbol-function 'member))) + (fset 'YaTeX-member (symbol-function 'member)) + (fset 'YaTeX-member (symbol-function 'YaTeX-member1))) + ;;; ;; Interface function for windows.el ;;; @@ -783,6 +805,8 @@ recent sectioning command. Matching point is stored to property 'point of 'YaTeX-inner-environment, which can be referred by (get 'YaTeX-inner-environment 'point)." + (put 'YaTeX-inner-environment 'point (point-min)) + (put 'YaTeX-inner-environment 'indent 0) (let*((nest 0) (beg (YaTeX-replace-format-args (regexp-quote YaTeX-struct-begin) @@ -807,7 +831,8 @@ (save-excursion (if htmlp ;;(re-search-backward YaTeX-sectioning-regexp nil 1) - (goto-char (point-min)) ;Is this enough? 97/6/26 + ;;(goto-char (point-min)) ;Is this enough? 97/6/26 + (re-search-backward yahtml-indentation-boundary nil 1) (YaTeX-re-search-active-backward (concat YaTeX-ec-regexp "\\(" YaTeX-sectioning-regexp "\\)\\*?{") @@ -832,6 +857,82 @@ (progn (skip-chars-forward open) (1+ (point))) (progn (skip-chars-forward close) (point))))))) +(defun YaTeX-goto-corresponding-environment (&optional allow-mismatch noerr) + "Go to corresponding begin/end enclosure. +Optional argument ALLOW-MISMATCH allows mismatch open/clese. Use this +for \left(, \right). +Optional third argument NOERR causes no error for unballanced environment." + (interactive) + (if (not (YaTeX-on-begin-end-p)) nil + (let ((p (match-end 0)) b0 b1 env (nest 0) regexp re-s (op (point)) + (m0 (match-beginning 0)) ;whole matching + (m1 (match-beginning 1)) ;environment in \begin{} + (m2 (match-beginning 2)) ;environment in \end{} + (m3 (match-beginning 3))) ;environment in \[ \] \( \) + ;(setq env (regexp-quote (buffer-substring p (match-beginning 0)))) + (if (cond + (m1 ;if begin{xxx} + (setq env + (if allow-mismatch YaTeX-struct-name-regexp + (regexp-quote (buffer-substring m1 (match-end 1))))) + ; (setq regexp (concat "\\(\\\\end{" env "}\\)\\|" + ; "\\(\\\\begin{" env "}\\)")) + (setq regexp + (concat + "\\(" + (YaTeX-replace-format-args + (regexp-quote YaTeX-struct-end) env "" "") + "\\)\\|\\(" + (YaTeX-replace-format-args + (regexp-quote YaTeX-struct-begin) env "" "") + "\\)")) + (setq re-s 're-search-forward)) + (m2 ;if end{xxx} + (setq env + (if allow-mismatch YaTeX-struct-name-regexp + (regexp-quote (buffer-substring m2 (match-end 2))))) + ; (setq regexp (concat "\\(\\\\begin{" env "}\\)\\|" + ; "\\(\\\\end{" env "}\\)")) + (setq regexp + (concat + "\\(" + (YaTeX-replace-format-args + (regexp-quote YaTeX-struct-begin) env "" "") + "\\)\\|\\(" + (YaTeX-replace-format-args + (regexp-quote YaTeX-struct-end) env "" "") + "\\)")) + (setq re-s 're-search-backward)) + (m3 ;math environment + (setq env (char-after (1+ m3)) + regexp (format "\\(%s%s\\)\\|\\(%s%s\\)" + YaTeX-ec-regexp + (regexp-quote + (cdr (assq env '((?( . ")") (?) . "(") + (?[ . "]") (?] . "["))))) + YaTeX-ec-regexp + (regexp-quote (char-to-string env))) + re-s (if (memq env '(?\( ?\[)) + 're-search-forward + 're-search-backward))) + (t (if noerr nil (error "Corresponding environment not found.")))) + (progn + (while (and (>= nest 0) (funcall re-s regexp nil t)) + (setq b0 (match-beginning 0) b1 (match-beginning 1)) + (if (or (equal b0 m0) + (YaTeX-literal-p b0)) + nil + (setq nest (if (equal b0 b1) + (1- nest) (1+ nest))))) + (if (< nest 0) + (goto-char (match-beginning 0)) ;found. + (goto-char op) + (funcall + (if noerr 'message 'error) + "Corresponding environment `%s' not found." env) + (sit-for 1) + nil)))))) + (defun YaTeX-end-environment () "Close opening environment" (interactive) @@ -994,7 +1095,8 @@ (mapping '((bold . YaTeX-font-lock-bold-face) (italic . YaTeX-font-lock-italic-face) - (define . font-lock-function-name-face) + (defun . font-lock-function-name-face) + (define . font-lock-variable-name-face) (keyword . font-lock-keyword-face) (decl . YaTeX-font-lock-declaration-face) (label . YaTeX-font-lock-label-face) @@ -1014,7 +1116,7 @@ (if (numberp (car (cdr i))) (list (car i) ;regexp (car (cdr i)) ;matching group number - newface t) ;'keep) ;keep is hilit19 taste + newface nil) ;'keep) ;keep is hilit19 taste (list (concat (car i) ;original regexp and.. @@ -1023,7 +1125,7 @@ ;;"]+" ;for shortest match ".*" (car (cdr i))) - 0 (list 'quote newface) t)) ;;'keep)) + 0 (list 'quote newface) nil)) ;;'keep)) flpa))) ((and (symbolp (car i)) (fboundp (car i))) (setq flpa @@ -1034,7 +1136,7 @@ 'lambda (list 'dummy) '(goto-char (match-beginning 0)) '(remove-text-properties - (point) (1+ (point)) + (point) (min (point-max) (1+ (point))) '(face nil font-lock-multiline nil)) (list 'let (list '(e (match-end 0)) @@ -1058,8 +1160,12 @@ (nreverse flpa) flpa))) +(if (and (boundp 'YaTeX-use-font-lock) + YaTeX-use-font-lock) + (require 'font-lock)) + (cond - ((featurep 'font-lock) + ((and (featurep 'font-lock) (fboundp 'defface)) ;; In each defface, '(class static-color) is for Emacs-21 -nw ;; '(class tty) is for XEmacs-21 -nw (defface YaTeX-font-lock-label-face @@ -1121,14 +1227,26 @@ ;; Make sure the 'YaTeX-font-lock-{italic,bold}-face is bound with ;; italic/bold fontsets (if (and (fboundp 'fontset-list) YaTeX-use-italic-bold) - (let ((flist (fontset-list)) fnt italic bold) + (let ((flist (fontset-list)) fnt italic bold + (df (or (and (fboundp 'face-font-name) (face-font-name 'default)) + (face-font 'default) + (face-font 'italic) + (face-font 'bold) + "giveup!")) + sz medium-i bold-r) + (string-match + "^-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-\\(\\([0-9]+\\)\\)" df) + (setq sz (or (match-string 1 df) "16")) + (setq medium-i (format "-medium-i-[^-]+--%s" sz) + bold-r (format "-bold-r-[^-]+--%s" sz)) (while flist (setq fnt (car flist)) (condition-case err (cond - ((and (string-match "-medium-i-" fnt) (null italic)) + ((and (string-match medium-i fnt) + (null italic)) (set-face-font 'YaTeX-font-lock-italic-face (setq italic fnt))) - ((and (string-match "-bold-r-" fnt) (null bold)) + ((and (string-match bold-r fnt) (null bold)) (set-face-font 'YaTeX-font-lock-bold-face (setq bold fnt)))) (error nil)) (setq flist (cdr flist))))) diff -r 0aaebd07dad0 -r f41b01fef5d6 yatexprc.el --- a/yatexprc.el Mon Dec 25 10:19:28 2000 +0000 +++ b/yatexprc.el Wed May 22 04:57:42 2002 +0000 @@ -2,7 +2,7 @@ ;;; YaTeX process handler. ;;; yatexprc.el ;;; (c )1993-2000 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Mon Dec 25 19:18:19 2000 on firestorm +;;; Last modified Sun Dec 31 21:57:44 2000 on firestorm ;;; $Id$ ;(require 'yatex) @@ -221,8 +221,10 @@ preamble (if (re-search-forward "^[ ]*\\\\begin.*{document}" nil t) (buffer-substring (point-min) (match-end 0)) - (concat "\\documentstyle{" YaTeX-default-document-style "}\n" - "\\begin{document}"))) + (concat + (if YaTeX-use-LaTeX2e "\\documentclass{" "\\documentstyle{") + YaTeX-default-document-style "}\n" + "\\begin{document}"))) (goto-char opoint) ;;(set-buffer buffer) ;for clarity (let ((hilit-auto-highlight nil))