yatex
changeset 28:0f8b77d22c8a
Add docs on intelligent-newline.
author | yuuji |
---|---|
date | Mon, 11 Jul 1994 14:56:13 +0000 |
parents | c2ab8c69b118 |
children | 23737513bf5f |
files | docs/yatexe.tex docs/yatexj.tex |
diffstat | 2 files changed, 111 insertions(+), 16 deletions(-) [+] |
line diff
1.1 --- a/docs/yatexe.tex Mon Jul 11 14:51:41 1994 +0000 1.2 +++ b/docs/yatexe.tex Mon Jul 11 14:56:13 1994 +0000 1.3 @@ -37,6 +37,7 @@ 1.4 * Local dictionaries:: 1.5 * Updation of @code{\includeonly}:: 1.6 * What column?:: 1.7 +* Intelligent newline:: 1.8 * Online help:: 1.9 * Cooperation with other packages:: 1.10 * Customizations:: 1.11 @@ -232,7 +233,7 @@ 1.12 * Editing %# notation:: 1.13 @end menu 1.14 1.15 -@node Changing typesetter, Static region for typesetting, %# notation, %# notation 1.16 +@node Changing typesetter, Static region for typesetting, , %# notation 1.17 @comment node-name, next, previous, up 1.18 @section To change the `latex' command or to split a source text. 1.19 @cindex typesetter 1.20 @@ -409,7 +410,7 @@ 1.21 * Greek letters completion:: 1.22 @end menu 1.23 1.24 -@node Begin-type completion, Section-type completion, Completion, Completion 1.25 +@node Begin-type completion, Section-type completion, , Completion 1.26 @comment node-name, next, previous, up 1.27 @section Begin-type completion 1.28 @cindex begin-type completion 1.29 @@ -621,7 +622,7 @@ 1.30 * view-sectioning:: 1.31 @end menu 1.32 1.33 -@node view-sectioning, , Section-type completion, Section-type completion 1.34 +@node view-sectioning, , , Section-type completion 1.35 @comment node-name, next, previous, up 1.36 @subsection view-sectioning 1.37 @cindex view sectioning 1.38 @@ -1078,7 +1079,7 @@ 1.39 by the current file, and type @kbd{%} to comment out the 1.40 @code{\includeonly} line. 1.41 1.42 -@node What column?, Online help, Updation of @code{\includeonly}, Top 1.43 +@node What column?, Intelligent newline, Updation of @code{\includeonly}, Top 1.44 @comment node-name, next, previous, up 1.45 @chapter What column? 1.46 @cindex what column 1.47 @@ -1116,7 +1117,56 @@ 1.48 virtual column headers by putting them in the first line and 1.49 commenting that line with @code{%}. 1.50 1.51 -@node Online help, Cooperation with other packages, What column?, Top 1.52 +@node Intelligent newline, Online help, What column?, Top 1.53 +@comment node-name, next, previous, up 1.54 +@chapter Intelligent newline 1.55 +@cindex Intelligent newline 1.56 +@cindex ESC RET 1.57 +@cindex M-C-m 1.58 + 1.59 + In tabular[*], array, itemize, enumerate or tabbing environment, 1.60 + 1.61 +@table @kbd 1.62 +@item ESC RET 1.63 + @dots{} Intelligent newline 1.64 +@end table 1.65 + 1.66 +@noindent 1.67 +inserts the contents corresponding to the current environment in the next 1.68 +line. In @code{tabular} environment, for example, @kbd{ESC RET} inserts 1.69 +the certain number of @code{&} and trailing @code{\\}, and @code{\hline} 1.70 +if other @code{\hline} is found in backward. Here are the list of 1.71 +contents v.s. environments. 1.72 + 1.73 +@itemize 1.74 +@item @code{tabular}, @code{tabular*}, @code{array} 1.75 + 1.76 + Corresponding number of @code{&} and @code{\\}. 1.77 + And @code{\hline} if needed. 1.78 + 1.79 +@item @code{tabbing} 1.80 + 1.81 + The same number of @code{\>} as @code{\=} in the first line. 1.82 + 1.83 +@item @code{itemize}, @code{enumerate}, @code{description}, @code{list} 1.84 + 1.85 + @code{\item} or @code{item[]}. 1.86 +@end itemize 1.87 + 1.88 + Note that since this function works seeing the contents of the first 1.89 +line, please call this after the second line if possible. 1.90 + 1.91 + If you want to apply these trick to other environments, @code{foo} 1.92 +environment for example, define the function named 1.93 +@code{YaTeX-intelligent-newline-foo} to insert corresponding contents. 1.94 +That function will be called at the beginning of the next line after the 1.95 +newline is inserted to the current line. Since the function 1.96 +@code{YaTeX-indent-line} is designed to indent the current line properly, 1.97 +calling this function before your code to insert certain contents must be 1.98 +useful. See the definition of the function 1.99 +@code{YaTeX-intelligent-newline-itemize} as an example. 1.100 + 1.101 +@node Online help, Cooperation with other packages, Intelligent newline, Top 1.102 @comment node-name, next, previous, up 1.103 @chapter Online help 1.104 @cindex online help 1.105 @@ -1203,7 +1253,7 @@ 1.106 * Add-in functions:: 1.107 @end menu 1.108 1.109 -@node Lisp variables, Add-in functions, Customizations, Customizations 1.110 +@node Lisp variables, Add-in functions, , Customizations 1.111 @comment node-name, next, previous, up 1.112 @section Lisp variables 1.113 @cindex customizable variables 1.114 @@ -1229,7 +1279,7 @@ 1.115 * Hook file:: 1.116 @end menu 1.117 1.118 -@node All customizable variables, Sample definitions, Lisp variables, Lisp variables 1.119 +@node All customizable variables, Sample definitions, , Lisp variables 1.120 @comment node-name, next, previous, up 1.121 @subsection All customizable variables 1.122 @cindex all customizable variables
2.1 --- a/docs/yatexj.tex Mon Jul 11 14:51:41 1994 +0000 2.2 +++ b/docs/yatexj.tex Mon Jul 11 14:56:13 1994 +0000 2.3 @@ -1,5 +1,4 @@ 2.4 \input texinfo @c -*- texinfo -*- 2.5 -%#!bigjtex 2.6 @setfilename yatexj 2.7 @settitle Yet Another tex-mode for Emacs 2.8 2.9 @@ -34,6 +33,7 @@ 2.10 * Local dictionary - ローカル辞書(神経質な人へ):: 2.11 * Includeonly - 勝手にincludeonly:: 2.12 * Where am I? - 今はどこ?:: 2.13 +* Intelligent newline - おまかせ改行:: 2.14 * Online help - オンラインヘルプ:: 2.15 * Cooperation with other packages - 他パッケージとの連携:: 2.16 * Customizations - カスタマイズ:: 2.17 @@ -151,7 +151,7 @@ 2.18 * Print out - プリントアウト用コマンドの起動:: 2.19 @end menu 2.20 2.21 -@node Calling typesetter - タイプセッタ起動, Print out - プリントアウト用コマンドの起動, Invocation - 外部コマンドの起動, Invocation - 外部コマンドの起動 2.22 +@node Calling typesetter - タイプセッタ起動, Print out - プリントアウト用コマンドの起動, , Invocation - 外部コマンドの起動 2.23 @comment node-name, next, previous, up 2.24 @section タイプセッタ起動 2.25 @cindex タイプセッタ起動 2.26 @@ -219,7 +219,7 @@ 2.27 * Editing %# notation - %#記法の編集:: 2.28 @end menu 2.29 2.30 -@node Changing typesetter - タイプセット用コマンドの変更, Splitting input files - 入力ファイル分割, %#記法, %#記法 2.31 +@node Changing typesetter - タイプセット用コマンドの変更, Splitting input files - 入力ファイル分割, , %#記法 2.32 @comment node-name, next, previous, up 2.33 @section タイプセット用コマンド変更 2.34 2.35 @@ -426,7 +426,7 @@ 2.36 * Greek letter completion - ギリシャ文字補完:: 2.37 @end menu 2.38 2.39 -@node begin型補完, section型補完, Completion - 補完入力, Completion - 補完入力 2.40 +@node begin型補完, section型補完, , Completion - 補完入力 2.41 @comment node-name, next, previous, up 2.42 @section begin型補完 2.43 @cindex begin型補完[beginがたほかん] 2.44 @@ -604,7 +604,7 @@ 2.45 * view-sectioning - セクション区切りのアウトライン表示:: 2.46 @end menu 2.47 2.48 -@node 2個以上の引数をとる section型コマンド, Input argument without copletion - 引数入力時に補完しない, section型補完, section型補完 2.49 +@node 2個以上の引数をとる section型コマンド, Input argument without copletion - 引数入力時に補完しない, , section型補完 2.50 @comment node-name, next, previous, up 2.51 @subsection 2個以上の引数をとる section型コマンド 2.52 @cindex 引数[ひきすう] 2.53 @@ -1177,7 +1177,7 @@ 2.54 @code{\includeonly} の行をコメントアウトして無効化したい時には、@kbd{%}を 2.55 それぞれ押して下さい。 2.56 2.57 -@node Where am I? - 今はどこ?, Online help - オンラインヘルプ, Includeonly - 勝手にincludeonly, Top 2.58 +@node Where am I? - 今はどこ?, Intelligent newline - おまかせ改行, Includeonly - 勝手にincludeonly, Top 2.59 @comment node-name, next, previous, up 2.60 @chapter 今はどこ? 2.61 @cindex 今はどこ?[いまはどこ] 2.62 @@ -1213,7 +1213,52 @@ 2.63 す。もし項目名として別のものを与えたい場合は、行頭を@code{%}にしてダミーの 2.64 項目並びを作っておくと良いでしょう。 2.65 2.66 -@node Online help - オンラインヘルプ, Cooperation with other packages - 他パッケージとの連携, Where am I? - 今はどこ?, Top 2.67 +@node Intelligent newline - おまかせ改行, Online help - オンラインヘルプ, Where am I? - 今はどこ?, Top 2.68 +@comment node-name, next, previous, up 2.69 +@chapter おまかせ改行 2.70 +@cindex おまかせ改行[おまかせかいぎょう] 2.71 +@cindex &入力[&にゅうりょく] 2.72 +@cindex prefix & 2.73 + 2.74 + tabular[*], array, itemize, enumerate, tabbing 環境で 2.75 + 2.76 +@table @kbd 2.77 +@item ESC RET 2.78 + @dots{} おまかせ改行 2.79 +@end table 2.80 + 2.81 +@noindent 2.82 +を押すと、その環境に応じた行エントリを次の行に挿入します。例えば、tabular 2.83 +環境では、その環境のカラム数に対応した個数の @code{&} にくわえ、行末の 2.84 +@code{\\} を入れます。この時それ以前に @code{\hline} があればそれも付け加 2.85 +えます。環境とそれに応じて自動入力するものの対応は以下のようになります。 2.86 + 2.87 +@itemize 2.88 +@item @code{tabular}, @code{tabular*}, @code{array} 2.89 + 2.90 + カラム数-1 だけの @code{&} と @code{\\}。必要に応じて @code{\hline} 2.91 + 2.92 +@item @code{tabbing} 2.93 + 2.94 + 一行目で定義している @code{\=} と同じ個数の @code{\>}。 2.95 + 2.96 +@item @code{itemize}, @code{enumerate}, @code{description}, @code{list} 2.97 + 2.98 + @code{\item} または @code{item[]} 2.99 +@end itemize 2.100 + 2.101 + tabular 環境の例のように、本機能は各環境の一行目の内容を参考にして動作す 2.102 +るので、なるべく二行目以降で呼び出すようにしてください。 2.103 + 2.104 + もし、その他の環境、例えば @code{foo}、に対して@code{おまかせ改行}を動作 2.105 +させたい時は、@code{YaTeX-intelligent-newline-foo} という名前の関数を定義 2.106 +します。定義した関数は、現在の行に改行を挿入した直後の行頭の位置で呼ばれま 2.107 +す。関数 @code{YaTeX-indent-line} を呼ぶと現在の環境のネストに応じた深さに 2.108 +インデントされるので、これを呼んでから何かを挿入するようなコードを書くとよ 2.109 +いでしょう。関数 @code{YaTeX-intelligent-newline-itemize} の定義などを参考 2.110 +にしてください。 2.111 + 2.112 +@node Online help - オンラインヘルプ, Cooperation with other packages - 他パッケージとの連携, Intelligent newline - おまかせ改行, Top 2.113 @comment node-name, next, previous, up 2.114 @chapter オンラインヘルプ 2.115 @cindex オンラインヘルプ[おんらいんへるぷ] 2.116 @@ -1296,7 +1341,7 @@ 2.117 * Add-in functions - 付加関数(アドイン関数):: 2.118 @end menu 2.119 2.120 -@node Lisp variables - lisp 変数, Add-in functions - 付加関数(アドイン関数), Customizations - カスタマイズ, Customizations - カスタマイズ 2.121 +@node Lisp variables - lisp 変数, Add-in functions - 付加関数(アドイン関数), , Customizations - カスタマイズ 2.122 @comment node-name, next, previous, up 2.123 @section lisp 変数 2.124 @cindex prefixキー変更[prefixきーへんこう] 2.125 @@ -1317,7 +1362,7 @@ 2.126 * Hook file - hook用ファイル:: 2.127 @end menu 2.128 2.129 -@node All customizable variables - カスタマイズ変数一覧, Sample definitions - カスタマイズ変数設定例, Lisp variables - lisp 変数, Lisp variables - lisp 変数 2.130 +@node All customizable variables - カスタマイズ変数一覧, Sample definitions - カスタマイズ変数設定例, , Lisp variables - lisp 変数 2.131 @comment node-name, next, previous, up 2.132 @subsection カスタマイズ変数一覧 2.133 @cindex カスタマイズ変数一覧[かすたまいずへんすういちらん]