Mercurial > hgrepos > hgweb.cgi > yatex
annotate docs/yatexj.tex @ 269:032d4c4bf7ac dev
Fix escape chars. Thanks to hiroohongo.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 15 Apr 2012 22:57:17 +0900 |
parents | a0fa76e6f461 |
children | d467c0fb6083 |
rev | line source |
---|---|
73 | 1 \def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 |
2 \input texinfo | |
3 @setfilename yatexj | |
4 @settitle Yet Another tex-mode for Emacs | |
5 | |
6 @iftex | |
7 @c @syncodeindex fn cp | |
8 @c いつも忘れるのでここに書いとくか。 | |
9 @c C-l C-c n でノード入れ | |
10 @c ノードいじったら C-l C-u C-n 全部のノード更新 C-l C-u C-e | |
11 @c メニュー増やしたら C-l C-u C-m 全部のメニュー更新 C-l C-u C-a | |
12 @c フォーマットするときは C-l C-e C-b | |
269
032d4c4bf7ac
Fix escape chars. Thanks to hiroohongo.
HIROSE Yuuji <yuuji@gentei.org>
parents:
268
diff
changeset
|
13 @c Last modified Sun Apr 15 22:53:14 2012 on firestorm |
73 | 14 @syncodeindex vr cp |
15 @end iftex | |
16 | |
17 @titlepage | |
18 @sp 10 | |
19 @center | |
20 @subtitle Yet Another tex-mode for emacs | |
21 @title 『野鳥』 | |
22 @subtitle // YaTeX // | |
80 | 23 @author @copyright{} 1991-2004 by HIROSE, Yuuji [yuuji@@yatex.org] |
73 | 24 @end titlepage |
25 | |
26 @node Top, Intro, (dir), (dir) | |
27 @comment node-name, next, previous, up | |
28 | |
29 @menu | |
30 * Intro:: はじめに | |
31 * Terminology:: マニュアル参照上の注意 | |
32 * Main features:: 主な機能 | |
33 * Installation:: インストール | |
34 * Invocation:: プロセス起動 | |
35 * %#notation :: %#記法 | |
36 * Completion:: 補完入力 | |
37 * Local dictionary:: ローカル辞書 | |
38 * Commenting out:: コメントアウト | |
39 * Cursor jump:: カーソルジャンプ | |
40 * Modifying/Deleting:: LaTeXコマンドの変更/削除 | |
41 * Filling:: 桁揃え | |
42 * Includeonly:: 勝手に includeonly | |
43 * What column:: カラム位置ガイド | |
44 * Intelligent newline:: おまかせ改行 | |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
45 * Usepackage cheker:: 先回りusepackage |
73 | 46 * Changing mode of YaTeX:: 野鳥動作モード変更 |
47 * Online help:: LaTeXオンラインヘルプ | |
48 * Inclusion hierarchy browser:: ファイル分割階層構造の表示 | |
49 * Cooperation with other packages:: 他パッケージとの連携 | |
50 * Customizations:: カスタマイズ | |
51 * Etc:: その他 | |
52 * Copying:: 取り扱い | |
53 * Concept Index:: 索引 | |
54 | |
55 @end menu | |
56 | |
57 @node Intro, Terminology, Top, Top | |
58 @comment node-name, next, previous, up | |
59 @chapter はじめに | |
60 @cindex Demacs | |
61 @cindex Mule | |
62 @cindex LaTeX | |
63 @cindex やちょう[やちよう] | |
64 | |
65 野鳥は、GNU Emacs で La@TeX{} 用の文書を作成する時に pLa@TeX{} などの | |
66 タイプセットコマンドや、プレヴューアの起動を Emacs 編集画面中から | |
67 行えるようにすると共に、拡張性の高い種々の補完機能によりソーステキ | |
68 ストの編集を支援します。さらに La@TeX{} コマンドのオンラインヘルプに | |
69 よりマニュアルを調べる手間を軽減します。 | |
70 | |
71 English manual @xref{Top, , , yatexe,YaTeX English info}. | |
72 | |
73 @node Terminology, Main features, Intro, Top | |
74 @comment node-name, next, previous, up | |
75 @chapter 本マニュアル参照上の注意 | |
76 | |
77 本マニュアルでは以下の表記を用います。 | |
78 | |
79 @itemize @bullet | |
80 @item | |
81 begin型コマンド | |
82 | |
83 @code{\begin@{環境@} 〜 \end@{環境@}}という形式のLaTeXコマンドを指します。 | |
84 begin型コマンドを補完入力することをbegin型補完と呼びます。 | |
85 | |
86 @item | |
87 section型コマンド | |
88 | |
89 @code{\section@{タイトル@}}や@code{\mbox@{内容@}}のように | |
90 引数を取るLaTeXコマンドを指します。 | |
91 | |
92 @item | |
93 maketitle型コマンド | |
94 | |
95 @code{\maketitle}や@code{\tableofcontents}のように引数を取らないLaTeXコマ | |
96 ンドを指します。 | |
97 | |
98 @item | |
99 large型コマンド | |
100 | |
101 @code{@{\large ...@}} や @code{@{\tt ...@}} のようなフォント/サイズ指定子 | |
102 を指します。 | |
103 | |
104 @item @kbd{[prefix]} | |
105 | |
106 野鳥の機能を呼び出すためのプリフィクスキー。デフォルトでは@kbd{C-c}に割り | |
107 当てられているので、特に変更していない場合本マニュアルの @kbd{[prefix]} と | |
108 いう表記は、@kbd{C-c} と読み換えてください。 | |
109 @end itemize | |
110 | |
111 @node Main features, Installation, Terminology, Top | |
112 @comment node-name, next, previous, up | |
113 @chapter 主な機能 | |
114 | |
115 @itemize @bullet | |
116 @item タイプセッタやプレヴューアなどの編集画面からの起動(@kbd{C-c t}) | |
117 @item カーソル位置によらない固定リジョンの部分タイプセット | |
118 @item \includeonlyのワンタッチ更新 | |
119 @item エラー箇所への自動ジャンプ(@kbd{C-c '}) | |
120 @item @code{\begin@{@}, \end@{@}, \section...} などの La@TeX{} | |
121 コマンドの補完入力 | |
122 (@kbd{C-c b}, @kbd{C-c s}, @kbd{C-c l}, @kbd{C-c m}) | |
123 @item 既に入力したテキストを環境やコマンド引数の中に取り込む括り補完 | |
124 (@kbd{C-u} +通常補完キー) | |
125 @item セクション区切り入力時の文書構造アウトライン表示 | |
126 @item セクションコマンドの一括シフト (@ref{view-sectioning}) | |
127 @item 補完辞書の学習 | |
128 @item La@TeX{} の環境やコマンドに応じたガイド付き引数入力 | |
129 @item 野鳥にないガイド付き引数入力関数の自動生成(@file{yatexgen.el}) | |
130 @item La@TeX{} コマンドの削除/変更(@kbd{C-c k}, @kbd{C-c c}) | |
131 @item ファイル間、@code{\begin}<->@code{\end}間、 | |
132 @code{\ref}<->@code{\label}間、 | |
133 @code{\cite}<->@code{\bibitem}ジャンプ(@kbd{C-c g}) | |
134 @item 一括コメントアウト/アンコメントアウト | |
135 (@kbd{C-c >}, @kbd{C-c <}, @kbd{C-c ,}, @kbd{C-c .}) | |
136 @item アクセント記号/数式環境用コマンド/ギリシャ文字の入力支援 | |
137 (@kbd{C-c a}, @kbd{;}, @kbd{/}) | |
138 @item tabular/array環境のカラム位置ガイド | |
139 @item 標準的 La@TeX{} コマンドのオンラインヘルプ(@kbd{C-c ?}, @kbd{C-c /}) | |
140 @item ドキュメントのインクルード構造の視覚的表示とバッファ切り替え | |
141 (@kbd{C-c d}) | |
80 | 142 @item 補完入力したマクロに応じて必要な \userpackage を入れてくれる先回り |
143 userpackage | |
144 @item \labelを打つことはもう忘れよう! refやcite補完入力で自動生成します | |
73 | 145 @end itemize |
146 | |
147 @node Installation, Invocation, Main features, Top | |
148 @comment node-name, next, previous, up | |
149 @chapter 起動法 | |
150 @cindex Install | |
151 @cindex インストール[いんすとおる] | |
152 @cindex .emacs | |
153 @cindex auto-mode-alist | |
154 @cindex autoload | |
155 @section 野鳥起動のための設定 | |
156 | |
157 ~/.emacsに下の2項目を加えます。 | |
158 | |
159 @lisp | |
160 (setq auto-mode-alist | |
161 (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) | |
162 (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) | |
163 @end lisp | |
164 | |
165 次に野鳥の emacs-lisp ファイル群を置くディレクトリを load-path に加えます。 | |
166 たとえば、 @file{~/src/emacs/yatex}に置くのであれば、 | |
167 | |
168 @lisp | |
169 (setq load-path (cons (expand-file-name "~/src/emacs/yatex") load-path)) | |
170 @end lisp | |
171 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
172 @noindent |
73 | 173 などとします。 |
174 | |
175 以上の設定により、拡張子が .tex であるファイルを編集すると自動的に野鳥が | |
176 ロードされます。野鳥が正常に起動できたときはモードラインの表示が「やてふ」 | |
177 に変わります。 | |
178 | |
179 @section タイプセッタ/プレヴューア環境の設定 | |
180 | |
181 利用する外部プログラムに関する以下の変数を確認し、必要なら正しい値に変更 | |
182 します。 | |
183 @table @code | |
184 @item tex-command | |
185 @dots{} 起動するタイプセッタのコマンド名 | |
186 @item dvi2-command | |
187 @dots{} 起動するプレヴューアのコマンド名 | |
188 @item NTT-jTeX | |
189 @dots{} 改行+インデントによって、タイプセット後の字間が空いてしま | |
190 うのを抑制する場合にtにする(古いNTT-jTeXで顕著に現れる)。具体的には、 | |
191 fillするときに各行の終わりに%を付加するようになる。 | |
192 @item YaTeX-kanji-code | |
193 @dots{} 文書を作成する時の漢字コード | |
194 @item dviprint-command-format | |
195 @dots{} ファイルの印刷に使われるコマンド列の書式 | |
196 @item makeindex-command | |
197 @dots{} makeindexコマンド | |
198 @end table | |
199 | |
200 これらを変更する場合は、やはり@file{~/.emacs}にて、たとえば | |
201 @lisp | |
242 | 202 (setq tex-command "pdflatex") |
73 | 203 @end lisp |
204 のようにしてください。どのような値をセットすれば良いかについては、 | |
205 @ref{All customizable variables}を参照してください。 | |
206 | |
207 | |
208 @node Invocation, %#notation , Installation, Top | |
209 @comment node-name, next, previous, up | |
210 @chapter latexコマンド起動 | |
211 @cindex prefix key | |
212 @cindex C-c | |
213 @cindex タイプセッタ[たいふせつた] | |
214 @cindex プレヴューア[ふれひゆうあ] | |
215 @cindex jlatex | |
216 @cindex platex | |
217 @cindex プリントアウト[ふりんとあうと] | |
218 | |
219 LaTeXソースの編集中、次のキー入力により、platex などのタイプセットプログラ | |
220 ム(以後タイプセッタと呼ぶ)、プレヴューアなどの起動ができます。 | |
221 | |
222 @table @kbd | |
223 @item [prefix] t j | |
224 @dots{} タイプセッタ(platex)起動 | |
225 @item [prefix] t r | |
226 @dots{} タイプセッタ起動(領域指定) | |
130
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
227 @item [prefix] t e |
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
228 @dots{} タイプセッタ起動 |
242 | 229 (ポイント位置の環境または数式モードのみ対象) |
73 | 230 @item [prefix] t k |
231 @dots{} 動作中のタイプセッタの停止 | |
232 @item [prefix] t b | |
233 @dots{} jbibtex起動 | |
126
91bf68eeefe8
Add documentation for latex+p(D)f and YaTeX-dvipdf-command.
yuuji@gentei.org
parents:
118
diff
changeset
|
234 @item [prefix] t i |
91bf68eeefe8
Add documentation for latex+p(D)f and YaTeX-dvipdf-command.
yuuji@gentei.org
parents:
118
diff
changeset
|
235 @dots{} makeindex起動 |
91bf68eeefe8
Add documentation for latex+p(D)f and YaTeX-dvipdf-command.
yuuji@gentei.org
parents:
118
diff
changeset
|
236 @item [prefix] t d |
242 | 237 @dots{} タイプセット完了後dvipdfmx起動 |
73 | 238 @item [prefix] t p |
239 @dots{} プレヴューア起動 | |
240 @item [prefix] t l | |
241 @dots{} lpr(プリントアウト用)コマンド起動 | |
242 @item [prefix] t s | |
243 @dots{} xdvi -remote でのサーチ | |
244 @end table | |
245 | |
246 @menu | |
247 * Calling typesetter:: タイプセッタ起動 | |
248 * Calling previewer:: プレヴューア起動 | |
249 * Print out:: プリントアウト用コマンドの起動 | |
250 @end menu | |
251 | |
252 @node Calling typesetter, Calling previewer, Invocation, Invocation | |
253 @comment node-name, next, previous, up | |
254 @section タイプセッタ起動 | |
255 @cindex タイプセッタ起動[たいふせつたきとう] | |
256 @cindex タイプセットエラー[たいふせつとえらあ] | |
257 @cindex エラー修正[えらあしゆうせい] | |
258 | |
259 タイプセッタを起動すると、編集ウィンドウが2つに分割され、片方のウィンド | |
260 ウにタイプセット画面が表示されます。出力されるメッセージと連動しタイプセッ | |
261 トバッファは自動的にスクロールします。もし、途中でエラーが起こって止まって | |
262 しまった場合にはタイプセットバッファに移り、(@kbd{C-x o}) タイプセッタの出 | |
263 している ? プロンプトに対して、@kbd{x} (処理の中断)などの指示を送ることが | |
264 できます。エラーを修正する場合は、 | |
265 | |
266 @table @kbd | |
267 @item [prefix] ' | |
268 @itemx (prefix+アポストロフィ) | |
269 @dots{} 直前のエラー発生行へジャンプ | |
270 @end table | |
271 | |
272 を入力することにより、タイプセッタがエラーを発生した行に移ることができます。 | |
273 また、タイプセッタの出力する overfull hbox などのウォーニング行にも対応し | |
274 ていますので、順次 @kbd{[prefix] '} を押すことにより、一つ前のウォーニング | |
275 発生行にジャンプしていきます。 | |
276 | |
277 もし、気になるエラー行があった場合は、タイプセットバッファで、エ | |
278 ラーの表示されている行にカーソルを合わせスペースキーを押すと La@TeX{} | |
279 ソースの対応する行にジャンプします。 | |
280 | |
281 @subsection 領域タイプセット | |
282 | |
283 ポイントとマークの間、あるいはテキスト中に埋め込んだ @code{%#BEGIN} と | |
284 @code{%#END}の間の領域(@ref{%#notation})だけを切り取ってタイプセットすることが | |
131 | 285 できます。この場合メインファイルのプリアンブルが一時ファイルの |
286 プリアンブルとして使われます。したがってプリアンブルにないマクロ定義が | |
287 領域内にあるとエラーになります。領域タイプセットを使う場合、 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
288 必ずマクロ定義はプリアンブル(@code{\begin@{document@}}より前)に置くよう |
131 | 289 にして下さい。一時ファイルはメインファイルのある |
290 ディレクトリの@file{texput.tex}という名前で出力されるので、 | |
291 上書きには注意してください。 | |
73 | 292 |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
293 @subsection 環境タイプセット |
130
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
294 |
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
295 @kbd{[prefix] te} を押すと、ポイント位置の最も内側の環境、または数式モー |
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
296 ド内の場合はその数式モード全体が自動的に領域選択されて、領域タイプセットを |
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
297 呼び出します。tabular環境や数式モードで複雑なものを作っている場合は確かめた |
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
298 い部分だけを確認できるので便利です。これも @file{texput.tex} に該当部分を |
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
299 書き出します。プレヴューアで @file{texput.dvi} を開いたままにしておけば |
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
300 修正と確認が素早くできるでしょう。 |
8703f090c628
`[prefix] t e' for YaTeX-typeset-environment.
yuuji@gentei.org
parents:
126
diff
changeset
|
301 |
73 | 302 @node Calling previewer, Print out, Calling typesetter, Invocation |
303 @comment node-name, next, previous, up | |
304 @section プレヴューア起動 | |
305 @kbd{[prefix] t p} によりプレヴューアの起動ができます。さらに、もしあな | |
306 たが、-remote 機能つきのxdviを利用している場合は @kbd{[prefix] t s} を押す | |
307 ことによりカーソル位置の文字列を検索してそのページを表示するようにすでに起 | |
308 動中のxdviに命令を送ります。これにより、現在編集中の箇所のタイプセット結果 | |
309 を即座に見ることができます。 | |
310 | |
311 @c なお、-remote 機能付きの xdvi は | |
312 @c @code{ftp://ftp.ae.keio.ac.jp/pub/text/xdvi/xdvi-remote} | |
313 @c などから入手することができます。 | |
314 | |
315 @node Print out, , Calling previewer, Invocation | |
316 @comment node-name, next, previous, up | |
317 @section プリントアウト | |
318 | |
319 @kbd{[prefix] t l}を押してプリントアウトを指示すると、出力開始/終了ペー | |
320 ジを聞いてくるので、それぞれに答えます。これを省略したい時は、 | |
321 universal-argument をつけ、 | |
322 | |
323 @cindex 出力開始ページ[しゆつりよくかいしへえし] | |
324 @cindex 出力終了ページ[しゆつりよくしゆうりようへえし] | |
325 | |
326 @table @kbd | |
327 @item C-u [prefix] t l | |
328 @dots{} ページ確認省略lpr起動 | |
329 @end table | |
330 @cindex ページ確認省略lpr起動[へえしかくにんしようりやくlprきとう] | |
331 | |
332 @noindent | |
333 のように起動してください。 | |
334 | |
335 @node %#notation , Completion, Invocation, Top | |
336 @comment node-name, next, previous, up | |
337 @chapter %#記法 | |
338 | |
339 本文中に@code{%#}ではじまるキーワードを埋め込むことでタイプセッタ起動等 | |
340 の制御をすることができます。 | |
341 | |
342 @menu | |
343 * Changing typesetter:: タイプセット用コマンドの変更 | |
344 * Splitting input files:: 入力ファイル分割 | |
345 * Fix region for typesetting:: 領域の固定 | |
346 * lpr format:: プリントアウトコマンド用フォーマット | |
269
032d4c4bf7ac
Fix escape chars. Thanks to hiroohongo.
HIROSE Yuuji <yuuji@gentei.org>
parents:
268
diff
changeset
|
347 * Controlling which command to invoke:: その他の起動コマンド制御 |
73 | 348 * Editing %# notation:: %#記法の編集 |
349 @end menu | |
350 | |
351 @node Changing typesetter, Splitting input files, %#notation , %#notation | |
352 @comment node-name, next, previous, up | |
353 @section タイプセット用コマンド変更 | |
354 | |
355 起動するコマンドを変えたい時は本文中に次のような行を書きます。 | |
356 | |
357 @cindex 起動するコマンドを変える[きとうするこまんとをかえる] | |
358 | |
359 @example | |
360 %#!jlatex-ntt | |
361 @end example | |
362 | |
363 NTT jTeX と、ASCII jTeX を使い分けたいような場合に便利でしょう。 | |
364 | |
365 @cindex タイプセッタの使い分け[たいふせつたのつかいわけ] | |
366 | |
367 @node Splitting input files, Fix region for typesetting, Changing typesetter, %#notation | |
368 @comment node-name, next, previous, up | |
369 @section 入力ファイル分割 | |
370 | |
371 また、章毎に別ファイルの .tex を作成している場合で、@file{main.tex}から | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
372 @file{sub.tex} を @code{\include}しているような時は、@file{sub.tex}の任意の |
73 | 373 位置に次のような行を埋め込みます。 |
374 | |
375 @example | |
376 %#!platex main.tex | |
377 @end example | |
378 | |
379 @cindex 入力ファイル分割[にゆうりよくふあいるふんかつ] | |
380 | |
381 上の例のようにコマンド名だけでなく引数も書いた場合には、全てをそのまま | |
382 shell に渡すので次のように書けば、ghostview などをプレヴューアに使う時に便 | |
383 利です。 | |
384 | |
385 @cindex ghostview | |
386 | |
387 @example | |
242 | 388 %#!platex main && dvi2ps main.dvi > main |
73 | 389 @end example |
390 | |
391 なお、この行の最後の単語のピリオド以前を「メインファイル」のベース | |
392 ネームであると仮定します(上の2つの場合どちらも@file{main})。 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
393 この行に記述した、@code{%f}はメインファイル名に、 |
80 | 394 @code{%r} はメインファイルの拡張子を取り除いた部分に置換されます。 |
395 ただし、@code{%f,%r}を利用した場合、初回タイプセット時に必ずメインファイル | |
396 名の入力を促されます。 | |
73 | 397 |
398 @kbd{[prefix] g} (@ref{Cursor jump}参照) での | |
399 ファイル間ジャンプを有効に機能させるため、入力ファイル分割時には次のことに | |
400 注意して下さい。 | |
401 | |
402 @enumerate | |
403 @item | |
404 サブディレクトリを作って、その中にサブファイルを置くことはできるが | |
405 サブディレクトリのサブディレクトリには置けない。 | |
406 @item | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
407 メインファイルからサブディレクトリ内のファイルを include する時には、 |
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
408 相対パス指定を用いて、 |
73 | 409 @code{\include@{chap1/sub@}}のように記述。 |
410 @item | |
411 メインファイルが一つ上のディレクトリにある場合も、サブファイルには | |
412 %#!platex main.tex のように記述する(../mainではない)。 | |
413 @end enumerate | |
414 | |
415 | |
416 | |
417 @node Fix region for typesetting, lpr format, Splitting input files, %#notation | |
418 @comment node-name, next, previous, up | |
419 @section 領域の固定 | |
420 @cindex 固定領域のタイプセット[こていりよういきのたいふせつと] | |
421 @cindex %#BEGIN | |
422 @cindex %#END | |
423 | |
424 @kbd{[prefix] tr} の領域指定のタイプセットでは、とくに指定のないかぎり、 | |
425 @kbd{C-SPC}でマークした位置と、ポイント(カーソル位置)の間を領域とみなしま | |
426 すが、必ず決まった領域をタイプセットしたい場合は、その領域を | |
427 | |
428 @example | |
429 %#BEGIN | |
430 <渡したい領域> | |
431 %#END | |
432 @end example | |
433 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
434 @noindent |
73 | 435 のように@code{%#BEGIN}と@code{%#END}で囲み、カーソルを「@code{%#BEGIN}以降」 |
436 に置いてください。この時の領域決定規則をまとめると次のようになります。 | |
437 | |
438 | |
439 @enumerate | |
440 @item | |
441 カーソル位置よりバッファの先頭方向に@code{%#BEGIN}というキーワードが | |
442 ある場合 | |
443 | |
444 @enumerate | |
445 @item | |
446 @code{%#BEGIN}よりバッファの末尾方向に@code{%#END}というキーワードが見つかっ | |
447 た場合。 | |
448 @result{}@code{%#BEGIN} から、その @code{%#END} のある位置まで。 | |
449 @item | |
450 @code{%#END} が見つからなかった場合。 | |
451 @result{}バッファの最後尾まで。 | |
452 @end enumerate | |
453 @cindex 領域決定規則[りよういきけつていきそく] | |
454 | |
455 @item | |
456 カーソル位置よりバッファの先頭方向に @code{%#BEGIN} というキーワードが | |
457 見つからなかった場合。 | |
458 @result{}マーク(@kbd{C-SPC}位置)とポイント(カーソル位置)の間の領域。 | |
459 @end enumerate | |
460 | |
461 tabular 環境を何度も試行錯誤しているような場合は、@code{\begin}の前の行 | |
462 に @code{%#BEGIN} と書き、@code{\end} の次の行に @code{%#END} と書いておく | |
463 と簡単に作表結果をテストすることができます。また、長い .tex ファイルの後半 | |
464 に @code{%#BEGIN} を書いておけば、前半の部分は無視できます。このBEGINとEND | |
465 の消し忘れには十分ご注意下さい。 | |
466 @cindex 長いファイルの編集[なかいふあいるのへんしゆう] | |
467 | |
468 @c @node Require, lpr format, Fix region for typesetting, %#notation | |
469 @comment node-name, next, previous, up | |
470 | |
242 | 471 @node lpr format, Controlling which command to invoke, Fix region for typesetting, %#notation |
73 | 472 @comment node-name, next, previous, up |
473 @section lprフォーマット | |
474 @cindex lprふぉーまっと[lprふおおまつと] | |
475 @cindex lprフォーマット[lprふおおまつと] | |
476 @cindex lpr format | |
477 | |
478 まず、プリントアウト用コマンド列のフォーマットについて説明します。 | |
479 コマンド列フォーマットは、3つの Lisp 変数によって表現されます。デ | |
480 フォルトの dvi2ps 用のフォーマットを例に説明します。 | |
481 | |
482 @table @code | |
483 @item (1)dviprint-command-format | |
484 @code{"dvi2ps %f %t %s | lpr"} | |
485 | |
486 @item (2)dviprint-from-format | |
487 @code{"-f %b"} | |
488 | |
489 @item (3)dviprint-to-format | |
490 @code{"-t %e"} | |
491 @end table | |
492 | |
493 実際にプリントアウトする時は、(1)中の %s がファイル名に置き換えられ、%f が | |
494 (2)の内容、%t が(3)の内容に置き換えられます。その際に(2)の文字列中の %b は | |
495 「出力開始ページ」、(3)の文字列中の %e は「出力終了ページ」に置き換えられ | |
496 ます。もし、ページを指定しない時には、%f, %t 両方とも無視されます。 | |
497 | |
498 この、dviprint-command-format を臨時に変えたい時は、La@TeX{} の | |
499 ソーステキスト中の任意の場所に、 | |
500 | |
501 @example | |
502 %#LPR dvi2ps %f %t %s | 4up -page 4 | texfix | lpr -Plp2 | |
503 @end example | |
504 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
505 @noindent |
73 | 506 のように書いて下さい。プリントアウトするページ範囲をいちいち聞かせないよう |
507 にする時に | |
508 | |
509 @example | |
510 %#LPR dvi2ps %s | lpr | |
511 @end example | |
512 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
513 @noindent |
73 | 514 などとするのも便利かもしれません。 |
515 | |
242 | 516 @node Controlling which command to invoke, Editing %# notation, lpr format, %#notation |
517 @comment node-name, next, previous, up | |
518 @section その他の起動コマンド制御 | |
519 @cindex その他のコマンド制御[そのたのこまんとせいきよ] | |
520 | |
521 La@TeX{} 文書に関連するコマンドは以下の %# 記法で指定することができます。 | |
522 | |
523 @table @code | |
524 @item %#BIBTEX | |
525 @dots{} makeindexを行なうコマンドライン([prefix] t b) | |
526 @item %#MAKEINDEX | |
527 @dots{} bibtexを行なうコマンドライン([prefix] t i) | |
528 @end table | |
529 | |
530 行頭がこれらのキーワードで始まる行をLa@TeX{}文書の先頭付近に書いておけば、 | |
531 それで指定したコマンドを起動できます。 | |
532 | |
533 @node Editing %# notation, , Controlling which command to invoke, %#notation | |
73 | 534 @comment node-name, next, previous, up |
535 @section %#記法自体の編集 | |
536 @cindex %#記法自体の編集[%#きほうしたいのへんしゆう] | |
537 | |
538 以上のような@code{%#}で始まる各種制御記法を編集するためには | |
539 | |
540 @table @kbd | |
541 @item [prefix] % | |
542 @dots{} @code{%#}@var{記法編集メニュー} | |
543 @end table | |
544 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
545 @noindent |
73 | 546 を押します。 |
547 | |
548 @example | |
549 !)Edit-%#! B)EGIN-END-region L)Edit-%#LPR | |
550 @end example | |
551 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
552 @noindent |
73 | 553 というメニューが出て来るので、@code{%#!}に続くコマンドを変更したい時には |
554 @kbd{!}を、@code{%#LPR}で lpr フォーマットを変えたい時は@kbd{l}を、あらか | |
555 じめ設定したリジョンを @code{%#BEGIN} 〜 @code{%#END} で括りたい時は、 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
556 @kbd{b}を押します。@kbd{b}を選んだ時には、それまでバッファ中に置かれていた |
73 | 557 @code{%#BEGIN}, @code{%#END} が自動的に消去されます。 |
558 @cindex lprフォーマットの変更[lprふおおまつとのへんこう] | |
559 | |
560 @node Completion, Local dictionary, %#notation , Top | |
561 @comment node-name, next, previous, up | |
562 @chapter 補完入力 | |
563 | |
564 La@TeX{} での環境名などは、野鳥の補完機能を利用して能率的に入力すること | |
565 ができます。 | |
566 | |
567 @menu | |
568 * begin型補完:: | |
569 * section型補完:: | |
570 * large型補完:: | |
571 * maketitle型補完:: | |
572 * Arbitrary completion:: 随時補完 | |
573 * end補完:: | |
574 * Accent mark completion:: アクセント記号補完 | |
575 * Image completion:: 数式記号イメージ補完 | |
576 * Greek letter completion:: ギリシャ文字補完 | |
577 @end menu | |
578 | |
579 @node begin型補完, section型補完, Completion, Completion | |
580 @comment node-name, next, previous, up | |
581 @section begin型補完 | |
582 @cindex begin型補完[beginかたほかん] | |
583 @cindex 環境名の補完[かんきようめいのほかん] | |
584 @cindex prefix b | |
585 | |
586 @code{\begin@{env@}...\end@{env@}}の様な形式の入力の補完をbegin型補完と | |
587 呼ぶことにします。begin 型補完は、 | |
588 | |
589 @table @kbd | |
590 @item [prefix] b | |
591 @dots{} begin 型補完開始(標準では @kbd{C-c b}) | |
592 @end table | |
593 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
594 @noindent |
73 | 595 で始まります。頻繁に用いられる次の La@TeX{} 環境の補完は、[prefix] @kbd{b} |
596 に続く次の1文字を入力するだけで、@code{\begin@{xxx@}...\end@{xxx@}}を完成 | |
597 させます。 | |
598 | |
599 @table @kbd | |
600 @item [prefix] b c | |
601 @dots{} @code{\begin@{center@}...\end@{center@}} | |
602 @item [prefix] b d | |
603 @dots{} @code{\begin@{document@}...\end@{document@}} | |
604 @item [prefix] b D | |
605 @dots{} @code{\begin@{description@}...\end@{description@}} | |
606 @item [prefix] b e | |
607 @dots{} @code{\begin@{enumerate@}...\end@{enumerate@}} | |
608 @item [prefix] b E | |
609 @dots{} @code{\begin@{equation@}...\end@{equation@}} | |
610 @item [prefix] b i | |
611 @dots{} @code{\begin@{itemize@}...\end@{itemize@}} | |
612 @item [prefix] b l | |
613 @dots{} @code{\begin@{flushleft@}...\end@{flushleft@}} | |
614 @item [prefix] b m | |
615 @dots{} @code{\begin@{minipage@}...\end@{minipage@}} | |
616 @item [prefix] b t | |
617 @dots{} @code{\begin@{tabbing@}...\end@{tabbing@}} | |
618 @item [prefix] b T | |
619 @dots{} @code{\begin@{tabular@}...\end@{tabular@}} | |
620 @item [prefix] b ^T | |
621 @dots{} @code{\begin@{table@}...\end@{table@}} | |
622 @item [prefix] b p | |
623 @dots{} @code{\begin@{picture@}...\end@{picture@}} | |
624 @item [prefix] b q | |
625 @dots{} @code{\begin@{quote@}...\end@{quote@}} | |
626 @item [prefix] b Q | |
627 @dots{} @code{\begin@{quotation@}...\end@{quotation@}} | |
628 @item [prefix] b r | |
629 @dots{} @code{\begin@{flushright@}...\end@{flushright@}} | |
630 @item [prefix] b v | |
631 @dots{} @code{\begin@{verbatim@}...\end@{verbatim@}} | |
632 @item [prefix] b V | |
633 @dots{} @code{\begin@{verse@}...\end@{verse@}} | |
634 @end table | |
635 | |
636 上記のもの以外の環境名は Emacs の持つインクリメンタルな補完機能を用いて | |
637 入力します(上記の環境名も以下の補完入力可能)。 | |
638 | |
639 @table @kbd | |
640 @item [prefix] b @key{SPC} | |
641 @dots{} begin 型補完入力 | |
642 @end table | |
643 | |
644 @kbd{[prefix] b @key{SPC}} と入力すると、最下行のミニバッファに | |
645 | |
646 @example | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
647 Begin environment(default document): |
73 | 648 @end example |
649 | |
650 @noindent | |
651 と表示されます。ここで、何も入れずにリターンキーのみ押すと、括弧内に出てい | |
652 るデフォルトの環境名が入力されますが、適当な環境名を入力すると、 | |
653 @code{\begin@{環境名@} … \end@{環境名@}}が文書中に挿入されます。ミニバッ | |
654 ファで環境名を入力するときに、環境名の頭文字を入力し「スペース」をたたくと、 | |
655 一致する環境名が内部テーブルに存在した場合、正しい環境名に補完されるので、 | |
656 入力の手間が省けます。内部テーブルに存在しない環境名を入力した時はユーザ専 | |
657 用のテーブルに登録され、さらにそのテーブルを自動的に、ユーザ辞書(デフォル | |
658 トでは @file{~/.yatexrc})に保存します。 | |
659 | |
660 さらに、特定の環境を補完入力した時にはその環境で必ず用いられるエントリを自 | |
661 動挿入します(例: @code{itemize}環境における@code{\item}など)。挿入されたエ | |
662 ントリが不要な場合にはundoによって消去して下さい。 | |
663 @cindex ユーザ辞書[ゆうさししよ] | |
664 | |
665 @subsection 既に書いたテキストを環境で括る | |
666 | |
667 ところで、最初に書いてしまったブロックを後から、itemize 環境の中 | |
668 に閉じこめたいと思うことがありますが、そのようなときは、あらかじめ | |
669 閉じこめたい段落をマークして、begin 型補完の各コマンドの @kbd{[prefix]} | |
670 の次の『小文字の 'b'』 を『大文字』に変えて起動して下さい。(または、 | |
671 @kbd{C-u} を先に打ち、universal argument をつけても可能です) | |
672 @cindex ブロック[ふろつく] | |
673 @cindex 閉じ込める[としこめる] | |
674 | |
675 例えばあるパラグラフを description 環境の中に入れたいときは、 | |
676 そのパラグラフをマークしてから、 | |
677 | |
678 @table @kbd | |
679 @item [prefix] B D | |
680 @itemx (または ESC 1 [prefix] b D) | |
681 @itemx (または C-u [prefix] b D など) | |
682 @end table | |
683 | |
684 とタイプしてください。これは、@kbd{[prefix] b SPC}の補完入力にもあてはまり、 | |
685 @kbd{b} を大文字に変えて、@kbd{[prefix] B SPC} とタイプすれば、あらかじめ | |
686 マークしておいたリジョンを、begin と end の環境で括ります。 | |
687 | |
688 @node section型補完, large型補完, begin型補完, Completion | |
689 @comment node-name, next, previous, up | |
690 @section section型補完 | |
691 @cindex section型補完[sectionかたほかん] | |
692 @cindex prefix s | |
693 | |
694 @code{\section@{目的@}} のような形式の入力の補完を section 型補完と呼ぶこ | |
695 とにします。section 型補完は、 | |
696 | |
697 @table @kbd | |
698 @item [prefix] s | |
699 @dots{} section 型補完 | |
700 @end table | |
701 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
702 |
73 | 703 で実行します。@kbd{[prefix] s} を入力するとミニバッファに、 |
704 | |
705 @example | |
706 (C-v for view-section) \???@{@} (default documentclass): | |
707 @end example | |
708 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
709 @noindent |
73 | 710 というプロンプトが現れるので、そこで @samp{section} のような La@TeX{} コマ |
711 ンド名を入力します。ここでもリターンキーのみで括弧内のデフォルト値が選択さ | |
712 れるほか、@samp{chapter}などのような頻度の高い名称入力にはスペースキーによ | |
713 る補完機能が有効です。 次に、@{@}の中身の入力を促す、 | |
714 | |
715 @example | |
716 \section@{???@}: | |
717 @end example | |
718 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
719 @noindent |
73 | 720 というプロンプトが現れるので、セクションのタイトルなどを入力します。 |
721 たとえば、 | |
722 | |
723 @example | |
724 (C-v for view-section) \???@{@} (default documentclass): section | |
725 \section@{???@}: 目的 | |
726 @end example | |
727 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
728 @noindent |
73 | 729 のように入力した場合は、文章中に |
730 | |
731 @example | |
732 \section@{目的@} | |
733 @end example | |
734 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
735 @noindent |
73 | 736 が挿入され、 |
737 | |
738 @example | |
739 (C-v for view-section) \???@{@} (default section): vspace* | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
740 \vspace*@{???@}: |
73 | 741 @end example |
742 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
743 @noindent |
73 | 744 のように@{@}の中身を省略したときは、 |
745 | |
746 @example | |
747 \vspace*@{@} | |
748 @end example | |
749 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
750 @noindent |
73 | 751 だけが挿入され、改行はせずカーソルは自動的に中括弧の内側に移動します。 |
752 | |
753 @menu | |
269
032d4c4bf7ac
Fix escape chars. Thanks to hiroohongo.
HIROSE Yuuji <yuuji@gentei.org>
parents:
268
diff
changeset
|
754 * 2個以上の引数をとる section型コマンド:: |
73 | 755 * Enclose section-type command:: 括り補完 |
756 * Recursive completion:: 再帰補完 | |
757 * view-sectioning:: セクション区切りのアウトライン表示 | |
80 | 758 * label-generation:: ラベル自動生成 |
73 | 759 @end menu |
760 | |
761 @node 2個以上の引数をとる section型コマンド, Enclose section-type command, section型補完, section型補完 | |
762 @comment node-name, next, previous, up | |
763 @subsection 2個以上の引数をとる section型コマンド | |
764 @cindex 引数[ひきすう] | |
765 | |
766 ところで、@samp{\addtolength@{\topmargin@}@{8mm@}} などのように、引数を二つ | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
767 以上取る La@TeX{} コマンドがあります。このようなコマンドの補完入力には、 |
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
768 section 型補完呼び出しに引数を付けてください。例えば上の@samp{addtolength} |
73 | 769 の例であれば、引数2を指定します。つまり、 |
770 | |
771 @example | |
772 C-u 2 [prefix] s (または、ESC 2 [prefix] s) | |
773 @end example | |
774 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
775 @noindent |
73 | 776 と section 型補完を呼び出した後、 |
777 | |
778 @example | |
779 (Ctrl-v for view-section) \???@{@} (default vspace*): addtolength | |
780 \addtolength@{???@}: \topmargin | |
781 Argument 2: 8mm | |
782 @end example | |
783 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
784 @noindent |
73 | 785 のように入力してください。最初の addtolength の部分と、第一引数である |
786 \topmargin の入力は当然スペースによる補完入力が可能です。ユーザ辞書に登録 | |
787 される La@TeX{} コマンドには、この引数の数も学習されるので、最初の補完の時 | |
788 引数の数を指定して起動しておけば、以後の補完時には、記憶された個数だけ引数 | |
789 を聞いて来るようになります。あとで引数の個数を変えたい時は、再び @kbd{C-u} | |
790 を用いて個数を指定し直すことで、自動的に辞書中の引数の個数の部分を更新しま | |
791 す。 | |
792 @cindex 引数の個数を変える[ひきすうのこすうをかえる] | |
793 | |
794 | |
795 @node Enclose section-type command, Recursive completion, 2個以上の引数をとる section型コマンド, section型補完 | |
796 @subsection 既に書いたテキストを括る | |
797 @cindex 括る[くくる] | |
798 | |
799 また、起動コマンドの@kbd{s}を大文字に変えて起動すると、あらかじめ書 | |
800 いた文章を section 型コマンドの第一引数として括ります。 | |
801 | |
802 @node Recursive completion, view-sectioning, Enclose section-type command, section型補完 | |
803 @comment node-name, next, previous, up | |
804 @subsection 再帰補完 | |
805 @cindex 再帰補完[さいきほかん] | |
806 | |
807 高度な使い方になるかもしれませんが、section型補完の引数の入力時にさらに | |
808 補完入力を利用することができます(section/large/maketitle型に限る)。section | |
809 型コマンドの引数に更に La@TeX{} コマンドが来る場合にはミニバッファで野鳥の | |
810 補完キーを再帰的に入力することで引数の入力も効率的に行なえます。 | |
811 | |
80 | 812 @node view-sectioning, label-generation, Recursive completion, section型補完 |
73 | 813 @comment node-name, next, previous, up |
814 @subsection セクション区切りのアウトライン表示 | |
815 @cindex アウトライン[あうとらいん] | |
816 | |
817 通常のsection型補完の時にミニバッファで@kbd{C-v}を押すと現在存在するセク | |
818 ション区切りコマンド全てを @code{*Sectioning Lines*}というバッファに一覧表 | |
819 示します(「<<--」のついている行がもっとも近いセクション区切り)。この時ミニ | |
820 バッファで@kbd{C-p}, @kbd{C-n} を押すと@samp{part}, @samp{chapter}, ..., | |
821 @samp{subparagraph} のコマンドが論理階層の高さにしたがって上下します。また、 | |
822 @kbd{C-v}, @kbd{M-v} を押すとセクション区切り一覧バッファがスクロールし、 | |
823 数字の@kbd{0}〜@kbd{7}を押すとある高さ以上のセクション区切りだけを選んで表 | |
824 示します(実際にやって見れば分かります)。 | |
825 | |
826 @code{*Sectioning Lines*}バッファは、 | |
827 | |
828 @table @kbd | |
829 @item M-x YaTeX-section-overview | |
830 @dots{} セクション区切り一覧バッファを生成 | |
831 @end table | |
832 | |
833 @cindex セクション区切り一覧バッファ[せくしよんくきりいちらんはつふあ] | |
834 で作成することができます。このバッファを選択し任意の行でスペースを押すと、 | |
835 該当するセクション区切りのある本文中の場所にジャンプします。さらに、同バッ | |
836 ファで @kbd{u} を押すと、ソーステキストの対応するセクションコマンドが一階 | |
837 層上がり(例: subsection が section に変わる)、@kbd{d}を押すと一階層下がり | |
838 ます。@code{*Sectioning Lines*}バッファにあるセクション区切りの行をマーク | |
839 しておいて@kbd{U}を押すとリジョン内のものに対応するソーステキストのセクショ | |
840 ンコマンドすべてが一階層上がり、@kbd{D}を押すと下がります。セクション区切 | |
841 り一覧バッファで利用できるキーコマンドには以下のものがあります。 | |
842 | |
843 @table @kbd | |
844 @item SPC | |
845 @dots{} 対応するソース行へジャンプ | |
846 @item . | |
847 @dots{} 対応するソース行を表示 | |
848 @item u | |
849 @dots{} カーソル位置に対応するセクションコマンドを一階層上げる | |
850 @item d | |
851 @dots{} カーソル位置に対応するセクションコマンドを一階層下げる | |
852 @item U | |
853 @dots{} マークしたセクションコマンドを一階層上げる | |
854 @item D | |
855 @dots{} マークしたセクションコマンドを一階層上げる | |
856 @item 0〜6 | |
857 @dots{} レベル n 以下のセクションコマンドを隠して表示 | |
858 @end table | |
859 | |
860 @cindex 論理階層[ろんりかいそう] | |
861 @cindex セクション区切り[せくしよんくきり] | |
862 @cindex ジャンプ[しやんふ] | |
863 | |
80 | 864 @node label-generation, , view-sectioning, section型補完 |
865 @comment node-name, next, previous, up | |
866 @subsection ラベル自動生成 | |
867 @cindex ラベル自動生成[らへるしとうせいせい] | |
868 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
869 @code{\ref@{@}} や @code{\cite@{@}} マクロをsection型補完で入れた場合 |
80 | 870 参照先となり得るものを全て探してメニューにして選択できます。参照先には |
871 @code{\label@{@}}をつけておく必要はありません。もしあれば、そのラベルを | |
872 使い、なければその場で参照先に@code{\label@{@}}を作らせてくれます。 | |
873 ラベル名を考えるのは苦痛に感じるものです。全てのカウンタにラベルを | |
874 つけるのもたいへんです。もうラベル名に何をつけるか、ラベルをつけるかつけま | |
875 いか、などということは忘れましょう! | |
876 | |
73 | 877 @node large型補完, maketitle型補完, section型補完, Completion |
878 @comment node-name, next, previous, up | |
879 @section large型補完 | |
880 @cindex large型補完[largeかたほかん] | |
881 @cindex prefix l | |
882 | |
883 @code{@{\large @}} のような形式の補完を large 型補完と呼ぶことにします。 | |
884 | |
885 @table @kbd | |
886 @item [prefix] l | |
887 @dots{} large 型補完開始 | |
888 @end table | |
889 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
890 @noindent |
73 | 891 がlarge型補完の開始です。@kbd{[prefix] l} を押すと、ミニバッファに |
892 | |
893 @example | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
894 @{\??? @} (default large): |
73 | 895 @end example |
896 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
897 |
73 | 898 と表示されるので、上記のものと同じ要領で補完入力して下さい。補完候補に用意 |
899 されているのは、@samp{footnotesize} や @samp{huge} のような文字サイズ指定 | |
900 子と、@samp{bf}や@samp{dg}のようなフォント指定子です。 | |
901 @cindex 文字サイズ指定子[もしさいすしていし] | |
902 @cindex フォント指定子[ふおんとしていし] | |
903 | |
904 @subsection 既に書いた文字を括る | |
905 @cindex 括る[くくる] | |
906 | |
907 また、begin型補完の時と同様、先に書いてしまった一連の文章の文字のサイズ | |
908 を変えたいと思う時がありますが、そのような時は、サイズや大きさを変えたい文 | |
909 字の範囲をマークしてから、呼び出しキーを @kbd{[prefix] L} と、大文字の L | |
910 に変えて呼び出せば、そのリジョン全体が、ブレースで囲まれます。 | |
911 | |
912 @node maketitle型補完, Arbitrary completion, large型補完, Completion | |
913 @comment node-name, next, previous, up | |
914 @section maketitle型補完 | |
915 @cindex maketitle型補完[maketitleかたほかん] | |
916 @cindex prefix m | |
917 | |
918 @code{\maketitle} の形式の補完を maketitle 型補完と呼ぶことにします。 | |
919 | |
920 @table @kbd | |
921 @item [prefix] m | |
922 @dots{} maketitle 型補完開始 | |
923 @end table | |
924 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
925 @noindent |
73 | 926 で、maketitle 型補完を開始します。補完の要領は今までのものとまったく同じで |
927 す。La@TeX{} 用のコマンド名が補完候補として用意されています。 | |
928 | |
929 @node Arbitrary completion, end補完, maketitle型補完, Completion | |
930 @comment node-name, next, previous, up | |
931 @section 随時補完 | |
932 @cindex 随時補完[すいしほかん] | |
933 @cindex prefix SPC | |
934 | |
935 さて、今まで述べた典型的な La@TeX{} コマンド形式の補完入力を用いずに、今 | |
936 入力しようとしている La@TeX{} コマンドを文書中の任意の位置で随時補完するこ | |
937 ともできます。La@TeX{} コマンド(先頭が\で始まる)を入力している途中で、 | |
938 | |
939 @table @kbd | |
940 @item [prefix] SPC | |
941 @dots{} 随時補完 | |
942 @end table | |
943 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
944 @noindent |
73 | 945 を入力すれば、全ての補完候補の中から一致するものが選ばれカーソル位置に挿入 |
946 されます。 | |
947 | |
948 @node end補完, Accent mark completion, Arbitrary completion, Completion | |
949 @comment node-name, next, previous, up | |
950 @section end補完 | |
951 @cindex end補完[endほかん] | |
952 @cindex prefix e | |
953 | |
954 現在開いたままの環境名を自動的に検出し、@code{\end@{環境名@}}を挿入しま | |
955 す。begin 型補完を用いれば環境の閉じ忘れはないのですが、時にはついつい手で | |
956 @code{\begin@{環境名@}} を入れてしまい、悲しい思いをすることがあります。そ | |
957 のような時には気にせず続けて文章を入力し、しかるのちに | |
958 | |
959 @table @kbd | |
960 @item [prefix] e | |
961 @dots{} end 補完 | |
962 @end table | |
963 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
964 @noindent |
73 | 965 とすることで、現在開いている環境名で \end@{@} が補われます。 |
966 | |
967 @node Accent mark completion, Image completion, end補完, Completion | |
968 @comment node-name, next, previous, up | |
969 @section アクセント記号補完 | |
970 @cindex アクセント記号補完[あくせんときこうほかん] | |
971 @cindex prefix a | |
972 @cindex 欧文[おうふん] | |
973 | |
974 欧文のアクセント記号(@code{\`@{o@}}など)を入力する時は、 | |
975 | |
976 @table @kbd | |
977 @item [prefix] a | |
978 @dots{} アクセント記号入力 | |
979 @end table | |
980 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
981 @noindent |
73 | 982 を押すと、ミニバッファに |
983 | |
984 @example | |
985 1:` 2:' 3:^ 4:" 5:~ 6:= 7:. u v H t c d b | |
986 @end example | |
987 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
988 @noindent |
73 | 989 というメニューが出て来るので、数字、または対応する記号/英字を入力 |
990 して下さい。すると編集バッファに、 | |
991 | |
992 @example | |
993 \`@{@} | |
994 @end example | |
995 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
996 @noindent |
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
997 が現われ、カーソルが@{@}内に位置するので、さらに一文字入力する事で、 |
73 | 998 |
999 @example | |
1000 \`@{o@} | |
1001 @end example | |
1002 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1003 @noindent |
73 | 1004 が完成され、カーソルは@{@}の外に戻ります。 |
1005 | |
1006 @node Image completion, Greek letter completion, Accent mark completion, Completion | |
1007 @comment node-name, next, previous, up | |
1008 @section 数式記号イメージ補完 | |
1009 @cindex 数式記号イメージ補完[すうしききこういめえしほかん] | |
1010 @cindex イメージ補完[いめえしほかん] | |
1011 @cindex ; | |
1012 @cindex 数式モード[すうしきもおと] | |
1013 @cindex 矢印[やしるし] | |
1014 @cindex Σ[しくま] | |
1015 @cindex leftarrow | |
1016 @cindex ∞[むけんたい] | |
1017 | |
1018 主に数式モードで使用される、矢印やΣなどの記号を擬似的に表現するキー入力 | |
1019 で、La@TeX{} コマンドを入力できます。これは野鳥自身の「数式モード」でのみ | |
1020 動作します。野鳥はカーソルが@TeX{}の数式環境の中にある時に@kbd{;}や、 | |
1021 @kbd{:}に特殊な機能を持たせます。 | |
1022 | |
1023 さて、例えば、←(leftarrow)をASCII文字だけで表現する場合、一般的には「<-」 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1024 のようにしますが、これを利用して、数式記号イメージ入力モードで |
73 | 1025 @code{\leftarrow}を入力するには、@kbd{;}(セミコロン)を打ってから@kbd{<-}と |
1026 入力します。同様に、長い矢印←-(long-leftarrow) をASCII文字だけで表現する | |
1027 場合「<--」とするので、@code{\longleftarrow}を入力するためには、@kbd{;<--} | |
1028 と入力します。あるいは無限大記号をASCII文字だけで表現する時は「oo」のよう | |
1029 にすることから、@code{\infty} を入力する時は、@kbd{;oo}とキー入力します。 | |
1030 | |
1031 これらの操作をまとめると次のようになります。 | |
1032 | |
1033 @example | |
1034 INPUT 入力される La@TeX{} コマンド | |
1035 ; < - @code{\leftarrow} | |
1036 ; < - - @code{\longleftarrow} | |
1037 ; < - - > @code{\longleftrightarrow} | |
1038 ; o @code{\circ} | |
1039 ; o o @code{\infty} | |
1040 @end example | |
1041 | |
1042 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1043 |
73 | 1044 いずれの場合も、イメージ入力を行っている途中で望みのものがバッファ |
1045 に表示されたなら、そこでイメージ入力を止めて次の編集動作に移っても | |
1046 構いません。 | |
1047 | |
1048 @cindex ;自身[;ししん] | |
1049 数式環境中で@samp{;}自身を入力するには@kbd{;;}のようにします。イメージ | |
1050 入力の途中でTABを押すと、それまで入力した文字で始まるもの一覧が表示されま | |
1051 す。ここで目的の La@TeX{} コマンドまでカーソルを移動し再度TABを押すことで | |
1052 その La@TeX{} コマンドがバッファに挿入されます。 | |
1053 | |
1054 どのキー入力にどの記号が対応しているか全て知りたい時は、@kbd{;}を押した | |
1055 直後にTABを押してください。以下の例は、@kbd{;<}と押した後にTABを押したもの | |
1056 です。 | |
1057 | |
1058 @example | |
1059 KEY LaTeX sequence sign | |
1060 < \leq ≦ | |
1061 << \ll 《 | |
1062 <- \leftarrow ← | |
1063 <= \Leftarrow <= | |
1064 @end example | |
1065 | |
1066 左から[入力キー]、[対応する La@TeX{} コマンド]、[(擬似)記号図示]、と | |
1067 いう順でメニューが出て来るので、よく使うものを覚えておくと良いでしょ | |
1068 う。ものによってはASCII文字で表現することが困難なので、あまり覚え | |
1069 やすいキー並びではないものがあるでしょうから、そのような場合は | |
1070 \maketitle 型補完で入力するか、以下に述べる対応表の設定を行って単 | |
1071 純なキー並びのものを設定すると良いでしょう。 | |
1072 | |
1073 入力キーと La@TeX{} コマンド、記号の対応表を個人的に設定したい場合は | |
1074 Emacs-Lisp 変数 @code{YaTeX-math-sign-alist-private} に定義してください。 | |
1075 その内容とデフォルトのものを合わせたものが対応表として使用されます(private | |
1076 の方が優先される)。なお、この変数の構造については @file{yatexmth.el} を参 | |
1077 照してください。 | |
1078 @cindex YaTeX-math-sign-alist-private | |
1079 | |
1080 @node Greek letter completion, , Image completion, Completion | |
1081 @comment node-name, next, previous, up | |
1082 @section ギリシャ文字補完 | |
1083 @cindex ギリシャ文字補完[きりしやもしほかん] | |
1084 @cindex : | |
1085 | |
1086 もう一つ、数式環境中で@kbd{:}を押すとギリシャ文字入力モードに入ります。 | |
1087 @kbd{:}を押した直後に@kbd{a}を押すと@code{\alpha}が、@kbd{g} を押すと | |
1088 @code{\gamma}が、などアルファベットに対応したギリシャ文字が挿入されます。 | |
1089 操作方法は;の数式記号補完とまったく同じです。まずは@kbd{:}の直後に | |
1090 TABを押してどのアルファベットにどのギリシャ文字が対応しているか調べてみて | |
1091 ください。 | |
1092 | |
1093 @kbd{;}と@kbd{:}を数式環境中で押しているにもかかわらず、イメージ補完が働 | |
1094 かない場合は、@kbd{C-u ;}のように universal-argument をつけてキーを押すこ | |
1095 とにより、強制的にイメージ補完に入ることができます。また、この時にどのよう | |
1096 な状態で数式環境内判定に失敗したかをご連絡下さい。 | |
1097 | |
1098 @node Local dictionary, Commenting out, Completion, Top | |
1099 @comment node-name, next, previous, up | |
1100 @chapter ローカル辞書 | |
1101 @cindex ローカル辞書[ろおかるししよ] | |
1102 @cindex .yatexrc | |
1103 | |
1104 補完入力用の候補は三種類の辞書から構成されています。一つは | |
1105 @file{yatex.el}に組み込まれた「標準辞書」、もう一つはユーザが個人的に常用 | |
1106 するコマンドを保存する「ユーザ辞書」、そしてもうひとつはあるディレクトリで | |
1107 のみ有効なコマンドを保存する「ローカル辞書」です。 | |
1108 | |
1109 補完入力時に新しい単語を入れた場合に、その単語をどの辞書に入れるか聞いて | |
1110 来ます。 | |
1111 | |
1112 @example | |
1113 `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard | |
1114 @end example | |
1115 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1116 @noindent |
73 | 1117 というプロンプトに対し、@kbd{u}と答えると「ユーザ辞書」を、@kbd{l}と答える |
1118 とローカル辞書を更新し、@kbd{n}と答えると辞書ファイルは更新せず現在のEmacs | |
1119 セッションのみ有効な単語とし、@kbd{d}と答えると新たな単語を学習せずに捨て | |
1120 ることになります。 | |
1121 | |
1122 もし、ローカル辞書の機能はいらず、全てユーザ辞書の更新のみでよいと言う場 | |
1123 合には@file{~/.emacs}などで、 | |
1124 @cindex YaTeX-nervous | |
1125 | |
1126 @lisp | |
1127 (setq YaTeX-nervous nil) | |
1128 @end lisp | |
1129 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1130 @noindent |
73 | 1131 として下さい。 |
1132 | |
1133 @node Commenting out, Cursor jump, Local dictionary, Top | |
1134 @comment node-name, next, previous, up | |
1135 @chapter コメントアウト | |
1136 @cindex コメントアウト[こめんとあうと] | |
1137 @cindex prefix < | |
1138 @cindex prefix > | |
1139 @cindex prefix . | |
1140 @cindex prefix , | |
1141 | |
1142 | |
1143 La@TeX{}の編集には試行錯誤がつきものです。ある部分を一括でコメントアウト | |
1144 したり、コメントを外したりしたいことがあります。 | |
1145 | |
1146 @table @kbd | |
1147 @item [prefix] > | |
1148 @dots{} リジョンを % でコメントアウト | |
1149 @item [prefix] < | |
1150 @dots{} リジョンの % のコメントを外す | |
1151 @end table | |
1152 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1153 @noindent |
73 | 1154 は、あらかじめ設定したリジョンに対しての操作、 |
1155 | |
1156 @table @kbd | |
1157 @item [prefix] . | |
1158 @dots{} 現在のパラグラフをコメントアウト | |
1159 @item [prefix] , | |
1160 @dots{} 現在のパラグラフのコメントを外す | |
1161 @end table | |
1162 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1163 @noindent |
73 | 1164 は、カーソルの位置するパラグラフ全体に対しての操作です。なお、ここでいう |
1165 「パラグラフ」は (@code{mark-paragraph}) 関数によりマークされる範囲を指し | |
1166 ます(標準設定で@kbd{ESC h}にバインドされている)。なお、既に@code{%}でコメ | |
1167 ントアウトされているパラグラフに対して繰り返しパラグラフのコメントを使用し | |
1168 た場合の動作は保証しませんので御注意ください。 | |
1169 | |
1170 さて、文章に対してだけでなく、時には@code{\begin}, @code{\end} 自体に対 | |
1171 してもコメントアウトの操作をしたいときがあります。このようなときは、 | |
1172 @code{\begin@{@}} あるいは @code{\end@{@}} の行にカーソルを合わせ、 | |
1173 | |
1174 @table @kbd | |
1175 @item [prefix] > | |
1176 @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントアウト | |
1177 @item [prefix] < | |
1178 @dots{} @code{\begin@{@}}〜@code{\end@{@}} 全てコメントを外す | |
1179 @end table | |
1180 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1181 @noindent |
73 | 1182 とすることで、@code{\begin〜\end}で囲まれる環境全てに対してコメント操作し、 |
1183 | |
1184 @table @kbd | |
1185 @item [prefix] . | |
1186 @dots{} @code{\begin@{@}} と @code{\end@{@}} をコメントアウト | |
1187 @item [prefix] , | |
1188 @dots{} @code{\begin@{@}} と @code{\end@{@}} のコメントを外す | |
1189 @end table | |
1190 | |
1191 は、対応する @code{\begin} と @code{\end} 2行だけを、コメント操作の対象と | |
1192 します。リジョンをコメントアウトしようとして、マークを設定したのちにカーソ | |
1193 ルを移動し@kbd{[preifx] >} を押してもカーソルが @code{\begin@{@}} の上にあ | |
1194 ると@code{\begin@{@}}〜@code{\end@{@}}モードでコメント機能が働いてしまうの | |
1195 で注意して下さい。 | |
1196 | |
1197 @node Cursor jump, Modifying/Deleting, Commenting out, Top | |
1198 @comment node-name, next, previous, up | |
1199 @chapter カーソルジャンプ | |
1200 @cindex カーソルジャンプ[かあそるしやんふ] | |
1201 @cindex prefix g | |
1202 | |
1203 | |
1204 @menu | |
1205 * 対応オブジェクトへのジャンプ:: | |
1206 * お絵描きツール起動:: | |
1207 * メインファイルへのジャンプ:: | |
1208 * 環境を単位としたジャンプ:: | |
1209 * 最後の補完位置へのジャンプ:: | |
1210 @end menu | |
1211 | |
1212 @node 対応オブジェクトへのジャンプ, お絵描きツール起動, Cursor jump, Cursor jump | |
1213 @comment node-name, next, previous, up | |
1214 @section 対応オブジェクトへのジャンプ | |
1215 | |
1216 文書中のいろいろな場所で | |
1217 | |
1218 @table @kbd | |
1219 @item [prefix] g | |
1220 @dots{} 対応するオブジェクトにジャンプ | |
1221 @end table | |
1222 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1223 @noindent |
73 | 1224 を押すことにより、カーソル位置のLa@TeX{}コマンドに対応する場所にジャンプ |
1225 します。対応関係が存在すると解釈されるコマンドには以下のものがあります。 | |
1226 | |
1227 @itemize @bullet | |
1228 @item @code{\begin@{@}} ←→ @code{\end@{@}} | |
1229 @item @code{%#BEGIN} ←→ @code{%#END} | |
1230 @item 画像ファイルの取り込みマクロ → 対応するviewer/お絵かきツール起動 | |
1231 @item @code{\label@{@}} ←→ @code{\ref@{@}} | |
1232 @item @code{\include(\input)} → 対応するファイル | |
1233 @item @code{\bibitem@{@}} ←→ @code{\cite@{@}} | |
1234 @end itemize | |
1235 | |
1236 @code{\begin@{@}} か @code{\end@{@}} の行で@kbd{[prefix] g}を押すことに | |
1237 より、対応する@code{end/begin}の行にジャンプします。もちろん対応するものが | |
1238 ない場合はエラーになります。またこれは、領域固定のための @code{%#BEGIN} と | |
1239 @code{%#END} のペアに対しても同様に動作します。なお、@code{label/ref}や | |
1240 @code{cite/bibitem}対応するものが別ファイルにある時は、ジャンプ先となるファ | |
1241 イルがオープンされていなければなりません。@xref{%#notation}. | |
1242 メインの .tex ファイルの @code{\include@{chap1@}} などにカーソルを合わせ、 | |
1243 @kbd{[prefix] g} を押すと、@file{chap1.tex} にジャンプします。 | |
1244 | |
1245 また、 | |
1246 | |
1247 @table @kbd | |
1248 @item [prefix] 4 g | |
1249 @dots{} 別ウィンドウで対応オブジェクトにジャンプ | |
1250 @end table | |
1251 | |
1252 @noindent | |
1253 を押すと、対応するオブジェクトへのジャンプを別ウィンドウで行います。ただし、 | |
1254 この機能は @code{begin/end}, @code{%#BEGIN/%#END} 間のジャンプに対しては | |
1255 (意味がないと思われるので)機能しないので注意してください。 | |
1256 | |
1257 @node お絵描きツール起動, メインファイルへのジャンプ, 対応オブジェクトへのジャンプ, Cursor jump | |
1258 @comment node-name, next, previous, up | |
1259 @section お絵描きツール起動 | |
1260 @cindex お絵描きツール起動[おえかきつうるきとう] | |
1261 | |
1262 上記の「画像ファイルの取り込みマクロ」とは、例えば | |
1263 @code{\epsfile@{file=foo@}} のような挿絵取り込みコマンドのことで、この行に | |
1264 カーソルを合わせて@kbd{[prefix] g}を押すとその画像ファイルの元となったファ | |
1265 イルを対応するお絵描きツールを起動してオープンします。起動するツールの判定 | |
1266 は以下のようになされます。 | |
1267 | |
1268 @enumerate | |
1269 @item | |
1270 カレント行が変数 @code{YaTeX-processed-file-regexp-alist} に定義さ | |
1271 れている正規表現のいずれかとマッチしたら、ファイル名に相当する部分を | |
1272 \\(\\)から抜き出して覚えておく(何番目の\\(\\)かは変数の各リストの cdr 部に | |
1273 入れておく)。マッチしなければ何もしない。 | |
1274 @item | |
1275 行末に、変数 @code{YaTeX-file-processor-alist} に登録されているコマンドが | |
1276 「%コマンド」 のように書いてあれば強制的に「コマンド ファイル名.拡張子」を | |
1277 起動。 | |
1278 @item | |
1279 なければ、変数 @code{YaTeX-file-processor-alist} の各リストのcdr部に入って | |
1280 いる拡張子を「ファイル名」の後ろに足したファイルが存在するか順次調べて、存 | |
1281 在した場合car部に入っているコマンドを起動する。 | |
1282 @item | |
1283 以上どれかにマッチしなければあきらめる。 | |
1284 @end enumerate | |
1285 | |
1286 | |
1287 変数 @code{YaTeX-file-processor-alist} と変数 | |
1288 @code{YaTeX-file-processor-alist} の設定方法についてはそれぞれの変数につい | |
1289 て describe-variable して説明を読んで下さい。うまく設定すると、画像ファイ | |
1290 ルにかぎらず、任意の形式のファイルを任意のプロセッサで処理するコマンドを簡 | |
1291 単に呼び出すことができます。 | |
1292 | |
1293 @node メインファイルへのジャンプ, 環境を単位としたジャンプ, お絵描きツール起動, Cursor jump | |
1294 @comment node-name, next, previous, up | |
1295 @section メインファイルへのジャンプ | |
1296 | |
1297 @file{chap1.tex}のようなサブファイルで、 | |
1298 | |
1299 @table @kbd | |
1300 @item [prefix] ^ | |
1301 @dots{} メインファイルにジャンプ | |
1302 @item [prefix] 4 ^ | |
1303 @dots{} 別ウィンドウでメインファイルにジャンプ | |
1304 @end table | |
1305 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1306 @noindent |
73 | 1307 を押すと、メインファイルの編集バッファに切替えます。もし、メインファイルを |
1308 オープンしていない場合は、カレントディレクトリから探して自動的にオープンし | |
1309 ます。 | |
1310 | |
1311 @node 環境を単位としたジャンプ, 最後の補完位置へのジャンプ, メインファイルへのジャンプ, Cursor jump | |
1312 @comment node-name, next, previous, up | |
1313 @section 環境を単位としたジャンプ | |
1314 | |
1315 さらに現在の環境を単位として機能するコマンドに以下のものがあります。 | |
1316 | |
1317 @cindex 環境の先頭へ[かんきようのせんとうへ] | |
1318 @cindex 環境の末尾へ[かんきようのまつひへ] | |
1319 @cindex 環境をマーク[かんきようをまあく] | |
1320 @cindex M-C-a | |
1321 @cindex M-C-e | |
1322 @cindex M-C-@@ | |
1323 @table @kbd | |
1324 @item M-C-a | |
1325 @dots{} 環境の先頭(@code{\begin})へジャンプ | |
1326 @item M-C-e | |
1327 @dots{} 環境の末尾(@code{\end})へジャンプ | |
1328 @item M-C-@@ | |
1329 @dots{} 環境全体をマーク | |
1330 @end table | |
1331 | |
1332 上記のコマンドは通常の@kbd{[prefix]}キーではなく@kbd{META}キーをプリフィク | |
1333 スとして機能するのでご注意下さい。 | |
1334 | |
1335 @node 最後の補完位置へのジャンプ, , 環境を単位としたジャンプ, Cursor jump | |
1336 @comment node-name, next, previous, up | |
1337 @section 最後の補完位置へのジャンプ | |
1338 | |
1339 野鳥は補完入力した位置を常にレジスタ @code{3}に保存しています。 | |
1340 入力途中で如何なるファイルの如何なる位置に行ったとしても、 | |
1341 @kbd{C-x j 3}(@code{jump-to-register})を使って直ちに最後の補完入力位置に戻 | |
1342 ることができます。 | |
1343 | |
1344 @node Modifying/Deleting, Filling, Cursor jump, Top | |
1345 @comment node-name, next, previous, up | |
1346 @chapter 変更/削除 | |
1347 @cindex 変更/削除[へんこう/さくしよ] | |
1348 @cindex prefix c | |
1349 @cindex prefix k | |
1350 | |
1351 既に入力されている La@TeX{} コマンドの変更/削除のために以下の機能が用意 | |
1352 されています。 | |
1353 | |
1354 @table @kbd | |
1355 @item [prefix] c | |
1356 @dots{} カーソル位置の La@TeX{} コマンドの変更 | |
1357 @item [prefix] k | |
1358 @dots{} カーソル位置の La@TeX{} コマンドの削除 | |
1359 @end table | |
1360 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1361 |
73 | 1362 これらのコマンドは、コマンドを起動する場所によって動作を決定するので注意し |
1363 て下さい。 | |
1364 | |
1365 @menu | |
1366 * Changing LaTeX command:: La@TeX{} コマンドの変更 | |
1367 * Killing LaTeX command:: La@TeX{} コマンドの削除 | |
1368 @end menu | |
1369 | |
1370 @node Changing LaTeX command, Killing LaTeX command, Modifying/Deleting, Modifying/Deleting | |
1371 @comment node-name, next, previous, up | |
1372 @section La@TeX{} コマンドの変更 | |
1373 | |
1374 変更したい La@TeX{} コマンドにカーソルを合わせて @kbd{[prefix] c} | |
1375 を押すとそのコマンドを補完入力などを用いて手軽に変えることができます。 | |
1376 @kbd{[prefix] c} で変更できるコマンドには以下のものがあります。 | |
1377 | |
1378 @itemize | |
1379 @item @code{begin/end} の環境名 | |
1380 @item section型コマンドのコマンド名 | |
1381 @item section型コマンドの引数 | |
1382 @item section型コマンドのオプションパラメータ([]で囲まれたもの) | |
1383 @item large型コマンド | |
1384 @item (イメージ補完で入力可能な)数式モード専用のmaketitle型コマンド | |
1385 @end itemize | |
1386 | |
1387 変えたいsection型コマンドの引数がさらに La@TeX{} コマンドを含む場合は、 | |
1388 その引数を囲む中括弧の上で @kbd{[prefix] c} を押すことで中のコマンドを変更 | |
1389 対象判定から除外することができます。 | |
1390 | |
1391 @cindex 環境名の変更[かんきようめいのへんこう] | |
1392 | |
1393 @node Killing LaTeX command, , Changing LaTeX command, Modifying/Deleting | |
1394 @comment node-name, next, previous, up | |
1395 @section La@TeX{} コマンドの削除 | |
1396 | |
1397 @kbd{[prefix] k} は起動する位置により | |
1398 次のような動作を行います。 | |
1399 @cindex 環境の削除[かんきようのさくしよ] | |
1400 | |
1401 | |
1402 @example | |
1403 起動位置 動作 | |
1404 \begin, \endの行 @code{\begin\end}ペアの削除 | |
1405 %#BEGIN, %#END の行 %#BEGIN,%#ENDペアの削除 | |
1406 section型コマンドの上(中) section型コマンドの削除 | |
1407 フォント指定括弧の上 フォント指定の削除 | |
1408 括弧の上 対をなす括弧の削除 | |
1409 @end example | |
1410 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1411 |
73 | 1412 @code{\begin, \end} および @code{%#BEGIN, %#END} を削除する場合、 |
1413 @code{\begin, \end} や @code{%#BEGIN, %#END} の存在する行は | |
1414 まるごと削除されるので、それらの一行に @code{\begin} などを二つ以上連ねて | |
1415 書かないように注意してください。 | |
1416 上記のものはすべて本文を囲う「容器」を削除するように働きますが、 | |
1417 universal-argument (@kbd{C-u}) を打った後で@kbd{[prefix] k}をタイプすると、 | |
1418 それぞれの「容器」に含まれる「中身」も一気に削除します。以下の例を参考にし | |
1419 て下さい。 | |
1420 | |
1421 @example | |
1422 元のテキスト: [prefix] k C-u [prefix] k | |
1423 本文\footnote@{脚注@}です。 本文脚注です。 本文です。 | |
1424 ↑(カーソル位置) | |
1425 @end example | |
1426 | |
1427 @node Filling, Includeonly, Modifying/Deleting, Top | |
1428 @comment node-name, next, previous, up | |
1429 @chapter 桁揃え | |
1430 @cindex 桁揃え[けたそろえ] | |
1431 | |
1432 @section itemの桁揃え | |
1433 @cindex itemなどの桁揃え[itemなとのけたそろえ] | |
1434 @cindex prefix i | |
1435 | |
1436 itemize 環境中にある@code{\item}の項目(文章)が複数行に渡る場合に、項 | |
1437 目の先頭を桁揃えしたい場合には、 | |
1438 | |
1439 @c @table @kbd | |
1440 @c @item [prefix] i | |
1441 @c @dots{} itemの桁揃え | |
1442 @c @end table | |
1443 | |
1444 @table @kbd | |
1445 @item M-q | |
1446 @dots{} 桁揃え | |
1447 @end table | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1448 @cindex NTT-jTeX[えぬていいていいしえいてつく] |
73 | 1449 |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1450 @noindent |
73 | 1451 によって、その item のインデントの深さに応じて fill されます。なお、古い |
1452 NTT jTeX を使用している場合には、Lisp 変数@code{NTT-jTeX}を@code{t}にセッ | |
1453 トして下さい。 | |
1454 | |
1455 @cindex YaTeX-item-regexp | |
1456 このとき、変数@code{YaTeX-item-regexp}の値(標準では @code{"\\\\item"})を | |
1457 項目指定コマンドの正規表現として検索に使用します。itemize 環境で、独自のコ | |
1458 マンドを定義して項目を列挙している場合(例えば@code{\underlineitem})は、 | |
1459 @file{~/.emacs} で次のように指定して下さい。 | |
1460 | |
1461 @lisp | |
1462 (setq YaTeX-item-regexp | |
1463 "\\(\\\\\\(sub\\)*item\\)\\|\\(\\\\underlineitem\\)") | |
1464 @end lisp | |
1465 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1466 |
73 | 1467 この変数の指定の仕方がよく分からない場合は、独自の項目列挙コマンドの名前を |
1468 @code{@code{"\item"}で始まるものにして下さい(例えば"\itembf"})。 | |
1469 | |
1470 野鳥の @kbd{M-q} では @code{\item} を環境に応じて以下のように「ハングイン | |
1471 デント」します。 | |
1472 | |
1473 @example | |
1474 itemize, enumerate環境: | |
1475 >\item[ほげほげ] 英語では、特に意味のない単語を `foo' であらわしま | |
1476 > すが、これの日本語版ともいえる単語が「ほげほげ」 | |
1477 > です。 | |
1478 description環境: | |
1479 > \item[へろへろ] 「ほげほげ」をでたらめが単語として使った時に、第 | |
1480 > 2のでたらめな単語として「へろへろ」が使われることが多 | |
1481 > いようです。 | |
1482 @end example | |
1483 | |
1484 @section パラグラフの桁揃え | |
1485 @cindex パラグラフの桁揃え[はらくらふのけたそろえ] | |
1486 @cindex M-q | |
1487 | |
1488 itemize環境以外でのパラグラフの桁揃え(fill)は、基本的に他のモードと同じ | |
1489 ように機能しますが、verbatim環境や、tabular環境など桁揃えをすると悲惨な状 | |
1490 況になるような環境中では機能しません。また、\verb で括ってあるものは決して | |
1491 行分割されません(変数 @code{YaTeX-verb-regexp} で制御) )。さらに、一時的に | |
1492 インデントの深さを変えてある箇所では、そのインデントの先頭で@kbd{M-q}を押 | |
1493 すことにより fill-prefix をいちいち変更しなくて桁揃えができます。 | |
1494 | |
1495 | |
1496 @node Includeonly, What column, Filling, Top | |
1497 @comment node-name, next, previous, up | |
1498 @chapter 勝手にincludeonly | |
1499 @cindex 勝手にincludeonly[かつてにincludeonly] | |
1500 @cindex includeonly | |
1501 | |
1502 ファイルを分割して文章を入力している時には、メインファイル中に | |
1503 | |
1504 @example | |
1505 \includeonly@{現在編集中のファイル名@} | |
1506 @end example | |
1507 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1508 @noindent |
73 | 1509 のように書いておくことで、タイプセットの時間を節約できますが、ちょっと他の |
1510 ファイルを手直ししたい時には | |
1511 @cindex 他のファイルの手直し[ほかのふあいるのてなおし] | |
1512 | |
1513 @example | |
1514 \includeonly@{ちょっと手直ししたいファイル名@} | |
1515 @end example | |
1516 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1517 |
73 | 1518 と書き直さなければならず手間がかかります。野鳥では現在編集しているファイル |
1519 名がメインファイルの@code{\includeonly}にない場合には自動的にこれを検出し、 | |
1520 次の指示を仰ぎます。 | |
1521 | |
1522 @example | |
1523 A)dd R)eplace %)comment? | |
1524 @end example | |
1525 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1526 |
73 | 1527 現在編集中のファイルを @code{\includeonly} のリストに加えたい時には@kbd{a} |
1528 を、現在編集中のファイルだけを @code{\includeonly} にしたい時は@kbd{r}を、 | |
1529 @code{\includeonly} の行をコメントアウトして無効化したい時には、@kbd{%}を | |
1530 それぞれ押して下さい。 | |
1531 | |
1532 @node What column, Intelligent newline, Includeonly, Top | |
1533 @comment node-name, next, previous, up | |
1534 @chapter ここはどこ? | |
1535 @cindex ここはどこ?[ここはとこ?] | |
1536 @cindex prefix & | |
1537 @cindex 複雑なtabular[ふくさつなtabular] | |
1538 | |
1539 項目数の多い tabular などをたくさん書いていると下の方の行で、いま書いて | |
1540 いる桁がどこに対応するのかわからなくなってしまうことがあります。例えば、以 | |
1541 下のような tabular において、 | |
1542 | |
1543 @example | |
1544 \begin@{tabular@}@{|c|c|c|c|c|c|c|c|@}\hline | |
1545 氏名&所属&〒&住所&電話&FAX&帰省先&帰省先電話\\ \hline | |
1546 矢上二郎 & 6 & 223 & 横浜市港北区日吉 & xxx-yyy & | |
1547 zzz-www & トンガ & 9876-54321 \\ | |
1548 日吉小僧 & 2 & \multicolumn@{2@}@{c|@}@{教えない@} | |
1549 &&&(???) | |
1550 \\ \hline | |
1551 \end@{tabular@} | |
1552 @end example | |
1553 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1554 |
73 | 1555 (???)の部分がどの項目なのかすぐに判断するのは難しいでしょう。こんな時は、 |
1556 | |
1557 @table @kbd | |
1558 @item [prefix] & | |
1559 @dots{} 現在のカラム表示 | |
1560 @end table | |
1561 @cindex 現在のカラム表示[けんさいのからむひようし] | |
1562 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1563 @noindent |
73 | 1564 を押すとカーソル位置のカラムがどの項目に該当するかをミニバッファに表示しま |
1565 す。tabular/array環境の第1行目を項目名の並びとみなして対応するものを探しま | |
1566 す。もし項目名として別のものを表示して欲しい場合は、行頭を@code{%}にしてダ | |
1567 ミーの項目並びを作っておくと良いでしょう。 | |
1568 | |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1569 @node Intelligent newline, Usepackage cheker, What column, Top |
73 | 1570 @comment node-name, next, previous, up |
1571 @chapter おまかせ改行 | |
1572 @cindex おまかせ改行[おまかせかいきよう] | |
1573 @cindex &入力[&にゆうりよく] | |
1574 | |
1575 tabular[*], array, itemize, enumerate, tabbing 環境をbegin型補完で入力し | |
1576 た時、または各環境内で | |
1577 | |
1578 @table @kbd | |
1579 @item ESC RET | |
1580 @dots{} おまかせ改行 | |
1581 @end table | |
1582 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1583 |
73 | 1584 を押すと、その環境に応じた行エントリを次の行に挿入します(begin型補完時に自 |
1585 動挿入されたエントリが不要な場合は undo によって消去できます)。例えば、 | |
1586 tabular環境では、その環境のカラム数に対応した個数の @code{&} に加え、行末 | |
1587 の @code{\\} を入れます。この時それ以前に @code{\hline} があればそれも付け | |
1588 加えます。環境とそれに応じて自動入力するものの対応は以下のようになります。 | |
1589 | |
1590 @itemize | |
1591 @item @code{tabular}, @code{tabular*}, @code{array} | |
1592 | |
1593 カラム数-1 だけの @code{&} と @code{\\}。必要に応じて @code{\hline} | |
1594 | |
1595 @item @code{tabbing} | |
1596 | |
1597 一行目で定義している @code{\=} と同じ個数の @code{\>}。 | |
1598 | |
1599 @item @code{itemize}, @code{enumerate}, @code{description}, @code{list} | |
1600 | |
1601 @code{\item} または @code{item[]} | |
1602 @end itemize | |
1603 | |
1604 tabular 環境の例のように、本機能は各環境の一行目の内容を参考にして動作す | |
1605 るので、なるべく二行目以降で呼び出すようにしてください。 | |
1606 | |
1607 もし、その他の環境、例えば @code{foo}、に対して@code{おまかせ改行}を動作 | |
1608 させたい時は、@code{YaTeX-intelligent-newline-foo} という名前の関数を定義 | |
1609 します。定義した関数は、現在の行に改行を挿入した直後の行頭の位置で呼ばれま | |
1610 す。関数 @code{YaTeX-indent-line} を呼ぶと現在の環境のネストに応じた深さに | |
1611 インデントされるので、これを呼んでから何かを挿入するようなコードを書くとよ | |
1612 いでしょう。@file{yatexenv.el}内の関数 | |
1613 @code{YaTeX-intelligent-newline-itemize} の定義などを参考にしてください。 | |
1614 | |
80 | 1615 |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1616 @node Usepackage cheker, Changing mode of YaTeX, Intelligent newline, Top |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1617 @comment node-name, next, previous, up |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1618 @chapter 先回りusepackage |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1619 @cindex 先回りusepackage[さきまわり] |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1620 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1621 begin型、section型、maketitle型、いずれかのLaTeX2eマクロを補完入力すると、 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1622 そのマクロの利用に外部パッケージを必要とする場合、そのパッケージを |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1623 本文中で @code{\usepackage@{@}} しているかどうかを調査し、もししていなければ |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1624 プリアンブルに対応するパッケージを引数にした @code{\usepackage} 文を |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1625 (確認後に)挿入します。 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1626 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1627 ただしこの機能が働くためには、パッケージ名とその中で定義されているマクロ |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1628 群をalistの形式で変数 @code{YaTeX-package-alist-private} に設定しておく必 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1629 要があります。 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1630 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1631 @node Changing mode of YaTeX, Online help, Usepackage cheker, Top |
73 | 1632 @comment node-name, next, previous, up |
1633 @chapter 野鳥の動作モード切り替え | |
1634 @cindex モード切り替え[もうときりかえ] | |
1635 @cindex prefix w | |
1636 | |
1637 @table @kbd | |
1638 @item [prefix] w | |
1639 @dots{} 野鳥動作モード切り替えメニュー | |
1640 @end table | |
1641 | |
1642 @noindent | |
1643 で野鳥自身の動作を決定する以下のモードを切り替えます。 | |
1644 | |
1645 @itemize @bullet | |
1646 @item 修正モード | |
1647 @item 野鳥数式モード | |
1648 @end itemize | |
1649 | |
1650 修正モードは、開き括弧入力時の処理をコントロールし、修正モードONの時は開き | |
1651 括弧の入力は開き括弧のみの入力になり、修正モードOFFの時は開き括弧の入力だ | |
1652 けで閉じ括弧まで入力します。デフォルト(起動時)の設定は@emph{OFF}です。 | |
1653 | |
1654 野鳥数式モードは、変数 @code{YaTeX-auto-math-mode} が @code{nil} の時の | |
1655 み有効で、このとき@kbd{;}や@kbd{:}を押した時(@ref{Image completion}参照)に、 | |
1656 どのようなイメージ補完を機能させるか、通常のキーとして機能させるかを手動で | |
1657 切り替えます。自動判定が遅いマシンでは@code{YaTeX-auto-math-mode} | |
1658 @code{nil}にセットし、野鳥数式モードを手動で切り替えると良いでしょう。 | |
1659 | |
1660 | |
1661 @node Online help, Inclusion hierarchy browser, Changing mode of YaTeX, Top | |
1662 @comment node-name, next, previous, up | |
1663 @chapter オンラインヘルプ | |
1664 @cindex オンラインヘルプ[おんらいんへるふ] | |
1665 @cindex apropos | |
1666 @cindex キーワード検索[きいわあとけんさく] | |
1667 @cindex prefix ? | |
1668 @cindex prefix / | |
1669 | |
1670 使おうとする La@TeX{} コマンドの用法がよく分からない時は、オンラインヘル | |
1671 プをひきましょう。ヘルプに関するキーには以下のものがあります。 | |
1672 | |
1673 @table @kbd | |
1674 @item [prefix] ? | |
1675 @dots{} オンラインヘルプ | |
1676 @item [prefix] / | |
1677 @dots{} オンラインapropos | |
1678 @end table | |
1679 | |
1680 @section オンラインヘルプ | |
1681 @cindex グローバルヘルプ[くろおはるへるふ] | |
1682 @cindex プライベートヘルプ[ふらいへえとへるふ] | |
1683 @cindex YaTeX-help-file | |
1684 @cindex YaTeX-help-file-private | |
1685 | |
1686 「オンラインヘルプ」は、一般的な La@TeX{} コマンド(デフォルトでカーソル | |
1687 位置のコマンド)に対する説明を隣のバッファに表示します。この時参照されるヘ | |
1688 ルプ用ファイルには「グローバルヘルプ」と「プライベートヘルプ」の二種類があ | |
1689 り、前者は La@TeX{} の標準コマンドの主なものの説明を含むファイルで、変数 | |
1690 @code{YaTeX-help-file}の値で指定されます。このファイルは通常公共の場所(デ | |
1691 フォルトで@code{$EMACSEXECPATH})に置かれ、誰もがその内容を更新できるように | |
1692 全員に書き込み権が与えられるべきものです。後者は、非標準もしくは個人的なマ | |
1693 クロ定義に関する説明が書かれているファイルで、変数 | |
1694 @code{YaTeX-help-file-private}の値で指定されます。こちらはユーザのホームディ | |
1695 レクトリの下などに置かれます。 | |
1696 | |
1697 @section オンラインapropos | |
1698 | |
1699 「オンラインapropos」は GNU Emacs の apropos と同様、ユーザが指定したキー | |
1700 ワードを説明文に含む項目すべてを隣のバッファに表示します。 | |
1701 | |
1702 もし、調べようとしたLa@TeX{}コマンドに対する説明がヘルプファイル中に見つ | |
1703 からなかった場合は、説明文の入力を求めてくるので、可能であれば参考書などを | |
1704 調べてそのコマンドの説明を入力してください。もし、なにか標準的なコマンドに | |
1705 対する説明を書いたならばぜひ私までその説明をお送り下さい。次回の配布に含め | |
1706 たいと思います。 | |
1707 | |
1708 @node Inclusion hierarchy browser, Cooperation with other packages, Online help, Top | |
1709 @comment node-name, next, previous, up | |
1710 @chapter インクルード構造ブラウザ | |
1711 @cindex インクルード構造[いんくるうとこうそう] | |
1712 @cindex prefix d | |
1713 | |
1714 複数のファイルに分割しているドキュメントを書いている場合、 | |
1715 | |
1716 @table @kbd | |
1717 @item [prefix] d | |
1718 @dots{} インクルード構造ブラウズ | |
1719 @end table | |
1720 | |
1721 @noindent | |
1722 を押すと、そのドキュメントの親ファイルを聞いて来ます。ここで全てのファイル | |
1723 の親となるファイル(デフォルトが示されているので大抵はRETのみ)を入力すると | |
1724 インクルードしている全てのファイルを解析し、インクルード状況を視覚的に表示 | |
1725 します。このバッファでは以下のキー操作が有効です。 | |
1726 | |
1727 @table @kbd | |
1728 @item n | |
1729 @dots{} 次の行に移動し対応するファイルを隣のバッファに表示 | |
1730 @item p | |
1731 @dots{} 上の行に移動し対応するファイルを隣のバッファに表示 | |
1732 @item N | |
1733 @dots{} 同じインクルードレベルの次のファイルに移動 | |
1734 @item P | |
1735 @dots{} 同じインクルードレベルの前のファイルに移動 | |
1736 @item j | |
1737 @dots{} 次の行に移動 | |
1738 @item k | |
1739 @dots{} 上の行に移動 | |
1740 @item u | |
1741 @dots{} 一代親にあたるファイルに移動 | |
1742 @item . | |
1743 @dots{} カーソル位置のファイルを隣のバッファに表示 | |
1744 @item SPC | |
1745 @dots{} 隣のバッファの対応ファイルをスクロールアップ | |
1746 @item DEL, b | |
1747 @dots{} 隣のバッファの対応ファイルをスクロールダウン | |
1748 @item < | |
1749 @dots{} 隣のバッファの対応ファイルの先頭を表示 | |
1750 @item > | |
1751 @dots{} 隣のバッファの対応ファイルの末尾を表示 | |
1752 @item ' | |
1753 @dots{} (@kbd{<}や@kbd{>}の後で)元の表示位置に戻る | |
1754 @item RET, g | |
1755 @dots{} カーソル位置のファイルを隣のバッファでオープン | |
1756 @item mouse-2 | |
1757 @dots{} RETと同じ(ウィンドウ使用時のみ) | |
1758 @item o | |
1759 @dots{} 隣のウィンドウに移動 | |
1760 @item 1 | |
1761 @dots{} 他のウィンドウを消す | |
1762 @item - | |
1763 @dots{} ブラウズウィンドウを小さくする | |
1764 @item + | |
1765 @dots{} ブラウズウィンドウを大きくする | |
1766 @item ? | |
1767 @dots{} ヘルプ表示 | |
1768 @item q | |
1769 @dots{} 表示前の状態に戻る | |
1770 @end table | |
1771 | |
1772 ただし、隣のウィンドウのファイルの内容を表示する機能に関しては、対応する | |
1773 ファイルをクローズしてしまうとうまく働きませんのでご注意ください。 | |
1774 | |
1775 @node Cooperation with other packages, Customizations, Inclusion hierarchy browser, Top | |
1776 @comment node-name, next, previous, up | |
1777 @chapter 他パッケージとの連携 | |
1778 @cindex 他パッケージとの連携[たはつけえしとのれんけい] | |
1779 | |
1780 @section gmhist | |
1781 @cindex gmhist | |
1782 @cindex コマンドヒストリ[こまんとひすとり] | |
1783 @cindex ヒストリ[ひすとり] | |
1784 | |
1785 @file{gmhist.el}と@file{gmhist-mh.el} をロードしている場合、プレヴューコ | |
1786 マンドの入力(@kbd{[prefix] tp]})、印刷コマンドの入力(@kbd{[prefix] tl})の | |
1787 時に独立したヒストリを利用できます。それぞれのプロンプトで、@kbd{M-p} を押 | |
1788 すと直前に利用したコマンド文字列をくり返し呼び出すことができます。 | |
1789 | |
1790 @section min-out | |
1791 @cindex min-out | |
1792 | |
1793 @file{min-out.el} (@code{outline-minor-mode}) と野鳥を組み合わせて使うこ | |
1794 とももちろん可能です。設定の方法に関しては@file{yatexm-o.el}をご覧ください。 | |
1795 | |
1796 @node Customizations, Etc, Cooperation with other packages, Top | |
1797 @comment node-name, next, previous, up | |
1798 @chapter カスタマイズ | |
1799 @cindex カスタマイズ[かすたまいす] | |
1800 @cindex キーアサイン[きいあさいん] | |
1801 | |
1802 野鳥の動作を制御する種々の変数を独自に設定することにより、補完入 | |
1803 力を起動するキーアサインを変えたり、環境名の補完候補をさらに充実さ | |
1804 せることなどができます。 | |
1805 | |
1806 @menu | |
1807 * Lisp variables:: lisp 変数 | |
1808 * Add-in functions:: 付加関数(アドイン関数) | |
1809 @end menu | |
1810 | |
1811 @node Lisp variables, Add-in functions, Customizations, Customizations | |
1812 @comment node-name, next, previous, up | |
1813 @section lisp 変数 | |
1814 @cindex prefixキー変更[prefixきいへんこう] | |
1815 | |
1816 例えば prefix キーを @kbd{C-c} 以外のキーにしたい場合は、 | |
1817 @code{YaTeX-prefix}に prefix キーにしたいシンボルを定義してください。さら | |
1818 に、「@kbd{C-c 英字}」というキーバインドは独自の関数が割り当ててあるので使 | |
1819 いたくない。このような時は、@code{YaTeX-inhibit-prefix-letter} を @code{t} | |
1820 に設定することにより、@kbd{C-c 英字…}のバインドが全て、対応する@kbd{C-c | |
1821 C-英字…}に変わります(ただし、begin型 large型補完の大文字起動によるリジョ | |
1822 ン指定は可能なままです。これも無効にしたい場合は@code{t}ではなく 1 にセッ | |
1823 トして下さい。)。 | |
1824 | |
1825 @menu | |
1826 * All customizable variables:: カスタマイズ変数一覧 | |
1827 * Sample definitions:: カスタマイズ変数設定例 | |
1828 * Hook variables:: hook変数 | |
1829 * Hook file:: hook用ファイル | |
1830 @end menu | |
1831 | |
1832 @node All customizable variables, Sample definitions, Lisp variables, Lisp variables | |
1833 @comment node-name, next, previous, up | |
1834 @subsection カスタマイズ変数一覧 | |
1835 @cindex カスタマイズ変数一覧[かすたまいすへんすういちらん] | |
1836 | |
1837 yatex-mode における次の変数がカスタマイズ可能です。@file{~/.emacs} で | |
1838 @code{setq} しておけば、そちらの定義が優先されます。括弧の中はデフォルト値 | |
1839 です。実際に変数の値を変更する場合は @kbd{M-x describe-variable} で | |
1840 変数の詳細な説明を参照してください。 | |
1841 | |
1842 @defvar YaTeX-prefix | |
1843 yatex-mode 中のプリフィクスキー (@kbd{\C-c}) | |
1844 @end defvar | |
1845 | |
1846 @defvar YaTeX-inhibit-prefix-letter | |
1847 prefix キーの直後のキーバインドで @kbd{英字} のものを @kbd{C-英字} に変更 | |
1848 (@code{nil}) | |
1849 @end defvar | |
1850 | |
1851 @defvar YaTeX-fill-prefix | |
1852 本文を書く時の行頭に挿入する接頭辞すなわち fill-prefix (@code{""(nil)}) | |
1853 @end defvar | |
1854 | |
1855 @defvar YaTeX-user-completion-table | |
1856 学習したLa@TeX{}コマンド保存ファイル名 (@code{"~/.yatexrc"}) | |
1857 @end defvar | |
1858 | |
1859 @defvar YaTeX-kanji-code | |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
1860 文書を作成する時の漢字コード |
118 | 1861 nil=既存のコードのまま 0=no-conversion 1=Shift JIS, |
1862 2=JIS, 3=EUC, 4=UTF-8 (2 (MS-DOSでは1)) | |
73 | 1863 @end defvar |
1864 | |
1865 @defvar tex-command | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
1866 La@TeX{}タイプセッタコマンド名 (@code{"platex"}) |
73 | 1867 |
1868 @end defvar | |
1869 | |
1870 @defvar dvi2-command | |
1871 プレヴューアコマンド名 (@code{"xdvi -geo +0+0 -s 4"}) | |
1872 @end defvar | |
1873 | |
1874 @defvar dviprint-command-format | |
1875 dviファイルの印刷に使われるコマンド式 (@code{"dvi2ps %f %t %s | lpr"}) | |
1876 @end defvar | |
1877 | |
1878 @defvar dviprint-from-format | |
1879 上の@code{%f}に相当する開始ページ指定書式、@code{%b} が開始ページ番号に変 | |
1880 わる (@code{"-f %b"}) | |
1881 @end defvar | |
1882 | |
1883 @defvar dviprint-to-format | |
1884 @code{%t} に相当する終了ページ指定書式、@code{%e}が終了ページ番号に変わる | |
1885 (@code{"-t %e"}) | |
1886 @end defvar | |
1887 | |
1888 @defvar makeindex-command | |
1889 makeindexコマンド (@code{"makeindex"} (MS-DOSでは@code{"makeind"})) | |
1890 @end defvar | |
126
91bf68eeefe8
Add documentation for latex+p(D)f and YaTeX-dvipdf-command.
yuuji@gentei.org
parents:
118
diff
changeset
|
1891 |
91bf68eeefe8
Add documentation for latex+p(D)f and YaTeX-dvipdf-command.
yuuji@gentei.org
parents:
118
diff
changeset
|
1892 @defvar YaTeX-dvipdf-command |
91bf68eeefe8
Add documentation for latex+p(D)f and YaTeX-dvipdf-command.
yuuji@gentei.org
parents:
118
diff
changeset
|
1893 dviをPDFに変換するコマンド (@code{"dvipdfmx"}) |
91bf68eeefe8
Add documentation for latex+p(D)f and YaTeX-dvipdf-command.
yuuji@gentei.org
parents:
118
diff
changeset
|
1894 @end defvar |
73 | 1895 |
1896 @defvar YaTeX-need-nonstop | |
1897 @code{\nonstopmode@{@}}を自動的に付加するか (@code{nil}) | |
1898 @end defvar | |
1899 | |
1900 @defvar latex-warning-regexp | |
1901 latexコマンドの出力するウォーニング行の正規表現 (@code{"line.* [0-9]*"}) | |
1902 @end defvar | |
1903 | |
1904 @defvar latex-error-regexp | |
1905 同じくエラー行の正規表現 (@code{"l\\.[1-9][0-9]*"}) | |
1906 @end defvar | |
1907 | |
1908 @defvar latex-dos-emergency-message | |
1909 MS-DOS上で動作する latex コマンドが、エラーにより停止するとき出力するメッ | |
1910 セージ (@code{"Emergency stop"}) | |
1911 @end defvar | |
1912 | |
1913 @defvar latex-message-kanji-code | |
1914 タイプセッタの出力するメッセージの漢字コード.タイプセットバッファ | |
1915 の出力が化ける時は、これを設定する (2, Nemacsでのみ有効) | |
1916 @end defvar | |
1917 | |
1918 @defvar NTT-jTeX | |
1919 古いNTT-j@TeX{}使用時のようにインデントした行の先頭と前の行の | |
1920 (タイプセット後の)字間が空いてしまうのを嫌う場合は@code{t}にする | |
1921 (@code{nil}) | |
1922 @end defvar | |
1923 | |
1924 @defvar YaTeX-item-regexp | |
1925 itemの桁揃えの時に用いる、itemの正規表現 (@code{"\\\\(sub\\)*item"}) | |
1926 @end defvar | |
1927 | |
1928 @defvar YaTeX-verb-regexp | |
1929 verbコマンドの正規表現。先頭の\\\\はつけない (@code{"verb\\*?\\|path"}) | |
1930 @end defvar | |
1931 | |
1932 @defvar YaTeX-nervous | |
1933 ローカル辞書を用いる時 @code{t} (@code{t}) | |
1934 @end defvar | |
1935 | |
1936 @defvar YaTeX-sectioning-regexp | |
1937 セクション区切り設定コマンドの正規表現 | |
1938 (@code{"\\(part\\|chapter\\*?\\|\\(sub\\)*\\(section\\|paragraph\\)\\*?\\)\\b"}) | |
1939 @end defvar | |
1940 | |
1941 @defvar YaTeX-fill-inhibit-environments | |
1942 fill を抑止する環境名のリスト | |
1943 (@code{'("tabular" "tabular*" "array" "picture" "eqnarray" "eqnarray*" "equation" "math" "displaymath" "verbatim" "verbatim*")}) | |
1944 @end defvar | |
1945 | |
1946 @defvar YaTeX-uncomment-once | |
1947 領域uncommentで行頭の複数の@code{%}を全て削除するか (@code{nil}) | |
1948 @end defvar | |
1949 | |
1950 @defvar YaTeX-close-paren-always | |
1951 開き括弧の入力で常に閉じ括弧を入力する (@code{t}) | |
1952 @end defvar | |
1953 | |
1954 @defvar YaTeX-auto-math-mode | |
1955 数式モードの切り替えを自動的に行う (@code{t}) | |
1956 @end defvar | |
1957 | |
1958 @defvar YaTeX-math-key-list-private | |
1959 数式イメージ補完で用いる (プリフィクスキー . 対応補完テーブル) の | |
1960 alist (@code{nil})。補完テーブルの書き方については@file{yatexmth.el}を参照。 | |
1961 @end defvar | |
1962 | |
1963 @defvar YaTeX-default-pop-window-height | |
1964 1画面の時にタイプセットバッファを初めて作成する時の高さ。数値で行数、数字 | |
1965 文字列でEmacsウィンドウに対する百分率 (10) | |
1966 @end defvar | |
1967 | |
1968 @defvar YaTeX-help-file | |
1969 共用ヘルプファイル (@file{$doc-directory/../../site-lisp/YATEXHLP.jp}) | |
1970 @end defvar | |
1971 | |
1972 @defvar YaTeX-help-file-private | |
1973 個人用ヘルプファイル (@file{"~/YATEXHLP.jp"}) | |
1974 @end defvar | |
1975 | |
1976 @defvar YaTeX-no-begend-shortcut | |
1977 @kbd{[prefix] b ??} のショートカットを使わず、@kbd{[prefix] b} だけで補完 | |
1978 入力に入る (@code{nil}) | |
1979 @end defvar | |
1980 | |
1981 @defvar YaTeX-hilit-pattern-adjustment-private | |
1982 正規表現とそれにマッチするものの論理的意味をシンボルであらわしたものの | |
1983 リスト…のリスト。hilit19 を組み込んでいる時のみ有効。 | |
1984 詳しくは @code{(assq 'yatex-mode hilit-patterns-alist)} | |
1985 した結果と、変数 @code{YaTeX-hilit-pattern-adjustment-default} の値(と場合 | |
1986 によっては hilit19 のドキュメント)を参照せよ。 | |
1987 @end defvar | |
1988 | |
1989 @defvar YaTeX-sectioning-level | |
1990 LaTeXのセクション単位宣言コマンドとその論理的高さのalist。 | |
1991 @end defvar | |
1992 | |
1993 @defvar YaTeX-hierarchy-ignore-heading-regexp | |
1994 Hierarchy バッファは通常ファイルヘッダとして、LaTeXのセクション宣言コマン | |
1995 ドの引数を検索し、それがなければコメント行を探すが、その際にヘッダとしては | |
1996 意味を持たないパターンをこの変数に設定する。デフォルトでは RCS ヘッダとモー | |
1997 ド指定行(-*- xxx -*-)が設定されている。 | |
1998 @end defvar | |
1999 | |
2000 @defvar YaTeX-skip-default-reader | |
2001 Non-nil に設定するとsection型コマンドの引数入力時、アドイン関数がなければ | |
2002 ミニバッファでの読み込みをせずに入力を完了させる (@code{nil}) | |
2003 @end defvar | |
2004 | |
2005 @defvar YaTeX-create-file-prefix-g | |
2006 @code{\include}などで @kbd{prefix g}した時に、ジャンプ先が存在しないファイ | |
2007 ルであってもオープンする (@code{nil}) | |
2008 @end defvar | |
2009 | |
2010 @defvar YaTeX-simple-messages | |
2011 各種補完時のメッセージ出力を簡素化する (@code{nil}) | |
2012 @end defvar | |
2013 | |
2014 @defvar YaTeX-hilit-sectioning-face | |
2015 色付けが有効な時の @code{\part} の色 | |
2016 (@code{'(yellow/dodgerblue yellow/slateblue)})。 | |
2017 リストの第一要素は @code{hilit-background-mode} が @code{'light} の時の、 | |
2018 第二要素は @code{'dark} の時の @code{\chapter} の色で、文字色/背景色 のよ | |
2019 うに指定する。 | |
2020 @end defvar | |
2021 | |
2022 @defvar YaTeX-hilit-sectioning-attenuation-rate | |
2023 色付けが有効な時の、@code{\subparagraph} の色を @code{\chapter} の濃度の何 | |
2024 %薄くしたものにするか (@code{'(15 40)}) @code{YaTeX-hilit-sectioning-face} | |
2025 の項参照。 | |
2026 @end defvar | |
2027 | |
2028 @defvar YaTeX-use-AMS-LaTeX | |
2029 AMS-LaTeX を使用する場合は @code{t} に設定する (@code{nil}) | |
2030 @end defvar | |
2031 | |
2032 @defvar YaTeX-use-LaTeX2e | |
2033 LaTeX2e を使用する場合は @code{t} に設定する (@code{t}) | |
2034 @end defvar | |
2035 | |
2036 @defvar YaTeX-template-file | |
2037 新規ファイル作成時に自動挿入するファイル名 (@code{~/work/template.tex}) | |
2038 @end defvar | |
2039 | |
2040 @defvar YaTeX-search-file-from-top-directory | |
2041 inputするファイルを探すときの基準ディレクトリをmainファイルのあるディレクト | |
2042 リにするか (@code{t}) | |
2043 @end defvar | |
2044 @defvar YaTeX-use-font-lock | |
2045 ソースの色づけパッケージとして font-lock を利用するかどうか | |
2046 (@code{(featurep 'font-lock)}) | |
2047 @end defvar | |
2048 | |
2049 @defvar YaTeX-use-hilit19 | |
2050 ソースの色づけパッケージとして hilit19 を利用するかどうか | |
2051 (@code{(featurep 'hilit19)}) | |
2052 @end defvar | |
2053 | |
2054 @defvar YaTeX-use-italic-bold | |
2055 italic, boldフォントを野鳥が探すかどうか (Emacs20以降なら@code{t}) | |
2056 font-lock利用時のみ有効。 | |
2057 (@code{(featurep 'hilit19)} | |
2058 @end defvar | |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2059 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2060 @defvar YaTeX-singlecmd-suffix |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
2061 全てのmaketitle型コマンドの補完入力直後に挿入する文字列。 |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2062 @code{"@{@}"} などがお勧め。 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2063 @end defvar |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2064 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2065 @defvar YaTeX-package-alist-private |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2066 LaTeX2eのパッケージ名とその中に含まれるマクロのリスト。 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2067 適切に設定しておくと本文入力時にマクロを補完入力すると |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2068 そのマクロに必要なパッケージを usepackage するか自動的に検査してくれる。 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2069 していなければ \usepackage を自動追加することもできる。 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2070 リストは |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2071 @lisp |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2072 '((パッケージ名1 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2073 (補完タイプ マクロのリスト……) |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2074 (補完タイプ マクロのリスト……)) |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2075 (パッケージ名2 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2076 (補完タイプ マクロのリスト……) |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2077 (補完タイプ マクロのリスト……))………) |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2078 @end lisp |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2079 という形式にする。補完タイプは @code{env, section, maketitle} のどれか。 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2080 具体例は変数 @code{YaTeX-package-alist-default} |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2081 の値参照。 |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
73
diff
changeset
|
2082 @end defvar |
80 | 2083 |
2084 @defvar YaTeX-tabular-indentation | |
2085 tabular/array 環境で現在行の先頭位置が表の第Nカラムのときは | |
2086 標準インデント位置から N*YaTeX-tabular-indentation 桁下げた | |
2087 インデントにする。 | |
2088 @end defvar | |
2089 | |
268 | 2090 @defvar YaTeX-noindent-env-regexp |
80 | 2091 別の環境内にあっても \begin@{@} が行頭から始まるべき環境名の正規表現。 |
2092 verbatim環境などを指定する。 | |
2093 @end defvar | |
2094 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
2095 @defvar YaTeX-ref-default-label-string |
80 | 2096 \ref@{@} のラベル補完でラベル未設定のものに自動的に生成する |
2097 ラベル名の書式。strftime(3)関数に似た日付ベースで指定する。 | |
2098 利用できる書式は以下のとおり。 | |
2099 %y -> 西暦下二桁, %b -> 月の英名, %m -> 月(1〜12) | |
2100 %d -> 日, %H -> 時, %M -> 分, %S -> 秒, | |
2101 %qx -> アルファベットで26進数化した yymmdd. | |
2102 %qX -> アルファベットで26進数化した HHMMSS. | |
2103 デフォルトは "%H%M%S_%d%b%y" | |
2104 @end defvar | |
2105 | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
2106 @defvar YaTeX-ref-generate-label-function |
80 | 2107 \ref@{@}のラベル名自動生成のときに使う関数のシンボル。 |
2108 デフォルトは標準の YaTeX::ref-generate-label 関数が割り当ててある。 | |
2109 引数を2つ取る関数を定義して、この変数にセットするとその関数を呼んだ | |
2110 結果をデフォルトのラベル名候補とする。設定例: | |
2111 @lisp | |
2112 (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label) | |
2113 (defun my-yatex-generate-label (command value) | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
2114 (and (string= command "caption") |
80 | 2115 (re-search-backward "\\\\begin@{\\(figure\\|table\\)@}" nil t) |
2116 (setq command (match-string 1))) | |
2117 (let ((alist '(("chapter" . "chap") | |
2118 ("section" . "sec") | |
2119 ("subsection" . "subsec") | |
2120 ("figure" . "fig") | |
2121 ("table" . "tbl")))) | |
2122 (if (setq command (cdr (assoc command alist))) | |
2123 (concat command ":" value) | |
2124 (YaTeX::ref-generate-label nil nil)))) | |
2125 @end lisp | |
2126 @end defvar | |
73 | 2127 |
2128 @node Sample definitions, Hook variables, All customizable variables, Lisp variables | |
2129 @comment node-name, next, previous, up | |
2130 @subsection カスタマイズ変数設定例 | |
2131 @cindex 設定例[せつていれい] | |
2132 | |
2133 たとえば、prefix キーとして@kbd{ESC}を使用し、新たな補完候補を格納するファ | |
2134 イルを、@file{~/src/emacs/yatexrc} にし、行頭の prefix をタブ文字一つに変 | |
2135 えたいときは、 | |
2136 | |
2137 @lisp | |
2138 (setq YaTeX-prefix "\e" | |
2139 YaTeX-user-completion-table "~/src/emacs/yatexrc" | |
2140 YaTeX-fill-prefix " ") | |
2141 @end lisp | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
2142 |
73 | 2143 @noindent |
2144 を @file{~/.emacs} に加えます。 | |
2145 | |
2146 @node Hook variables, Hook file, Sample definitions, Lisp variables | |
2147 @comment node-name, next, previous, up | |
2148 @subsection hook変数 | |
2149 @cindex hook変数[hookへんすう] | |
2150 @cindex yatex-mode-hook | |
2151 @cindex yatex-mode-load-hook | |
2152 | |
2153 また、hook 変数 @code{yatex-mode-hook}, @code{yatex-mode-load-hook} を用 | |
2154 意しています。すべての yatex-mode のバッファで作用させたいものは、 | |
2155 @code{yatex-mode-hook} に記述し、@file{yatex.el} をロードする時だけ作用さ | |
2156 せたいものは@code{yatex-mode-load-hook} に記述します。例えば、 | |
2157 @code{outline-minor-mode} を利用する場合、それぞれのバッファで | |
2158 @code{outline-minor-mode} を有効にしたいので、@code{yatex-mode-hook} を次 | |
2159 のように設定します。 | |
2160 | |
2161 @lisp | |
2162 (setq yatex-mode-hook | |
2163 '(lambda () (outline-minor-mode t))) | |
2164 @end lisp | |
265
0b10d1fea265
Fix many misuse of braces and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
242
diff
changeset
|
2165 |
73 | 2166 |
2167 逆に、独自のキー定義を行いたい時などは、@code{yatex-mode-load-hook} を利用 | |
2168 します。例えば、begin 型補完において、 document や、enumerate 以外の環境名 | |
2169 もショートカットキーで入れたいなどという時は、次のようにします。以下の例は、 | |
2170 @kbd{[prefix] ba} で @code{\begin@{abstract@}}, @code{\end@{abstract@}} を | |
2171 挿入します。 | |
2172 | |
2173 @lisp | |
2174 (setq yatex-mode-load-hook | |
2175 '(lambda() (YaTeX-define-begend-key "ba" "abstract"))) | |
2176 @end lisp | |
2177 | |
2178 なお、新たなキーの定義には、関数 @code{YaTeX-define-key} | |
2179 @code{YaTeX-define-begend-key}を利用するようにしてください。 | |
2180 | |
2181 @node Hook file, , Hook variables, Lisp variables | |
2182 @comment node-name, next, previous, up | |
2183 @subsection hook用ファイル | |
2184 | |
2185 変数 @code{yatex-mode-load-hook} で定義する内容が多い時は、 | |
2186 @file{yatexhks.el}というファイルを作り、その中に野鳥関連の設定を書く事で、 | |
2187 初期化の時に自動的にロードします。 | |
2188 | |
2189 | |
2190 @node Add-in functions, , Lisp variables, Customizations | |
2191 @comment node-name, next, previous, up | |
2192 @section 付加関数(アドイン関数) | |
2193 | |
2194 各種補完時に、環境名やコマンド名に応じたきめ細やかな補完入力機能を実現す | |
2195 るための関数を作成することができます。この関数の作成方法や、組み込み方法に | |
2196 関しては、@code{yatexadd.doc} をご覧ください。 | |
2197 | |
2198 @node Etc, Copying, Customizations, Top | |
2199 @comment node-name, next, previous, up | |
2200 @chapter その他 | |
2201 | |
2202 野鳥の標準の La@TeX{} コマンドの辞書には、作者が頻繁に使うものしか登録さ | |
2203 れていません。これは、補完候補に使いそうもないコマンドが存在して、補完した | |
2204 いコマンドを出すまでのストローク数を増やしてしまう事を防止するためです。標 | |
2205 準辞書にないコマンドも、できるだけ補完入力方式を利用し、ユーザ辞書を充実さ | |
2206 せることで、あなたの La@TeX{} スタイルにあった野鳥へと育っていくことでしょ | |
2207 う。 | |
2208 | |
2209 @node Copying, Concept Index, Etc, Top | |
2210 @comment node-name, next, previous, up | |
2211 @chapter 取り扱い | |
2212 | |
2213 本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな | |
80 | 2214 る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた |
2215 しません。常識的に扱ってください。また、本プログラムに含まれるコードを利用 | |
2216 すること、改造することも自由に行なって構いませんが、流用することにより契約 | |
2217 締結の必要が生じる場合、私はいかなる契約も締結しません。具体的にはGPLへの | |
2218 サインはしませんので、GNUに寄贈するものを作っている場合私の作品から取り込 | |
2219 んだコードを流用すると苦労するかもしれません。いかなるコード流用も拒否しま | |
73 | 2220 せんが契約締結は辞退します。 |
2221 | |
80 | 2222 苦情、希望、バグ報告、感想等は歓迎いたします。 |
73 | 2223 連絡は yuuji@@yatex.org まで(2004年1月現在)。 |
2224 継続的に使用してくださる方はメイリングリスト「fj野鳥の会」に | |
2225 是非加入してください。加入方法については本パッケージの @file{docs/qanda} | |
2226 ファイルの「その他」の章を御覧ください。 | |
2227 | |
2228 仕様は、予告なく確実に(気分次第で)変更されます:-p。 | |
2229 | |
2230 @flushright | |
2231 広瀬雄二 | |
2232 @end flushright | |
2233 | |
2234 @node Concept Index, , Copying, Top | |
2235 @comment node-name, next, previous, up | |
2236 @unnumbered 索引 | |
2237 @printindex cp | |
2238 | |
2239 @c カスタマイズ変数索引を索引と分離する場合にはコメントアウトを外す!!! | |
2240 @c @node Variable Index | |
2241 @c @comment node-name, next, previous, up | |
2242 @c @unnumbered カスタマイズ変数索引 | |
2243 @c @printindex vr | |
2244 | |
2245 @contents | |
2246 | |
2247 @bye | |
2248 | |
2249 @c Local Variables: | |
2250 @c fill-column: 74 | |
2251 @c fill-prefix: nil | |
2252 @c buffer-file-coding-system: sjis-dos | |
2253 @c End: | |
2254 | |
2255 Tag table: | |
2256 |